/* ===================== 变量（默认浅色 · 商务绿 · 字符/终端风） ===================== */
:root {
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",monospace;
  --rail:252px;
  --topbar:56px;
  --maxw:1760px;
  --speed:.15s;
}
html[data-theme="light"] {
  color-scheme:light;
  --bg:#f2f7f4;
  --bg-grid:rgba(0,120,80,.02);
  --panel:#ffffff;
  --panel-2:#eaf3ed;
  --panel-3:#e3efe7;
  --line:#d3e2d8;
  --line-2:#bcd3c3;
  --line-strong:#9bbfa6;
  --txt:#1f2329;
  --txt-dim:#5b6b60;
  --txt-bright:#0c1a11;
  --accent:#00a870;
  --accent-2:#008453;
  --accent-3:#006f49;
  --accent-bg:#e6f7f0;
  --accent-bg2:#f1fbf6;
  --ys:#2b5aed;
  --ys-2:#1d44c4;
  --ys-bg:#eef3ff;
  --ys-bd:#cfe0ff;
  --ok:#0e9e5a;
  --warn:#bb7400;
  --warn-bg:#fbf2e0;
  --danger:#cf3d3d;
  --grey:#aab4ac;
  --topbar-bg:#f2f7f4;
  --shadow-lg:0 18px 44px -22px rgba(6,50,40,.34);
  --card-fill:rgba(255,255,255,.5);
  --code-anno:#8a5200;
}
html[data-theme="dark"] {
  color-scheme:dark;
  --bg:#080d0a;
  --bg-grid:rgba(80,230,170,.028);
  --panel:#0c130f;
  --panel-2:#121d16;
  --panel-3:#16241b;
  --line:#1e2b22;
  --line-2:#2c4031;
  --line-strong:#3a5743;
  --txt:#bfccc3;
  --txt-dim:#74877b;
  --txt-bright:#e9f5ee;
  --accent:#34e3a6;
  --accent-2:#2bd398;
  --accent-3:#16a075;
  --accent-bg:rgba(52,227,166,.1);
  --accent-bg2:rgba(52,227,166,.05);
  --ys:#6f9bff;
  --ys-2:#86abff;
  --ys-bg:rgba(111,155,255,.1);
  --ys-bd:rgba(111,155,255,.3);
  --ok:#34e3a6;
  --warn:#f2bd55;
  --warn-bg:rgba(242,189,85,.1);
  --danger:#ff7a7a;
  --grey:#566054;
  --topbar-bg:#080d0a;
  --shadow-lg:0 22px 50px -28px rgba(0,0,0,.85);
  --card-fill:rgba(18,29,22,.42);
  --code-anno:#e0a030;
}
/* ===================== 基础 ===================== */
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
/* Firefox 才用标准滚动条属性,避免与 ::-webkit-scrollbar 在 Chrome 上双轨冲突 */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width:thin;
    scrollbar-color:var(--line-2) transparent;
  }
}
body {
  margin:0;
  font-family:var(--mono);
  background:var(--bg);
  color:var(--txt);
  font-size:14px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  background-image:linear-gradient(var(--bg-grid) 1px,transparent 1px),linear-gradient(90deg,var(--bg-grid) 1px,transparent 1px);
  background-size:34px 34px;
  transition:background-color var(--speed),color var(--speed);
}
a {
  color:inherit;
  text-decoration:none;
}
::selection {
  background:var(--accent);
  color:#fff;
}
::-webkit-scrollbar {
  width:11px;
  height:11px;
}
::-webkit-scrollbar-thumb {
  background:var(--line-2);
  border-radius:8px;
  border:2px solid transparent;
  background-clip:padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background:var(--line-strong);
  background-clip:padding-box;
}
::-webkit-scrollbar-track {
  background:var(--bg);
}
.dim {
  color:var(--txt-dim);
}
.acc {
  color:var(--accent-2);
}
.ys {
  color:var(--ys-2);
}
b,strong {
  color:var(--txt-bright);
  font-weight:700;
}
/* ===================== 顶栏（原样对齐 index.html） ===================== */
.topbar {
  position:sticky;
  top:0;
  z-index:50;
  height:var(--topbar);
  display:flex;
  align-items:center;
  gap:22px;
  padding:0 24px;
  background:var(--topbar-bg);
  border-bottom:1px solid var(--line);
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.04em;
  color:var(--txt-bright);
}
.brand .glyph {
  display:inline-grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:6px;
  background:var(--accent);
  color:var(--bg);
  font-weight:800;
}
.brand small {
  color:var(--txt-dim);
  font-weight:500;
  letter-spacing:.02em;
}
.topnav {
  display:flex;
  gap:4px;
  margin-left:8px;
}
.topnav a {
  padding:6px 12px;
  border-radius:7px;
  color:var(--txt-dim);
  font-weight:500;
  transition:color var(--speed),background var(--speed);
}
.topnav a:hover {
  color:var(--txt-bright);
  background:var(--panel-2);
}
.topbar .spacer {
  flex:1;
}
.pulse {
  display:flex;
  align-items:flex-end;
  gap:2px;
  height:22px;
}
.pulse i {
  width:3px;
  height:20px;
  transform-origin:bottom;
  background:var(--accent);
  border-radius:2px;
  opacity:.85;
  animation:beat 1.1s ease-in-out infinite;
}
/* 用 transform:scaleY 替代 height 动画:仅走合成层,不再每帧触发 layout(对齐 .wavebar i 写法) */
@keyframes beat {
  0%,100% {
    transform:scaleY(.2);
  }
  50% {
    transform:scaleY(1);
  }
}
.live {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--txt-dim);
  font-size:12px;
}
.live .dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent);
  animation:ping 1.6s ease-out infinite;
}
@keyframes ping {
  0% {
    box-shadow:0 0 0 0 var(--accent-bg);
  }
  70% {
    box-shadow:0 0 0 7px transparent;
  }
  100% {
    box-shadow:0 0 0 0 transparent;
  }
}
.iconbtn {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--txt);
  cursor:pointer;
  font-size:15px;
  transition:all var(--speed);
}
.iconbtn:hover {
  border-color:var(--line-2);
  color:var(--accent);
}
.menubtn {
  display:none;
}
/* ===================== 布局 + 左导航（原样对齐 index.html） ===================== */
.shell {
  display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr);
  max-width:var(--maxw);
  margin:0 auto;
}
.sidebar {
  position:sticky;
  top:var(--topbar);
  align-self:start;
  height:calc(100vh - var(--topbar));
  overflow-y:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:26px 18px 26px 24px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:22px;
}
.sidebar::-webkit-scrollbar {
  display:none;
}
/* iOS Safari 动态工具栏:用 dvh 跟随可视高度收缩,避免侧栏底部状态盘被遮 */
@supports (height:100dvh) {
  .sidebar {
    height:calc(100dvh - var(--topbar));
  }
}
.nav-h {
  font-size:11px;
  letter-spacing:.18em;
  color:var(--txt-dim);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 4px 8px;
  border-bottom:1px dashed var(--line);
}
.nav-h .on {
  color:var(--accent);
}
.nav {
  list-style:none;
  margin:0;
  padding:0;
}
.nav li a {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:7px;
  color:var(--txt-dim);
  border-left:2px solid transparent;
  transition:all var(--speed);
  font-weight:500;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav li a .sec {
  color:var(--txt-dim);
  font-size:12px;
  min-width:22px;
}
.nav li a:hover {
  color:var(--txt-bright);
  background:var(--panel-2);
}
.nav li a.active {
  color:var(--accent);
  background:var(--accent-bg);
  border-left-color:var(--accent);
}
.nav li a.active .sec {
  color:var(--accent);
}
.nav .sub a {
  padding-left:30px;
  font-size:13px;
}
.nav .key {
  margin-top:4px;
}
.nav .key a {
  color:var(--ys-2);
  border-left-color:var(--ys-bd);
}
.nav .key a .sec {
  color:var(--ys);
}
.nav .key a::after {
  content:"重点";
  margin-left:auto;
  padding:0 6px;
  border-radius:99px;
  background:var(--ys-bg);
  color:var(--ys-2);
  font-size:10px;
  font-weight:800;
}
.statusbox {
  margin-top:auto;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  font-size:12px;
}
.statusbox .row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:3px 0;
}
.statusbox .label {
  color:var(--txt-dim);
  display:flex;
  align-items:center;
  gap:7px;
}
.led {
  width:8px;
  height:8px;
  border-radius:50%;
  display:inline-block;
}
.led.run {
  background:var(--accent);
}
.led.warn {
  background:var(--warn);
}
.led.idle {
  background:var(--grey);
}
.spark {
  display:flex;
  align-items:flex-end;
  gap:2px;
  height:16px;
  margin:6px 0;
}
.spark i {
  width:4px;
  background:var(--accent);
  opacity:.8;
  border-radius:1px;
}
.statusbox hr {
  border:none;
  border-top:1px dashed var(--line);
  margin:10px 0;
}
/* ===================== 正文 ===================== */
main {
  padding:0 clamp(18px,4vw,58px) 100px;
  max-width:none;
  min-width:0;
}
section {
  scroll-margin-top:calc(var(--topbar) + 14px);
  padding-top:64px;
}
/* Hero */
.hero {
  padding-top:30px;
}
.hero .kick {
  color:var(--accent-2);
  letter-spacing:.2em;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}
