/* ========== 主题变量 ========== */
:root {
    --radius: 20px;
    --radius-sm: 12px;
    --font-serif: 'PingFang SC', 'Noto Serif SC', 'Microsoft YaHei', 'Hiragino Sans GB', serif;
    --font-sans: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 夜色星空主题 ========== */
[data-theme="night"] {
    --bg-deep: #070b1a;
    --bg-mid: #0d1329;
    --bg-glow: rgba(70, 90, 180, 0.08);
    --bg-card: rgba(15, 22, 50, 0.5);
    --bg-card-hover: rgba(20, 30, 65, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-color: #5b9fff;
    --accent-glow: rgba(91, 159, 255, 0.35);
    --accent-purple: #a78bfa;
    --accent-gold: #f0d78c;
    --star-color: rgba(200, 220, 255, 0.85);
    --star-halo: rgba(91, 159, 255, 0.12);
    --aurora-1: rgba(30, 60, 120, 0.15);
    --aurora-2: rgba(80, 40, 120, 0.1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(91, 159, 255, 0.15);
    --progress-track: rgba(255, 255, 255, 0.08);
    --mountains-opacity: 0.5;
    --starfield-opacity: 1;
}

/* ========== 晨曦暖光主题 ========== */
[data-theme="dawn"] {
    --bg-deep: #1a1110;
    --bg-mid: #2a1a16;
    --bg-glow: rgba(255, 150, 100, 0.1);
    --bg-card: rgba(40, 25, 20, 0.5);
    --bg-card-hover: rgba(55, 35, 25, 0.65);
    --border-glass: rgba(255, 200, 160, 0.1);
    --border-glass-hover: rgba(255, 180, 140, 0.18);
    --text-primary: #fff5f0;
    --text-secondary: rgba(255, 245, 240, 0.75);
    --text-muted: rgba(255, 245, 240, 0.45);
    --accent-color: #ff8c52;
    --accent-glow: rgba(255, 140, 82, 0.35);
    --accent-purple: #d4a880;
    --accent-gold: #ffd08a;
    --aurora-1: rgba(255, 120, 70, 0.15);
    --aurora-2: rgba(200, 120, 80, 0.1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 140, 82, 0.15);
    --progress-track: rgba(255, 200, 160, 0.1);
    --mountains-opacity: 0.4;
    --starfield-opacity: 0.7;
}

/* ========== 暮色晚霞主题 ========== */
[data-theme="dusk"] {
    --bg-deep: #1a0e1e;
    --bg-mid: #2a1630;
    --bg-glow: rgba(244, 114, 182, 0.1);
    --bg-card: rgba(35, 18, 40, 0.5);
    --bg-card-hover: rgba(50, 25, 55, 0.65);
    --border-glass: rgba(255, 180, 200, 0.1);
    --border-glass-hover: rgba(255, 160, 200, 0.18);
    --text-primary: #fff0f5;
    --text-secondary: rgba(255, 240, 245, 0.75);
    --text-muted: rgba(255, 240, 245, 0.45);
    --accent-color: #f472b6;
    --accent-glow: rgba(244, 114, 182, 0.35);
    --accent-purple: #c084fc;
    --accent-gold: #fbbf24;
    --aurora-1: rgba(240, 100, 180, 0.15);
    --aurora-2: rgba(160, 80, 180, 0.12);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(244, 114, 182, 0.15);
    --progress-track: rgba(255, 180, 200, 0.08);
    --mountains-opacity: 0.45;
    --starfield-opacity: 0.8;
}

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    transition: background 1.5s ease, color 1.5s ease;
}

::selection {
    background: var(--accent-color);
    color: #fff;
}

/* ========== 极光渐变背景层 ========== */
.aurora-bg {
    position: fixed;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    background:
        radial-gradient(ellipse at 20% 50%, var(--aurora-1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, var(--aurora-2) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, var(--bg-glow) 0%, transparent 50%);
    transition: background 1.5s ease;
    animation: auroraDrift 20s ease-in-out infinite;
}

@keyframes auroraDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(2%, -1%) scale(1.02); }
    50% { transform: translate(0, 2%) scale(1.01); }
    75% { transform: translate(-2%, 1%) scale(1.02); }
}

/* ========== 星空背景 ========== */
.starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: var(--starfield-opacity);
    will-change: transform;
}

