/* ==========================================================================
   泉州数字研究院 · 企业官网样式
   品牌变量取自 docs/02 视觉与交互设计规范：
   品牌蓝 #1557B0 / 深海蓝 #102C4C / 墨色 #1E293B / 次级文字 #526174
   冰蓝底 #F2F6FB / 纸白 #FFFFFF / 分隔线 #DCE4EE / 刺桐红 #D94F43
   ========================================================================== */

:root {
  --brand: #1557b0;
  --brand-hover: #114a99;
  --brand-dark: #102c4c;
  --brand-deep: #0b2038;
  --ink: #1e293b;
  --muted: #526174;
  --ice: #f2f6fb;
  --paper: #ffffff;
  --line: #dce4ee;
  --accent: #d94f43;

  --font-display: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui,
    -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 32px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 44, 76, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 44, 76, 0.08);

  /* 研究方向渐变色：四张卡共用这一组，别再逐卡另配 */
  --topic-fill-1: #1b63b8;
  --topic-fill-2: #0f3d7e;

  /* 统一缓动与时长：全站只用这两档，避免各处手写 ease 导致节奏不一致 */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-slow: 320ms;

  --section-y: 80px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.34;
  color: var(--brand-dark);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section--ice {
  background: var(--ice);
}

.section--alt {
  background: #f5f8fd;
}

.section--dark {
  background: var(--brand-deep);
  color: #dce6f2;
}

.section--tight {
  padding: 44px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section-head__text {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8ca0b8;
  margin-bottom: 8px;
}

/* 前置短线：替代裸排小字，让栏目名有“编辑感”而不是“标签感” */
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* 首页各板块标题前立一根细竖条：华大用红条起头，我们用自己的品牌蓝。
   只作用于首页，内页标题带是另一种样式，不要互相干扰。 */
body.home .section-head .section-title {
  position: relative;
  padding-left: 15px;
}

body.home .section-head .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.26em;
  width: 3px;
  height: 0.9em;
  border-radius: 2px;
  background: var(--brand);
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.section--dark .section-title,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .section-sub {
  color: #a9bdd6;
}

.lede {
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--brand-dark);
  background: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-onimage {
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark);
}

.btn-onimage:hover {
  background: #fff;
  color: var(--brand);
}

.btn-line {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}

.btn-line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.link-more::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0 2.5px, transparent 2.6px);
}

.link-more:hover {
  color: #b93e34;
}

/* 悬停时圆标轻微放大：动作幅度很小，只为让「可点」更明确 */
.link-more::before {
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.link-more:hover::before {
  transform: scale(1.14);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 218px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 顶层项：给下拉面板做定位锚，并留 6px 悬停热区缝隙 */
.site-nav > ul > li {
  position: relative;
}

.site-nav li.has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.site-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand);
  background: var(--ice);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* 指示条：从中间向两侧生长（当前页常亮，悬停时生长） */
.site-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.site-nav > ul > li > a:hover::after,
.site-nav > ul > li > a[aria-current="page"]::after {
  width: calc(100% - 32px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.session-chip {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.session-chip[data-visible="true"] {
  display: inline-flex;
}

.session-chip button {
  border: 0;
  background: none;
  color: var(--brand);
  padding: 4px;
  font-size: 14px;
}

/* 移动端导航面板里的差异化项（公开站已无账号相关项，以下类目暂未使用） */
.nav-mobile-only {
  display: none;
}

.nav-mobile-button {
  display: block;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  text-align: left;
  font-size: 15px;
  color: var(--ink);
}

.nav-mobile-button:hover {
  background: var(--ice);
  color: var(--brand);
}

/* ---------- Hero（对标华大：全屏主视觉，页头浮于图上） ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-color: var(--brand-deep);
  color: #fff;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  color: #fff;
  text-decoration: none;
  transition: opacity 1.1s ease;
  /* 非当前张不接点击：四张图 position:absolute 叠在同一处，DOM 里最后一张画在最上，
     不禁用就会出现「看着培训图、点进 CSIG 文章」的错位 */
  pointer-events: none;
}

.hero-slide:hover,
.hero-slide:focus-visible {
  color: #fff;
}

/* 真实 img 承载主视觉：可被抓取/索引，object-fit 保证不同比例的原图呈现一致 */
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* 降饱和：几张轮播图是不同活动的现场照，原色各异（横幅红、舞台蓝、灯光黄），
     摆在一起像三套设计。统一压到低饱和后色偏被抹平，差别只剩明暗。
     压暗交给 .hero::before 做，这里只负责去色偏，别把照片压成灰。 */
  filter: saturate(0.68) contrast(1.03);
  /* 缩放只作用在照片上，不动上面那枚"关联报道"胶囊 —— 文字不跟着糊 */
  transform: scale(1.02);
  transition: transform 1.1s ease;
}

/* 主体在画面正中、左侧要给标题让位的照片：桌面宽幅时把裁切窗口左移，
   人落到右半侧，标题背后就是干净的墙面。手机竖屏裁切极窄，左移会把人裁出画面，
   所以只在桌面生效，窄屏保持居中。
   注意：轮播由 home.js 用云端数据重建 DOM（静态 HTML 只是兜底），
   挂 class 会被重建冲掉，所以这里按图片地址选，两种来源都命中。 */
@media (min-width: 1024px) {
  .hero-slide img[src$="/hero/h2.webp"] {
    object-position: 18% center;
  }
}

/* 缓慢推近（Ken Burns）：每张图在整个展示周期里持续缓慢放大，切换时接上下一张。
   时长比自动轮播（JS 里 6000ms）多 0.6 秒，保证淡出时缩放仍在推进、不会卡在终点。 */
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.is-active img {
  animation: hero-zoom 6.6s linear forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.13); }
}

/* 右下角控制条：圆点 + 暂停/播放（WCAG 2.2.2：自动播放内容须可暂停） */
.hero-ctrl {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-dots {
  display: flex;
  gap: 10px;
}

.hero-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 24, 43, 0.5);
  color: #fff;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 1px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.hero-toggle:hover {
  background: rgba(8, 24, 43, 0.75);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-toggle[hidden] {
  display: none;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.hero-dot.is-active {
  background: #fff;
  width: 26px;
  border-radius: 6px;
}

/* 关联文章的可点击幻灯片：左下角一枚"关联报道"胶囊。
   刻意做成单行小字 —— 首屏 h1 才是主角，底下再压一个大标题会互相打架。
   半透明深底 + 模糊，保证压在任何亮度/花色的照片上都读得清。 */
.hero-slide__cap {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  bottom: 84px;
  /* z-index 3：压过 .hero::before / ::after 两层暗化渐变（z=1），
     也压过 .hero-inner（z=2）—— 窄屏 hero-inner 高 620px 几乎铺满首屏，
     胶囊与它同级又在 DOM 前面时会被盖住，看得见却点不到。 */
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(780px, calc(100% - 2 * var(--gutter) - 130px));
  padding: 11px 18px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  /* 0.62 太透：轮播图若是浅色的会场/签约照，这条标题几乎看不见，
     运营在后台配了标题会以为没生效。加到 0.8，配 backdrop-filter 稳住对比度。
     不用 color-mix —— 微信 X5 内核不支持。 */
  background: rgba(8, 24, 43, 0.8);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  backdrop-filter: blur(10px) saturate(1.15);
  color: #fff;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.hero-slide__cap:hover {
  background: rgba(8, 24, 43, 0.78);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-slide__kicker {
  flex: none;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--brand);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: #fff;
}

.hero-slide__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slide__cta {
  flex: none;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0.85;
}

.hero-slide__cap:hover .hero-slide__cta {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img {
    animation: none;
  }
  .hero-slide {
    transition: opacity 0.6s ease;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 纯装饰遮罩，必须放行点击 —— 漏了这条会把整屏轮播图的点击全部吃掉，
     只剩 z-index:2 的「查看详情」胶囊能点（.hero::after 一直是对的） */
  pointer-events: none;
  /* 右半侧只是装饰，不需要看清：压到 0.34 是为了让现场横幅上的第三方字
     （如「CSIG 图像图形中国行」）退到背景里，不与主标题争夺注意力。
     早前收到 0.14，横幅红字几乎和标题一样亮。 */
  background: linear-gradient(
    95deg,
    rgba(8, 26, 46, 0.93) 0%,
    rgba(8, 26, 46, 0.8) 40%,
    rgba(8, 26, 46, 0.5) 74%,
    rgba(8, 26, 46, 0.34) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 170px;
  background: linear-gradient(transparent, rgba(11, 32, 56, 0.6));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 150px 0 130px;
  max-width: 760px;
}

/* 首屏身份行：横排一行，印章退成标签，不再占一块方块 */
.hero-id {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 18px;
}

.hero-seal {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 79, 67, 0.32);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fc4f0;
}

/* 中文全称必须比英文更醒目：这里的眉标是首屏唯一一次「说清自己是谁」的机会 */
.hero-eyebrow b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: none;
}

.hero-eyebrow__en {
  letter-spacing: 0.18em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.01em;
}

.hero-tagline {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.9;
  color: #d3e2f3;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.hero-cue::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: cue-bob 1.8s ease-in-out infinite;
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(6px) rotate(45deg);
    opacity: 0.5;
  }
}

/* ---------- Page hero (二级页) ---------- */

.page-hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 72px 0 62px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.page-hero .eyebrow {
  color: #e2a79f;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 40px;
  color: #fff;
}

.page-hero p {
  margin-top: 16px;
  max-width: 680px;
  color: #c3d4e8;
  font-size: 16px;
}

.breadcrumb {
  font-size: 13px;
  color: #93a9c4;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #c3d4e8;
}

