/* NTD International Violin Competition — site styles */

:root {
  --ink: #2a1712;
  --ink-soft: #5a4339;
  --muted: #7a655a;
  --wine: #5b1a1e;
  --wine-deep: #2a0c0f;
  --wine-darker: #1b0709;
  --gold: #a87a2e;
  --gold-bright: #c99a48;
  --gold-light: #e8cf98;
  --ivory: #fbf8f2;
  --parchment: #f4ecdd;
  --parchment-deep: #eadcc2;
  --line: #e2d4bb;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42, 23, 18, .06), 0 8px 28px rgba(42, 23, 18, .08);
  --shadow-lg: 0 2px 4px rgba(42, 23, 18, .08), 0 20px 50px rgba(42, 23, 18, .16);
  --serif: "Cormorant Garamond", "Noto Serif TC", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
html[lang^="zh"] body { font-size: 16px; line-height: 1.8; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4 { font-weight: 700; letter-spacing: .04em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: .8em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(168, 122, 46, .35); }
.btn-gold:hover { color: #fff; box-shadow: 0 10px 26px rgba(168, 122, 46, .45); }
.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-deep); color: #fff; }
.btn-ghost-light { border-color: rgba(232, 207, 152, .6); color: var(--gold-light); }
.btn-ghost-light:hover { background: rgba(232, 207, 152, .12); color: #fff; border-color: var(--gold-light); }
.btn-outline { border-color: var(--wine); color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: #fff; }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--wine-darker); color: #d8c5a8; font-size: .86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #d8c5a8; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(216, 197, 168, .35); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 3px 12px; }
.lang-switch a[aria-current="true"] { background: var(--gold); color: #fff; }
.topbar .donate { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-weight: 600; }
.topbar .donate svg { width: 14px; height: 14px; }
.series { position: relative; }
.series > button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; }
.series > button:hover { color: #fff; }
.series-menu { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 8px; min-width: 210px; z-index: 120; display: none; }
.series.open .series-menu { display: block; }
.series-menu a { display: block; color: var(--ink); padding: 8px 12px; border-radius: 6px; }
.series-menu a:hover { background: var(--parchment); color: var(--wine); }
@media (max-width: 600px) { .topbar .series-label-long { display: none; } .topbar-left { gap: 12px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(42, 23, 18, .06); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
html[lang^="zh"] .brand-text span { letter-spacing: .1em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav li { margin: 0; position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover, .main-nav .nav-link[aria-current="page"] { background: var(--parchment); color: var(--wine); }
.chev { width: 14px; height: 14px; transition: transform .2s; }
.has-sub.open .chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; width: 460px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0;
}
.has-sub.open .submenu { display: grid; }
.submenu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.submenu a:hover { background: var(--parchment); color: var(--wine); }
.submenu .num { font-family: var(--serif); color: var(--gold); font-weight: 700; width: 1.4em; }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  body.nav-open .site-header { z-index: 160; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--ivory); flex-direction: column; align-items: stretch; padding: 84px 20px 24px; box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 150; display: none; }
  body.nav-open .main-nav { display: flex; animation: drawer-in .3s ease; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a.nav-link, .main-nav button.nav-link { width: 100%; justify-content: space-between; padding: 14px 14px; font-size: 1.08rem; border-radius: 10px; }
  .submenu { position: static; transform: none; width: auto; box-shadow: none; grid-template-columns: 1fr; padding: 4px 0 8px 10px; background: transparent; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-close { display: inline-flex !important; position: absolute; top: 18px; right: 18px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(27, 7, 9, .45); z-index: 140; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}
.nav-close { display: none; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (max-width: 480px) { .brand-text strong { font-size: 1.08rem; } .brand img { width: 46px; height: 46px; } .brand-text span { font-size: .62rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #f3e6cf;
  background:
    radial-gradient(ellipse 80% 70% at 75% 40%, rgba(168, 122, 46, .22), transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 100%, rgba(91, 26, 30, .9), transparent 70%),
    linear-gradient(160deg, #3b1014 0%, var(--wine-deep) 55%, var(--wine-darker) 100%);
}
.hero::before, .page-hero::before { /* staff lines */
  content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cg fill='none' stroke='%23e8cf98' stroke-width='1.2'%3E%3Cpath d='M0 150 C300 90 500 230 800 160 S1100 110 1200 150'/%3E%3Cpath d='M0 165 C300 105 500 245 800 175 S1100 125 1200 165'/%3E%3Cpath d='M0 180 C300 120 500 260 800 190 S1100 140 1200 180'/%3E%3Cpath d='M0 195 C300 135 500 275 800 205 S1100 155 1200 195'/%3E%3Cpath d='M0 210 C300 150 500 290 800 220 S1100 170 1200 210'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 1400px auto; background-position: center 70%; background-repeat: repeat-x;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--gold-light); }
html[lang^="zh"] .eyebrow { letter-spacing: .12em; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); color: #fff; font-weight: 600; letter-spacing: -.005em; margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
html[lang^="zh"] .hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
html[lang^="zh"] .hero h1 em { font-style: normal; }
.hero-lead { font-size: 1.18rem; max-width: 36em; color: #e6d6bc; margin-bottom: 1.6em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 30px; color: #f3e6cf; font-size: 1rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; justify-self: center; width: min(400px, 100%); }
.hero-art::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 207, 152, .16), transparent 65%); }
.hero-art img { position: relative; width: 100%; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .35)); }
.eras-ribbon { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.eras-ribbon span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-light); border: 1px solid rgba(232, 207, 152, .3); padding: 4px 14px; border-radius: 999px; }
html[lang^="zh"] .eras-ribbon span { font-style: normal; font-size: 1rem; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 64px; text-align: left; }
  .hero-art { order: -1; width: 190px; justify-self: start; }
}

/* ---------- Countdown / key facts ---------- */
.facts { position: relative; z-index: 2; margin-top: -44px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.fact { padding: 22px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.fact .value { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--wine); line-height: 1.15; }
.fact .sub { font-size: .9rem; color: var(--ink-soft); }
.fact.countdown { background: linear-gradient(135deg, #fbf3e2, #f4e6c8); }
.fact.countdown .value { color: var(--gold); }
html[lang^="zh"] .fact .label { letter-spacing: .06em; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 460px) { .fact { padding: 16px; } .fact .value { font-size: 1.3rem; } }

/* ---------- Section nav (tabs) ---------- */
.section-nav { position: sticky; top: var(--header-h); z-index: 90; background: rgba(251, 248, 242, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: 40px; }
.section-nav ul { list-style: none; margin: 0 auto; padding: 10px 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: var(--max); }
.section-nav ul::-webkit-scrollbar { display: none; }
.section-nav li { margin: 0; flex: none; }
.section-nav a { display: block; padding: 7px 15px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 500; border: 1px solid transparent; }
.section-nav a:hover { color: var(--wine); border-color: var(--line); }
.section-nav a.active { background: var(--wine); color: #fff; }
@media (max-width: 600px) { .section-nav ul { padding: 8px 16px; } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--parchment); }
.section.dark { background: linear-gradient(160deg, #3b1014, var(--wine-deep) 60%, var(--wine-darker)); color: #ecdcc2; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); }
.section.dark .section-head p { color: #d9c6a6; }
.section.dark .eyebrow { color: var(--gold-light); }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.ornament { display: block; width: 120px; height: 18px; margin: 0 auto 18px; color: var(--gold); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lead-text { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.45; color: var(--ink); }
html[lang^="zh"] .lead-text { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.8; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.45rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-grid { display: grid; gap: 22px; }
.card-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid.c3, .card-grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid.c2, .card-grid.c3, .card-grid.c4 { grid-template-columns: 1fr; } }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--parchment); color: var(--wine); margin-bottom: 16px; }
.icon-badge svg { width: 24px; height: 24px; }

/* Eras */
.eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.era { position: relative; border-radius: var(--radius); padding: 30px 28px 26px; color: #f3e6cf; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.era::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(232, 207, 152, .25); box-shadow: 0 0 0 22px rgba(232, 207, 152, .05), 0 0 0 46px rgba(232, 207, 152, .04); }
.era.baroque { background: linear-gradient(150deg, #4a2a16, #2b170b); }
.era.classical { background: linear-gradient(150deg, #5d4a33, #33281a); }
.era.romantic { background: linear-gradient(150deg, #6a1d24, #2f0b0f); }
.era .years { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.era h3 { color: #fff; font-size: 2rem; font-style: italic; font-weight: 500; margin: 6px 0 10px; }
html[lang^="zh"] .era h3 { font-style: normal; font-size: 1.7rem; }
.era p { color: #e3d1b3; font-size: .98rem; margin-bottom: 16px; }
.era .composers { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.era .composers span { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #f6ead6; }
@media (max-width: 860px) { .eras { grid-template-columns: 1fr; } .era { min-height: 0; } }

/* Organizer */
.organizer { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.organizer .mark { width: 64px; height: 64px; border-radius: 50%; background: var(--wine); color: var(--gold-light); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.organizer p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .organizer { grid-template-columns: 1fr; padding: 24px; gap: 16px; } }

/* Commissioned */
.commission { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.commission blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.4; color: #fff; font-style: italic; position: relative; padding-left: 28px; border-left: 2px solid var(--gold); }
html[lang^="zh"] .commission blockquote { font-style: normal; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.7; }
.commission .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.commission .tags span { font-size: .85rem; border: 1px solid rgba(232, 207, 152, .4); color: var(--gold-light); padding: 5px 14px; border-radius: 999px; }
@media (max-width: 860px) { .commission { grid-template-columns: 1fr; gap: 32px; } }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--wine)); }
.timeline li { position: relative; text-align: center; padding: 0 10px; margin: 0; }
.timeline .dot { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 18px; background: var(--white); border: 2px solid var(--gold); display: grid; place-items: center; color: var(--wine); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--ivory); }
.timeline .dot svg { width: 20px; height: 20px; }
.timeline li.highlight .dot { background: var(--wine); border-color: var(--wine); color: var(--gold-light); }
.timeline li.past { opacity: .55; }
.timeline .when { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--wine); line-height: 1.2; }
.timeline .what { font-weight: 600; margin: 4px 0 2px; }
.timeline .note { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { top: 10px; bottom: 10px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--wine)); }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; text-align: left; padding: 0; }
  .timeline .dot { margin: 0; grid-row: span 3; }
}

/* Rules */
.rule-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--parchment-deep); line-height: 1; float: right; margin: -6px 0 0 10px; }
.rule-card h3 { font-size: 1.35rem; margin-bottom: .4em; }
.rule-card ul { padding-left: 1.1em; }

/* Accordion (details) */
.accordion { display: grid; gap: 12px; }
.accordion details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.accordion details[open] { box-shadow: var(--shadow); border-color: var(--parchment-deep); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.05rem; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion summary:hover { color: var(--wine); }
.accordion .acc-body { padding: 0 22px 20px; color: var(--ink-soft); }
.accordion .acc-body p:last-child, .accordion .acc-body ul:last-child { margin-bottom: 0; }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.award { text-align: center; padding: 34px 22px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.award::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c1); }
.award .medal { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--c0), var(--c1) 60%, var(--c2)); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .2), 0 6px 16px rgba(0, 0, 0, .15); color: #fff; }
.award .medal svg { width: 38px; height: 38px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.award h3 { font-size: 1.4rem; margin-bottom: 4px; }
.award .amount { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--wine); line-height: 1.1; }
.award .count { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.award.gold { --c0: #fff1c4; --c1: #d4a83c; --c2: #8f6a17; }
.award.silver { --c0: #ffffff; --c1: #b9bcc2; --c2: #6f737a; }
.award.bronze { --c0: #ffd9b8; --c1: #b87436; --c2: #6e3f16; }
.award.special { --c0: #e6a7ad; --c1: #7d2329; --c2: #3a0c10; }
.awards-note { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 960px) { .awards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .awards-note { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .awards { grid-template-columns: 1fr; } }

/* Tabs */
.tabs { margin-top: 8px; }
.tablist { display: flex; gap: 6px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 32px; }
.tablist::-webkit-scrollbar { display: none; }
.tablist button { flex: none; border: 0; background: none; font: inherit; font-weight: 600; font-size: .98rem; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.tablist button .step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: var(--parchment); color: var(--wine); }
.tablist button[aria-selected="true"] { background: var(--wine); color: #fff; }
.tablist button[aria-selected="true"] .step { background: var(--gold); color: #fff; }
.tablist button:hover:not([aria-selected="true"]) { color: var(--wine); background: var(--parchment); }
.tabpanel[hidden] { display: none; }
@media (max-width: 600px) { .tablist { width: 100%; border-radius: 14px; } .tablist button { padding: 9px 14px; } }

.round-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.round-intro p { margin: 0; color: var(--ink-soft); }
.piece { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.piece:last-child { border-bottom: 1px solid var(--line); }
.piece .letter { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--wine); }
.piece h3 { font-size: 1.45rem; margin-bottom: .25em; }
.piece .composer { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html[lang^="zh"] .piece .composer { letter-spacing: .06em; }
.era-tag { font-size: .7rem; letter-spacing: .08em; padding: 2px 9px; border-radius: 999px; background: var(--parchment); color: var(--ink-soft); }
.era-tag.b { background: #efe1cf; color: #5a3517; }
.era-tag.c { background: #ebe5d8; color: #4f412d; }
.era-tag.r { background: #f3dfe0; color: #6a1d24; }
.works { list-style: none; padding: 0; margin: 12px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.works li { margin: 0; padding: 9px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.works li small { color: var(--muted); display: block; font-size: .82rem; }
.works-sub { font-weight: 600; margin: 14px 0 0; color: var(--ink); }
.piece .hint { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); background: #fbf3e2; border-radius: 8px; padding: 10px 14px; margin: 10px 0 0; }
.piece .hint svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold); }
@media (max-width: 600px) { .piece { grid-template-columns: 1fr; gap: 10px; } .piece .letter { width: 42px; height: 42px; font-size: 1.3rem; } }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); margin-top: 28px; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout.warn { border-left-color: var(--wine); }
.callout.warn svg { color: var(--wine); }

/* Application */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: s; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: var(--gold-light); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.steps h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: .4em; }
html[lang^="zh"] .steps h4 { letter-spacing: .02em; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.fee { border-radius: var(--radius-sm); padding: 18px 20px; border: 1.5px solid var(--line); background: var(--white); }
.fee.best { border-color: var(--gold); background: #fdf7ea; position: relative; }
.fee .tag { position: absolute; top: -11px; right: 14px; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.fee .name { font-weight: 700; }
.fee .price { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--wine); line-height: 1.1; }
.fee .by { font-size: .9rem; color: var(--muted); }
@media (max-width: 420px) { .fees { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px dashed var(--line); margin: 0; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--parchment) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b1a1e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.checklist small { display: block; color: var(--muted); font-size: .9rem; }

.video-reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.video-reqs li { display: flex; gap: 12px; margin: 0; font-size: .97rem; }
.video-reqs svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
@media (max-width: 760px) { .video-reqs { grid-template-columns: 1fr; } }

.apply-band { margin-top: 48px; border-radius: var(--radius); padding: 40px; background: linear-gradient(135deg, var(--wine), var(--wine-deep)); color: #ecdcc2; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.apply-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(232, 207, 152, .2); box-shadow: 0 0 0 30px rgba(232, 207, 152, .04); }
.apply-band h3 { color: #fff; font-size: 1.9rem; margin-bottom: .2em; }
.apply-band p { margin: 0; color: #d9c6a6; }
.apply-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
@media (max-width: 600px) { .apply-band { padding: 28px 22px; } }

/* Benefits */
.benefit h3 { font-size: 1.35rem; }
.benefit p { color: var(--ink-soft); font-size: .98rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 44px; }
.stat { text-align: center; padding: 22px 12px; border-top: 2px solid var(--gold); }
.stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--wine); line-height: 1; }
.stat .l { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq-tools { display: flex; gap: 12px; margin-bottom: 22px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search input { width: 100%; font: inherit; padding: 13px 16px 13px 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 154, 72, .18); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.faq-empty { display: none; padding: 20px; text-align: center; color: var(--muted); }
.faq-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 80px); }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; margin: 0; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.contact-list .v { font-size: 1.08rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.section.dark .contact-list .k { color: #c9b08a; }
.section.dark .contact-list .v, .section.dark .contact-list a { color: #fff; }
.section.dark .icon-badge { background: rgba(232, 207, 152, .12); color: var(--gold-light); }
.map-frame { width: 100%; border: 0; border-radius: var(--radius); min-height: 340px; height: 100%; box-shadow: var(--shadow); background: var(--parchment); }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; color: #f3e6cf; background: linear-gradient(160deg, #3b1014, var(--wine-deep) 60%, var(--wine-darker)); }
.page-hero .container { position: relative; padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: .2em; }
.page-hero p { color: #e0cdb0; font-size: 1.15rem; max-width: 40em; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; color: #c9b08a; }
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.page-hero .bg-logo { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 340px; opacity: .1; pointer-events: none; }
@media (max-width: 700px) { .page-hero .bg-logo { width: 220px; right: -60px; } .page-hero .container { padding-top: 48px; padding-bottom: 48px; } }

.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }

/* Share */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share .label { font-size: .85rem; color: inherit; opacity: .8; margin-right: 4px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid rgba(216, 197, 168, .3); color: #d8c5a8; background: none; cursor: pointer; transition: background .2s, color .2s; position: relative; }
.share a:hover, .share button:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.share svg { width: 16px; height: 16px; }
.share .copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share button.done .copied { opacity: 1; }

/* Footer */
.site-footer { background: var(--wine-darker); color: #cbb79a; font-size: .95rem; }
.site-footer a { color: #e3d2b6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
.footer-brand img { width: 96px; margin-bottom: 16px; }
.footer-brand p { color: #b8a283; max-width: 26em; }
.site-footer h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; font-weight: 700; }
html[lang^="zh"] .site-footer h4 { letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; }
.socials svg { width: 18px; height: 18px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(216, 197, 168, .15); padding: 22px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #9e8a6e; }
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; } }

/* Back to top + mobile apply bar */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--wine); color: var(--gold-light); border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.mobile-apply { display: none; }
@media (max-width: 700px) {
  .mobile-apply { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(27, 7, 9, .96); gap: 10px; align-items: center; justify-content: space-between; transform: translateY(100%); transition: transform .3s; }
  .mobile-apply.show { transform: none; }
  .mobile-apply span { color: #e3d2b6; font-size: .88rem; line-height: 1.3; }
  .mobile-apply span strong { color: var(--gold-light); display: block; }
  .to-top { bottom: 84px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 72px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media print {
  .topbar, .site-header, .section-nav, .to-top, .mobile-apply, .share, .hero-actions { display: none !important; }
  .hero, .section.dark, .page-hero { background: none !important; color: #000; }
  .hero h1, .section.dark h2 { color: #000; }
  .tabpanel[hidden] { display: block !important; }
  .reveal { opacity: 1; transform: none; }
}

.card-grid .wide { grid-column: span 2; }
@media (max-width: 640px) { .card-grid .wide { grid-column: auto; } }
.section-label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
html[lang^="zh"] .section-label { letter-spacing: .06em; }
