/* 华中科技大学南加州校友会 · hustca.org
   Colours: deep blue #173B65, HUST red #B12C35, gold #D6B67B, mist #F2F5F8, text #263445 */

:root {
  --blue: #173b65;
  --blue-d: #0f2a4a;
  --blue-l: #2a5689;
  --red: #b12c35;
  --red-d: #93222a;
  --gold: #d6b67b;
  --gold-d: #b8955a;
  --mist: #f2f5f8;
  --line: #dde3ea;
  --text: #263445;
  --muted: #5d6b7c;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 74, .10);
  --shadow-lg: 0 18px 50px rgba(15, 42, 74, .18);
  --wrap: 1280px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 16px/1.75 var(--sans); color: var(--text); background: var(--white); }
.lang-en { line-height: 1.65; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-l); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); color: var(--blue); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
.lang-en h1, .lang-en h2, .lang-en h3 { font-family: Georgia, "Times New Roman", var(--serif); }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--blue-d); padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; cursor: pointer; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(177, 44, 53, .3); }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.btn-gold { background: var(--gold); color: var(--blue-d); }
.btn-gold:hover { background: #e3c690; color: var(--blue-d); }
.btn-line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red); }
.link-arrow svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow.back svg { transform: rotate(180deg); }
.link-arrow.back:hover svg { transform: rotate(180deg) translateX(4px); }

/* ------------------------------------------------------------ top bar + header */
.topbar { background: var(--blue-d); color: rgba(255, 255, 255, .82); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.motto { font-family: var(--serif); letter-spacing: .25em; color: var(--gold); }
.toplinks { display: flex; gap: 20px; align-items: center; }
.toplinks a { color: rgba(255, 255, 255, .82); }
.toplinks a:hover { color: #fff; }
.lang-switch { padding: 2px 12px; border: 1px solid rgba(214, 182, 123, .6); border-radius: 999px; color: var(--gold) !important; }
.lang-switch:hover { background: var(--gold); color: var(--blue-d) !important; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 42, 74, .10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--blue); min-width: 0; }
.brand img { width: 64px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 21px; letter-spacing: .04em; color: var(--blue); }
.brand-text small { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.lang-en .brand-text strong { font-size: 18px; letter-spacing: 0; }
.lang-en .brand-text small { letter-spacing: .08em; }
.brand:hover strong { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; padding: 10px 14px; color: var(--text); font-weight: 600; font-size: 15.5px; border-radius: 8px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover { color: var(--red); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--blue); }
.lang-en .main-nav a { font-size: 14.5px; padding: 10px 11px; }
.lang-en .main-nav a::after { left: 11px; right: 11px; }
.nav-lang { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; position: relative; flex: none; }
.bars, .bars::before, .bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .25s, opacity .25s; }
.bars { top: 22px; }
.bars::before, .bars::after { content: ""; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); background: var(--blue); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); background: var(--blue); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--blue-d); }
.hero-slides, .hero-slides .slide, .hero-shade { position: absolute; inset: 0; }
.hero-slides .slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .slide.active { opacity: 1; }
.hero-slides picture, .hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero-slides .slide.active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { background: linear-gradient(90deg, rgba(10, 30, 56, .86) 0%, rgba(15, 42, 74, .55) 45%, rgba(15, 42, 74, .12) 100%), linear-gradient(0deg, rgba(10, 30, 56, .55) 0%, transparent 40%); }
.hero-inner { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 130px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); font-weight: 600; letter-spacing: .2em; font-size: 14px; text-transform: uppercase; margin-bottom: 18px; }
.hero-kicker::before { content: ""; width: 40px; height: 2px; background: var(--gold); }
.hero-title { color: #fff; font-size: clamp(34px, 5.2vw, 64px); letter-spacing: .04em; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); max-width: 820px; }
.lang-en .hero-title { letter-spacing: 0; font-size: clamp(32px, 4.6vw, 58px); }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); max-width: 620px; color: rgba(255, 255, 255, .9); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-dots { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 120px; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .8); background: transparent; cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.on { width: 34px; background: var(--gold); border-color: var(--gold); }

