/* 算力中转站 · 材质与框架层（加载在 app.css 之后）
   材质：底是暖象牙实色 + 很淡的暖光；面板、卡片一律实底，靠 surface / sunk 分层；每页最多 1 张强调卡。
   玻璃只给"浮起来、会消失"的东西：菜单、弹窗、抽屉、⌘K、toast、滚动后的吸顶栏、液态高亮块。 */
:root {
  --glass: rgba(255, 252, 248, .74); --glass-edge: rgba(255, 255, 255, .75); --glass-line: rgba(113, 81, 53, .12);
  --glass-blur: saturate(1.6) blur(20px);
  --glass-shadow: 0 16px 40px -16px rgba(108, 67, 38, .28), 0 2px 8px rgba(108, 67, 38, .06);
  --pill: #FFFFFF;
  --pill-shadow: 0 1px 2px rgba(108, 67, 38, .10), 0 0 0 1px rgba(113, 81, 53, .08), 0 4px 12px -4px rgba(108, 67, 38, .16);
  --glow-a: rgba(226, 160, 120, .16); --glow-b: rgba(214, 186, 160, .14);
  --accent-grad: linear-gradient(135deg, #F6E1D3 0%, #FAEEE5 55%, #FFF8F2 100%);
  --accent-edge: rgba(158, 73, 49, .12);
  --c2: #D4A27F; --c3: #8FA89B; --c4: #A49BC4; --c5: #D2AE5C;
  --side-w: 220px;
}
:root[data-theme="dark"] {
  --glass: rgba(41, 37, 33, .78); --glass-edge: rgba(255, 240, 226, .07); --glass-line: rgba(235, 210, 186, .12);
  --glass-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .25);
  --pill: #3A332D;
  --pill-shadow: 0 0 0 1px rgba(235, 210, 186, .10), 0 4px 12px -4px rgba(0, 0, 0, .5);
  --glow-a: rgba(238, 164, 126, .07); --glow-b: rgba(160, 120, 90, .06);
  --accent-grad: linear-gradient(135deg, #4A332A 0%, #382B25 60%, #2E2622 100%);
  --accent-edge: rgba(238, 164, 126, .14);
  --c2: #B98A68; --c3: #7E978A; --c4: #8F87AE; --c5: #B9984E;
}

/* ---------------------------------------------------------------- 底：实色 + 两团极淡的暖光 */
body { background: var(--bg); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 0% 0%, var(--glow-a), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, var(--glow-b), transparent 70%);
}

/* ---------------------------------------------------------------- 图标 */
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ibtn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; flex: none; border: 0; border-radius: 8px;
  background: transparent; color: var(--mute); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.ibtn:hover { background: var(--hover); color: var(--ink); }
