/* ==========================================================================
   无极·玄音 — 全局设计系统 (style.css)
   ========================================================================== */

/* --- 1. 根变量 & 设计令牌 --- */
:root {
    /* 色彩系统 */
    --bg-void:        #030408;
    --bg-deep:        #060810;
    --bg-card:        rgba(255, 255, 255, 0.032);
    --bg-card-hover:  rgba(255, 255, 255, 0.058);
    --border-subtle:  rgba(201, 162, 39, 0.12);
    --border-card:    rgba(201, 162, 39, 0.18);
    --border-active:  rgba(201, 162, 39, 0.6);

    --gold:           #c9a227;
    --gold-light:     #e8c84a;
    --gold-dim:       rgba(201, 162, 39, 0.5);
    --gold-glow:      rgba(201, 162, 39, 0.25);
    --jade:           #2db87a;
    --jade-dim:       rgba(45, 184, 122, 0.4);
    --jade-glow:      rgba(45, 184, 122, 0.15);
    --purple:         #8b6fcf;
    --purple-dim:     rgba(139, 111, 207, 0.4);

    --text-white:     #f0ede8;
    --text-warm:      #d4c9a8;
    --text-grey:      #7a7468;
    --text-faint:     #3a3530;

    /* 字体 */
    --font-serif:   'Noto Serif SC', serif;
    --font-title:   'Cinzel', serif;
    --font-ui:      'Outfit', sans-serif;

    /* 过渡 */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
    --trans-fast:   all 0.2s var(--ease-out);
    --trans-smooth: all 0.4s var(--ease-out);
    --trans-slow:   all 0.8s var(--ease-out);
}

/* --- 2. 基础重置 --- */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-warm);
    font-family: var(--font-serif);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

img { display: block; width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input[type="range"] { cursor: none; }

.hidden { display: none !important; }

/* --- 3. 全局Canvas层 --- */
#cosmos-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* --- 4. 自定义鼠标指针 --- */
#cursor-ring {
    position: fixed;
    width: 34px; height: 34px;
    border: 1.5px solid var(--gold-dim);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
#cursor-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
body.cursor-hover #cursor-ring {
    width: 50px; height: 50px;
    border-color: var(--gold);
    background: var(--gold-glow);
}

/* 移动端/触摸屏设备隐藏自定义鼠标，并恢复默认指针行为 */
@media (pointer: coarse) {
    body, button, input[type="range"], .prog-bar-track {
        cursor: auto !important;
    }
    #cursor-ring, #cursor-dot {
        display: none !important;
    }
}

/* --- 5. 顶部导航栏 --- */
#main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--trans-smooth);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    gap: 20px;
    transition: var(--trans-smooth);
}
#main-header.scrolled .header-inner {
    background: rgba(3, 4, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 5%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-emblem {
    width: 40px; height: 40px;
    color: var(--gold);
    animation: logoSpin 30s linear infinite;
}
@keyframes logoSpin {
    to { transform: rotate(360deg); }
}
.logo-svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-cn {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.3rem;
}
.logo-sub {
    font-family: var(--font-title);
    font-size: 0.5rem;
    color: var(--gold);
    letter-spacing: 0.2rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 5px;
    align-items: center;
}
.nav-link {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.15rem;
    color: var(--text-grey);
    padding: 6px 14px;
    border-radius: 4px;
    position: relative;
    transition: var(--trans-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 1px;
    background: var(--gold);
    transition: var(--trans-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--gold);
}
.nav-link:hover::after, .nav-link.active::after {
    left: 14%; right: 14%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.icon-action-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-grey);
    border-radius: 50%;
    transition: var(--trans-fast);
}
.icon-action-btn:hover { color: var(--gold); }
.icon-action-btn.muted { color: var(--text-faint); }
.header-divider {
    width: 1px; height: 20px;
    background: var(--border-subtle);
}
.admin-entrance {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    color: var(--text-grey);
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: var(--trans-fast);
}
.admin-entrance:hover {
    color: var(--gold);
    border-color: var(--border-active);
    background: var(--gold-glow);
}

/* --- 6. 通用区块结构 --- */
.section-fullscreen {
    position: relative;
    width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.section-content {
    position: relative;
    padding: 100px 5% 80px;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-kicker {
    font-family: var(--font-title);
    font-size: 0.65rem;
    letter-spacing: 0.35rem;
    color: var(--gold-dim);
    display: block;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.4rem;
    margin-bottom: 12px;
}
.title-accent { color: var(--gold); }
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-grey);
    letter-spacing: 0.2rem;
    margin-bottom: 24px;
}
.section-line {
    width: 60px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto;
}

/* --- 7. 玻璃卡片 --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* --- 8. 按钮系统 --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.2rem;
    color: var(--bg-void);
    background: var(--gold);
    transition: var(--trans-smooth);
}
.btn-primary .btn-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    position: relative;
    z-index: 1;
}
.btn-primary .btn-glow {
    position: absolute;
    inset: -2px;
    background: radial-gradient(ellipse at center, var(--gold-light), transparent 70%);
    opacity: 0;
    transition: var(--trans-smooth);
    border-radius: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--gold-glow), 0 0 0 1px var(--gold-light);
}
.btn-primary:hover .btn-glow { opacity: 0.5; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 13px 30px;
    border-radius: 40px;
    border: 1px solid var(--border-active);
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.2rem;
    color: var(--gold);
    transition: var(--trans-smooth);
}
.btn-ghost:hover {
    background: var(--gold-glow);
    transform: translateY(-2px);
}

/* --- 9. 首屏 HERO --- */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 12s ease-out;
    z-index: 0;
}
.hero-bg.loaded { transform: scale(1); }
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(3,4,8,0.3) 0%, rgba(3,4,8,0.85) 80%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 80px 5% 0;
}

