/* 远盛通信 · 技术资料站
   纯静态、零 JS 依赖、面向可读性与机器解析 */

:root {
  --ink: #14181c;
  --ink-2: #4a525b;
  --ink-3: #767e88;
  --line: #e2ded4;
  --line-2: #efece4;
  --bg: #fdfcf8;
  --panel: #ffffff;
  --accent: #0b4a8f;
  --accent-2: #146fb8;
  --accent-soft: #eef4fa;
  --green: #0d6f5c;
  --green-soft: #e8f4f0;
  --amber: #8a5a00;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
          "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --maxw: 812px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.78;
  letter-spacing: .005em;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- 顶栏 ---------- */
.shell-head {
  border-bottom: 1px solid var(--line);
  background: rgba(253, 252, 248, .92);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(8px);
}
.shell-head .in {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: baseline; gap: 9px; color: var(--ink); }
.brand b { font-size: 16px; letter-spacing: .12em; font-weight: 700; }
.brand span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.brand:hover { text-decoration: none; }

.topnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a {
  color: var(--ink-2); font-size: 14px; padding: 7px 11px; border-radius: 5px;
}
.topnav a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.topnav a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

main { display: block; padding: 34px 0 72px; }

.crumb {
  font-size: 13px; color: var(--ink-3); margin: 0 0 22px;
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--accent); }
.crumb i { color: #c3bdb1; font-style: normal; }

/* ---------- 标题 ---------- */
h1 {
  font-size: 31px; line-height: 1.34; letter-spacing: -.01em;
  margin: 0 0 6px; font-weight: 700;
}
.subtitle { font-size: 14px; color: var(--ink-3); margin: 0 0 26px; letter-spacing: .04em; }
h2 {
  font-size: 20px; margin: 46px 0 14px; font-weight: 700;
  letter-spacing: -.005em;
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
h3 { font-size: 16.5px; margin: 30px 0 10px; font-weight: 700; color: var(--ink); }
h4 { font-size: 15px; margin: 22px 0 8px; font-weight: 700; color: var(--ink-2); }

p { margin: 0 0 15px; }
strong { font-weight: 700; }

/* ---------- TL;DR 定义块 ---------- */
.tldr {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 20px 22px 18px;
  margin: 0 0 30px;
  border-radius: 3px;
}
.tldr .tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .16em;
  color: var(--accent); font-weight: 700; margin-bottom: 9px;
  text-transform: uppercase;
}
.tldr p { margin: 0; font-size: 17px; line-height: 1.72; color: var(--ink); }
.tldr .en { display: block; margin-top: 9px; font-size: 13px; color: var(--ink-3); }

/* ---------- 事实表 ---------- */
.facts {
  width: 100%; border-collapse: collapse; margin: 20px 0 8px;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}
.facts th, .facts td {
  text-align: left; padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line-2); vertical-align: top;
}
.facts th {
  width: 168px; color: var(--ink-3); font-weight: 500;
  white-space: nowrap; font-size: 13.5px;
}
.facts td { color: var(--ink); }

/* ---------- 参数表 ---------- */
.spec {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14.5px;
}
.spec th {
  background: #f6f4ee; text-align: left; padding: 10px 14px;
  border: 1px solid var(--line); font-weight: 600; font-size: 13.5px;
  color: var(--ink-2);
}
.spec td { padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }

/* ---------- 列表 ---------- */
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 7px; }
li::marker { color: #a8a196; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 14px; margin: 22px 0 10px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: 4px; padding: 18px 18px 16px; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover {
  text-decoration: none; border-color: #c9d6e5;
  box-shadow: 0 3px 14px rgba(11, 74, 143, .07); transform: translateY(-1px);
}
.card .k {
  font-size: 10.5px; letter-spacing: .13em; color: var(--ink-3);
  text-transform: uppercase; font-weight: 600;
}
.card h3 { margin: 7px 0 7px; font-size: 16px; line-height: 1.45; }
.card p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.card .go { display: inline-block; margin-top: 11px; font-size: 12.5px; color: var(--accent); }

/* ---------- 首页 ---------- */
.hero { padding: 52px 0 12px; }
.hero .eyebrow {
  font-size: 11.5px; letter-spacing: .22em; color: var(--accent);
  font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: 40px; line-height: 1.26; letter-spacing: -.02em; max-width: 15em; }
.hero .lede {
  font-size: 18px; color: var(--ink-2); line-height: 1.72; max-width: 34em;
  margin: 20px 0 0;
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 44px 0 8px;
}
.stats div { padding: 22px 20px 22px 0; }
.stats div + div { border-left: 1px solid var(--line-2); padding-left: 22px; }
.stats b { display: block; font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.stats span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }

.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 4px; }
.sec-head h2 { margin: 0; border: 0; padding: 0; flex: none; }
.sec-head .line { flex: 1; height: 1px; background: var(--line); }
.sec-head a { font-size: 13px; white-space: nowrap; }
.sec-desc { font-size: 14.5px; color: var(--ink-2); margin: 10px 0 0; }

/* ---------- 问答 ---------- */
.qa { border-top: 1px solid var(--line); margin: 18px 0 0; }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary {
  cursor: pointer; padding: 16px 30px 16px 0; font-weight: 600;
  font-size: 16px; position: relative; list-style: none; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 4px; top: 15px;
  color: var(--ink-3); font-size: 18px; font-weight: 400;
}
.qa details[open] summary::after { content: "−"; }
.qa .a { padding: 0 30px 18px 0; color: var(--ink-2); font-size: 15.5px; }
.qa .a p:last-child { margin-bottom: 0; }