.hero .kick::before {
  content:"// ";
  color:var(--accent);
}
.hero h1 {
  font-size:clamp(23px,4.2vw,40px);
  line-height:1.2;
  font-weight:800;
  color:var(--txt-bright);
  margin:14px 0 0;
  letter-spacing:-.01em;
}
.hero h1 .g {
  background:linear-gradient(110deg,var(--accent),var(--accent-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.hero .sub {
  color:var(--txt-dim);
  font-size:14px;
  line-height:1.7;
  margin:14px 0 0;
}
.wavebar {
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:24px;
  margin:18px 0 0;
  max-width:920px;
}
.wavebar i {
  flex:1;
  background:linear-gradient(180deg,var(--accent),var(--accent-3));
  opacity:.8;
  transform-origin:bottom;
  animation:beat2 1.6s ease-in-out infinite;
}
@keyframes beat2 {
  0%,100% {
    transform:scaleY(.22);
  }
  50% {
    transform:scaleY(1);
  }
}
/* KPI —— 字符分割的标尺条，非卡片 */
.hero-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:18px;
  background:transparent;
  border-top:2px solid var(--accent);
  border-bottom:1px solid var(--line-2);
}
.hero-stats .hs {
  padding:16px 20px 15px;
  border-right:1px solid var(--line);
}
.hero-stats .hs:last-child {
  border-right:none;
}
.hero-stats .v {
  font-size:24px;
  font-weight:800;
  color:var(--accent-2);
  letter-spacing:-.02em;
  line-height:1;
}
.hero-stats .v.g {
  color:var(--accent-2);
}
.hero-stats .l {
  margin-top:8px;
  color:var(--txt-dim);
  font-size:11px;
  letter-spacing:.03em;
}
/* 章节头 */
.sec-head {
  display:flex;
  align-items:baseline;
  gap:16px;
  margin-bottom:4px;
}
.sec-head .num {
  font-size:clamp(30px,5.5vw,52px);
  font-weight:800;
  color:var(--line-2);
  line-height:.9;
  letter-spacing:.02em;
}
.sec-head .num::before {
  content:"§";
  font-size:.5em;
  color:var(--accent);
  vertical-align:super;
  margin-right:2px;
}
.sec-head .t {
  color:var(--txt-bright);
  font-size:clamp(18px,2.6vw,24px);
  font-weight:800;
}
.sec-head .en {
  color:var(--txt-dim);
  letter-spacing:.16em;
  font-size:11px;
  display:block;
  margin-top:4px;
  font-weight:600;
}
.rule {
  border:none;
  border-top:1px dashed var(--line);
  margin:14px 0 22px;
}
.sec-desc {
  color:var(--txt-dim);
  font-size:14px;
  margin:0 0 22px;
}
.sec-desc::before {
  content:"› ";
  color:var(--accent);
  font-weight:700;
}
h3 {
  font-size:15px;
  font-weight:800;
  color:var(--txt-bright);
  margin:28px 0 14px;
  letter-spacing:-.01em;
}
/* .vs 内的小标题(如「真实输出形态」)左缩进对齐块内 16px 内容线,并与下方表格拉开间距 */
.vs h3 {
  padding:0 16px;
  margin:30px 0 22px;
}
h3.subhead {
  color:var(--txt-bright);
  font-size:15px;
  margin:34px 0 8px;
  font-weight:800;
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
h3.subhead::before {
  content:"▍";
  color:var(--accent);
}
h3.subhead .n {
  color:var(--accent-2);
}
h3.subhead .en {
  color:var(--txt-dim);
  font-weight:500;
  letter-spacing:.1em;
  font-size:11px;
}
p {
  margin:12px 0;
}
/* 特性网格 —— 字符栅格(共享细线，非浮动卡片) */
.grid {
  display:grid;
  gap:14px;
  margin:18px 0;
}
.grid.c4 {
  grid-template-columns:repeat(4,1fr);
}
.grid.c3 {
  grid-template-columns:repeat(3,1fr);
}
.grid.c2 {
  grid-template-columns:repeat(2,1fr);
}
.card {
  --bc:var(--accent);
  background:var(--card-fill);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  padding:24px 22px 22px;
  position:relative;
  transition:background var(--speed);
}
.card:hover {
  --bc:var(--accent-2);
  background:var(--accent-bg2);
}
.card.more {
  display:flex;
  align-items:center;
  color:var(--txt-dim);
  font-size:13px;
  font-weight:500;
  letter-spacing:.01em;
}
.card.more .acc {
  font-weight:700;
}
.card .ic {
  width:42px;
  height:42px;
  border-radius:11px;
  background:var(--accent-bg);
  color:var(--accent-2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:21px;
  font-weight:800;
  margin-bottom:13px;
}
.card .ic svg {
  width:20px;
  height:20px;
  display:block;
}
.card h3 {
  margin:0 0 7px;
  font-size:14px;
  font-weight:800;
  color:var(--txt-bright);
  letter-spacing:-.01em;
}
.card h3::before {
  content:"▸ ";
  color:var(--accent);
}
.card p {
  margin:0;
  color:var(--txt-dim);
  font-size:13px;
  line-height:1.7;
}
/* KPI/统计 —— 同字符栅格 */
/* auto-fit:空轨道塌缩、已填充列用 1fr 平分撑满 → 4 卡填满 4 列、3 卡(如 §8 水位线)自动平分 3 列,任意张数都均宽自适应。minmax 150 保证 >1080 时 4 卡仍同排(≤1080 由下方 @media 切 2 列、≤760 切 1 列) */
.stat-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;
  margin:18px 0;
}
.stat {
  --bc:var(--accent);
  background:var(--card-fill);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  padding:22px;
  position:relative;
}
.card::before,.stat::before,.tablewrap::before,.vs::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid var(--bc);
  border-radius:8px;
  -webkit-mask:linear-gradient(#000 0 0) 0 0/11px 11px no-repeat,linear-gradient(#000 0 0) 100% 0/11px 11px no-repeat,linear-gradient(#000 0 0) 0 100%/11px 11px no-repeat,linear-gradient(#000 0 0) 100% 100%/11px 11px no-repeat;
  mask:linear-gradient(#000 0 0) 0 0/11px 11px no-repeat,linear-gradient(#000 0 0) 100% 0/11px 11px no-repeat,linear-gradient(#000 0 0) 0 100%/11px 11px no-repeat,linear-gradient(#000 0 0) 100% 100%/11px 11px no-repeat;
}
.stat .v {
  font-size:27px;
  font-weight:800;
  color:var(--accent-2);
  letter-spacing:-.02em;
  line-height:1;
}
.stat .k {
  margin-top:8px;
  color:var(--txt-bright);
  font-weight:700;
  font-size:14px;
}
.stat .k::before {
  content:"▸ ";
  color:var(--accent);
}
.stat .d {
  margin-top:3px;
  color:var(--txt-dim);
  font-size:12px;
}
/* 图例 */
.legend {
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  margin:6px 0 14px;
  font-size:12px;
  color:var(--txt-dim);
  padding:8px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.legend b {
  color:var(--txt-bright);
}
.badge-lead {
  color:var(--accent-2);
  font-weight:800;
  border:1px solid var(--accent);
  padding:1px 7px;
  font-size:11px;
  border-radius:5px;
}
.badge-uniq {
  color:var(--ys-2);
  font-weight:800;
  border:1px solid var(--ys);
  padding:1px 7px;
  font-size:11px;
  border-radius:5px;
}
/* 表格 —— 字符竖线分隔(对齐参考图 sym | 第几轮 | …)，开放式无外框 */
.tablewrap {
  margin:16px 0;
  border-radius:10px;
  background:var(--card-fill);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  position:relative;
  --bc:var(--accent);
}
.tablewrap:hover {
  --bc:var(--accent-2);
}
.tscroll {
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:10px;
}
.tablewrap.ghost {
  background:transparent;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.vs .tablewrap {
  background:transparent;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
/* §12 实战对比表:整表满宽;前几列贴合内容(不换行),最后一列吃满剩余宽度,杜绝表格在中途"断宽" */
#s12 table.dd {
  width:100%;
  table-layout:auto;
}
#s12 table.dd th,#s12 table.dd td {
  white-space:nowrap;
}
#s12 table.dd th:last-child,#s12 table.dd td:last-child {
  width:100%;
}
table.dd {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  background:transparent;
}
table.dd th,table.dd td {
  text-align:left;
  padding:10px 18px;
  border-left:1px solid var(--line);
  vertical-align:top;
  line-height:1.6;
}
table.dd th:first-child,table.dd td:first-child {
  border-left:none;
}
table.dd thead th {
  color:var(--txt-bright);
  font-weight:700;
  background:var(--panel-2);
  border-bottom:1px solid var(--line-2);
  white-space:nowrap;
}
table.dd tbody td {
  color:var(--txt);
  border-bottom:1px solid var(--line);
}
table.dd tbody tr:last-child td {
  border-bottom:none;
}
table.dd tbody tr:hover {
  background:var(--panel-2);
}
table.dd td.dimcell,table.dd th.dimcell {
  color:var(--txt-bright);
  font-weight:600;
  white-space:nowrap;
}
table.dd .ys-col {
  color:var(--ys-2);
  font-weight:700;
  background:var(--ys-bg);
  border-left-color:var(--ys-bd);
  text-align:left;
}
table.dd thead .ys-col {
  color:var(--ys-2);
}
table.dd .c-ok {
  color:var(--ok);
  text-align:left;
  font-weight:700;
}
table.dd .c-mid {
  color:var(--warn);
  text-align:left;
}
table.dd .c-no {
  color:var(--grey);
  text-align:left;
}
table.dd td.center {
  text-align:left;
}
/* §6 对标表里较长的竞品口径表头允许换行(免得单列被长表头撑宽);首列(含表头)一律不换行 → 短标签如“优先级”不会被压窄拆成竖排 */
#s6 table.dd thead th:not(:first-child) {
  white-space:normal;
}
/* §2 首页值班判断表:第二列「关注项」是 / 分隔列表 → 单行不换行、按内容取宽;col3/col4 是整句,留在余宽里换行 */
#s2 table.dd th:nth-child(2),#s2 table.dd td:nth-child(2) {
  white-space:nowrap;
}
/* §5 典型告警分级:首列钉 304px = §3 capmatrix 首列宽(同容器同左边 → 首列右竖线对齐);内容仅 ~272,304 收掉 auto 富余、又不裁切 */
#s5 table.dd th:first-child,#s5 table.dd td:first-child {
  width:304px;
}
/* §6 四张表(写入副本/口径对比/恢复证据/阈值标准)首列统一 186px → 彼此对齐;用户原想 180,但「manifest + checksum」实测 185,故取 186 才能全部单行装下不裁切 */
#s6 table.dd th:first-child,#s6 table.dd td:first-child {
  width:186px;
}
/* c2sync(§6 口径对比 + 恢复证据两表):col2 单行 + 统一 384px(两表 col2 内容最大 382,+2 安全)→ 两表 col2 右竖线上下对齐(col1 已同为 186);col3 吃满剩余 */
table.dd.c2sync th:nth-child(2),table.dd.c2sync td:nth-child(2) {
  width:384px;
  white-space:nowrap;
}
/* c2sync2(§6 写入副本策略矩阵 + 默认阈值标准两表):col2 单行 + 统一 273px(表1 col2 内容 271,+2;表4 短值留白但与表1对齐)→ 两表 col2 右竖线对齐 */
table.dd.c2sync2 th:nth-child(2),table.dd.c2sync2 td:nth-child(2) {
  width:273px;
  white-space:nowrap;
}
/* opsalign(§8 资源状态 + §9 部署形态 + §9 切换接管三表):首列钉 208px = §10 经典运维场景 fn 表 col1(纵向对齐);中间列单行贴合内容;末列吃满余宽、可换行、左对齐(末列宽但左对齐也好看) */
table.dd.opsalign th,table.dd.opsalign td {
  white-space:nowrap;
}
table.dd.opsalign th:first-child,table.dd.opsalign td:first-child {
  width:204px;
}
/* 兜底值=§10 fn 表 col1;实际由 JS alignOps() 动态同步,内容变了也自动跟随 */
table.dd.opsalign th:not(:first-child):not(:last-child),table.dd.opsalign td:not(:first-child):not(:last-child) {
  width:1px;
}
/* 中间列收缩到内容宽(width:1px+nowrap),不吃余宽 */
table.dd.opsalign th:last-child,table.dd.opsalign td:last-child {
  white-space:normal;
}
/* 末列可换行 → 作为唯一可伸缩列吸收全部余宽吃满、左对齐;不能设 width:100%,否则会把首列压回内容宽 */
/* §8 表首列也走内容自适应(不再固定 325px) */
/* 全屏单行标准:能力对标矩阵(capmatrix)/ 关注点表(qcol)各列一律贴合内容、单行不换行(首列也不折);
     auto 布局让列宽随内容,全屏放得下;窄屏由下方 @media 的 dd 通则统一退回单行横滑。
     代价:capmatrix 首列(维度名+子说明)≈280、qcol 问句首列≈190,均为单行不换行的必然宽度 */