/* 八卦旋转环 */
.bagua-ring-container {
    position: relative;
    width: 260px; height: 260px;
    margin-bottom: 10px;
}
.bagua-outer-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    animation: ringRotate 60s linear infinite;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='8' r='3' fill='rgba(201,162,39,0.6)'/%3E%3Ccircle cx='100' cy='192' r='3' fill='rgba(201,162,39,0.6)'/%3E%3Ccircle cx='8' cy='100' r='3' fill='rgba(201,162,39,0.6)'/%3E%3Ccircle cx='192' cy='100' r='3' fill='rgba(201,162,39,0.6)'/%3E%3Ccircle cx='29' cy='29' r='2.5' fill='rgba(201,162,39,0.5)'/%3E%3Ccircle cx='171' cy='29' r='2.5' fill='rgba(201,162,39,0.5)'/%3E%3Ccircle cx='29' cy='171' r='2.5' fill='rgba(201,162,39,0.5)'/%3E%3Ccircle cx='171' cy='171' r='2.5' fill='rgba(201,162,39,0.5)'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}
.bagua-middle-ring {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px dashed rgba(201, 162, 39, 0.2);
    animation: ringRotate 40s linear infinite reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.taiji-center {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.taiji-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: taijiFloat 8s ease-in-out infinite;
}
@keyframes taijiFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.04) rotate(3deg); }
}
.taiji-aura {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 45%, var(--gold-glow) 70%, transparent 85%);
    animation: auraPulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes auraPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

.hero-text-group { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-kicker {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 0.4rem;
    color: var(--gold-dim);
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 0.5rem;
    line-height: 1;
    display: flex; align-items: center; gap: 16px;
}
.title-cn { position: relative; }
.title-sep {
    color: var(--gold);
    font-size: 0.6em;
    font-weight: 300;
    opacity: 0.7;
}
.hero-verse {
    font-size: 0.95rem;
    color: var(--text-grey);
    letter-spacing: 0.1rem;
    font-weight: 300;
    max-width: 480px;
    line-height: 2;
}
.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-instruments {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.instrument-badge {
    padding: 5px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-grey);
    letter-spacing: 0.1rem;
    background: rgba(201, 162, 39, 0.04);
    transition: var(--trans-fast);
}
.instrument-badge:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: var(--gold-glow);
}

/* 滚动引导 */
.scroll-guide {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.scroll-label {
    font-family: var(--font-title);
    font-size: 0.6rem;
    letter-spacing: 0.25rem;
    color: var(--text-grey);
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--gold-dim), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* 入场动画 */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s var(--ease-out) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Intersection Observer触发的入场 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-card {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.7s var(--ease-out) var(--delay, 0s),
                transform 0.7s var(--ease-out) var(--delay, 0s);
}
.reveal-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- 10. 道源 哲学卡片 --- */
.phil-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1100px) {
    .phil-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .phil-grid { grid-template-columns: repeat(2, 1fr); }
}

