/* ============================================================
   188电子站 · 共享样式 /assets/site.css
   深海蓝基底 + 电子青描边 + 信号黄强调 · 极简文字建筑
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; }

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 变量 ---------- */
:root {
  --ink: #061A2E;
  --panel: #0C2B47;
  --cyan: #2FD3E0;
  --signal: #FFC93C;
  --graphite: #26303A;
  --mist: #E8F1F5;
  --muted: #8496A6;
  --grad-a: #123E5C;
  --grad-b: #0A2237;
  --warn: #FF7A59;

  --line: rgba(47, 211, 224, 0.20);
  --line-soft: rgba(47, 211, 224, 0.10);
  --line-strong: rgba(47, 211, 224, 0.45);

  --font-head: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono",
               Consolas, "Courier New", monospace;

  --shell: 1180px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --cut: 14px;
  --cut-corners: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 中文排版基线 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--mist);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(47, 211, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 211, 224, 0.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; }

p { max-width: 100%; }
strong { font-weight: 700; color: var(--mist); }
em { font-style: normal; color: var(--signal); }

code, kbd, samp, time, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

::selection {
  background: rgba(255, 201, 60, 0.28);
  color: #fff;
}

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

.page-main {
  flex: 1 1 auto;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.grid--7-5 > *:nth-child(1) { grid-column: span 7; }
.grid--7-5 > *:nth-child(2) { grid-column: span 5; }
.grid--5-3 > *:nth-child(1) { grid-column: span 5; }
.grid--5-3 > *:nth-child(2) { grid-column: span 3; }
.grid--4-4-4 > * { grid-column: span 4; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  clip-path: var(--cut-corners);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 26, 46, 0.96);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.site-header__shell {
  position: relative;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-block: 20px;
  transition: padding 0.3s var(--ease);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.masthead__mark {
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.35);
}

.masthead__wordmark {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mist);
  white-space: nowrap;
}

.masthead__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.masthead__meta-line {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-indent: 0.34em;
}

.masthead__version {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--signal);
  border: 1px solid rgba(255, 201, 60, 0.4);
  padding: 2px 7px;
  clip-path: var(--cut-corners);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 按钮与标签 */
.signal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  clip-path: var(--cut-corners);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.signal-btn:hover { background: #FFD869; transform: translateY(-2px); }
.signal-btn:active { transform: translateY(0); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  clip-path: var(--cut-corners);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.ghost-btn:hover { border-color: var(--cyan); color: var(--mist); transform: translateY(-2px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 9px 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  clip-path: var(--cut-corners);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { color: var(--cyan); border-color: var(--line-strong); }

.chip--ghost {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: rgba(47, 211, 224, 0.06);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.16em;
  clip-path: var(--cut-corners);
  cursor: pointer;
  justify-self: end;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  display: block;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: var(--signal); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); background: var(--signal); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); background: var(--signal); }

/* 刊头导航线 */
.pressline {
  border-top: 1px solid var(--line-soft);
}

.pressline__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3.2vw, 3rem);
  flex-wrap: wrap;
}

.pressline__list a {
  position: relative;
  display: inline-block;
  padding: 15px 2px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.pressline__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.pressline__list a:hover { color: var(--mist); }
.pressline__list a:hover::after { transform: scaleX(1); }

.pressline__list a[aria-current="page"] { color: var(--mist); }
.pressline__list a[aria-current="page"]::after { transform: scaleX(1); }

/* 滚动状态与进度 */
.site-header[data-scrolled="true"] {
  background: rgba(6, 26, 46, 0.99);
  border-bottom-color: var(--line-strong);
}
.site-header[data-scrolled="true"] .masthead { padding-block: 10px; }
.site-header[data-scrolled="true"] .masthead__meta { opacity: 0; visibility: hidden; }
.site-header[data-scrolled="true"] .pressline__list a { padding-block: 11px; }
.site-header[data-scrolled="true"] .pressline__list a::after { bottom: 6px; }

.masthead__meta { transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--signal));
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, rgba(12, 43, 71, 0.55) 0%, rgba(6, 26, 46, 1) 60%);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: 15px;
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.footer-tag {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer-tag__ver {
  font-family: var(--font-mono);
  color: var(--signal);
  letter-spacing: 0.06em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 2.25rem;
}

.footer-col__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-list { display: grid; gap: 8px; color: var(--muted); }
.footer-list a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-list a:hover { color: var(--cyan); border-bottom-color: var(--line-strong); }

.footer-list--plain { color: var(--muted); }
.footer-strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  word-break: break-all;
}

