@charset "utf-8";

/* ==========================================================================
   emerson.gd.cn 站点样式
   视觉合同：扁平风 / 纯白产品界面变体（flat-canvas-product · flat-pure-white-product-ui）
   要点：纯白画布、单一强调色、细边框、默认无阴影、中等偏小圆角、离散断点字号
   ========================================================================== */

:root {
  /* 颜色：全站只用一个强调色，来自项目自有品牌决定，不使用院校识别色 */
  --ink: #16181d;
  --ink-soft: #2b2f38;
  --muted: #5b616e;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --wash: #f5f6f8;
  --wash-cool: #eef2f7;
  --accent: #1a4c8b;
  --accent-dark: #143a6a;
  --accent-weak: #e8eef7;
  --warn-bg: #fdf6e9;
  --warn-line: #e8d9b5;

  /* 容器与间距 */
  --container: 1224px;
  --reading: 760px;
  --gutter: 24px;
  --section-y: 56px;
  --card-gap: 20px;

  /* 圆角与边框 */
  --radius-card: 8px;
  --radius-control: 4px;
  --radius-pill: 999px;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 动效 */
  --motion-fast: 160ms;
  --motion-base: 220ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* 浏览器默认给 figure 左右各 40px 外边距，会让图片与正文左对齐错位 */
figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

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

/* ---------- 跳过导航 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: #fff;
}

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

.container--reading {
  max-width: var(--reading);
}

/* ---------- 顶部身份条 ---------- */
.identity-bar {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 8px 0;
}

.identity-bar strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- 页头与导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand__mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-2px);
}

.brand__en {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

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

.nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  border-radius: var(--radius-control);
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

.nav a:hover {
  background: var(--wash);
}

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

.nav__cta {
  margin-left: 8px;
}

/* 移动端导航：原生 details，无需 JS 也能用 */
.nav-toggle {
  display: none;
}

.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font-size: 15px;
  color: var(--ink);
}

.nav-toggle > summary::-webkit-details-marker {
  display: none;
}

.nav-toggle[open] > summary {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 16px;
  display: grid;
  gap: 2px;
}

.nav-toggle__panel a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16px;
}

.nav-toggle__panel a:last-child {
  border-bottom: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}

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

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

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.btn--block {
  width: 100%;
}

/* ---------- 区块 ---------- */
.section {
  padding: var(--section-y) 0;
}

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

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

.section__head {
  max-width: var(--reading);
  margin: 0 0 28px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  /* 中文长标题按行宽平衡断行，避免把「院校」这类词拆到两行 */
  text-wrap: balance;
}

/* 正文避免行尾孤字 */
p,
li {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.18;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(22px, 2.6vw, 32px);
}

h3 {
  font-size: clamp(18px, 1.6vw, 22px);
}

h4 {
  font-size: 17px;
}

p {
  margin: 0 0 16px;
  max-width: var(--reading);
}

p.lead {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  line-height: 1.65;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
  max-width: var(--reading);
}

li {
  margin-bottom: 8px;
}

small,
.text-small {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 40px 0 var(--section-y);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero__media {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--wash);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero__media figcaption {
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* ---------- 要点摘要（GEO 抽取块） ---------- */
.keypoints {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 18px 20px;
  margin: 0 0 24px;
  max-width: var(--reading);
}

.keypoints__label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.keypoints p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 数字卡 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  background: #fff;
}

.stat__num {
  display: block;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- 卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: #fff;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.card--link {
  transition: border-color var(--motion-fast) var(--ease);
}

.card--link:hover {
  border-color: var(--accent);
}

.card--link a {
  text-decoration: none;
}

/* ---------- 表格 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow-x: auto;
  margin: 0 0 20px;
  background: #fff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15.5px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

th,
td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--wash);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 提示条 ---------- */
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  background: var(--wash-cool);
  margin: 0 0 20px;
  max-width: var(--reading);
}

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

.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.callout__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

/* ---------- 时间线 ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 20px 24px;
  margin: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}

.timeline__year {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 2px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--reading);
}

.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
}

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

.faq > summary::before {
  content: "+";
  flex: none;
  width: 20px;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
}

.faq[open] > summary::before {
  content: "−";
}

.faq__body {
  padding: 0 0 18px 32px;
  font-size: 16.5px;
  color: var(--ink-soft);
}

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

.faq__source {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 表单 ---------- */
.form {
  max-width: 640px;
}

.field {
  margin-bottom: 18px;
}

.field > label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field .hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field__error {
  display: none;
  color: #a3282c;
  font-size: 13.5px;
  margin-top: 6px;
}

.field--invalid .field__error {
  display: block;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: #a3282c;
}

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

/* ---------- 行动带 ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--wash);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band h2 {
  margin: 0 0 4px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  padding: 18px 0 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- 来源与更新 ---------- */
.source-note {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: var(--reading);
}

.source-note strong {
  color: var(--ink-soft);
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 40px 0 28px;
  margin-top: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 6px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-legal {
  border-top: 1px solid var(--line-strong);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0 0 6px;
  max-width: none;
}

.footer-legal strong {
  color: var(--ink-soft);
}

/* ---------- 工具类 ---------- */
.stack-sm > * + * {
  margin-top: 8px;
}

.stack > * + * {
  margin-top: 16px;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

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

.nowrap {
  white-space: nowrap;
}

.hide {
  display: none !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  :root {
    --section-y: 44px;
    --gutter: 20px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

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

  /* 窄屏改为第二行横向可滚动的导航条：链接始终可见、可点，
     不依赖 details/summary 的折叠渲染，也不会把导航藏进汉堡菜单。 */
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 0;
    min-height: 0;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav a {
    white-space: nowrap;
    border: 1px solid var(--line);
    background: #fff;
    padding: 6px 12px;
    font-size: 14.5px;
  }

  .nav a[aria-current="page"] {
    border-color: var(--accent);
  }

  .nav .nav__cta {
    margin-left: 0;
    min-height: 36px;
    padding: 0 14px;
    border-color: var(--accent);
    /* 窄屏 .nav a 的白色底会覆盖 .btn--primary，这里显式恢复强调色底与白字 */
    background: var(--accent);
    color: #fff;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 36px;
    --card-gap: 14px;
  }

  body {
    font-size: 16.5px;
  }

  .card-grid,
  .card-grid--2,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 20px;
  }

  .cta-band .btn {
    width: 100%;
  }

  .faq__body {
    padding-left: 0;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .identity-bar {
    font-size: 12px;
  }

  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 26px;
  }

  .btn {
    width: 100%;
  }

  /* 导航条内的按钮保持自适应宽度，否则会把横向导航撑成一列 */
  .nav .nav__cta {
    width: auto;
  }

  .hero__actions {
    flex-direction: column;
  }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 导航内按钮修正（.nav a 的 padding 优先级更高，需显式覆盖） ---------- */
.nav .nav__cta {
  padding: 0 18px;
  min-height: 40px;
  font-size: 15px;
  margin-left: 8px;
  color: #fff;
}

.nav .nav__cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ---------- 打印 ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .cta-band,
  .skip-link {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}