table.dd.capmatrix th,table.dd.capmatrix td,table.dd.qcol th,table.dd.qcol td {
  white-space:nowrap;
}
/* 能力对标矩阵:首列钉成"刚好的内容宽"(实测 302,留 2px 防异浏览器 CJK 略宽裁切),table-layout:fixed 让其余 5 竞品列平分剩余 */
table.dd.capmatrix {
  table-layout:fixed;
}
table.dd.capmatrix th:first-child,table.dd.capmatrix td:first-child {
  width:304px;
}
/* qcol 默认走 auto + 单行(内容自适应:col1≈193、col2≈409,即"再小一点"的内容宽);
     宽屏(≥1440)下由 JS alignQcol() 量出上方 capmatrix 第 3 条竖线(304px + 2 等分列 = MySQL|Oracle 边)的像素位置,
     给 qcol 设 table-layout:fixed + 像素列宽,使 col2 右竖线与之对齐(CSS calc(%−px) 在 table-fixed 里会被 Chrome 忽略,故用 JS 像素宽)。无 JS 时即此 auto 兜底 */
.tbl-note {
  color:var(--txt-dim);
  font-size:12px;
  margin:8px 0 0;
  padding:0 2px;
}
.tablewrap thead th:first-child {
  border-top-left-radius:10px;
}
.tablewrap thead th:last-child {
  border-top-right-radius:10px;
}
.tbl-note::before {
  content:"└ ";
  color:var(--accent);
}
/* 函数手册：字符分隔的分类标尺 + 速查表 */
.chips {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  margin:4px 0 16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.chip {
  padding:7px 14px;
  border-right:1px solid var(--line);
  font-size:12px;
  color:var(--txt);
}
.chip .n {
  color:var(--accent-2);
  font-weight:800;
  margin-left:5px;
}
.searchbar {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line-2);
  border-radius:10px;
  background:var(--panel);
  padding:9px 14px;
  margin:6px 0 20px;
}
.searchbar .ic {
  color:var(--accent);
  font-weight:800;
}
.searchbar input {
  flex:1;
  border:none;
  background:transparent;
  color:var(--txt);
  font-family:var(--mono);
  font-size:14px;
  outline:none;
}
.fn-cat {
  margin:22px 0;
}
.fn-cat-h {
  color:var(--txt-bright);
  font-size:14px;
  font-weight:800;
  margin:0 0 6px;
  display:flex;
  align-items:center;
  gap:9px;
}
.fn-cat-h::before {
  content:"▍";
  color:var(--accent);
}
.fn-cat-h .n {
  color:var(--accent-2);
  font-size:12px;
}
table.fn {
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
  font-size:12px;
  background:transparent;
}
table.fn th:nth-child(1),table.fn td:nth-child(1),table.fn th:nth-child(2),table.fn td:nth-child(2) {
  width:25%;
}
table.fn th,table.fn td {
  text-align:left;
  padding:9px 16px;
  border-bottom:1px solid var(--line);
  border-left:1px solid var(--line);
  vertical-align:top;
  line-height:1.6;
}
table.fn tbody tr:last-child td {
  border-bottom:none;
}
table.fn th:first-child,table.fn td:first-child {
  border-left:none;
}
table.fn thead th {
  color:var(--txt-dim);
  font-weight:700;
  background:var(--panel-2);
  border-bottom:1px solid var(--line-2);
  font-size:11px;
  letter-spacing:.04em;
}
table.fn td.fn-name {
  color:var(--accent-2);
  font-weight:700;
  white-space:nowrap;
}
table.fn td.fn-sig {
  color:var(--txt-bright);
  white-space:normal;
  word-break:break-word;
}
table.fn td.fn-desc {
  color:var(--txt-dim);
}
table.fn tbody tr:hover td {
  background:var(--panel-2);
}
/* JS 量出统一列宽后启用:所有列不换行(col1/col2 跨表对齐、col3 吃满);窄屏整表在各自 .tscroll 内横滑。无 JS 时回退为上面的换行布局 */
body.fn-fit table.fn th,body.fn-fit table.fn td {
  white-space:nowrap;
}
/* fn-solo:独立证据表,不参与 fitFn 跨表对齐 → 走 auto 布局,仅把首列固定到≈180,col2/col3 贴合各自内容、全屏下单行不换行(沿用 body.fn-fit 的 nowrap) */
table.fn.fn-solo {
  table-layout:auto;
}
table.fn.fn-solo th:nth-child(1),table.fn.fn-solo td:nth-child(1) {
  width:180px;
}
#fn-noresult {
  display:none;
  color:var(--txt-dim);
  padding:18px 2px;
  border-top:1px solid var(--line);
}
#fn-noresult::before {
  content:"// ";
  color:var(--accent);
}
/* 代码块 */
pre.code {
  background:transparent;
  border:none;
  padding:0;
  overflow-x:auto;
  font-size:12.5px;
  line-height:1.6;
  margin:0;
  white-space:pre;
  -webkit-overflow-scrolling:touch;
}
pre.code .c {
  color:var(--txt-dim);
  font-style:italic;
}
pre.code .k {
  color:var(--accent-2);
  font-weight:600;
}
pre.code .s {
  color:var(--ys-2);
}
pre.code .f {
  color:var(--txt-bright);
  font-weight:600;
}
/* 实战 / 代码比对 —— 字符分栏，开放式(无卡片)，仅细线分隔 */
.vs {
  margin:18px 0;
  border-radius:10px;
  background:var(--card-fill);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
  overflow:hidden;
  position:relative;
  --bc:var(--accent);
}
.vs:hover {
  --bc:var(--accent-2);
}
.vs.key {
  --bc:var(--ys);
}
.vs.key::before {
  border-width:2px;
}
.vs.key:hover {
  --bc:var(--ys-2);
}
.vs-head {
  padding:13px 16px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--line);
}
.vs-head .t {
  color:var(--txt-bright);
  font-weight:800;
  font-size:14px;
}
.vs-head .t::before {
  content:"❯ ";
  color:var(--accent);
}
.vs-head .tag {
  padding:2px 9px;
  font-size:11px;
  font-weight:800;
  border:1px solid currentColor;
  border-radius:5px;
}
.vs-head .tag.lead {
  color:var(--accent-2);
}
.vs-head .tag.key {
  color:var(--ys-2);
}
.vs-head .tag.rare {
  color:var(--warn);
}
.vs-cut {
  color:var(--txt-dim);
  font-size:12px;
  flex-basis:100%;
}
.vs-cut b {
  color:var(--accent-2);
}
.vs-cols {
  display:grid;
  grid-template-columns:1fr 1fr;
}
.vs-col {
  padding:14px 16px;
  min-width:0;
}
.vs-col.bad {
  border-right:1px solid var(--line);
}
.vs-lab {
  font-size:12px;
  font-weight:800;
  margin-bottom:9px;
  letter-spacing:.02em;
}
.vs-col.bad .vs-lab {
  color:var(--danger);
}
.vs-col.good .vs-lab {
  color:var(--accent-2);
}
.vs-why {
  padding:12px 16px;
  border-top:1px dashed var(--line);
  background:var(--panel-2);
  color:var(--txt-dim);
  font-size:13px;
}
.vs-why::before {
  content:"└─ ";
  color:var(--accent);
  font-weight:700;
}
.vs-why b {
  color:var(--accent-2);
}
.vs-single {
  padding:12px 16px;
  color:var(--txt-dim);
  font-size:13px;
}
/* callout —— 左标线注释，非卡片 */
.callout {
  border-left:3px solid var(--accent);
  background:var(--accent-bg2);
  padding:11px 16px;
  margin:14px 0;
  font-size:13px;
}
.callout .tag {
  font-weight:800;
  font-size:12px;
  margin-right:8px;
}
.callout.tip {
  border-left-color:var(--accent);
}
.callout.tip .tag {
  color:var(--accent-2);
}
.callout.note {
  border-left-color:var(--ys);
  background:var(--ys-bg);
}
.callout.note .tag {
  color:var(--ys-2);
}
.callout.danger {
  border-left-color:var(--danger);
  background:transparent;
}
.callout.danger .tag {
  color:var(--danger);
}
.kbd {
  font-family:var(--mono);
  background:var(--panel-2);
  border:1px solid var(--line);
  padding:1px 6px;
  font-size:12px;
  color:var(--accent-2);
}
/* 结语 */
.closing {
  margin:70px 0 0;
  padding:24px 0 0;
  border-top:2px solid var(--accent);
}
.closing h3 {
  margin:0 0 10px;
  color:var(--accent-3);
  font-size:16px;
  font-weight:800;
}
.closing h3::before {
  content:"■ ";
  color:var(--accent);
}
.closing p {
  margin:8px 0;
  color:var(--txt);
  font-size:14px;
}
/* 页脚 */
footer {
  border-top:1px solid var(--line-2);
  padding:24px clamp(18px,4vw,58px);
  color:var(--txt-dim);
  font-size:12px;
}
footer .wave {
  letter-spacing:-1px;
  color:var(--accent);
  opacity:.5;
  word-break:break-all;
}
footer .line {
  display:flex;
  flex-wrap:wrap;
  gap:8px 22px;
  justify-content:space-between;
  margin-top:14px;
}
footer .disc {
  margin-top:10px;
  line-height:1.6;
}
#totop {
  position:fixed;
  right:16px;
  bottom:calc(20px + env(safe-area-inset-bottom,0px));
  z-index:45;
  width:44px;
  height:44px;
  background:var(--accent);
  color:#fff;
  border:none;
  font-size:19px;
  cursor:pointer;
  display:grid;
  place-items:center;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .2s,transform .24s;
}
#totop.show {
  opacity:1;
  transform:none;
  pointer-events:auto;
}
/* ===================== 响应式 ===================== */
.backdrop {
  display:none;
}
@media (max-width:1080px) {
  .grid.c4 {
    grid-template-columns:repeat(2,1fr);
  }
  .stat-grid {
    grid-template-columns:repeat(2,1fr);
  }
}
@media (max-width:960px) {
  /* minmax(0,1fr) 而非 1fr:轨道最小值设 0,允许主列收缩到视口宽,宽表在各自 .tscroll 内横滑,整页不再横向溢出 */
  .shell {
    grid-template-columns:minmax(0,1fr);
  }
  .sidebar {
    position:fixed;
    top:var(--topbar);
    left:0;
    z-index:60;
    width:296px;
    max-width:84vw;
    background:var(--bg);
    transform:translateX(-104%);
    transition:transform .26s ease;
    box-shadow:var(--shadow-lg);
  }
  body.nav-open .sidebar {
    transform:none;
  }
  body.nav-open .backdrop {
    display:block;
    position:fixed;
    inset:var(--topbar) 0 0 0;
    z-index:55;
    background:rgba(0,0,0,.45);
  }
  .menubtn {
    display:grid;
  }
  .topnav {
    display:none;
  }
  /* 触屏可用性:抽屉导航行与图标按钮放大到 ≥40px 触控目标 */
  body.nav-open .nav li a {
    padding-top:9px;
    padding-bottom:9px;
  }
  .iconbtn {
    width:40px;
    height:40px;
  }
  main {
    max-width:100%;
  }
  .vs-cols {
    grid-template-columns:1fr;
  }
  .vs-col.bad {
    border-right:none;
    border-bottom:1px dashed var(--line);
    padding-right:0;
  }
  .vs-col.good {
    padding-left:0;
  }
}
@media (max-width:620px) {
  .grid.c4,.grid.c3,.grid.c2,.stat-grid {
    grid-template-columns:1fr;
  }
  .hero-stats {
    grid-template-columns:1fr;
    border-top:2px solid var(--accent);
  }
  .hero-stats .hs {
    border-right:none;
    border-bottom:1px solid var(--line);
  }
  .hero-stats .hs:last-child {
    border-bottom:none;
  }
  .sec-head {
    gap:12px;
  }
  main {
    padding-left:16px;
    padding-right:16px;
  }
}
/* 移动端(与表格脚本同阈值):所有数据表【单行紧凑显示】,列贴合内容,整表在各自 .tscroll 内左右侧滑查看——
     不再被压窄成逐字竖排的高条。!important 覆盖 §2/§4/§6 桌面版的 white-space:normal */
