/* ============================================================================
 * styles.css —— 全站样式
 * 设计语言：港大 Web3I 官网的深蓝 + 青绿，干净、克制、卡片式。
 * 不依赖任何外部字体或 CDN，保证离线可用。
 * ========================================================================== */

:root {
  --ink: #163f36;
  --ink-2: #53685f;
  --ink-3: #7f938a;
  --line: #d5e0d9;
  --line-2: #c6d3ca;
  --bg: #ffffff;
  --surface-soft: #f1f5f2;
  --surface-tint: #e8efea;
  --white: #ffffff;

  --navy: #0D3028;
  --navy-deep: #09251F;
  --teal: #0D3028;
  --teal-dark: #09251F;
  --teal-soft: #EFF4F0;
  --gold: #EAC380;
  --gold-ink: #8F6016;

  --ok: #0f7b5f;
  --ok-soft: #e4f4ee;
  --warn: #a15c00;
  --warn-soft: #fdf3e2;
  --danger: #b42318;
  --danger-soft: #fdecea;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 40, 52, .06), 0 1px 3px rgba(16, 40, 52, .04);
  --shadow-md: 0 4px 16px rgba(16, 40, 52, .08);
  --shadow-lg: 0 18px 48px rgba(16, 40, 52, .13);

  --max: 1320px;
  --gutter: max(clamp(24px, 4.5vw, 72px), calc((100vw - 1320px) / 2));
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

@font-face {
  font-family: Manrope;
  src: url("brand/manrope-latin-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body { padding-top: 84px; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.hidden { display: none !important; }
.wrap { padding-inline: var(--gutter); }
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold-ink); transform: scaleX(0); transform-origin: 0 50%;
  z-index: 60; pointer-events: none;
}
.muted { color: var(--ink-2); }
.tiny { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.spacer { flex: 1; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .22s;
}
.topbar.is-scrolled { box-shadow: 0 2px 8px rgba(9, 37, 31, .04); }
.topbar-inner {
  padding-inline: var(--gutter);
  height: 84px; display: flex; align-items: center; gap: 26px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: contain; flex: none; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand-text span { font-size: 11.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav a {
  position: relative; padding: 14px 0; margin: 0;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; transition: color .18s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease-out);
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); font-weight: 700; }
.nav a.active::after { transform: scaleX(1); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 38px; height: 38px; padding: 0 9px; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; }
.nav-toggle:hover { border-color: var(--ink-3); }
.mode-badge {
  font-size: 11.5px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: #fff;
  white-space: nowrap; cursor: help;
}
.mode-badge.mode-server { background: var(--ok-soft); color: var(--ok); border-color: #bfe3d6; }
.mode-badge.mode-local { background: #fff; color: var(--ink-3); }
.mode-badge.mode-offline { background: var(--danger-soft); color: var(--danger); border-color: #f2c4c4; }

/* 身份切换器 */
.switcher { position: relative; }
.switcher-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink);
  font-family: inherit;
}
.switcher-btn:hover { border-color: var(--teal); }
.switcher-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 290px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 6px; display: none;
}
.switcher-menu.open { display: block; }
.switcher-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 9px 10px; border-radius: var(--r-sm); border: 0; background: none;
  cursor: pointer; text-align: left; font-family: inherit; font-size: 13.5px;
}
.switcher-item:hover { background: var(--teal-soft); }
.switcher-item.active { background: #f0f6f8; }
.switcher-item .em { font-size: 18px; line-height: 1.2; }
.switcher-item .t { display: flex; flex-direction: column; }
.switcher-item .t b { font-weight: 600; }
.switcher-item .t span { font-size: 11.5px; color: var(--ink-3); }
.switcher-foot {
  border-top: 1px solid var(--line); margin-top: 4px; padding: 8px 4px 2px;
  display: flex; gap: 6px;
}
.switcher-foot button {
  flex: 1; font-size: 12px; padding: 6px; border-radius: 6px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  font-family: inherit; color: var(--ink-2);
}
.switcher-foot button:hover { background: #f7f9fa; color: var(--ink); }

/* 顶部右侧：演示身份切换 + 用户头像菜单 */
.user-area { display: flex; align-items: center; gap: 10px; }

.demo-switcher .demo-btn {
  gap: 6px; padding: 5px 10px 5px 8px; color: var(--ink-2);
  font-weight: 700; font-size: 12.5px;
}
.demo-switcher .demo-btn:hover { color: var(--ink); border-color: var(--teal); }
.demo-em { font-size: 14px; line-height: 1; }
.demo-tx { white-space: nowrap; }
.caret { font-size: 10px; color: var(--ink-3); }
.switcher-head {
  padding: 8px 10px 4px; font-size: 11.5px; color: var(--ink-3);
  font-weight: 600; letter-spacing: .04em;
}

.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff;
  color: var(--ink); font-weight: 600; font-size: 13.5px;
  text-decoration: none;
}
.user-chip:hover { text-decoration: none; border-color: var(--teal); color: var(--ink); }
.user-chip .uname { white-space: nowrap; }
.unread-dot {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--danger);
  color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1;
}

.user-dropdown {
  position: absolute; right: 0; top: 100%;
  padding-top: 8px; display: none; z-index: 60;
}
.user-dropdown.open { display: block; }
.ud-panel {
  width: 236px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px;
}
.ud-head {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.ud-who { display: flex; flex-direction: column; line-height: 1.3; overflow: hidden; }
.ud-who b { font-size: 14px; }
.ud-who span { font-size: 11.5px; color: var(--ink-3); }
.ud-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 10px; border-radius: var(--r-sm);
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 13.5px; color: var(--ink);
  text-decoration: none;
}
.ud-item:hover { background: var(--teal-soft); text-decoration: none; color: var(--teal-dark); }
.ud-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.ud-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.ud-logout { color: var(--danger); }
.ud-logout:hover { background: var(--danger-soft); color: var(--danger); }

/* 我的消息 */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 20px 22px; background: var(--surface-soft); border: 0;
  border-radius: 12px; text-decoration: none; color: inherit;
  position: relative;
}
.msg-item:hover { text-decoration: none; background: #e5eee8; }
.msg-item.unread { background: #e7f0e9; border-left: 3px solid var(--gold-ink); }
.msg-ico { font-size: 20px; line-height: 1.2; flex: none; }
.msg-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 18px; }
.msg-main b { font-size: 14.5px; }
.msg-body { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.msg-time { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.msg-dot {
  position: absolute; right: 16px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 22px; height: 40px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: transform .22s var(--ease-out), background .18s ease, color .18s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { transition: transform .22s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(-1px) scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--gold); color: #09251f; }
.btn-primary:hover { background: #F4D49A; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-danger { background: #fff; border-color: #f0c4c0; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }

.btn-sm { padding: 0 14px; height: 32px; font-size: 13px; font-weight: 700; }
.btn-lg { padding: 0 26px; height: 48px; font-size: 14px; font-weight: 700; }
.btn-block { width: 100%; }

/* ---------------- 卡片 ---------------- */

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: none;
}
.card-pad { padding: 22px 24px; }
.card-hd {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.card-hd h3 { font-size: 16px; }

/* ---------------- 首页 ---------------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  padding: 74px 0 84px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-areas: "copy mark" "facts facts";
  gap: 56px 56px; align-items: center;
}
.hero-copy { max-width: 660px; grid-area: copy; }
.hero-mark {
  position: relative; width: 100%; max-width: 660px; aspect-ratio: 760 / 620;
  justify-self: end; grid-area: mark;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hn-label {
  position: absolute; z-index: 2; pointer-events: none;
  transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(190, 214, 199, .92);
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(9, 37, 31, .95);
  transition: color .35s var(--ease-out);
  animation: hnFloat 7s ease-in-out infinite;
}
.hn-label:nth-of-type(2) { animation-delay: -1.6s; }
.hn-label:nth-of-type(3) { animation-delay: -3.2s; }
.hn-label:nth-of-type(4) { animation-delay: -4.8s; }
.hn-label[data-active="true"] {
  color: #EAC380;
}
@keyframes hnFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-5px); }
}
.hn-center {
  position: absolute; left: 0; right: 0; top: 58%; z-index: 1; pointer-events: none;
  text-align: center;
}
.hn-center b {
  display: block; font-size: 22px; font-weight: 600; letter-spacing: .01em;
  color: #EAC380;
}
.hn-center span {
  display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .26em;
  color: rgba(231, 240, 233, .5);
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-mark { justify-self: center; max-width: 340px; }
}
.hero .wrap { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #9bb3a5; font-weight: 600; margin-bottom: 18px;
}
.hero-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.08;
  font-weight: 700; letter-spacing: -.042em; max-width: 22ch; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead {
  font-size: 16.5px; color: rgba(255,255,255,.82);
  max-width: 60ch; line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero .btn-teal { background: var(--gold); color: var(--navy-deep); }
.hero .btn-teal:hover { background: #F3D9A8; }

.hero-facts {
  grid-area: facts; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-fact b { display: block; font-size: 22px; letter-spacing: -.02em; }
.hero-fact span { font-size: 12.5px; color: #9bb3a5; }

.section { padding: clamp(64px, 6.7vw, 96px) 0; }
.section-tight { padding: clamp(64px, 6.7vw, 96px) 0; }
.section-soft { background: #f1f5f2; }
.section-soft .post-row { background: #fff; }
.section-soft .post-row:hover { background: #eaf1ec; }
.section-dark { background: #0d3028; color: #fff; }
.section-dark .eyebrow { color: #bad7c7; }
.section-dark h2 { color: #fff; }
.section-dark .section-hd p { color: #afc5b9; }
.section-dark .entry-card { background: #e6eee6; border-color: transparent; }
.section-dark .entry-card.ext { background: #e7d9b6; }
.section-dark .entry-card h3 { color: #09251f; }
.section-dark .entry-card p, .section-dark .entry-card li { color: #3e594b; }
.section-dark .entry-card .entry-ico { background: #fff; }
.section-dark .entry-card { transition: background .22s, border-color .22s; }
.section-dark .entry-card:hover { background: #dbe7de; }
.section-dark .entry-card.ext:hover { background: #dfcfae; }
.section-dark .entry-card .btn-ghost { background: #fff; border-color: #0d3028; color: #0d3028; }
.section-dark .entry-card .btn-ghost:hover { background: #0d3028; border-color: #0d3028; color: #fff; }
.section-dark .btn-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }
.section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-hd > :first-child { flex: 1; min-width: 0; }
.section-hd .section-more { align-self: flex-end; font-size: 13px; font-weight: 600; text-align: right; padding-bottom: 0; }
.section-hd h2 { font-size: 42px; font-weight: 700; letter-spacing: -.035em; line-height: 1.14; }
.section-hd p { font-size: 15px; color: var(--ink-2); padding-bottom: 8px; max-width: 38ch; text-align: right; }
.eyebrow {
  font-size: 14px; letter-spacing: 0; text-transform: none;
  color: var(--ink-2); font-weight: 600; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.is-hero {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: #bad7c7; font-weight: 700;
}
.eyebrow.is-hero::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex: none;
}

/* 生态结构图示（官网同款） */
.eco-map {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 24px; row-gap: 22px;
  padding: 40px 32px 32px;
  background: #f1f5f2; border-radius: 12px;
}
.eco-hub {
  grid-column: 1 / -1; width: 64%; justify-self: center;
  background: #0d3028; color: #fff; border-radius: 8px;
  padding: 26px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  position: relative; z-index: 1;
}
.eco-hub-ico { width: 34px; height: 34px; }
.eco-hub b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.eco-hub span { font-size: 13px; color: #9bb3a5; }
.eco-hub::before, .eco-hub::after {
  content: ""; position: absolute; top: 100%; width: 1px; height: 22px;
  background: #9bb3a5;
}
.eco-hub::before { left: 24%; }
.eco-hub::after { right: 24%; }
.eco-node {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 22px;
  transition: background .22s, border-color .22s;
}
.eco-node:hover { background: #f6faf6; border-color: #5a9579; }
.eco-node .n { font-size: 12px; font-weight: 700; color: var(--gold-ink); letter-spacing: .06em; }
.eco-node h3 { font-size: 17px; font-weight: 600; margin: 6px 0 7px; letter-spacing: -.015em; }
.eco-node p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 820px) {
  .eco-map { grid-template-columns: 1fr; }
  .eco-hub { width: 88%; }
  .eco-hub::before, .eco-hub::after { display: none; }
}

/* 时间线 */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.tl-item {
  position: relative; padding: 0 0 34px 34px;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
}
.tl-item::after {
  content: ""; position: absolute; left: 4px; top: 20px; bottom: 0;
  width: 1px; background: var(--line-2);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::after { display: none; }
.tl-item .d { font-size: 13px; font-weight: 700; color: var(--gold-ink); letter-spacing: .02em; min-width: 78px; }
.tl-item .l { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.tl-item .s { font-size: 14px; color: var(--ink-2); margin-top: 4px; flex-basis: 100%; padding-left: 96px; }

/* 两条入口 */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.entry-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 30px 28px;
  display: flex; flex-direction: column;
}
.entry-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
}
.entry-card.ext::before { background: linear-gradient(90deg, var(--gold), #a15c00); }
.entry-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 21px; background: var(--teal-soft); margin-bottom: 16px;
}
.entry-card.ext .entry-ico { background: var(--warn-soft); }
.entry-card h3 { font-size: 19px; margin-bottom: 8px; }
.entry-card p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.entry-card ul { margin: 0 0 22px; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.entry-card li { margin-bottom: 4px; }
.entry-card .act { margin-top: auto; }

/* ---------------- 表单 ---------------- */

.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; color: var(--danger); }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font-size: 14px;
  font-family: inherit; line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 143, 158, .13);
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink-2); }
.checkline input { margin-top: 3px; }

/* ---------------- 徽章 / 标签 / 头像 ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.badge-recruiting { background: var(--ok-soft); color: var(--ok); }
.badge-full { background: var(--warn-soft); color: var(--warn); }
.badge-submitted { background: #e8eefc; color: #2549a8; }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-accepted { background: var(--ok-soft); color: var(--ok); }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }
.badge-voided, .badge-withdrawn { background: #eef1f3; color: var(--ink-3); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: #f1f5f7; color: var(--ink-2); border: 1px solid var(--line);
}
.chip.need { background: var(--warn-soft); color: var(--warn); border-color: #f2ddbb; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 13px; font-weight: 700; flex: none; line-height: 1;
  position: relative; overflow: hidden;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar.sm { width: 26px; height: 26px; font-size: 11.5px; }
.avatar.lg { width: 46px; height: 46px; font-size: 17px; }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -5px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .more {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -5px;
  border: 2px solid #fff; background: #eef2f4; color: var(--ink-2);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}

.user-inline { display: flex; align-items: center; gap: 9px; }
.user-inline .nm { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.user-inline .sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }

/* ---------------- 队伍广场 ---------------- */

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.toolbar .grow { flex: 1; }
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer;
  font-family: inherit; font-weight: 700;
}
.pill:hover { border-color: var(--teal); color: var(--teal-dark); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

.team-card {
  background: var(--surface-soft); border: 0; border-radius: 12px;
  padding: 24px 26px; display: flex; flex-direction: column; gap: 16px;
  transition: background .24s;
  cursor: pointer;
}
.team-card:hover { background: #e5eee8; }
.team-card-top { display: flex; align-items: flex-start; gap: 10px; }
.team-card-top h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.team-card .intro { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.team-card .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 13px; border-top: 1px solid var(--line); margin-top: auto;
}
.team-card .need-list { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 页面骨架 ---------------- */

.page { padding: 34px 0 72px; }
.page-hd { margin-bottom: 26px; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-hd h1 { font-size: 44px; font-weight: 700; letter-spacing: -.038em; line-height: 1.1; }
.page-hd p { font-size: 15px; color: var(--ink-2); margin-top: 7px; }

.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--teal-dark); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 16px;
}
.back-link:hover { color: var(--teal-dark); text-decoration: none; }

.grid-2 { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 14px; }

/* 统计卡 */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: 12.5px; color: var(--ink-2); }

/* 列表行 */
.row-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: #fbfcfd; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: #fafcfc; white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfcfd; }

/* 空状态 */
.empty {
  text-align: center; padding: 56px 24px; color: var(--ink-2);
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: #fff;
}
.empty .ico { font-size: 34px; margin-bottom: 10px; opacity: .55; }
.empty h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.empty p { font-size: 13.5px; max-width: 44ch; margin: 0 auto 18px; }

.programme-coming-soon h2 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.5;
}

/* 提示条 */
.notice {
  display: flex; gap: 11px; padding: 13px 16px; border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.6;
}
.notice-info { background: var(--teal-soft); color: #2A5C4E; }
.notice-warn { background: var(--warn-soft); color: #7a4700; }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice b { font-weight: 700; }

/* ---------------- 登录 ---------------- */

.auth-wrap { max-width: 480px; margin: 0 auto; padding: 48px 0 80px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.auth-hd { padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.auth-hd h1 { font-size: 21px; }
.auth-hd p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.auth-body { padding: 24px 28px 28px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: #f2f5f6; padding: 4px; border-radius: 10px; }
.auth-tab {
  flex: 1; padding: 8px; border: 0; border-radius: 7px; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-family: inherit;
}
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.demo-tip {
  margin-top: 18px; padding: 13px 15px; border-radius: var(--r-sm);
  background: #f7fafb; border: 1px dashed var(--line-2);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
}
.demo-tip code {
  background: #e9eff2; padding: 1px 6px; border-radius: 4px;
  font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.demo-tip code[data-act] { cursor: pointer; border-bottom: 1px dashed #9db6bf; }
.demo-tip code[data-act]:hover { background: #d8e4e9; }

/* ---------------- 队伍详情 ---------------- */

.detail-hd {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: #fff; border-radius: var(--r-lg); padding: 30px 32px; margin-bottom: 20px;
}
.detail-hd h1 { font-size: 26px; margin-bottom: 8px; }
.detail-hd p { color: rgba(255,255,255,.78); font-size: 14px; max-width: 62ch; }
.detail-hd .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.detail-hd .tags .chip { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.2); color: #dff3f7; }

/* 申请卡片 */
.app-card { padding: 18px 22px; border-bottom: 1px solid var(--line); transition: background .22s; }
.app-card:hover { background: #E5EEE8; }
.app-card:last-child { border-bottom: 0; }
.app-card .msg {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
  background: #fafcfc; border-left: 3px solid var(--line-2);
  padding: 10px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 11px 0;
}
.app-card .contact {
  font-size: 13px; display: inline-flex; align-items: center; gap: 7px;
  background: #f2f7f9; padding: 5px 11px; border-radius: 7px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.app-actions { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }

/* ---------------- Toast ---------------- */

.toast-host {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.toast {
  max-width: 380px; padding: 12px 17px; border-radius: var(--r-md);
  background: var(--navy-deep); color: #fff; font-size: 13.5px; line-height: 1.55;
  box-shadow: var(--shadow-lg); animation: toast-in .22s ease;
  display: flex; gap: 9px; align-items: flex-start;
}
.toast.err { background: #8f1d14; }
.toast.ok { background: #0c6249; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------- 页脚 ---------------- */

.footer {
  background: #09251f; color: #fff;
  padding: 48px 0 38px; margin-top: 0;
}
.footer-inner {
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: #afc5b9;
}
.footer a { color: #afc5b9; }
.footer a:hover { color: var(--gold); }

/* ---------------- 流程条 ---------------- */

.flow {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 22px; font-size: 12.5px;
}
.flow-step { display: flex; align-items: center; gap: 7px; color: var(--ink-3); }
.flow-step.on { color: var(--teal-dark); font-weight: 700; }
.flow-step.done { color: var(--ink-2); }
.flow-step .num {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2f4; font-size: 11px; font-weight: 700;
}
.flow-step.on .num { background: var(--teal); color: #fff; }
.flow-step.done .num { background: var(--ok-soft); color: var(--ok); }
.flow-sep { width: 22px; height: 1px; background: var(--line-2); margin: 0 9px; }
/* ---------------- 论坛 ---------------- */

.post-list { display: flex; flex-direction: column; gap: 10px; }

.post-row {
  display: flex; gap: 16px; align-items: center;
  background: var(--surface-soft); border: 0; border-radius: 12px;
  padding: 22px 24px; color: inherit; text-decoration: none;
  transition: background .24s;
}
.post-row:hover { background: #e5eee8; text-decoration: none; }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 16.5px; font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.post-excerpt {
  font-size: 13.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.6;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.post-meta { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.post-meta .dot { color: var(--line-2); }
.post-team { color: var(--teal-dark); font-weight: 600; }
.post-side { flex: none; text-align: center; padding-left: 12px; border-left: 1px solid var(--line); min-width: 60px; }
.post-side b { display: block; font-size: 19px; color: var(--navy); line-height: 1.2; }
.post-side span { font-size: 11.5px; color: var(--ink-3); }

.post-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 32px 28px; }
.post-detail h1 { font-size: 25px; letter-spacing: -.025em; line-height: 1.35; }
.post-body { margin-top: 18px; font-size: 15px; line-height: 1.9; color: var(--ink); max-width: 46em; }

.team-share { margin-top: 24px; border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 20px 22px; background: var(--teal-soft); }
.team-share-hd h3 { font-size: 17px; margin-top: 3px; color: var(--navy); }
.team-share-intro { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.7; }
.team-share-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.team-share-act { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.replies { margin-top: 28px; }
.replies h2 { font-size: 16px; margin-bottom: 14px; color: var(--ink-2); font-weight: 600; }

.reply-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 10px; }
.reply-hd { display: flex; align-items: center; gap: 10px; }
.reply-name { font-size: 13.5px; font-weight: 700; }
.reply-time { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.reply-body { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--ink); }
.reply-empty { padding: 24px; text-align: center; color: var(--ink-3); font-size: 13.5px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-md); margin-bottom: 14px; }

.reply-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-top: 14px; }
.reply-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.reply-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.reply-form-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* ---------------- 个人主页 ---------------- */

.profile-hd { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 30px; font-weight: 700; flex: none; line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line);
  overflow: hidden;
}
.profile-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-id h1 { font-size: 26px; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-sub { display: flex; align-items: center; gap: 7px; margin-top: 8px; flex-wrap: wrap; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-bio { font-size: 14px; line-height: 1.8; color: var(--ink); margin-top: 10px; }
.profile-skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 13px; }
.profile-link { color: var(--teal-dark); font-weight: 600; }

.team-line { display: flex; align-items: center; gap: 12px; padding-top: 12px; flex-wrap: wrap; }
.team-line-main { flex: 1; min-width: 0; }
.team-line-main b { display: block; font-size: 15px; color: var(--navy); }
.team-line-main .tiny { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 表单 ---------------- */

.form-title { font-size: 26px; letter-spacing: -.025em; margin-bottom: 6px; }
.form-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field-hint { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.link-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.check input { width: auto; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }

.card-title { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; letter-spacing: .01em; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; text-align: right; word-break: break-all; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe6d0; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 14px; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--forest); font-weight: 700; }
  .hero { padding: 50px 0 58px; }
  .hero-facts { gap: 22px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { padding: 0 16px; gap: 8px; }
  .brand-text span { display: none; }
  .mode-badge { display: none; }
  .teams-grid { grid-template-columns: 1fr; }
  .table { font-size: 12.5px; }
  .table th, .table td { padding: 9px 10px; }
  .flow-sep { width: 10px; margin: 0 5px; }
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* ===== 滚动淡入（官网同款） ===== */
[data-reveal] {
  opacity: 0; transform: translateY(45px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out),
              background-color .22s var(--ease-out), border-color .22s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hn-label { animation: none; }
}

/* ===== 键盘焦点（官网同款） ===== */
:focus-visible {
  outline: 3px solid #B17C25;
  outline-offset: 6px;
  border-radius: 4px;
}

/* ==========================================================================
 * 第 2 轮对齐：官网 hkuweb3.com 实测值（1440 视口）
 * 全部覆盖写法，就近覆盖前面的旧规则
 * ========================================================================== */
:root {
  --line-2: #d5e0d9;
  --line-dark: #34584b;
  --r-lg: 12px;
  --shadow-sm: none;
  --shadow-md: none;
  --mint: #bad7c7;
  --header-height: 88px;
  --section-title: clamp(32px, 3.2vw, 48px);
  --hero-ink-soft: #bcd0c6;
}

/* ---- 顶栏 ---- */
body { padding-top: var(--header-height); }
.topbar-inner { height: var(--header-height); }
.brand { gap: 12px; }
.brand-mark { width: 48px; height: 48px; }
.brand-text b { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.nav { margin-left: auto; gap: clamp(20px, 2.5vw, 36px); }
.nav a { font-weight: 600; padding-block: 14px; }
.nav a::after { height: 1px; bottom: 6px; }
.topbar-right .btn-primary,
.topbar-right .btn-login {
  background: var(--navy); color: #fff; border-color: transparent;
  padding: 13px 22px; font-size: 13px; gap: 10px; height: 47px;
}
.topbar-right .btn-primary:hover,
.topbar-right .btn-login:hover { background: #215444; }
.mode-badge { font-size: 11px; color: var(--ink-3); border-color: var(--line); padding: 3px 8px; }

/* ---- hero ---- */
.hero {
  padding: 48px 0 88px;
  min-height: 812px;
  min-height: calc(100vh - var(--header-height));
  display: grid; align-items: center; position: relative; overflow: clip;
}
.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  column-gap: clamp(24px, 3.3vw, 48px);
  grid-template-areas: "copy mark" "facts facts";
  align-items: center;
}
.hero-copy { max-width: 780px; padding-block: 24px; grid-area: copy; }
.hero-kicker { font-size: 11px; letter-spacing: .15em; gap: 12px; color: var(--mint); font-weight: 600; margin-bottom: 0; }
.hero-kicker::before { width: 6px; height: 6px; }
.hero h1 {
  font-size: clamp(44px, 5.35vw, 77px); line-height: 1.04; letter-spacing: -.04em;
  font-weight: 700; max-width: 780px; margin-top: 24px; margin-bottom: 0;
}
.hero p.lead {
  font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; max-width: 420px;
  margin-top: 28px; color: var(--hero-ink-soft);
}
.hero-actions { gap: 24px; margin-top: 32px; }
.hero-actions .btn-lg { padding: 17px 25px; font-size: 13px; gap: 14px; border-radius: 100px; }
.hero-actions .btn-ghost {
  background: none; border: 0; border-radius: 0; padding: 0; height: auto;
  color: var(--hero-ink-soft); font-size: 12px; font-weight: 400; gap: 6px;
}
.hero-actions .btn-ghost:hover { background: none; color: #fff; transform: none; }

/* hero 底部：13px 金色等宽索引行 */
.hero-facts {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 40px; background: none;
}
.hero-fact { display: flex; align-items: baseline; gap: 8px; }
.hero-fact b { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--gold); font-variant-numeric: tabular-nums; }
.hero-fact span { font-size: 13px; color: var(--hero-ink-soft); }

/* 网络图：出血 4%，中心标题白色 34px */
.hero-mark { width: 118%; max-width: none; margin-right: -4%; aspect-ratio: 38 / 31; justify-self: end; grid-area: mark; }
.hn-center b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.hn-center span { font-size: 11px; letter-spacing: .3em; color: rgba(231, 240, 233, .55); }

@media (max-width: 940px) {
  .hero { padding: 32px 0 88px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "mark" "facts"; gap: 32px; }
  .hero-mark { width: 100%; margin-right: 0; max-width: 420px; justify-self: center; }
  .hero-facts { position: static; margin-top: 32px; }
}

/* ---- 生态图示 ---- */
.eco-map {
  max-width: 1088px; margin-inline: auto;
  grid-template-rows: 144px 64px auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px; row-gap: 0; padding: 32px;
}
.eco-hub {
  grid-area: 1 / 1 / auto / -1; justify-self: center; width: 62%;
  padding: 18px 12px; justify-content: center;
}
.eco-hub b { font-size: 18px; letter-spacing: -.03em; }
.eco-hub span { font-size: 12px; color: #bdd1c6; }
.eco-hub:hover { background: #164736; }
/* 括号连线：左右两条腿垂 64px 落到第 3 行卡顶 */
.eco-hub::before {
  content: ""; position: absolute; top: 100%; left: 31%; right: 31%;
  height: 64px; width: auto; background: none;
  border: 1px solid #9bb3a5; border-bottom: 0; border-radius: 12px 12px 0 0;
  pointer-events: none;
}
.eco-hub::after { display: none; }
.eco-hub-ico { width: 30px; height: 30px; }
.eco-node {
  grid-row: 3; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; min-height: 136px; padding: 18px 12px;
}
.eco-node .n { font-size: 12px; letter-spacing: .08em; color: var(--gold-ink); margin-bottom: 10px; }
.eco-node h3 { font-size: 18px; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; margin: 0; }
.eco-node p { font-size: 12px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }

/* ---- 深色「参赛入口」 ---- */
.section-dark { padding-block: 72px; }
.section-dark .eyebrow { color: #bdd1c6; }
.section-dark .section-hd p { color: #bdd1c6; }
.section-dark .entry-card {
  background: #e6eee6; border: 0; border-radius: 12px; padding: 32px;
  min-height: 340px; color: var(--navy-deep);
}
.section-dark .entry-card.ext { background: #e7d9b6; }
.section-dark .entry-card::before { display: none; }
.section-dark .entry-card:hover { background: #dbe7de; }
.section-dark .entry-card.ext:hover { background: #dfcfae; }
.section-dark .entry-card .entry-ico {
  background: none; width: 34px; height: 34px; border-radius: 0;
  margin-bottom: 12px; color: var(--gold-ink); font-size: 26px; line-height: 1; display: flex; align-items: center;
}
.section-dark .entry-card .entry-ico .ico { width: 34px; height: 34px; stroke-width: 1.4; }
.eco-node .eco-ico { display: block; margin-bottom: 10px; color: var(--gold-ink); }
.eco-node .eco-ico .ico { width: 22px; height: 22px; }
.toolbar .link-quiet { font-size: 13px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.toolbar .link-quiet:hover { color: var(--ink); border-color: var(--ink-3); }
.section-dark .entry-card.ext .entry-ico { background: none; }
.section-dark .entry-card h2,
.section-dark .entry-card h3 {
  font-size: clamp(26px, 2.3vw, 34px); font-weight: 700; line-height: 1.2;
  letter-spacing: -.03em; color: var(--navy-deep); margin: 24px 0 16px;
}
.section-dark .entry-card p,
.section-dark .entry-card li { font-size: 15px; line-height: 1.8; color: #3e594b; }
.section-dark .entry-card ul { margin: 0 0 24px; padding-left: 18px; }
.section-dark .entry-card .btn {
  background: none; border: 0; border-radius: 0; padding: 0 0 4px; height: auto;
  color: var(--navy-deep); font-size: 13px; font-weight: 600; gap: 10px;
  border-bottom: 1px solid rgba(13, 48, 40, .28);
}
.section-dark .entry-card .btn:hover {
  background: none; color: #0b5c4a; border-bottom-color: #0b5c4a; transform: none;
}
.section-dark .entry-card .btn:hover svg { transform: translateX(4px); }

/* ---- 标题档位 ---- */
.section-hd { margin-bottom: 40px; align-items: flex-end; }
.section-hd h2 { font-size: var(--section-title); line-height: 1.14; letter-spacing: -.035em; font-weight: 700; }
.eyebrow { margin-bottom: 14px; gap: 12px; }
.post-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--navy-deep); }
.post-excerpt { font-size: 14px; }
.post-meta { font-size: 14px; color: var(--ink-2); }
.page-hd h1 { font-size: var(--section-title); letter-spacing: -.035em; }

/* ---- 页脚 ---- */
.footer {
  background: var(--navy-deep); color: #fff;
  padding: 48px var(--gutter) 38px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer-brand strong { color: var(--gold); font-weight: 800; }
.footer p { grid-area: 2 / 1; margin: 0; font-size: 13px; color: #afc5b9; }
.footer .footer-top {
  grid-area: 1 / 2 / 3; justify-self: end; display: inline-flex; align-items: center;
  gap: 14px; padding: 12px 0; font-size: 12px; color: #fff;
  border-bottom: 1px solid var(--line-dark); text-decoration: none;
}

/* 页脚贴底：内容不足时不留白 */
body { display: flex; flex-direction: column; min-height: 100vh; }
main#app { flex: 1 0 auto; }

/* 段落密度收紧（内容少的区块不再出现大片空白） */
.section-tight { padding-block: clamp(48px, 5.2vw, 72px); }
.section-soft.section-tight { padding-block: clamp(44px, 4.8vw, 68px); }

/* 消息页：已读操作用文字链，不用大胶囊 */
.page-hd .link-quiet { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.page-hd .link-quiet:hover { color: var(--ink); border-color: var(--ink-3); }

/* 图标容器：替代 emoji */
.ico { width: 22px; height: 22px; flex: none; display: block; }
.ico-sm { width: 16px; height: 16px; }
.footer .footer-top:hover { color: var(--gold); }

/* ---- 跨页：干掉白底 + 1px 描边 ---- */
.card, .stat, .post-detail, .reply-item, .reply-form, .auth-card {
  background: var(--surface-soft); border: 0; box-shadow: none;
}
.auth-card { border-radius: 12px; }
.auth-tab.active { box-shadow: none; background: var(--navy-deep); color: #fff; }
.empty, .team-share, .reply-empty { background: var(--surface-soft); border: 0; border-radius: 12px; }
.flow {
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 22px;
}
.flow-sep { background: var(--line); }
.flow-step .num { background: var(--surface-tint); }
.pill { border-color: var(--line); background: #fff; }
.pill:hover { background: var(--surface-soft); color: var(--navy); border-color: var(--line); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip { background: #fff; border-color: var(--line); color: var(--ink-2); }
.chip.need { background: #ede6d8; color: var(--gold-ink); border-color: transparent; }
.table th {
  background: transparent; text-transform: none; letter-spacing: 0;
  font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 11px 16px;
}
.table tr:hover td { background: var(--surface-soft); }
.row-item:hover { background: var(--surface-soft); }
.auth-tabs { background: var(--surface-soft); }
.notice-warn { background: #ede6d8; color: var(--gold-ink); }
.input:focus, .select:focus, .textarea:focus,
.field input:focus, .field textarea:focus, .reply-form textarea:focus {
  border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(143, 96, 22, .16); outline: none;
}

/* ================= 资助 / 赛道 / 主办支持 ================= */
.fund-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.fund-card { background: var(--surface-soft); border-radius: 12px; padding: 26px 24px; }
.fund-amt { font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.fund-card h4 { font-size: 15px; font-weight: 600; margin: 8px 0 6px; }
.fund-card p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.tracks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.track-card { background: var(--surface-soft); border-radius: 12px; padding: 24px; }
.track-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.track-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.track-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.host-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.host-card { background: var(--surface-soft); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.host-role { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.host-card b { font-size: 18px; font-weight: 600; }
.host-en { font-size: 12px; color: var(--ink-3); }
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.support-item { background: #fff; border-radius: 12px; padding: 22px; border: 1px solid var(--line); }
.support-item .ico { color: var(--gold-ink); width: 22px; height: 22px; margin-bottom: 10px; }
.support-item b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.support-item p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 820px) {
  .fund-grid { grid-template-columns: 1fr; }
  .tracks-grid, .host-row { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ================= 手机端修正（≤620px） ================= */
@media (max-width: 620px) {
  .brand { gap: 8px; }
  .brand-text b { font-size: 12.5px; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; }
  .brand-text span { display: none; }
  .mode-badge { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .nav a { padding: 13px 0; font-size: 15px; line-height: 1.4; }
  .hero { min-height: 0; padding: 96px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "mark" "facts"; }
  .hero h1 { font-size: 34px; line-height: 1.14; letter-spacing: -.03em; max-width: none; }
  .hero p.lead { font-size: 13.5px; max-width: none; margin-bottom: 20px; }
  .hero-mark { max-width: 260px; margin: 14px auto 0; }
  .hn-label { font-size: 9px; padding: 3px 7px; }
  .hn-center b { font-size: 17px !important; letter-spacing: -.02em; }
  .hn-center span { font-size: 7px !important; letter-spacing: .18em !important; }
  .hn-center span { font-size: 8px; letter-spacing: .14em; margin-top: 2px; }
  .hero-actions { gap: 10px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 18px; }
  .page-hd h1 { font-size: 28px; }
  .section-hd h2 { font-size: 24px; }
  .section-hd { flex-direction: column; align-items: flex-start; gap: 6px; }
  .eco-hub::before { display: none; }
}

/* ================= 项目规模条 ================= */
.prog-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px; margin-top: 18px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ps-item b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.ps-item span { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
@media (max-width: 720px) {
  .prog-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-item b { font-size: 21px; }
}

/* ============ 响应式收口（放最后，确保覆盖） ============ */
@media (max-width: 940px) {
  .eco-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "hub hub" "n1 n2" "n3 n4";
    gap: 18px; padding: 22px;
  }
  .eco-hub { grid-area: hub; }
  .eco-node:nth-child(2) { grid-area: n1; }
  .eco-node:nth-child(3) { grid-area: n2; }
  .eco-node:nth-child(4) { grid-area: n3; }
  .eco-node:nth-child(5) { grid-area: n4; }
  .eco-hub::before, .eco-hub::after { display: none; }
  .fund-grid { grid-template-columns: 1fr; }
  .tracks-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .host-row { grid-template-columns: 1fr; }
  .team-card-top, .teams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .teams-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .fund-grid, .tracks-grid { grid-template-columns: 1fr; }
}
/* 窄屏 eco-map 行高自适应（修正卡片被压扁溢出） */
@media (max-width: 940px) {
  .eco-map { grid-template-rows: auto auto auto; align-items: stretch; }
  .eco-node { min-height: 0; height: auto; }
}

/* ================= 语言切换器 ================= */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-soft); flex: none; }
.lang-btn {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  padding: 6px 9px; border-radius: 999px; color: var(--ink-2);
  transition: background .18s var(--ease-out), color .18s var(--ease-out);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-on { background: var(--navy); color: #fff; }
html[lang="en"] .nav a { letter-spacing: 0; }
html[lang="en"] .hero h1 { letter-spacing: -.03em; max-width: 24ch; }
html[lang="en"] .hero p.lead { max-width: 52ch; }
html[lang="en"] .section-hd p, html[lang="en"] .hero-fact span { font-size: 13px; }
@media (max-width: 620px) {
  .lang-btn { padding: 5px 7px; font-size: 11px; }
}

/* ==========================================================================
 * 第 3 轮：一屏一段（Chrome / 16:9 视口口径）
 * 目标：hero 与首页每个区块都正好占满 Chrome 可视区
 *      可视区高度 = 100vh − 固定顶栏高度（--header-height）
 * ========================================================================== */
:root {
  --hero-pad-t: clamp(24px, 4vh, 56px);
  --hero-pad-b: clamp(76px, 10vh, 108px);  /* 底部留给 hero 底部索引行 */
  --sec-pad-y: clamp(24px, 3.4vh, 48px);   /* 区块最小留白，多余空间交给垂直居中 */
}

@media (min-width: 941px) {
  /* ---- hero：正好撑满首屏 ---- */
  .hero {
    /* 用 flex 而不是 grid：绝对定位的底部索引行以 padding box 为基准，才不会被当成网格轨道拉伸 */
    display: flex;
    align-items: center;
    padding: var(--hero-pad-t) 0 var(--hero-pad-b);
    min-height: calc(100vh - var(--header-height));
  }
  /* 底部索引行现在是 .hero 的直接子元素，锚在 hero 底边 */
  .hero-grid { grid-template-areas: "copy mark"; row-gap: 0; }
  .hero-copy { padding-block: 0; }
  /* 网络图：高度由可视区推导，宽度跟随 38:31 比例，不再把 hero 顶出首屏 */
  .hero-mark {
    width: min(118%, calc((100vh - var(--header-height) - var(--hero-pad-t) - var(--hero-pad-b)) * 38 / 31));
  }

  /* ---- 首页区块：每个都正好一屏，内容垂直居中 ---- */
  .home-view > section {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--sec-pad-y);
  }
  .home-view > .hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: normal;
    padding-block: var(--hero-pad-t) var(--hero-pad-b);
  }

  /* ---- 区块内部节奏：按视口高度整体放大，让内容真正撑满一屏 ---- */
  .home-view .section-hd { margin-bottom: clamp(36px, 5.4vh, 60px); }
  .home-view .section-hd p { max-width: 44ch; }  /* 避免尾字孤行 */
  .home-view .section-hd h2 { font-size: clamp(42px, 4.8vw, 48px); }  /* 对齐官网 48px 口径 */

  /* 四步生态图 */
  .home-view .eco-map {
    grid-template-rows: clamp(152px, 21vh, 208px) clamp(58px, 8.6vh, 96px) auto;
    padding: clamp(26px, 3.4vh, 40px);
  }
  .home-view .eco-node { min-height: clamp(150px, 21vh, 196px); }

  /* 赛程 */
  .home-view .tl-item { padding-bottom: clamp(26px, 4.4vh, 48px); }

  /* 资助与奖励 */
  .home-view .fund-card {
    min-height: clamp(200px, 30vh, 280px);
    padding: clamp(28px, 4vh, 42px) clamp(24px, 2vw, 34px);
    display: flex; flex-direction: column;
  }
  .home-view .fund-amt { font-size: clamp(34px, 5vh, 52px); margin-bottom: auto; }
  .home-view .track-card {
    min-height: clamp(168px, 24vh, 240px);
    padding: clamp(26px, 3.6vh, 38px) clamp(24px, 2vw, 34px);
    display: flex; flex-direction: column; justify-content: center;
  }

  /* 主办与支持 */
  .home-view .host-card { padding: clamp(24px, 3.4vh, 34px) clamp(24px, 2vw, 34px); }
  .home-view .support-item { padding: clamp(22px, 3.2vh, 34px); }
  .home-view .host-row, .home-view .support-grid { margin-bottom: clamp(18px, 2.6vh, 30px); }
  .home-view .prog-stats { margin-top: clamp(22px, 3.2vh, 38px); padding-top: clamp(22px, 3vh, 34px); }
  .home-view .ps-item b { font-size: clamp(26px, 3.6vh, 38px); }
  /* 参赛入口 */
  .home-view .entry-card { min-height: clamp(350px, 52vh, 460px); }

  /* 团队卡 */
  .home-view .team-card { min-height: clamp(280px, 39vh, 330px); gap: clamp(16px, 2.4vh, 24px); }
}

/* ==========================================================================
 * 第 4 轮：首页 6 屏重排的新组件
 * ========================================================================== */

/* ---- ② 资助：评审维度条 ---- */
.review-strip {
  margin-top: clamp(18px, 2.6vh, 30px);
  padding: clamp(16px, 2.2vh, 24px) clamp(18px, 2vw, 28px);
  background: var(--surface-soft); border-radius: 12px;
}
.review-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.review-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.review-note { font-size: 13px; color: var(--ink-2); }
.review-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.review-chip {
  font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}

/* ---- ③ 谁能来：规则 chips + 赛道脚注 ---- */
.rule-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(18px, 2.6vh, 28px); }
.rule-chip {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  background: var(--surface-tint); color: var(--ink-2);
}
.rule-chip:first-child { background: var(--navy-deep); color: #fff; }
.tracks-note {
  margin-top: clamp(14px, 2vh, 22px); text-align: center;
  font-size: 13px; color: var(--ink-2);
}

/* ---- ④ 滚动推进：周期环 ---- */
.cycle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.cycle-figure { position: relative; width: min(100%, 486px); margin-inline: auto; }
.cycle-figure { position: relative; }
.cycle-svg { display: block; width: 100%; height: auto; }
.ring-track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 5 7; }
.ring-inner { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 7; opacity: .7; }
.ring-node {
  fill: #fff; stroke: var(--navy); stroke-width: 1.8;
  transform-box: fill-box; transform-origin: center;
}
.ring-arrow { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.ring-return {
  fill: none; stroke: var(--gold-ink); stroke-width: 1.3; stroke-dasharray: 4 5;
  opacity: 1;
}
.cycle-grid.is-in .ring-node { animation: nodeIn .55s var(--ease-out) both; }
.cycle-grid.is-in .ring-node:nth-of-type(3) { animation-delay: .06s; }
.cycle-grid.is-in .ring-node:nth-of-type(4) { animation-delay: .12s; }
.cycle-grid.is-in .ring-node:nth-of-type(5) { animation-delay: .18s; }
.cycle-grid.is-in .ring-node:nth-of-type(6) { animation-delay: .24s; }
@keyframes nodeIn { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cycle-grid.is-in .ring-return { opacity: 1; }
.cycle-center {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; pointer-events: none;
}
.cycle-center b { display: block; font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.cycle-center span { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-2); }
.cycle-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.5vh, 16px); }
.cycle-legend li { display: flex; gap: 14px; align-items: flex-start; }
.cycle-legend li > b {
  font-size: 11px; font-weight: 700; color: var(--gold-ink);
  font-variant-numeric: tabular-nums; min-width: 20px; padding-top: 4px;
}
.cycle-legend strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.cycle-legend span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cycle-legend li.is-return { border-top: 1px solid var(--line); padding-top: clamp(10px, 1.5vh, 16px); margin-top: 2px; }
.cycle-legend li.is-return > b { color: var(--ink-3); font-size: 13px; }

/* ---- ⑤ 不只是奖金 ---- */
.host-line {
  margin-top: clamp(20px, 3vh, 34px); padding-top: clamp(16px, 2.4vh, 26px);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
}
.host-inline { font-size: 13px; color: var(--ink-2); }
.host-inline i { font-style: normal; font-size: 11px; letter-spacing: .1em; color: var(--gold-ink); margin-right: 8px; }

/* ---- 头像链接态 ---- */
.avatar.is-link { text-decoration: none; cursor: pointer; }
.avatar.is-link:hover, .avatar.is-link:focus-visible {
  text-decoration: none; transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .18);
}
.avatar { transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out); }

/* 首页新屏在窄屏收口 */
@media (max-width: 940px) {
  .cycle-grid { grid-template-columns: 1fr; row-gap: 20px; }
  .cycle-svg { max-width: 400px; margin-inline: auto; }
  .review-strip { padding: 16px; }
  .rule-chips { margin-bottom: 16px; }
  .cycle-legend strong { font-size: 15px; }
}

/* 第③屏内容偏满，把生态图行高压一档，保证正好一屏 */
@media (min-width: 941px) {
  .home-view .eco-map { grid-template-rows: clamp(138px, 19vh, 190px) clamp(56px, 8vh, 90px) auto; }
  .home-view .eco-node { min-height: clamp(138px, 19vh, 180px); }
  .home-view .rule-chips { margin-bottom: clamp(14px, 2vh, 22px); }
}

/* 第④屏：支持卡放大 + 成果归属条 */
@media (min-width: 941px) {
  .home-view .support-item {
    min-height: clamp(200px, 27vh, 268px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .home-view .support-item .ico { width: 26px; height: 26px; margin-bottom: 16px; }
  .home-view .support-item b { font-size: 16px; }
  .home-view .support-item p { font-size: 13.5px; }
  .home-view .eco-map { padding: clamp(16px, 2.4vh, 28px); }
}
.ip-strip {
  margin-top: clamp(16px, 2.4vh, 26px);
  padding: clamp(16px, 2.2vh, 22px) clamp(18px, 2vw, 28px);
  background: var(--surface-soft); border-radius: 12px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px;
}
.ip-strip p { font-size: 14px; color: var(--ink-2); }

/* ==========================================================================
 * 第 5 轮：主屏子弹列 / 编号步骤卡 / 日程环 / 章程四格 / 带框按钮
 * ========================================================================== */

/* ---- 主屏子弹列 ---- */
.hero-bullets { list-style: none; margin: clamp(18px, 2.4vh, 26px) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.hero-bullets li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--hero-ink-soft); }
.hero-bullets li::before { content: ""; position: absolute; left: 1px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---- 首屏按钮：两枚同高同宽，只差填充 ---- */
.hero-actions { align-items: center; }
.hero-actions .btn {
  height: 52px; padding: 0 28px; min-width: 148px;
  border-radius: 100px; font-size: 14px; font-weight: 700; gap: 10px;
  transition: background .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
}
.hero-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, .16); border-color: #fff; color: #fff;
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); text-decoration: none;
}
.hero-actions .btn-teal:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .22); }

/* ---- 带框按钮：报名入口卡 ---- */
.section-dark .entry-card .btn {
  background: #fff; border: 1px solid rgba(13, 48, 40, .24); border-radius: 100px;
  padding: 14px 26px; height: auto;
  font-size: 14px; font-weight: 700; color: var(--navy-deep);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.section-dark .entry-card .btn:hover {
  background: var(--navy-deep); color: #fff; border-color: var(--navy-deep);
  transform: translateY(-1px); box-shadow: 0 10px 22px rgba(9, 37, 31, .18); text-decoration: none;
}
/* 学生入口 = 金色主按钮（与首屏一致），外部入口 = 描边次按钮 */
.section-dark .entry-card .btn-primary {
  background: var(--gold); color: var(--navy-deep); border-color: var(--gold);
}
.section-dark .entry-card .btn-primary:hover {
  background: #f3d9a8; color: var(--navy-deep); border-color: #f3d9a8;
}
.section-dark .entry-card.ext .btn {
  background: transparent; color: var(--navy-deep); border-color: rgba(13, 48, 40, .35);
}
.section-dark .entry-card.ext .btn:hover {
  background: var(--navy-deep); color: #fff; border-color: var(--navy-deep);
}

/* ---- 报名顺序：编号卡 ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(22px, 3vh, 34px) clamp(20px, 1.6vw, 26px);
  justify-content: center;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); border-color: var(--navy); box-shadow: 0 16px 36px rgba(9, 37, 31, .10); }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-tint); color: var(--navy);
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  margin-bottom: clamp(16px, 2.4vh, 26px);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.step-card:hover .step-n { background: var(--navy); color: #fff; transform: scale(1.08); }
.step-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; line-height: 1.35; }
.step-card p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.steps-grid.is-in .step-card { animation: stepIn .55s var(--ease-out) backwards; }
.steps-grid.is-in .step-card:nth-child(2) { animation-delay: .08s; }
.steps-grid.is-in .step-card:nth-child(3) { animation-delay: .16s; }
.steps-grid.is-in .step-card:nth-child(4) { animation-delay: .24s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- 日程环 ---- */
.sched-figure { position: relative; width: min(100%, 800px); margin-inline: auto; aspect-ratio: 800 / 460; }
.sched-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.sched-track { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 8; }
.sched-halo { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 8; opacity: .7; }
.sched-runner { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 56 824; animation: schedRun 9s linear infinite; }
@keyframes schedRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -880; } }
.sched-dot { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.sched-disc { fill: var(--surface-soft); opacity: .55; }
.sched-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.sched-center b { display: block; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.sched-center span { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-2); }
.sched-label { position: absolute; display: flex; flex-direction: column; gap: 3px; text-align: center; }
.sched-label.is-top { left: 50%; top: 19.6%; transform: translate(-50%, calc(-100% - 14px)); }
.sched-label.is-bottom { left: 50%; top: 80.4%; transform: translate(-50%, 14px); }
.sched-label.is-right { left: 67.5%; top: 50%; transform: translate(22px, -50%); text-align: left; }
.sched-label.is-left { left: 32.5%; top: 50%; transform: translate(calc(-100% - 22px), -50%); text-align: right; }
.sched-label b { font-size: clamp(20px, 2vw, 27px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--navy); }
.sched-label span { font-size: 13px; color: var(--ink-2); }
/* 中心文案：默认「每年两轮」，悬停某个节点就换成那个节点的时间 */
.sched-mid { display: none; }
.sched-mid.is-default { display: block; }
.sched-mid span { display: block; margin-top: 6px; font-size: 14px; letter-spacing: 0; color: var(--ink-2); }
.sched-label { cursor: pointer; }
.sched-label b { transition: color .18s var(--ease-out); }
.sched-figure:has(.sched-label:hover) .sched-mid.is-default { display: none; }
.sched-figure:has(.is-top:hover) .sched-mid.n1,
.sched-figure:has(.is-top:focus) .sched-mid.n1 { display: block; }
.sched-figure:has(.is-right:hover) .sched-mid.n2,
.sched-figure:has(.is-right:focus) .sched-mid.n2 { display: block; }
.sched-figure:has(.is-bottom:hover) .sched-mid.n3,
.sched-figure:has(.is-bottom:focus) .sched-mid.n3 { display: block; }
.sched-figure:has(.is-left:hover) .sched-mid.n4,
.sched-figure:has(.is-left:focus) .sched-mid.n4 { display: block; }
/* 悬停/聚焦：选中节点亮，其余淡出；中心接管信息 */
.sched-figure:has(.sched-label:hover) .sched-label:not(:hover),
.sched-figure:has(.sched-label:focus) .sched-label:not(:focus) { opacity: .35; }
.sched-label { transition: opacity .18s var(--ease-out); }
.sched-label:hover b, .sched-label:focus b { color: var(--gold-ink); }
.sched-label:focus { outline: none; }
.sched-label:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 8px; border-radius: 8px; }
.sched-figure:has(.sched-label:focus) .sched-mid.is-default { display: none; }
.sched-figure:has(.is-top:hover) .sched-dot.d1,
.sched-figure:has(.is-top:focus) .sched-dot.d1 { fill: var(--gold); stroke: var(--gold-ink); r: 10; }
.sched-figure:has(.is-right:hover) .sched-dot.d2,
.sched-figure:has(.is-right:focus) .sched-dot.d2 { fill: var(--gold); stroke: var(--gold-ink); r: 10; }
.sched-figure:has(.is-bottom:hover) .sched-dot.d3,
.sched-figure:has(.is-bottom:focus) .sched-dot.d3 { fill: var(--gold); stroke: var(--gold-ink); r: 10; }
.sched-figure:has(.is-left:hover) .sched-dot.d4,
.sched-figure:has(.is-left:focus) .sched-dot.d4 { fill: var(--gold); stroke: var(--gold-ink); r: 10; }
.sched-figure:hover .sched-runner { animation-play-state: paused; }

/* ---- 章程四格：散文行 ---- */
.cp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cp-rows li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--ink); }
.cp-rows li:first-child { border-top: 0; padding-top: 0; }
.cp-rows li:last-child { padding-bottom: 0; }

/* ---- 报名入口：CTA 与正文分离 ---- */
.section-dark .entry-card .act { padding-top: clamp(16px, 2.2vh, 24px); border-top: 1px solid rgba(13, 48, 40, .16); }
.section-dark .entry-card.ext .act { border-top-color: rgba(13, 48, 40, .2); }
@media (min-width: 941px) {
  .home-view .entry-card { min-height: clamp(300px, 42vh, 386px); }
  .home-view .charter-panel { min-height: clamp(200px, 26vh, 250px); }
}

/* ---- 章程四格 ---- */
.charter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.charter-panel {
  background: var(--surface-soft); border-radius: 14px;
  padding: clamp(20px, 2.8vh, 30px) clamp(20px, 1.8vw, 30px);
  display: flex; flex-direction: column; gap: clamp(12px, 1.8vh, 18px);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.charter-panel:hover { background: var(--surface-tint); transform: translateY(-2px); }
.cp-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cp-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gold-ink); }
.cp-note { font-size: 12.5px; color: var(--ink-3); }
.cp-funds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cp-fund b { display: flex; align-items: baseline; gap: 2px; font-size: clamp(24px, 2vw, 30px); font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.cp-fund b i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cp-fund span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 5px; line-height: 1.45; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cp-list li { position: relative; padding-left: 15px; font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.cp-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-ink); }
.cp-foot { font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-top: auto; }

/* 首页一屏一段：新屏的内部留白 */
@media (min-width: 941px) {
  .home-view .steps-grid { margin-top: clamp(4px, 1vh, 12px); }
  .home-view .step-card { min-height: clamp(220px, 30vh, 300px); }
  .home-view .charter-panel { min-height: clamp(180px, 25vh, 240px); }
}

@media (max-width: 940px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .charter-grid { grid-template-columns: 1fr; }
  .sched-figure { width: 100%; }
  .sched-label b { font-size: 18px; }
  .sched-label span { font-size: 11.5px; }
  .sched-label.is-right { transform: translate(10px, -50%); }
  .sched-label.is-left { transform: translate(calc(-100% - 10px), -50%); }
  .cp-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * 第 8 轮：三份评审后的收口
 * ========================================================================== */

/* ---- 顶栏：下滑收起、上滑出现，让每屏拿到完整 692px ---- */
.topbar { transition: transform .3s var(--ease-out), box-shadow .22s; }
.topbar.is-hidden { transform: translateY(-100%); }

/* ---- ② 报名流程：四卡同基线，徽章成为视觉锚点 ---- */
.step-card { justify-content: flex-start; }
.step-card p { min-height: 2.8em; }
.step-n {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  font-size: 16px; font-weight: 800;
}
.step-card:hover { transform: translateY(-2px); box-shadow: none; }
.step-card:hover .step-n { background: var(--gold); color: var(--navy-deep); transform: none; }

/* ---- ③ 日程：环直径 280 → 400 ---- */
.sched-figure { width: min(100%, 720px); aspect-ratio: 800 / 520; }
.sched-label.is-top { top: 15.4%; }
.sched-label.is-bottom { top: 84.6%; }
.sched-label.is-right { left: 72.5%; }
.sched-label.is-left { left: 27.5%; }
.sched-runner { stroke-width: 3; stroke-dasharray: 86 1045; animation-duration: 12s; }
.sched-halo { stroke-dasharray: none; opacity: .5; }
.sched-center b { font-size: clamp(30px, 2.9vw, 40px); }
.sched-label b { font-size: clamp(20px, 1.9vw, 26px); }
@keyframes schedRun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1131; } }

/* ---- ④ 章程：资助格补说明，次要文字提到 AA ---- */
.cp-fund em { display: block; margin-top: 5px; font-style: normal; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.cp-note, .cp-foot { color: var(--ink-2); }

/* ---- ⑤ 入口卡：回到品牌色对（近米白 / 正金） ---- */
.section-dark .entry-card { background: #f7f8f5; }
.section-dark .entry-card.ext { background: var(--gold); }
.section-dark .entry-card:hover { background: #eef1ec; }
.section-dark .entry-card.ext:hover { background: #f3d9a8; }
.section-dark .entry-card .btn-primary { border-color: #0b2a22; box-shadow: 0 1px 2px rgba(9, 37, 31, .12); }
.section-dark .entry-card .btn { min-width: 148px; }

/* ---- ⑦ 论坛：摘要行宽（先不动，等量过一屏高度再开） ---- */
/* .post-main { max-width: 820px; } */

/* ==========================================================================
 * 第 9 轮：报名入口换配色 / 创建团队页版式
 * ========================================================================== */

/* ---- 报名入口：深色底上的玻璃卡，主次靠金色描边而不是整块底色 ---- */
.section-dark .entry-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
}
.section-dark .entry-card:not(.ext) {
  background: linear-gradient(180deg, rgba(234, 195, 128, .12), rgba(234, 195, 128, .03));
  border-color: rgba(234, 195, 128, .45);
}
.section-dark .entry-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .32); }
.section-dark .entry-card:not(.ext):hover { background: rgba(234, 195, 128, .16); border-color: rgba(234, 195, 128, .7); }
.section-dark .entry-card h3 { color: #fff; }
.section-dark .entry-card p,
.section-dark .entry-card li { color: #bcd0c6; }
.section-dark .entry-card .entry-ico { background: rgba(255, 255, 255, .1); color: var(--gold); }
.section-dark .entry-card .act { border-top-color: rgba(255, 255, 255, .16); }
.section-dark .entry-card .btn-primary { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); box-shadow: none; }
.section-dark .entry-card .btn-primary:hover { background: #f3d9a8; border-color: #f3d9a8; color: var(--navy-deep); }
.section-dark .entry-card.ext .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.section-dark .entry-card.ext .btn:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }

/* ---- 创建团队：步骤条不折行、两列表单标签对齐 ---- */
.flow { flex-wrap: nowrap; }
.flow-step { white-space: nowrap; }
.flow-sep { width: 16px; margin: 0 7px; flex: 0 0 auto; }
.form-grid.two { align-items: start; }
.form-grid.two > .field > label { min-height: 2.9em; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 4px; }
@media (max-width: 620px) {
  .flow { flex-wrap: wrap; row-gap: 8px; }
  .flow-step { white-space: normal; }
  .form-grid.two > .field > label { min-height: 0; }
}

/* ==========================================================================
 * 第 10 轮：创建团队改两栏版式 / 报名入口回到纯色
 * ========================================================================== */

/* ---- 创建团队：表单 + 右侧提示栏，撑满宽屏 ---- */
.create-wrap { max-width: 1180px; margin-inline: auto; }
.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; }
.create-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 112px; }
.aside-block { background: var(--surface-soft); border-radius: 14px; padding: 20px 22px; }
.aside-block h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-ink); margin-bottom: 10px; }
.aside-block p, .aside-block li { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.aside-block b { font-weight: 700; color: var(--ink); }
.aside-block ol { margin: 0; padding-left: 17px; }
.aside-block li { margin-bottom: 7px; }
.aside-block li:last-child { margin-bottom: 0; }
.create-aside .back-link { font-size: 13px; }
@media (max-width: 940px) {
  .create-grid { grid-template-columns: 1fr; }
  .create-aside { position: static; }
  .create-wrap { max-width: none; }
}

/* ---- 报名入口：两张纯色卡，文字一律深色 ---- */
.section-dark .entry-card {
  background: #f7f8f5;
  border: 1px solid transparent;
  border-radius: 18px;
}
.section-dark .entry-card:not(.ext) {
  background: var(--gold);
  border-color: var(--gold);
}
.section-dark .entry-card:hover { background: #eef1ec; }
.section-dark .entry-card:not(.ext):hover { background: #f3d9a8; border-color: #f3d9a8; }
.section-dark .entry-card h3 { color: var(--navy-deep); }
.section-dark .entry-card p,
.section-dark .entry-card li { color: #3e594b; }
.section-dark .entry-card .entry-ico { background: rgba(255, 255, 255, .6); color: var(--gold-ink); }
.section-dark .entry-card .act { border-top-color: rgba(13, 48, 40, .18); }
.section-dark .entry-card .btn-primary { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); box-shadow: none; }
.section-dark .entry-card .btn-primary:hover { background: #17493e; border-color: #17493e; color: #fff; }
.section-dark .entry-card.ext .btn { background: transparent; color: var(--navy-deep); border-color: rgba(13, 48, 40, .38); }
.section-dark .entry-card.ext .btn:hover { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }

/* ==========================================================================
 * 第 11 轮：报名入口重做（⑤ 屏）
 * --------------------------------------------------------------------------
 * 前三版都栽在「两块并排、靠底色区分」上：
 *   ① 米白 + 纯金 → 两块色板互相抢眼；
 *   ② 深色玻璃卡    → 浅字压深底发灰；
 *   ③ 两块全金      → 一片金，主次彻底糊掉。
 *
 * 本轮换结构，不再并排两张等权卡，改成上下一厚一薄的「两条门」：
 *   学生 = 金色实心横带（整屏唯一色块，直接呼应首屏的金色实心主按钮）
 *   校外 = 深墨绿底 + 1px 细边框（与主带共用同一套网格，只换「材质」：实 vs 虚）
 * 主次由三件事叠加说明 —— 有底色 vs 无底色、实心按钮 vs 描边按钮、色块 vs 细线，
 * 而不是「两块不同颜色的大色块」。
 *
 * 特异性说明（这屏翻过车，必须写下来）：
 *   第 8-10 轮残留的 .section-dark .entry-card(.ext) 是 0,3,0 量级，
 *   本轮所有选择器一律以 .section-dark .entry-grid 打头、从 0,4,0 起，
 *   且 :not(.ext) 与 .ext 两个变体逐条显式覆盖，不再依赖书写顺序取胜。
 * ========================================================================== */

/* ---- 容器：两列网格 → 上下两条横带 ---- */
.section-dark .entry-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  grid-template-columns: none;
}

/* ---- 横带骨架：图标 | 标题 | 弹性留白 | 说明+要点 | 弹性留白 | 行动
 *      两个 .5fr 是为了让「说明」两侧的留白相等（标题段到说明段 ≈ 说明段到行动段），
 *      同时 320 / 292 定宽保证两条横带的标题、说明纵向对齐成一条线。 ---- */
.section-dark .entry-grid .entry-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 320px) minmax(0, .5fr) minmax(0, 292px) minmax(0, .5fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 30px;
  row-gap: 0;
  padding: 26px 34px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  transition: background .22s var(--ease-out), border-color .22s var(--ease-out);
}
.section-dark .entry-grid .entry-card::before { display: none; }

/* 落位：图标与标题跨两行居中，说明在上、要点在下，行动区贴右并拉满高度 */
.section-dark .entry-grid .entry-card .entry-ico { grid-area: 1 / 1 / 3 / 2; margin: 0; }
.section-dark .entry-grid .entry-card h3 { grid-area: 1 / 2 / 3 / 3; margin: 0; }
.section-dark .entry-grid .entry-card p { grid-area: 1 / 4 / 2 / 5; margin: 0 0 10px; }
.section-dark .entry-grid .entry-card ul { grid-area: 2 / 4 / 3 / 5; margin: 0; padding: 0; list-style: none; }
.section-dark .entry-grid .entry-card li { position: relative; padding-left: 16px; margin: 0 0 4px; }
.section-dark .entry-grid .entry-card li:last-child { margin-bottom: 0; }
.section-dark .entry-grid .entry-card li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 5px; height: 5px; border-radius: 50%;
}

/* 字号：标题与说明同套档位，两条横带的基线才对得上 */
.section-dark .entry-grid .entry-card h3 {
  font-size: clamp(26px, 1.9vw, 32px);
  font-weight: 700; line-height: 1.22; letter-spacing: -.02em;
}
.section-dark .entry-grid .entry-card p,
.section-dark .entry-grid .entry-card li { font-size: 15px; line-height: 1.75; }

/* 图标：深绿实心方块 / 金线细框，同位置同尺寸 */
.section-dark .entry-grid .entry-card .entry-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
}
.section-dark .entry-grid .entry-card .entry-ico .ico { width: 24px; height: 24px; stroke-width: 1.5; }

/* 行动区：右侧一条竖发丝线把「按钮」和「说明」分开，替掉上一版的横线 */
.section-dark .entry-grid .entry-card .act {
  grid-area: 1 / 6 / 3 / 7;
  align-self: stretch;
  display: flex; align-items: center; justify-content: flex-end;
  margin: 0; padding: 0 0 0 30px;
  border: 0;
  border-left: 1px solid rgba(9, 37, 31, .18);
}
.section-dark .entry-grid .entry-card .btn {
  min-width: 172px; justify-content: center;
  padding: 14px 26px; height: auto; border-radius: 100px;
  font-size: 14px; font-weight: 700; box-shadow: none;
}

/* ---- 主：学生入口——整屏唯一的金色块 ---- */
.section-dark .entry-grid .entry-card:not(.ext) {
  min-height: 210px;
  background: linear-gradient(135deg, #F7E1B8 0%, #EDC88B 55%, #E8C083 100%);
}
.section-dark .entry-grid .entry-card:not(.ext):hover {
  background: linear-gradient(135deg, #FAEAC9 0%, #F1D197 55%, #EDC98E 100%);
}
.section-dark .entry-grid .entry-card:not(.ext) h3 { color: #09251F; }
.section-dark .entry-grid .entry-card:not(.ext) p,
.section-dark .entry-grid .entry-card:not(.ext) li { color: #2F4C3D; }
.section-dark .entry-grid .entry-card:not(.ext) li::before { background: #7A5A22; }
.section-dark .entry-grid .entry-card:not(.ext) .entry-ico { background: #09251F; color: var(--gold); }
.section-dark .entry-grid .entry-card:not(.ext) .btn-primary {
  background: #09251F; color: #fff; border: 1px solid #09251F;
}
.section-dark .entry-grid .entry-card:not(.ext) .btn-primary:hover {
  background: #17493E; border-color: #17493E; color: #fff;
  transform: translateY(-1px); box-shadow: none;
}

/* ---- 次：校外入口——无底色，只有一条细边框 ---- */
.section-dark .entry-grid .entry-card.ext {
  min-height: 210px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .19);
}
.section-dark .entry-grid .entry-card.ext:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(234, 195, 128, .42);
}
.section-dark .entry-grid .entry-card.ext h3 { color: #fff; }
.section-dark .entry-grid .entry-card.ext p,
.section-dark .entry-grid .entry-card.ext li { color: #C3D7CC; }
.section-dark .entry-grid .entry-card.ext li::before { background: var(--gold); }
.section-dark .entry-grid .entry-card.ext .entry-ico {
  background: rgba(234, 195, 128, .10);
  border: 1px solid rgba(234, 195, 128, .34);
  color: var(--gold);
}
.section-dark .entry-grid .entry-card.ext .act { border-left-color: rgba(255, 255, 255, .15); }
.section-dark .entry-grid .entry-card.ext .btn {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .42);
}
.section-dark .entry-grid .entry-card.ext .btn:hover {
  background: var(--gold); border-color: var(--gold); color: #09251F;
  transform: translateY(-1px); box-shadow: none;
}

/* ---- 窄屏回退：横带竖起来，行动区移到最下面 ---- */
@media (max-width: 1180px) {
  .section-dark .entry-grid .entry-card {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    align-content: start;
    padding: 24px 26px;
  }
  .section-dark .entry-grid .entry-card .entry-ico { grid-area: 1 / 1 / 2 / 2; align-self: start; }
  .section-dark .entry-grid .entry-card h3 { grid-area: 1 / 2 / 2 / 3; }
  .section-dark .entry-grid .entry-card p { grid-area: 2 / 1 / 3 / 3; margin: 14px 0 8px; }
  .section-dark .entry-grid .entry-card ul { grid-area: 3 / 1 / 4 / 3; }
  .section-dark .entry-grid .entry-card .act {
    grid-area: 4 / 1 / 5 / 3;
    align-self: auto; justify-content: flex-start;
    margin-top: 18px; padding: 18px 0 0;
    border-left: 0; border-top: 1px solid rgba(9, 37, 31, .18);
  }
  .section-dark .entry-grid .entry-card.ext .act { border-top-color: rgba(255, 255, 255, .15); }
}

/* ==========================================================================
 * 第 12 轮：⑤ 屏报名入口 —— 英文文案适配（只动 en，中文观感零改动）
 * --------------------------------------------------------------------------
 * 症状（1706×780 实测，第 11 轮版）：
 *   zh-Hans / zh-Hant：section 692、两带各 210、网格 434 —— 正常。
 *   en              ：section 仍是 692，但校外带被内容撑到 228.8，两条带不再等高，
 *                     且这一屏只剩约 50px 竖向余量（英文句子再长一点就顶破 692）。
 * 根因：说明列定宽 292px 是按中文单行长度定的；英文同义句长约 1.5–1.7 倍，
 *      "After verifying your student ID, you can do two things:" 之类被折成两行，
 *      15px × 1.75 ≈ 26px 一行，多折一行就把 min-height: 210 顶破。
 * 做法：en 下把说明列上限 292 → 380（两个 .5fr 留白从 110 收到 66，左右仍严格对称），
 *      说明与每个要点各回一行，两条带同时回到 210，网格高度与中文完全一致（434）。
 * 边界：① 只挂 html[lang="en"]，简体 / 繁体一字未动；
 *      ② 只在 >=1181px 的横带布局里生效，<=1180px 的竖排回退保持原样；
 *      ③ 列宽用 minmax(0, 380px)（上限而非定宽），窄桌面自动收缩，不会横向溢出。
 * ========================================================================== */
@media (min-width: 1181px) {
  html[lang="en"] .section-dark .entry-grid .entry-card {
    grid-template-columns: 52px minmax(0, 320px) minmax(0, .5fr) minmax(0, 380px) minmax(0, .5fr) auto;
  }
}

/* ---- 英文首屏：文案更长，字号与行宽收一档，保证仍然一屏 ---- */
html[lang="en"] .hero h1 { font-size: clamp(44px, 4.6vw, 64px); }
html[lang="en"] .hero p.lead { max-width: 560px; }




/* ==========================================================================
 * 第 13 轮：交付前最后一轮修正
 *   ① 移动端主屏/顶栏排布  ② 申请页居中  ③ 报名审核 UI  ④ 新登录表单组件
 *   说明：本轮全部写在文件末尾，靠书写顺序覆盖前面 12 轮的同名规则。
 * ========================================================================== */

/* ---- 申请加入页：居中（原来 inline max-width 没配 margin，靠左贴边） ---- */
.apply-wrap { max-width: 760px; margin-inline: auto; }

/* ---- 状态徽章：待审核 ---- */
.badge-reviewing { background: #eef2ff; color: #3b4ea8; }

/* ---- 登录页：发送验证码 / 图形验证码 / 注册-登录子页 ---- */
.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-row .input { flex: 1; min-width: 0; }
.input-row .code-btn { flex: none; white-space: nowrap; height: auto; padding: 0 16px; }

.auth-subtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 20px; background: #f2f5f6; padding: 4px; border-radius: 10px; }
.auth-subtab {
  border: 0; background: transparent; padding: 9px 10px; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.auth-subtab.active { background: var(--navy); color: #fff; }

.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-q {
  flex: none; min-width: 110px; text-align: center; padding: 10px 12px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  background: var(--surface-soft); font-weight: 700; letter-spacing: .06em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.captcha-input { flex: 1; min-width: 96px; width: auto; }
#student-code-hint b { color: var(--gold-ink); font-size: 14px; letter-spacing: .08em; }

/* ---- 我的队伍：已提交报名的详情折叠 ---- */
.sub-detail { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sub-detail summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sub-detail summary:hover { color: var(--ink); }
.sub-detail-body { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.sub-detail-body p { margin-top: 6px; }

/* ---- 后台：报名审核列表 ---- */
.review-list { display: flex; flex-direction: column; }
.review-item { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-hd { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.review-who { min-width: 0; }
.review-who h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 4px; }
.review-body { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.review-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.7; }
.review-k { color: var(--ink-3); font-weight: 600; }
.review-v { color: var(--ink); }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.review-empty { padding: 26px 24px; color: var(--ink-3); font-size: 13.5px; }

.reject-box { display: inline-block; }
.reject-box > summary { list-style: none; }
.reject-box > summary::-webkit-details-marker { display: none; }
.reject-box[open] > summary { opacity: .55; }
.reject-box form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.reject-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.reject-box .textarea { min-height: 84px; }

/* ==========================================================================
 * 移动端主屏修正（≤940 / ≤620）
 *   症状：.hero 在第 2 轮被改成 display:grid，.hero-facts 是它的直接子元素，
 *         窄屏下自动排成两列 —— 文案列被压到 62% 宽（390 视口只剩 212px），
 *         按钮被迫换行、主屏高度翻倍，facts 掉到右侧一列。
 *   修法：≤940 让 .hero 回到普通块级流，.hero-facts 不再参与网格排版。
 * ========================================================================== */
@media (max-width: 940px) {
  .hero { display: block; padding: 40px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "mark"; gap: 24px; }
  .hero-copy { max-width: none; padding-block: 0; }
  .hero-mark { width: 100%; max-width: 420px; margin: 4px auto 0; justify-self: center; }
  .hero-facts {
    position: static; grid-area: auto; margin-top: 26px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
    padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
  }
}

@media (max-width: 620px) {
  .hero { padding: 28px 0 36px; }
  .hero-kicker { margin-bottom: 0; }
  .hero h1 { margin-top: 18px; }
  .hero p.lead { margin-top: 18px; }
  .hero-mark { max-width: 300px; }
  .hero-actions { gap: 12px; margin-top: 26px; }
  .hero-actions .btn { height: 48px; padding: 0 22px; min-width: 0; font-size: 13.5px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 22px; }
  .hero-fact { display: block; }
  .hero-fact b { font-size: 15px; }
  .hero-fact span { display: block; font-size: 11.5px; margin-top: 2px; }

  .auth-wrap { padding: 24px 0 48px; }
  .auth-body { padding: 20px 20px 24px; }
  .review-item { padding: 18px 16px; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .review-v { margin-bottom: 6px; }
}

/* ==========================================================================
 * 移动端顶栏修正
 *   症状：窄屏顶栏内容总宽超出视口，flex 压缩让汉堡按钮掉到 20px 宽
 *         （三条横线只剩 2px，看起来像一个空白胶囊），登录/身份区也被挤出。
 *   修法：≤900 把汉堡放到最右、隐藏占位 spacer；≤620 收紧品牌与按钮，
 *         演示身份/用户名只留图标。
 * ========================================================================== */
@media (max-width: 900px) {
  .topbar-inner { gap: 8px; }
  .topbar-inner > .spacer { display: none; }
  .topbar-right { margin-left: auto; order: 3; }
  .nav-toggle { order: 4; margin-left: 0; flex: none; }
  .nav { order: 5; }
}

@media (max-width: 620px) {
  .topbar-inner { padding: 0 12px; gap: 6px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-text b { font-size: 12px; letter-spacing: -.01em; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-toggle { width: 34px; height: 34px; padding: 0 7px; }
  .topbar-right { gap: 6px; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: 5px 6px; font-size: 10.5px; }
  .topbar-right .btn-primary,
  .topbar-right .btn-login { height: 36px; padding: 0 12px; font-size: 12px; }
  .user-area { gap: 6px; }
  .demo-switcher .demo-tx,
  .demo-switcher .caret { display: none; }
  .demo-switcher .demo-btn { padding: 6px; min-width: 34px; justify-content: center; }
  .user-chip { padding: 3px; gap: 3px; }
  .user-chip .uname,
  .user-chip .caret { display: none; }
  .user-chip .unread-dot { position: absolute; top: -2px; right: -2px; }
  .user-menu { position: relative; }
}

/* ---- 第 13 轮补充：后台驳回表单展开后占满整行 ---- */
.review-actions { align-items: flex-start; }
.reject-box[open] { flex-basis: 100%; width: 100%; }
.reject-box[open] form { max-width: 620px; }
.reject-box[open] .textarea { width: 100%; }

/* ---- 移动端主屏标题断行：让「不限方向，只问」/「你造出了什么」分两行 ---- */
@media (max-width: 620px) {
  html[lang="zh-Hans"] .hero h1,
  html[lang="zh-Hant"] .hero h1 { max-width: 8.6em; }
}

/* ---- 驳回表单的确认按钮保持自然宽度 ---- */
.reject-box .btn { align-self: flex-start; }

/* 长文本（用户输入）允许断行，避免撑破布局 */
.team-card h3, .team-card .intro, .post-title, .profile-bio, .msg, .review-v, .detail-hd h1, .page-hd h1 { overflow-wrap: anywhere; word-break: break-word; }

/* 章程资助金额合成单节点后字号收一档，保证三列不挤 */
.cp-fund b { font-size: clamp(18px, 1.55vw, 24px); letter-spacing: -.02em; }
.cp-funds { gap: 8px; }

@media (max-width: 620px) {
  html[lang="en"] .hero h1 { font-size: 32px; max-width: none; letter-spacing: -.03em; }
}

/* ==========================================================================
 * 第 13 轮补充：视觉审核修复
 * ========================================================================== */

/* 1) 个人主页 / 我的队伍：≤900 单列，允许长内容换行，彻底消除横向溢出 */
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hd { flex-wrap: wrap; }
  .profile-id { min-width: 0; }
  .profile-grid > * { min-width: 0; }
  .team-line { flex-wrap: wrap; }
  .team-line-main { min-width: 0; }
  .team-line-main span { white-space: normal; }
  .profile-bio { overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  .profile-hd .spacer { display: none; }
  .profile-grid { gap: 14px; }
  .card, .card-pad { min-width: 0; }
}

/* 2) 顶栏：英文品牌名过长，窄屏只留 logo；≤380 所有语言同理 */
@media (max-width: 620px) {
  html[lang="en"] .brand-text { display: none; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
}

/* 3) 主屏两个 CTA：窄屏保持同一行，按可用宽度等分收缩 */
@media (max-width: 620px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 12.5px; }
  html[lang="en"] .hero-actions .btn { font-size: 11.5px; padding: 0 10px; }
}

/* 4) 日程环左标签在 320 宽下会贴边，微调 */
@media (max-width: 360px) {
  .sched-label.is-left { transform: translate(calc(-100% - 5px), -50%); }
  .sched-label.is-right { transform: translate(5px, -50%); }
}

/* 5) 头像上传（编辑资料页） */
.avatar-edit { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.avatar-preview .avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-edit-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.avatar-file {
  font-size: 12.5px; color: var(--muted);
  max-width: 100%;
}
.avatar-file::file-selector-button {
  margin-right: 10px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.avatar-file::file-selector-button:hover { border-color: var(--teal); color: var(--teal-dark); }
