/* =========================================================
   高超 个人主页：地铁线路图主题
   颜色：1号线红 / 2号线蓝 / 3号线琥珀 / 公园绿
   ========================================================= */

:root {
  --paper:   #E8EDE9;
  --surface: #FBFCFA;
  --ink:     #15212B;
  --muted:   #56646F;
  --rule:    #C3CDC6;
  --grid:    rgba(21, 33, 43, .045);
  --red:     #C8323A;
  --blue:    #1E5FA6;
  --amber:   #D08A06;
  --green:   #2E8653;
  --sign-bg: #1C2A36;
  --sign-ink:#F3F6F4;
  --topbar:  rgba(232, 237, 233, .86);
  --veil:    rgba(232, 237, 233, .94);
  --shadow:  0 1px 0 rgba(21, 33, 43, .06), 0 18px 40px -26px rgba(21, 33, 43, .45);

  --display: "Barlow Condensed", "ZCOOL QingKe HuangYou", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --led: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #0E1620;
    --surface: #16212C;
    --ink:     #E3E9ED;
    --muted:   #94A3AF;
    --rule:    #2A3947;
    --grid:    rgba(227, 233, 237, .035);
    --red:     #F0545C;
    --blue:    #5394E3;
    --amber:   #F2B23B;
    --green:   #4DBA7B;
    --sign-bg: #22313F;
    --sign-ink:#F3F6F4;
    --topbar:  rgba(14, 22, 32, .82);
    --veil:    rgba(14, 22, 32, .92);
    --shadow:  0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:   #0E1620;
  --surface: #16212C;
  --ink:     #E3E9ED;
  --muted:   #94A3AF;
  --rule:    #2A3947;
  --grid:    rgba(227, 233, 237, .035);
  --red:     #F0545C;
  --blue:    #5394E3;
  --amber:   #F2B23B;
  --green:   #4DBA7B;
  --sign-bg: #22313F;
  --sign-ink:#F3F6F4;
  --topbar:  rgba(14, 22, 32, .82);
  --veil:    rgba(14, 22, 32, .92);
  --shadow:  0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
.visually-hidden {
  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(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏：线路导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 24px;
  background: var(--topbar);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 26px; color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(var(--red) 0 33%, var(--blue) 0 66%, var(--amber) 0);
  box-shadow: inset 0 0 0 5px var(--paper), 0 0 0 1px var(--rule);
}

.linemap { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.linemap ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; position: relative;
}
.linemap ol::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 4px;
  background: var(--rule); border-radius: 2px;
}
.linemap .progress {
  position: absolute; left: 7px; top: 7px; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--amber));
  border-radius: 2px; transition: width .45s cubic-bezier(.3,.7,.2,1);
  pointer-events: none;
}
.linemap li { position: relative; z-index: 1; }
.linemap a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: 12.5px; line-height: 1.3;
}
.linemap .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--rule);
  transition: border-color .25s, transform .25s, background .25s;
}
.linemap a:hover .dot { border-color: var(--ink); }
.linemap a.passed .dot { border-color: var(--ink); }
.linemap a.active { color: var(--ink); font-weight: 700; }
.linemap a.active .dot {
  background: var(--ink); border-color: var(--ink); transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--amber);
}

.theme-toggle {
  flex-shrink: 0;
  font: 500 14px/1 var(--body);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
#city { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 75% at 22% 50%, var(--veil) 30%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 1; pointer-events: none;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: 48px;
}
.hero-inner a, .hero-inner button, .ticket { pointer-events: auto; }

.hero-org { font-size: 15px; color: var(--muted); letter-spacing: .08em; margin-bottom: 8px; }
.hero-name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(96px, 17vw, 228px); line-height: .92;
  letter-spacing: .04em;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero-stripes {
  display: flex; gap: 6px; width: min(360px, 70%); margin: 18px 0 22px;
}
.hero-stripes i {
  flex: 1; height: 8px; border-radius: 4px;
  transform-origin: left; animation: grow .8s cubic-bezier(.3,.7,.2,1) both;
}
.hero-stripes i:nth-child(1) { background: var(--red);   animation-delay: .25s; }
.hero-stripes i:nth-child(2) { background: var(--blue);  animation-delay: .4s; }
.hero-stripes i:nth-child(3) { background: var(--amber); animation-delay: .55s; }
.hero-role { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.hero-lede { font-size: 17px; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.btn {
  display: inline-flex; align-items: center;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 500; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink);
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.hero-hint { font-size: 13px; color: var(--muted); }
.hero-hint::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--amber); vertical-align: 1px;
}

