:root {
  --ink: #172033;
  --muted: #657085;
  --line: #e7eaf0;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --deep: #183059;
  --deep-2: #274472;
  --accent: #9a6b2f;
  --accent-2: #caa66a;
  --shadow: 0 24px 80px rgba(23, 32, 51, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-top { background: var(--deep); color: rgba(255,255,255,.86); font-size: 14px; }
.top-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-top nav { display: flex; gap: 22px; }
.header-top a:hover { color: #fff; }
.nav-wrap { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 280px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--deep), var(--deep-2)); border-radius: 50%; font-weight: 800; font-size: 25px; box-shadow: 0 8px 24px rgba(24,48,89,.24); }
.brand-text strong { display: block; font-size: 21px; letter-spacing: .04em; }
.brand-text small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .03em; }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: #2f3b51; }
.primary-nav a { position: relative; padding: 30px 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 21px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--ink); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.menu-toggle em { position: absolute; width: 1px; height: 1px; overflow: hidden; }

.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background:
    radial-gradient(circle at 82% 24%, rgba(202,166,106,.36), transparent 26%),
    linear-gradient(115deg, rgba(24,48,89,.95), rgba(39,68,114,.74) 48%, rgba(19,44,70,.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cpath fill='%23ffffff' fill-opacity='.10' d='M0 730C237 617 401 644 573 686c224 55 433 92 684-45 124-68 249-92 343-78v337H0z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.13' d='M0 592c201-96 384-114 552-53 164 60 318 76 461 7 200-96 368-150 587-106v460H0z'/%3E%3Ccircle cx='1160' cy='232' r='120' fill='%23fff' fill-opacity='.08'/%3E%3C/svg%3E");
  background-size: cover; background-position: center; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,24,45,.82), rgba(9,24,45,.28) 64%, rgba(9,24,45,.62)); }
