/* ============================================================
   teaser.top 工作台 — 共享样式（console.css）
   设计 token 原样取自 src/static/styles.css；
   组件规格对照 docs/后台逻辑方案.html §5 原型（P1–P5）。
   零依赖、零外部资源。
   ============================================================ */

:root {
  --paper:      #FAF8F3;
  --paper-2:    #F2EFE6;
  --paper-3:    #EDE9DE;
  --ink:        #16150F;
  --ink-2:      #2A2820;
  --ink-3:      #3A362B;
  --muted:      #6E6A61;
  --muted-2:    #8E8A7C;
  --rule:       #E2DDD0;
  --rule-2:     #D8D2C2;
  --accent:     #1E4D3E;
  --accent-2:   #2A6A55;
  --accent-bg:  #E9EFEB;
  --wx:         #2BA245;

  --serif: Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif SC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --err:        #A5442B;

  --wrap: 1160px;
  --pad: 28px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 读者侧详情页（t.html）与线上站排版一致 */
body.body--site { font-size: 16px; line-height: 1.9; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.35; letter-spacing: .01em; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
code, .mono { font-family: var(--mono); font-size: .92em; }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 13px; height: 13px; }
.ic--ok { color: var(--accent); }
.ic--no { color: #A33; }

/* ---------------------------------------------------------- 通用容器 */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.crumbs { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted-2); margin: 26px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.doc__h2 { font-size: 23px; margin: 0 0 14px; }
.doc__h3 { font-family: var(--serif); font-size: 17.5px; margin: 30px 0 10px; }

/* ---------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13.5px; letter-spacing: .06em; line-height: 1;
  padding: 11px 18px; border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--green { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn--green:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--wx { border-color: var(--wx); color: var(--wx); }
.btn--wx:hover { background: var(--wx); color: #fff; }
.btn--sm { padding: 8px 13px; font-size: 12.5px; }
.btn--block { width: 100%; justify-content: center; }
.btn--danger { color: #A33; border-color: #D8BDB2; }
.btn--danger:hover { background: #A33; border-color: #A33; color: #fff; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.ibtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid var(--rule-2); border-radius: 2px;
  background: transparent; color: var(--muted); cursor: pointer; transition: all .15s;
}
.ibtn:hover { color: var(--accent); border-color: var(--accent-2); }

.wx-ico { width: 17px; height: 17px; flex: none; }

/* ---------------------------------------------------------- 标签 / 徽章 */

.tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--rule-2); border-radius: 2px;
  padding: 2px 9px; line-height: 1.7; white-space: nowrap;
}
.tag--strong { color: var(--accent); border-color: var(--accent-2); background: var(--accent-bg); }
.tag--live   { color: var(--paper); background: var(--accent); border-color: var(--accent); }   /* live：实底墨绿 */
/* draft / offline（已下线）：默认描边灰，即 .tag 本身 */
.tag--warn { color: #7A4A12; border-color: #D9C29A; background: #F7EFDD; }
.tag--wx   { color: var(--wx); border-color: var(--wx); }                                       /* 微信：绿描边 */
.tag--ink  { color: var(--ink-3); border-color: var(--ink-3); }                                /* 网页表单：墨描边 */
.tag--qr   { color: var(--ink-3); background: var(--paper-3); border-color: var(--paper-3); }  /* 扫码：灰底 */

/* ---------------------------------------------------------- 提示条 */

.notice { border: 1px solid var(--rule-2); background: var(--paper-2); border-radius: 3px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-3); }
.notice b { color: var(--ink); }
.notice--green { border-color: var(--accent-2); background: var(--accent-bg); color: var(--accent); }
.warn { border: 1px solid #D9C29A; background: #F7EFDD; border-radius: 3px; padding: 14px 18px; font-size: 13.5px; }
.warn__t { font-weight: 600; color: #7A4A12; margin: 0 0 4px; font-size: 13px; letter-spacing: .06em; }
.warn p { margin: 0; }

/* ---------------------------------------------------------- 工作台骨架 */

.wb { display: flex; min-height: 100vh; background: var(--paper); }
.wb__side { width: 212px; flex: none; background: var(--paper-2); border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: 18px 0 14px; }
.wb__mark { font-family: var(--serif); font-size: 15px; letter-spacing: .24em; padding: 0 22px 16px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.wb__mark i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }
.wb__nav { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.wb__nav a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--muted); text-decoration: none;
  padding: 9px 12px; border-left: 2px solid transparent; border-radius: 2px;
}
.wb__nav a:hover { color: var(--ink); }
.wb__nav a.is-on { color: var(--accent); background: var(--accent-bg); border-left-color: var(--accent); }
.wb__nav a .tag { margin-left: auto; }
.wb__side__f { margin-top: auto; padding: 14px 22px 0; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.wb__side__f b { display: block; color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.wb__side__f a, .wb__side__f button { color: var(--accent); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.wb__side__f a:hover, .wb__side__f button:hover { text-decoration: underline; }

.wb__main { flex: 1; min-width: 0; padding: 24px 30px 44px; }
.wb__top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.wb__top h3 { font-size: 21px; }
.wb__top .sp { flex: 1; }
.whoami { font-size: 12.5px; color: var(--muted); }
.whoami b { font-weight: 600; color: var(--ink-3); }

.statline {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 3px; background: #FFFDF8;
  padding: 12px 20px; margin-bottom: 18px;
}
.statline b { color: var(--accent); font-weight: 600; }
.statline .dot { color: var(--rule-2); }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------- 工作台表格（平铺行 + 虚线分隔） */

.mtable { width: 100%; }
.mtable__h, .mtable__r { display: grid; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px dashed var(--rule); }
.mtable__h { font-size: 11.5px; letter-spacing: .12em; color: var(--muted-2); border-bottom: 1px solid var(--rule-2); padding-bottom: 8px; }
.mtable__h span { white-space: nowrap; }
.mtable__r { font-size: 13.5px; padding-top: 14px; padding-bottom: 14px; transition: background .15s; }
.mtable__r:hover { background: rgba(233, 239, 235, .5); }
.mtable .num { font-family: var(--mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
.mtable .tt b { display: block; font-weight: 600; color: var(--ink); line-height: 1.5; }
.mtable .tt span { display: block; font-size: 12px; color: var(--muted-2); }
.mtable .cnt { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.mtable .cnt em { font-style: normal; color: var(--accent); font-weight: 700; }
.acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.mtable__empty { text-align: center; color: var(--muted-2); font-size: 13.5px; padding: 48px 0; }

/* 行内筛选 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.filters select {
  font-family: var(--sans); font-size: 13px; color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 2px; background: #FFFDF8; padding: 7px 12px; cursor: pointer;
}
.filters select:focus { outline: none; border-color: var(--accent-2); }

/* ---------------------------------------------------------- 表单 */

.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; }
.field__label b { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: #FFFDF8; border: 1px solid var(--rule-2); border-radius: 2px;
  padding: 11px 14px; line-height: 1.6; transition: border-color .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); }
.field textarea { resize: vertical; }
.field--half { display: inline-block; width: calc(50% - 8px); margin-right: 8px; vertical-align: top; }
.field--half:nth-of-type(2n) { margin-right: 0; }
.field__hint { font-size: 11.5px; color: var(--muted-2); margin: 6px 0 0; line-height: 1.7; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 720px) { .formgrid { grid-template-columns: 1fr; } .field--half { width: 100%; margin-right: 0; } }

/* ---------------------------------------------------------- 分步器 */

.steps { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted-2); white-space: nowrap; background: none; border: 0; padding: 0; font-family: var(--sans); cursor: default; }
.step .b { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--rule-2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; background: #FFFDF8; }
.step.is-done { color: var(--ink-3); }
.step.is-done .b { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.step.is-now { color: var(--accent); font-weight: 600; }
.step.is-now .b { background: var(--accent); border-color: var(--accent); color: var(--paper); box-shadow: 0 0 0 4px rgba(30, 77, 62, .14); }
button.step { cursor: pointer; }
button.step:hover { color: var(--ink); }
button.step.is-now { cursor: default; }
.step-line { flex: 1; height: 1px; background: var(--rule-2); min-width: 20px; }

/* 发布页双栏 */
.pubgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
@media (max-width: 1000px) { .pubgrid { grid-template-columns: 1fr; } }
.pubrail { border-left: 1px solid var(--rule); padding-left: 24px; }
@media (max-width: 1000px) { .pubrail { border-left: 0; padding-left: 0; } }
.pubrail h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }

/* ---------------------------------------------------------- 胶片帧母题 */

.filmstrip {
  display: flex; gap: 8px; padding: 16px 12px;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; position: relative;
}
.filmstrip::before, .filmstrip::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 5px;
  background-image: radial-gradient(circle, var(--rule-2) 1.3px, transparent 1.4px);
  background-size: 12px 5px; opacity: .85;
}
.filmstrip::before { top: 5px; }
.filmstrip::after { bottom: 5px; }
.frame { flex: 1 1 0; aspect-ratio: 16 / 9; border-radius: 2px; border: 1px solid var(--rule-2); overflow: hidden; position: relative; }
.frame.is-open { background: linear-gradient(145deg, #F0ECE2, #E3DED0); }
.frame.is-open::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--rule-2); transform: translate(-50%, -50%);
}
.frame.is-sealed { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(110, 106, 97, .22) 6px 8px); }
.filmnote { font-size: 12.5px; color: var(--muted-2); margin: 10px 0 0; line-height: 1.8; }

/* ---------------------------------------------------------- 密封层（读者侧） */

.seal { position: relative; border: 1px solid var(--rule); border-radius: 3px; padding: 26px 28px; background: #FFFDF8; margin-top: 26px; }
.seal__content { transition: filter .45s ease, opacity .45s ease; }
.seal.is-blur .seal__content { filter: blur(7px); opacity: .5; user-select: none; pointer-events: none; }
.seal.is-open .seal__content { filter: none; opacity: 1; user-select: auto; pointer-events: auto; }
.seal__cover {
  position: absolute; inset: 0; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 34px 28px; gap: 4px; border-radius: 3px; overflow: auto;
}
.seal.is-open .seal__cover { display: none; }
.seal__frames { width: 250px; margin-bottom: 16px; }
.seal__frames .filmstrip { padding: 12px 9px; margin: 0; }
.seal__msg { font-family: var(--serif); font-size: 17px; margin: 0 0 4px; }
.seal__hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.seal__alt { font-size: 12px; color: var(--muted-2); margin: 14px 0 0; }
.seal__alt a { color: var(--accent); }
.seal__body p { font-size: 13.5px; color: var(--ink-3); }
.seal__tip { font-size: 13px; color: var(--muted); line-height: 1.9; max-width: 42em; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule-2); }

.specs { margin: 16px 0 0; padding: 0; }
.spec { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--rule); font-size: 13.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink-3); }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; gap: 2px; } }