@media (max-width:760px) {
  table.dd:not(.doc-audit-table) th,table.dd:not(.doc-audit-table) td {
    white-space:nowrap !important;
    word-break:keep-all !important;
  }
  table.dd {
    width:auto;
  }
  #s8 table.dd th:first-child,#s8 table.dd td:first-child {
    width:auto;
    min-width:0;
  }
  #s5 table.dd th:first-child,#s5 table.dd td:first-child {
    width:auto;
  }
  /* §5 首列窄屏回内容自适应(不固定 304) */
  #s6 table.dd th:first-child,#s6 table.dd td:first-child {
    width:auto;
  }
  /* §6 四表首列窄屏回内容自适应(不固定 186) */
  table.dd.c2sync th:nth-child(2),table.dd.c2sync td:nth-child(2) {
    width:auto;
  }
  /* c2sync col2 窄屏回内容自适应(不固定 384),单行横滑由 dd 通则接管 */
  table.dd.c2sync2 th:nth-child(2),table.dd.c2sync2 td:nth-child(2) {
    width:auto;
  }
  /* c2sync2 同上(不固定 273) */
  table.dd.opsalign th:first-child,table.dd.opsalign td:first-child {
    width:auto;
  }
  /* opsalign 首列窄屏回内容自适应(不固定 208) */
  table.dd.opsalign th:last-child,table.dd.opsalign td:last-child {
    width:auto;
  }
  /* opsalign 末列窄屏不强制 100%,单行横滑由 dd 通则接管 */
  /* capmatrix 桌面是 fixed+首列 304;窄屏要退回 auto + 首列 auto,交给上面的 dd 通则(nowrap+width:auto)单行横滑。qcol 本就是 auto 无需复位 */
  table.dd.capmatrix {
    table-layout:auto;
  }
  table.dd.capmatrix th:first-child,table.dd.capmatrix td:first-child {
    width:auto;
  }
  /* fn-solo:窄屏首列也内容自适应(不固定 180),单行在 .tscroll 内横滑,与其它 fn 表一致 */
  table.fn.fn-solo th:nth-child(1),table.fn.fn-solo td:nth-child(1) {
    width:auto;
  }
}
/* highlight.js · 跟随主题的融合配色(透明底,融入卡片) */
pre.code code {
  display:block;
  background:transparent;
  padding:0;
  color:var(--txt);
}
pre.code code.hljs {
  background:transparent;
  padding:0;
}
pre.code .hljs-keyword,pre.code .hljs-built_in,pre.code .hljs-literal {
  color:var(--accent-2);
  font-weight:600;
}
pre.code .hljs-string,pre.code .hljs-regexp {
  color:var(--ys-2);
}
pre.code .hljs-comment,pre.code .hljs-quote {
  color:var(--txt-dim);
  font-style:italic;
}
pre.code .hljs-number {
  color:var(--ys-2);
}
pre.code .hljs-meta,pre.code .hljs-meta .hljs-keyword {
  color:var(--code-anno);
}
pre.code .hljs-title,pre.code .hljs-title.function_,pre.code .hljs-section {
  color:var(--txt-bright);
  font-weight:600;
}
pre.code .hljs-title.class_,pre.code .hljs-type {
  color:var(--accent-3);
}
pre.code .hljs-attr,pre.code .hljs-attribute,pre.code .hljs-property,pre.code .hljs-variable {
  color:var(--ys-2);
}
pre.code.prose {
  color:var(--txt-dim);
  font-style:normal;
}
/* ===================== 性能 / 兼容增强（均为渐进增强,主流浏览器走原路径,观感零变化） ===================== */
/* ① backdrop-filter 不支持时(Firefox 关开关 / 低端安卓 WebView / 部分国产内核):磨砂面退化为不透明 panel,保住文字对比度 */
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) {
  .card,.stat,.tablewrap,.vs {
    background:var(--panel);
  }
  .tablewrap.ghost,.vs .tablewrap {
    background:transparent;
  }
  /* 保留既有透明语义 */
}
/* ② 长页面懒渲染:首屏外 section 跳过离屏布局/绘制,显著缩短首次渲染与主题切换重排;contain-intrinsic-size 占位防滚动条跳动 */
@supports (content-visibility:auto) {
  section {
    content-visibility:auto;
    contain-intrinsic-size:1000px;
    contain-intrinsic-size:auto 1000px;
  }
  #s1 {
    content-visibility:visible;
  }
  /* 紧邻首屏的首个 section 始终渲染,避免初次进入闪烁 */
}
/* ③ 尊重系统“减弱动态效果”:停掉常驻无限动画 + 平滑滚动,省电/无障碍(默认用户观感不变) */
@media (prefers-reduced-motion:reduce) {
  .pulse i,.live .dot,.wavebar i {
    animation:none!important;
  }
  #totop {
    transition:none;
  }
  html {
    scroll-behavior:auto;
  }
}
/* ════════════════════════════════════════════════════════════
   YoungsData 官网视觉标准 · 2026-08-22 定稿
   ────────────────────────────────────────────────────────────
   用法：把本文件内容原样内联到页面 head 结束标签之前的 style 标签里。
        官网各页 CSS 均为内联，不引外部样式表，故不用 <link>。

   ⚠️ 这套皮肤只做三件事，任何扩展都必须先确认：
        ① 配色令牌（浅色 + 暗色）
        ② 菜单字号（顶栏 / 侧栏主项 / 侧栏次级）
        ③ 页尾品牌水印

   ⛔ 明确不做（2026-08-22 决策，勿再自行加回）：
        · 不动 .card::before 的四角取景框 —— 终端美学的招牌元素
        · 不动 body 的 34px 背景网格
        · 不动卡片的 backdrop-filter 磨砂与半透明底
        · 不加 box-shadow、不改 border-radius
        · 不改任何 padding / margin / gap —— 现有间距已定稿
        · 不改任何内容区字号（正文 14 / 卡片 13 / 表格 13 / 代码 12.5）

   验收标准（按结构路径逐元素比对，非按 DOM 索引 —— 索引会因注入
   <style> 而整体错位 1，比出来的是错的）：
        套用后应为「2520 个元素中 2496 未变、24 有变」，
        且 24 处全部落在导航区（顶栏菜单 + 侧栏主项 + 侧栏次级）。
   ════════════════════════════════════════════════════════════ */
