:root {
  --purple: #510b48;
  --deep: #280522;
  --gold: #d6ad5e;
  --paper: #faf6f0;
  --ink: #261923;
  --muted: #756975;
  --line: rgba(81, 11, 72, .15);
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 18px; padding: 10px 16px; color: var(--deep); background: #fff; border-radius: 999px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-nav { position: fixed; z-index: 40; top: 22px; left: 50%; width: min(1180px, calc(100% - 48px)); min-height: 68px; display: flex; align-items: center; gap: 18px; padding: 8px 13px; color: #fff; background: rgba(35, 5, 31, .86); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; box-shadow: 0 18px 55px rgba(31, 4, 28, .28); backdrop-filter: blur(18px); transform: translateX(-50%); transition: background .25s ease, min-height .25s ease; }
.site-nav.nav--scrolled { min-height: 58px; background: rgba(35, 5, 31, .96); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; padding: 2px; object-fit: contain; background: #fff; border-radius: 50%; }
.brand__text { display: grid; gap: 3px; min-width: 0; }
.brand__name { font-size: 14px; font-weight: 750; line-height: 1.1; white-space: nowrap; }
.brand__meta { max-width: 315px; overflow: hidden; color: rgba(255, 255, 255, .72); font-size: 9px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.navlinks { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); margin-left: auto; color: rgba(255, 255, 255, .87); font-size: 13px; }
.navlinks a { position: relative; padding: 10px 0; white-space: nowrap; }
.navlinks a::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; content: ""; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.navlinks a:hover::after, .navlinks a:focus-visible::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.language-link { padding: 7px 10px; color: var(--deep); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.menu-toggle { display: none; place-items: center; width: 42px; height: 42px; margin-left: auto; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .36); border-radius: 50%; cursor: pointer; font-size: 20px; }

.page-main { padding-top: 92px; }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: clamp(32px, 7vw, 108px); align-items: center; min-height: 680px; padding: clamp(116px, 14vw, 170px) max(28px, calc((100% - 1160px) / 2)) clamp(70px, 10vw, 120px); color: #fff; background: radial-gradient(circle at 85% 12%, rgba(214, 173, 94, .30), transparent 27rem), linear-gradient(135deg, #25051f, #510b48 70%, #6d145d); }
.hero__kicker, .eyebrow { display: block; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .page-heading h1, .section h2, .site-footer h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; }
.hero h1 { max-width: 690px; font-size: clamp(43px, 6vw, 82px); line-height: 1.08; }
.hero p { max-width: 590px; margin: 25px 0 0; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 20px; color: var(--deep); background: #fff; border: 1px solid #fff; border-radius: 999px; font-size: 13px; font-weight: 750; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .5); }
.hero__media { margin: 0; padding: clamp(12px, 2vw, 20px); background: rgba(18, 3, 16, .28); border: 1px solid rgba(255, 255, 255, .21); border-radius: 28px; box-shadow: 0 30px 70px rgba(16, 2, 14, .27); }
.hero__media img, .full-photo img { display: block; width: 100%; height: auto; object-fit: contain; background: #3b0a34; }
.hero__media figcaption { margin-top: 11px; color: rgba(255, 255, 255, .68); font-size: 12px; line-height: 1.6; }

.section { width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: clamp(72px, 10vw, 126px) 0; }
.section--tint { width: 100%; padding-right: max(28px, calc((100% - 1160px) / 2)); padding-left: max(28px, calc((100% - 1160px) / 2)); background: #f0e8e9; }
.section h2 { max-width: 860px; font-size: clamp(34px, 4.8vw, 62px); line-height: 1.15; }
.section__intro { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.card { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 17px 42px rgba(66, 24, 58, .06); }
.card h3 { margin: 0; color: var(--purple); font-family: var(--serif); font-size: 27px; font-weight: 600; }
.card p, .card li { color: #574b55; font-size: 15px; line-height: 1.85; }
.card p { margin: 14px 0 0; }
.facts-grid, .program-grid, .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.fact { padding: 23px; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 15px 36px rgba(66, 24, 58, .06); }
.fact strong { display: block; color: var(--purple); font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.fact span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.program-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.program-card h3 { margin: 12px 0 0; color: var(--purple); font-family: var(--serif); font-size: 25px; }
.program-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-photo { margin: 0; overflow: hidden; background: #f0e8e9; border: 1px solid var(--line); border-radius: 18px; }
.full-photo figcaption { padding: 12px 15px; color: var(--muted); background: #fff; font-size: 12px; line-height: 1.55; }

.page-heading { width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: clamp(92px, 12vw, 142px) 0 48px; }
.page-heading h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1.08; }
.page-heading p { max-width: 740px; margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.page-heading--history { width: 100%; padding-right: max(28px, calc((100% - 1160px) / 2)); padding-left: max(28px, calc((100% - 1160px) / 2)); color: #fff; background: linear-gradient(135deg, #25051f, #611052); }
.page-heading--history p { color: rgba(255, 255, 255, .78); }
.page-heading--donate { width: 100%; padding-right: max(28px, calc((100% - 1160px) / 2)); padding-left: max(28px, calc((100% - 1160px) / 2)); color: #fff; background: radial-gradient(circle at 80% 20%, rgba(214, 173, 94, .32), transparent 28rem), linear-gradient(135deg, #25051f, #611052); }
.page-heading--donate p { color: rgba(255, 255, 255, .82); }
.donation-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(28px, 6vw, 72px); width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: clamp(62px, 9vw, 112px) 0; }
.donation-copy h2 { margin: 13px 0 0; color: var(--purple); font-family: var(--serif); font-size: clamp(31px, 4vw, 48px); font-weight: 600; line-height: 1.16; }
.donation-copy p, .donation-copy li { color: var(--muted); font-size: 15px; line-height: 1.85; }
.donation-copy p { margin: 18px 0 0; }
.donation-copy ul { margin: 23px 0 0; padding-left: 20px; }
.donation-copy li + li { margin-top: 8px; }
.donation-form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 48px rgba(66, 24, 58, .08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.donation-form label, .donation-form legend { color: var(--purple); font-size: 13px; font-weight: 750; line-height: 1.5; }
.donation-form label { display: grid; gap: 7px; }
.donation-form input:not([type="checkbox"]), .donation-form select, .donation-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); background: #fffdfb; border: 1px solid rgba(81, 11, 72, .27); border-radius: 8px; font: inherit; font-size: 15px; line-height: 1.4; }
.donation-form textarea { resize: vertical; }
.donation-form input:not([type="checkbox"]):focus, .donation-form select:focus, .donation-form textarea:focus { border-color: var(--purple); outline: 3px solid rgba(214, 173, 94, .34); outline-offset: 1px; }
.donation-form fieldset { margin: 0; padding: 0; border: 0; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 10px; }
.donation-form .checkbox-grid label, .donation-form .consent { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-weight: 500; }
.donation-form input[type="checkbox"] { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--purple); }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.field-optional, .form-note { color: var(--muted); font-size: 12px; font-weight: 500; }
.form-note { margin: -8px 0 0; line-height: 1.65; }
.form-status { min-height: 1.5em; color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-status[data-state="success"] { color: #17653a; }
.form-status[data-state="error"] { color: #a12727; }
.button--submit { justify-self: start; color: #fff; background: var(--purple); border-color: var(--purple); cursor: pointer; }
.button--submit:disabled { cursor: wait; opacity: .7; transform: none; }
.timeline { position: relative; width: min(1060px, calc(100% - 56px)); margin: 0 auto; padding: 40px 0 90px; }
.timeline::before { position: absolute; top: 40px; bottom: 90px; left: 138px; width: 1px; content: ""; background: rgba(81, 11, 72, .22); }
.timeline__entry { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 44px; padding: 0 0 42px; }
.timeline__year { position: relative; z-index: 1; align-self: start; padding-top: 20px; color: var(--purple); background: var(--paper); font-family: var(--serif); font-size: 28px; font-weight: 700; }
.timeline__year::after { position: absolute; top: 30px; right: -35px; width: 10px; height: 10px; content: ""; background: var(--gold); border: 4px solid var(--paper); border-radius: 50%; }
.timeline__entry .card { padding: 27px; }

.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 24px; align-items: stretch; width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: 20px 0 20px; }
.feature__copy { display: flex; flex-direction: column; justify-content: flex-end; min-height: 390px; padding: clamp(28px, 4vw, 46px); color: #fff; background: linear-gradient(135deg, #310729, #671257); }
.feature__copy h2 { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.16; }
.feature__copy p { margin: 16px 0 0; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.85; }
.feature__image { margin: 0; padding: 15px; background: #e9dfe7; }
.feature__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feature__image figcaption { padding: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding: 46px 0 96px; }
.activity-card { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 42px rgba(66, 24, 58, .07); }
.activity-card__media { margin: 0; background: #eee4ea; }
.activity-card__media img { display: block; width: 100%; height: auto; object-fit: contain; }
.activity-card__body { padding: 25px; }
.activity-card h2 { margin: 12px 0 0; color: var(--purple); font-family: var(--serif); font-size: 28px; font-weight: 600; }
.activity-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.tag { display: inline-block; margin: 18px 7px 0 0; padding: 6px 9px; color: var(--purple); background: #f3e9f0; border-radius: 999px; font-size: 12px; font-weight: 700; }

.contact-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 26px; margin-top: 34px; padding: clamp(25px, 4vw, 44px); color: #fff; background: #2b0728; }
.contact-panel h3 { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 31px; }
.contact-panel p { margin: 14px 0 0; color: rgba(255, 255, 255, .8); line-height: 1.8; }
.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 14px; line-height: 1.6; }
.contact-list__wechat { display: grid; justify-items: start; gap: 9px; }
.contact-list__wechat span { color: rgba(255, 255, 255, .76); font-size: 13px; }
.contact-list__wechat img { width: min(150px, 100%); height: auto; padding: 6px; background: #fff; border-radius: 7px; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 44px; padding: 68px max(28px, calc((100% - 1160px) / 2)) 30px; color: #fff; background: #21041d; }
.site-footer__lead { display: flex; align-items: flex-start; gap: 16px; }
.site-footer__lead img { width: 62px; height: 62px; padding: 3px; object-fit: contain; background: #fff; border-radius: 50%; }
.site-footer__lead span { color: rgba(255, 255, 255, .64); font-size: 12px; }
.site-footer h2 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.18; }
.site-footer__nav { display: grid; align-content: start; gap: 11px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.site-footer__legal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0; padding: 22px 0 0; color: rgba(255, 255, 255, .72); border-top: 1px solid rgba(255, 255, 255, .18); font-size: 12px; line-height: 1.7; }
.site-footer__legal strong { color: #fff; }
.site-footer a:hover { color: var(--gold); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .site-nav { top: 14px; width: calc(100% - 28px); min-height: 58px; padding-right: 10px; }
  .brand__text { display: none; }
  .brand img { width: 42px; height: 42px; }
  .menu-toggle { display: grid; }
  .navlinks { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: grid; gap: 4px; margin: 0; padding: 14px 18px; visibility: hidden; opacity: 0; background: rgba(42, 7, 38, .98); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .site-nav.menu-open .navlinks { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .language-link { margin-left: auto; }
  .hero, .contact-panel, .feature, .donation-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 120px; }
  .detail-grid, .facts-grid, .program-grid, .photo-grid, .activity-grid { grid-template-columns: 1fr; }
  .page-heading { padding-top: 112px; }
  .timeline::before { left: 20px; }
  .timeline__entry { grid-template-columns: 1fr; gap: 12px; padding-left: 42px; }
  .timeline__year { padding-top: 0; font-size: 24px; }
  .timeline__year::after { top: 8px; right: auto; left: -27px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__legal { grid-template-columns: 1fr; }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