/* quick cards overlap the hero */
.quick { position: relative; z-index: 5; margin-top: -78px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; padding: 0; }
.quick-card { display: flex; align-items: center; gap: 16px; padding: 28px 26px; color: var(--text); border-right: 1px solid var(--line); transition: background .2s; }
.quick-card:last-child { border-right: 0; }
.quick-card:hover { background: var(--mist); color: var(--text); }
.quick-card strong { display: block; font-family: var(--serif); font-size: 18px; color: var(--blue); }
.lang-en .quick-card strong { font-family: Georgia, var(--serif); }
.quick-card small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.quick-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-l)); color: #fff; transition: background .2s, transform .2s; }
.quick-icon svg { width: 26px; height: 26px; fill: currentColor; }
.quick-card:hover .quick-icon { background: linear-gradient(135deg, var(--red), #cf4650); transform: scale(1.06); }

/* ------------------------------------------------------------ sections */
.section { padding: 88px 0; }
.section.tint { background: var(--mist); }
.home .quick + .section { padding-top: 96px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; position: relative; padding-bottom: 14px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--red); border-radius: 3px; }
.eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; }
.eyebrow.light { color: var(--gold); }
.lang-en .eyebrow { letter-spacing: .3em; font-family: var(--serif); }
.section-lead { color: var(--muted); max-width: 760px; margin: -14px 0 28px; }

/* welcome split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media picture, .split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.welcome .split-media::before { content: ""; position: absolute; left: -18px; top: -18px; width: 55%; height: 60%; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.seal-badge { position: absolute; right: -22px; bottom: -28px; width: 128px; height: 128px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); padding: 14px; }
.seal-badge img { width: 100%; height: 100%; object-fit: contain; }
.split-text h2 { font-size: clamp(26px, 3vw, 38px); }
.split-text > p { color: var(--muted); font-size: 16.5px; }
.facts { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.facts strong { display: block; font-family: Georgia, var(--serif); font-size: 30px; color: var(--red); line-height: 1.1; }
.facts span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(15, 42, 74, .06); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue), var(--blue-l)); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.card h3 { font-size: 19px; line-height: 1.45; margin-bottom: 10px; }
.card h3 a { color: var(--blue); }
.card h3 a:hover { color: var(--red); }
.card p { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist); color: var(--blue); }
.tag-association { background: #fbeaec; color: var(--red); }
.tag-hust { background: #e6eef8; color: var(--blue); }
.tag-alumni { background: #f7f0e2; color: #8a6a2f; }

/* events */
.event-list { display: grid; gap: 18px; }
.event-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; transition: box-shadow .25s, border-color .25s; }
.event-row:hover { box-shadow: var(--shadow); border-color: transparent; }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--blue); color: #fff; border-radius: 12px; padding: 10px 0; line-height: 1.1; }
.event-date .m { font-size: 13px; letter-spacing: .1em; color: var(--gold); }
.event-date .d { font-family: Georgia, serif; font-size: 34px; font-weight: 700; }
.event-date .y { font-size: 12px; opacity: .75; }
.event-info h3 { font-size: 20px; margin-bottom: 6px; }
.event-info h3 a { color: var(--blue); }
.event-info p { margin: 0; color: var(--muted); font-size: 15px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 6px !important; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 16px; height: 16px; fill: var(--gold-d); }
.event-actions { display: flex; flex-direction: column; gap: 8px; }
.status { display: inline-block; vertical-align: middle; font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-left: 6px; }
.status-open { background: #e3f4ea; color: #1f7a45; }
.status-full { background: #fdf0dc; color: #9a5b00; }
.status-tbd { background: #e6eef8; color: var(--blue); }
.status-closed { background: #eceff3; color: var(--muted); }

.empty-card, .call-card { display: flex; gap: 24px; align-items: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 36px; }
.empty-card h3, .call-card h3 { font-size: 20px; margin-bottom: 6px; }
.empty-card p, .call-card p { color: var(--muted); margin-bottom: 14px; }
.empty-icon { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--mist); color: var(--blue); }
.empty-icon svg { width: 34px; height: 34px; fill: currentColor; }
.card-grid > .call-card { grid-column: 1 / -1; }
.tint .empty-card, .tint .call-card { background: #fff; }

/* gallery strip on home */
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.strip-item { position: relative; overflow: hidden; border-radius: 12px; display: block; }
.strip-item.wide { grid-row: span 2; }
.strip-item:nth-child(n+6) { display: none; }
.strip-item picture, .strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.strip-item:hover img { transform: scale(1.06); }
.strip-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(10, 30, 56, .75)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.strip-item:hover span, .strip-item:focus-visible span { opacity: 1; transform: none; }

/* alma mater banner */
.alma { position: relative; color: #fff; padding: 120px 0; overflow: hidden; background: var(--blue-d); }
.alma-bg, .alma-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.alma::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 56, .9), rgba(23, 59, 101, .55)); }
.alma-inner { position: relative; z-index: 2; max-width: var(--wrap); }
.alma h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); max-width: 720px; }
.alma p { max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 17px; margin-bottom: 30px; }