/* PPT 皮肤 · 视觉令牌 + 菜单字号 + 水印 + 卡片图标区
   除图标区外不动任何布局 / 字体 / 圆角
   注意：官网的线条令牌是 line < line-2 < line-strong 逐级加深，
   与汇报模板方向相反，故按「深浅语义」映射而非按名字对应。 */
html[data-theme="light"] {
  --bg:#F8F9FA;
  /* 绿调白 → 冷灰白 */
  --bg-grid:rgba(25,26,35,.020);
  --panel:#FFFFFF;
  --panel-2:#F1F3F6;
  --panel-3:#E8E9F0;
  --line:#E4E6EE;
  /* 浅 */
  --line-2:#D2D3E0;
  /* 中 */
  --line-strong:#B6B8C8;
  /* 深 */
  --txt:#191A23;
  /* 偏绿黑 → 偏蓝墨黑 */
  --txt-dim:#858699;
  /* 偏绿灰 → 偏紫灰 */
  --txt-bright:#0F1017;
  --accent:#00A870;
  /* 品牌绿：两套本就一致 */
  --accent-2:#00814F;
  --accent-3:#006B42;
  --accent-bg:#E9F6F1;
  --accent-bg2:#F3FAF7;
  --topbar-bg:#F8F9FA;
  --shadow-lg:0 18px 44px -22px rgba(25,26,35,.22);
  --card-fill:rgba(255,255,255,.72);
  --ok:#00814F;
  --warn:#B07A16;
  --warn-bg:#FBF4E6;
  --danger:#C0453F;
  --grey:#A9AAB8;
}
/* ══ 仅此三行：侧栏菜单 + 顶栏导航的字号 ═══════════════════
   实测原状：顶栏菜单 14px / 侧栏主项 14px / 侧栏次级 13px，行高一律 1.7。
   导航是单行标签，与 14px 正文同号导致层级未拉开、菜单项之间过松。
   .brand 排除在外 —— 它是 <a>，内部 <small> 用相对字号，一起缩会掉到 10.8px。 */
