/* ===== Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
    --gold: #c9a84c;
    --gold-light: #e0c878;
    --gold-dark: #8b6914;
    --dark: #1a1a2e;
    --darker: #111122;
    --darkest: #0a0a15;
    --text: #d4d4dc;
    --text-muted: #8888a0;
    --white: #f0f0f5;
    --red: #b5343a;
    --card-bg: #1e1e36;
    --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e0c878 50%, #8b6914 100%);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--darkest);
    overflow-x: hidden;
    line-height: 1.7;
}

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

/* ===== Loading ===== */
.loading-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--darkest);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-ring {
    width: 48px; height: 48px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-overlay p {
    margin-top: 16px; color: var(--gold-light); font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10, 10, 21, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.nav-container {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.nav-logo {
    font-size: 1.4rem; font-weight: 700; color: var(--gold);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
    font-family: 'Noto Serif SC', serif;
}
.logo-icon { font-size: 1.6rem; }
.nav-menu { display: flex; list-style: none; gap: 36px; }
.nav-menu a {
    text-decoration: none; color: var(--text-muted); font-size: 0.9rem;
    font-weight: 400; letter-spacing: 1px; transition: color 0.3s;
}
.nav-menu a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a3e 0%, var(--darkest) 70%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px;
}
.hero-badge {
    display: inline-block; padding: 6px 20px;
    border: 1px solid var(--gold); border-radius: 50px;
    color: var(--gold); font-size: 0.85rem; letter-spacing: 3px;
    margin-bottom: 36px; font-family: 'Noto Serif SC', serif;
}
.hero-title { margin-bottom: 24px; }
.title-line {
    display: block; font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900; font-family: 'Noto Serif SC', serif;
    color: var(--white); line-height: 1.3;
}
.title-line em {
    font-style: normal; color: var(--gold);
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 48px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    display: block; font-size: 2.2rem; font-weight: 900;
    background: var(--gradient-gold); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
    font-family: 'Noto Serif SC', serif;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 2px; }
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    text-align: center; color: var(--text-muted); font-size: 0.75rem;
    letter-spacing: 2px; animation: bounce 2s infinite;
}
.scroll-arrow { font-size: 1.2rem; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== Particle Effect ===== */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particle {
    position: absolute; width: 2px; height: 2px;
    background: var(--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.2; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--darker); }
.section-quote {
    padding: 120px 0; text-align: center;
    background: linear-gradient(180deg, var(--darkest) 0%, #1a1025 50%, var(--darkest) 100%);
}

.section-title { text-align: center; margin-bottom: 64px; }
.section-title.light .title-cn, .section-title.light .title-en { color: var(--white); }
.title-cn {
    display: block; font-size: 2.2rem; font-weight: 900;
    font-family: 'Noto Serif SC', serif; color: var(--white);
    letter-spacing: 4px;
}
.title-en {
    display: block; font-size: 0.85rem; color: var(--gold);
    letter-spacing: 4px; margin-top: 8px; text-transform: uppercase;
}

/* ===== About ===== */
.about-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.about-text .lead {
    font-size: 1.1rem; color: var(--gold-light); margin-bottom: 16px;
    font-family: 'Noto Serif SC', serif;
}
.about-text p { color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.about-text strong { color: var(--gold); }

.quote-block {
    margin-top: 28px; padding: 24px 28px;
    border-left: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.05);
    border-radius: 0 8px 8px 0;
}
.quote-block p {
    font-family: 'Noto Serif SC', serif; font-size: 1.15rem;
    color: var(--gold-light); font-weight: 600; margin-bottom: 4px;
}
.quote-block cite { color: var(--text-muted); font-size: 0.85rem; font-style: normal; }

.about-timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-item {
    display: flex; align-items: baseline; gap: 16px;
    padding: 12px 20px; border-radius: 8px;
    background: var(--card-bg); border: 1px solid rgba(201, 168, 76, 0.08);
    transition: border-color 0.3s;
}
.timeline-item:hover { border-color: var(--gold); }
.timeline-year {
    font-family: 'Noto Serif SC', serif; font-size: 1rem;
    font-weight: 700; color: var(--gold); min-width: 48px;
}
.timeline-desc { font-size: 0.9rem; color: var(--text); }

/* ===== Songs ===== */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.song-card {
    background: var(--card-bg); border-radius: 12px;
    overflow: hidden; border: 1px solid rgba(201, 168, 76, 0.06);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.song-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.1);
}
.song-cover {
    height: 120px; background: linear-gradient(135deg, var(--darker), #1e1e46);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.song-icon { font-size: 2.5rem; opacity: 0.5; }
.song-play {
    position: absolute; right: 16px; bottom: 12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold); display: flex; align-items: center; justify-content: center;
    color: var(--darkest); font-size: 0.7rem; opacity: 0;
    transform: translateY(8px); transition: all 0.3s;
}
.song-card:hover .song-play { opacity: 1; transform: translateY(0); }
.song-info { padding: 20px; }
.song-info h3 {
    font-size: 1.1rem; color: var(--white); margin-bottom: 8px;
    font-family: 'Noto Serif SC', serif;
}
.song-info p {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.song-year {
    font-size: 0.75rem; color: var(--gold); letter-spacing: 2px;
}

/* ===== Films ===== */
.films-scroll {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.film-card {
    background: var(--card-bg); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.06);
    transition: transform 0.3s, border-color 0.3s;
}
.film-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.film-poster {
    height: 200px; position: relative; overflow: hidden;
    display: flex; align-items: flex-start; justify-content: flex-end;
    padding: 16px;
}
.poster-1 { background: linear-gradient(135deg, #2d1b2e, #4a2c3e); }
.poster-2 { background: linear-gradient(135deg, #1a2233, #2e3d5c); }
.poster-3 { background: linear-gradient(135deg, #1a1a2e, #2c3e50); }
.poster-4 { background: linear-gradient(135deg, #2d2218, #4a3c2e); }

.poster-1::after { content: '神雕侠侣'; position: absolute; left: 20px; bottom: 20px; font-size: 1.6rem; font-weight: 900; color: rgba(255,255,255,0.15); font-family: 'Noto Serif SC', serif; }
.poster-2::after { content: '天若有情'; position: absolute; left: 20px; bottom: 20px; font-size: 1.6rem; font-weight: 900; color: rgba(255,255,255,0.15); font-family: 'Noto Serif SC', serif; }
.poster-3::after { content: '无间道'; position: absolute; left: 20px; bottom: 20px; font-size: 1.6rem; font-weight: 900; color: rgba(255,255,255,0.15); font-family: 'Noto Serif SC', serif; }
.poster-4::after { content: '桃姐'; position: absolute; left: 20px; bottom: 20px; font-size: 1.6rem; font-weight: 900; color: rgba(255,255,255,0.15); font-family: 'Noto Serif SC', serif; }

.film-year-badge {
    padding: 4px 14px; background: rgba(0,0,0,0.5);
    color: var(--gold); font-size: 0.8rem; border-radius: 4px;
    font-weight: 600; z-index: 1;
}
.film-info { padding: 20px; }
.film-info h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 4px; font-family: 'Noto Serif SC', serif; }
.film-role { font-size: 0.8rem; color: var(--gold); margin-bottom: 8px; }
.film-info p:last-child { font-size: 0.85rem; color: var(--text-muted); }

/* ===== Quote Carousel ===== */
.quote-carousel { position: relative; min-height: 180px; }
.big-quote {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s; pointer-events: none;
}
.big-quote.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.quote-mark {
    font-size: 5rem; font-family: 'Noto Serif SC', serif;
    color: var(--gold); opacity: 0.3; line-height: 0.5; margin-bottom: 24px;
}
.big-quote p {
    font-size: 1.8rem; font-weight: 700; font-family: 'Noto Serif SC', serif;
    color: var(--white); line-height: 1.5;
}
.quote-dots { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(201,168,76,0.2); cursor: pointer;
    transition: background 0.3s;
}
.dot.active { background: var(--gold); }

/* ===== Tribute ===== */
.tribute-content { text-align: center; max-width: 640px; margin: 0 auto; }
.tribute-text { font-size: 1.05rem; color: var(--text-muted); line-height: 2; margin-bottom: 36px; }
.tribute-text strong { color: var(--gold); }
.signature { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); font-family: 'Noto Serif SC', serif; }
.sig-line { width: 40px; height: 1px; background: var(--gold); opacity: 0.4; }

/* ===== Footer ===== */
.footer {
    background: var(--darkest); border-top: 1px solid rgba(201,168,76,0.1);
    text-align: center; padding: 48px 24px 32px;
}
.footer-quote { margin-bottom: 32px; }
.footer-quote p {
    font-family: 'Noto Serif SC', serif; font-size: 1.05rem;
    color: var(--text-muted); font-style: italic;
}
.footer-song { font-size: 0.8rem; color: var(--gold); margin-top: 8px; display: block; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-sub { font-size: 0.75rem; opacity: 0.5; margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
    .hero-stats { gap: 32px; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .nav-menu {
        display: none; flex-direction: column; position: absolute;
        top: 64px; left: 0; width: 100%; gap: 0;
        background: rgba(10,10,21,0.95); backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(201,168,76,0.1);
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { border-top: 1px solid rgba(201,168,76,0.06); }
    .nav-menu a {
        display: block; padding: 16px 24px; font-size: 0.95rem;
    }
    .nav-toggle { display: block; }
    .songs-grid { grid-template-columns: 1fr; }
    .films-scroll { grid-template-columns: 1fr; }
    .big-quote p { font-size: 1.3rem; }
    .section { padding: 64px 0; }
}
