﻿@charset "UTF-8";

@font-face {
    font-family: 'MyLocalFont';
    src: url('assets/myfont.woff2') format('woff2');
    font-weight: normal; font-style: normal;
    font-display: swap; /* 加入這行，讓字體下載時先顯示系統字，下載完瞬間無縫替換 */
}

:root {
    --magician-red: #8B0000;
    --deep-red: #3A0000;
    --melancholic-blue: #1A3A5A;
    --hope-blue-end: #0A152A;
    --ash-white: #F4F4F4;
    --cyber-accent: #FFFFFF;
    --font-display: 'Syne', sans-serif;
    --font-handwriting: 'Caveat', cursive;
    --font-tc-hw: 'MyLocalFont', 'Kaiti TC', 'BiauKai', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--deep-red);
    color: var(--ash-white);
    font-family: var(--font-display);
    overflow: hidden;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* 基础背景层 */
.base-red-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, var(--magician-red) 0%, var(--deep-red) 100%);
    z-index: 1;
}

#floating-hats-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.hat-wrapper {
    position: absolute;
    width: 100px;
    opacity: 0.15;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

.floating-hat {
    width: 100%;
    object-fit: contain;
}

/* 前三幕居中锁 */
.scene-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.signature {
    width: 250px;
    transform: rotate(20deg);
    margin-bottom: 50px;
}

.progress-wrapper {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #FFF !important;
}

.progress-text {
    font-family: var(--font-handwriting);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

#flower-container {
    cursor: pointer;
    transform-style: preserve-3d;
}

#flowers {
    width: 300px;
    max-width: 60vw;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.unstable-glitch {
    animation: glitch 2.5s infinite alternate ease-in-out;
}

@keyframes glitch {
    0% {
        filter: blur(0px) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    }

    50% {
        filter: blur(2px) drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    }

    100% {
        filter: blur(0px) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    }
}

#magician-logo {
    width: 40vw;
    max-width: 500px;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#cyber-dialog {
    position: relative;
    width: 90%;
    max-width: 650px;
    background: rgba(80, 80, 80, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid var(--cyber-accent);
    padding: 50px 40px 30px;
    margin-top: 150px;
    clip-path: polygon(0 0, 95% 0, 100% 10%, 100% 100%, 5% 100%, 0 90%);
    box-shadow: 20px 20px 0px rgba(255, 255, 255, 0.05);
    opacity: 0;
    pointer-events: auto;
    transition: transform 0.2s ease;
}

.lang-switcher {
    position: absolute;
    top: 15px;
    right: 40px;
    display: flex;
    gap: 15px;
}

.lang-btn {
    font-family: var(--font-handwriting);
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

    .lang-btn:hover, .lang-btn.active {
        color: var(--cyber-accent);
        border-bottom: 1px solid var(--cyber-accent);
    }

.text-inner {
    font-family: var(--font-tc-hw);
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 1px;
    color: #eee;
    min-height: 250px;
}

    .text-inner .end-remark {
        font-size: 0.9em;
        font-style: italic;
        opacity: 0.6;
        display: inline-block;
        margin-left: 5px;
    }

#signature-area {
    margin-top: 20px;
    width: 100%;
    height: 80px;
    position: relative;
    cursor: pointer !important;
    pointer-events: auto !important;
}

#signature-line {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.sign-hint {
    position: absolute;
    bottom: 0px;
    left: 0;
    font-family: var(--font-tc-hw);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

#pen-icon {
    position: absolute;
    bottom: 33px;
    left: 0;
    width: 28px;
    fill: var(--cyber-accent);
    z-index: 5;
}

#written-name {
    position: absolute;
    bottom: 28px;
    left: 50px;
    font-family: var(--font-handwriting);
    font-size: 3.5rem;
    color: var(--cyber-accent);
    opacity: 0;
    white-space: nowrap;
    z-index: 10;
    padding-right: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.cyber-tag {
    position: absolute;
    bottom: 15px;
    right: 30px;
    font-family: var(--font-tc-hw);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 导航栏 (电脑端) */
#main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: block;
    opacity: 0;
    pointer-events: none;
}

    #main-content:not(.hidden) {
        pointer-events: auto;
    }

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    backdrop-filter: blur(5px);
}

.nav-logo {
    height: 240px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    position: absolute;
    top: -60px;
    left: 80px;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
    padding: 30px 0;
}

    .nav-links a {
        color: var(--ash-white);
        text-decoration: none;
        font-family: var(--font-handwriting);
        font-size: 1.4rem;
        transition: 0.3s;
        font-weight: normal;
        letter-spacing: 1px;
    }

        .nav-links a:hover {
            color: var(--cyber-accent);
            transform: translateY(-2px);
        }

#scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    z-index: 10;
    overflow: hidden;
}

.blue-hope-bg {
    background: radial-gradient(circle at 50% 50%, rgba(26,58,90,0.95) 0%, rgba(10,21,42,1) 100%) !important;
}

    .blue-hope-bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(white, rgba(255,255,255,.3) 2px, transparent 3px), radial-gradient(white, rgba(255,255,255,.2) 1px, transparent 2px), radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
        background-size: 550px 550px, 350px 350px, 250px 250px;
        background-position: 0 0, 40px 60px, 130px 270px;
        opacity: 0.7;
        z-index: 1;
        pointer-events: none;
    }

.content-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    max-width: 1200px;
    gap: 50px;
    position: relative;
    z-index: 100;
    margin: 0 auto;
}

    .content-section > div {
        min-width: 0;
        flex-shrink: 0;
    }

    .content-section.reverse {
        flex-direction: row-reverse;
    }

    .content-section.column-layout {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

.text-block, .ep-text {
    flex: 1;
    text-align: left;
    max-width: 50%;
}

.ep-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    max-width: 1200px;
    gap: 60px;
}

.ep-cover-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    perspective: 1000px;
    max-width: 50%;
}

.main-cover {
    width: 100%;
    max-width: 350px;
    height: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border-radius: 2px;
    object-fit: contain;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
}

.ep-main-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2vh;
    color: var(--ash-white);
    line-height: 1.1;
}

.section-desc, .ep-desc-text, .gav-bio {
    font-family: var(--font-tc-hw);
    font-size: 1.2rem;
    line-height: 1.9;
}

.btn-learn-more {
    margin-top: 25px;
    padding: 8px 25px;
    border: 1px solid var(--cyber-accent);
    background: transparent;
    color: var(--cyber-accent);
    font-family: var(--font-tc-hw);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 30px;
    letter-spacing: 1px;
}

    .btn-learn-more:hover {
        background: var(--cyber-accent);
        color: var(--deep-red);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(255,255,255,0.2);
    }

/* 照片墙 */
.collage-block {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
}

.collage-img {
    position: absolute;
    width: 220px;
    max-width: 220px;
    border: 4px solid #fff;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: 0.4s;
}

.img1 {
    transform: rotate(-15deg) translate(-100px, -50px);
}

.img2 {
    transform: rotate(10deg) translate(80px, -80px);
}

.img3 {
    transform: rotate(-5deg) translate(-40px, 100px);
}

.img4 {
    transform: rotate(15deg) translate(120px, 80px);
}

.img5 {
    transform: rotate(-25deg) translate(-140px, 110px);
}

.img6 {
    transform: rotate(4deg) translate(30px, -20px);
}

.img7 {
    transform: translate(0, 160px);
    width: 260px;
    max-width: 260px;
    z-index: 5;
}

.collage-img:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 100 !important;
}

