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

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

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

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #101820;
  background-color: #F1FBFD;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --snow-50: #F1FBFD;
  --snow-200: #B8EEF5;
  --teal-600: #0E8FA3;
  --teal-900: #064E5A;
  --track-600: #C74612;
  --track-700: #A93A0D;
  --track-300: #FFB38A;
  --void-900: #0B1B3A;
  --pulse-400: #8EF25C;
  --ink-900: #101820;
  --neutral-500: #5C6B73;
  --paper: #FFFFFF;
  --amber: #A86500;

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --pill: 999px;

  --shell: 1200px;
  --gap: clamp(16px, 2.4vw, 32px);
  --ease: 220ms cubic-bezier(.2, .7, .3, 1);

  --shadow-1: 0 6px 18px rgba(11, 27, 58, .08);
  --shadow-2: 0 14px 34px rgba(11, 27, 58, .16);

  --font-mono: "Barlow Condensed", "DIN Condensed", "Oswald", "Roboto Condensed", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--teal-900);
}

h1 { font-size: clamp(34px, 5.2vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.02em; }
h4 { font-size: 17px; letter-spacing: -0.01em; }

p { margin: 0; }
img, svg, picture, video { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--track-600); }

[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--snow-50);
}

.skip-link {
  position: absolute;
  left: var(--gap);
  top: -80px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--void-900);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.brand-strip {
  position: relative;
  background: var(--void-900);
  color: #F1FBFD;
}
.brand-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--track-600) 0%, var(--track-300) 26%, var(--pulse-400) 48%, rgba(142, 242, 92, 0) 86%);
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding-block: 11px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-glyph {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--track-300);
  font-variant-numeric: tabular-nums;
}
.brand-word {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-note {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(142, 242, 92, .38);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(241, 251, 253, .74);
  white-space: nowrap;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.quick-search { position: relative; }

.quick-search-input {
  appearance: none;
  -webkit-appearance: none;
  width: 168px;
  padding: 8px 15px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: rgba(241, 251, 253, .08);
  border: 1px solid rgba(184, 238, 245, .34);
  border-radius: var(--pill);
  transition: border-color var(--ease), background-color var(--ease), width var(--ease);
}
.quick-search-input::placeholder { color: rgba(241, 251, 253, .55); }
.quick-search-input:focus {
  outline: 2px solid var(--pulse-400);
  outline-offset: 2px;
  background: rgba(241, 251, 253, .15);
  border-color: var(--pulse-400);
}

.quick-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--snow-200);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  max-height: 60vh;
  overflow-y: auto;
}

.quick-search-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-900);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color var(--ease), color var(--ease);
}
.quick-search-link:hover,
.quick-search-link:focus-visible {
  background: var(--snow-50);
  color: var(--track-600);
}

.quick-search-empty {
  padding: 10px 11px;
  font-size: 13px;
  color: var(--neutral-500);
}

.support-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  color: rgba(241, 251, 253, .82);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse-400);
  box-shadow: 0 0 0 3px rgba(142, 242, 92, .2);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.82); }
}

.nav-strip {
  position: relative;
  background: var(--snow-50);
  border-bottom: 1px solid rgba(6, 78, 90, .14);
}
.nav-strip::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: min(240px, 32%);
  background: var(--track-600);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.nav-strip-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--teal-900);
  border: 1px solid rgba(6, 78, 90, .28);
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.nav-toggle:hover { background: var(--snow-200); }
.nav-toggle[aria-expanded="true"] {
  background: var(--track-600);
  border-color: var(--track-600);
  color: #fff;
}

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle-text { line-height: 1; }

.nav-bar { display: flex; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 15px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-900);
  text-decoration: none;
  transition: color var(--ease), transform var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 4px;
  background: var(--track-600);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--ease), transform var(--ease);
}
.nav-link:hover {
  color: var(--track-600);
  transform: translateY(-1px);
}
.nav-link:hover::after { opacity: .38; transform: translateX(0); }

.nav-link[aria-current="page"] { color: var(--track-600); }
.nav-link[aria-current="page"]::after { opacity: 1; transform: translateX(0); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  background: var(--void-900);
  color: #E8F4F7;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--track-600) 0%, var(--track-300) 42%, var(--pulse-400) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 52%, 0 100%);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(34px, 4vw, 60px) var(--gap) 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(22px, 3vw, 46px);
}

.footer-block { min-width: 0; }

.footer-logo {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(232, 244, 247, .72);
  max-width: 32ch;
}

.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(232, 244, 247, .84);
  word-break: break-word;
}
.footer-contact p { margin: 0; }