/* join band */
.join-band { position: relative; background: linear-gradient(120deg, var(--red) 0%, #8f1f28 100%); color: #fff; overflow: hidden; }
.join-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.join-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.join-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 640px; }
.join-actions { display: flex; gap: 14px; flex-wrap: wrap; flex: none; }
.join-band .btn-red { background: #fff; color: var(--red); box-shadow: none; }
.join-band .btn-red:hover { background: var(--gold); color: var(--blue-d); }
.join-palms { position: absolute; right: 2%; bottom: 0; width: 320px; height: 160px; fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; stroke-linecap: round; }
.join-palms .sea { fill: rgba(255, 255, 255, .08); stroke: none; }

/* ------------------------------------------------------------ inner page banner */
.page-hero { position: relative; color: #fff; padding: 96px 0 64px; overflow: hidden; background: var(--blue-d); }
.page-hero-bg, .page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 56, .88), rgba(23, 59, 101, .5)); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); max-width: 900px; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .88); max-width: 720px; font-size: 17px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ prose */
.prose { font-size: 16.5px; }
.prose h2 { font-size: 26px; margin: 1.8em 0 .7em; padding-left: 14px; border-left: 4px solid var(--red); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--blue-l); text-decoration: underline; text-decoration-color: rgba(42, 86, 137, .35); text-underline-offset: 3px; }
.prose a:hover { color: var(--red); text-decoration-color: currentColor; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; background: var(--mist); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; color: var(--muted); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--mist); color: var(--blue); }
.prose strong { color: var(--blue); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.md-figure { margin: 1.6em 0; }
.md-figure img { border-radius: 12px; }
.md-figure figcaption, .article-cover figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }

/* about */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: 0 2px 10px rgba(15, 42, 74, .05); }
.aside-card img { margin: 0 auto 14px; max-width: 170px; }
.aside-card p { font-family: var(--serif); color: var(--blue); font-weight: 700; margin-bottom: 10px; letter-spacing: .08em; }
.aside-card small { font-family: var(--sans); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.logo-card { background: linear-gradient(160deg, #fff 0%, var(--mist) 100%); }

.timeline { list-style: none; padding: 0 !important; margin: 1.6em 0 2em; position: relative; }
.timeline::before { content: ""; position: absolute; left: 66px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--red)); }
.timeline li { display: grid; grid-template-columns: 66px 1fr; gap: 28px; margin: 0 0 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 60px; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl-year { font-family: Georgia, serif; font-weight: 700; font-size: 19px; color: var(--red); text-align: right; padding-right: 12px; line-height: 1.6; }
.timeline p { margin: 0; padding-left: 10px; }

/* news */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; font-size: 14.5px; transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.card[hidden] { display: none; }

.article { max-width: 860px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-cover { margin: 0 0 30px; }
.article-cover img { width: 100%; border-radius: var(--radius); }
.read-original { margin: 28px 0; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pn { display: block; padding: 16px 20px; border-radius: 12px; background: var(--mist); color: var(--blue); font-weight: 600; line-height: 1.5; }
.pn small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; margin-bottom: 4px; }
.pn:hover { background: var(--blue); color: #fff; }
.pn:hover small { color: rgba(255, 255, 255, .75); }
.prev-next .pn:nth-child(2) { text-align: right; }

.event-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 28px; background: var(--mist); border-radius: var(--radius); padding: 10px 26px; }
.event-facts div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.event-facts dt { font-size: 13px; color: var(--muted); }
.event-facts dd { margin: 0; font-weight: 600; color: var(--blue); }

.notice { display: flex; gap: 16px; align-items: flex-start; background: #fbf7ef; border: 1px solid #efe2c6; border-radius: var(--radius); padding: 20px 24px; margin-top: 40px; color: #6b5a35; font-size: 15px; }
.section > .wrap.notice { margin-top: 0; }
.notice svg { flex: none; width: 24px; height: 24px; fill: var(--gold-d); margin-top: 2px; }
.notice p { margin: 0; }

/* gallery */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.album-card picture, .album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.album-card:hover img { transform: scale(1.06); }
.album-info { position: absolute; inset: auto 0 0 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(10, 30, 56, .85)); color: #fff; }
.album-info strong { display: block; font-family: var(--serif); font-size: 21px; }
.album-info small { color: var(--gold); font-size: 13.5px; }
.album-intro { max-width: 820px; margin-bottom: 32px; color: var(--muted); }
.photo-grid { columns: 3 300px; column-gap: 16px; }
.photo { position: relative; display: block; margin: 0 0 16px; break-inside: avoid; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.photo img { width: 100%; transition: transform .6s; }
.photo:hover img { transform: scale(1.04); }
.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(10, 30, 56, .7)); opacity: 0; transition: opacity .3s; }
.photo:hover span, .photo:focus-visible span { opacity: 1; }
.credit { font-size: 13.5px; color: var(--muted); margin: 20px 0; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 16, 30, .94); display: flex; align-items: center; justify-content: center; padding: 40px 80px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); margin-top: 14px; font-size: 15px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--red); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* contact */
.join-intro { max-width: 860px; margin-bottom: 36px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; box-shadow: 0 2px 10px rgba(15, 42, 74, .05); }
.contact-card .quick-icon { margin-bottom: 14px; }
.contact-card h3 { font-size: 20px; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 15px; flex: 1; }
.qr { width: 180px; height: 180px; border-radius: 10px; border: 1px solid var(--line); padding: 6px; background: #fff; }
.qr-ph { width: 180px; height: 180px; border-radius: 10px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13.5px; text-align: center; padding: 12px; }
.qr-ph svg { width: 38px; height: 38px; fill: var(--line); }
.pending { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: 14px; font-weight: 600; }
.volunteer .split-media img { aspect-ratio: 16 / 10; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.nf-code { font-family: Georgia, serif; font-size: 120px; line-height: 1; font-weight: 700; color: var(--mist); -webkit-text-stroke: 2px var(--blue); margin-bottom: 10px; }
.notfound h1 { font-size: 30px; }
.notfound p { color: var(--muted); }
.nf-actions { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }

/* ------------------------------------------------------------ footer */
.site-footer { position: relative; background: var(--blue-d); color: rgba(255, 255, 255, .78); font-size: 14.5px; margin-top: 0; }
.footer-wave { position: absolute; top: -59px; left: 0; right: 0; height: 60px; pointer-events: none; }
.footer-wave svg { width: 100%; height: 100%; fill: var(--blue-d); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-top: 72px; padding-bottom: 48px; }
.site-footer h2 { font-family: var(--sans); color: #fff; font-size: 15px; letter-spacing: .12em; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #fff; }
.footer-brand strong { display: block; font-family: var(--serif); font-size: 18px; color: #fff; }
.footer-brand small { display: block; color: rgba(255, 255, 255, .6); font-size: 12px; }
.logo-disc { flex: none; width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.logo-disc img { width: 52px; height: auto; }
.footer-about p { line-height: 1.8; max-width: 380px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .78); }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; width: 18px; height: 18px; fill: var(--gold); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .main-nav a { padding: 10px 10px; font-size: 15px; }
  .main-nav a::after { left: 10px; right: 10px; }
  .lang-en .main-nav a { padding: 10px 8px; font-size: 14px; }
  .lang-en .brand-text strong { font-size: 16px; }
}

@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px 24px 40px; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .25s, transform .25s, visibility .25s; border-top: 1px solid var(--line); }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .main-nav a, .lang-en .main-nav a { padding: 16px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--red); }
  .nav-lang { display: block; margin-top: 18px; padding: 10px !important; border: 1px solid var(--gold) !important; border-radius: 999px !important; text-align: center; color: var(--gold-d) !important; }
  .site-header .header-inner { min-height: var(--header-h); }
  .brand img { width: 54px; }
  body.nav-open { overflow: hidden; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .album-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 48px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-aside { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .topbar .motto { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .toplinks { gap: 14px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 10.5px; }
  .lang-en .brand-text strong { font-size: 15px; }
  .brand img { width: 46px; }
  .hero { min-height: 560px; }
  .hero-inner { padding-bottom: 150px; }
  .hero-dots { bottom: 112px; right: 18px; }
  .quick { margin-top: -84px; }
  .quick-card { padding: 18px 16px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .quick-icon { width: 44px; height: 44px; }
  .quick-icon svg { width: 22px; height: 22px; }
  .quick-card strong { font-size: 16px; }
  .quick-card small { font-size: 12.5px; }
  .section { padding: 60px 0; }
  .home .quick + .section { padding-top: 64px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 26px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .welcome .split-media::before { left: -8px; top: -8px; }
  .seal-badge { width: 96px; height: 96px; right: -6px; bottom: -22px; padding: 10px; }
  .facts strong { font-size: 26px; }
  .card-grid, .album-grid, .contact-grid { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 72px 1fr; gap: 16px 18px; padding: 18px; }
  .event-date .d { font-size: 26px; }
  .event-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .empty-card, .call-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; }
  .strip-item.wide { grid-column: span 2; grid-row: auto; }
  .strip-item:nth-child(n+6) { display: none; }
  .strip-item span { opacity: 1; transform: none; font-size: 13px; padding: 24px 10px 8px; }
  .alma { padding: 80px 0; }
  .join-inner { flex-direction: column; align-items: flex-start; }
  .join-palms { width: 200px; height: 100px; opacity: .7; }
  .page-hero { padding: 64px 0 44px; }
  .page-hero p { font-size: 15.5px; }
  .about-aside { grid-template-columns: 1fr; }
  .timeline::before { left: 50px; }
  .timeline li { grid-template-columns: 50px 1fr; gap: 22px; }
  .timeline li::before { left: 44px; }
  .tl-year { font-size: 16px; padding-right: 10px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .pn:nth-child(2) { text-align: left; }
  .event-facts { grid-template-columns: 1fr; }
  .photo-grid { columns: 2 150px; column-gap: 10px; }
  .photo { margin-bottom: 10px; }
  .lightbox { padding: 60px 10px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; }
  .nf-code { font-size: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .hero-dots, .join-band, .site-footer, .lightbox { display: none !important; }
  .page-hero, .hero { color: #000; background: none; min-height: 0; padding: 20px 0; }
  .page-hero::after, .hero-shade, .page-hero-bg, .hero-slides { display: none; }
  .page-hero h1, .hero-title { color: #000; }
}

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 42px; }
  .brand-text strong { font-size: 15.5px; letter-spacing: 0; white-space: nowrap; }
  .lang-en .brand-text strong { font-size: 14px; white-space: normal; line-height: 1.25; }
  .brand-text small { display: none; }
  .hero-title { letter-spacing: .02em; }
}