@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 车票 ---------- */
.ticket {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 24px 20px;
  transform: rotate(2.5deg);
  transition: transform .35s cubic-bezier(.3,.7,.2,1);
  animation: rise .9s .35s cubic-bezier(.2,.8,.2,1) both;
  max-width: 380px; justify-self: end;
}
.ticket:hover { transform: rotate(0deg) translateY(-4px); }
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: calc(100% - 92px);
  width: 24px; height: 24px; border-radius: 50%; background: var(--paper);
}
.ticket::before { left: -12px; }
.ticket::after  { right: -12px; }
.ticket-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
}
.ticket-track {
  flex: 1; height: 4px; border-radius: 2px; position: relative;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 16px);
}
.ticket-track::after {
  content: ""; position: absolute; right: -2px; top: -4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--red);
}
.ticket-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
  margin: 20px 0 28px;
}
.ticket-stats div { border-left: 3px solid var(--rule); padding-left: 12px; }
.ticket-stats div:nth-child(1) { border-color: var(--red); }
.ticket-stats div:nth-child(2) { border-color: var(--blue); }
.ticket-stats div:nth-child(3) { border-color: var(--amber); }
.ticket-stats div:nth-child(4) { border-color: var(--green); }
.ticket-stats dt { font-size: 13px; color: var(--muted); }
.ticket-stats dd {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: 44px; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.ticket-foot {
  display: flex; gap: 16px; align-items: center;
  padding-top: 18px; border-top: 2px dashed var(--rule);
}
.barcode {
  width: 92px; height: 48px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}
.ticket-meta { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 站牌标题 ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.sign {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px 14px 18px;
  margin-bottom: 40px;
  background: var(--sign-bg); color: var(--sign-ink);
  border-radius: 10px;
  border-left: 12px solid var(--c, var(--red));
}
.sign-name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sign h2 { font-family: var(--display); font-weight: 400; font-size: 36px; letter-spacing: .06em; }
.sign-name span { font-size: 14px; opacity: .7; }
.sign-next { margin: 0; font-size: 14px; opacity: .75; white-space: nowrap; }

.lead { font-size: 17px; max-width: 46em; color: var(--muted); }
.lead strong { color: var(--ink); }
.sub {
  font-size: 17px; font-weight: 700; margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.sub::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 3.5px solid var(--ink); background: var(--surface); flex-shrink: 0;
}

/* ---------- 概况 ---------- */
.about-grid {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px;
  margin-bottom: 72px;
}
.profile-card {
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 28px; align-self: start;
}
.avatar {
  position: relative; width: 132px; height: 132px; margin-bottom: 22px;
  border-radius: 50%; padding: 5px;
  background: conic-gradient(var(--red) 0 33%, var(--blue) 0 66%, var(--amber) 0);
}
.avatar img, .avatar-fallback {
  position: absolute; inset: 5px;
  width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface);
}
.avatar img[hidden] { display: none; }
.avatar-fallback {
  display: grid; place-items: center;
  font-family: var(--display); font-size: 56px; color: var(--ink); background: var(--paper);
}
.avatar.has-img .avatar-fallback { display: none; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 44px 1fr; gap: 10px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.bio { font-size: 17px; max-width: 40em; }
.bio p:first-child { font-size: 19px; font-weight: 500; }

/* 求学路线 */
.route {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
  position: relative;
}
.route::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue) 55%, var(--amber));
}
.route li { position: relative; padding-top: 36px; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; }
.route .stop {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--ink);
}
.route b { font-family: var(--display); font-size: 22px; font-weight: 700; }
.route em { font-style: normal; color: var(--muted); font-size: 14px; }
.route .is-now .stop { background: var(--amber); border-color: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 30%, transparent); }