.unseal-badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--accent-2); background: var(--accent-bg); border-radius: 3px;
  padding: 10px 16px; font-size: 12.5px; color: var(--accent); margin-bottom: 18px;
  flex-wrap: wrap;
}
.unseal-badge .mono { color: var(--accent-2); }

.unlock__waysnote { font-size: 11.5px; color: var(--muted-2); margin: 8px 0 0; max-width: 30em; line-height: 1.8; }
.unlock__legal { font-size: 11.5px; color: var(--muted-2); margin: 12px 0 0; max-width: 34em; line-height: 1.8; }
.unlock__legal a { color: var(--accent); }
.unlock__toast { font-size: 12.5px; color: var(--accent); margin: 10px 0 0; line-height: 1.7; }
.unlock__toast.is-err { color: var(--err); }
.seal__form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; text-align: left; max-width: 540px; margin: 14px auto 0; }
.seal__form .field { margin-bottom: 12px; }
.seal__form .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .seal__form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 水印层 */

/* .wm 相对 .seal 定位（.seal 已建定位上下文），覆盖密封内容 */
.wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 3px; z-index: 3; }
.wm span {
  position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: rgba(22, 21, 15, .11); white-space: nowrap; transform: rotate(-22deg);
}
.wm.is-off { display: none; }
.wmtoggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 0; margin-top: 10px; font-family: var(--sans);
}
.wmtoggle .sw { width: 30px; height: 16px; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--paper-2); position: relative; transition: background .15s; flex: none; }
.wmtoggle .sw::after { content: ""; position: absolute; left: 2px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-2); transition: all .15s; }
.wmtoggle.is-on .sw { background: var(--accent-bg); border-color: var(--accent-2); }
.wmtoggle.is-on .sw::after { left: 16px; background: var(--accent); }

