/* ==================== 基础设定 ==================== */
:root {
    --night-deep: #0a0e27;
    --night-mid: #141b3d;
    --night-soft: #1a2347;
    --twilight-orange: #ff6b35;
    --twilight-pink: #ff8e7f;
    --twilight-gold: #ffd93d;
    --twilight-purple: #6b5b95;
    --red-cord: #e94560;
    --red-cord-soft: #c0392b;
    --text-light: #f0f0f5;
    --text-soft: #c5c5d2;
    --text-dim: #8888a0;
    --glass-bg: rgba(10, 14, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", "宋体", serif;
    --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "微软雅黑", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: var(--font-sans);
    background: var(--night-deep);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.8;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== 星空粒子 ==================== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==================== 导航栏 ==================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 16px 0;
}

#navbar.scrolled {
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-jp {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.logo-cn {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red-cord);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--twilight-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s;
}

/* ==================== Hero ==================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 39, 0.5) 0%,
        rgba(10, 14, 39, 0.3) 40%,
        rgba(10, 14, 39, 0.7) 80%,
        rgba(10, 14, 39, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    animation: heroFadeIn 2s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-date {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--twilight-gold);
    margin-bottom: 24px;
    font-weight: 300;
}

.hero-title {
    font-family: var(--font-serif);
    line-height: 1.1;
    margin-bottom: 28px;
}

.title-jp {
    display: block;
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--text-light);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 217, 61, 0.2);
    letter-spacing: 0.03em;
}

.title-cn {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-soft);
    letter-spacing: 0.4em;
    margin-top: 12px;
}

.hero-tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-soft);
    letter-spacing: 0.15em;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ==================== 通用 Section ==================== */
section {
    position: relative;
    padding: 120px 0;
}

.section-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.section-label.center {
    align-items: center;
    text-align: center;
}

.label-en {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--red-cord);
    font-weight: 500;
}

.label-jp {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-dim);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 48px;
    color: var(--text-light);
}

.section-title.center {
    text-align: center;
}

.section-title.light {
    color: var(--text-light);
}

/* ==================== Story ==================== */
#story {
    overflow: hidden;
}

.story-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.92), rgba(20, 27, 61, 0.85));
}

.story-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.story-text p {
    font-size: 1.05rem;
    line-height: 2.2;
    color: var(--text-soft);
    margin-bottom: 20px;
    font-weight: 300;
}

.story-highlight {
    font-family: var(--font-serif) !important;
    font-size: 1.3rem !important;
    color: var(--twilight-gold) !important;
    margin-top: 32px !important;
    font-style: italic;
}

/* ==================== Characters ==================== */
#characters {
    background: linear-gradient(180deg, var(--night-deep), var(--night-mid));
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.char-card {
    background: rgba(20, 27, 61, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s, border-color 0.4s;
}

.char-card:hover {
    transform: translateY(-8px);
    border-color: var(--red-cord);
}

.char-image {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.char-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.char-card:hover .char-image img {
    transform: scale(1.05);
}

.char-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.char-overlay p {
    font-family: var(--font-serif);
    color: var(--twilight-gold);
    font-size: 1rem;
    font-style: italic;
}

.char-info {
    padding: 28px;
}

.char-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--red-cord);
    border: 1px solid var(--red-cord);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
}

.char-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 8px;
}

.char-info h3 span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: 8px;
}

.char-age {
    color: var(--twilight-pink);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.char-desc {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
}

/* ==================== Concepts ==================== */
#concepts {
    overflow: hidden;
}

.concepts-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.concepts-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.88);
}

.concepts-intro {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--twilight-pink);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 56px;
    line-height: 2;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.concept-card {
    background: rgba(20, 27, 61, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s;
}

.concept-card:hover {
    background: rgba(20, 27, 61, 0.8);
    transform: translateY(-4px);
}

.concept-card.highlight {
    border-color: var(--red-cord);
    background: rgba(233, 69, 96, 0.08);
}

.concept-card.highlight:hover {
    background: rgba(233, 69, 96, 0.15);
}

.concept-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.concept-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
}