.topbar a:not(.brand) {
  font-size:13px !important;
  line-height:1.5 !important;
}
.nav li a {
  font-size:13px !important;
  line-height:1.52 !important;
}
.nav .sub a {
  font-size:12.5px !important;
  line-height:1.5 !important;
}
/* ══ 暗色：仅同步配色，不含任何其他改动 ═══════════════════ */
html[data-theme="dark"] {
  --bg:#14151C;
  --bg-grid:rgba(140,145,170,.030);
  --panel:#1B1D26;
  --panel-2:#22242F;
  --panel-3:#2A2C38;
  --line:#282A35;
  --line-2:#363845;
  --line-strong:#4A4C5C;
  --txt:#C9CBD7;
  --txt-dim:#858699;
  --txt-bright:#F1F2F6;
  --accent:#34E3A6;
  --accent-2:#2BD398;
  --accent-3:#16A075;
  --accent-bg:rgba(52,227,166,.10);
  --accent-bg2:rgba(52,227,166,.05);
  --topbar-bg:#14151C;
  --card-fill:rgba(27,29,38,.55);
  --shadow-lg:0 22px 50px -28px rgba(0,0,0,.8);
  --ok:#34E3A6;
  --warn:#E0B15E;
  --warn-bg:rgba(224,177,94,.10);
  --danger:#F08A84;
  --grey:#5A5C6B;
}
/* ══ 页尾品牌水印 ══════════════════════════════════════════
   定位到 body 末端、z-index 0、pointer-events:none，
   内容在其上层，只从页面底部留白处透出。 */