.contact-key {
  display: inline-block;
  min-width: 62px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--snow-200);
}

.footer-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pulse-400);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-list a {
  display: inline-block;
  padding-block: 3px;
  font-size: 14.5px;
  color: rgba(232, 244, 247, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease), transform var(--ease);
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
  border-bottom-color: var(--track-300);
  transform: translateX(3px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(26px, 3vw, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(184, 238, 245, .16);
  font-size: 13px;
  color: rgba(232, 244, 247, .62);
}
.footer-legal p { margin: 0; }

.icp { letter-spacing: 0.02em; }

/* ---------- 正文容器与排版组件 ---------- */
.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gap);
  padding-block: clamp(28px, 4vw, 56px);
}

.section { padding-block: clamp(28px, 4vw, 56px); }

.eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--track-600);
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--teal-900);
}

.lede {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.75;
  color: var(--neutral-500);
  max-width: 62ch;
}

.metric {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--track-600);
  font-variant-numeric: tabular-nums;
}

.annotation {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  color: var(--neutral-500);
}

.rule-slash {
  height: 8px;
  border: 0;
  margin: clamp(22px, 3vw, 38px) 0;
  background: linear-gradient(90deg, var(--track-600) 0%, var(--track-300) 34%, var(--snow-200) 68%, rgba(184, 238, 245, 0) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

/* ---------- 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--track-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(199, 70, 18, .24);
}
.btn-primary:hover {
  background: var(--track-700);
  color: #fff;
  box-shadow: 0 12px 26px rgba(199, 70, 18, .3);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-900);
  border-color: rgba(6, 78, 90, .32);
}
.btn-ghost:hover {
  background: var(--snow-200);
  border-color: var(--teal-600);
  color: var(--teal-900);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--teal-900);
  background: var(--snow-200);
  border-radius: var(--pill);
  text-decoration: none;
}
.chip--track {
  background: rgba(199, 70, 18, .12);
  color: var(--track-600);
}
.chip--pulse {
  background: rgba(142, 242, 92, .3);
  color: #14532D;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-900);
  background: var(--snow-50);
  border: 1px solid rgba(6, 78, 90, .18);
  border-radius: 8px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--neutral-500);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
  color: rgba(6, 78, 90, .3);
}
.breadcrumb a {
  color: var(--teal-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}
.breadcrumb a:hover { color: var(--track-600); border-bottom-color: var(--track-300); }
.breadcrumb [aria-current="page"] { color: var(--teal-900); font-weight: 600; }

/* ---------- 网格与卡片 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--paper);
  border: 1px solid rgba(6, 78, 90, .1);
  border-radius: var(--radius-m);
  padding: clamp(16px, 2vw, 26px);
  box-shadow: var(--shadow-1);
}

.archive-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--paper);
  border: 1px solid rgba(6, 78, 90, .12);
  border-radius: var(--radius-l);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.archive-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--track-600), var(--track-300));
  transition: width var(--ease);
}
.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: rgba(14, 143, 163, .3);
}
.archive-card:hover::before { width: 10px; }

/* ---------- 可复用图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(6, 78, 90, .08);
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--snow-200) 0%, #E4F7FB 46%, var(--snow-50) 100%);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
  background: rgba(11, 27, 58, .72);
  border-radius: var(--pill);
  backdrop-filter: blur(2px);
}

/* ---------- 滚动显现 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .brand-note { display: none; }
  .quick-search-input { width: 140px; }

  .nav-toggle { display: inline-flex; }

  .nav-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px var(--gap) 18px;
    background: var(--paper);
    border-bottom: 2px solid var(--snow-200);
    box-shadow: var(--shadow-2);
    z-index: 80;
  }
  .nav-bar[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
  }
  .nav-bar[data-open="true"] .nav-list { display: flex; }

  .nav-link {
    display: block;
    padding: 13px 6px;
    border-bottom: 1px dashed rgba(6, 78, 90, .16);
  }
  .nav-link::after {
    left: 6px;
    right: auto;
    bottom: 8px;
    width: 36px;
  }
  .nav-link:hover { transform: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .support-note { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .brand-glyph { font-size: 22px; }
  .brand-word { font-size: 13.5px; }
  .quick-search-input { width: 112px; padding: 7px 12px; font-size: 12.5px; }
  .header-tools { gap: 10px; }
  .quick-search-results { right: auto; left: 0; min-width: 200px; }

  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .media-frame,
  .media-frame--wide { aspect-ratio: 3 / 2; }
  .media-frame--tall { aspect-ratio: 4 / 5; }

  .btn { padding: 11px 20px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