.breadcrumb span {
  margin: 0 6px;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 左右不等宽的图文布局（联系页表单 + 侧栏）。
   放在组件区而不是写成行内样式，窄屏下才能被 .grid-2 的媒体查询规则覆盖。 */
.grid--asym {
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.grid--top {
  align-items: start;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease;
}

.card--hover:hover {
  transform: translateY(-2px);
  border-color: #b9c9dd;
  box-shadow: none;
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

.card__meta {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid #f0d5d2;
  background: #fdf4f3;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.card__list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.card__list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.55;
}

/* ---------- Fact strip ---------- */

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fact-strip > div {
  background: var(--paper);
  padding: 26px 24px;
}

.fact-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.fact-strip span {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 30px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brand);
}

.timeline time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.timeline h3 {
  font-size: 17px;
  margin: 4px 0 6px;
}

.timeline p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 14px;
}

.steps h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.steps p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Prose (关于我们长文) ---------- */

.prose {
  max-width: 820px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 46px 0 18px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 18px;
  margin: 30px 0 12px;
}

.prose p {
  font-size: 16.5px;
  line-height: 1.9;
  color: #33445c;
  margin-bottom: 1.1em;
}

.prose ul {
  margin: 0 0 1.2em;
}

.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #33445c;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  padding: 4px 20px;
}

.faq details[open] {
  border-color: #c7d5e6;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--brand-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 18px;
  line-height: 1.4;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq .faq-body {
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
}

/* ---------- Key facts block (GEO) ---------- */

.keyfacts {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.keyfacts h2,
.keyfacts h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  margin-bottom: 16px;
}

.keyfacts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 20px;
  font-size: 15px;
}

.keyfacts dt {
  color: var(--muted);
}

.keyfacts dd {
  margin: 0;
  color: var(--ink);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
}

.cta-band p {
  margin-top: 8px;
  color: #d5e3f5;
  font-size: 15px;
}

.cta-band .btn {
  background: #fff;
  color: var(--brand);
}

.cta-band .btn:hover {
  background: #eef4fc;
  color: var(--brand);
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-dark);
  margin-bottom: 8px;
}

.field .req {
  color: var(--accent);
  margin-left: 2px;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 87, 176, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.checkbox input {
  margin-top: 5px;
  flex-shrink: 0;
}

.file-drop {
  border: 1px dashed #c2d2e6;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  background: var(--ice);
  font-size: 14px;
  color: var(--muted);
}

.file-drop input[type="file"] {
  display: block;
  margin: 10px auto 0;
  max-width: 100%;
  font-size: 13px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  border: 1px solid transparent;
  display: none;
}

.form-status[data-state] {
  display: block;
}

/* hidden 属性必须真的隐藏：.form-status[data-state] 的 display 会盖掉 UA 的 [hidden] */
.form-status[hidden] {
  display: none !important;
}

.form-status[data-state="ok"] {
  background: #eef7f0;
  border-color: #cbe4d2;
  color: #1f6a3c;
}

.form-status[data-state="error"] {
  background: #fdf4f3;
  border-color: #f0d5d2;
  color: #a83a30;
}

.form-status[data-state="info"] {
  background: var(--ice);
  border-color: var(--line);
  color: var(--muted);
}

/* ---------- Auth / member ---------- */

.auth-shell {
  max-width: 460px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--ice);
  border-radius: var(--radius);
  margin-bottom: 26px;
}

.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

.auth-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.auth-panel[hidden] {
  display: none;
}

.otp-row {
  display: flex;
  gap: 10px;
}

.otp-row input {
  flex: 1;
}

.otp-row button {
  white-space: nowrap;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--brand);
  font-size: 14px;
}

.otp-row button[disabled] {
  color: var(--muted);
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: #8a9bb0;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.wechat-btn {
  width: 100%;
  padding: 13px;
  border: 1px solid #cfe0d3;
  border-radius: var(--radius);
  background: #f4faf6;
  color: #1f6a3c;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wechat-btn:hover {
  background: #eaf6ee;
}

.member-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.record {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--paper);
}

.record__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.record h3 {
  font-size: 17px;
}

.record time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.record dl {
  margin: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 6px 16px;
  font-size: 14.5px;
}

.record dt {
  color: var(--muted);
}

.record dd {
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ice);
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #c7d5e6;
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 15px;
  background: var(--ice);
}

.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef3f9 25%, #e2eaf4 50%, #eef3f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  margin-bottom: 12px;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Notice banner ---------- */

.notice-bar {
  background: #fff8f1;
  border-bottom: 1px solid #f3e0cc;
  font-size: 13.5px;
  color: #8a5a25;
}

.notice-bar .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-dark);
  color: #b9cadd;
  padding: 46px 0 0;
  font-size: 14.5px;
}

/* 三列：品牌（右挂二维码）/ 网站导航（两列排）/ 联系我们。
   二维码与品牌并排，避免"logo → 简介 → 二维码"竖着堆成三截把页脚顶高；
   联系方式由原首页「联系我们」整段并入，全站共用这一块深色收尾。 */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.7fr) minmax(0, 1.04fr);
  gap: 44px;
  padding-bottom: 32px;
}

.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 24px;
  row-gap: 14px;
}

.footer-brand .footer-logo {
  grid-column: 1;
  width: 200px;
  height: auto;
}

.footer-logo-square {
  display: none;
}

.footer-brand p {
  grid-column: 1;
  margin: 0;
  line-height: 1.8;
  max-width: 330px;
  color: #9fb4cc;
}

/* 二维码竖着排（图在上、字在下），横向只占 92px，
   给左边简介留下足够行宽，否则 60 多字的简介会被挤成六行 */
.footer-brand .footer-qr {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  margin-top: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-brand .footer-qr img {
  width: 80px;
  height: 80px;
}

.footer-brand .footer-qr span {
  font-size: 11.5px;
  line-height: 1.45;
}

.footer-col h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 9px;
  break-inside: avoid;
}

/* 导航 7 条竖排要 200px，两列排直接砍一半 */
.footer-col--nav ul {
  columns: 2;
  column-gap: 20px;
}

.footer-col a {
  color: #b9cadd;
}

.footer-col a:hover {
  color: #fff;
}

/* 联系方式：标签列 + 内容列对齐 */
.footer-col address,
.contact-list {
  font-style: normal;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
}

.contact-k {
  color: #7e93ac;
  font-size: 13px;
  line-height: 1.75;
  white-space: nowrap;
}

.contact-v {
  color: #cfdcea;
  font-size: 13.5px;
  line-height: 1.75;
  word-break: break-word;
}

.contact-v a {
  color: #cfdcea;
}