/* ---------- 研究线路 ---------- */
.research-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px;
  margin-top: 32px; align-items: start;
}
.metro-card {
  margin: 0; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px 18px 12px;
}
.metro { width: 100%; height: auto; display: block; }
.metro .ln path { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.metro .ln.red path   { stroke: var(--red); }
.metro .ln.blue path  { stroke: var(--blue); }
.metro .ln.amber path { stroke: var(--amber); }
.metro .st { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.metro .badge { stroke: var(--surface); stroke-width: 3; }
.metro .ln.red .badge   { fill: var(--red); }
.metro .ln.blue .badge  { fill: var(--blue); }
.metro .ln.amber .badge { fill: var(--amber); }
.metro text {
  font-family: var(--body); font-size: 13px; fill: var(--ink); text-anchor: middle;
  paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round;
}
.metro text.r { text-anchor: start; }
.metro text.badge-t { fill: #fff; stroke: none; font-weight: 700; font-size: 13px; }
.metro .ln { cursor: pointer; transition: opacity .3s; }
.metro .hub circle { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.metro .hub .hub-in { fill: var(--ink); stroke: none; }
.metro[data-active="red"]   .ln:not(.red),
.metro[data-active="blue"]  .ln:not(.blue),
.metro[data-active="amber"] .ln:not(.amber) { opacity: .14; }
.metro-card figcaption { font-size: 13px; color: var(--muted); text-align: center; padding-top: 6px; }

.line-btns { display: grid; gap: 10px; margin-bottom: 22px; }
.line-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font: 500 16px/1.4 var(--body); color: var(--ink); text-align: left;
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: border-color .2s, transform .15s;
}
.line-btn:hover { border-color: var(--ink); }
.line-btn i {
  font-style: normal; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 700; font-size: 14px;
}
.line-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 6px 0 0 var(--ink); transform: translateX(4px); }
.line-panel {
  border-left: 4px solid var(--ink); padding: 4px 0 4px 18px; margin-bottom: 26px;
  animation: panel .35s ease both;
}
.line-panel h3 { font-size: 18px; margin-bottom: 8px; color: var(--c, var(--ink)); }
.line-panel p { margin: 0; }
@keyframes panel { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.toolbox h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.toolbox ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toolbox li {
  font-size: 14px; padding: 5px 12px; border-radius: 999px;
  border: 1.5px dashed var(--muted); color: var(--ink);
}

/* ---------- 发车时刻表 ---------- */
.board-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.board-bar .lead { margin: 0; }
.dm-toggle {
  flex-shrink: 0; cursor: pointer;
  font: 700 15px/1 var(--body); padding: 12px 18px; border-radius: 10px;
  color: #10181F; background: #FFC23A; border: 0;
  box-shadow: 0 3px 0 #B9850E;
  transition: transform .1s, box-shadow .1s;
}
.dm-toggle:active { transform: translateY(3px); box-shadow: 0 0 0 #B9850E; }
.dm-toggle[aria-pressed="true"] { background: #FF8A65; box-shadow: 0 3px 0 #B9552F; }

.board {
  background: #0F171E; color: #FFC23A;
  border-radius: 14px; padding: 10px 6px;
  font-family: var(--led);
  box-shadow: inset 0 0 0 1px #24313C, 0 22px 40px -28px rgba(0,0,0,.7);
  overflow-x: auto;
}
.board-row {
  display: grid; grid-template-columns: 80px minmax(220px, 1fr) 120px 110px;
  gap: 16px; align-items: center; padding: 12px 18px;
  font-size: 19px; letter-spacing: .04em; min-width: 560px;
}
.board-row + .board-row { border-top: 1px solid #1D2933; }
.board-head { font-size: 13px; color: #7E8B95; letter-spacing: .08em; padding-top: 6px; padding-bottom: 6px; }
.board-course { color: #FFE2A0; }
.board .ok  { color: #6EE19B; }
.board .hot { color: #7FD3FF; }
.board-row:not(.board-head):hover { background: #16222B; }

/* ---------- 科研项目 ---------- */
.proj-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
.proj { list-style: none; margin: 0; padding: 0; }
.proj li {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.proj b { display: block; font-weight: 500; line-height: 1.5; }
.proj small { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.status {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-top: 2px;
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.on   { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.status.done { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }
.status.star { color: var(--amber); background: color-mix(in srgb, var(--amber) 16%, transparent); }
.status.join { color: var(--blue);  background: color-mix(in srgb, var(--blue) 12%, transparent); }

/* ---------- 荣誉 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font: 500 15px/1 var(--body); cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.honor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.sub .count { font-weight: 400; color: var(--muted); font-size: 14px; }
.honors { list-style: none; margin: 0; padding: 0; }
.honors li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
}
.honors li[hidden] { display: none; }
.honors time {
  font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.4;
  color: var(--red);
}
.honor-col:nth-child(2) .honors time { color: var(--blue); }
.honors b { display: block; font-weight: 500; line-height: 1.5; }
.honors small { color: var(--muted); font-size: 13.5px; }
.empty { color: var(--muted); padding: 16px 0; }

/* ---------- 学术服务 ---------- */
.roles { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.roles li {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  background: var(--surface); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
}
.roles b { font-size: 17px; }
.roles span { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.roles em {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  font-style: normal; font-weight: 700; font-size: 14px;
  padding: 4px 10px; border-radius: 6px; border: 1.5px solid var(--ink);
}
.cfp { font-size: 15px; color: var(--muted); margin-bottom: 56px; max-width: 52em; }

.exits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.exit {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--rule);
  transition: border-color .2s, transform .15s;
}
.exit:hover { border-color: var(--ink); transform: translateY(-2px); }
.exit-letter {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 26px;
  background: #FFC23A; color: #10181F;
}
.exit b { display: block; font-size: 15.5px; line-height: 1.3; }
.exit small { color: var(--muted); font-size: 12.5px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.welcome p { font-size: 22px; line-height: 1.6; font-weight: 500; }
.welcome strong { box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--amber) 35%, transparent); }
.contact-card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 24px; }
.c-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.c-row:last-child { border-bottom: 0; }
.c-k { width: 40px; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.c-v { color: var(--ink); text-decoration: none; }
a.c-v:hover { text-decoration: underline; }
.c-v.big { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: .01em; }
.c-note { font-size: 13px; color: var(--green); font-weight: 700; }
.copy {
  margin-left: auto; cursor: pointer;
  font: 500 14px/1 var(--body); padding: 8px 14px; border-radius: 8px;
  color: var(--ink); background: transparent; border: 1.5px solid var(--ink);
}
.copy:hover { background: var(--ink); color: var(--paper); }

.footer {
  text-align: center; font-size: 13.5px; color: var(--muted);
  padding: 40px 24px 56px; border-top: 1px solid var(--rule);
}

/* ---------- 弹幕 ---------- */
.dm-layer { position: fixed; inset: 64px 0 70px; z-index: 60; pointer-events: none; overflow: hidden; }
.dm {
  position: absolute; left: 0; white-space: nowrap;
  font: 700 21px/1.2 var(--body);
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 4px rgba(0,0,0,.4);
  will-change: transform;
}
.dm.mine { border: 2px solid #FFC23A; padding: 0 6px; border-radius: 4px; }
.dm-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 61; transform: translateX(-50%);
  display: flex; gap: 8px; width: min(560px, calc(100% - 24px));
  padding: 8px; border-radius: 14px; background: var(--sign-bg); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6);
}
.dm-bar[hidden] { display: none; }
.dm-bar input {
  flex: 1; min-width: 0; font: 15px/1 var(--body); color: #fff;
  background: #0E1620; border: 1px solid #33424F; border-radius: 9px; padding: 10px 12px;
}
.dm-bar input::placeholder { color: #8C9AA5; }
.dm-bar button {
  cursor: pointer; font: 700 14px/1 var(--body); border: 0; border-radius: 9px; padding: 0 14px;
  background: #FFC23A; color: #10181F;
}
.dm-bar .dm-close { background: transparent; color: #C8D2D9; border: 1px solid #33424F; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; top: 80px; z-index: 80;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ticket { justify-self: start; transform: rotate(-1.5deg); }
  .hero-veil { background: radial-gradient(ellipse 110% 55% at 30% 32%, var(--veil) 45%, transparent 85%); }
  .about-grid, .research-grid, .proj-grid, .honor-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .exits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { gap: 14px; padding: 0 14px; }
  .linemap .lbl { display: none; }
  .linemap a.active .lbl {
    display: block; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    white-space: nowrap; font-size: 11px;
  }
  .brand span:last-child { display: none; }
  .section { padding: 72px 0; }
  .sign { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sign h2 { font-size: 30px; }
  .route { grid-template-columns: 1fr; gap: 22px; padding-left: 4px; }
  .route::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 6px; height: auto;
    background: linear-gradient(180deg, var(--red), var(--blue) 55%, var(--amber)); }
  .route li { padding: 0 0 0 40px; }
  .board-bar { flex-direction: column; }
  .roles { grid-template-columns: 1fr; }
  .exits { grid-template-columns: 1fr; }
  .welcome p { font-size: 19px; }
  .copy { margin-left: 56px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .ticket-stats dd { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
