/* ============================================================
 * UnixFlux —— The Flux Observatory（时间流量观测站）
 * 冷灰图纸底 · 钴蓝墨 · 红秒针 · 原子钟显示屏
 * ============================================================ */

:root {
  --paper: #eff1f4;            /* 图纸冷灰 */
  --panel: #fbfcfd;
  --panel-2: #e8ebf0;
  --ink: #1b2430;              /* 观测墨 */
  --ink-soft: #49566a;
  --ink-faint: #8d99a9;

  --flux: #2743d8;             /* 钴蓝 */
  --flux-deep: #1c33ab;
  --flux-soft: rgba(39, 67, 216, .07);

  --tick: #d8482a;             /* 红秒针 */
  --tick-soft: rgba(216, 72, 42, .09);

  --line: #d7dce4;
  --line-2: #bfc7d3;

  --max-width: 1600px;
  --mono: "Martian Mono", "SF Mono", Consolas, monospace;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesk", var(--sans);

  --shadow-sm: 0 1px 2px rgba(27, 36, 48, .05), 0 4px 12px rgba(27, 36, 48, .05);
  --shadow-md: 0 2px 6px rgba(27, 36, 48, .06), 0 18px 44px rgba(27, 36, 48, .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 图纸网格 */
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(27, 36, 48, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 48, .038) 1px, transparent 1px);
  background-size: 28px 28px;
}

a { color: var(--flux-deep); text-decoration: none; }
a:hover { color: var(--flux); }

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

/* ============ 头部 ============ */
.site-head {
  background: var(--panel);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.head-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-icon { width: 38px; height: 38px; display: block; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.brand-text em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-faint); margin-left: 6px; }