/* 页脚里的合作入口，替代首页原来整块「联系我们」的按钮组 */
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13.5px;
  color: #fff;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-template-columns: 1fr;
  }

  .footer-brand .footer-qr {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .footer-col--nav ul {
    columns: 2;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #8fa5bf;
}

/* 版权行的「· 隐私政策」：分隔符交给 CSS，手机上整块换行。
   390 宽下这一整行超出可用宽度 40 多像素，会把「隐私政策」断成
   「隐私」+「政策」两截，还贴到屏幕右边缘。 */
.footer-bottom a {
  white-space: nowrap;
}

.footer-legal::before {
  content: " · ";
}

@media (max-width: 620px) {
  .footer-legal {
    display: block;
    margin-top: 3px;
  }

  .footer-legal::before {
    content: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root {
    --section-y: 58px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col--nav ul {
    columns: 3;
  }

  .hero h1 {
    font-size: 38px;
  }
}

/* 手机端页脚回到单列。
   ≤680 那段本来就把 .footer-grid 设成单列，但后面 ≤1024 那段又设成 1fr 1fr，
   选择器一模一样、只是写在后面，于是手机上始终是两列。
   这里补一条更窄的覆盖，不动原有区块。 */
@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
    --section-y: 36px;
  }

  /* 窄屏：胶囊抬到圆点上方（两者本来会在右下角撞到一起），
     "查看详情"省掉（整条都是链接） */
  .hero-slide__cap {
    bottom: 92px;
    max-width: calc(100% - 2 * var(--gutter) - 20px);
    gap: 8px;
    padding: 7px 11px 7px 8px;
  }

  .hero-slide__title {
    font-size: 12.5px;
  }

  .hero-slide__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* 桌面靠 .site-nav 的 margin-left:auto 把动作区推右；
     窄屏导航变浮层后没人推了，这里自己顶到右边 */
  .header-actions {
    margin-left: auto;
  }

  /* 窄屏照片被整幅压暗太狠（横向渐变在 390px 里几乎全落在深色端），
     改成自上而下渐变：字依然压得住，照片也还看得见 */
  .hero::before {
    background: linear-gradient(180deg, rgba(11, 32, 56, 0.62) 0%, rgba(11, 32, 56, 0.5) 45%, rgba(11, 32, 56, 0.74) 100%);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 20px;
    display: none;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: var(--radius);
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    background: var(--ice);
  }

  .brand img {
    width: 158px;
  }

  /* 移动端页头只保留品牌、登录与菜单按钮；次要操作收进导航面板，
     避免窄屏下按钮互相遮挡（此前「合作洽谈」会压住汉堡按钮）。 */
  .header-inner {
    gap: 12px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .header-actions .session-chip {
    display: none;
  }

  html[data-auth-state="signed-in"] .nav-mobile-only {
    display: block;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-dots {
    right: 16px;
    bottom: 70px;
    gap: 8px;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(11, 32, 56, 0.85) 0%,
      rgba(11, 32, 56, 0.72) 45%,
      rgba(11, 32, 56, 0.94) 100%
    );
  }

  /* 底部要给「关联报道」胶囊让出一条带子：胶囊是绝对定位在 .hero-slide 上的
     （bottom: 92px，自身最高约 50px），而两个按钮在 .hero-inner 的流内。
     内容一高（手机开了「字体放大」，标题从 2 行变 4 行），按钮就压到胶囊上，
     半透明按钮后面透出标题文字 —— 实测 iOS 在文字 1.3 倍时重叠 32px。
     96px 是照「内容不撞边」算的，没算胶囊；这里按 92+50+余量 留足。 */
  .hero-inner {
    padding: 120px 0 160px;
  }

  /* 首屏标语第一行有 12 个字（数字泉州的校地共建平台，）。固定 31px 时，
     390px 窄屏只剩 350px 可用，会把「平台」拆成「平」和「台，」两截。
     改成随视口收缩：一行刚好容得下整句，不出现半截词。 */
  .hero h1 {
    font-size: clamp(23px, 7vw, 31px);
    line-height: 1.42;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  /* 身份行保持一行：窄屏只留中文全称，英文副标隐藏，绝不换行堆两排 */
  .hero-id {
    gap: 9px;
    margin-bottom: 16px;
  }

  .hero-seal {
    height: 22px;
    padding: 0 9px;
    font-size: 12px;
    border-radius: 4px;
  }

  .hero-eyebrow {
    gap: 0;
    font-size: 11px;
  }

  .hero-eyebrow b {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .hero-eyebrow__en {
    display: none;
  }

  .page-hero {
    padding: 46px 0 42px;
  }

  .page-hero h1 {
    font-size: 29px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .fact-strip,
  .steps,
  .field-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .form-card {
    padding: 26px 22px;
  }

  .cta-band {
    padding: 34px 26px;
  }

  .cta-band h2 {
    font-size: 22px;
  }

  .keyfacts dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .keyfacts dt {
    font-size: 13px;
    margin-top: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 34px;
  }

  .record dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .record dt {
    font-size: 13px;
    margin-top: 8px;
  }
}

/* ==========================================================================
   对标华侨大学官网 · 新增部件（HQ-01 / HQ-03 / HQ-05 / HQ-10 / HQ-11）
   原则：只借结构与节奏，保留科技蓝 + 刺桐红 + 宋体标题；所有条目均为真实
   HTML 文本，不依赖图片，满足 GEO 优先。
   ========================================================================== */

/* ---------- HQ-01 双层页头：顶部信息条 ---------- */
.topbar {
  background: var(--brand-dark);
  color: #cfe0f2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar-brand {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: #9fb4cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.topbar-links a {
  color: #cfe0f2;
}

.topbar-links a:hover {
  color: #fff;
}

.topbar-links .topbar-tag {
  color: #8fa5bf;
}

/* 顶部信息条处于普通文档流：向下滚动时自然离开视口，下方吸顶页头自动顶到
   顶部，形成「双层 → 单层吸顶」的效果，无需额外脚本。 */
@media (max-width: 860px) {
  .topbar {
    display: none;
  }
}

/* ---------- HQ-03 板块头「查看全部」入口（统一范式） ---------- */
.section-head__aside {
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* ---------- HQ-05 红日期 + 加粗标题 文字列表 ---------- */
.datelist {
  display: grid;
  border-top: 1px solid var(--line);
}

.datelist li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.datelist__date {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.3;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  padding: 7px 0 8px;
  text-align: center;
}

.datelist__date span {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}

.datelist__body {
  min-width: 0;
}

.datelist__link {
  display: block;
  text-decoration: none;
}

.datelist__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.5;
}

.datelist__link:hover .datelist__title {
  color: var(--brand);
}

.datelist__meta {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 560px) {
  .datelist li {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 16px 2px;
  }

  .datelist__date {
    font-size: 12px;
    padding: 6px 0 7px;
  }

  .datelist__date span {
    font-size: 15px;
  }

  .datelist__title {
    font-size: 15.5px;
  }
}

/* ---------- HQ-10 右侧悬浮工具条 ---------- */
.float-tools {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-tools[hidden] {
  display: none;
}

.float-tool-wrap {
  position: relative;
}

.float-tool {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.float-tool:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.float-tool--top {
  font-size: 20px;
}

.float-qr {
  position: absolute;
  right: 60px;
  bottom: 0;
  width: 184px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.float-qr[hidden] {
  display: none;
}

/* 窄屏不能照搬桌面那套四连排。
   正文在 390px 宽下要占满 92% 宽度，四个 48px 按钮竖排是 228px 高的一列，
   必然压住每行末尾两三个字（实测文章页「立足」「可信」「数据要」都被盖掉）。
   但整个隐藏也不对：长文滚到中段想回顶，只能一路手动往上滑。
   折中——只留回顶一个，缩成 40px 圆钮贴右下角；其余三个（码/询/电）在
   页脚有完整电话邮箱、顶部也有「合作洽谈」，手机上不缺入口。
   顺带：手机上点开二维码没法自己扫，那个按钮本来就没多大用。 */
@media (max-width: 620px) {
  .float-tools {
    right: 12px;
    bottom: 18px;
    gap: 0;
  }
  .float-tools > :not(.float-tool--top) {
    display: none;
  }
  .float-tools .float-tool--top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 17px;
    background: rgba(21, 87, 176, 0.92);
    /* 白边不是装饰：这个钮会浮在正文配图上，纯蓝底压在深色照片里几乎看不出边界。 */
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21, 87, 176, 0.3);
  }
}

/* ---------- HQ-11 页脚二维码位 ---------- */
.footer-qr {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-qr img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.footer-qr span {
  font-size: 13px;
  color: #9fb4cc;
  line-height: 1.6;
}

.footer-qr[hidden] {
  display: none;
}

/* ==========================================================================
   对标华侨大学官网 · 第二批：首页整体版式
   （全屏主视觉浮层页头 / 要闻聚焦 / 研究院观点 / 专题渐变卡 / 服务索引）
   原则不变：所有条目均为真实 HTML 文本，图片仅装饰，满足 GEO 优先。
   ========================================================================== */

/* ---------- 首页页头浮层（华大式：图上透明 → 滚动后实底） ---------- */
body.home .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  background: rgba(11, 32, 56, 0.34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 0;
}

body.home .site-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 120;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.25s ease, top 0.25s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
}

body.home .site-header.is-solid {
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(16, 44, 76, 0.08);
}

/* 手机端首页页头贴顶。这条得排在上面的 body.home .site-header{top:40px} 之后：
   同样优先级、谁在后面谁生效，原来写在文件靠前的媒体查询里，
   于是 40px 一直留着，可手机上 topbar 是隐藏的 —— 顶上凭空一道 40px 空白，
   要等滚出 is-solid 才归零。 */
@media (max-width: 860px) {
  body.home .site-header {
    top: 0;
  }
}

body.home .site-header:not(.is-solid) .brand img {
  /* 这张 logo 自带深蓝底色，反白会糊成一个白块；保持原色在深色首图上反而更清楚 */
  filter: none;
}

body.home .site-header:not(.is-solid) .site-nav a {
  color: #fff;
}

body.home .site-header:not(.is-solid) .site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body.home .site-header:not(.is-solid) .site-nav a[aria-current="page"] {
  color: #fff;
}

body.home
  .site-header:not(.is-solid)
  .site-nav
  a[aria-current="page"]::after {
  background: #fff;
}

body.home .site-header:not(.is-solid) .header-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

body.home .site-header:not(.is-solid) .header-actions .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

body.home .site-header:not(.is-solid) .session-chip {
  color: rgba(255, 255, 255, 0.9);
}

body.home .site-header:not(.is-solid) .session-chip a {
  color: #fff;
}

body.home .site-header:not(.is-solid) .session-chip button {
  color: #ffc9c2;
}

/* 首页页头浮在照片上：三横线转白，按钮底就必须透明 ——
   否则白图标配白底，视觉上就是一块莫名其妙的白色方块 */
body.home .site-header:not(.is-solid) .nav-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body.home .site-header:not(.is-solid) .nav-toggle span,
body.home .site-header:not(.is-solid) .nav-toggle span::before,
body.home .site-header:not(.is-solid) .nav-toggle span::after {
  background: #fff;
}

/* 移动端导航面板展开时页头立刻转实底，保证面板与图标可读。
   双写两套选择器：:has() 需要 iOS 15.4+ / Chromium 105+，
   老版本微信内核对它不认，site.js 会同步 html.nav-open 兜底。 */
body.home .site-header:has(.site-nav[data-open="true"]),
html.nav-open body.home .site-header {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
}

/* 反过来：页头变白之后，三横线要跟着转深，不然又是白对白 */
body.home .site-header:has(.site-nav[data-open="true"]) .nav-toggle,
html.nav-open body.home .site-header .nav-toggle {
  background: var(--paper);
  border-color: var(--line);
}

body.home .site-header:has(.site-nav[data-open="true"]) .nav-toggle span,
body.home .site-header:has(.site-nav[data-open="true"]) .nav-toggle span::before,
body.home .site-header:has(.site-nav[data-open="true"]) .nav-toggle span::after,
html.nav-open body.home .site-header .nav-toggle span,
html.nav-open body.home .site-header .nav-toggle span::before,
html.nav-open body.home .site-header .nav-toggle span::after {
  background: var(--brand-dark);
}

body.home .site-header:has(.site-nav[data-open="true"]) .brand img,
html.nav-open body.home .site-header .brand img {
  filter: none;
}

body.home .site-header:has(.site-nav[data-open="true"]) .site-nav a,
html.nav-open body.home .site-header .site-nav a {
  color: var(--ink);
}

/* 锚点跳转时避开吸顶页头 */
section[id] {
  scroll-margin-top: 92px;
}

/* ---------- 最新动态：马赛克版式（学到华大新闻区的骨架，不学它的内容） ----------
   左：主视觉轮播（3 张交叉淡入，标题压在图上）
   右上：2 张小卡并排　　右下：1 张宽卡横跨
   底：3 张卡一行
   图上压字是关键 —— 原来标题在图下面，一张卡要吃掉「图 + 60px 文字」两段高度，
   一屏只能放 4 条。改成压字后同样的高度能放 7 条，密度才上得来。 */

.newsboard {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 24px;
}

.newslead {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0c1b2e;
  min-height: 396px;
}

/* 三张叠在一起交叉淡入，不用位移 —— 位移会让相邻那张的图在边缘露出半张 */
.newslead__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  text-decoration: none;
  /* 同上：只让当前这张接点击，避免叠层抢走点击跳到别的文章 */
  pointer-events: none;
}

.newslead__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.newslead__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 缓慢推近（Ken Burns）：只给当前这张跑，7s 走完，切换时重新起跑 */
.newslead__slide.is-active img {
  animation: newsleadKen 7s linear forwards;
}

@keyframes newsleadKen {
  from { transform: scale(1.015); }
  to   { transform: scale(1.07); }
}

.newslead__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 84px 26px 24px;
  background: linear-gradient(transparent, rgba(6, 18, 34, 0.9) 66%);
  color: #fff;
}

.newslead__cap .newscard__meta {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.newslead__cap .newscard__tag {
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.74);
}

.newslead__cap .newscard__title {
  color: #fff;
  font-size: 22px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.newslead__slide:hover .newscard__title {
  color: #d9e8fa;
}

.newslead__dots {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
}

.newslead__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.newslead__dot:hover {
  background: rgba(255, 255, 255, 0.72);
}

/* 当前页拉成短横条：比单纯变色更容易一眼看出「第几张」 */
.newslead__dot.is-active {
  width: 20px;
  background: #fff;
}

/* 侧栏：2 小卡 + 1 宽卡（宽卡横跨两列） */
.newsboard__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-content: start;
}

.newsboard__side .newscard--wide {
  grid-column: 1 / -1;
}

.newscard--mini .newscard__fig,
.newscard--wide .newscard__fig {
  margin-bottom: 12px;
}

.newscard--mini .newscard__fig {
  aspect-ratio: 16 / 10;
}

.newscard--wide .newscard__fig {
  aspect-ratio: 21 / 7.4;
}

.newscard--mini .newscard__meta {
  margin-bottom: 5px;
  font-size: 12px;
}

.newscard--mini .newscard__title {
  font-size: 15px;
  -webkit-line-clamp: 2;
}

.newscard--wide .newscard__title {
  font-size: 16.5px;
}

/* 底部一行 3 卡 */
.newsboard__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* 卡片级错峰：整块揭示时三栏依次抬起，比整块一起淡入更有层次。
   同样只在脚本接管后（html[data-reveal-ready]）才隐藏，脚本失效内容照常可见。 */
.newsboard > * {
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

html[data-reveal-ready] #latest:not(.is-revealed) .newsboard > * {
  opacity: 0;
  transform: translateY(14px);
}

html[data-reveal-ready] #latest.is-revealed .newsboard > *:nth-child(2) {
  transition-delay: 90ms;
}

html[data-reveal-ready] #latest.is-revealed .newsboard > *:nth-child(3) {
  transition-delay: 180ms;
}

/* 悬停整体上浮 4px + 图上放大，和「研究方向」四卡用同一套手感 */
.newsboard .newscard {
  transition: transform 320ms var(--ease), color 160ms var(--ease);
}

.newsboard .newscard:hover {
  transform: translateY(-4px);
}

@media (max-width: 1080px) {
  .newsboard {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 20px;
  }
  .newsboard__side,
  .newsboard__row {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .newsboard {
    grid-template-columns: 1fr;
  }
  .newslead {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .newslead__cap {
    padding: 66px 20px 20px;
  }
  .newslead__cap .newscard__title {
    font-size: 19px;
  }
}

@media (max-width: 620px) {
  .newsboard__row {
    grid-template-columns: 1fr;
  }
  /* 窄屏改成「左图右文」：图与文字放进两行网格。
     之前用 flex 横排，日期和分类标签会被挤成竖排的单字 —— 三个子元素横排必然挤爆。 */
  .newsboard__row .newscard {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "fig meta"
      "fig title";
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
  }
  .newsboard__row .newscard__fig {
    grid-area: fig;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
  }
  .newsboard__row .newscard__meta {
    grid-area: meta;
    margin-bottom: 0;
  }
  .newsboard__row .newscard__title {
    grid-area: title;
    font-size: 15px;
  }
  .newslead {
    aspect-ratio: 4 / 3;
  }
}

/* 系统开了「减弱动态效果」：推近与上浮都停掉，轮播本身仍在（停播会被误判成坏图） */
@media (prefers-reduced-motion: reduce) {
  .newslead__slide.is-active img {
    animation: none;
    transform: scale(1.015);
  }
  .newsboard .newscard,
  .newsboard .newscard:hover {
    transform: none;
  }
}

/* ---------- 研究方向：专题渐变卡（华大「专题聚焦」范式） ---------- */
.topiccards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: topiccard;
}

.topiccard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  min-height: 240px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* 四个方向是平级条目，底色只有一个：同色系、同权重，靠序号与标题区分。
     早前是 蓝 / 近黑 / 红 / 浅 四种互不相干的底色，读者会以为红色那张更重要、
     浅色那张点不动 —— 底色不该承担不存在的优先级。 */
  background: linear-gradient(152deg, var(--topic-fill-1), var(--topic-fill-2));
  color: #fff;
  text-decoration: none;
  counter-increment: topiccard;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}

/* 不叠阴影：靠位移与提亮表达"可点"，与全站去阴影的调性一致。
   提亮用 filter 而不是换一组渐变 —— 渐变与渐变之间无法过渡，会瞬跳。 */
.topiccard:hover {
  transform: translateY(-4px);
  filter: brightness(1.07);
  color: #fff;
}

.topiccard::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.topiccard h3 {
  position: relative;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.topiccard p {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* 序号 01–04：让「平级四条」一眼读成同一个集合，也补上卡片上方的空白。
   用 CSS 计数器自动生成，新增/删除卡片不需要改 HTML。 */
.topiccard::before {
  content: counter(topiccard, decimal-leading-zero);
  position: absolute;
  left: 21px;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* 首页只剩四个研究方向：一行四张，比默认（240px，给专题页用）矮一截 */
.topiccards--home {
  gap: 18px;
}

.topiccards--home .topiccard {
  min-height: 194px;
  padding: 20px;
  gap: 7px;
}

.topiccards--home .topiccard h3 {
  font-size: 17.5px;
  line-height: 1.45;
}

.topiccards--home .topiccard p {
  font-size: 13px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 首页四张卡片上半部分原来是空的，只有序号和右上角一个圆弧，纯文字读起来太空。
   现在每张配一个方向图形 —— 圆弧会和图形叠在一起显乱，所以首页去掉圆弧，
   让图形占那个位置。其他页面沿用默认 .topiccard，圆弧保留。 */
.topiccards--home .topiccard::after {
  display: none;
}

/* 方向图形：56px 放 top:10，底边落在 66px。首页卡片文字区从 y≈78 起
   （194px 高 - 20 padding - 三行描述 63 - 标题 25 - 间距 7），留 12px 呼吸。
   改卡片高度、描述行数或字号时，这两个数要重算。 */
.topiccard__art {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 56px;
  height: 56px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ---------- 产品服务：编号索引列表（打破白卡片海） ---------- */
.svcindex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  border-top: 1px solid var(--line);
}

.svcindex li {
  min-width: 0;
}

.svcindex__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.svcindex__no {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 3px;
}

.svcindex__body {
  min-width: 0;
}

.svcindex__item h3 {
  font-size: 17.5px;
  color: var(--brand-dark);
  margin-bottom: 7px;
  transition: color 0.15s ease;
}

.svcindex__item:hover h3 {
  color: var(--brand);
}

.svcindex__item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 概况区：取舍列表（红顶线三分栏） ---------- */
.rulelist__head {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--brand-dark);
  margin: 60px 0 24px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.rulelist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.rulelist li {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.rulelist h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.rulelist p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 第二批响应式 ---------- */
@media (max-width: 1024px) {
  .newsgrid {
    grid-template-columns: 1fr;
  }

  .newscard--tall {
    min-height: 380px;
  }

  .topiccards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .svcindex {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rulelist {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .newsgrid__row {
    grid-template-columns: 1fr;
  }

  .newscard--tall {
    min-height: 320px;
  }

  .newscard__bar h3 {
    font-size: 17px;
  }

  .topiccards {
    grid-template-columns: 1fr;
  }

  /* 单列时四张卡不再需要 194px 撑场面：固定高度会让序号和标题之间空出一大块，
     高度交给内容，序号回到流内紧随标题 */
  .topiccards--home .topiccard {
    min-height: 0;
    justify-content: flex-start;
  }

  .topiccard::before {
    position: static;
    margin-bottom: 2px;
  }

  /* 单列卡片没了 194px 撑高，标题紧贴序号（距卡片顶约 71px）。图形缩到 48
     并上移，底边落在 56，与标题留 15px；横向在右侧，最长的标题也够不到。 */
  .topiccard__art {
    top: 8px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .hero-cue {
    display: none;
  }
}

/* ---------- 活动报名（/events/） ---------- */

.events-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}

.events-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.events-filter select {
  padding: 7px 10px;
  border: 1px solid #cdd6e3;
  border-radius: 7px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
  color: #1b2735;
  cursor: pointer;
}

.events-list {
  display: grid;
  gap: 18px;
  max-width: 920px;
}

.event-card {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 22px 24px;
}

.event-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
/* 标题在左、状态标签靠右：DOM 里 status 在前（屏幕阅读器先读状态），视觉用 order 调换 */
.event-card__head .event-card__title { order: 1; flex: 1; min-width: 0; }
.event-card__status { order: 2; }

@media (max-width: 640px) {
  /* 窄屏改成上下堆叠，避免标题换行后状态标签卡在行中间 */
  .event-card__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .event-card__head .event-card__title,
  .event-card__status { order: 0; }
}

.event-card__head .event-card__title {
  margin: 0;
  font-size: 19px;
  font-family: var(--font-display);
  color: var(--brand-deep);
}

.event-card__head .event-card__title a {
  color: inherit;
  text-decoration: none;
}

.event-card__status {
  flex-shrink: 0;
  font-size: 12.5px;
}

.event__meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.event__summary {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #33414f;
}

.event__content {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #44505f;
  white-space: pre-wrap;
}

.event__actions {
  margin: 16px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.event__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  background: var(--brand, #1557b0);
  color: #fff;
  border: 1px solid var(--brand, #1557b0);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.event__cta:hover {
  background: #114a96;
  border-color: #114a96;
}

.event__cta--ghost {
  background: #fff;
  color: var(--brand, #1557b0);
}

.event__cta--ghost:hover {
  background: #eef4ff;
  color: #114a96;
}

.event__cta--disabled {
  background: #f0f1f3;
  color: #8a94a3;
  border-color: #e3e8f0;
  cursor: not-allowed;
}

.event__cta--disabled:hover {
  background: #f0f1f3;
  color: #8a94a3;
  border-color: #e3e8f0;
}

/* ---------- 活动详情页（/events/<slug>/） ---------- */

.event-hero {
  position: relative;
  background: #0b2038;
  color: #fff;
  overflow: hidden;
}

.event-hero__cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  overflow: hidden;
}

.event-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 32, 56, 0) 0%, rgba(11, 32, 56, 0.55) 100%);
  pointer-events: none;
}

.event-hero__bar {
  position: relative;
  margin-top: -100px;
  padding-bottom: 32px;
  z-index: 1;
}

.event-hero__status {
  margin: 0 0 10px;
}

.event-hero__title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  max-width: 880px;
}

.event-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px 20px;
  max-width: 880px;
}

.event-hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-hero__meta dt {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.event-hero__meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

/* 详情正文区 */
.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px 40px;
  align-items: start;
}

/* DOM 里 <aside> 在前（移动端要让报名按钮先出现），桌面端用显式列号
   把它挪到右侧窄列，否则正文会被挤进 320px。 */
@media (min-width: 861px) {
  .event-detail__body {
    grid-column: 1;
    grid-row: 1;
  }
  .event-detail__side {
    grid-column: 2;
    grid-row: 1;
  }
}

.event-detail__body {
  min-width: 0;
}

.event-detail__h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-deep, #0b2038);
  margin: 28px 0 12px;
}

.event-detail__h2:first-child { margin-top: 0; }

/* 活动议程：左侧时间列固定宽，右侧环节名 + 讲者。
   用 ol 而不是 ul —— 议程天然有序，读屏软件会念出序号。 */
.agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.agenda__item {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 18px 18px;
}

.agenda__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand, #1557b0);
  box-shadow: 0 0 0 3px #fff;
}

.agenda__item:last-child { padding-bottom: 0; }

.agenda__time {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand, #1557b0);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.agenda__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.agenda__title {
  font-size: 15px;
  line-height: 1.6;
  color: var(--brand-deep, #0b2038);
}

.agenda__who {
  font-size: 13px;
  color: var(--muted);
}

/* 嘉宾卡：极简两列，名字在水印之上 */
.speakers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.speaker {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper, #fff);
}

.speaker__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-deep, #0b2038);
}

.speaker__role {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--brand, #1557b0);
}

.speaker__bio {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 620px) {
  .agenda__item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding-left: 14px;
  }
  .agenda__time { font-size: 13px; }
  .speakers { grid-template-columns: 1fr; }
}

.event-detail__lead {
  font-size: 16px;
  line-height: 1.85;
  color: #33405a;
  margin: 0 0 18px;
}

.event-detail__content {
  font-size: 15.5px;
  line-height: 1.95;
  color: #2b3a4d;
}

.event-detail__content p { margin: 0 0 14px; }
.event-detail__content h3,
.event-detail__content h4 {
  font-family: var(--font-display);
  color: var(--brand-deep, #0b2038);
  margin: 20px 0 10px;
}
.event-detail__content h3 { font-size: 18px; }
.event-detail__content h4 { font-size: 16px; }
.event-detail__content ul,
.event-detail__content ol { margin: 0 0 14px; padding-left: 24px; }
.event-detail__content li { margin-bottom: 6px; }
.event-detail__content img { max-width: 100%; height: auto; border-radius: 8px; }

/* 相关报道：活动 → 一篇新闻稿的入口（正文仍在 /articles/ 下维护） */
.event-report { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.event-report__link {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; text-decoration: none; transition: all var(--t-fast) var(--ease);
}
.event-report__link:hover { border-color: #b9c8dd; background: #f5f9ff; }
.event-report__title { font-size: 16px; font-weight: 600; color: var(--brand-deep); line-height: 1.55; }
.event-report__date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.event-report__arrow { margin-left: auto; color: var(--brand); font-weight: 600; }
.event-detail__content blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid #1557b0;
  background: #f3f6fb;
  color: #44505f;
  border-radius: 0 6px 6px 0;
}
.event-detail__content table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 14px;
}
.event-detail__content th,
.event-detail__content td {
  border: 1px solid #e3e8f0;
  padding: 8px 12px;
  text-align: left;
}
.event-detail__content th { background: #f6f8fc; font-weight: 600; }

/* 侧栏（CTA + 信息） */
.event-detail__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.event-detail__cta {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 22px 22px 18px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(11, 32, 56, 0.05);
}

.event-detail__hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8a94a3;
}

.event-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-detail__info {
  background: #f6f8fc;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 18px 20px;
}

.event-detail__info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep, #0b2038);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.event-detail__info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.event-detail__info dt {
  color: #8a94a3;
  font-weight: 500;
}

.event-detail__info dd {
  margin: 0;
  color: #2b3a4d;
}

/* CTA 按钮族（详情页） */
.evcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: var(--brand, #1557b0);
  color: #fff;
  border: 1px solid var(--brand, #1557b0);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.evcta:hover {
  background: #114a96;
  border-color: #114a96;
  color: #fff;
}

.evcta--ghost {
  background: #fff;
  color: var(--brand, #1557b0);
  border-color: #cdd6e3;
}

.evcta--ghost:hover {
  background: #eef4ff;
  color: #114a96;
  border-color: #114a96;
}

.evcta--disabled {
  background: #f0f1f3;
  color: #8a94a3;
  border-color: #e3e8f0;
  cursor: not-allowed;
  font-weight: 500;
}

.evcta--disabled:hover {
  background: #f0f1f3;
  color: #8a94a3;
  border-color: #e3e8f0;
}

.evcta-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: #1557b0;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.evcta-mini:hover {
  background: #eef4ff;
  border-color: #cdd6e3;
  color: #114a96;
}

/* 侧栏报名二维码：桌面扫码，手机长按识别 */
.event-qr {
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 18px 18px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(11, 32, 56, 0.05);
}

.event-qr__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.event-qr__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-deep, #0b2038);
  letter-spacing: 0.01em;
}

.event-qr__sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: #7a8a9d;
}

.event-qr__poster {
  margin-top: 2px;
  font-size: 12.5px;
  color: #1557b0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(21, 87, 176, 0.4);
  padding-bottom: 1px;
}

.event-qr__poster:hover {
  color: #114a96;
  border-bottom-color: #114a96;
}

.event-qr__img {
  display: block;
  width: 168px;
  height: 168px;
  margin: 14px auto 0;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 860px) {
  .event-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px 16px;
  }
  .event-qr__text {
    align-items: flex-start;
    gap: 4px;
  }
  .event-qr__img {
    order: 2;
    width: 104px;
    height: 104px;
    margin: 0;
    flex: none;
  }
}

@media (max-width: 860px) {
  .event-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .event-detail__side {
    position: static;
  }
  .event-hero__bar {
    margin-top: -60px;
    padding-bottom: 24px;
  }
  .event-hero__title {
    font-size: 24px;
  }
  .event-hero__meta {
    font-size: 14px;
    padding: 12px 16px;
  }
  .event-detail__content {
    font-size: 15px;
  }
}

.event-reg-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  background: var(--ice, #f3f6fb);
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  padding: 16px;
}

.event-reg-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 报名表切换成自定义字段时，内置的那几组靠 hidden 属性退场。
   .field 是 display:flex、.preset-extra 是 display:contents，都会盖掉浏览器
   对 [hidden] 的默认 display:none，所以这里必须显式补一条。 */
.event-reg-form [hidden],
.custom-fields[hidden] {
  display: none !important;
}

/* 默认表单的「参会信息」整组：display:contents 让里面的 .field 直接参与
   父级 grid 的两列排版，否则会挤成一列。 */
.preset-extra {
  display: contents;
}

/* 按活动生成的自定义字段容器：自己占满整行，内部再排两列 */
.custom-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.custom-fields .form-group-label {
  grid-column: 1 / -1;
  margin: 0;
}

.event-reg-form .field label {
  font-size: 13px;
  color: #44505f;
  font-weight: 600;
}

.event-reg-form .field input,
.event-reg-form .field textarea {
  padding: 8px 10px;
  border: 1px solid #cdd6e3;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
}

.event-reg-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .event-reg-form {
    grid-template-columns: 1fr;
  }
}