/* 视频与按钮 */
.video-block {
    flex: 1;
    width: 100%;
    max-width: 50%;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-iframe {
    width: 100%;
    height: 100%;
}

.hidden-iframe {
    display: none;
}

.video-switcher {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.vid-btn {
    font-family: var(--font-handwriting);
    font-size: 1.6rem;
    font-weight: normal;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    letter-spacing: 1px;
}

    .vid-btn.active, .vid-btn:hover {
        color: var(--cyber-accent);
        border-bottom-color: var(--cyber-accent);
    }

/* 歌单 */
.tracklist {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

    .track-item:hover {
        padding-left: 15px;
        border-bottom-color: var(--cyber-accent);
    }

.track-num {
    font-family: var(--font-display);
    font-size: 1.1rem;
    opacity: 0.5;
    margin-right: 30px;
}

.track-hw {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    color: #fff;
    line-height: 1;
    transition: color 0.3s;
}

.track-item:hover .track-hw {
    color: var(--cyber-accent);
}

/* SVG 图标 */
.platform-icons {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.plat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

    .plat-icon svg, .plat-icon img.custom-plat-img {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        object-fit: contain;
        display: block;
        fill: #fff;
        transition: 0.3s;
    }

.custom-plat-img {
    filter: brightness(0) invert(1) !important;
}

.plat-icon:hover {
    background: #fff;
    transform: translateY(-5px);
}

    .plat-icon:hover svg {
        fill: var(--deep-red);
    }

    .plat-icon:hover img.custom-plat-img {
        filter: brightness(0) !important;
    }

/* GAV 排版 */
.gav-profile {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 1000px;
    width: 100%;
}

.gav-photo-wrapper {
    width: 280px;
    height: 380px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: -20px 20px 0 rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.gav-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gav-info {
    flex: 1;
    text-align: left;
}

.gav-hw-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

        .social-links a svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.5;
        }

        .social-links a:hover {
            background: var(--cyber-accent);
            color: var(--melancholic-blue);
            transform: translateY(-3px);
        }

/* 签名 */
.gav-signature-absolute-bottom {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    z-index: 50;
}

/* 提示与页脚 */
.scroll-prompt {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    z-index: 100;
    font-weight: 700;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
    margin-top: 10px;
}

.site-footer {
    position: absolute;
    bottom: 10px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.6rem;
    opacity: 0.4;
    z-index: 100;
    letter-spacing: 1px;
}

/* 弹窗系统 */
.custom-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden-modal {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    cursor: pointer;
}

.text-modal-content {
    position: relative;
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.2);
    width: 90%;
    max-width: 600px;
    max-height: 75vh;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.modal-scroll-area {
    overflow-y: auto;
    padding-right: 15px;
}

    .modal-scroll-area::-webkit-scrollbar {
        width: 6px;
    }

    .modal-scroll-area::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 3px;
    }

.modal-hw-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--cyber-accent);
}

.modal-p {
    font-family: var(--font-tc-hw);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 20px;
    color: #ccc;
}

.modal-signature-white {
    width: 120px;
    margin: 30px auto 0;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

#expanded-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    border: 2px solid rgba(255,255,255,0.1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    font-family: var(--font-display);
}

    .modal-close:hover {
        color: #fff;
        transform: scale(1.1);
    }

.text-modal-content .modal-close {
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

    .reveal-up.active {
        opacity: 1;
        transform: translateY(0);
    }

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   手機端防爆裝甲 (Media Query)
========================================= */

@media (max-width: 900px) {
    /* 【修復】高級玻璃磨砂導航欄，不會死黑 */
    #navbar {
        flex-direction: column;
        padding: 15px 20px;
        background: linear-gradient(to bottom, rgba(10, 21, 42, 0.7) 0%, rgba(10, 21, 42, 0.1) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-logo {
        position: static;
        height: 60px;
        margin-bottom: 15px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        padding: 0;
    }

    /* 解除全屏滾動限制，允許自由滑動 */
    #scroll-container {
        scroll-snap-type: none;
    }

    /* 頂部留出 180px 安全距離，防止內容鑽進導航欄被遮擋 */
    .snap-section {
        height: auto;
        min-height: 100vh;
        padding: 180px 20px 80px 20px;
        justify-content: flex-start;
        scroll-snap-align: none;
    }

    /* 左右雙欄強制改為上下單欄堆疊，絕對不會重疊 */
    .content-section, .content-section.reverse, .ep-showcase {
        flex-direction: column;
        gap: 40px;
        width: 100%;
        margin: 0;
    }

    /* 提升文字層的層級，保證永遠在上面 */
    .text-block, .ep-text {
        max-width: 100%;
        width: 100%;
        text-align: center;
        position: relative;
        z-index: 50;
    }

    .ep-cover-wrapper, .collage-block, .video-block, .gav-profile {
        max-width: 100%;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .ep-main-title {
        font-size: 3.2rem;
        margin-bottom: 10px;
    }

    .section-desc, .ep-desc-text, .gav-bio {
        text-align: left;
        font-size: 1.1rem;
    }

    .main-cover {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }

    /* 【修復】照片牆從頂部向下縮小，不會往上擠蓋住文字 */
    .collage-block {
        height: 350px;
        transform: scale(0.55);
        transform-origin: top center;
        margin-top: 20px;
        margin-bottom: -150px; /* 抵消縮小後留下的高度空隙 */
    }

    .gav-profile {
        flex-direction: column;
        gap: 30px;
    }

    .gav-photo-wrapper {
        width: 220px;
        height: 300px;
        margin: 0 auto;
    }

    .gav-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    #cyber-dialog {
        width: 95%;
        padding: 40px 20px 20px;
        margin-top: 20px;
    }

    .text-inner {
        font-size: 1rem;
    }

    #written-name {
        font-size: 2.5rem;
        left: 20px;
    }

    .gav-signature-absolute-bottom {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 40px auto 0 auto;
    }

    .site-footer {
        position: relative;
        bottom: auto;
        margin-top: 20px;
        padding: 20px 0;
    }

    .scroll-prompt {
        display: none;
    }
}
