/* components.css — 三页共用组件 */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--yellow-soft); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ── 页头 ─────────────────────────────────────────── */
.site-header {
  height: var(--h-header);
  background: var(--paper);
  position: relative;
  z-index: 30;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark { width: 34px; height: 34px; flex: none; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__sub {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 23px;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 1px;
  font-size: var(--fs-nav);
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── 通用按钮 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--small { min-height: 34px; padding: 0 16px; font-size: 12.5px; }

/* ── 区块标题 ─────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-head__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.section-head__title span { color: var(--ink-soft); font-weight: 400; }
.section-head__line {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.section-head--center {
  justify-content: center;
  text-align: center;
}
.section-head--center .section-head__line { max-width: 220px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
}
.eyebrow--pill {
  padding: 5px 12px 4px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.eyebrow--label {
  padding: 0 0 0 10px;
  border-left: 2px solid var(--yellow);
  background: none;
  color: var(--blue);
  letter-spacing: 0.14em;
}
.eyebrow--soft {
  padding: 5px 12px 4px;
  border-radius: var(--radius-pill);
  background: rgba(42, 96, 176, 0.1);
  color: var(--blue);
}

/* ── 页脚 ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  min-height: var(--h-footer);
  padding: 34px 0 20px;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand__mark { width: 40px; height: 40px; flex: none; }
.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: #fff;
  font-weight: 700;
}
.footer-brand__sub {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--on-dark-faint);
}
.footer-col__title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 10px;
}
.footer-col__list { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-col__list a,
.footer-col__note a {
  font-size: 12px;
  color: var(--on-dark);
  transition: color 0.18s var(--ease);
}
.footer-col__list a:hover,
.footer-col__note a:hover { color: var(--yellow); }
.footer-col__note a + a { margin-left: 10px; }
.footer-col__note { font-size: 11.5px; line-height: 1.7; color: var(--on-dark-faint); }
.footer-col__note a { color: var(--on-dark); }

.site-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(249, 246, 243, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--on-dark-faint);
}

.footer-brush {
  position: absolute;
  right: 24px;
  bottom: -6px;
  width: 230px;
  opacity: 0.7;
  pointer-events: none;
}

/* ── 面包屑 ───────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: var(--ink-faint); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); }

/* ── 卡片通用 ─────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  background: rgba(42, 96, 176, 0.08);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tag--sand { background: rgba(232, 184, 92, 0.2); color: #8a5d14; }

/* ── 响应式导航 ───────────────────────────────────── */
@media (max-width: 1180px) {
  .site-nav__list { gap: 15px; }
  .site-nav a { font-size: 12.5px; }
  .brand__sub { display: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--h-header);
    left: 0;
    right: 0;
    background: var(--paper-white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 18px;
    display: none;
    box-shadow: 0 14px 24px rgba(30, 36, 48, 0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a[aria-current="page"]::after { left: 0; bottom: 7px; transform: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; gap: 6px; }
  .footer-brush { width: 170px; opacity: 0.4; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 17px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .site-footer { padding-top: 28px; }
  .breadcrumb { font-size: 11.5px; }
}

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