.hero-content { position: relative; padding: 120px 0 170px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--accent-2); letter-spacing: .18em; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: 1.08; letter-spacing: .04em; font-weight: 800; max-width: 790px; }
.hero-lead { max-width: 660px; margin: 24px 0 34px; font-size: 18px; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 14px 32px rgba(154,107,47,.27); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.btn.light { background: #fff; color: var(--deep); }
.hero-card { position: absolute; right: max(20px, calc((100vw - 1180px)/2)); bottom: 44px; width: min(500px, calc(100% - 40px)); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.95); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-card div { padding: 26px 20px; border-right: 1px solid var(--line); }
.hero-card div:last-child { border-right: 0; }
.hero-card strong { display: block; font-size: 32px; color: var(--deep); line-height: 1; }
.hero-card span { display: block; color: var(--muted); margin-top: 8px; font-size: 14px; }

.notice-bar { border-bottom: 1px solid var(--line); background: #fff; }
.notice-inner { height: 58px; display: flex; align-items: center; gap: 18px; white-space: nowrap; overflow: hidden; }
.notice-inner strong { color: var(--accent); }
.notice-inner a { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.notice-inner span { color: var(--muted); font-size: 14px; }

.section { padding: 92px 0; }
.section h2 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; color: var(--deep); letter-spacing: .03em; }
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about p { color: var(--muted); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-grid article, .story-grid article, .event-cards article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 36px rgba(23,32,51,.06); }
.about-grid h3, .event-cards h3, .story-grid h3 { margin: 0 0 10px; color: var(--deep); font-size: 21px; }
.about-grid p, .story-grid p, .event-cards p { margin: 0; color: var(--muted); }

.news-section, .figures { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.more-link { color: var(--accent); font-weight: 700; }
.news-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
.feature-news { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-img { height: 280px; background:
    linear-gradient(135deg, rgba(24,48,89,.88), rgba(39,68,114,.38)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='500'%3E%3Crect width='1000' height='500' fill='%23dfe7f1'/%3E%3Cpath d='M0 370c190-88 368-103 534-44 143 50 265 73 466-16v190H0z' fill='%23ffffff' fill-opacity='.55'/%3E%3Cpath d='M180 250h620v28H180zm40-70h540v30H220zm80-78h384v34H300z' fill='%23183059' fill-opacity='.22'/%3E%3C/svg%3E");
  background-size: cover; background-position: center; }
.feature-body { padding: 30px; }
time { color: var(--accent); font-weight: 700; font-size: 14px; }
.feature-body h3 { margin: 12px 0 12px; font-size: 26px; color: var(--deep); }
.feature-body p { margin: 0; color: var(--muted); }
.news-list { display: grid; gap: 14px; }
.news-list a { display: grid; grid-template-columns: 105px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.news-list a:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,32,51,.08); }
.news-list span { font-size: 18px; font-weight: 700; color: #26344d; }

.event-cards, .story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-cards article { display: flex; gap: 20px; align-items: flex-start; }
.event-cards time { width: 64px; min-width: 64px; height: 72px; display: grid; place-items: center; background: var(--deep); color: white; border-radius: 14px; line-height: 1.1; }
.event-cards time strong { font-size: 28px; }
.event-cards time span { font-size: 13px; color: rgba(255,255,255,.8); }
.event-cards a.event-link { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 36px rgba(23,32,51,.06); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.event-cards a.event-link:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,32,51,.08); }
.event-cards a.event-link h3 { margin: 0 0 10px; color: var(--deep); font-size: 21px; }
.event-cards a.event-link p { margin: 0; color: var(--muted); }
.section-sub { margin: 10px 0 0; color: var(--muted); }
.story-grid a.story-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 14px 36px rgba(23,32,51,.06); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.story-grid a.story-link:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,32,51,.08); }
.story-grid a.story-link h3 { margin: 10px 0 10px; color: var(--deep); font-size: 21px; }
.story-grid a.story-link p { margin: 0; color: var(--muted); }
.alumni-card-more { margin-top: 12px; color: var(--accent); font-size: 13px; font-weight: 700; }
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal-overlay[hidden] { display: none !important; }
.modal-card { background: #fff; border-radius: 16px; max-width: 540px; width: 100%; max-height: 86vh; overflow: auto; padding: 28px; position: relative; box-shadow: 0 24px 60px rgba(23,32,51,.25); }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.modal-detail-head .alumni-avatar { width: 56px; height: 56px; font-size: 24px; }
.modal-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.modal-detail-grid .item small { color: var(--muted); display: block; margin-bottom: 2px; }
.modal-detail-grid .item strong { color: var(--deep); word-break: break-all; }
@media (max-width: 640px) { .modal-detail-grid { grid-template-columns: 1fr; } }
.avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--accent)); color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 24px; }

.services { background: linear-gradient(135deg, #142849, #203a63); color: #fff; }
.services h2 { color: #fff; }
.services p { color: rgba(255,255,255,.78); }
.service-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: center; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service-list a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 22px; font-weight: 700; }
.service-list span { display: block; color: var(--accent-2); margin-bottom: 8px; }

.join-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 46px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 42px; align-items: center; }
.join-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.join-actions .btn.ghost { color: var(--deep); border-color: var(--line); background: #fff; }
.join-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; }
.join-form label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.join-form input { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; color: var(--ink); }
.join-form input:focus { outline: 2px solid rgba(154,107,47,.18); border-color: var(--accent); }

.donate { padding-top: 20px; }
.donate-inner { text-align: center; border-radius: 30px; color: #fff; padding: 70px 30px; background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.2), transparent 24%),
    linear-gradient(135deg, var(--deep), var(--deep-2)); }
.donate h2 { color: #fff; }
.donate p { margin: 0 auto 28px; max-width: 690px; color: rgba(255,255,255,.82); }

.site-footer { background: #0e1b32; color: rgba(255,255,255,.78); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 46px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { display: block; margin: 6px 0; }
.site-footer a:hover { color: #fff; }
.copyright { display: flex; justify-content: space-between; gap: 18px; padding-top: 22px; font-size: 14px; }

@media (max-width: 980px) {
  .top-inner { justify-content: center; }
  .header-top nav { display: none; }
  .nav-wrap { height: 72px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 18px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 110px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after { display: none; }
  .hero { min-height: 600px; }
  .hero-card { position: relative; right: auto; bottom: auto; margin: -100px auto 40px; z-index: 2; }
  .two-col, .news-layout, .service-wrap, .join-card { grid-template-columns: 1fr; }
  .event-cards, .story-grid, .about-grid, .service-list { grid-template-columns: 1fr; }
  .join-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand { min-width: auto; }
  .brand-mark { width: 44px; height: 44px; font-size: 21px; }
  .hero-content { padding: 88px 0 145px; }
  .hero h1 { font-size: 39px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-card div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-card div:last-child { border-bottom: 0; }
  .notice-inner { height: auto; padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 6px; white-space: normal; }
  .section { padding: 66px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .news-list a { grid-template-columns: 1fr; }
  .event-cards article, .event-cards a.event-link { flex-direction: column; }
  .join-card { padding: 28px; border-radius: 22px; }
  .copyright { flex-direction: column; }
}

/* 后台与表单接口版追加样式 */
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 8px 24px rgba(24,48,89,.24);
  background: #fff;
}

.join-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.join-form .full { grid-column: 1 / -1; }
.join-form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
}
.join-form textarea:focus { outline: 2px solid rgba(154,107,47,.18); border-color: var(--accent); }
.join-form button { justify-self: start; }
.form-status {
  margin: 10px 0 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}
.form-status.success { color: #166534; }
.form-status.error { color: #b91c1c; }

@media (max-width: 980px) {
  .join-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand-logo { width: 46px; height: 46px; }
}

/* ===== ???????2026-08? ===== */
body { background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 42%, #f6f8fc 100%); }
.site-header { background: rgba(255,255,255,.84); box-shadow: 0 10px 32px rgba(23,32,51,.07); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 460px at 82% 18%, rgba(202,166,106,.26), transparent 56%); pointer-events: none; }
.hero-card { box-shadow: 0 26px 70px rgba(9,24,45,.35); }
.btn.primary { background: linear-gradient(135deg, #a8773a, #8a5a22); box-shadow: 0 12px 30px rgba(154,107,47,.30); }
.btn.primary:hover { box-shadow: 0 16px 40px rgba(154,107,47,.42); transform: translateY(-3px); }
.btn.ghost:hover { background: rgba(255,255,255,.16); }
.news-card, .event-item, .alumni-card, .story-link, .contact-card, .map-point-card, .auth-card, .join-card, .account-panel, .account-menu, .map-city-item, .modal-card { box-shadow: 0 14px 40px rgba(23,32,51,.07); }
.story-link:hover, .news-card:hover, .event-item:hover, .alumni-card:hover, .contact-card:hover { transform: translateY(-5px); box-shadow: 0 22px 52px rgba(23,32,51,.13); }
.section { padding: 88px 0; }
.section-head h2, .page-section h2 { letter-spacing: .02em; }
.page-hero { background: linear-gradient(135deg, #142849 0%, #274472 58%, #1d3a63 100%); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(202,166,106,.28), transparent 65%); top: -170px; right: -90px; pointer-events: none; }
.page-hero h1 { text-shadow: 0 6px 24px rgba(0,0,0,.20); position: relative; }
.page-hero .container > * { position: relative; }
.notice-bar { background: linear-gradient(90deg, #fdf6ec, #fff8ef); }
.join-card { border: 1px solid #f0e2cc; background: linear-gradient(135deg, #ffffff 0%, #fdf7ef 100%); }
.primary-nav a { font-weight: 600; }
.primary-nav a:hover { color: var(--accent); }
