/* ==========================================================
   188电子指南 · /assets/site.css
   共享外壳：头部 / 页脚 / 排版基座 / 通用组件
   ========================================================== */

/* ---------- 0 · Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p, li, dd { overflow-wrap: anywhere; }

#main-content { scroll-margin-top: 120px; }

/* ---------- 1 · 变量 ---------- */
:root {
  --deep: #0A2A5E;
  --deep-2: #123E7C;
  --deep-ink: #061c3f;
  --orange: #FF6B35;
  --orange-soft: #FF9A6B;
  --teal: #0F4C4A;
  --plum: #4A2340;
  --silver: #C7D3E2;
  --paper-blue: #EEF3FA;
  --paper: #FBF7F1;
  --ink: #1A2230;
  --ink-soft: rgba(26, 34, 48, .66);
  --green: #2E7D6B;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-label: "Barlow Condensed", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --line: 2px;
  --shadow-hard: 6px 6px 0 rgba(10, 42, 94, .16);
  --shadow-hard-lg: 10px 10px 0 rgba(10, 42, 94, .22);
  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2 · 基座排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--deep);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
h4 { font-weight: 700; font-size: 1rem; letter-spacing: 0; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

::selection { background: var(--orange-soft); color: var(--ink); }

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

/* ---------- 3 · 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.divider { height: var(--line); border: 0; background: var(--silver); }

/* ---------- 4 · 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #101a2c;
  background: var(--orange);
  border: var(--line) solid #101a2c;
  box-shadow: 4px 4px 0 rgba(6, 20, 45, .55);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5 · 头部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--paper);
  background: var(--deep);
  border-bottom: var(--line) solid var(--deep-ink);
  box-shadow: 0 8px 0 rgba(10, 42, 94, .12);
  isolation: isolate;
}
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .07) 0 24%, transparent 24%),
    linear-gradient(292deg, rgba(255, 107, 53, .16) 0 16%, transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 70%);
}

.head-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--shell);
  min-height: 78px;
  margin: 0 auto;
  padding: 12px var(--gutter) 14px;
}

/* 品牌钢印 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--paper);
}
.brand-code {
  display: inline-block;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #101a2c;
  background: var(--orange);
  box-shadow: 4px 4px 0 rgba(6, 20, 45, .55);
  transform: skewX(-6deg);
  transition: transform .18s var(--ease);
}
.brand:hover .brand-code { transform: skewX(-6deg) translate(-2px, -2px); }
.brand-body { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.brand-sub {
  font-family: var(--font-label);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .1em;
  color: rgba(251, 247, 241, .58);
}

/* 展览式导航 */
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border: var(--line) solid transparent;
  color: rgba(251, 247, 241, .76);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-seq {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  color: var(--orange-soft);
}
.nav-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(199, 211, 226, .38);
}
.nav-link[aria-current="page"] {
  color: var(--deep);
  background: var(--paper);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 rgba(255, 107, 53, .6);
}
.nav-link[aria-current="page"] .nav-seq { color: var(--deep-2); }

/* 头部行动标签 */
.head-cta {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #101a2c;
  background: var(--orange);
  border: var(--line) solid #101a2c;
  box-shadow: 4px 4px 0 rgba(6, 20, 45, .5);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.head-cta:hover {
  background: var(--orange-soft);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(6, 20, 45, .55);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, .04);
  border: var(--line) solid rgba(199, 211, 226, .5);
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .12); border-color: var(--orange); }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}
.site-head[data-open="true"] .nav-toggle { border-color: var(--orange); background: rgba(255, 107, 53, .18); }
.site-head[data-open="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-head[data-open="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-head[data-open="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 阅读进度刻线 */
.head-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .13);
  overflow: hidden;
}
.head-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  transition: width .12s linear;
}