/* ---------- 相关链接 ---------- */
.rel { margin: 48px 0 0; padding: 22px 24px; background: #f7f5ef; border-radius: 4px; }
.rel h2 { margin: 0 0 14px; border: 0; padding: 0; font-size: 15px; letter-spacing: .06em; color: var(--ink-2); }
.rel ul { margin: 0; padding-left: 0; list-style: none; }
.rel li { padding: 8px 0; border-bottom: 1px dashed #e6e1d5; font-size: 15px; }
.rel li:last-child { border-bottom: 0; }
.rel li span { color: var(--ink-3); font-size: 13px; margin-left: 8px; }

/* ---------- 正文分节 ---------- */
.block { margin: 0 0 30px; }
.block > p { color: #2a3138; }

.note {
  background: var(--green-soft); border-left: 3px solid var(--green);
  padding: 15px 18px; font-size: 14.5px; color: #17594c;
  border-radius: 0 3px 3px 0; margin: 18px 0;
}
.note b { color: #0b4a3d; }

.tagrow { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 24px; }
.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #d5e3f0;
}
.tag.g { background: var(--green-soft); color: var(--green); border-color: #cfe6df; }

/* ---------- 目录列表 ---------- */
.index-list { margin: 18px 0 0; border-top: 1px solid var(--line); }
.index-list a {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 2px; border-bottom: 1px solid var(--line-2);
  color: var(--ink); align-items: baseline;
}
.index-list a:hover { text-decoration: none; background: #faf8f2; }
.index-list .t { font-weight: 600; font-size: 15.5px; }
.index-list .d { color: var(--ink-3); font-size: 13.5px; text-align: right; max-width: 46%; }

/* ---------- 页脚 ---------- */
.shell-foot {
  border-top: 1px solid var(--line); background: #f8f6f0;
  padding: 44px 0 30px; font-size: 13.5px; color: var(--ink-2);
}
.shell-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.shell-foot h4 { font-size: 12px; letter-spacing: .14em; margin: 0 0 12px; color: var(--ink-3); font-weight: 700; }
.shell-foot ul { list-style: none; margin: 0; padding: 0; }
.shell-foot li { margin: 0 0 8px; }
.shell-foot a { color: var(--ink-2); }
.shell-foot .addr { line-height: 1.85; }
.shell-foot .base {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 12.5px;
}

/* ---------- 机器可读提示条 ---------- */
.machine {
  border: 1px dashed #d8d2c4; background: #fbf9f3;
  padding: 14px 18px; font-size: 13px; color: var(--ink-2);
  border-radius: 3px; margin: 40px 0 0;
  font-family: var(--mono); line-height: 1.9;
}
.machine a { color: var(--accent); }
.machine b { color: var(--ink-3); font-weight: 400; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .shell-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 29px; }
  .hero .lede { font-size: 16.5px; }
  h1 { font-size: 25px; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .facts th { width: 108px; white-space: normal; }
  .shell-foot .cols { grid-template-columns: 1fr; gap: 24px; }
  .shell-head .in { height: auto; padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
  .topnav { margin-left: 0; width: 100%; overflow-x: auto; }
  .index-list a { flex-direction: column; gap: 4px; }
  .index-list .d { text-align: left; max-width: 100%; }
}

@media print {
  .shell-head, .shell-foot, .machine, .rel { display: none; }
  body { background: #fff; }
}

/* ---------- 404 错误页 ---------- */
.nf { max-width: 760px; }
.nf-code { font-size: 92px; font-weight: 600; line-height: 1; color: #0b4a8f; opacity: .14; letter-spacing: -3px; margin-bottom: -14px; }
.nf h1 { margin-bottom: 18px; }
.nf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 30px; }
.nf-links a { display: block; padding: 14px 16px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.nf-links a:hover { border-color: #0b4a8f; transform: translateY(-1px); }
.nf-links b { display: block; font-size: 15.5px; font-weight: 600; color: #0b4a8f; margin-bottom: 4px; }
.nf-links span { display: block; font-size: 13.5px; color: #6b7480; line-height: 1.55; }
@media (max-width: 860px) { .nf-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .nf-links { grid-template-columns: 1fr; } .nf-code { font-size: 68px; } }

/* ---------- 404 错误页 ---------- */
.nf { max-width: 760px; }
.nf-code { font-size: 92px; font-weight: 600; line-height: 1; color: #0b4a8f; opacity: .14; letter-spacing: -3px; margin-bottom: -14px; }
.nf h1 { margin-bottom: 18px; }
.nf-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 30px; }
.nf-links a { display: block; padding: 14px 16px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.nf-links a:hover { border-color: #0b4a8f; transform: translateY(-1px); }
.nf-links b { display: block; font-size: 15.5px; font-weight: 600; color: #0b4a8f; margin-bottom: 4px; }
.nf-links span { display: block; font-size: 13.5px; color: #6b7480; line-height: 1.55; }
@media (max-width: 860px) { .nf-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .nf-links { grid-template-columns: 1fr; } .nf-code { font-size: 68px; } }