/* 活动详情模态框（events 页） */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 20, 36, 0.55);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(8, 20, 36, 0.3);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #eef1f6;
}

.modal__head h3 { margin: 0; font-size: 18px; }

.modal__close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #8a94a3;
}

.modal__close:hover { color: #2a3a52; }

.modal__body { padding: 18px 20px 22px; }

.event__lead { font-size: 15px; color: #44505f; margin: 0 0 12px; }

.event__detail { font-size: 14px; line-height: 1.8; color: #33405a; margin: 0 0 8px; white-space: pre-wrap; }

/* ---------- 快捷入口网格（A2 · 对标华大「专题聚焦」） ---------- */
.quickgrid-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}
.quickgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quickcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid rgba(21, 87, 176, 0.08);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
button.quickcard {
  appearance: none;
  border-width: 1px;
  border-style: solid;
}
.quickcard:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 87, 176, 0.28);
  box-shadow: 0 14px 36px -10px rgba(21, 87, 176, 0.18);
}
.quickcard:focus-visible {
  outline: 2px solid #1557B0;
  outline-offset: 3px;
}
.quickcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: rgba(217, 79, 67, 0.08);
  color: #D94F43;
  transition: background 0.25s ease, color 0.25s ease;
}
.quickcard__icon svg {
  width: 22px;
  height: 22px;
}
.quickcard:hover .quickcard__icon {
  background: rgba(217, 79, 67, 0.14);
  color: #c8412f;
}
.quickcard__title {
  font-size: 17px;
  font-weight: 600;
  color: #1a2b45;
  letter-spacing: 0.01em;
}
.quickcard__sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: #5a6b85;
}
.quickcard__cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #D94F43;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quickcard__cta::after {
  content: "→";
  transition: transform 0.2s ease;
}
.quickcard:hover .quickcard__cta::after {
  transform: translateX(3px);
}