.ibtn.xs { width: 22px; height: 22px; border-radius: 6px; }
.ibtn.xs .ic { width: 13px; height: 13px; }
.btn .ic { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- 卡片：实底，标题 = 图标方块 + 标题 + 灰色副标题 + 右侧操作 */
.card { box-shadow: 0 1px 2px var(--shadow); }
.card-hd .ci {
  width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; flex: none;
  background: var(--sunk); color: var(--accent);
}
.card-hd .sub { color: var(--faint); font-size: 12px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col > .card + .card { margin-top: 0; }
.tag.accent { background: var(--accent-bg); color: var(--accent); }

/* 强调卡：淡陶土渐变，每页最多 1 张 */
.card.accent {
  background: var(--accent-grad); border-color: var(--accent-edge); box-shadow: 0 1px 2px var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.card.accent .k { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; }
.card.accent .k .ic { color: var(--accent); }
.card.accent .big { color: var(--ink); font-size: 28px; font-weight: 600; line-height: 1.3; margin-top: 6px; }
.card.accent .s { color: var(--mute); font-size: 12px; min-height: 20px; }
.card.accent.warn .s { color: var(--yellow); font-weight: 500; }
.card.accent .strip { margin-top: 16px; }

/* 表格：表头浅灰，行高 44 */
.card .tbl-wrap th { background: var(--sunk); border-bottom-color: var(--line); }
.card .tbl-wrap > table > thead > tr > th:first-child { border-top-left-radius: 0; }
td { padding: 11px 16px; }
.card > .tbl-wrap:first-child { margin-top: -16px; }
.card > .tbl-wrap:first-child th:first-child { border-top-left-radius: 16px; }
.card > .tbl-wrap:first-child th:last-child { border-top-right-radius: 16px; }
.card > .tbl-wrap:last-child { margin-bottom: -16px; }
td.act { width: 1%; white-space: nowrap; text-align: right; padding-top: 0; padding-bottom: 0; }
td.act > * { vertical-align: middle; }
td.act > * + * { margin-left: 4px; }
/* 网格内的卡片靠 gap 分隔，不再叠加相邻卡片的上外边距；网格之间补齐间距 */
.grid > .card + .card { margin-top: 0; }
.grid + .grid { margin-top: 16px; }

.search { position: relative; display: block; }
.search .ic { position: absolute; left: 10px; top: 8px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding-left: 32px; }

/* ---------------------------------------------------------------- 框架：左侧分组侧栏 + 内容面板 */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  padding: 16px 12px; border-right: 1px solid var(--line);
}
.side .logo { padding: 4px 8px 8px; white-space: nowrap; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .grp { padding: 14px 10px 6px; font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.side nav a {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 10px;
  color: var(--mute); font-size: 13px; transition: color .15s var(--ease), background .15s var(--ease);
}
.side nav a:hover { color: var(--ink); background: var(--hover); }
.side nav a.on { color: var(--ink); font-weight: 500; background: var(--pill); box-shadow: var(--pill-shadow); }
.side nav a.on .ic { color: var(--accent); }
.side .foot { margin-top: auto; padding: 16px 0 0; }
.side .foot .seg { display: flex; }
.side .foot .seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.bar.stuck { border-bottom-color: var(--glass-line); }
.bar .crumb { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 13px; min-width: 0; white-space: nowrap; }
.bar .crumb b { color: var(--ink); font-weight: 500; }
.bar .menu-btn { display: none; }
.bar .bal .ic, .top .bal .ic { color: var(--accent); width: 14px; height: 14px; }
.main > .page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 24px 48px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: var(--side-w); background: var(--bg);
    transform: translateX(-100%); transition: transform .22s var(--ease);
  }
  .side.open { transform: none; box-shadow: var(--glass-shadow); }
  .side-mask { position: fixed; inset: 0; z-index: 59; background: var(--mask); }
  .bar { padding: 0 12px; gap: 8px; }
  .bar .menu-btn { display: inline-grid; }
  .bar .crumb .g { display: none; }
  .main > .page { padding: 8px 12px 40px; }
}
@media (max-width: 560px) { .kbtn span, .kbtn kbd { display: none; } .kbtn { padding: 0 8px; } }

/* ---------------------------------------------------------------- 1 液态高亮块：当前项下垫一块胶囊，切换时拉长再回弹 */
.lq { position: relative; }
.lq > .lq-pill {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  background: var(--pill); box-shadow: var(--pill-shadow); opacity: 0; transition: opacity .2s var(--ease);
}
.seg > .lq-pill { border-radius: 8px; }
.nav > .lq-pill { border-radius: var(--r); }
.side nav > .lq-pill { border-radius: 10px; }
.lq > :not(.lq-pill) { position: relative; z-index: 1; }
.lq.lq > .on { background: transparent; box-shadow: none; }

/* ---------------------------------------------------------------- 浮层：玻璃 */
.kbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--mute); font: 12px var(--sans); cursor: pointer;
}
.kbtn:hover { color: var(--ink); border-color: var(--line-2); }
.kbtn .ic { width: 14px; height: 14px; }
kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--sunk); border: 1px solid var(--line); color: var(--mute); }
.menu button.danger { color: var(--red); }
.menu .ic { color: var(--faint); }