.head-nav { margin-left: auto; display: flex; gap: 22px; }
.head-nav a {
  color: var(--ink-soft); font-size: 14px; font-weight: 500;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
.head-nav a:hover { color: var(--flux); border-bottom-color: var(--flux); }

.menu-btn { display: none; }

/* ============ 主区容器 ============ */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ============ Hero（一行，点开即见工具） ============ */
.hero { padding: 28px 0 20px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hero-no {
  font-family: var(--mono); font-size: 13px; color: var(--flux);
  border: 1.5px solid var(--flux); padding: 2px 8px; white-space: nowrap;
}
.hero h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.hero h1 .accent { color: var(--ink-faint); font-weight: 500; }

/* ============ 实时原子钟显示屏 ============ */
.ticker {
  display: flex; align-items: center; gap: 26px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 18px 28px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}
/* 显示屏扫描线 */
.ticker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.tk-live { display: flex; align-items: center; gap: 8px; flex: none; }
.live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tick);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 72, 42, .55); }
  50% { box-shadow: 0 0 0 7px rgba(216, 72, 42, 0); }
}
.live-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--tick);
}
.tk-sec {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1; letter-spacing: .01em;
  color: #f4f6fa;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tk-side { margin-left: auto; text-align: right; }
.tk-local { font-family: var(--mono); font-size: 14px; color: #c9d2df; }
.tk-note { font-family: var(--mono); font-size: 11px; color: #7c8aa0; margin-top: 4px; letter-spacing: .04em; }

/* ============ 解码面板 ============ */
.panel {
  background: var(--panel);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 18px;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--panel-2);
  border-bottom: 1.5px solid var(--ink);
}
.p-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase;
}
.p-tag b { color: var(--flux); font-weight: 600; margin-right: 6px; }

.kind-badge {
  margin-left: auto;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  color: var(--ink-faint);
  border: 1.5px solid var(--line-2); border-radius: 4px;
  padding: 3px 9px; letter-spacing: .03em;
}
.kind-badge.k-s { color: var(--flux-deep); border-color: var(--flux); background: var(--flux-soft); }
.kind-badge.k-ms { color: #0c6b5c; border-color: #12907c; background: rgba(18, 144, 124, .08); }
.kind-badge.k-us { color: #8a4a08; border-color: #c07b18; background: rgba(192, 123, 24, .09); }
.kind-badge.k-batch { color: var(--tick); border-color: var(--tick); background: var(--tick-soft); }
.kind-badge.k-bad { color: var(--tick); border-color: var(--tick); }

.conv-body { padding: 18px 22px 22px; }

/* 输入行 */
.input-row { display: flex; gap: 10px; }
#tsInput {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line-2); border-radius: 7px;
  padding: 14px 18px;
  outline: none; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
#tsInput:focus { border-color: var(--flux); box-shadow: 0 0 0 4px var(--flux-soft); }
#tsInput::placeholder { color: var(--ink-faint); font-weight: 400; }
.btn-clear {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 0 20px; cursor: pointer;
  background: var(--panel); color: var(--ink-soft);
  border: 2px solid var(--line-2); border-radius: 7px;
  transition: border-color .15s, color .15s;
}
.btn-clear:hover { border-color: var(--tick); color: var(--tick); }

/* 示例 chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer;
  background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: 4px;
  padding: 4px 10px;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--flux); border-style: solid; color: var(--flux); background: var(--flux-soft); }

/* 错误条 */
.err {
  display: none;
  margin-top: 14px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: var(--tick);
  background: var(--tick-soft);
  border: 1.5px solid rgba(216, 72, 42, .35);
  border-radius: 6px;
  padding: 12px 16px;
}

/* 相对时间 */
.rel-line {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.15;
  margin: 20px 0 4px; letter-spacing: -.005em;
}
.rel-sub { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 16px; }

/* ISO 条 */
.iso-bar {
  font-family: var(--mono); font-size: 16px; font-weight: 600;
  color: var(--ink);
  border: 2px dashed var(--line-2); border-radius: 7px;
  padding: 12px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .15s, background .15s;
  margin-bottom: 14px;
}
.iso-bar::before {
  content: "ISO 8601 · UTC"; font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; color: var(--flux);
  border: 1.5px solid var(--flux); border-radius: 3px;
  padding: 2px 7px; flex: none;
}
.iso-bar:hover { border-color: var(--flux); border-style: solid; background: var(--flux-soft); }

/* 时区卡片网格 */
.zone-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.zone-card {
  background: var(--panel);
  border: 1.5px solid var(--line-2); border-radius: 7px;
  padding: 14px 15px 16px; cursor: pointer;
  position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  animation: cardIn .3s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.zone-card:hover { border-color: var(--flux); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.zone-card:hover .zc-copy { opacity: 1; }
.zc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.zc-label { font-family: var(--display); font-weight: 700; font-size: 15px; }
.zc-sub { font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); letter-spacing: .03em; text-align: right; }
.zc-time {
  font-family: var(--mono); font-weight: 700; font-size: 21px;
  color: var(--flux-deep); font-variant-numeric: tabular-nums;
}
.zc-date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.zc-copy {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--flux); opacity: 0; transition: opacity .15s;
}

/* 三单位等值 chips */
.equiv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.equiv-chip {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); cursor: pointer; text-align: left;
  background: var(--panel-2);
  border: 1.5px solid var(--line-2); border-radius: 7px;
  padding: 11px 14px;
  transition: border-color .15s, background .15s;
}
.equiv-chip:hover { border-color: var(--flux); background: var(--flux-soft); }
.eq-unit {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--flux); border-radius: 4px; padding: 2px 7px; flex: none;
}
.equiv-chip:nth-child(2) .eq-unit { background: #12907c; }
.equiv-chip:nth-child(3) .eq-unit { background: #c07b18; }
.eq-val { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-name { font-size: 10px; color: var(--ink-faint); letter-spacing: .05em; margin-left: auto; flex: none; }

/* ---------- 批量表格 ---------- */
.batch-meta {
  display: flex; align-items: center; gap: 14px;
  margin: 16px 0 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft);
}
#batchNote { color: var(--tick); display: none; }
.table-scroll { overflow-x: auto; border: 1.5px solid var(--line-2); border-radius: 7px; }
.batch-table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 13.5px; }
.batch-table th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: left; color: #fff; background: var(--ink);
  padding: 9px 13px; white-space: nowrap;
}
.batch-table td { padding: 8px 13px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.batch-table tbody tr { cursor: pointer; transition: background .12s; }
.batch-table tbody tr:hover { background: var(--flux-soft); }
.batch-table tr.bad td { color: var(--ink-faint); }
.batch-table .b-i { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; }
.batch-table .b-raw { font-family: var(--mono); font-weight: 600; }
.batch-table .b-utc { font-family: var(--mono); color: var(--flux-deep); }
.batch-table .b-loc { font-family: var(--mono); color: var(--ink-soft); }
.batch-table .b-err { font-family: var(--mono); font-size: 12px; color: var(--tick); }
.u-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  color: #fff; border-radius: 3px; padding: 1px 6px;
}
.u-s { background: var(--flux); }
.u-ms { background: #12907c; }
.u-us { background: #c07b18; }

/* ============ 说明区 ============ */
.doc { padding: 36px 0 20px; }
.doc-sec { margin-bottom: 46px; }
.doc-sec h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700;
  display: flex; align-items: baseline; gap: 12px; line-height: 1.2;
}
.doc-sec h2 .sec-no {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--flux); letter-spacing: .05em; flex: none;
}
.doc-rule { height: 3px; background: var(--ink); margin: 12px 0 18px; position: relative; }
.doc-rule::after {
  content: ""; position: absolute; right: 0; top: 0;
  width: 64px; height: 3px; background: var(--tick);
}
.lead { font-size: 16.5px; color: var(--ink-soft); max-width: 860px; margin-bottom: 20px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card {
  background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 7px;
  padding: 18px 20px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.info-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ic-no {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--flux); margin-bottom: 8px; letter-spacing: .08em;
}
.info-card h3 { font-family: var(--display); font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.info-card code {
  font-family: var(--mono); font-size: 12.5px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--flux-deep);
}

/* 速查表 */
.cheat-table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 13.5px; }
.cheat-table th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: left; color: #fff; background: var(--ink);
  padding: 9px 14px; font-weight: 500;
}
.cheat-table td { padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.cheat-table td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--flux-deep); white-space: nowrap; }
.cheat-table td:last-child { color: var(--ink-soft); }
.cheat-table .mono { font-family: var(--mono); font-size: 12.5px; }
.table-scroll2 { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 7px; }