@media (max-width: 860px) {
  .quickgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .quickgrid { grid-template-columns: 1fr; gap: 14px; }
  .quickcard { padding: 22px 20px 18px; }
}

/* ---------- 公众号二维码弹层（A2 配套） ---------- */
.qrmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qrmodal[hidden] { display: none; }
.qrmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.qrmodal__panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 30px 32px 26px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  animation: qrmodalIn 0.2s ease;
}
@keyframes qrmodalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.qrmodal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #5a6b85;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qrmodal__close:hover { background: #f1f3f7; color: #1a2b45; }
.qrmodal__title {
  font-size: 17px;
  font-weight: 600;
  color: #1a2b45;
  margin: 0 0 18px;
}
.qrmodal__img {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.qrmodal__sub {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a6b85;
}
body.qrmodal-open { overflow: hidden; }

/* ---------- 核心团队卡片（/about/） ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  text-align: center;
  padding: 28px 20px 22px;
}

.team-avatar {
  /* 用 em 不用 px：iPhone/安卓把字号放大后，圆必须跟着长。
     写死 76px 时 26px 的「领军」两个字会撑出圆外，被 border-radius 裁成半截字。
     76 ÷ 26 = 2.923，字号几倍圆就几倍，比例恒定。 */
  width: 2.923em;
  height: 2.923em;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #1557b0 0%, #0b2038 100%);
  box-shadow: 0 6px 18px rgba(11, 32, 56, 0.18);
}

