/* =========================================================
   易博中心 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ---------- 设计变量 ---------- */
:root {
  --ink: #071C33;
  --ink-2: #0B2A4A;
  --cyan: #17D4E6;
  --cyan-soft: #8CF2F7;
  --orange: #FF8A3D;
  --orange-soft: #FFB37A;
  --mist: #F4F8FB;
  --graphite: #1A2A3A;
  --slate: #5B7186;
  --mint: #2BD9A8;

  --line-cyan: rgba(23, 212, 230, .22);
  --line-soft: rgba(140, 242, 247, .16);
  --text-dim: rgba(244, 248, 251, .72);

  --font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 40px);

  --r-lg: 26px;
  --r-md: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.16;
}
h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.32; }
h4 { font-size: 18px; line-height: 1.42; }
strong { font-weight: 700; }
::selection { background: var(--cyan); color: var(--ink); }

/* ---------- 可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 头部 · 状态轨 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--mist);
  background: var(--ink);
  border-bottom: 1px solid var(--line-cyan);
  transition: box-shadow .22s var(--ease);
}
.site-header.is-condensed {
  box-shadow: 0 18px 42px -26px rgba(0, 0, 0, .95);
}
.header-rail {
  background: #06182B;
  border-bottom: 1px solid var(--line-soft);
}
.rail-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.rail-announce {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rail-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(43, 217, 168, .16);
}
.rail-key {
  flex: none;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--cyan-soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
}
.rail-hours {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(140, 242, 247, .78);
}

/* ---------- 头部 · 命令栏 ---------- */
.header-bar {
  position: relative;
  background: linear-gradient(180deg, var(--ink) 0%, #08213A 100%);
}
.header-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  opacity: .6;
  background: repeating-linear-gradient(90deg, rgba(140, 242, 247, .52) 0 18px, transparent 18px 40px);
}
.bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--mist);
  transition: opacity .18s var(--ease);
}
.brand:hover { opacity: .86; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  border: 1px solid rgba(140, 242, 247, .5);
  background:
    radial-gradient(circle at 30% 18%, rgba(140, 242, 247, .34), transparent 62%),
    linear-gradient(160deg, var(--ink-2), var(--ink));
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(7, 28, 51, .6), 0 8px 18px -12px rgba(23, 212, 230, .9);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand-tagline {
  margin-top: 2px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(140, 242, 247, .72);
}

/* 导航 */
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 3px; }
.nav-item { display: block; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(244, 248, 251, .78);
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.nav-link:hover {
  color: var(--mist);
  background: rgba(140, 242, 247, .09);
  border-color: rgba(140, 242, 247, .3);
  transform: translateY(-1px);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--cyan);
  opacity: .72;
}
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  box-shadow: 0 0 0 3px rgba(23, 212, 230, .16);
}
.nav-link[aria-current="page"] .nav-index { color: var(--ink-2); opacity: .9; }

/* 移动开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(140, 242, 247, .38);
  color: var(--cyan-soft);
  font-size: 13px;
  font-weight: 600;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: rgba(140, 242, 247, .1); border-color: rgba(140, 242, 247, .6); }
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3px) rotate(-45deg); }
.nav-toggle-label { letter-spacing: .06em; }

/* 滚动进度 */
.header-progress { height: 2px; background: rgba(140, 242, 247, .12); }
.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width .12s linear;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn-cta {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 14px 28px -16px rgba(255, 138, 61, .95);
}
.btn-cta:hover { background: var(--orange-soft); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(140, 242, 247, .42);
  background: rgba(140, 242, 247, .04);
  color: var(--cyan-soft);
}
.btn-ghost:hover {
  border-color: var(--cyan-soft);
  background: rgba(140, 242, 247, .12);
  transform: translateY(-1px);
}
.header-cta { flex: none; margin-left: 4px; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--mist);
  border-top: 1px solid var(--line-cyan);
}
.footer-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(23, 212, 230, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 212, 230, .09) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%, #000 100%);
}
.footer-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) var(--pad) 0;
}
.footer-top {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.45fr) minmax(130px, .68fr)
    minmax(130px, .68fr) minmax(235px, 1.05fr);
  gap: clamp(24px, 3.6vw, 52px);
}
.footer-brand-col { max-width: 380px; }
.brand-footer { margin-bottom: 18px; }
.footer-summary {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-dim);
}
.footer-cta { margin-top: 22px; }
.footer-col { min-width: 0; }
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cyan-soft);
}
.col-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  border: 1px solid rgba(140, 242, 247, .4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--cyan);
}
.footer-links { display: grid; gap: 11px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(244, 248, 251, .74);
  transition: color .18s var(--ease);
}
.footer-link::before {
  content: "";
  width: 8px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  transition: width .18s var(--ease), opacity .18s var(--ease);
}
.footer-link:hover { color: var(--cyan-soft); }
.footer-link:hover::before { width: 18px; opacity: 1; }

