/* ============================================
   肖邦主题网站 - 样式表
   设计理念：古典优雅 · 音乐会大厅 · 金色与深色
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --color-bg: #0d0a07;
    --color-bg-alt: #14100c;
    --color-bg-card: #1a1510;
    --color-gold: #c9a96e;
    --color-gold-light: #e0cc9a;
    --color-gold-dark: #8b6914;
    --color-cream: #f5e6d3;
    --color-cream-dim: #b8a99a;
    --color-text: #e8ddd0;
    --color-text-dim: #8a7e70;
    --color-white: #faf8f4;
    --font-display: 'Playfair Display', 'Noto Serif SC', serif;
    --font-body: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-cn: 'Noto Serif SC', serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 基础样式 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 选择文字 ---------- */
::selection {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 10, 7, 0.92);
    backdrop-filter: blur(20px);
    padding: 0.7rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-gold);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.nav-logo:hover { color: var(--color-gold-light); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--color-cream-dim);
    text-decoration: none;
    font-family: var(--font-cn);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all var(--transition);
    position: relative;
    letter-spacing: 0.04em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 1.5px;
    background: var(--color-gold);
    transition: transform var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-gold);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* 汉堡菜单 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gold);
    transition: all 0.3s ease;
}

.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---------- 英雄区 ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, #1a1510 0%, #0d0a07 70%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(201,169,110,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(201,169,110,0.04) 0%, transparent 50%);
}

/* 粒子 */
.hero-particles { position: absolute; inset: 0; pointer-events: none; }

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* 钢琴键 */
.piano-keys {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 1;
    opacity: 0.3;
}

.piano-keys .key {
    width: 40px;
    height: 120px;
    transition: background var(--transition);
    border-radius: 0 0 4px 4px;
    cursor: default;
}

.piano-keys .key.white {
    background: #f5e6d3;
    border: 1px solid #c9a96e;
    margin-left: -1px;
    box-shadow: inset 0 -8px 20px rgba(0,0,0,0.2);
}

.piano-keys .key.white:hover,
.piano-keys .key.white.active {
    background: #fff;
    box-shadow: inset 0 -4px 15px rgba(0,0,0,0.1), 0 0 30px rgba(201,169,110,0.3);
}

.piano-keys .key.black {
    width: 26px;
    height: 75px;
    background: #1a1510;
    margin-left: -13px;
    margin-right: -13px;
    z-index: 2;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.piano-keys .key.black:hover,
.piano-keys .key.black.active {
    background: #2a2218;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* 英雄内容 */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
}

.hero-subtitle {
    font-family: var(--font-cn);
    font-size: 1.1rem;
    color: var(--color-gold);
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--color-cream);
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 80px rgba(201,169,110,0.2);
}

.hero-name-en {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-gold);
    font-style: italic;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-dates {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-cream-dim);
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: var(--color-gold);
    margin: 0 auto 2rem;
    opacity: 0.7;
}

.hero-quote {
    font-family: var(--font-cn);
    font-size: 1.05rem;
    color: var(--color-text-dim);
    font-style: italic;
    line-height: 2;
    max-width: 500px;
    margin: 0 auto;
}

/* 动画延迟 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 1s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 向下滚动箭头 */
.scroll-down {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 1s ease 1.5s forwards;
}

.scroll-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--color-gold);
    border-bottom: 1.5px solid var(--color-gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

.scroll-arrow.delay { animation-delay: 0.3s; }

@keyframes scrollBounce {
    0%, 100% { opacity: 0.3; transform: rotate(45deg) translate(0, 0); }
    50% { opacity: 1; transform: rotate(45deg) translate(3px, 3px); }
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--color-cream);
    text-align: center;
    letter-spacing: 0.06em;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 1.5rem auto 3.5rem;
    opacity: 0.6;
}

/* 滚动显示动画 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 生平 ---------- */
.bio { background: var(--color-bg-alt); }

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    align-items: start;
}

.bio-portrait {
    position: sticky;
    top: 120px;
}

.portrait-frame {
    position: relative;
    border: 2px solid var(--color-gold);
    padding: 1.5rem;
    border-radius: 4px;
    background: var(--color-bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201,169,110,0.3);
    border-radius: 2px;
    pointer-events: none;
}