body {
  position:relative;
}
body::after {
  content:"YOUNGSDATA";
  position:absolute;
  right:2vw;
  bottom:128px;
  z-index:0;
  font-family:var(--mono);
  font-weight:800;
  font-size:clamp(72px,9.2vw,160px);
  line-height:.9;
  letter-spacing:-.02em;
  color:#EBEEF1;
  transform:rotate(-6deg) skewX(-9deg);
  transform-origin:100% 100%;
  pointer-events:none;
  user-select:none;
  white-space:nowrap;
}
html[data-theme="dark"] body::after {
  color:#1D1F28;
}
/* ④ 卡片图标区：框/图标 42/20=2.10 偏虚 → 38/21=1.81（视觉舒适区）
   -3px 为顶部光学补偿：顶边留白视觉大于同数值侧边留白 */
.card > .ic {
  width:38px;
  height:38px;
  margin-bottom:11px;
}
.card > .ic:first-child {
  margin-top:-3px;
}
.card > .ic svg {
  width:21px;
  height:21px;
}
/* ⑤ 垂直节奏收紧（2026-08-23）
   版块间距 64→52px：section 相邻 margin 为 0，版块间隔全在这条 padding-top 上。
   图标上下 21/11 → 18/9：图标区总高 49→45px。
   卡片网格 gap 14px 不动——已经很紧，再收会粘连。 */