.phil-card-wrapper {
    height: 340px;
    position: relative;
}
.phil-card {
    width: 100%; height: 100%;
    position: relative;
}

/* 正面：默认显示 */
.phil-card-front {
    position: absolute;
    inset: 0;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}
/* 正面隐藏态 */
.phil-card-front.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* 背面：默认隐藏 */
.phil-card-back {
    position: absolute;
    inset: 0;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
    gap: 10px;
    background: #0a0c14;
    border: 1px solid var(--border-card);
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
    pointer-events: none;
}
/* 背面显示态 */
.phil-card-back.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* hover 光效只在正面未隐藏时生效 */
.phil-card-wrapper:hover .phil-card-front:not(.hidden) .card-glow { opacity: 1; }

.card-glow {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80%; height: 60%;
    background: radial-gradient(ellipse at bottom, var(--gold-glow), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--trans-smooth);
}
.phil-card-wrapper:hover .card-glow { opacity: 1; }

.card-idx, .back-idx {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--gold-dim);
    letter-spacing: 0.15rem;
}
.card-icon-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-dim);
    background: rgba(201, 162, 39, 0.05);
    transition: var(--trans-smooth);
}
.phil-card-wrapper:hover .card-icon-circle {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: var(--gold-glow);
}
.card-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.3rem;
}
.card-hint {
    font-size: 0.72rem;
    color: var(--text-faint);
    letter-spacing: 0.1rem;
    transition: var(--trans-smooth);
}
.phil-card-wrapper:hover .card-hint { color: var(--gold-dim); }

.back-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.2rem;
    margin-top: 4px;
}
.back-desc {
    font-size: 0.82rem;
    color: var(--text-warm);
    line-height: 1.9;
    font-weight: 300;
}
.back-quote {
    font-size: 0.78rem;
    color: var(--gold-dim);
    font-style: italic;
    letter-spacing: 0.05rem;
    line-height: 1.8;
    border-left: 2px solid var(--gold-dim);
    padding-left: 10px;
    margin-top: 6px;
}

/* --- 11. 天籁 音乐播放器 --- */
.music-stage {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto 50px;
    overflow: hidden;
}
@media (max-width: 900px) {
    .music-stage { grid-template-columns: 1fr; }
}

.music-visual {
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 30px;
    border-right: 1px solid var(--border-card);
    position: relative;
}
.mandala-container {
    position: relative;
    width: 280px; height: 280px;
}
#mandala-canvas {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px) !important;
    height: calc(100% + 80px) !important;
    border-radius: 50%;
}
.mandala-taiji-wrap {
    position: relative;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-card);
}
.yin-yang-disc {
    width: 100%; height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: animation-play-state 0.3s;
}
.yin-yang-disc.spinning {
    animation: yyRotate 8s linear infinite;
}
@keyframes yyRotate { to { transform: rotate(360deg); } }
.yy-yin, .yy-yang {
    position: absolute;
    width: 100%; height: 50%;
}
.yy-yin {
    top: 0;
    background: linear-gradient(135deg, #0d1117 0%, #1a2030 100%);
}
.yy-yang {
    bottom: 0;
    background: linear-gradient(135deg, #e8e0d0 0%, #d0c8b8 100%);
}
.yy-yin::before, .yy-yin::after,
.yy-yang::before, .yy-yang::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 50%; height: 100%;
    left: 25%;
}
.yy-yin::before { background: #0d1117; top: -50%; }
.yy-yin::after  { background: #e8e0d0; bottom: -50%; }
.yy-yang::before { background: #e8e0d0; top: -50%; }
.yy-yang::after  { background: #0d1117; bottom: -50%; }

.now-playing-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-grey);
    letter-spacing: 0.1rem;
}
.npb-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold-dim);
    animation: pulseDot 2s ease-in-out infinite;
}
.now-playing-badge.active .npb-pulse {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
}
@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.music-console {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.track-info-display {}
.track-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.15rem;
    margin-bottom: 6px;
}
.track-desc {
    font-size: 0.85rem;
    color: var(--text-grey);
    line-height: 1.8;
    font-weight: 300;
}

/* 进度区 */
.progress-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.time-cur, .time-tot {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-grey);
    min-width: 38px;
}
.time-tot { text-align: right; }
.prog-bar-track {
    flex: 1;
    height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    position: relative;
    overflow: visible;
    cursor: none;
}
.prog-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--jade), var(--gold));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}
.prog-bar-thumb {
    position: absolute;
    top: 50%; right: 0;
    transform: translate(50%, -50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
    opacity: 0;
    transition: opacity 0.2s;
}
.prog-bar-track:hover .prog-bar-thumb { opacity: 1; }

/* 控制按键 */
.ctrl-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.ctrl-btn {
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-grey);
    transition: var(--trans-fast);
    flex-shrink: 0;
}
.ctrl-btn:hover { color: var(--gold); }
.ctrl-btn.active-state { color: var(--gold); }
.ctrl-sm {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
}
.ctrl-md {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-card);
}
.ctrl-lg {
    width: 60px; height: 60px;
    background: var(--gold);
    color: var(--bg-void) !important;
    box-shadow: 0 0 20px var(--gold-glow);
}
.ctrl-lg:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--gold-glow), 0 0 0 4px rgba(201,162,39,0.15);
}

