:root {
    color-scheme: light;
    --night: #0d1923;
    --night-deep: #0a141d;
    --ink: #162630;
    --muted: #52646a;
    --cream: #f7f5ef;
    --paper: #fffdf8;
    --gold: #e7c486;
    --line: #ded9cd;
    --serif: Georgia, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #a27636; outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(2.35rem, 5vw, 4.2rem); letter-spacing: -.047em; }
[lang="zh-Hans"] h1, [lang="zh-Hans"] h2 { letter-spacing: -.035em; line-height: 1.23; }
.wrap { width: min(1240px, calc(100% - 120px)); margin-inline: auto; }
.skip { position: absolute; z-index: 20; left: 12px; top: 12px; transform: translateY(-200%); background: var(--paper); color: var(--ink); padding: 10px; }
.skip:focus { transform: none; }
.topbar { position: relative; z-index: 2; background: var(--night-deep); color: #fcf8ee; border-bottom: 1px solid #ffffff19; }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { flex: none; }
.brand span { display: grid; gap: 4px; line-height: 1.15; }
.brand strong { font-size: 1.15rem; font-weight: 600; letter-spacing: .17em; }
.brand small { color: #bdc9cb; font-size: .68rem; }
nav { display: flex; gap: clamp(16px, 2.5vw, 38px); font-size: .86rem; white-space: nowrap; }
nav a, .admin-nav a { color: #d3dad8; transition: color .2s; }
nav a:hover, .admin-nav a:hover { color: var(--gold); }
.language, .menu-toggle { color: var(--gold); padding: 6px 14px; border: 1px solid #e7c48666; border-radius: 100px; font-size: .83rem; white-space: nowrap; }
.language:hover, .menu-toggle:hover { background: #e7c4861a; }
.menu-toggle { display: none; background: transparent; }
.hero { overflow: hidden; color: #faf5e9; background: radial-gradient(ellipse at 75% 45%, #172d38 0%, var(--night) 57%, var(--night-deep) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr .93fr; align-items: center; min-height: clamp(520px, 67vh, 740px); position: relative; }
.hero-copy { position: relative; z-index: 1; padding-block: 72px; animation: arrive .75s ease both; }
.eyebrow { color: #80602d; font-size: .72rem; font-weight: 700; letter-spacing: .18em; margin-bottom: 20px; }
.hero .eyebrow, .contact .eyebrow { color: var(--gold); }
.hero .eyebrow { display: flex; align-items: center; gap: 11px; }
.hero .eyebrow span { width: 23px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3.4rem, 6.4vw, 7rem); line-height: .99; letter-spacing: -.056em; }
.hero h1 em { color: var(--gold); font-weight: 400; }
[lang="zh-Hans"] .hero h1 em { font-style: normal; }
.hero-description { max-width: 470px; margin-top: 26px; color: #c8d2d2; font-size: clamp(.98rem, 1.4vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 46px; border-radius: 4px; border: 1px solid transparent; padding: 10px 17px; font-size: .84rem; font-weight: 650; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.gold { background: var(--gold); color: #14212a; }
.gold:hover { background: #f3d6a0; }
.outline { background: transparent; color: #f9f5e9; border-color: #d8e6e34a; }
.outline:hover { border-color: var(--gold); }
.globe { position: relative; width: 119%; margin-left: -8%; animation: appear 1.4s ease both; }
.globe img { width: 100%; height: auto; }
.globe canvas { display: none; position: absolute; inset: 0; width: 100%; height: auto; }
.globe-spinning img { visibility: hidden; }
.globe-spinning canvas { display: block; }
.globe-index { position: absolute; right: 8%; bottom: 4%; font: .65rem var(--sans); letter-spacing: .16em; color: #c3d0d0; }
.globe-index b { color: var(--gold); padding-inline: 5px; }
.hero-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #ffffff23; color: #aababb; padding-block: 15px; font-size: .67rem; letter-spacing: .16em; }
.section { padding-block: clamp(68px, 9vw, 126px); }
.split { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(34px, 7vw, 116px); }
.about-copy p, .contact p:not(.eyebrow), .section-lead { color: var(--muted); font-size: 1.07rem; }
.about-copy p + p { margin-top: 16px; }
.registry { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 28px; padding: 10px 15px; border: 1px solid var(--line); font-size: .68rem; letter-spacing: .08em; }
.registry strong { color: #725727; white-space: nowrap; }
.mission { background: #eeebe2; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border: solid var(--line); border-width: 1px 0; }
.pillars article { padding: 26px clamp(18px, 3vw, 44px) 32px; }
.pillars article + article { border-left: 1px solid var(--line); }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; color: #846335; }
.pillar-top span { font-size: 2.2rem; line-height: 1; }
.pillar-top small { letter-spacing: .12em; }
.pillars h3, .event h3 { font-size: 1.75rem; }
.pillars p { margin-top: 12px; color: var(--muted); }
.section-lead { margin-top: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.event, .empty { background: var(--paper); border: 1px solid var(--line); padding: 24px; overflow-wrap: anywhere; }
.empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
.empty > span { font-size: 2rem; color: #896535; }
.empty h3 { font-size: 1.45rem; }
.empty p, .event p { color: var(--muted); margin-top: 8px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 11px; color: #7b5c2c; font-size: .8rem; }
.event details { margin-top: 14px; }
.event summary { cursor: pointer; width: fit-content; font-size: .9rem; }
.event a { display: inline-block; margin-top: 10px; color: #7b5c2c; text-decoration: underline; }
.contact { background: var(--night); color: #faf5e9; }
.contact p:not(.eyebrow) { color: #becaca; }
.email { display: block; width: fit-content; color: var(--gold); margin-top: 16px; border-bottom: 1px solid #e7c48677; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 2.1rem); overflow-wrap: anywhere; }
.facebook { display: inline-block; margin-top: 18px; font-size: .87rem; }
.facebook:hover { color: var(--gold); }
footer { background: var(--night-deep); color: #bbc8c9; border-top: 1px solid #ffffff1b; font-size: .8rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 24px; }
.footer-inner a:hover { color: var(--gold); }
.admin-nav { display: flex; gap: 16px; align-items: center; font-size: .85rem; }
.admin-main { padding-block: 48px 80px; }
.login-main { max-width: 470px; }
.admin-main h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 24px; }
.admin-main h2 { font-size: 1.55rem; }
.admin-main h2 small { font: .8rem var(--sans); color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: clamp(18px, 3vw, 32px); }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; }
.panel-heading a { text-decoration: underline; }
.muted { color: var(--muted); font-size: .85rem; }
.panel > .muted { margin-top: 10px; }
.stack { display: grid; gap: 18px; margin-top: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack label { display: grid; gap: 5px; font-size: .88rem; }
.stack input, .stack textarea, .stack select { width: 100%; min-width: 0; border: 1px solid #c9c5b9; padding: 9px 11px; border-radius: 4px; background: white; color: var(--ink); }
.stack textarea { resize: vertical; }
.stack > button { justify-self: start; }
.alert, .notice { padding: 10px 13px; margin-bottom: 15px; border-radius: 4px; background: #f9e6e2; color: #852b22; }
.notice { background: #e5f0e5; color: #2d5c36; }
.list-item { display: grid; gap: 4px; padding-block: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.list-item:hover strong { text-decoration: underline; }
.badge { width: fit-content; padding: 1px 7px; background: #efeadf; border-radius: 50px; font-size: .72rem; }
.badge.live { background: #e3eee4; color: #2d5c36; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1050px) {
    .wrap { width: calc(100% - 72px); }
    .header-inner { gap: 22px; }
}
@media (max-width: 800px) {
    .wrap { width: calc(100% - 40px); }
    .header-inner { flex-wrap: wrap; gap: 12px; min-height: 68px; padding-block: 12px; }
    .header-inner nav { flex-basis: 100%; order: 4; gap: 12px 20px; flex-wrap: wrap; }
    .menu-ready .menu-toggle { display: inline-block; }
    .menu-ready nav:not(.open) { display: none; }
    .brand small { max-width: 142px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { padding-block: 62px 12px; }
    .globe { width: min(100%, 510px); margin: -10px auto 12px; }
    .split { grid-template-columns: 1fr; gap: 24px; }
    .event-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
    .wrap { width: calc(100% - 32px); }
    .hero h1 { font-size: clamp(2.65rem, 11vw, 3.65rem); }
    .hero-foot { font-size: .57rem; letter-spacing: .08em; }
    .hero-foot span:first-child { display: none; }
    .pillars, .event-grid, .fields { grid-template-columns: 1fr; }
    .pillars article + article { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