.concept-jp {
    font-size: 0.85rem;
    color: var(--twilight-gold);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.concept-card p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.9;
    font-weight: 300;
}

/* ==================== Timeline ==================== */
#timeline {
    background: linear-gradient(180deg, var(--night-mid), var(--night-deep));
}

.timeline-wrap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--red-cord), var(--twilight-gold), var(--red-cord), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 48px;
    margin-bottom: 16px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 32px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--night-deep);
    border: 2px solid var(--red-cord);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-item.highlight-item .timeline-dot {
    background: var(--twilight-gold);
    border-color: var(--twilight-gold);
    box-shadow: 0 0 20px var(--twilight-gold);
}

.timeline-content {
    background: rgba(20, 27, 61, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--red-cord);
    transform: scale(1.02);
}

.timeline-date {
    display: block;
    font-size: 0.8rem;
    color: var(--twilight-pink);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ==================== Gallery ==================== */
#gallery {
    background: var(--night-deep);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s, filter 0.4s;
    filter: brightness(0.85);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

.gallery-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}

.gallery-item:hover .gallery-cap {
    opacity: 1;
    transform: translateY(0);
}

.gallery-cap span {
    font-family: var(--font-serif);
    color: var(--twilight-gold);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ==================== Quotes ==================== */
#quotes {
    overflow: hidden;
}

.quotes-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.quotes-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.85);
}

.quotes-slider {
    max-width: 800px;
    margin: 0 auto;
    min-height: 280px;
    position: relative;
}

.quote-slide {
    display: none;
    text-align: center;
    animation: quoteFade 0.8s ease;
}

.quote-slide.active {
    display: block;
}

@keyframes quoteFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-jp {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: var(--twilight-gold);
    line-height: 2;
    margin-bottom: 24px;
    font-style: italic;
}

.quote-cn {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.quote-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--twilight-gold);
    transform: scale(1.3);
}

/* ==================== Music ==================== */
#music {
    overflow: hidden;
}

.music-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.music-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9), rgba(20, 27, 61, 0.85));
}

.music-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.music-text p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 20px;
    font-weight: 300;
}

.music-text strong {
    color: var(--twilight-gold);
}

.music-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red-cord);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-top: 8px;
    display: block;
}

.music-tracks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(20, 27, 61, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.track:hover {
    border-color: var(--twilight-gold);
    background: rgba(20, 27, 61, 0.7);
    transform: translateX(8px);
}

.track-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--twilight-gold);
    opacity: 0.5;
    min-width: 32px;
}

.track-info {
    flex: 1;
}

.track-info h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.track-info p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.track-jp {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.track-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(233, 69, 96, 0.15);
    color: var(--red-cord);
    transition: all 0.3s;
    flex-shrink: 0;
}

.track:hover .track-play {
    background: var(--red-cord);
    color: var(--text-light);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.track-play svg {
    transition: transform 0.3s;
}

.track:hover .track-play svg {
    transform: translateX(2px);
}

/* ==================== 音乐播放器模态框 ==================== */
#musicModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#musicModal.active {
    display: flex;
    animation: mmFade 0.3s ease;
}

@keyframes mmFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.music-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.music-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(160deg, var(--night-mid), var(--night-deep));
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 32px 28px 24px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 142, 127, 0.1);
    animation: mmSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mmSlide {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.music-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 3;
}

.music-modal-close:hover {
    color: var(--red-cord);
    transform: rotate(90deg);
}

.music-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.music-modal-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    flex-shrink: 0;
}

.music-modal-eq span {
    display: block;
    width: 3px;
    background: linear-gradient(to top, var(--red-cord), var(--twilight-gold));
    border-radius: 2px;
    animation: eqBar 1s ease-in-out infinite;
}

.music-modal-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.music-modal-eq span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.music-modal-eq span:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.music-modal-eq span:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.music-modal-eq span:nth-child(5) { height: 50%; animation-delay: 0.6s; }

