:root {
  --ink: #17212b;
  --muted: #6a7480;
  --canvas: #eef4f9;
  --paper: #ffffff;
  --line: #e1e7ec;
  --blue: #4f7ee8;
  --blue-pale: #edf3ff;
  --green: #3d9a7a;
  --green-pale: #eaf7f2;
  --gold: #c49236;
  --gold-pale: #fbf3e3;
  --coral: #cf6672;
  --coral-pale: #fceef0;
  --violet: #865fc2;
  --violet-pale: #f2edfb;
  --brand: #b51c2e;
  --brand-deep: #8e1422;
  --brand-pale: #fbecef;
  --red: #8c2631;
  --shell: 760px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f5f7f6;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration: none; }

.page-shell {
  width: min(var(--shell), calc(100% - 28px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 8px 12px;
  background: #fff;
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: 8px;
  background: rgba(245, 247, 246, 0.92);
  border-bottom: 1px solid rgba(222, 227, 224, 0.8);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 3px;
  background: #fff;
  border: 1px solid #eadde0;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(115, 22, 34, 0.08);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-copy strong,
.brand-copy small { display: block; }
.brand-copy strong { color: #2b2425; font-size: 18px; line-height: 1.3; }
.brand-copy small { color: var(--muted); font-size: 11px; white-space: nowrap; }

.icon-button,
.entry-close,
.modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #dce4eb;
  border-radius: 50%;
  color: #55616d;
  background: rgba(255,255,255,0.78);
}
.icon-button { position: relative; box-shadow: 0 0 0 4px rgba(181,28,46,0.07); }
.icon-button svg,
.entry-close svg,
.modal-close svg { width: 18px; }
.notice-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border: 1px solid #fff;
  border-radius: 50%;
}

.official-note {
  min-height: 62px;
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  background: #fff8f0;
  border: 1px solid #ead9c5;
  border-radius: 8px;
}
.official-note > svg { width: 19px; color: #aa7e24; }
.official-note strong { display: block; font-size: 13px; }
.official-note p { margin: 1px 0 0; color: #6f6858; font-size: 11px; }

main { padding-block: 14px 30px; }
main > section + section { margin-top: 0; }

.welcome-card {
  position: relative;
  height: 370px;
  overflow: hidden;
  color: #fff;
  background: #263849;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(38, 51, 46, 0.15);
}
.welcome-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.welcome-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,27,37,0.18) 0%, rgba(14,27,37,0.26) 35%, rgba(14,27,37,0.82) 100%);
}
.welcome-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-brandline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
}
.hero-brandline img {
  width: min(300px, 68%);
  height: auto;
}
.hero-copy > p {
  margin: 0 0 5px;
  color: #f5d9dc;
  font-size: 11px;
  font-weight: 800;
}
.hero-copy h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: 0;
}
.hero-copy > span { display: block; margin-top: 7px; color: rgba(255,255,255,0.82); font-size: 13px; }
.hero-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.hero-button {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  color: var(--brand-deep);
  background: #fff;
  font-weight: 700;
}
.hero-button svg { width: 17px; }
.hero-link {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.hero-link svg { width: 16px; }

.campus-signature {
  min-height: 68px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  background: #fff;
  border: 1px solid #e5e8e6;
  border-radius: 8px;
}
.campus-signature > div { min-width: 0; padding: 9px 8px; text-align: center; }
.campus-signature > div + div { border-left: 1px solid #ecefed; }
.campus-signature strong,
.campus-signature span { display: block; }
.campus-signature strong { color: var(--brand); font-size: 15px; line-height: 1.2; }
.campus-signature span { margin-top: 3px; color: var(--muted); font-size: 9px; }

.prep-panel {
  margin-top: 12px;
  padding: 24px 18px 18px;
  background: #fff;
  border: 1px solid #e5e8e6;
  border-radius: 8px;
}
.prep-heading { margin-bottom: 13px; }
.prep-summary { display: flex; align-items: center; gap: 8px; }
.prep-summary > span { color: var(--brand); font-size: 12px; font-weight: 800; }
.prep-reset { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.prep-reset svg { width: 14px; }
.prep-meter { height: 5px; overflow: hidden; background: #edf0ef; border-radius: 3px; }
.prep-meter span { width: 0; height: 100%; display: block; background: var(--brand); border-radius: inherit; transition: width 180ms ease; }
.prep-list { margin-top: 9px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.prep-list label { min-width: 0; min-height: 58px; padding: 9px 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; cursor: pointer; border-bottom: 1px solid #edf0ee; }
.prep-list input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.task-check { width: 24px; height: 24px; display: grid; place-items: center; color: transparent; background: #f4f6f5; border: 1px solid #d9dedb; border-radius: 6px; }
.task-check svg { width: 14px; }
.prep-list input:checked + .task-check { color: #fff; background: var(--brand); border-color: var(--brand); }
.prep-list input:focus-visible + .task-check { outline: 3px solid rgba(79,126,232,0.24); outline-offset: 2px; }
.prep-list label > span:last-child { min-width: 0; }
.prep-list strong, .prep-list small { display: block; }
.prep-list strong { font-size: 12px; line-height: 1.35; }
.prep-list small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.prep-list input:checked ~ span strong { color: #7f8882; text-decoration: line-through; }

.guide-panel {
  margin-top: 12px;
  padding: 28px 0;
  background: transparent;
  border-top: 1px solid #e3e7e4;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading p {
  margin: 0 0 2px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading > span {
  padding: 3px 8px;
  color: #8a95a0;
  background: #f5f7f9;
  border-radius: 4px;
  font-size: 10px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.section-link svg { width: 14px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 10px;
}
.quick-grid button,
.quick-grid a {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border: 0;
  background: transparent;
}
.quick-grid strong { font-size: 12px; line-height: 1.35; }
.quick-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  transition: transform 150ms ease;
}
.quick-grid button:hover .quick-icon,
.quick-grid a:hover .quick-icon { transform: translateY(-2px); }
.quick-icon svg { width: 21px; }
.blue { color: var(--blue); background: var(--blue-pale); }
.green { color: var(--green); background: var(--green-pale); }
.gold { color: var(--gold); background: var(--gold-pale); }
.coral { color: var(--coral); background: var(--coral-pale); }
.violet { color: var(--violet); background: var(--violet-pale); }
.brand-red { color: var(--brand); background: var(--brand-pale); }

.campus-stories {
  padding: 28px 0;
  border-top: 1px solid #e3e7e4;
}
.campus-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.campus-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #d9dfdc;
  border-radius: 8px;
}
.campus-photo-main { grid-column: 1 / -1; aspect-ratio: 16 / 8.5; }
.campus-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.campus-photo-main img { object-position: center 54%; }
.campus-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 13px 11px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(17, 25, 22, 0.84));
}
.campus-photo figcaption strong,
.campus-photo figcaption span { display: block; }
.campus-photo figcaption strong { font-size: 13px; }
.campus-photo figcaption span { margin-top: 1px; color: rgba(255,255,255,0.76); font-size: 9px; }
.photo-source { margin: 8px 0 0; color: #8a938e; font-size: 9px; text-align: right; }

.explore-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.explore-card {
  min-width: 0;
  min-height: 78px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 0;
  border-radius: 8px;
}
.explore-card > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255,255,255,0.78);
  border-radius: 7px;
}
.explore-card > span svg { width: 19px; }
.explore-card strong,
.explore-card small { display: block; }
.explore-card strong { color: var(--ink); font-size: 13px; }
.explore-card small { margin-top: 2px; color: #6f7880; font-size: 10px; }
.explore-card > svg { width: 16px; color: #8d969d; }
.explore-wide { grid-column: 1 / -1; }

.service-grid { gap: 8px; }
.service-grid button,
.service-grid a {
  min-height: 72px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.service-grid strong,
.service-grid small { display: block; }
.service-grid strong { font-size: 13px; }
.service-grid small { margin-top: 2px; color: #87919a; font-size: 10px; }
.service-wide { grid-column: 1 / -1; }
.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
}
.service-icon svg { width: 19px; }

.site-footer {
  padding-block: 28px 42px;
  text-align: center;
  color: #c9d0cc;
  background: #252d2a;
}
.site-footer .page-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer p { margin: 8px 0 2px; font-size: 12px; }
.site-footer small { font-size: 9px; }
.footer-logo { width: min(260px, 72%); height: auto; }

.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 120;
  width: min(var(--shell), 100%);
  height: calc(60px + env(safe-area-inset-bottom));
  padding: 5px 8px env(safe-area-inset-bottom);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(25,35,31,0.07);
  backdrop-filter: blur(14px);
}
.mobile-nav a, .mobile-nav button { min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #6e7872; background: transparent; border: 0; font-size: 9px; }
.mobile-nav svg { width: 19px; height: 19px; }
.mobile-nav a:first-child { color: var(--brand); font-weight: 700; }

.entry-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(30, 42, 55, 0.62);
  backdrop-filter: blur(5px);
}
.entry-backdrop[hidden],
.modal-backdrop[hidden] { display: none; }
.entry-sheet,
.modal {
  width: min(500px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(18,28,38,0.28);
}
.entry-sheet > header,
.modal > header {
  min-height: 76px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.entry-sheet > header > span,
.modal-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 7px;
}
.entry-sheet > header svg,
.modal-icon svg { width: 19px; }
.entry-sheet header small,
.modal header small { color: #6684b5; font-size: 9px; font-weight: 800; }
.entry-sheet header h2,
.modal header h2 { margin: 0; font-size: 18px; }
.entry-content,
.modal-body { padding: 18px; }
.unofficial-badge {
  display: inline-flex;
  padding: 3px 7px;
  color: #996814;
  background: var(--gold-pale);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
}
.entry-content h3 { margin: 8px 0 4px; font-size: 17px; }
.entry-content > p { margin: 0; color: var(--muted); font-size: 12px; }
.group-pending {
  margin-top: 15px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}
.group-pending > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #fff;
  border-radius: 7px;
}
.group-pending svg { width: 22px; }
.group-pending small,
.group-pending strong { display: block; }
.group-pending small { color: var(--muted); font-size: 9px; }
.group-pending strong { font-size: 13px; }
.entry-warning,
.modal-source {
  margin-top: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  color: #6b6559;
  background: #fff9ed;
  border-radius: 7px;
  font-size: 10px;
}
.entry-warning svg,
.modal-source svg { width: 15px; color: var(--gold); }
.entry-warning p { margin: 0; }
.entry-button {
  width: 100%;
  min-height: 44px;
  margin-top: 15px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.modal-body { color: #3e4851; font-size: 13px; }
.modal-body p { margin: 0; }
.modal-body h3 { margin: 18px 0 6px; color: var(--ink); font-size: 14px; }
.modal-body ul { margin: 0; padding-left: 19px; }
.modal-body li + li { margin-top: 5px; }
.modal-body a { color: #3568cb; text-decoration: underline; text-underline-offset: 3px; }
.contact-qr {
  width: min(360px, 100%);
  margin: 16px auto 0;
  padding: 8px;
  text-align: center;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact-qr img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 5px;
}
.contact-qr figcaption {
  padding: 8px 4px 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.entry-qr { width: min(310px, 100%); margin-top: 15px; }
.guide-image {
  width: min(430px, 100%);
  margin: 12px auto 0;
  padding: 7px;
  text-align: center;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.guide-image img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 4px;
}
.guide-image figcaption {
  padding: 7px 4px 1px;
  color: var(--muted);
  font-size: 10px;
}
.dorm-zone {
  margin-top: 10px;
  padding: 11px 12px;
  background: #f7f9fb;
  border-left: 4px solid var(--blue);
  border-radius: 0 7px 7px 0;
}
.modal-body .dorm-zone h3 { margin: 0 0 3px; }
.modal-body .dorm-zone p { color: #59646e; }
.dorm-east { border-left-color: var(--green); }
.dorm-center { border-left-color: var(--gold); }
.dorm-west { border-left-color: var(--coral); }
.mini-program-link {
  margin-top: 14px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mini-program-link small,
.mini-program-link strong { display: block; }
.mini-program-link small { color: var(--muted); font-size: 9px; }
.mini-program-link strong { color: var(--ink); font-size: 13px; }
.mini-program-link code {
  margin-top: 3px;
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.mini-program-link button {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.mini-program-link button svg { width: 15px; }
.modal-body .mini-program-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.health-callout {
  margin-top: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--coral-pale);
  border-left: 4px solid var(--coral);
  border-radius: 0 7px 7px 0;
}
.health-callout small { color: var(--muted); font-size: 10px; }
.modal-body .health-callout a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.entry-copy-row { margin-top: 10px; }
.modal-source { margin: 0 18px 18px; background: #f4f7f9; color: #6a747d; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 220;
  transform: translate(-50%, 18px);
  padding: 8px 13px;
  color: #fff;
  background: #1b2630;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  font-size: 11px;
  transition: opacity 150ms ease, transform 150ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ============================================================
   沉浸校园风 · 美化增强（2026-08-06）
   仅样式层增强，不改变任何结构与交互逻辑
   ============================================================ */

/* —— 页面氛围：顶部品牌红淡光晕 —— */
body {
  background:
    radial-gradient(1100px 420px at 50% -180px, rgba(181, 28, 46, 0.07), transparent 70%),
    #f5f7f6;
}

/* —— Hero 首屏 —— */
.welcome-card {
  height: 460px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(38, 51, 46, 0.22);
}
.welcome-shade {
  background:
    linear-gradient(180deg, rgba(14, 27, 37, 0.10) 0%, rgba(14, 27, 37, 0.22) 42%, rgba(88, 10, 24, 0.52) 76%, rgba(142, 20, 34, 0.80) 100%);
}
.welcome-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 340px at 16% 0%, rgba(255, 255, 255, 0.16), transparent 60%);
}
.welcome-card > img { animation: campusBreathe 16s ease-in-out infinite alternate; }
@keyframes campusBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.welcome-content { padding: 28px; }
.hero-brandline { animation: fadeDown 0.7s ease both; }
.hero-copy { animation: fadeUp 0.8s 0.12s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy > p { letter-spacing: 0.22em; }
.hero-button {
  color: #fff;
  background: linear-gradient(135deg, #c22337, #8e1422);
  box-shadow: 0 8px 22px rgba(142, 20, 34, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.hero-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px rgba(142, 20, 34, 0.42);
}
.hero-link {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(4px);
  transition: background 160ms ease, border-color 160ms ease;
}
.hero-link:hover { background: rgba(255, 255, 255, 0.20); border-color: rgba(255, 255, 255, 0.6); }

/* —— 分区标题装饰 —— */
.section-heading p {
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading p::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #e05263);
}
.section-heading h2 { position: relative; padding-bottom: 9px; }
.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(224, 82, 99, 0.35));
}
.section-heading > span {
  color: var(--brand-deep);
  background: linear-gradient(135deg, #fbecef, #f6d9de);
  border: 1px solid rgba(181, 28, 46, 0.14);
}

/* —— 快捷入口图标：渐变底 + 白图标 —— */
.quick-icon { box-shadow: 0 6px 14px rgba(38, 51, 46, 0.10); }
.quick-icon.blue { color: #fff; background: linear-gradient(135deg, #5f8bf0, #3d63c4); }
.quick-icon.green { color: #fff; background: linear-gradient(135deg, #4db28d, #2f7f66); }
.quick-icon.gold { color: #fff; background: linear-gradient(135deg, #d9a64a, #a97a24); }
.quick-icon.coral { color: #fff; background: linear-gradient(135deg, #dc7581, #b94a5c); }
.quick-icon.violet { color: #fff; background: linear-gradient(135deg, #9a74d4, #6f4aa8); }
.quick-icon.brand-red { color: #fff; background: linear-gradient(135deg, #c22337, #8e1422); }
.quick-grid button:hover .quick-icon,
.quick-grid a:hover .quick-icon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 20px rgba(38, 51, 46, 0.18);
}

/* —— 更多服务图标：同款渐变 —— */
.service-icon.blue { color: #fff; background: linear-gradient(135deg, #5f8bf0, #3d63c4); }
.service-icon.green { color: #fff; background: linear-gradient(135deg, #4db28d, #2f7f66); }
.service-icon.gold { color: #fff; background: linear-gradient(135deg, #d9a64a, #a97a24); }
.service-icon.coral { color: #fff; background: linear-gradient(135deg, #dc7581, #b94a5c); }
.service-icon.violet { color: #fff; background: linear-gradient(135deg, #9a74d4, #6f4aa8); }

/* —— 卡片 hover 增强 —— */
.explore-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.explore-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(38, 51, 46, 0.14); }
.explore-card.blue:hover { box-shadow: 0 14px 28px rgba(79, 126, 232, 0.22); }
.explore-card.coral:hover { box-shadow: 0 14px 28px rgba(207, 102, 114, 0.22); }
.explore-card.green:hover { box-shadow: 0 14px 28px rgba(61, 154, 122, 0.22); }
.explore-card.gold:hover { box-shadow: 0 14px 28px rgba(196, 146, 54, 0.22); }
.explore-card.violet:hover { box-shadow: 0 14px 28px rgba(134, 95, 194, 0.22); }

.service-grid button,
.service-grid a {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service-grid button:hover,
.service-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 28, 46, 0.28);
  box-shadow: 0 10px 22px rgba(38, 51, 46, 0.12);
}

/* —— 校园照片 hover —— */
.campus-photo { border-radius: 14px; transition: box-shadow 220ms ease; }
.campus-photo img { transition: transform 600ms ease; }
.campus-photo:hover { box-shadow: 0 16px 34px rgba(38, 51, 46, 0.20); }
.campus-photo:hover img { transform: scale(1.05); }

/* —— 弹窗入场动画与品牌红统一 —— */
.entry-sheet,
.modal { border-radius: 16px; animation: modalIn 240ms ease; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.entry-sheet > header > span,
.modal-icon { background: linear-gradient(135deg, #c22337, #8e1422); }
.entry-sheet header small,
.modal header small { color: #a83a49; }
.entry-button,
.mini-program-link button {
  background: linear-gradient(135deg, #c22337, #8e1422);
  box-shadow: 0 8px 20px rgba(142, 20, 34, 0.28);
}

/* —— 细节：进度条 / 勾选 / 签名数字 / 页脚 —— */
.prep-meter span { background: linear-gradient(90deg, #c22337, #e05263); }
.prep-list input:checked + .task-check { background: linear-gradient(135deg, #c22337, #8e1422); border-color: transparent; }
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(196, 35, 55, 0.55), transparent);
}

@media (max-width: 640px) {
  .site-header { padding-top: 8px; }
  .header-inner { min-height: 52px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; padding: 2px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .icon-button { width: 36px; height: 36px; }
  .official-note { margin-top: 8px; }
  main { padding-top: 10px; }
  .welcome-card { height: 344px; }
  .welcome-card > img { object-position: center 52%; }
  .welcome-content { padding: 18px; }
  .hero-brandline { gap: 10px; }
  .hero-brandline img { width: min(228px, 72%); }
  .hero-copy h1 { font-size: 27px; }
  .hero-copy > span { margin-top: 5px; font-size: 11px; }
  .hero-actions { margin-top: 14px; gap: 8px; }
  .hero-button,
  .hero-link { min-height: 40px; padding-inline: 11px; }
  .hero-button { font-size: 13px; }
  .hero-link { font-size: 11px; }
  .campus-signature { min-height: 62px; }
  .campus-signature strong { font-size: 14px; }
  .prep-panel { padding: 20px 14px 14px; }
  .prep-list { grid-template-columns: 1fr; }
  .guide-panel,
  .campus-stories { padding: 22px 0; }
  .section-heading { margin-bottom: 17px; }
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 4px; }
  .quick-grid strong { font-size: 11px; }
  .quick-icon { width: 42px; height: 42px; }
  .campus-gallery { gap: 8px; }
  .campus-photo-main { aspect-ratio: 16 / 9; }
  .campus-photo figcaption { padding: 18px 10px 8px; }
  .campus-photo figcaption strong { font-size: 11px; }
  .campus-photo figcaption span { font-size: 8px; }
  .explore-grid,
  .service-grid { grid-template-columns: 1fr; }
  .explore-wide { grid-column: auto; }
  .service-wide { grid-column: auto; }
  .entry-backdrop,
  .modal-backdrop { padding: 0; place-items: end center; }
  .entry-sheet,
  .modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 360px) {
  .page-shell { width: min(var(--shell), calc(100% - 20px)); }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .official-note { padding-inline: 11px; }
  .welcome-card { height: 332px; }
  .welcome-content { padding: 15px; }
  .hero-brandline img { width: min(205px, 69%); }
  .hero-copy h1 { font-size: 25px; }
  .hero-actions { gap: 6px; }
  .hero-button,
  .hero-link { padding-inline: 9px; }
  .quick-grid strong { font-size: 10px; }
}

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

/* ============================================================
   沉浸校园风 · 响应式与降级补充
   ============================================================ */
@media (max-width: 640px) {
  .welcome-card { height: 400px; border-radius: 14px; }
  .hero-copy h1 { font-size: 28px; }
  .section-heading h2 { padding-bottom: 8px; }
}
@media (max-width: 360px) {
  .welcome-card { height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* ============================================================
   粉色主题（2026-08-06）· 覆盖校园红
   追加在文件末尾生效；如需还原红色主题，删除本块即可
   ============================================================ */
:root {
  --brand: #d94f8c;
  --brand-deep: #b02f6d;
  --brand-pale: #fdeef5;
  --red: #b04a72;
}

/* —— 页面氛围光晕 —— */
body {
  background:
    radial-gradient(1100px 420px at 50% -180px, rgba(217, 79, 140, 0.08), transparent 70%),
    #f5f7f6;
}

/* —— Hero 遮罩（深粉调）与按钮 —— */
.welcome-shade {
  background:
    linear-gradient(180deg, rgba(14, 27, 37, 0.10) 0%, rgba(14, 27, 37, 0.22) 42%, rgba(150, 38, 92, 0.52) 76%, rgba(176, 47, 109, 0.80) 100%);
}
.hero-button {
  background: linear-gradient(135deg, #e86ba0, #b02f6d);
  box-shadow: 0 8px 22px rgba(176, 47, 109, 0.35);
}
.hero-button:hover {
  box-shadow: 0 12px 26px rgba(176, 47, 109, 0.42);
}

/* —— 分区标题装饰 —— */
.section-heading p::before {
  background: linear-gradient(90deg, var(--brand), #f087b5);
}
.section-heading h2::after {
  background: linear-gradient(90deg, var(--brand), rgba(240, 135, 181, 0.35));
}
.section-heading > span {
  color: var(--brand-deep);
  background: linear-gradient(135deg, #fdeef5, #f9d8e8);
  border: 1px solid rgba(217, 79, 140, 0.14);
}

/* —— 品牌红图标 —— */
.quick-icon.brand-red {
  background: linear-gradient(135deg, #e86ba0, #b02f6d);
}

/* —— 服务卡片 hover 边框 —— */
.service-grid button:hover,
.service-grid a:hover { border-color: rgba(217, 79, 140, 0.28); }

/* —— 弹窗 —— */
.entry-sheet > header > span,
.modal-icon { background: linear-gradient(135deg, #e86ba0, #b02f6d); }
.entry-sheet header small,
.modal header small { color: #c2508a; }
.entry-button,
.mini-program-link button {
  background: linear-gradient(135deg, #e86ba0, #b02f6d);
  box-shadow: 0 8px 20px rgba(176, 47, 109, 0.28);
}

/* —— 进度条 / 勾选 / 签名数字 —— */
.prep-meter span { background: linear-gradient(90deg, #e86ba0, #f087b5); }
.prep-list input:checked + .task-check { background: linear-gradient(135deg, #e86ba0, #b02f6d); border-color: transparent; }

/* —— 页脚渐变线 —— */
.site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(224, 91, 152, 0.55), transparent);
}

/* —— 品牌徽章阴影 —— */
.brand-mark { box-shadow: 0 4px 14px rgba(217, 79, 140, 0.10); }

/* ============================================================
   滚动动效包（2026-08-06）· 纯 CSS Scroll-driven Animations
   Chrome 111+ 生效；旧浏览器由 @supports 自动降级为无动画
   与现有 hover/呼吸动画无冲突；prefers-reduced-motion 下禁用
   ============================================================ */
@supports (animation-timeline: scroll()) {

  /* —— 顶部滚动进度条（粉渐变）—— */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 300;
    pointer-events: none;
    background: linear-gradient(90deg, #e86ba0, #f087b5, #d94f8c);
    transform-origin: 0 50%;
    animation: scrollProgress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scrollProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  /* —— hero 视差：滚动离开时轻微收拢，营造层次 —— */
  .welcome-card {
    animation: heroParallax linear both;
    animation-timeline: view();
    animation-range: exit -8% exit 38%;
  }
  @keyframes heroParallax {
    to { transform: translateY(3.5%) scale(0.985); opacity: 0.97; }
  }

  /* —— 区块滚动渐显 —— */
  .official-note,
  .campus-signature,
  .prep-panel,
  .guide-panel,
  .campus-stories {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
  @keyframes revealUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* —— 校园照片逐个入场（无 hover transform 冲突）—— */
  .campus-photo {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
}

/* —— 签名数字：改用纯色，避免 background-clip:text 兼容问题导致文字不可见 —— */
.campus-signature strong { color: var(--brand); background: none; }