/* 音量 */
.volume-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vol-icon-btn {
    color: var(--text-grey);
    transition: var(--trans-fast);
}
.vol-icon-btn:hover { color: var(--gold); }
.vol-slider-wrap { flex: 1; }
.vol-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    outline: none;
}
.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold-glow);
}
.vol-val {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    color: var(--text-grey);
    min-width: 25px;
    text-align: right;
}

/* 曲库列表 */
.tracklist-section { display: flex; flex-direction: column; gap: 8px; }
.tracklist-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}
.tl-title {
    font-size: 0.78rem;
    color: var(--gold-dim);
    letter-spacing: 0.2rem;
}
.tl-count {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-family: var(--font-ui);
}
.tracklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-subtle) transparent;
}
.tracklist::-webkit-scrollbar { width: 3px; }
.tracklist::-webkit-scrollbar-track { background: transparent; }
.tracklist::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 2px; }

.track-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--trans-fast);
    position: relative;
    overflow: hidden;
}
.track-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    opacity: 0;
    transition: opacity 0.2s;
}
.track-item:hover::before { opacity: 1; }
.track-item:hover { border-color: var(--border-subtle); }
.track-item.active {
    border-color: var(--border-active);
    background: var(--gold-glow);
}
.track-num {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: var(--gold-dim);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.track-item.active .track-num { color: var(--gold); }
.track-meta { flex: 1; min-width: 0; }
.track-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-warm);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-item.active .track-name { color: var(--gold-light); }
.track-intro {
    font-size: 0.75rem;
    color: var(--text-grey);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
    font-weight: 300;
}
.track-bars {
    display: flex; align-items: flex-end; gap: 2px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.track-item.active .track-bars { opacity: 1; }
.track-bars span {
    width: 3px;
    border-radius: 1px;
    background: var(--gold);
    animation: barBounce 0.8s ease-in-out infinite alternate;
}
.track-bars span:nth-child(1) { animation-delay: 0s; height: 8px; }
.track-bars span:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.track-bars span:nth-child(3) { animation-delay: 0.4s; height: 6px; }
@keyframes barBounce {
    from { transform: scaleY(0.4); opacity: 0.5; }
    to   { transform: scaleY(1); opacity: 1; }
}

/* 五器展示栏 */
.instruments-showcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}
.inst-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: default;
    transition: var(--trans-fast);
}
.inst-item:hover { transform: translateY(-4px); }
.inst-orb {
    width: 58px; height: 58px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: radial-gradient(circle at 40% 40%, var(--gold-glow), transparent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold-dim);
    transition: var(--trans-smooth);
}
.inst-item:hover .inst-orb,
.inst-item.active .inst-orb {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
    box-shadow: 0 0 20px var(--gold-glow);
}
.inst-name {
    font-size: 0.85rem;
    color: var(--text-warm);
    letter-spacing: 0.1rem;
}
.inst-sub {
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 0.05rem;
}

