/* ==========================================================================
   机构网站 · 统一设计系统
   风格：简约 / 明亮 / 大气，蓝青主色 + 大面积留白
   想换主题色，只需改下面 :root 中的 4 个颜色变量
   ========================================================================== */

:root {
  /* 主色 —— 取自机构 Logo（深蓝 + 星金色） */
  --brand:        #1B3A6B;
  --brand-600:    #122A50;
  --brand-soft:   #EAF0FA;
  --accent:       #C8944A;
  --accent-soft:  #FBF3E6;

  /* 浅色强调（用于柔和按钮、次级标签） */
  --sky:          #1F6FEB;
  --sky-soft:     #EAF2FF;

  /* 中性色 */
  --ink:      #0B1220;
  --ink-2:    #2A3446;
  --muted:    #667085;
  --line:     #E7EBF2;
  --bg:       #FFFFFF;
  --bg-soft:  #F6F9FD;
  --bg-tint:  #F1F6FF;

  /* 圆角与阴影 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(11,18,32,.05);
  --shadow-sm: 0 4px 14px rgba(11,18,32,.05);
  --shadow-md: 0 12px 32px rgba(11,18,32,.08);
  --shadow-lg: 0 24px 60px rgba(11,18,32,.10);

  /* 版心 */
  --wrap: 1180px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", sans-serif;
}

/* ------------------------------- 基础重置 ------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 4.4vw, 56px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 2.7vw, 36px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-600); }

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

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .35em 0; }

:focus-visible {
  outline: 3px solid rgba(27,58,107,.32);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--brand-soft); color: var(--brand-600); }

/* ------------------------------- 布局工具 ------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 68px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.85; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; }
.maxw-620 { max-width: 620px; }

/* --------------------------- 章节标题（统一） --------------------------- */
.sec-head { max-width: 720px; margin-bottom: 46px; }
.sec-head.center { margin-inline: auto; }
.sec-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* -------------------------------- 导航 -------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }
.nav .wrap { display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; color: var(--ink); font-size: 17px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-xs); object-fit: cover; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 750; letter-spacing: .01em; }
.brand-pinyin {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: var(--accent); text-transform: uppercase; margin-top: 3px;
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .06em; line-height: 1.2; }