/* ========== 山脉剪影 ========== */
.mountains {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 30vh;
    z-index: 2;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230a0e1f' fill-opacity='0.7' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom / cover no-repeat;
    opacity: var(--mountains-opacity);
    transition: opacity 1.5s ease;
}

/* ========== 鼠标星光拖尾 Canvas ========== */
.mouse-trail {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    pointer-events: none;
    will-change: transform;
}

/* ========== 弹幕层 ========== */
.danmaku-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.danmaku-item {
    position: absolute;
    top: -60px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    white-space: nowrap;
    animation: danmakuFall linear forwards;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

@keyframes danmakuFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    70% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(105vh) rotate(15deg);
        opacity: 0;
    }
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4vw;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
    transform: translateZ(0);
    will-change: transform;
}

.navbar.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-logo {
    width: 28px; height: 28px;
    color: var(--accent-color);
    transition: color 1.5s ease;
}

.nav-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-left: 0.3rem;
    border-left: 1px solid var(--border-glass);
    padding-left: 0.6rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0.3rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* 汉堡变X动画 */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== 首屏 ========== */
.hero-fullscreen {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-header {
    margin-bottom: 2.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.title-prefix { color: var(--text-primary); }

.title-highlight {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 40px var(--accent-glow);
    transition: color 1.5s ease, text-shadow 1.5s ease;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--text-secondary);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 1.8;
    min-height: 1.8rem;
    margin-bottom: 0.8rem;
    transition: opacity 0.5s ease, color 1.5s ease;
}

.hero-signature {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 4px;
    margin-top: 0.3rem;
    position: relative;
    display: inline-block;
}

.hero-signature::before, .hero-signature::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.hero-signature::before { right: calc(100% + 12px); }
.hero-signature::after { left: calc(100% + 12px); }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: background 1.5s ease, box-shadow 1.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: background 1.5s ease, border 1.5s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ========== 玻璃卡片 ========== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 1.5s ease;
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

/* ========== 计时卡片 ========== */
.time-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
}

.time-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 1.6rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: var(--shadow-soft);
    will-change: transform;
    transform: translateZ(0);
}

.time-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.6s ease;
}

.time-card:hover::before { left: 100%; }

.time-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--accent-glow);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.card-icon {
    width: 30px; height: 30px;
    margin: 0 auto 0.6rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: color 1.5s ease;
}

.card-icon svg { width: 100%; height: 100%; }

.card-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-value {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 20px var(--accent-glow);
    transition: all 1.5s ease;
}

.card-unit {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.card-glow {
    position: absolute;
    bottom: -20px; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 40px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-card:hover .card-glow { opacity: 1; }

/* ========== 进度区域 ========== */
.progress-section {
    position: relative;
    z-index: 10;
    padding: 5rem 4vw 3rem;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.progress-card {
    padding: 2rem;
}

.progress-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

/* 年度进度环 */
.progress-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--progress-track);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.ring-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.ring-value {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
    transition: color 1.5s ease;
}

.ring-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.progress-info {
    text-align: center;
}

.progress-detail {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-detail-sm {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* 退休进度条 */
.retire-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.retire-header svg {
    width: 20px; height: 20px;
    color: var(--accent-gold);
    transition: color 1.5s ease;
}

.retire-bar-wrap {
    width: 100%;
    padding: 0 0.3rem;
}

.retire-bar {
    width: 100%;
    height: 28px;
    background: var(--progress-track);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.retire-bar-fill {
    height: 100%;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-purple));
    transition: width 1.5s ease, background 1.5s ease;
    position: relative;
}

.retire-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: barShine 2s ease-in-out infinite;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.retire-bar-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    z-index: 1;
}

.retire-info {
    margin-top: 0.3rem;
}

/* ========== 信息与留言 ========== */
.info-section {
    position: relative;
    z-index: 10;
    padding: 5rem 4vw 6rem;
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.info-panel, .message-panel {
    padding: 2rem;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.panel-header svg {
    width: 22px; height: 22px;
    color: var(--accent-color);
    transition: color 1.5s ease;
}

.panel-header h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    flex: 1;
}

.panel-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.info-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass-hover), transparent);
    margin: 0.3rem 0;
}

.info-highlight {
    text-align: center;
    padding: 1.2rem 0;
    background: linear-gradient(145deg, var(--accent-glow), transparent);
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-glow);
}