/* 联系档案 */
.contact-list { display: grid; gap: 2px; }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(140, 242, 247, .18);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: 0; }
.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(140, 242, 247, .6);
}
.contact-val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  overflow-wrap: anywhere;
}

/* 法务行 */
.footer-legal {
  margin-top: clamp(34px, 5vw, 58px);
  padding: 20px 0 28px;
  border-top: 1px solid rgba(140, 242, 247, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-size: 12.5px;
  color: rgba(244, 248, 251, .6);
}
.legal-icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  color: rgba(140, 242, 247, .7);
}
.legal-copy { flex: 1 1 260px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-left: auto; }
.legal-link {
  color: rgba(244, 248, 251, .72);
  text-decoration: underline;
  text-decoration-color: rgba(140, 242, 247, .32);
  text-underline-offset: 4px;
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
.legal-link:hover { color: var(--cyan-soft); text-decoration-color: var(--cyan-soft); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.6vw, 26px);
  bottom: clamp(14px, 2.6vw, 26px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 17px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(140, 242, 247, .42);
  background: rgba(11, 42, 74, .94);
  color: var(--cyan-soft);
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s var(--ease), transform .2s var(--ease),
              visibility .2s var(--ease), background .2s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--ink-2); border-color: var(--cyan-soft); }
.to-top-arrow { font-size: 14px; line-height: 1; }

/* ---------- 通用构件 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: clamp(44px, 7vw, 88px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(140, 242, 247, .34);
  background: rgba(140, 242, 247, .07);
  color: var(--cyan-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

.card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(26, 42, 58, .1);
  background: var(--mist);
  color: var(--graphite);
  box-shadow: 0 26px 52px -42px rgba(7, 28, 51, .95);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-cyan);
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 212, 230, .22), transparent 58%),
    linear-gradient(150deg, var(--ink-2), var(--ink));
}
.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: inherit;
  opacity: .82;
}
.breadcrumb a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  opacity: .9;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { opacity: .55; }

.toc {
  position: sticky;
  top: 108px;
  align-self: start;
}
.toc-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.toc-list { display: grid; gap: 2px; }
.toc-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid rgba(140, 242, 247, .22);
  font-size: 14px;
  line-height: 1.6;
  color: inherit;
  opacity: .76;
  transition: border-color .18s var(--ease), opacity .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
}
.toc-link:hover { opacity: 1; border-left-color: var(--cyan); }
.toc-link[data-active="true"] {
  opacity: 1;
  font-weight: 700;
  border-left-color: var(--orange);
  background: rgba(255, 138, 61, .12);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .brand-tagline { display: none; }
  .nav-link { padding: 8px 10px; }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 12px var(--pad) 20px;
    background: #08203A;
    border-top: 1px solid var(--line-cyan);
    border-bottom: 1px solid var(--line-cyan);
    box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .98);
  }
  .nav[data-open="true"] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(140, 242, 247, .05);
    font-size: 15px;
  }
  .nav-link[aria-current="page"] { background: var(--cyan-soft); }
}

@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand-col { grid-column: 1 / -1; max-width: none; }
  .legal-links { margin-left: 0; }
}

@media (max-width: 760px) {
  .rail-hours { display: none; }
  .rail-inner { justify-content: flex-start; }
  .rail-announce { white-space: normal; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
  .brand-name { font-size: 17.5px; }
  .bar-inner { padding: 10px var(--pad); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  .to-top { padding: 9px 14px; font-size: 12.5px; }
  .toc { position: static; }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