/* 首屏品牌区：完整 Logo + 拼音 */
.brand-bar {
  display: inline-flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 26px 14px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.brand-bar .lockup {
  width: 66px; height: 66px; border-radius: var(--r-md);
  object-fit: cover; flex: none;
}
.brand-bar .divider { width: 1px; height: 44px; background: var(--line); }
.brand-bar .bd-name { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .04em; line-height: 1.2; }
.brand-bar .bd-pinyin {
  font-size: 12.5px; font-weight: 700; letter-spacing: .26em;
  color: var(--accent); text-transform: uppercase; margin-top: 4px;
}
.brand-bar .bd-abbr { font-size: 11.5px; color: var(--muted); letter-spacing: .12em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 550;
  padding: 8px 13px;
  border-radius: 9px;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* -------------------------------- 按钮 -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1;
  padding: 13px 22px;
  border-radius: 11px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
  box-shadow: 0 6px 18px rgba(18,42,80,.20);
  white-space: nowrap;
}
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(18,42,80,.26); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { background: #fff; color: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.btn--soft { background: var(--sky-soft); color: #175BC4; border-color: transparent; box-shadow: none; }
.btn--soft:hover { background: #DCE9FF; color: #175BC4; border-color: transparent; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 15px; font-size: 14px; border-radius: 9px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* -------------------------------- 卡片 -------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #DEE6F2; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card--pad-sm { padding: 22px; }

/* 图标圆片 */
.ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 20px;
  margin-bottom: 16px;
}
.ico--accent { background: var(--accent-soft); color: var(--accent); }
.ico--line { background: #fff; border: 1px solid var(--line); }

/* -------------------------------- 徽标 -------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 650;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tag--brand { background: var(--sky-soft); color: #175BC4; border-color: transparent; }
.tag--accent { background: var(--accent-soft); color: #96682A; border-color: transparent; }

/* ------------------------------ 占位 / 提示 ------------------------------ */
/* 需要你填写的内容块：虚线 + 浅底，填完内容后把 class="ph" 删掉即可 */
.ph {
  border: 1.5px dashed #C8D6EC !important;
  background: #FAFCFF !important;
  border-radius: var(--r-md);
}
.ph-note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 650;
  color: #5B7BB0;
  background: #EFF5FF;
  border: 1px solid #DCE7F8;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ph-note::before { content: "✎"; font-size: 12px; }

.notice {
  display: flex; gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: #FFFBF0;
  border: 1px solid #F6E4BC;
  color: #7A5A12;
  font-size: 14.5px;
}
.notice strong { color: #614609; }
.notice--info { background: var(--brand-soft); border-color: #D8E2F2; color: #2D4E86; }
.notice--info strong { color: #1B3E75; }

/* ==========================================================================
   待填写占位（网站初稿用）
   --------------------------------------------------------------------------
   config 里为空的值会被自动渲染成淡金色虚线小标签，提醒你哪里还没填。
   全部填完后想彻底去掉这种样式，只需在 README 里按说明加一行 CSS 覆盖。
   ========================================================================== */
[data-empty] {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 7px;
  background: #FFF8EB;
  border: 1px dashed var(--accent);
  color: #8A6321;
  font-size: .88em;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}
[data-empty]::before { content: "待填写："; font-size: .85em; opacity: .72; }

/* 可编辑内容块（contenteditable，可直接在页面上改字，见 README） */
.editable:focus { background: #FFFDF3; box-shadow: 0 0 0 3px #FDF0CB; border-radius: 8px; outline: none; }

/* -------------------------------- 首屏 -------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 116px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -8%, #E6EEFA 0%, rgba(230,238,250,0) 62%),
    radial-gradient(760px 420px at 92% 4%, #FBF1E2 0%, rgba(251,241,226,0) 60%),
    #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(27,58,107,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(760px 340px at 22% 12%, #000 0%, transparent 72%);
  mask-image: radial-gradient(760px 340px at 22% 12%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: start; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 540px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 24px;
}
.hero-badge b { background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }

.hero-media { position: relative; padding-top: 8px; }
.hero-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3.2;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; left: -20px; bottom: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex; gap: 14px; align-items: center;
}
.hero-float .k { font-size: 26px; font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.02em; }
.hero-float .v { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

/* ------------------------------- 数据条 ------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 30px 26px; text-align: center; }
.stat .k { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat .k em { font-style: normal; font-size: .5em; font-weight: 700; color: var(--brand); margin-left: 3px; }
.stat .v { font-size: 14px; color: var(--muted); margin-top: 6px; }

.strip { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; }
.strip .item { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.strip .item b { color: var(--ink); font-weight: 700; }

/* -------------------------------- 时间轴 -------------------------------- */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }
.timeline::before {
  content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand-soft), #DCE7F8 12%, #DCE7F8 88%, rgba(220,231,248,0));
}
.tl-item { position: relative; display: grid; grid-template-columns: 108px 1fr; gap: 48px; padding: 0 0 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; text-align: right; line-height: 1.5; }
.tl-body { position: relative; }
.tl-body::before {
  content: ""; position: absolute; left: -31px; top: 11px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px #fff;
}
.tl-body h3 { margin-bottom: 6px; font-size: 18px; }
.tl-body p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ------------------------------ 图文卡片 ------------------------------ */
.media-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; position: relative; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-card:hover .thumb img { transform: scale(1.045); }
.media-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.media-card .body h3 { font-size: 17.5px; margin-bottom: 8px; }
.media-card .body p { color: var(--muted); font-size: 14.8px; margin: 0 0 14px; flex: 1; }
.media-card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 人物卡（毕业生） */
.person { display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: start; }
.person .avatar {
  width: 132px; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 4px; font-size: 19px; }
.person .role { font-size: 14px; color: var(--brand); font-weight: 650; margin-bottom: 10px; }
.person blockquote {
  margin: 0; padding: 0 0 0 16px; border-left: 3px solid var(--brand-soft);
  color: var(--ink-2); font-size: 15.5px;
}

/* 相册 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery figure .box { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* ------------------------------- 联系方式 ------------------------------- */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 18px;
  transition: box-shadow .25s, transform .25s;
}
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ico { margin: 0; flex: none; }
.contact-line .label { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.contact-line .value { font-size: 18px; font-weight: 700; color: var(--ink); word-break: break-all; }
.contact-line .value a { color: var(--ink); }
.contact-line .value a:hover { color: var(--brand); }

.qr-box {
  width: 190px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  border: 1px dashed #C8D6EC; background: #FAFCFF;
  display: grid; place-items: center; text-align: center; padding: 12px;
  font-size: 13px; color: #5B7BB0; line-height: 1.6;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

/* 地图 */
.map-box {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, #F7FAFF, #EFF5FF);
  min-height: 320px;
  display: grid; place-items: center;
  text-align: center; padding: 34px;
  position: relative;
}
.map-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(31,111,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,111,235,.06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-box > * { position: relative; z-index: 1; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 信息表 */
.info-table { width: 100%; border-collapse: collapse; background: #fff; }
.info-table th, .info-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 15.3px; vertical-align: top; }
.info-table th { width: 130px; color: var(--muted); font-weight: 600; background: var(--bg-soft); white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

/* -------------------------------- 留言板 -------------------------------- */
.board { display: grid; grid-template-columns: 400px 1fr; gap: 34px; align-items: start; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.form-field .hint { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 6px; }

input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
  line-height: 1.6;
}
input::placeholder, textarea::placeholder { color: #A9B4C6; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27,58,107,.10);
}
textarea { resize: vertical; min-height: 118px; }
.char-count { font-size: 12.5px; color: var(--muted); text-align: right; margin-top: 6px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.checkline input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }

.msg-list { display: flex; flex-direction: column; gap: 14px; }
.msg {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.msg:hover { border-color: #DEE6F2; box-shadow: var(--shadow-sm); }
.msg.is-new { animation: pop .5s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.msg-head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; flex-wrap: wrap; }
.msg-avatar {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--brand), #2E5A9E);
}
.msg-name { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.msg-time { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.msg-body { font-size: 15.3px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; margin: 0; }
.msg-body.is-long { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.msg-more { font-size: 13.5px; font-weight: 600; margin-top: 6px; display: inline-block; }
.msg-reply {
  margin-top: 12px; padding: 12px 15px; border-radius: var(--r-sm);
  background: var(--brand-soft); color: #23457E; font-size: 14.5px;
}
.msg-reply b { color: var(--brand-600); }

.board-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.board-toolbar .spacer { flex: 1; }
.board-count { font-size: 14px; color: var(--muted); font-weight: 600; }

.empty {
  text-align: center; padding: 64px 24px; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--bg-soft);
}
.empty .ico { margin: 0 auto 14px; }
.empty h3 { margin-bottom: 6px; }
.empty p { margin: 0; font-size: 14.5px; }

/* -------------------------------- 表单反馈 -------------------------------- */
.alert { border-radius: var(--r-sm); padding: 12px 16px; font-size: 14.3px; margin-bottom: 14px; display: none; }
.alert.is-on { display: block; animation: pop .35s ease; }
.alert--ok { background: var(--accent-soft); color: #0B7C72; border: 1px solid #B9E7E2; }
.alert--err { background: #FFF1F1; color: #A32424; border: 1px solid #F8CFCF; }

/* -------------------------------- 页脚 -------------------------------- */
.footer { background: var(--ink); color: #A9B4C6; padding: 66px 0 0; margin-top: 0; }
.footer h4 { color: #fff; font-size: 14.5px; letter-spacing: .04em; margin-bottom: 16px; }
.footer a { color: #C6D0DE; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand:hover { color: #fff; }
.footer .brand small { color: #8B97AA; }
.footer p { font-size: 14.5px; line-height: 1.8; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0 0 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  font-size: 13.5px; color: #7F8C9F;
}
.footer-bottom .spacer { flex: 1; }
.foot-empty {
  color: #E2B26E;
  border-bottom: 1px dashed rgba(226,178,110,.6);
  font-size: 13.5px;
}

/* --------------------------------- CTA --------------------------------- */
.cta-band {
  background: linear-gradient(135deg, #0B1A31 0%, #16325E 52%, #2A5590 100%);
  border-radius: var(--r-xl);
  padding: 60px;
  color: #fff;
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(226,178,110,.40), transparent 68%);
}
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band p { color: #C7D6EA; margin-bottom: 0; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.cta-band .btn:hover { background: #F1F6FF; color: var(--brand-600); }
.cta-band .wrap-rel { position: relative; z-index: 1; }

.err-hint { font-weight: 400; color: #A32424; font-size: 13.5px; margin-left: 8px; }

/* ------------------------------ 滚动出现动画 ------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.7,.24,1), transform .7s cubic-bezier(.22,.7,.24,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------- 响应式 -------------------------------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-float { left: auto; right: 16px; bottom: 16px; }
  .board { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .cta-band { grid-template-columns: 1fr; padding: 44px; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; margin: 0;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g3, .g2 { grid-template-columns: 1fr; }
  .timeline::before { left: 78px; }
  .tl-item { grid-template-columns: 62px 1fr; gap: 44px; }
  .tl-year { font-size: 16px; }
  .tl-body::before { left: -31px; }
}

@media (max-width: 640px) {
  .section { padding: 66px 0; }
  .section--tight { padding: 48px 0; }
  .wrap { padding-inline: 18px; }
  .hero { padding: 66px 0 62px; }
  .card { padding: 22px; }
  .person { grid-template-columns: 1fr; gap: 16px; }
  .person .avatar { width: 96px; }
  .cta-band { padding: 34px 24px; border-radius: var(--r-lg); }
  .g4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* -------------------------------- 打印 -------------------------------- */
@media print {
  .nav, .footer, .cta-band, .board form { display: none !important; }
  body { color: #000; }
}