@keyframes eqBar {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.music-modal-title-wrap h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.music-modal-title-wrap p {
    font-size: 0.85rem;
    color: var(--twilight-pink);
    letter-spacing: 0.05em;
}

.music-modal-player {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 16px;
}

.music-modal-player audio {
    display: none;
}

.music-source-label {
    display: block;
    font-size: 13px;
    color: var(--twilight-gold);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.music-modal-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-cord), #c0392b);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.ctrl-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.5);
}

.ctrl-btn:active {
    transform: scale(0.95);
}

.ctrl-btn.small {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

.ctrl-btn.small:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: height 0.2s;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, var(--red-cord), var(--twilight-gold));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--twilight-gold);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    left: 0%;
    box-shadow: 0 0 8px rgba(255, 217, 61, 0.6);
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volumeSlider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--twilight-gold);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(255, 217, 61, 0.5);
}

#volumeSlider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--twilight-gold);
    cursor: pointer;
    border: none;
}

.icon-pause {
    display: none;
}

.music-modal-player.playing .icon-play {
    display: none;
}

.music-modal-player.playing .icon-pause {
    display: block;
}

.music-modal-player.loading .ctrl-btn {
    opacity: 0.7;
    pointer-events: none;
}

.music-modal-player.loading .ctrl-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.music-modal-tip {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    opacity: 0.7;
}

.music-modal-link {
    display: block;
    text-align: center;
    color: var(--twilight-gold);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 10px;
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.music-modal-link:hover {
    background: rgba(255, 217, 61, 0.1);
    border-color: var(--twilight-gold);
    transform: translateY(-2px);
}

@media (max-width: 500px) {
    .music-modal-content {
        padding: 24px 20px 18px;
    }

    .music-modal-title-wrap h3 {
        font-size: 1.3rem;
    }

    .track-jp {
        display: none;
    }
}

/* ==================== Twilight Clock ==================== */
#twilight-clock {
    background: linear-gradient(180deg, var(--night-deep), #0d1228);
    text-align: center;
}

.clock-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.clock-label {
    margin-bottom: 32px;
}

.clock-display {
    margin: 24px 0;
}

#clockTime {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--twilight-gold);
    text-shadow: 0 0 40px rgba(255, 217, 61, 0.3);
    letter-spacing: 0.05em;
}

.clock-desc {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 2;
    margin: 24px 0 16px;
    font-weight: 300;
}

.clock-countdown {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--twilight-pink);
    letter-spacing: 0.05em;
    min-height: 32px;
}

/* ==================== Footer ==================== */
footer {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.9), rgba(10, 14, 39, 0.98));
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px;
    max-width: 700px;
}

.footer-title {
    margin-bottom: 32px;
}

.ft-jp {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.05em;
}

.ft-cn {
    display: block;
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 0.3em;
    margin-top: 8px;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--twilight-gold);
    font-style: italic;
    margin-bottom: 40px;
    line-height: 2;
}

.footer-info p {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 2;
    font-weight: 300;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--red-cord);
    margin: 40px auto;
}

.footer-credit {
    color: var(--text-dim);
    font-size: 0.75rem;
    line-height: 1.8;
    opacity: 0.6;
}

/* ==================== 背景音乐 ==================== */
.bgm-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 27, 46, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--twilight-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.bgm-toggle:hover {
    background: rgba(45, 27, 46, 0.95);
    transform: scale(1.08);
}

.bgm-toggle.playing .bgm-icon-playing {
    animation: bgmSpin 3s linear infinite;
}

@keyframes bgmSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Lightbox ==================== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
}

#lightbox.active {
    display: flex;
    animation: lbFade 0.3s ease;
}

@keyframes lbFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

#lightboxImg {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}

.lightbox-close:hover {
    color: var(--red-cord);
    transform: rotate(90deg);
}

/* ==================== 滚动动画 ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item.large,
    .gallery-item.tall {
        grid-row: span 1;
    }

    .music-content {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 48px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item.left {
        left: 0;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }

    .story-bg,
    .concepts-bg,
    .quotes-bg,
    .music-bg {
        background-attachment: scroll;
    }

    .music-stats {
        gap: 24px;
    }

    section {
        padding: 80px 0;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        grid-column: span 1;
    }

    .char-image {
        height: 340px;
    }

    .music-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
}