.toast { background: rgba(38, 36, 33, .88); color: #FBF4EC; }
:root[data-theme="dark"] .toast { background: rgba(245, 238, 229, .92); color: #201D1A; }
.toast.err { background: var(--red); color: #fff; }

dialog.cmdk { width: min(600px, calc(100vw - 32px)); margin: 14vh auto auto; border-radius: 20px; overflow: hidden; }
dialog.cmdk[open] { animation: cmdk-in .22s var(--ease); }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.cmdk input {
  width: 100%; height: 56px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; font-size: 16px; box-shadow: none;
}
.cmdk input:focus { box-shadow: none; }
.cmdk ul { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.cmdk li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; cursor: pointer; color: var(--ink-2); }
.cmdk li.on { background: var(--pill); box-shadow: var(--pill-shadow); color: var(--ink); }
.cmdk li .sub { font: 11px var(--mono); color: var(--faint); }
.cmdk li .g { margin-left: auto; font-size: 11px; color: var(--faint); }
.cmdk li.none { cursor: default; color: var(--mute); justify-content: center; }
.cmdk mark { background: transparent; color: var(--accent); font-weight: 600; }
.cmdk .ft { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu, dialog, .drawer, .auth-card, .bar.stuck, .top.stuck {
    background: var(--glass); border-color: var(--glass-line);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  }
  .menu, dialog, .auth-card { box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow); }
  .toast { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  dialog::backdrop, .drawer-mask, .side-mask { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .top { transition: background .2s var(--ease), border-color .2s var(--ease); }
}
.top { background: var(--bg); }
.top.stuck { border-bottom-color: var(--glass-line); }
/* 公开页顶栏左右边缘对齐正文（.page 最大 1180、内边距 24） */
@media (min-width: 561px) { .top { padding: 0 max(24px, calc((100% - 1180px) / 2 + 24px)); } }

/* ---------------------------------------------------------------- 概览 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats .st { padding: 0 16px; border-left: 1px solid var(--line); min-width: 0; }
.stats .st:first-child { padding-left: 0; border-left: 0; }
.stats .st:last-child { padding-right: 0; }
.st .k { font-size: 12px; color: var(--mute); }
.st .v { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-top: 2px; }
.spark { display: block; width: 100%; height: 36px; margin-top: 10px; overflow: visible; }
.spark .ln { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: var(--accent-bg); opacity: .8; }
.spark .base { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats .st { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats .st:first-child { padding-top: 0; border-top: 0; }
}

/* 按模型堆叠的柱状图 */
.sbars { display: flex; align-items: stretch; gap: 4px; height: 180px; border-bottom: 1px solid var(--line); }
.sbars .c { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; }
.sbars .c:hover { background: var(--hover); }
.sbars .stack { display: flex; flex-direction: column-reverse; min-height: 2px; border-radius: 4px 4px 1px 1px; overflow: hidden; transition: height .5s var(--ease); }
.sbars .stack i { display: block; min-height: 1px; }
.sbars .c.zero .stack { min-height: 0; }
.sbars-ax { display: flex; gap: 4px; margin-top: 6px; }
.sbars-ax span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: visible; }
.legend { flex-wrap: wrap; }

.nlist { display: flex; flex-direction: column; }
.nlist button {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; border-top: 1px solid var(--line);
  background: none; text-align: left; cursor: pointer; color: var(--ink-2); font: 13px var(--sans);
}
.nlist button:first-child { border-top: 0; }
.nlist button:hover .t { color: var(--accent); }
.nlist .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist .d { color: var(--faint); font-size: 12px; }
.notice-body { white-space: pre-wrap; margin: 0; color: var(--ink-2); line-height: 1.7; }

/* ---------------------------------------------------------------- 模型页：左侧吸顶筛选栏 + 厂商分组卡片 */
.mb { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; align-items: start; }
.mb-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; order: -1; }
.top ~ .page .mb-side, .page > .mb-side { top: 72px; }
.mb-side .fg h4 { font-size: 12px; color: var(--mute); font-weight: 500; margin: 0 0 6px; }
.mb-side .fg .seg { display: flex; }
.mb-side .fg .seg button { flex: 1; }
.mb-side .opt { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.mb-side .opt input { height: auto; margin: 0; accent-color: var(--accent); }
.mb-side .opt .n { margin-left: auto; color: var(--faint); font-size: 12px; }
.mb-side .opt.off { opacity: .45; cursor: default; }
.vgrp + .vgrp { margin-top: 24px; }
.vgrp-hd {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; background: none;
  cursor: pointer; color: var(--ink); font: 600 14px var(--sans);
}
.vgrp-hd .n { color: var(--faint); font-weight: 400; }
.vgrp-hd .ic { color: var(--faint); transition: transform .2s var(--ease); }
.vgrp.closed .vgrp-hd .ic { transform: rotate(-90deg); }
/* 卡片固定在 280–1fr 之间自适应列数；只有一两张时不会被拉满整行 */
.mgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
@media (max-width: 980px) { .mb { grid-template-columns: minmax(0, 1fr); } .mb-side { position: static; } }
@media (max-width: 620px) { .mgrid { grid-template-columns: minmax(0, 1fr); } }

.vl {
  width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; flex: none;
  font-weight: 600; font-size: 14px; background: hsl(var(--h) 42% 92%); color: hsl(var(--h) 38% 34%);
}
:root[data-theme="dark"] .vl { background: hsl(var(--h) 20% 24%); color: hsl(var(--h) 50% 78%); }
.vl.none, :root[data-theme="dark"] .vl.none { background: var(--sunk); color: var(--mute); }
.vl .ic { width: 18px; height: 18px; }
.mcard { gap: 12px; box-shadow: 0 1px 2px var(--shadow); }
.mcard .hd { align-items: flex-start; gap: 10px; }
.mcard .t { flex: 1; min-width: 0; }
.mcard .nm { display: block; line-height: 1.4; }
.mcard .id { display: flex; align-items: center; gap: 2px; min-width: 0; }
.mcard .id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.mcard .health { flex: none; line-height: 22px; }
.mcard .health b { color: var(--ink); font-weight: 600; }
/* 价格：输入 / 输出左右各半，数字 18、单位小字跟在后面 */
.mcard .price {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--sunk); border-radius: 8px; padding: 10px 12px;
}
.pc { min-width: 0; }
.pc + .pc { border-left: 1px solid var(--line); padding-left: 12px; }
.pc .lb { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--faint); }
.pc s { color: var(--faint); }
.pv { display: flex; align-items: baseline; gap: 2px; color: var(--ink); white-space: nowrap; }
.pv b { font-size: 18px; font-weight: 600; line-height: 1.35; }
.pv .u { font-size: 11px; color: var(--faint); }
.disc { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--accent); background: var(--accent-bg); }
.mcard .ft { margin-top: auto; border-top: 0; padding-top: 0; }
/* 只有搜索 + 类型两种筛选时：筛选放进标题行，卡片铺满 */
.mb.flat { display: block; }
.mb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mb-bar .search { width: 220px; }
@media (max-width: 560px) { .mb-bar { order: 10; width: 100%; } .mb-bar .search { flex: 1; width: auto; } }