/* --- 12. 仙境 画廊 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: var(--trans-smooth);
    background: var(--bg-card);
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.gallery-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.gallery-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3,4,8,0.9) 0%, transparent 50%);
    display: flex; align-items: flex-end;
    opacity: 0;
    transition: var(--trans-smooth);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-content {
    padding: 20px;
    transform: translateY(10px);
    transition: transform 0.4s var(--ease-out);
}
.gallery-card:hover .gallery-overlay-content { transform: translateY(0); }
.gallery-overlay-content h4 {
    font-size: 1rem;
    color: var(--text-white);
    letter-spacing: 0.1rem;
    margin-bottom: 4px;
}
.gallery-overlay-content p {
    font-size: 0.78rem;
    color: var(--gold-dim);
}
.gallery-caption {
    padding: 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.gallery-tag {
    font-family: var(--font-title);
    font-size: 0.6rem;
    letter-spacing: 0.2rem;
    color: var(--gold-dim);
}
.gallery-title {
    font-size: 0.9rem;
    color: var(--text-warm);
    letter-spacing: 0.1rem;
}

/* --- 13. 内观 冥想区 --- */
.meditation-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.25) saturate(0.6);
    z-index: 0;
}
.meditation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3,4,8,0.6), rgba(3,4,8,0.4), rgba(3,4,8,0.7));
    z-index: 1;
}
.meditation-inner {
    position: relative; z-index: 2;
    width: 100%;
}

.meditation-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}
@media (max-width: 700px) { .meditation-stage { grid-template-columns: 1fr; } }

.breath-visual {
    padding: 40px 30px;
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    border-right: 1px solid var(--border-card);
}
.breath-sphere-wrap {
    position: relative;
    width: 180px; height: 180px;
    display: flex; align-items: center; justify-content: center;
}
.breath-ring-1, .breath-ring-2, .breath-ring-3 {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--jade-dim);
}
.breath-ring-1 { inset: 0; }
.breath-ring-2 { inset: -18px; border-color: rgba(45, 184, 122, 0.2); }
.breath-ring-3 { inset: -36px; border-color: rgba(45, 184, 122, 0.1); }

.breath-core {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45,184,122,0.15), rgba(45,184,122,0.04));
    border: 1px solid var(--jade-dim);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}
.breath-inner-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--jade-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}
.breath-label {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--jade);
    letter-spacing: 0.2rem;
}
.breath-count {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--jade-dim);
}
/* 呼吸动画状态 */
.breath-sphere-wrap.inhaling .breath-core {
    transform: scale(1.3);
    box-shadow: 0 0 30px var(--jade-glow);
}
.breath-sphere-wrap.inhaling .breath-inner-glow { opacity: 1; }
.breath-sphere-wrap.exhaling .breath-core { transform: scale(0.85); }
.breath-sphere-wrap.holding .breath-core { transform: scale(1.1); }

.breath-phase-bar {
    display: flex;
    gap: 4px;
    width: 100%;
}
.phase-seg {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 0.68rem;
    color: var(--text-faint);
    letter-spacing: 0.05rem;
}
.phase-seg span { color: var(--text-grey); }
.phase-fill {
    width: 100%; height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.phase-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--jade);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s linear;
}
.phase-seg.active .phase-fill::after { transform: scaleX(1); }
.phase-seg.active { color: var(--jade); }
.phase-seg.active span { color: var(--jade); }

.breath-timer-display {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    color: var(--jade);
    letter-spacing: 0.2rem;
    opacity: 0.8;
}

.breath-info {
    padding: 36px 30px;
    display: flex; flex-direction: column; gap: 18px;
}
.breath-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.2rem;
}
.breath-desc {
    font-size: 0.84rem;
    color: var(--text-warm);
    line-height: 2;
    font-weight: 300;
}

.breath-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.bs-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bs-num {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jade);
    line-height: 1;
}
.bs-unit { font-size: 0.65rem; color: var(--jade-dim); }
.bs-label { font-size: 0.7rem; color: var(--text-grey); margin-top: 4px; letter-spacing: 0.05rem; }