section {
  padding-top:52px;
}
.card > .ic {
  margin-bottom:9px;
}
.card > .ic:first-child {
  margin-top:-6px;
}
/* ⑥ 正文密度与表格字号（2026-08-23）
   行高 1.7→1.6：13px 正文每行省 1.3px，视觉密度上来了，可读性不降。
   比起动字号，收行高是更划算的做法——13→12.5 只差 0.5px，肉眼无感。
   表格 table.dd 13→12.5px，与代码块同档：两者都是「数据展示」，
   区别于 .card p 的「阅读正文」13px。
   table.fn 保持 12px —— 函数手册密度更高，本就该比主表格再小一档。 */
body {
  line-height:1.6;
}
.hero .sub {
  line-height:1.6;
}
.card p {
  line-height:1.6;
}
table.dd {
  font-size:12.5px;
}
/* 顶栏当前页高亮：sql/ops 原本没有 .active 规则（只有 distributed 有），
   顶栏改为全站导航后必须补，否则当前页没有任何标识。
   用 --panel-2 底 + --txt-bright 字，与 distributed 的表现一致。 */
.topnav a.active {
  background:var(--panel-2);
  color:var(--txt-bright);
}
/* ══ 全站统一一级导航 · 终端绿系下拉（2026-08-23）══════════
   一级项与首页系一致：产品 / 解决方案 / 技术文档 / 资源 / 关于。
   「技术文档」下拉列出本组 7 个技术页，当前页标 .on。

   令牌兼容：sql/ops 用 --panel-2 / --txt-bright / --line-2，
   distributed/benchmark/report 系用 --panel2 / --bright / --line，
   故用 var() 链式兜底，一套规则适配两组，不必分文件维护。

   下拉面板带一层很淡的投影 —— 这是新增的浮层组件，
   必须与页面分离才能读；与「不给卡片加阴影」那条不冲突。 */
/* align-self:stretch 让触发器撑满顶栏高度 —— 否则它只有文字高(31.5px)，
   top:100% 会落在顶栏内部，面板与顶栏重叠 8px。 */
/* 两级都要撑满：.topnav 自身也只有内容高度(32px)，
   只给 .tn-group 加 stretch 无效，top:100% 仍落在顶栏内部。
   给 .topnav 补 align-items:center，避免其中的 <a> 被拉高、hover 底块变形。 */
.topbar .topnav {
  align-self:stretch;
  align-items:center;
}
.tn-group {
  position:relative;
  display:inline-flex;
  align-self:stretch;
  align-items:center;
}
.tn-group>a {
  display:inline-flex;
  align-items:center;
  gap:5px;
}
.tn-group .caret {
  width:0;
  height:0;
  border:3.5px solid transparent;
  border-top-color:currentColor;
  margin-top:3px;
}
/* 悬停桥：鼠标从触发器移到面板途中不丢 hover */
.tn-group::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:8px;
}
.tn-menu {
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:186px;
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:6px;
  background:var(--panel,var(--panel2,#fff));
  border:1px solid var(--line-2,var(--line,#D2D3E0));
  border-radius:10px;
  box-shadow:0 16px 36px -20px rgba(0,0,0,.30);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s;
}
.tn-group:hover .tn-menu,.tn-group:focus-within .tn-menu {
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.tn-menu a {
  padding:7px 10px;
  border-radius:6px;
  white-space:nowrap;
  color:var(--txt-dim,var(--dim,#858699));
}
.tn-menu a:hover {
  background:var(--panel-2,var(--panel2,#F1F3F6));
  color:var(--txt-bright,var(--bright,#0F1017));
}
.tn-menu a.on {
  color:var(--accent,var(--green2,#00A870));
  background:var(--accent-bg,rgba(0,168,112,.10));
}
/* 内容区行高一律 1.6（BASELINE.md 二）。
   逐个覆盖原样式里写死 1.7 的选择器，而非用 p{} 一刀切——
   .legend p / .step p 的 1.65 是有意的更紧值，不能被压。 */
body {
  line-height:1.6;
}
.hero .sub {
  line-height:1.6;
}
.card p {
  line-height:1.6;
}
/* ══ 水印修复（2026-08-23）════════════════════════════════
   根因：水印与装饰光球抢同一个 body::after。一个元素只有一个 ::after，
   后出现的光球规则先用 content:'' 清空文字，末尾又一条 display:none
   把整个伪元素关掉 —— 水印被连带关死，实测 index.html content 为空。

   修法不是换挂载点（youngs-db 等页没有 .aurora-outro，换了会丢水印），
   而是在末位块按 README 定稿规格重新声明一次，并逐条抵消光球留下的
   position:fixed / 280px 圆 / blur(60px) / opacity:.18，只保留文字。 */
body::after {
  content:"YOUNGSDATA" !important;
  display:block !important;
  position:absolute !important;
  right:2vw !important;
  bottom:128px !important;
  left:auto !important;
  top:auto !important;
  width:auto !important;
  height:auto !important;
  border-radius:0 !important;
  background:none !important;
  filter:none !important;
  opacity:1 !important;
  z-index:0 !important;
  font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,monospace) !important;
  font-weight:800 !important;
  font-size:clamp(72px,9.2vw,160px) !important;
  line-height:.9 !important;
  letter-spacing:-.02em !important;
  color:#EBEEF1 !important;
  transform:rotate(-6deg) skewX(-9deg) !important;
  transform-origin:100% 100% !important;
  pointer-events:none !important;
  user-select:none !important;
  white-space:nowrap !important;
}
html[data-theme="dark"] body::after {
  color:#1D1F28 !important;
}
body {
  position:relative;
}