/* ---------------------------------------------------------- 审核抽屉（上下布局：表格下方全宽） */

.rvdrawer { border-top: 1px solid var(--rule); background: var(--paper-2); padding: 20px 22px; margin-top: 18px; border-radius: 3px; border: 1px solid var(--rule); }
.rvdrawer h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.rvdrawer .sub { font-size: 11.5px; color: var(--muted-2); margin: 0 0 14px; }
.rvck { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
@media (max-width: 760px) { .rvck { grid-template-columns: 1fr; } }
.ckrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--rule-2); font-size: 13px; }
.ckrow .ic { margin-top: 4px; }
.ckrow .ckdesc { color: var(--muted); font-size: 11.5px; display: block; }
.rvdrawer .field { margin-top: 14px; max-width: 420px; }
.rvbtns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: var(--paper);
  font-size: 13px; letter-spacing: .03em; line-height: 1.6;
  padding: 11px 20px; border-radius: 3px; z-index: 200;
  max-width: min(86vw, 520px);
  opacity: 0; transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 28px rgba(22, 21, 15, .18);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-err { background: #7C2D1C; }

/* ---------------------------------------------------------- 编辑页顶栏 */

.ebar { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.ebar__in { max-width: 1100px; margin: 0 auto; padding: 0 28px; height: 54px; display: flex; align-items: center; gap: 16px; }
.ebar__mark { font-family: var(--serif); font-size: 14px; letter-spacing: .24em; text-decoration: none; }
.ebar__mark i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-left: 5px; vertical-align: 2px; }
.ebar__back { font-size: 13px; color: var(--muted); text-decoration: none; margin-left: auto; }
.ebar__back:hover { color: var(--accent); }
.ebar .tag { margin-left: 4px; }
.ebar__status { margin-left: 8px; }
.ewrap { max-width: 1100px; margin: 0 auto; padding: 30px 28px 70px; }

/* ---------------------------------------------------------- 卡片 / 空态 / 其他 */

.card { background: #FFFDF8; border: 1px solid var(--rule); border-radius: 3px; padding: 24px 26px; max-width: 640px; }
.card-t { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; margin: 0 0 14px; }
.card-t .ic { color: var(--accent); }
.needplat { max-width: 560px; margin-top: 8px; }
.bigtoast { font-size: 13.5px; color: var(--accent); margin: 14px 0 0; }

/* ---------------------------------------------------------- 读者侧详情页（t.html，与线上 .tdetail 同构） */

.tdetail { padding-bottom: 80px; }
.tdetail__head { max-width: 780px; margin: 26px 0 40px; }
.tdetail__labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tdetail__code { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); letter-spacing: .06em; line-height: 1.15; margin-bottom: 12px; }
.tdetail__title { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--ink-2); margin-bottom: 14px; }
.tdetail__lede { font-size: 16px; color: var(--muted); line-height: 1.95; max-width: 38em; margin-bottom: 18px; }
.tdetail__byfirm { font-size: 13.5px; color: var(--muted); margin: 0 0 26px; }
.tdetail__strip { max-width: 460px; }
.tdetail__stripnote { font-size: 12.5px; color: var(--muted-2); margin: 14px 0 0; line-height: 1.8; }
.tdetail__public { max-width: 720px; }
.tdetail__public h2 { font-size: 20px; margin-bottom: 16px; }
.tdetail__public .conclusion { font-size: 15.5px; color: var(--ink-2); max-width: 42em; }
.points { list-style: none; padding: 0; margin: 0 0 12px; }
.points li {
  position: relative; padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px; line-height: 1.85; color: var(--ink-2);
}
.points li::before { content: ""; position: absolute; left: 0; top: 25px; width: 12px; height: 1px; background: var(--accent); }
.points li.is-adverse { color: var(--ink); }
.points li.is-adverse::before { width: 12px; }