.footer-contact {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* 年度刻度轨道 */
.yearrail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.yearrail__label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  white-space: nowrap;
}

.yearrail__list {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.yearrail__list::-webkit-scrollbar { height: 4px; }
.yearrail__list::-webkit-scrollbar-thumb { background: var(--line-strong); }

.rail-node {
  position: relative;
  padding: 4px 20px 4px 20px;
  border-left: 1px solid var(--line-soft);
  flex: none;
}
.rail-node::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 8px;
  background: var(--line-strong);
}
.rail-node:last-child { border-right: 1px solid var(--line-soft); }

.rail-node__year {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.rail-node:hover .rail-node__year { color: var(--signal); }

.yearrail__link {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.yearrail__link:hover { color: var(--signal); }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal__copy { font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-legal__note { letter-spacing: 0.02em; }

.footer-legal__links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal__links a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-legal__links a:hover { color: var(--cyan); border-bottom-color: var(--line-strong); }

/* ============================================================
   通用内容组件（页面阶段复用）
   ============================================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: rgba(132, 150, 166, 0.6);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-indent: 0.3em;
}

.eyebrow--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.bignum {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 211, 224, 0.55);
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.8;
  color: rgba(232, 241, 245, 0.88);
}
.lede__measure { max-width: 34em; }

.cutpanel {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 62, 92, 0.72), rgba(10, 34, 55, 0.9));
  border: 1px solid var(--line);
  clip-path: var(--cut-corners);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}
.cutpanel:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.cutpanel--quiet {
  background: rgba(38, 48, 58, 0.45);
  border-color: rgba(47, 211, 224, 0.12);
}

.divider-slash {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 35%, var(--line-strong) 65%, transparent);
  margin-block: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}
.divider-slash::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--ink);
  border: 1px solid var(--line-strong);
}

/* 图片容器基础规则 */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--grad-a), var(--grad-b)),
    var(--panel);
  border: 1px solid var(--line);
  clip-path: var(--cut-corners);
}
.frame__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--portrait { aspect-ratio: 3 / 4; }
.frame__cap {
  display: block;
  padding: 10px 14px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* 展开内容组 */
.disclosure {
  border: 1px solid var(--line);
  clip-path: var(--cut-corners);
  background: rgba(12, 43, 71, 0.5);
  transition: border-color 0.25s var(--ease);
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure[open] { border-color: var(--line-strong); }
.disclosure summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--mist);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cyan);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.disclosure[open] summary::after { transform: rotate(45deg); color: var(--signal); }
.disclosure__body {
  padding: 0 20px 20px;
  color: rgba(232, 241, 245, 0.82);
  font-size: 15.5px;
}

/* 进入视口显现 */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .grid--7-5 > *:nth-child(1) { grid-column: span 7; }
  .grid--7-5 > *:nth-child(2) { grid-column: span 5; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body { font-size: 16.5px; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 14px;
  }
  .masthead__meta { display: none; }
  .masthead__actions { display: none; }

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

  .pressline {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    z-index: 95;
  }
  .pressline[data-open="true"] { display: block; }

  .pressline__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }
  .pressline__list a {
    display: block;
    padding: 15px var(--gutter);
    font-size: 14px;
    letter-spacing: 0.18em;
    border-bottom: 1px solid var(--line-soft);
  }
  .pressline__list a::after {
    left: var(--gutter);
    right: auto;
    bottom: 50%;
    width: 3px;
    height: 16px;
    transform: translateY(50%) scaleY(0);
    transform-origin: center bottom;
  }
  .pressline__list a:hover::after,
  .pressline__list a[aria-current="page"]::after { transform: translateY(50%) scaleY(1); }
  .pressline__list a[aria-current="page"] { color: var(--cyan); }

  .grid,
  .grid--4-4-4 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--7-5 > *,
  .grid--5-3 > *,
  .grid--4-4-4 > * { grid-column: span 6; }

  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 620px) {
  :root { --cut: 11px; }

  .masthead__wordmark { font-size: 1.05rem; }
  .nav-toggle { padding: 8px 12px; }

  .grid,
  .grid--4-4-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .grid--7-5 > *,
  .grid--5-3 > *,
  .grid--4-4-4 > * { grid-column: span 1; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .yearrail { align-items: flex-start; }
  .yearrail__list { width: 100%; }
  .rail-node { padding-inline: 14px; }

  .footer-legal { flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .cutpanel:hover,
  .signal-btn:hover,
  .ghost-btn:hover { transform: none; }
}