.ambient-section { display: flex; flex-direction: column; gap: 8px; }
.ambient-label { font-size: 0.8rem; color: var(--text-grey); letter-spacing: 0.1rem; }
.ambient-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.amb-btn {
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    color: var(--text-grey);
    font-family: var(--font-serif);
    transition: var(--trans-fast);
}
.amb-btn:hover, .amb-btn.active {
    border-color: var(--jade-dim);
    color: var(--jade);
    background: var(--jade-glow);
}

.session-info {
    display: flex; gap: 20px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}
.si-item { display: flex; flex-direction: column; gap: 3px; }
.si-label { font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.05rem; }
.si-val { font-family: var(--font-ui); font-size: 1rem; color: var(--jade); }

/* --- 14. 箴言轮播 --- */
.quotes-carousel-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.quotes-carousel {
    position: relative;
    min-height: 200px;
    width: 100%;
}
.quote-slide {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    pointer-events: none;
}
.quote-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}
.quote-deco {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--gold-dim);
    line-height: 0.5;
    opacity: 0.5;
}
.quote-deco.right { align-self: flex-end; }
.quote-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-white);
    letter-spacing: 0.1rem;
    line-height: 2;
    font-weight: 300;
    max-width: 600px;
    padding: 0 20px;
}
.quote-src {
    font-family: var(--font-title);
    font-size: 0.65rem;
    letter-spacing: 0.3rem;
    color: var(--gold-dim);
}
.quotes-nav {
    display: flex; align-items: center; gap: 20px;
}
.qnav-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-grey);
    display: flex; align-items: center; justify-content: center;
    transition: var(--trans-fast);
}
.qnav-btn:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-glow); }
.q-dots { display: flex; gap: 8px; }
.q-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    transition: var(--trans-fast);
}
.q-dot.active { background: var(--gold); width: 20px; border-radius: 3px; }

/* --- 15. 页脚 --- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 50px 5%;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}
.footer-brand { text-align: left; }
.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3rem;
    display: block;
    margin-bottom: 6px;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.15rem; }
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--text-grey);
    letter-spacing: 0.1rem;
    transition: var(--trans-fast);
}
.footer-links a:hover { color: var(--gold); }
.footer-tech { text-align: right; }
.footer-tech p { font-size: 0.72rem; color: var(--text-faint); line-height: 1.8; }
.footer-copy { color: var(--gold-dim) !important; margin-top: 6px; }

/* --- 16. 滚动条 --- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 2px; }

/* --- 17. 响应式 --- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand, .footer-tech { text-align: center; }
    .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .music-visual { border-right: none; border-bottom: 1px solid var(--border-card); }
}

/* --- 18. 作者信息组件 --- */

/* Hero 区作者徽章 */
.hero-author-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.hab-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim));
}
.hero-author-badge .hab-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold-dim));
}
.hab-text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    letter-spacing: 0.2rem;
    color: var(--gold-dim);
    white-space: nowrap;
}

/* 天籁区署名条 */
.section-author-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: rgba(201, 162, 39, 0.04);
    font-family: var(--font-serif);
    font-size: 0.78rem;
    letter-spacing: 0.1rem;
}
.sac-icon { color: var(--gold-dim); display: flex; align-items: center; }
.sac-label { color: var(--text-grey); }
.sac-name {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.15rem;
}
.sac-dot { color: var(--gold-dim); }
.sac-copy { color: var(--text-grey); }

/* 页脚作者署名带 */
.footer-author-strip {
    border-top: 1px solid var(--border-subtle);
    padding: 28px 5%;
    background: rgba(201, 162, 39, 0.02);
}
.fas-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.fas-sep {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-subtle), transparent);
}
.fas-content {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.fas-taiji {
    color: var(--gold-dim);
    animation: logoSpin 25s linear infinite;
    flex-shrink: 0;
}
.fas-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}
.fas-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.4rem;
}
.fas-role {
    font-family: var(--font-title);
    font-size: 0.6rem;
    letter-spacing: 0.25rem;
    color: var(--gold-dim);
}
.fas-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
    flex-shrink: 0;
}
.fas-rights {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}
.fas-copy-line {
    font-size: 0.72rem;
    color: var(--text-faint);
    letter-spacing: 0.08rem;
    line-height: 1.7;
}