.portrait-placeholder {
    width: 100%;
    aspect-ratio: 5/6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center top, #2a2015 0%, #14100c 80%);
    border-radius: 2px;
    overflow: hidden;
}

.portrait-svg { width: 100%; height: 100%; }

.bio-text p {
    font-family: var(--font-cn);
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    line-height: 2;
    font-weight: 300;
}

.bio-intro {
    font-size: 1.15rem !important;
    color: var(--color-cream) !important;
}

.bio-text b { color: var(--color-gold); font-weight: 500; }

.bio-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.stat {
    padding: 1.2rem 0.5rem;
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 4px;
    background: rgba(201,169,110,0.03);
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-family: var(--font-cn);
    font-size: 0.8rem;
    color: var(--color-cream-dim);
    margin-top: 0.3rem;
    letter-spacing: 0.08em;
}

/* ---------- 时间线 ---------- */
.timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(to bottom,
        transparent,
        var(--color-gold) 5%,
        var(--color-gold) 95%,
        transparent
    );
    transform: translateX(-50%);
}

.timeline-items { display: flex; flex-direction: column; gap: 3rem; }

.timeline-item {
    position: relative;
    width: 50%;
}

.timeline-item.left { padding-right: 3rem; text-align: right; }
.timeline-item.right { margin-left: 50%; padding-left: 3rem; }

.timeline-dot {
    position: absolute;
    top: 0.7rem;
    width: 13px;
    height: 13px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(201,169,110,0.5);
    z-index: 2;
}

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

.timeline-content {
    padding: 1.5rem 2rem;
    background: var(--color-bg-card);
    border: 1px solid rgba(201,169,110,0.12);
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    width: 10px;
    height: 10px;
    background: var(--color-bg-card);
    border: 1px solid rgba(201,169,110,0.12);
    transform: rotate(45deg);
}

.timeline-item.left .timeline-content::before { right: -6px; border-left: none; border-bottom: none; }
.timeline-item.right .timeline-content::before { left: -6px; border-right: none; border-top: none; }

.timeline-content:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,169,110,0.05);
    transform: translateY(-2px);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.08em;
}

.timeline-content h3 {
    font-family: var(--font-cn);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-cream);
    margin: 0.3rem 0 0.6rem;
}

.timeline-content p {
    font-family: var(--font-cn);
    font-size: 0.88rem;
    color: var(--color-text-dim);
    line-height: 1.8;
    font-weight: 300;
}

/* ---------- 作品卡片 ---------- */
.works { background: var(--color-bg-alt); }

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(201,169,110,0.06);
}

.work-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.work-card h3 {
    font-family: var(--font-cn);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.work-type {
    font-family: var(--font-cn);
    font-size: 0.8rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.work-desc {
    font-family: var(--font-cn);
    font-size: 0.85rem;
    color: var(--color-text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.work-listen {
    font-family: var(--font-cn);
    font-size: 0.82rem;
    color: var(--color-gold);
    background: transparent;
    border: 1px solid var(--color-gold);
    padding: 0.55rem 1.8rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.06em;
}

.work-listen:hover {
    background: var(--color-gold);
    color: var(--color-bg);
    box-shadow: 0 5px 20px rgba(201,169,110,0.25);
}

/* ---------- 音乐风格 ---------- */
.style { background: var(--color-bg); }

.style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.style-card {
    padding: 2.5rem;
    background: var(--color-bg-card);
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition);
}

.style-card:hover {
    border-color: rgba(201,169,110,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}

.style-icon { font-size: 3rem; margin-bottom: 1rem; }

.style-card h3 {
    font-family: var(--font-cn);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.style-card p {
    font-family: var(--font-cn);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    line-height: 1.9;
    font-weight: 300;
}

.style-card b { color: var(--color-cream); font-weight: 500; }

/* ---------- 名言轮播 ---------- */
.quotes {
    background: var(--color-bg-alt);
    text-align: center;
}

.quotes-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-card {
    position: absolute;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease;
    padding: 2rem;
    pointer-events: none;
}

.quote-card.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--color-gold);
    line-height: 1;
    opacity: 0.4;
    margin-bottom: -1.5rem;
}

.quote-text {
    font-family: var(--font-cn);
    font-size: 1.2rem;
    color: var(--color-cream);
    line-height: 2;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.quote-author {
    font-family: var(--font-cn);
    font-size: 0.9rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
}

.quotes-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.quotes-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(201,169,110,0.3);
    cursor: pointer;
    transition: all var(--transition);
}

.quotes-dots .dot.active {
    background: var(--color-gold);
    box-shadow: 0 0 10px rgba(201,169,110,0.5);
    transform: scale(1.3);
}

/* ---------- 页脚 ---------- */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--color-bg);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.4;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto 2rem;
    opacity: 0.4;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-cream);
    letter-spacing: 0.08em;
}