.site-notice { margin: 22px 0 0; }

/* 站内风格顶栏（读者侧） */
.topbar { border-bottom: 1px solid var(--rule); background: rgba(250, 248, 243, .9); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 40; }
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.mark { font-family: var(--serif); font-size: 20px; letter-spacing: .26em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.mark__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav__link { font-size: 14px; color: var(--muted); text-decoration: none; letter-spacing: .05em; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav__link:hover { color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } }

/* 站内 404 / 未公开 */
.notfound { text-align: center; max-width: 560px; padding: 90px 0 70px; margin: 0 auto; }
.notfound__code { font-family: var(--serif); font-size: 64px; color: var(--rule-2); margin: 0 0 10px; line-height: 1; }
.notfound__h { font-size: 26px; margin-bottom: 14px; }
.notfound__p { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.notfound__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 站内页脚（简化版） */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 30px; background: var(--paper); }
.site-foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted-2); }
.site-foot__legal a { color: var(--muted-2); }
.site-foot__legal a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .wb { flex-direction: column; }
  .wb__side { width: 100%; flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; }
  .wb__mark { border-bottom: 0; padding: 0; margin: 0; }
  .wb__nav { flex-direction: row; padding: 0; overflow-x: auto; }
  .wb__nav a { border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 6px 10px; white-space: nowrap; }
  .wb__nav a.is-on { border-bottom-color: var(--accent); }
  .wb__side__f { margin: 0 0 0 auto; border-top: 0; padding: 0; }
  .wb__main { padding: 18px 16px 40px; }
  .mtable__h, .mtable__r { grid-template-columns: 1fr 1fr !important; }
  .mtable__h { display: none; }
}
