/* =========================================================
   启博服务中心 · 共享 Site Kit
   保存路径：/assets/site.css
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #0A0C10;
  --paper: #FAFAF7;
  --blue: #1B49F5;
  --night: #071634;
  --grass: #2AA89A;
  --amber: #FF7A29;
  --gravel: #D8DCE3;
  --graphite: #4A5262;
  --mint: #E3F5F1;
  --peach: #FFEAD9;

  --shell: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --stack: clamp(72px, 10vw, 140px);
  --radius: 2px;

  --font: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --line-ink: 2px solid var(--ink);
  --shadow-hard: 8px 8px 0 var(--ink);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 2. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body[data-nav-locked] { overflow: hidden; }

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

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; }
p { margin: 0 0 1.2em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

::selection { background: var(--blue); color: #fff; }

/* ---------- 3. 布局底座 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 4. 排版工具 ---------- */
.display {
  margin: 0;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.section-num {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.label-index,
.eyebrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--graphite);
}

.eyebrow { letter-spacing: 0.24em; }

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.8;
}

.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; display: grid; gap: 0.4em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* ---------- 5. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: var(--line-ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
              background-color 0.24s var(--ease), color 0.24s var(--ease);
}

.btn:hover {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--primary:hover {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 0 0 var(--ink);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  transform: translate(2px, 2px);
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 2px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
}

.tag--live { color: var(--grass); background: var(--mint); }
.tag--update { color: var(--amber); background: var(--peach); }
.tag--new { color: #FFFFFF; background: var(--blue); border-color: var(--blue); }

/* ---------- 6. 面包屑 ---------- */
.breadcrumbs {
  font-size: 12.5px;
  color: var(--graphite);
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--gravel);
}

.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid var(--gravel);
}

.breadcrumbs a:hover { border-bottom-color: var(--blue); color: var(--blue); }

/* ---------- 7. 图片容器（响应式占位） ---------- */
.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.figure-frame > img,
.figure-frame > video,
.figure-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 8. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #FFFFFF;
  background: var(--blue);
  border: var(--line-ink);
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 16px; }

/* ---------- 9. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

/* 9.1 品牌说明条 */
.brand-bar {
  position: relative;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--blue);
}

.brand-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  min-height: 58px;
  padding-block: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-mark__name {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark__sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: rgba(250, 250, 247, 0.55);
  white-space: nowrap;
}

.brand-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0 auto;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.72);
  white-space: nowrap;
}

.pulse-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse-breathe 2.8s ease-out infinite;
}

@keyframes pulse-breathe {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 41, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 122, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 41, 0); }
}

.brand-bar__meta-tail {
  color: rgba(250, 250, 247, 0.5);
}

.brand-bar__meta-tail::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-right: 10px;
  background: rgba(250, 250, 247, 0.28);
  vertical-align: -1px;
}

.brand-bar__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
              background-color 0.24s var(--ease), color 0.24s var(--ease);
}

.brand-bar__cta:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: -3px -3px 0 var(--blue);
}

/* 9.2 移动导航按钮 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
}

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), top 0.24s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* 9.3 栏目导航 */
.nav-strip {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow 0.24s var(--ease);
}

.nav-strip[data-scrolled] { box-shadow: 0 5px 0 var(--gravel); }

.nav-strip__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding-block: 12px;
  transition: padding 0.24s var(--ease);
}

.nav-strip[data-scrolled] .nav-strip__inner { padding-block: 6px; }

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

.nav-list > li { list-style: none; }

.nav-list a {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--blue);
  border-bottom-color: var(--gravel);
  transform: translateY(-2px);
}

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

.nav-strip__note {
  margin: 0 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--graphite);
  white-space: nowrap;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  margin-top: var(--stack);
  background: var(--night);
  color: var(--paper);
  border-top: 2px solid var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
}

.footer-col { min-width: 0; }
.footer-col--brand { align-self: start; }

.footer-brand {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.footer-line {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250, 250, 247, 0.66);
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grass);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  text-decoration: none;
  color: rgba(250, 250, 247, 0.86);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--blue);
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(250, 250, 247, 0.82);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--paper);
  border-radius: var(--radius);
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease),
              color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.footer-cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
  transform: translate(2px, 2px);
  box-shadow: -3px -3px 0 rgba(250, 250, 247, 0.35);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
  border-top: 1px solid rgba(250, 250, 247, 0.18);
  font-size: 12.5px;
  color: rgba(250, 250, 247, 0.6);
}

.footer-legal p { margin: 0; }

.legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.legal-links a {
  text-decoration: none;
  color: rgba(250, 250, 247, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-links a:hover {
  color: var(--paper);
  border-bottom-color: var(--blue);
}

/* ---------- 11. 全局交互元素 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
              visibility 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--blue);
}

[data-reveal] { transition: opacity 0.24s var(--ease), transform 0.24s var(--ease); }
html.js [data-reveal] { opacity: 0; transform: translateY(12px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

[data-section-nav] a[aria-current="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .brand-bar__cta { display: none; }

  .nav-strip {
    position: static;
    border-bottom: 0;
    box-shadow: none;
  }

  .nav-strip[data-scrolled] { box-shadow: none; }

  [data-nav] {
    position: fixed;
    inset: 0;
    z-index: 1;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 104px var(--gutter) 48px;
    background: var(--paper);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  [data-nav][data-open] {
    transform: none;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .nav-list > li { border-bottom: 1px solid var(--gravel); }

  .nav-list a {
    padding: 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom: 0;
    border-radius: 0;
  }

  .nav-list a:hover { transform: none; border-bottom-color: transparent; }

  .nav-list a[aria-current="page"] {
    color: var(--blue);
    padding-left: 12px;
    border-left: 4px solid var(--blue);
  }

  .nav-strip__note {
    margin: 28px 0 0;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .brand-bar__meta-tail { display: none; }
  .brand-mark__sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .figure-frame { box-shadow: 5px 5px 0 var(--ink); }
  .figure-frame--tall { aspect-ratio: 5 / 4; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-bar__meta { font-size: 11.5px; gap: 8px; }
  .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .to-top { padding: 10px 13px; font-size: 12px; }
  .footer-legal { justify-content: flex-start; }
}

/* ---------- 13. 无障碍与偏好 ---------- */
@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;
  }

  html.js [data-reveal] { opacity: 1; transform: none; }
  .to-top { transition: none; }
  .pulse-dot { animation: none; box-shadow: 0 0 0 3px rgba(255, 122, 41, 0.25); }
}