/* ---------------------------------------------------------------- 状态页 */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.st-grid > .card + .card { margin-top: 0; }
.st-card .hd { display: flex; align-items: flex-start; gap: 10px; }
.st-card .t { flex: 1; min-width: 0; }
.st-card .nm { color: var(--ink); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-card .id { font: 12px var(--mono); color: var(--faint); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; }
.nums .k { font-size: 11px; color: var(--faint); }
.nums .v { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.nums .v small { font-size: 12px; font-weight: 400; color: var(--faint); }
.nums .v.big { font-size: 22px; line-height: 1.2; }
.nums .v.ok { color: var(--green); } .nums .v.warn { color: var(--yellow); } .nums .v.down { color: var(--red); }
.rec { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 2px; height: 22px; }
.rec i { border-radius: 2px; background: var(--gray-bg); }
.rec i.ok { background: var(--green); } .rec i.slow { background: var(--yellow); } .rec i.fail { background: var(--red); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.warn { background: var(--yellow-bg); color: var(--yellow); }
.badge.down { background: var(--red-bg); color: var(--red); }
.badge .dot { width: 6px; height: 6px; }
.badge.idle { background: var(--gray-bg); color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  .side { transition: none !important; }
}

/* ---------------------------------------------------------------- 质感：骨架屏、按压反馈、光斑跟随、页面入场 */
.skel { display: grid; gap: 16px; }
.skel .row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.skel b {
  display: block; height: 132px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface) 30%, var(--sunk) 50%, var(--surface) 70%) 0 0 / 300% 100%;
}
.skel b.h { height: 28px; width: 180px; border: 0; border-radius: 8px; background-color: var(--sunk); }
.skel b.t { height: 220px; }
@media (max-width: 860px) { .skel .row { grid-template-columns: minmax(0, 1fr); } }

.btn { transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.pri { box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -8px var(--accent); }

/* 鼠标所在位置亮起一团很淡的陶土光（--mx/--my 由 common.js 写入） */
.mcard, .st-card, .feat { transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.mcard:hover, .st-card:hover, .feat:hover {
  background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-bg), transparent 70%);
  border-color: var(--accent-edge); box-shadow: 0 12px 32px -18px var(--shadow-lg);
}
.mcard:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: no-preference) {
  .skel b { animation: skel 1.4s ease-in-out infinite; }
  /* 路由切换后内容逐块浮入（只动 opacity / transform） */
  .main > .page > *, body:not(.fx) > main.page > .page-head { animation: page-in .45s var(--ease) both; }
  .main > .page > :nth-child(2) { animation-delay: 50ms; }
  .main > .page > :nth-child(3) { animation-delay: 100ms; }
  .main > .page > :nth-child(4) { animation-delay: 150ms; }
  .main > .page > :nth-child(n+5) { animation-delay: 200ms; }
  .st-grid.in > .card { animation: page-in .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * 40ms); }
}
@keyframes skel { to { background-position: -150% 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

/* 窄屏公开页顶栏：文字不折行，搜索入口收起（⌘K 仍可用） */
.top .logo, .top .nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .top { gap: 8px; }
  .top .kbtn { display: none; }
  .top .logo .site-name { display: none; }   /* 站名较长，手机宽度下只留标识 */
  .top .nav { gap: 0; }
  .top .btn { padding: 0 10px; }
  .demo-code { font-size: 11px; }
}