.footer-sub {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-gold);
    font-style: italic;
    margin: 0.5rem 0 1.5rem;
}

.footer-quote {
    font-family: var(--font-cn);
    font-size: 0.9rem;
    color: var(--color-text-dim);
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-copy {
    font-family: var(--font-cn);
    font-size: 0.78rem;
    color: var(--color-text-dim);
    opacity: 0.5;
    letter-spacing: 0.06em;
}

/* ---------- 音乐模态框 ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.3rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-gold);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.modal-close:hover {
    background: rgba(201,169,110,0.15);
    color: var(--color-gold-light);
}

.equalizer {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1.5rem;
}

.equalizer span {
    display: block;
    width: 4px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 2px;
    animation: eqBounce 0.8s ease-in-out infinite;
}

.equalizer span:nth-child(1) { animation-delay: 0s; }
.equalizer span:nth-child(2) { animation-delay: 0.1s; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; }
.equalizer span:nth-child(4) { animation-delay: 0.3s; }
.equalizer span:nth-child(5) { animation-delay: 0.4s; }
.equalizer span:nth-child(6) { animation-delay: 0.5s; }
.equalizer span:nth-child(7) { animation-delay: 0.6s; }
.equalizer span:nth-child(8) { animation-delay: 0.7s; }
.equalizer span:nth-child(9) { animation-delay: 0.2s; }
.equalizer span:nth-child(10) { animation-delay: 0.6s; }

@keyframes eqBounce {
    0%, 100% { height: 8px; }
    50% { height: 28px; }
}

.player-title {
    font-family: var(--font-cn);
    font-size: 1.1rem;
    color: var(--color-cream);
    margin-bottom: 0.5rem;
}

.player-note {
    font-family: var(--font-cn);
    font-size: 0.82rem;
    color: var(--color-text-dim);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(201,169,110,0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-gold);
    transition: width 0.3s linear;
    border-radius: 2px;
}

.progress-time {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--color-text-dim);
    white-space: nowrap;
    min-width: 70px;
}

.player-btn {
    font-family: var(--font-cn);
    font-size: 0.95rem;
    color: var(--color-bg);
    background: var(--color-gold);
    border: none;
    padding: 0.7rem 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all var(--transition);
    font-weight: 500;
}

.player-btn:hover {
    background: var(--color-gold-light);
    box-shadow: 0 5px 20px rgba(201,169,110,0.35);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bio-portrait { position: static; max-width: 300px; margin: 0 auto; }

    .works-grid { grid-template-columns: repeat(2, 1fr); }

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

    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        margin-left: 0;
        padding-left: 2.5rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-line { left: 0; }

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

    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -6px;
        border-right: none;
        border-top: none;
        border-left: 1px solid rgba(201,169,110,0.12);
        border-bottom: 1px solid rgba(201,169,110,0.12);
    }

    .bio-stats { grid-template-columns: repeat(2, 1fr); }

    .nav-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13, 10, 7, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.3rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(201,169,110,0.15);
    }

    .nav-menu.active { right: 0; }

    .nav-menu a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(201,169,110,0.08);
    }
}

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

    .hero-quote { font-size: 0.9rem; }

    .piano-keys { display: none; }

    .quote-text { font-size: 1rem; }
}

/* 无障碍：减少动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