.team-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--brand-deep, #0b2038);
}

.team-role {
  font-size: 12.5px;
  color: #5a6b85;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

/* 角色行的每段用 inline-block 包住，浏览器只在「·」处分行。
   否则中文会在任意汉字间断行 —— 实测「平台自聘」被拆成「平 / 台自聘」，
   「省级科技特派员」被拆成「省级科技 / 特派员」。 */
.team-role span { display: inline-block; }
.team-role span:not(:last-child)::after { content: " ·"; }

.team-card p:last-child {
  font-size: 13.5px;
  line-height: 1.7;
  color: #44505f;
  margin: 0;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UI 增强（2026-10-16）：指标卡片 / 区块分隔 / 服务卡悬停 / 相关活动
   ========================================================================== */

/* 指标卡片：关于页「机构速览」视觉化（数字 + 说明，全部取自页面既有事实） */
.statcards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 4px 0 28px;
}
.statcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px 20px;
  text-align: center;
  box-shadow: none;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.statcard:hover {
  transform: translateY(-2px);
  border-color: #b9c9dd;
}
.statcard__num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.statcard__num span {
  font-size: 22px;
  vertical-align: 6px;
  margin-left: 1px;
}
.statcard__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 8px;
}
.statcard__cap {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .statcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .statcards { grid-template-columns: 1fr; }
  .statcard__num { font-size: 34px; }
}

/* 区块分隔：提升相邻同底色区块的视觉节奏 */
.section-sep {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(to right, transparent, var(--line) 16%, var(--line) 84%, transparent);
}

/* 服务卡：悬停反馈（卡片已在 #serviceList 内，无需改 HTML） */
#serviceList .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#serviceList .card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--brand);
}
#serviceList .card__meta {
  margin-bottom: 14px;
}

/* 活动详情：相关活动迷你卡 */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.rel-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c7d5e6;
}
.rel-card__cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #e9eef6 center/cover no-repeat;
}
.rel-card__body {
  display: block;
  padding: 14px 16px 16px;
}
.rel-card__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.45;
  margin: 0 0 6px;
}
.rel-card__meta {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.rel-empty {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 860px) {
  .rel-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   统一细节层：焦点环 / 备案行开关 / 一次性滚动揭示
   ========================================================= */

/* 焦点可见性：统一成品牌色环，替代各浏览器默认的虚线框 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 备案号：没有正式编号时整行不显示（JS 拿到值后才取消 hidden） */
[data-icp-line][hidden] { display: none; }

/* 日期与编号使用等宽数字，避免数字跳动、并让列表左缘对齐 */
.datelist__date,
.datelist time,
.svcindex__no {
  font-variant-numeric: tabular-nums;
}

/* 滚动揭示：只在首屏下方第一个区块触发一次，12px + 420ms，克制到几乎察觉不到。
   注意：默认不隐藏。只有 JS 确认可用并打了 data-reveal-ready 之后才进入"待显示"状态，
   这样脚本失效时内容依然可见（不会出现空白区块）。 */
[data-reveal] {
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
html[data-reveal-ready] [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(12px);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  :focus-visible { outline-offset: 2px; }
}

/* 窄屏收紧纵向留白（--section-y 桌面 96 → 移动 56） */
@media (max-width: 760px) {
  /* 越窄越应该收紧。这里原来是 48px，比 ≤860 的 36px 还大，
     结果手机上的上下留白反而比平板宽。 */
  :root { --section-y: 32px; }
}

/* =========================================================
   最新动态：一条主推 + 5 条列表
   ========================================================= */

.latest {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 48px;
  align-items: start;
}

.latest__lead { display: block; }

.latest__lead-fig {
  margin: 0 0 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.latest__lead-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.latest__lead:hover .latest__lead-fig img { transform: scale(1.03); }

.latest__lead-date {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.latest__lead-title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
  transition: color var(--t-fast) var(--ease);
}

.latest__lead:hover .latest__lead-title { color: var(--brand); }

.latest__lead-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--brand);
}

@media (max-width: 860px) {
  .latest { grid-template-columns: 1fr; gap: 28px; }
}

/* 列表侧收敛：日期从"红色块"改为素色小字，避免 5 个红块堆叠抢主推图 */
.latest .datelist li { grid-template-columns: 78px 1fr; gap: 16px; padding: 16px 0; }
.latest .datelist__date {
  background: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  padding: 0;
  border-radius: 0;
  text-align: left;
  letter-spacing: 0.03em;
}
.latest .datelist__date span {
  display: inline;
  font-size: 13px;
  font-weight: 400;
  margin-left: 3px;
}
.latest .datelist__title {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
  transition: color var(--t-fast) var(--ease);
}
.latest .datelist__link:hover .datelist__title { color: var(--brand); }

/* ============================================================
   活动报名页 /events/<slug>/signup/
   复用 .form-card / .event-reg-form / .form-status，
   这里只补活动信息条、成功态与几处间距修正。
   ============================================================ */

.signup-wrap {
  max-width: 760px;
}

.signup-event {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.signup-event__badge {
  flex: 0 0 auto;
}

.signup-event__meta {
  flex: 1 1 380px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 0;
}

/* 地点通常最长，独占一行，避免把「名额」挤到第二行 */
.signup-event__meta-full {
  grid-column: 1 / -1;
}

.signup-event__meta div {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.signup-event__meta dt {
  flex: 0 0 auto;
  color: var(--muted);
}

.signup-event__meta dd {
  margin: 0;
  color: var(--brand-dark);
}

/* 表单卡内部：.field 的全局 margin 与 grid gap 会叠加，这里清零 */
.event-reg-form .field {
  margin-bottom: 0;
}

.event-reg-form .field label {
  margin-bottom: 0;
}

.event-reg-form .field--full {
  grid-column: 1 / -1;
}

.event-reg-form .field-error {
  font-size: 12.5px;
}

/* 手机号 + 验证码：整行占位，内部左手机号、右验证码，视觉上必须成组 */
.event-reg-form .phone-otp {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: start;
}

.event-reg-form .phone-otp__phone,
.event-reg-form .phone-otp__code {
  min-width: 0;
}

.event-reg-form .phone-otp__code {
  display: flex;
  gap: 8px;
  align-items: start;
}

.event-reg-form .phone-otp__code input {
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

.event-reg-form .otp-send {
  flex: 0 0 auto;
  min-width: 104px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.event-reg-form .otp-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.event-reg-form .field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* 验证码已通过 / 失败时的静默提示 */
.event-reg-form .field-hint[data-state="ok"] {
  color: #1f7a43;
}

.event-reg-form .field-hint[data-state="error"] {
  color: #c0392b;
}

@media (max-width: 720px) {
  .event-reg-form .phone-otp {
    grid-template-columns: 1fr;
  }
}

.signup-h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--brand-dark);
}

.signup-lead {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.form-card .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.signup-fine {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #7d8a9c;
  line-height: 1.7;
}

/* 成功态 */
.signup-done {
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.signup-done__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5ec;
  color: #1f8a4c;
  font-size: 26px;
  font-weight: 700;
}

.signup-done h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brand-dark);
}

.signup-done__lead {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
}

.signup-code {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 auto 20px;
  padding: 16px 34px;
  background: var(--ice);
  border: 1px dashed #b9c8dd;
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--muted);
}

.signup-code b {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 700;
}

.signup-done__hint {
  max-width: 460px;
  margin: 0 auto 22px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* 报名凭证二维码 */
.signup-qr {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  max-width: 380px; margin: 4px auto 20px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
}
.signup-qr__code { flex: 0 0 auto; width: 128px; height: 128px; line-height: 0; }
.signup-qr__code svg { width: 128px; height: 128px; display: block; }
.signup-qr__tip { margin: 0; text-align: left; font-size: 12.5px; line-height: 1.75; color: var(--muted); }

@media (max-width: 400px) {
  .signup-qr { flex-direction: column; gap: 10px; text-align: center; }
  .signup-qr__tip { text-align: center; }
}

.signup-done .form-actions {
  justify-content: center;
  margin-top: 0;
}

@media (max-width: 640px) {
  .signup-done {
    padding: 30px 20px;
  }
  .signup-code b {
    font-size: 25px;
    letter-spacing: 0.12em;
  }
  .signup-event {
    padding: 14px 16px;
  }
}

/* 报名查询页 /events/<slug>/mine/ */
.mine-result {
  margin-top: 18px;
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.mine-dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.mine-dl div {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  line-height: 1.7;
}

.mine-dl dt {
  flex: 0 0 88px;
  color: var(--muted);
}

.mine-dl dd {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 500;
}

/* 活动自定义补充信息：标签长度不固定（「是否需要安排午餐」8 个字），
   沿用上面的 88px 会把标签挤成两行、和右边的值视觉错位。 */
#mrAnswers div {
  align-items: flex-start;
}

#mrAnswers dt {
  flex: 0 0 auto;
  max-width: 46%;
}

/* .mine-dl div 是 display:flex，会盖掉浏览器对 [hidden] 的 display:none。
   报名人配了自定义表时要把固定那行「单位」收起来，不补这条就收不掉。 */
.mine-dl > div[hidden] {
  display: none;
}

/* 查询结果下方的「修改信息 / 取消报名」。
   两个都是次要动作，用 ghost 按钮；取消带警示色，但不做成红色实心，
   避免在正常浏览时把视觉重心拽走。
   注意：这里用 rgba 硬编码而不是 color-mix —— 微信内置浏览器（老 X5 内核）
   不支持 color-mix，用了会整条规则失效，按钮掉回默认色。 */
.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.mine-actions[hidden],
.mine-confirm[hidden],
.mine-edit[hidden] {
  display: none;
}

.mine-danger {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.38);
}

.mine-danger:hover {
  background: rgba(192, 57, 43, 0.08);
}

.mine-edit {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.mine-confirm {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 10px;
  background: rgba(192, 57, 43, 0.05);
}

.mine-confirm p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.mine-confirm .form-actions {
  margin: 0;
}

#mineActionStatus {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .mine-result {
    padding: 20px 18px;
  }
  .mine-dl dt {
    flex-basis: 74px;
  }
  .mine-actions .btn {
    flex: 1 1 auto;
  }
}