/* FAQ */
details.faq {
  background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 7px;
  margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: 15.5px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: "+"; font-family: var(--mono); color: var(--flux); font-size: 16px; font-weight: 600;
  width: 22px; height: 22px; border: 1.5px solid var(--flux); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
details.faq[open] summary::before { content: "–"; }
details.faq[open] summary { background: var(--panel-2); border-bottom: 1px solid var(--line); }
details.faq .faq-a { padding: 14px 18px 16px 52px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* ============ 页脚 ============ */
.site-foot { margin-top: 40px; background: var(--ink); color: #eef1f5; border-top: 4px solid var(--flux); }
.foot-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 40px 28px 26px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand img { width: 30px; height: 30px; }
.foot-brand span { font-family: var(--display); font-weight: 700; font-size: 18px; }
.foot-inner p { font-size: 13.5px; color: rgba(238, 241, 245, .6); line-height: 1.7; max-width: 460px; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: #7f96e8; margin-bottom: 12px;
}
.foot-col a { display: block; color: rgba(238, 241, 245, .75); font-size: 13.5px; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.foot-base {
  border-top: 1px solid rgba(238, 241, 245, .15);
  text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 12px; color: rgba(238, 241, 245, .45);
}

/* ============ Toast ============ */
#toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13px;
  padding: 10px 18px; border-radius: 6px;
  border-left: 4px solid var(--flux);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 100; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .zone-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .head-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel); border-bottom: 2px solid var(--ink);
    flex-direction: column; gap: 0; padding: 8px 20px 14px;
  }
  .head-nav.open { display: flex; }
  .head-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .menu-btn {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    margin-left: auto; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; align-items: center;
  }
  .menu-btn span { display: block; width: 22px; height: 2.5px; background: var(--ink); }
}
@media (max-width: 760px) {
  .wrap, .head-inner, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 20px 0 14px; }
  .ticker { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
  .tk-side { margin-left: 0; text-align: left; }
  .zone-grid { grid-template-columns: repeat(2, 1fr); }
  .equiv-row { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .conv-body { padding: 14px 14px 18px; }
  #tsInput { font-size: 17px; padding: 12px 14px; }
  .btn-clear { padding: 0 14px; }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
  #toast { bottom: 18px; }
  .btn-clear, .chip, .equiv-chip { min-height: 44px; }
  .batch-table td, .batch-table th { padding: 8px 9px; }
  @media (hover: none) {
    .info-card:hover { transform: none; box-shadow: var(--shadow-sm); }
    .zc-copy { opacity: .7; }
  }
}

/* ============================================================
 * CMS 文章系统兼容（首页文章列表 / articles.html / 文章页）
 * ============================================================ */
.inner { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* 首页文章列表（ARTICLES-LIST 区块） */
.content-section { padding: 30px 0 10px; }
.content-section h2 {
  font-family: var(--display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700;
  display: flex; align-items: baseline; gap: 12px; line-height: 1.2; margin-bottom: 6px;
}
.content-section h2::before {
  content: "06"; font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--flux); letter-spacing: .05em; flex: none;
}
.content-section .doc-rule, .content-section .lead { margin-left: 0; }
.article-list { display: grid; gap: 12px; margin-top: 16px; }
.article-list a {
  display: block; background: var(--panel);
  border: 1.5px solid var(--line-2); border-radius: 7px;
  padding: 17px 20px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.article-list a:hover { transform: translateY(-2px); border-color: var(--flux); box-shadow: var(--shadow-md); }
.article-list .article-title {
  font-family: var(--display); font-weight: 700; font-size: 16.5px;
  color: var(--ink); margin-bottom: 6px; line-height: 1.45;
}
.article-list a:hover .article-title { color: var(--flux-deep); }
.article-list .article-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.articles-empty { font-size: 14.5px; color: var(--ink-faint); padding: 4px 0; }
.articles-empty a { color: var(--flux-deep); border-bottom: 1px dashed var(--flux); }

/* CMS 文章页骨架（site-header / article-content / site-footer） */
.site-header {
  background: var(--panel); border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink);
}
.logo:hover { color: var(--flux-deep); }
.logo-img { width: 38px; height: 38px; display: block; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a {
  color: var(--ink-soft); font-size: 14px; font-weight: 500; padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--flux); border-bottom-color: var(--flux); }

.article-content { padding: 40px 0 50px; }
.article-content .inner { max-width: 800px; }
.article-back {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 22px;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.article-back:hover { color: var(--flux-deep); border-color: var(--flux); }
.article-content h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15;
  color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em;
}
.article-meta {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  letter-spacing: .05em; border-bottom: 1px solid var(--line);
  padding-bottom: 16px; margin-bottom: 26px;
}
.article-content h2 {
  font-family: var(--display); font-weight: 700; font-size: 24px;
  color: var(--ink); margin: 38px 0 15px; line-height: 1.25;
}
.article-content h3 { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 28px 0 12px; }
.article-content p { margin-bottom: 18px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 0 0 18px 26px; }
.article-content li { margin-bottom: 10px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.article-content strong { color: var(--ink); }
.article-content img { max-width: 100%; height: auto; border-radius: 7px; border: 1.5px solid var(--line); }
.article-content code {
  font-family: var(--mono); font-size: .86em; background: var(--panel-2);
  border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; color: var(--flux-deep);
}
.article-content pre {
  background: var(--ink); color: #e8edf4; padding: 18px 20px; border-radius: 8px;
  overflow-x: auto; margin: 0 0 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.article-content pre code { background: none; color: inherit; padding: 0; border: none; }
.article-content blockquote {
  border-left: 4px solid var(--flux); background: var(--flux-soft);
  padding: 14px 20px; margin: 0 0 20px; color: var(--ink-soft);
  border-radius: 0 7px 7px 0;
}
.article-content table { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 13.5px; margin-bottom: 20px; }
.article-content th {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; text-align: left; color: #fff; background: var(--ink);
  padding: 9px 13px;
}
.article-content td { padding: 8px 13px; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* 文章内 FAQ（CMS renderFAQ） */
.faq-section { margin-top: 40px; }
.faq-section h2 { font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 13px 4px; color: var(--ink);
  list-style: none; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; font-family: var(--mono); color: var(--flux); font-weight: 600; }
.faq details[open] summary::before { content: "– "; }
.faq details p { padding: 0 4px 16px 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* 相关文章 */
.related-articles { margin-top: 44px; border-top: 3px solid var(--ink); padding-top: 22px; position: relative; }
.related-articles::after {
  content: ""; position: absolute; top: -3px; right: 0; width: 64px; height: 3px; background: var(--tick);
}
.related-articles h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.related-articles ul { list-style: none; }
.related-articles li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.related-articles a { font-weight: 600; font-size: 14.5px; }

/* CMS 页脚 */
.site-footer { margin-top: 40px; background: var(--ink); color: #eef1f5; border-top: 4px solid var(--flux); }
.site-footer .inner { padding-top: 30px; padding-bottom: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 14px; }
.footer-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(238, 241, 245, .75); transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.copyright {
  text-align: center; font-family: var(--mono); font-size: 12px;
  color: rgba(238, 241, 245, .45); letter-spacing: .05em;
}

@media (max-width: 760px) {
  .inner { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 14px; flex-wrap: wrap; }
  .logo { font-size: 17px; }
  .logo-img { width: 32px; height: 32px; }
  .article-content .inner { padding: 0 16px; }
}

/* 打印 */
@media print {
  .site-head, .site-foot, .ticker, .conv-body, .hero { display: none; }
  body { background: #fff; }
}