/* ---------- 6 · 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: 96px;
  overflow: hidden;
  color: var(--paper);
  background: var(--deep);
  border-top: 6px solid var(--orange);
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .05) 0 28%, transparent 28%),
    linear-gradient(340deg, rgba(255, 107, 53, .16) 0 14%, transparent 14%),
    radial-gradient(120% 90% at 100% 0, rgba(255, 107, 53, .12), transparent 62%);
}

.foot-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.55fr);
  gap: 48px 64px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--gutter) 52px;
}

.foot-lead { display: flex; flex-direction: column; align-items: flex-start; }
.foot-brand {
  display: inline-block;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--paper);
  border-bottom: 3px solid var(--orange);
}
.foot-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(251, 247, 241, .74);
}
.foot-sync {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--orange-soft);
  background: rgba(255, 107, 53, .16);
  border: var(--line) solid rgba(255, 107, 53, .5);
}
.foot-line {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(251, 247, 241, .68);
}
.foot-addr {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(251, 247, 241, .52);
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}
.foot-col { min-width: 0; }
.foot-col-title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-soft);
  border-bottom: var(--line) solid rgba(199, 211, 226, .26);
}
.foot-list { display: flex; flex-direction: column; gap: 2px; }
.foot-link {
  display: inline-block;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(251, 247, 241, .8);
  border-bottom: var(--line) solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.foot-link:hover {
  color: #ffffff;
  border-bottom-color: var(--orange);
  transform: translateX(4px);
}

.foot-base {
  position: relative;
  z-index: 1;
  background: var(--teal);
  border-top: var(--line) solid rgba(255, 255, 255, .16);
}
.foot-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.foot-legal {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(251, 247, 241, .8);
  font-variant-numeric: tabular-nums;
}
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-mini-link {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(251, 247, 241, .74);
  padding-bottom: 2px;
  border-bottom: var(--line) solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.foot-mini-link:hover { color: #ffffff; border-bottom-color: var(--orange-soft); }

/* ---------- 7 · 通用文字组件 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--deep-2);
}
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #101a2c;
  background: var(--orange-soft);
  border: var(--line) solid #101a2c;
}
.tag--deep { color: var(--paper); background: var(--deep); border-color: var(--deep-ink); }
.annotation {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .3em;
  color: var(--deep-2);
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* ---------- 8 · 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(10, 42, 94, .2); }
.btn--solid { color: #101a2c; background: var(--orange); border-color: #101a2c; }
.btn--deep { color: var(--paper); background: var(--deep); border-color: var(--deep-ink); }
.btn--ghost {
  color: var(--deep);
  background: transparent;
  border-color: var(--deep);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--paper-blue); transform: none; box-shadow: none; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- 9 · 面包屑 ---------- */
.breadcrumb { padding: 26px 0 0; }
.crumb-list { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-soft); }
.crumb-list > li { display: flex; align-items: center; gap: 10px; }
.crumb-list > li + li::before { content: "/"; color: var(--silver); }
.crumb-link {
  padding-bottom: 2px;
  color: var(--deep-2);
  border-bottom: var(--line) solid transparent;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.crumb-link:hover { color: var(--deep); border-bottom-color: var(--orange); }
.crumb-current { font-weight: 700; color: var(--ink); }

/* ---------- 10 · 正文容器 ---------- */
.prose { max-width: 680px; font-size: 17px; line-height: 1.85; color: var(--ink); }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; margin-bottom: .6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.2em; }
.prose ul li, .prose ol li { margin-bottom: .5em; list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--deep-2); border-bottom: var(--line) solid var(--orange-soft); }
.prose a:hover { border-bottom-color: var(--orange); }

/* ---------- 11 · 网格 ---------- */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }

/* ---------- 12 · 面板与卡片 ---------- */
.panel {
  padding: 28px 26px;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.panel--deep { color: var(--paper); background: var(--deep); border-color: var(--deep-ink); }
.panel--deep h2, .panel--deep h3 { color: var(--paper); }
.panel--teal { color: var(--paper); background: var(--teal); border-color: #0a3735; }
.panel--teal h2, .panel--teal h3 { color: var(--paper); }
.panel--plum { color: var(--paper); background: var(--plum); border-color: #341830; }
.panel--plum h2, .panel--plum h3 { color: var(--paper); }

.card {
  min-height: 220px;
  background: #ffffff;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard-lg); }

/* ---------- 13 · 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(10, 42, 94, .1) 0 40%, transparent 40%),
    var(--paper-blue);
  border: var(--line) solid var(--ink);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s var(--ease);
}
.media-frame:hover > img { transform: scale(1.03); }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

/* ---------- 14 · 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 9px 9px; }
  .nav-label { font-size: 15px; }
  .head-cta { padding: 9px 15px; font-size: 14px; }
}

@media (max-width: 960px) {
  .head-shell { min-height: 70px; gap: 10px; }
  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: 72vh;
    overflow-y: auto;
    padding: 14px var(--gutter) 24px;
    background: var(--deep);
    border-top: var(--line) solid rgba(199, 211, 226, .28);
    border-bottom: 4px solid var(--orange);
    box-shadow: 0 26px 44px rgba(4, 14, 32, .55);
  }
  .site-head[data-open="true"] .site-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-item { display: block; }
  .nav-link {
    justify-content: flex-start;
    padding: 13px 12px;
    border-bottom: var(--line) solid rgba(199, 211, 226, .18);
  }
  .nav-link[aria-current="page"] { box-shadow: none; }
  .nav-label { font-size: 17px; }

  .section { padding: 64px 0; }
  .section--tight { padding: 40px 0; }

  .grid--7-5, .grid--8-4, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }

  .foot-shell { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 52px; padding-bottom: 42px; }
  .site-foot { margin-top: 64px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .head-cta { display: none; }
  .foot-nav { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-base-inner { flex-direction: column; align-items: flex-start; }
  .foot-brand { font-size: 22px; }
  .panel { padding: 22px 18px; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- 15 · 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .card:hover, .btn:hover, .foot-link:hover, .media-frame:hover > img, .brand:hover .brand-code {
    transform: none;
  }
  .head-meter-fill { transition: none; }
}