/* =========================================================
   首页 · 最新动态：图文卡片（1 主推 + 5 缩略图）
   ========================================================= */

.newscards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.newscard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
}

.newscard:hover {
  color: var(--ink);
}

.newscard__fig {
  margin: 0 0 14px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.newscard__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.newscard:hover .newscard__fig img {
  transform: scale(1.04);
}

.newscard__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.newscard__tag {
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--muted);
}

.newscard__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast) var(--ease);
}

.newscard:hover .newscard__title {
  color: var(--brand);
}

/* 主推卡：占前两列、两行，与右侧两张小卡等高 */
.newscard--lead {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.newscard--lead .newscard__fig {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 260px;
  max-height: 400px;
  margin-bottom: 18px;
}

.newscard--lead .newscard__title {
  font-size: 24px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
}

@media (max-width: 980px) {
  .newscards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newscard--lead {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .newscard--lead .newscard__fig {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .newscards {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .newscard--lead {
    grid-column: auto;
  }
  .newscard--lead .newscard__title {
    font-size: 19px;
  }
}

/* =========================================================
   首页 · 学术活动：月历 + 活动清单
   ========================================================= */

.evcal {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.evcal__card {
  padding: 20px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.evcal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.evcal__month {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}

.evcal__nav {
  width: 28px;
  height: 28px;
  padding: 0 0 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.evcal__nav:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.evcal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.evcal__wd {
  padding-bottom: 6px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.evcal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.evcal__day.is-blank {
  visibility: hidden;
}

.evcal__day.is-evt {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}

.evcal__day.is-evt:hover {
  background: var(--brand-hover);
}

.evcal__day.is-evt.is-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.evcal__legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.evcal__legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.evcal__list {
  border-top: 1px solid var(--line);
}

.evcal__item {
  border-bottom: 1px solid var(--line);
}

.evcal__link {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 6px;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease);
}

.evcal__link:hover {
  color: var(--ink);
  background: rgba(21, 87, 176, 0.04);
}

.evcal__when {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 84px;
}

.evcal__when b {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}

.evcal__when span {
  font-size: 12px;
  color: var(--muted);
}

.evcal__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.evcal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: pretty;
  transition: color var(--t-fast) var(--ease);
}

.evcal__link:hover .evcal__title {
  color: var(--brand);
}

.evcal__where {
  font-size: 13px;
  color: var(--muted);
}

.evcal__more {
  flex: none;
  font-size: 13px;
  color: var(--brand);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}

.evcal__link:hover .evcal__more {
  opacity: 1;
}

.evcal__empty {
  padding: 26px 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.evcal__empty p {
  margin: 0 0 10px;
}

/* 排期少时补位：避免日历右侧只剩一条活动、下方空一大片 */
.evcal__side {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.evcal__promo {
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

.evcal__promo-t {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.evcal__promo-d {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 900px) {
  .evcal {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 520px) {
  .evcal__link {
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .evcal__more {
    display: none;
  }
}

/* =========================================================
   首页 · 友情链接
   ========================================================= */

.linkgroups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 每组「标签 + 胶囊链接」压成一行，链接少的时候不会在右半边留一大片空白 */
.linkgroup {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
  gap: 4px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.linkgroup__title {
  margin: 0;
  padding: 6px 0 0;
  border-bottom: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-dark);
}

.linkgroup__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linkgroup__list li {
  margin: 0;
}

.linkgroup__list a {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.linkgroup__list a:hover {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
  box-shadow: 0 2px 10px rgba(16, 44, 76, 0.10);
}

.linkgroup__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.linkgroup__list a::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.45;
  transition: opacity var(--t-fast) var(--ease);
}

.linkgroup__list a:hover {
  color: var(--brand);
}

.linkgroup__list a:hover::before {
  opacity: 1;
}

/* 手机端单列。这条必须放在 .linkgroup 基础规则之后：
   两者优先级相同，谁在后面谁生效；原来它写在整个「友情链接」区块之前，
   于是 116px + 1fr 的双列布局一路压过来，手机上的单列从来没生效过。 */
@media (max-width: 640px) {
  .linkgroup {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .linkgroup__title {
    padding-top: 0;
  }
}

/* =========================================================
   首页 · 研究方向与产品服务（原两个板块合并，整体压掉一半高度）
   ========================================================= */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  gap: 40px;
  align-items: start;
}

.duo__pane {
  min-width: 0;
}

/* 分栏小标题：一行字 + 右侧入口，比再起一个 section-head 省 80px */
.duo__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-dark);
}

.duo__title a {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.duo__title a:hover {
  color: var(--brand);
}

/* 四张专题卡压成 2×2：标题一行、描述三行封顶 */
.topiccards--tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topiccards--tight .topiccard {
  min-height: 0;
  gap: 6px;
  padding: 16px 16px 18px;
}

.topiccards--tight .topiccard h3 {
  font-size: 16px;
  line-height: 1.4;
}

.topiccards--tight .topiccard p {
  font-size: 12.5px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topiccards--tight .topiccard::after {
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
}

/* 服务索引压成两列三行 */
.svcindex--tight {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  border-top: 0;
}

.svcindex--tight .svcindex__item {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 2px;
}

.svcindex--tight .svcindex__no {
  font-size: 12.5px;
  padding-top: 2px;
}

.svcindex--tight .svcindex__item h3 {
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 4px;
}

.svcindex--tight .svcindex__item p {
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .duo {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  .topiccards--tight,
  .svcindex--tight {
    grid-template-columns: 1fr;
  }
}

/* 板块开关：后台关掉的首页板块必须真的不占位（.section 的 display 会盖掉 UA 的 [hidden]） */
[data-module][hidden] {
  display: none !important;
}

/* 点日历日期后，对应条目高亮一下（滚到视野内） */
.evcal__item.is-active .evcal__link {
  background: rgba(21, 87, 176, 0.07);
  box-shadow: inset 3px 0 0 var(--brand);
}

/* ==========================================================================
   顶部导航悬停下拉（2026-10-20，参照华侨大学官网 li.xiala 的效果）
   动效拆成三层：条目下划线生长 → 小箭头翻转 → 面板自上而下展开 + 条目错峰就位。
   纯 CSS 驱动（:hover 给鼠标、:focus-within 给键盘），脚本只同步 aria-expanded。
   ========================================================================== */

/* 移动端「展开子菜单」按钮 —— 桌面端整块隐藏（鼠标用悬停，不需要它）。
   它夹在父项 <a> 与 .subnav 之间，于是触摸屏上「点文字跳转栏目页」和
   「点右侧箭头展开子项」是两个互不吞掉的独立动作；若把展开挂在父项 <a> 上，
   一个 <a> 只能二选一，用户要么永远进不去栏目首页，要么永远看不到子项。 */
.subnav-toggle {
  display: none;
}

/* 小箭头：绝对定位到文字右侧（::before 默认插在文字前，必须绝对定位把它挪过去），
   默认朝下，展开时翻转 180° */
.site-nav li.has-sub > a {
  padding-right: 32px;
}

.site-nav li.has-sub > a::before {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 15px;
  width: 5px;
  height: 5px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.2s ease;
}

.site-nav li.has-sub:hover > a::before,
.site-nav li.has-sub:focus-within > a::before {
  transform: rotate(-135deg);
  opacity: 1;
}

/* 面板：高度方向「揭开」（clip-path），叠加淡入与 8px 下滑 */
.subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 6;
  min-width: 218px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(16, 44, 76, 0.16), 0 2px 6px rgba(16, 44, 76, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  clip-path: inset(0 0 100% 0 round 14px);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1),
    clip-path 0.32s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0.32s;
}

.subnav a {
  display: block;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.2, 0.7, 0.3, 1),
    background-color 0.18s ease, color 0.18s ease;
}

.subnav a:hover {
  color: var(--brand);
  background: var(--ice);
}

.site-nav > ul > li.has-sub:hover > .subnav,
.site-nav > ul > li.has-sub:focus-within > .subnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  clip-path: inset(0 0 0 0 round 14px);
}

.site-nav > ul > li.has-sub:hover > .subnav a,
.site-nav > ul > li.has-sub:focus-within > .subnav a {
  opacity: 1;
  transform: translateY(0);
}

/* 条目错峰落下（延迟只写在展开态，收回去时才不会拖泥带水） */
.site-nav > ul > li.has-sub:hover > .subnav a:nth-child(2),
.site-nav > ul > li.has-sub:focus-within > .subnav a:nth-child(2) {
  transition-delay: 0.035s;
}
.site-nav > ul > li.has-sub:hover > .subnav a:nth-child(3),
.site-nav > ul > li.has-sub:focus-within > .subnav a:nth-child(3) {
  transition-delay: 0.07s;
}
.site-nav > ul > li.has-sub:hover > .subnav a:nth-child(4),
.site-nav > ul > li.has-sub:focus-within > .subnav a:nth-child(4) {
  transition-delay: 0.105s;
}
.site-nav > ul > li.has-sub:hover > .subnav a:nth-child(5),
.site-nav > ul > li.has-sub:focus-within > .subnav a:nth-child(5) {
  transition-delay: 0.14s;
}
.site-nav > ul > li.has-sub:hover > .subnav a:nth-child(6),
.site-nav > ul > li.has-sub:focus-within > .subnav a:nth-child(6) {
  transition-delay: 0.175s;
}

/* 首页透明页头：面板里的字必须是深色，否则白底白字 */
body.home .site-header:not(.is-solid) .site-nav .subnav a {
  color: var(--ink);
}

body.home .site-header:not(.is-solid) .site-nav .subnav a:hover {
  color: var(--brand);
  background: var(--ice);
}

body.home .site-header:not(.is-solid) .site-nav > ul > li > a::after {
  background: #fff;
}

/* 减弱动态效果：只留颜色变化，不做位移与展开动画 */
@media (prefers-reduced-motion: reduce) {
  .subnav,
  .subnav a,
  .site-nav > ul > li > a::after,
  .site-nav li.has-sub > a::before {
    transition-duration: 0.01ms !important;
  }

  .subnav a {
    transform: none;
  }
}

/* 窄屏：导航已是整屏浮层，下拉改成静态缩进列表，只在「当前栏目」下展开 */
@media (max-width: 860px) {
  .site-nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav > ul > li.has-sub::after,
  .site-nav li.has-sub > a::before {
    display: none;
  }

  .site-nav > ul > li > a::after {
    display: none;
  }

  .subnav {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 4px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    clip-path: none;
  }

  /* 父项行拆成两列：文字占左列、箭头占右列，子菜单整行铺在下一行。
     不能用「箭头绝对定位 top:0 bottom:0」——父项一展开 li 就被子菜单撑高，
     箭头会跟着拉到整块高度，压住子菜单右侧一条，真机上就是点不到子项。 */
  .site-nav > ul > li.has-sub {
    display: grid;
    grid-template-columns: 1fr 54px;
    align-items: center;
  }

  .site-nav > ul > li.has-sub > a {
    grid-column: 1;
  }

  .site-nav > ul > li.has-sub > .subnav {
    grid-column: 1 / -1;
  }

  /* 箭头按钮：48px 宽、撑满父项行高，比原来 8px 的小三角好按得多 */
  .subnav-toggle {
    grid-column: 2;
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .subnav-toggle__mark {
    width: 7px;
    height: 7px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.2s ease;
  }

  .subnav-toggle[aria-expanded="true"] .subnav-toggle__mark {
    transform: rotate(-135deg);
    opacity: 1;
  }

  .subnav a {
    padding: 9px 12px;
    font-size: 14px;
    color: var(--muted);
    opacity: 1;
    transform: none;
    white-space: normal;
  }

  /* 展开态只认 li[data-subopen]：初始值由 site.js 按「父项是否当前页」写入，
     这样当前栏目页默认展开、又允许用户手动收起（纯 CSS 的 :has(当前页) 一旦命中就收不掉）。
     整屏导航本来就靠脚本开合，这里依赖同样来源，不存在额外失效面。 */
  .site-nav > ul > li.has-sub[data-subopen="true"] > .subnav {
    display: block;
  }

  /* 桌面那套 :hover / :focus-within 展开规则权重更高（0,3,2 > 0,1,0），
     触摸屏上点一下就会同时触发 hover 与 focus，把 translate(-50%) 又拽回来，
     子菜单整块左移半个宽度、跑出屏幕。这里等权重覆盖掉。 */
  .site-nav > ul > li.has-sub:hover > .subnav,
  .site-nav > ul > li.has-sub:focus-within > .subnav {
    transform: none;
  }
}

/* 锚点跳转：留出吸顶页头的高度，别让标题钻到导航底下 */
:target,
section[id],
h2[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- 首页研究方向：标题右侧双入口 + 底部服务索引 ----------
   服务板块不再单独占一屏，用一条索引把 6 项服务挂回首页（也顺手给了 6 个内链）。 */
.head-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.focus-svc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.focus-svc__label {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-right: 4px;
}

.focus-svc a {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: #34495f;
  transition: border-color .15s, color .15s, background .15s;
}

.focus-svc a:hover {
  border-color: #b9cfec;
  color: var(--brand);
  background: #f5f9ff;
}

@media (max-width: 640px) {
  .focus-svc {
    gap: 8px;
  }
}

/* ==========================================================================
   关于我们 · 一页速览（两张介绍页 + 放大查看）
   2026-10-21：接入「数研院介绍1」整图与「数研院介绍2」左半张。
   ========================================================================== */

.brief {
  display: grid;
  /* 1.98 : 1 —— 图 1（3:2 横）与图 2（3:4 竖）按这个比例摆，两边高度正好齐平 */
  grid-template-columns: 1.98fr 1fr;
  gap: 28px;
  align-items: start;
}

.brief__item {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.brief__item--wide,
.brief__item--tall {
  max-width: none;
  margin-inline: 0;
}

.brief__link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.brief__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(16, 44, 76, 0.14);
}

.brief__link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.brief__link img {
  display: block;
  width: 100%;
  height: auto;
}

.brief__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 32, 56, 0.72);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .04em;
  backdrop-filter: blur(4px);
  transition: background var(--t-fast) var(--ease);
}

.brief__link:hover .brief__zoom {
  background: var(--brand);
}

.brief__item figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 放大查看（原生 dialog） ---------- */

.briefbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 20, 34, 0.94);
  color: #fff;
}

.briefbox::backdrop {
  background: rgba(8, 20, 34, 0.9);
}

.briefbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 64px);
  padding: 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.briefbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.briefbox__close {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.briefbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.briefbox__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 64px;
}

.briefbox__step {
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.briefbox__step:hover {
  background: rgba(255, 255, 255, 0.16);
}

.briefbox__count {
  min-width: 56px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

/* 窄屏时给右侧浮动工具条（.float-tools，宽约 44px）留出位置，避免压住右列图片 */
@media (max-width: 1180px) {
  .brief {
    padding-right: 14px;
  }
}

@media (max-width: 900px) {
  .brief {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .brief__item--tall .brief__link {
    max-width: 520px;
    margin-inline: auto;
  }

  .brief__item--tall figcaption {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .brief {
    gap: 24px;
  }

  .brief__zoom {
    right: 10px;
    bottom: 10px;
    padding: 5px 11px;
    font-size: 11.5px;
  }

  .briefbox__stage {
    height: calc(100vh - 112px);
    padding: 8px;
  }
}

/* ==========================================================================
   活动报名表单 · 分组标题与多选胶囊（2026-10-21 补结构化字段）
   表单字段写在 event_registrations.extras(jsonb) 里，不需要改表结构。
   ========================================================================== */

.form-group-label {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .04em;
}

.event-reg-form .form-group-label:first-child {
  margin-top: 0;
}

/* 报名表单字段多，textarea 别用全局的 140px，否则一张表单近千像素 */
.event-reg-form textarea {
  min-height: 88px;
}

/* 关注方向：胶囊式多选，勾满 2 项后其余置灰 */
.checkchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.checkchip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  color: #34495f;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}

.checkchip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* .field label 的 display:block 优先级比 .checkchip 高，这里单独压回 inline-flex */
.event-reg-form .field .checkchip {
  display: inline-flex;
  margin-bottom: 0;
}

.checkchip:hover {
  border-color: #b9cfec;
}

.checkchip.is-checked {
  border-color: var(--brand);
  background: #eff5fd;
  color: var(--brand);
  font-weight: 500;
}

.checkchip input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.checkchip.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #f7f9fc;
}

@media (max-width: 640px) {
  .checkchip {
    padding: 7px 12px;
    font-size: 13px;
  }
}