.highlight-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.highlight-value {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
    transition: color 1.5s ease;
}

.highlight-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.life-motto {
    display: flex;
    gap: 0.7rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.life-motto svg {
    width: 18px; height: 18px;
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 0.2rem;
    transition: color 1.5s ease;
}

.life-motto p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

/* ========== 留言墙 ========== */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.message-form input,
.message-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
    color: var(--text-muted);
}

.message-form input:focus,
.message-form textarea:focus {
    border-color: var(--accent-glow);
    background: var(--bg-card-hover);
    box-shadow: 0 0 15px var(--accent-glow);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.message-list::-webkit-scrollbar { width: 4px; }
.message-list::-webkit-scrollbar-track { background: transparent; }
.message-list::-webkit-scrollbar-thumb {
    background: var(--border-glass-hover);
    border-radius: 4px;
}

.message-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: var(--transition);
}

.message-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-glow);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.author-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    transition: background 1.5s ease;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.message-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.6rem;
    word-break: break-word;
}

.message-actions { display: flex; justify-content: flex-end; }

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.like-btn svg {
    width: 14px; height: 14px;
    transition: transform 0.2s ease;
}

.like-btn:hover { color: #ff6b8a; background: rgba(255, 107, 138, 0.08); }
.like-btn.liked { color: #ff6b8a; }
.like-btn.liked svg { fill: #ff6b8a; stroke: #ff6b8a; transform: scale(1.1); }

.message-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.message-empty svg {
    width: 40px; height: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.3;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    z-index: 10;
    padding: 3rem 4vw;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-card);
    content-visibility: auto;
    contain-intrinsic-size: 120px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.footer-quote { text-align: right; }

.footer-quote p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-copy {
    color: var(--text-muted) !important;
    font-style: normal !important;
    margin-top: 0.3rem;
    font-size: 0.75rem !important;
}

/* ========== 右侧悬浮控制栏 ========== */
.side-control-bar {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 32px;
    padding: 0.7rem 0.4rem;
    box-shadow: none;
    opacity: 0.4;
    will-change: transform, opacity;
    transition: opacity 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.side-control-bar:hover {
    opacity: 1;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: var(--border-glass);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    transform: translateY(-50%) translateZ(0);
}

.float-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 56px;
    height: 56px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
}

.float-btn svg {
    width: 20px; height: 20px;
    transition: color 1.5s ease, transform 0.3s ease;
}

.float-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.float-btn:hover svg {
    transform: scale(1.1);
}

.float-btn.active {
    color: var(--accent-color);
    background: var(--accent-glow);
    text-shadow: 0 0 12px var(--accent-glow);
}

.float-btn.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.float-label {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.float-btn:hover .float-label,
.float-btn.active .float-label {
    opacity: 1;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-mid);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-hover);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast svg {
    width: 18px; height: 18px;
    color: #4ade80;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .time-cards { grid-template-columns: repeat(3, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .progress-grid { grid-template-columns: 1fr; max-width: 450px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(7, 11, 26, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        gap: 1.8rem;
        z-index: 105;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .nav-toggle { display: flex; }

    .hero-fullscreen { padding: 4rem 1.5rem 3rem; }
    .time-cards { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
    .time-card { padding: 1.1rem 0.7rem; }
    .card-value { font-size: 1.4rem; }

    .progress-section { padding: 3rem 1.5rem; }

    .info-section { padding: 2rem 1.5rem 4rem; }
    .info-panel, .message-panel { padding: 1.5rem; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-quote { text-align: center; }

    .side-control-bar {
        right: 0.5rem;
        padding: 0.5rem 0.3rem;
        gap: 0.3rem;
        border-radius: 24px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
        padding: 0.3rem;
        border-radius: 12px;
    }

    .float-btn svg { width: 17px; height: 17px; }
    .float-label { display: none; }
}

@media (max-width: 480px) {
    .time-cards { grid-template-columns: repeat(2, 1fr); }
    .btn { padding: 0.7rem 1.4rem; font-size: 0.85rem; }

    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .hero-signature::before, .hero-signature::after { width: 16px; }
    .hero-signature::before { right: calc(100% + 6px); }
    .hero-signature::after { left: calc(100% + 6px); }
}

/* ========== 动画 ========== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
