@font-face {
  font-family: "JZCatBook";
  src: url("./fonts/cat-book-web.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ==========================================================================
   JzClientForAndroid · 设计系统
   参考 shadcn/ui 的层级与留白、Aceternity/Magic UI 的渐变光晕与 bento 网格，
   配色沿用客户端 Material Design 3 角色色，保证网页与 APP 观感一致。
   ========================================================================== */

:root {
  /* --- 品牌色：取自原版客户端 MD3 角色色，网页与 APP 完全一致 --- */
  --md-primary: #515d98;
  --md-primary-hover: #47528a;
  --md-on-primary: #ffffff;
  --md-primary-container: #e4e7fa;
  --md-on-primary-container: #343f75;
  --brand-2: #6f7cc4;
  --brand-3: #7a8fb8;
  --grad-brand: linear-gradient(135deg, #515d98 0%, #6f7cc4 52%, #8f8fd0 100%);
  --grad-soft: linear-gradient(135deg, #eef0fe 0%, #f1effa 55%, #eef4f8 100%);

  /* --- 表面 --- */
  --md-surface: #f5f5fa;
  --md-container: #ebeaf3;
  --md-container-low: #ffffff;
  --md-container-high: #e2e2ed;
  --md-on-surface: #272936;
  /* 辅助文字色：原来是 #626477，在 #ffffff 卡片上只有 5.9:1，12.5px 的小字偏灰。
     压到 #5a5c6b 后约 6.9:1，仍在 AA 之上但不刺眼。 */
  --md-on-surface-variant: #5a5c6b;
  --md-outline: #dcdde7;
  --md-outline-variant: #e5e5ed;

  /* --- 语义色 --- */
  --md-secondary-container: #e3f0e9;
  --md-on-secondary-container: #336449;
  --md-warning-container: #f9edce;
  --md-on-warning-container: #75520b;
  --md-error: #a5323e;
  --md-error-container: #fce7e9;
  --md-on-error-container: #8e2734;

  --card: #ffffff;
  --border: var(--md-outline);
  --muted: var(--md-on-surface-variant);

  /* --- 兼容别名（2026-11-26）---
     console / donate / notice 里有几十处 var(--md-surface-variant, #f4f5fa)、
     var(--md-surface-2, #fafaff)、var(--md-variant, #626477)，但这三个变量
     全站从来没定义过，等于一直吃硬编码的浅色兜底。结果：切到深色主题后，
     AI 结果框、好友申请、能力芯片、设备信息卡、更新日志、排行榜隔行、
     公告卡片全是「浅底 + 浅字」，基本看不清。
     这里把它们映射到已有角色色，深浅两套自动跟随，不用再改各处引用。 */
  --md-surface-variant: var(--md-surface);
  --md-surface-2: var(--md-surface);
  --md-variant: var(--md-on-surface-variant);
  /* 成功/正常绿：原来各处直接写死 #22a06b，深色主题下深绿压深底几乎看不见 */
  --ok: var(--md-on-secondary-container);

  /* --- 阴影（分层，避免死黑） --- */
  --shadow-xs: 0 1px 2px #20243d08;
  --shadow-sm: 0 2px 8px #20243d0a, 0 1px 2px #20243d06;
  --shadow: 0 10px 30px -8px #20243d1a, 0 2px 8px #20243d08;
  --shadow-lg: 0 24px 60px -16px #20243d26, 0 6px 16px #20243d0d;
  --shadow-brand: 0 12px 28px -10px #515d9866;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-md: 13px;   /* .dt-body / .rc-shot / .rc-items 一直在用，之前没定义 → 圆角恒为 0 */
  --radius-lg: 22px;
  --radius-xl: 28px;

  color-scheme: light;
  /* 2026-11-26 备注：这里曾经被改掉过（因为「猫书体」会把「我 / 的 / 你 / 都 / 陪」
     这些常用汉字画成猫脸、旋涡、波浪，正文读不通）。后来按站主要求恢复原样，
     全站继续用 "JZCatBook" 打头。
     如果以后觉得哪句话读着别扭，多半是这个字体在替换字形 —— 不是错别字。
     只想在装饰性标题上用、正文保持可读，就把第一顺位去掉，放到具体选择器里。 */
  font-family: "JZCatBook", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  --md-primary: #bac3ff;
  --md-primary-hover: #ccd3ff;
  --md-on-primary: #232e62;
  --md-primary-container: #333d69;
  --md-on-primary-container: #e1e5ff;
  --brand-2: #a8b4f0;
  --brand-3: #8fa6c8;
  --grad-brand: linear-gradient(135deg, #5a67a8 0%, #7d8ad0 52%, #9a9ad8 100%);
  --grad-soft: linear-gradient(135deg, #1e2130 0%, #24263a 55%, #1c2530 100%);

  --md-surface: #171820;
  --md-container: #292b38;
  --md-container-low: #22232e;
  --md-container-high: #353746;
  --md-on-surface: #e9e9f2;
  --md-on-surface-variant: #b4b6ca;
  --md-outline: #3d4051;
  --md-outline-variant: #323543;

  --md-secondary-container: #283e33;
  --md-on-secondary-container: #abd9be;
  --md-warning-container: #493b20;
  --md-on-warning-container: #f0ce86;
  --md-error: #ffb2ba;
  --md-error-container: #4b2930;
  --md-on-error-container: #ffbdc4;

  --card: #22232e;
  --border: var(--md-outline);
  --shadow-xs: 0 1px 2px #00000040;
  --shadow-sm: 0 2px 8px #00000040;
  --shadow: 0 12px 32px -10px #00000066;
  --shadow-lg: 0 28px 64px -20px #00000080;
  --shadow-brand: 0 12px 28px -10px #00000080;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--md-surface);
  color: var(--md-on-surface);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--md-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { letter-spacing: -.02em; }

/* 键盘可达性：之前只有输入框有 focus 阴影，按钮 / 链接 / 自定义 chip 全靠
   浏览器默认 outline，被 .btn 的圆角和 overflow 一盖就基本看不见了。
   这里统一给一圈 2px 主色焦点环，鼠标点击不会触发（:focus-visible）。 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}
/* 药丸按钮的焦点环跟着圆角走，不要出现方框套圆角 */
.btn:focus-visible, .dock button:focus-visible, .nav-links a:focus-visible { border-radius: 999px; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.hidden { display: none !important; }
/* 控制台里 5 处用 class="hide" 控制显示，之前没定义，导致空图片/空盒子一直露在外面 */
.hide { display: none !important; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* 渐变文字 */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--md-surface) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  transition: box-shadow .2s, background .2s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--md-surface) 92%, transparent); }
.site-nav .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; color: var(--md-on-surface); }
.logo:hover { color: var(--md-on-surface); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-brand); letter-spacing: -.5px;
}
.nav-links { display: flex; gap: 2px; margin-left: 10px; flex: 1; }
.nav-links a {
  padding: 7px 13px; border-radius: 999px; color: var(--muted);
  font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--md-container); color: var(--md-on-surface); }
.nav-links a.active { background: var(--md-primary-container); color: var(--md-on-primary-container); font-weight: 600; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--md-on-surface); cursor: pointer;
  font-size: 14px; font-weight: 550; white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: background .16s, box-shadow .16s, transform .08s, border-color .16s;
}
.btn:hover { background: var(--md-container); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.primary {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.btn.primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 16px 34px -10px #4f5bd577; }
.btn.tonal { background: var(--md-primary-container); color: var(--md-on-primary-container); border-color: transparent; }
.btn.tonal:hover { background: color-mix(in srgb, var(--md-primary-container) 82%, var(--md-primary)); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--md-container); color: var(--md-on-surface); }
.btn.danger { color: var(--md-error); border-color: color-mix(in srgb, var(--md-error) 30%, transparent); background: var(--card); }
.btn.danger:hover { background: var(--md-error-container); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.lg { padding: 13px 26px; font-size: 15px; }
.btn.block { width: 100%; }

/* ==========================================================================
   首页 · Hero
   ========================================================================== */
.hero { position: relative; padding: 78px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; width: 760px; height: 760px; left: -180px; top: -320px;
  background: radial-gradient(circle, #7c6cf055 0%, transparent 62%); filter: blur(20px);
}
.hero-bg::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -140px; top: -180px;
  background: radial-gradient(circle, #4f5bd544 0%, transparent 62%); filter: blur(18px);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--md-primary) 22%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px 5px 7px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}
.pill b { color: var(--md-on-surface); font-weight: 600; }
.pill .dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent); margin-left: 4px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 7%, transparent); }
}

.hero h1 {
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -.035em;
}
.hero p.lead { font-size: 16.5px; color: var(--muted); margin: 0 0 28px; max-width: 34em; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--ok); flex: 0 0 auto; }

/* 产品预览（浏览器窗口 + 手机） */
.preview-stack { position: relative; }
.preview {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.preview:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.preview-bar {
  display: flex; gap: 6px; padding: 11px 14px; align-items: center;
  border-bottom: 1px solid var(--border); background: var(--md-container-low);
}
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--md-container-high); display: inline-block; }
.preview-bar .url {
  margin-left: 10px; flex: 1; background: var(--md-surface); border-radius: 7px;
  padding: 3px 10px; font-size: 11px; color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.preview-body { padding: 16px; display: grid; gap: 10px; background: var(--md-surface); }
.mini-card { border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; background: var(--card); box-shadow: var(--shadow-xs); }
.mini-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.mini-row + .mini-row { margin-top: 8px; }
.mini-row b { color: var(--md-on-surface); font-weight: 600; }
.mini-bar { height: 5px; border-radius: 999px; background: var(--md-container); overflow: hidden; margin-top: 8px; }
.mini-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 11px; border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 2;
}
.float-chip b { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.float-chip small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.35; }
.chip-a { left: -104px; top: 92px; animation: floatY 5s ease-in-out infinite; }
.chip-b { right: -100px; bottom: 40px; animation: floatY 5.6s ease-in-out infinite reverse; }
.chip-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: 0 0 9px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 16%, transparent);
}
.chip-ok {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px;
  background: var(--md-secondary-container); color: var(--md-on-secondary-container);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ==========================================================================
   通用区块
   ========================================================================== */
section.block { padding: 66px 0; position: relative; }
section.block.tight { padding: 46px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--md-primary); margin-bottom: 10px;
}
section.block h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 0 0 10px; font-weight: 800; letter-spacing: -.03em; }
section.block .sub { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.7; }

/* Bento 网格 */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento-item {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s;
}
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--md-primary) 30%, var(--border)); }
.bento-item.span3 { grid-column: span 3; }
.bento-item.span2 { grid-column: span 2; }
.bento-item.span4 { grid-column: span 4; }
.bento-item.span6 { grid-column: span 6; }
.bento-item .ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--md-primary-container); color: var(--md-on-primary-container);
  margin-bottom: 14px;
}
.bento-item .ico.g2 { background: linear-gradient(135deg, #e6e8fb, #f0e9fe); color: #4a3a9e; }
.bento-item .ico.g3 { background: linear-gradient(135deg, #e0f4ea, #dff3f2); color: #1f6b47; }
.bento-item .ico.g4 { background: linear-gradient(135deg, #fdf0d0, #fbe6dc); color: #7a5309; }
.bento-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.bento-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.68; }
.bento-item .glow {
  position: absolute; right: -50px; top: -60px; width: 190px; height: 190px;
  border-radius: 50%; background: radial-gradient(circle, #7c6cf026, transparent 68%);
  pointer-events: none;
}

/* 通道对比表 */
.chan-table { display: grid; gap: 10px; margin-top: 16px; }
.chan-row {
  display: grid; grid-template-columns: 1.1fr repeat(4, .7fr); gap: 8px; align-items: center;
  padding: 11px 14px; border-radius: 12px; background: var(--md-surface);
  border: 1px solid var(--md-outline-variant); font-size: 12.5px;
}
.chan-row.head { background: transparent; border-color: transparent; color: var(--muted); font-size: 11.5px; padding-bottom: 0; }
.chan-row b { font-size: 13px; }
.chan-row .yes { color: var(--ok); font-weight: 700; }
.chan-row .no { color: var(--muted); }

/* ==========================================================================
   新手引导 · 步骤条
   ========================================================================== */
.onboard-wrap {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.onboard-wrap .glow-a {
  position: absolute; width: 420px; height: 420px; right: -120px; top: -180px;
  background: radial-gradient(circle, #7c6cf033, transparent 66%); pointer-events: none;
}
.onboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; position: relative; }
.onboard-head h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.onboard-head p { margin: 0; color: var(--muted); font-size: 14px; }

.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-flow::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--md-primary) 34%, transparent) 0 8px, transparent 8px 16px);
}
.step-node { position: relative; text-align: center; padding: 0 10px; }
.step-node .num {
  width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: var(--card); border: 1.5px solid var(--border); color: var(--muted);
  box-shadow: var(--shadow-sm); position: relative; z-index: 1;
  transition: all .25s;
}
.step-node.done .num { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.step-node.active .num { border-color: var(--md-primary); color: var(--md-primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--md-primary) 12%, transparent); }
.step-node h4 { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; }
.step-node p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; min-height: 40px; }
.step-node .btn { font-size: 12.5px; padding: 6px 14px; }

/* ==========================================================================
   授权方案
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.hot { border-color: transparent; box-shadow: var(--shadow), 0 0 0 2px var(--md-primary) inset; }
.plan.hot::before {
  content: "最受欢迎"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; box-shadow: var(--shadow-brand); white-space: nowrap;
}
.plan .name { font-weight: 700; font-size: 14.5px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.plan .price small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 8px 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; flex: 1; }
.plan ul li { position: relative; padding-left: 20px; margin: 6px 0; }
.plan ul li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg); border-radius: 1px;
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 18px; box-shadow: var(--shadow-xs); transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 14.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 19px; color: var(--muted); font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.72; }

/* ==========================================================================
   新手引导浮层（wizard）
   ========================================================================== */
.ob-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; border-radius: 999px; border: 0;
  background: var(--grad-brand); color: #fff; cursor: pointer;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-brand);
  transition: transform .18s, filter .18s;
}
.ob-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ob-fab .ob-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #ffffff33;
  display: grid; place-items: center; font-size: 11px;
}
.ob-card {
  position: fixed; right: 22px; bottom: 22px; z-index: 61;
  width: min(370px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: obIn .28s cubic-bezier(.2,.9,.3,1);
}
@keyframes obIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.ob-card-head {
  padding: 16px 18px 12px; background: var(--grad-soft);
  border-bottom: 1px solid var(--border); position: relative;
}
.ob-card-head .ob-step { font-size: 11.5px; font-weight: 700; color: var(--md-primary); letter-spacing: .06em; }
.ob-card-head h3 { margin: 3px 0 0; font-size: 16px; font-weight: 700; padding-right: 28px; }
.ob-close {
  position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: #00000008; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1;
}
.ob-close:hover { background: #00000012; }
.ob-card-body { padding: 16px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.ob-card-body b { color: var(--md-on-surface); }
.ob-card-body code { background: var(--md-container); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.ob-card-body ol { margin: 8px 0 0; padding-left: 18px; }
.ob-card-body ol li { margin: 4px 0; }
.ob-card-foot { padding: 12px 18px 16px; display: flex; align-items: center; gap: 8px; }
.ob-progress { display: flex; gap: 5px; flex: 1; }
.ob-progress i { height: 4px; flex: 1; border-radius: 999px; background: var(--md-container-high); transition: background .25s; }
.ob-progress i.on { background: var(--md-primary); }
.ob-card-foot .btn { padding: 7px 15px; font-size: 13px; }

/* ==========================================================================
   卡片 / 表单（控制台、后台、文档共用）
   ========================================================================== */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.card.flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
label.field > span { font-weight: 600; color: var(--md-on-surface); font-size: 12.5px; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--md-surface); outline: none; font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
input:focus, select:focus, textarea:focus {
  border-color: var(--md-primary); background: var(--card);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--md-primary) 15%, transparent);
}
textarea { resize: vertical; min-height: 90px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.kv + .kv { border-top: 1px dashed var(--md-outline-variant); }
.kv span:first-child { color: var(--muted); flex: 0 0 auto; }
.kv span:last-child { text-align: right; word-break: break-all; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px;
  background: var(--md-container); color: var(--muted); font-weight: 500;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.ok { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.badge.warn { background: var(--md-warning-container); color: var(--md-on-warning-container); }
.badge.err { background: var(--md-error-container); color: var(--md-on-error-container); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; padding: 8px; letter-spacing: .02em; }
td { padding: 11px 8px; border-top: 1px solid var(--md-outline-variant); vertical-align: middle; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: var(--md-surface); }

/* 登录 */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 44px 16px; position: relative; }
.auth-card {
  width: min(430px, 100%); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-lg); position: relative;
}
.auth-card h1 { margin: 0 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.tabs { display: flex; gap: 4px; background: var(--md-container); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.tabs button {
  flex: 1; padding: 8px 10px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 500; transition: all .15s;
}
.tabs button.active { background: var(--card); color: var(--md-on-surface); font-weight: 700; box-shadow: var(--shadow-xs); }

/* 验证码一行：输入框 + 获取按钮 */
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.code-row input { letter-spacing: .28em; font-variant-numeric: tabular-nums; font-weight: 700; }
.code-row .btn { white-space: nowrap; padding-inline: 16px; min-width: 112px; }
.code-row .btn:disabled { opacity: .62; cursor: not-allowed; }

/* ==========================================================================
   控制台
   ========================================================================== */
.dash { display: flex; min-height: calc(100vh - 64px); }
.side {
  width: 224px; flex: 0 0 224px; border-right: 1px solid var(--border);
  padding: 20px 12px; background: var(--card);
}
.side .who { padding: 6px 12px 18px; }
.side .who b { display: block; font-size: 15px; font-weight: 700; }
.side .who span { font-size: 12px; color: var(--muted); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 0; border-radius: 11px;
  background: transparent; color: var(--muted); cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 500; transition: background .16s, color .16s;
}
.side nav button:hover { background: var(--md-container); color: var(--md-on-surface); }
.side nav button.active { background: var(--md-primary-container); color: var(--md-on-primary-container); font-weight: 700; }
.content { flex: 1; min-width: 0; padding: 26px 28px 64px; }
.content h1 { margin: 0 0 4px; font-size: 23px; font-weight: 800; letter-spacing: -.025em; }
.content .sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }

/* 授权卡 */
.license-card {
  position: relative; overflow: hidden;
  background: var(--grad-brand); color: #fff; border: 0;
  box-shadow: var(--shadow-brand);
}
.license-card::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: #ffffff1f; pointer-events: none;
}
.license-card .lc-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; opacity: .9; }
.license-card .lc-plan { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.license-card .lc-code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 1.6px;
  background: #ffffff26; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-top: 10px;
}
.license-card .lc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.license-card .lc-grid div { font-size: 12px; opacity: .85; }
.license-card .lc-grid b { display: block; font-size: 15px; opacity: 1; margin-top: 2px; font-weight: 700; }
.license-empty { text-align: center; padding: 8px 0 2px; }

.code-input {
  width: 100%; text-align: center; letter-spacing: 3px; font-size: 18px;
  font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase;
  padding: 13px 14px; border-radius: 13px;
}
.copy-box {
  display: flex; gap: 8px; align-items: center;
  background: var(--md-surface); border: 1px dashed var(--border); border-radius: 11px; padding: 9px 12px;
}
.copy-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

/* 通道选择 */
.chan-list { display: grid; gap: 8px; }
.chan {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 13px;
  border: 1.5px solid var(--border); background: var(--card); cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.chan:hover { border-color: color-mix(in srgb, var(--md-primary) 40%, var(--border)); }
.chan.on {
  border-color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary-container) 55%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-primary) 10%, transparent);
}
.chan .dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--md-outline);
  flex: 0 0 20px; margin-top: 2px; display: grid; place-items: center; transition: border-color .16s;
}
.chan.on .dot { border-color: var(--md-primary); }
.chan.on .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--md-primary); }
.chan b { font-size: 14px; display: block; font-weight: 650; }
.chan span { font-size: 12px; color: var(--muted); }

/* 流程勾选 */
.flow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding-right: 2px; }
.flow-item {
  display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 13px;
  transition: border-color .16s, background .16s;
}
.flow-item.on { border-color: var(--md-primary); background: color-mix(in srgb, var(--md-primary-container) 42%, var(--card)); }
.flow-item input { margin-top: 3px; accent-color: var(--md-primary); }
.flow-item small { display: block; color: var(--muted); font-size: 11.5px; }

/* 插件卡 */
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plugin {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 16px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-xs);
  transition: transform .18s, box-shadow .18s;
}
.plugin:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.plugin .p-head { display: flex; align-items: center; gap: 9px; }
.plugin .p-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--md-primary-container); color: var(--md-on-primary-container);
  font-weight: 800; font-size: 13px; flex: 0 0 34px;
}
.plugin .p-name { font-weight: 700; font-size: 14px; }
.plugin .p-meta { font-size: 11.5px; color: var(--muted); }
.plugin p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1; line-height: 1.6; }
.plugin .p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }

.drop-zone {
  border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 28px 16px; text-align: center;
  background: var(--md-surface); cursor: pointer; transition: border-color .16s, background .16s;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--md-primary); background: var(--md-primary-container); }

.empty { text-align: center; padding: 32px 12px; color: var(--muted); font-size: 13px; }
.empty b { display: block; color: var(--md-on-surface); font-size: 14px; margin-bottom: 4px; }

/* Toast / Modal */
.toast-root { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast {
  background: var(--md-on-surface); color: var(--md-surface); padding: 10px 18px;
  border-radius: 999px; font-size: 13.5px; box-shadow: var(--shadow-lg);
  animation: obIn .2s ease-out;
}
.toast.err { background: var(--md-error); color: #fff; }
.modal-root { position: fixed; inset: 0; display: grid; place-items: center; z-index: 70; padding: 20px; }
.modal-root.hidden { display: none; }
.modal-bg { position: absolute; inset: 0; background: #0b0d16a8; backdrop-filter: blur(3px); }
.modal {
  position: relative; width: min(700px, 100%); max-height: 86vh; overflow: auto;
  background: var(--card); border-radius: var(--radius-xl); padding: 24px;
  box-shadow: var(--shadow-lg); animation: obIn .22s ease-out;
}
.modal h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.modal .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }

/* ==========================================================================
   文档
   ========================================================================== */
.doc { display: grid; grid-template-columns: 216px 1fr; gap: 32px; padding: 40px 0 64px; }
.doc-toc { position: sticky; top: 88px; align-self: start; font-size: 13px; }
.doc-toc a { display: block; padding: 6px 11px; border-radius: 9px; color: var(--muted); transition: background .16s, color .16s; }
.doc-toc a:hover { background: var(--md-container); color: var(--md-on-surface); }
.doc-body h2 { font-size: 22px; margin: 34px 0 12px; font-weight: 800; letter-spacing: -.02em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 16px; margin: 24px 0 8px; font-weight: 700; }
.doc-body p, .doc-body li { color: var(--md-on-surface); font-size: 14px; line-height: 1.75; }
.doc-body code { background: var(--md-container); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.doc-body pre {
  background: #171a26; color: #e7e8f2; padding: 15px 17px; border-radius: 13px;
  overflow: auto; font-size: 12.5px; line-height: 1.7; box-shadow: var(--shadow-sm);
}
.doc-body pre code { background: transparent; padding: 0; color: inherit; }
.doc-body table { margin: 12px 0; }
.doc-body table td { font-size: 13px; }

/* ==========================================================================
   页脚
   ========================================================================== */
footer.site-foot {
  border-top: 1px solid var(--border); padding: 42px 0 34px;
  color: var(--muted); font-size: 13px; margin-top: 20px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.foot-grid h5 { margin: 0 0 10px; font-size: 12.5px; color: var(--md-on-surface); font-weight: 700; letter-spacing: .02em; }
.foot-grid a { display: block; padding: 3px 0; color: var(--muted); font-size: 13px; }
.foot-grid a:hover { color: var(--md-primary); }
.foot-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--md-outline-variant);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .float-chip { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .float-chip { display: none; }
  .preview { transform: none; }
  .bento-item.span3, .bento-item.span2, .bento-item.span4 { grid-column: span 6; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plugin-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .steps-flow { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .steps-flow::before { display: none; }
  .doc { grid-template-columns: 1fr; }
  .doc-toc { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .doc-toc a { white-space: nowrap; }
  .dash { flex-direction: column; }
  .side { width: 100%; flex: none; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
  .side nav { flex-direction: row; overflow-x: auto; }
  .side .who { display: none; }
  .nav-links { display: none; }
  .content { padding: 20px 16px 56px; }
  .grid2, .grid3, .grid4, .flow-list { grid-template-columns: 1fr; }
  .license-card .lc-grid { grid-template-columns: 1fr 1fr; }
  .chan-row { grid-template-columns: 1.2fr repeat(4, .6fr); font-size: 11.5px; }
  .onboard-wrap { padding: 24px 18px; }
  .ob-fab { right: 14px; bottom: 14px; }
  .ob-card { right: 10px; bottom: 10px; }
}
@media (max-width: 640px) {
  .plans, .plugin-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
  section.block { padding: 48px 0; }
}

/* ---------- 设备状态：日志 / 指令 ---------- */
.logbox {
  max-height: 268px; overflow: auto; display: flex; flex-direction: column; gap: 2px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px;
  background: var(--md-surface); border: 1px solid var(--md-outline-variant);
  border-radius: 11px; padding: 8px 10px;
}
.logline { display: flex; gap: 8px; align-items: flex-start; line-height: 1.55; }
.logline .lt { color: var(--muted); flex: 0 0 56px; }
.logline .lv { flex: 0 0 16px; font-weight: 700; color: var(--muted); }
.logline .lv.e { color: var(--md-error); }
.logline .lv.w { color: var(--md-on-warning-container); }
.logline .lv.i { color: var(--md-primary); }
.logline .lm { flex: 1; word-break: break-word; }
.cmdline { padding: 8px 2px; font-size: 12.5px; }
.cmdline + .cmdline { border-top: 1px dashed var(--md-outline-variant); }
/* 指令记录不是日志，用正文字体，三列（名称 / 状态 / 时间）对齐才看得清 */
.logbox.cmdbox { font-family: "JZCatBook", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; }
.cmd-top { display: flex; align-items: center; gap: 8px; }
.cmd-name { flex: 1; min-width: 0; font-weight: 600; color: var(--md-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-time { flex: 0 0 auto; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cmd-res { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.55; word-break: break-word; }

/* ==========================================================================
   控制台 · 原版 MD3 外壳（顶栏 App Bar + 底部浮动导航 Dock）
   结构与 JZclient-for-node 的 app-shell 一致：无侧栏、无描边卡片、
   28px 圆角、药丸按钮、滑动指示条。
   ========================================================================== */

/* ---- 顶栏 ---- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--md-surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.app-header.scrolled { border-bottom-color: var(--md-outline-variant); }
.header-inner {
  width: min(1120px, 94vw); margin: 0 auto; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--md-on-surface); }
.brand:hover { color: var(--md-on-surface); }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 13px;
  background: var(--md-primary); color: var(--md-on-primary);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.brand-caption { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-connection {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 999px; background: var(--md-container); color: var(--muted);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.header-connection.online { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 7px; }
.header-connection.online .status-dot { background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.header-plan {
  font-size: 12px; font-weight: 600; color: var(--md-on-primary-container);
  background: var(--md-primary-container); border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.icon-btn {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--md-on-surface-variant);
  cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--md-container); color: var(--md-on-surface); }
.account-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px;
  border-radius: 999px; background: var(--md-container); color: var(--md-on-surface);
  font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 180px; overflow: hidden;
}
.account-avatar {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--md-primary-container); color: var(--md-on-primary-container);
}

/* ---- 主体 ---- */
.main-content {
  width: min(1120px, 94vw); margin: 0 auto; padding: 18px 0 132px;
}
.main-content > section { animation: tabIn .26s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.main-content h1 { margin: 0 0 6px; font-size: 27px; font-weight: 680; letter-spacing: -.028em; }
.main-content .sub { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 22px; max-width: 72ch; }

/* 卡片：原版 28px 圆角、无描边 */
.main-content .card {
  border: 1px solid transparent; border-radius: var(--radius-xl);
  padding: 22px 24px; background: var(--md-container-low); box-shadow: none;
}
.main-content .card-head { margin-bottom: 16px; }
.main-content .card-head h3 { font-size: 16.5px; font-weight: 680; letter-spacing: -.015em; }
.main-content .btn { border-radius: 999px; border-color: transparent; }
.main-content .btn:not(.primary):not(.danger) { background: var(--md-container); color: var(--md-on-surface); }
.main-content .btn.tonal { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.main-content .btn.ghost { background: transparent; color: var(--md-primary); }
.main-content .btn.primary { background: var(--md-primary); color: var(--md-on-primary); }
.main-content .stat { padding: 2px 0; }
.main-content .stat .label { font-size: 12px; }
.main-content .stat .value { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.main-content .kv { padding: 9px 0; font-size: 13.5px; }
.main-content .badge { border-radius: 999px; padding: 3px 10px; }

/* ---- 底部浮动导航 ---- */
.dock {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: stretch; gap: 2px; padding: 8px;
  background: color-mix(in srgb, var(--md-container-low) 90%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: 999px;
  box-shadow: 0 18px 48px -18px #20243d40, 0 2px 10px #20243d14;
  max-width: calc(100vw - 24px);
}
.dock-indicator {
  position: absolute; top: 8px; bottom: 8px; left: 0; width: 0;
  border-radius: 999px; background: var(--md-primary-container);
  transition: transform .32s cubic-bezier(.2,.9,.2,1), width .32s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}
.dock button {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 74px; padding: 9px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  transition: color .18s;
}
.dock button svg { width: 21px; height: 21px; }
.dock button:hover { color: var(--md-on-surface); }
.dock button.active { color: var(--md-on-primary-container); }

/* ---- 控制台响应式 ---- */
@media (max-width: 820px) {
  .header-plan, .header-connection { display: none; }
  .brand-caption { display: none; }
  .brand-text { font-size: 14.5px; }
  .main-content { padding-bottom: 148px; }
  .main-content h1 { font-size: 23px; }
  .main-content .card { padding: 18px; border-radius: 24px; }
  .dock { bottom: 12px; gap: 0; padding: 6px; }
  .dock button { min-width: 60px; padding: 8px 9px; font-size: 10.5px; }
  .dock button svg { width: 19px; height: 19px; }
}

/* 主题图标切换（icon-btn 里放两枚图标，按 data-theme 显示） */
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }

/* 控制台中间断点：平板宽度下四宫格走两列，避免长条卡片 */
@media (min-width: 700px) and (max-width: 980px) {
  .main-content .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .main-content { padding-left: 4px; padding-right: 4px; }
}

/* ---------- 设备页：数据快照条 ---------- */
.snap-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 16px 20px !important;
}
.snap-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.snap-main b { display: block; font-size: 15px; font-weight: 680; letter-spacing: -.01em; }
.snap-main .hint { display: block; font-size: 12px; margin-top: 2px; }
.snap-dot {
  width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%;
  background: var(--md-container-high); box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-container-high) 45%, transparent);
}
.snap-dot.fresh {
  background: var(--md-on-secondary-container);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--md-secondary-container) 90%, transparent);
}
.snap-interval { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.snap-interval select { width: auto; padding: 7px 11px; border-radius: 999px; font-size: 13px; }

/* ---------- 设备数据：页签 + 行列表 ---------- */
.dt-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.dt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--md-outline-variant);
  background: transparent; color: var(--md-on-surface-variant);
  font: inherit; font-size: 13px; font-weight: 620; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.dt-chip:hover { background: var(--md-container); }
.dt-chip.on {
  background: var(--md-secondary-container); color: var(--md-on-secondary-container);
  border-color: transparent;
}
.dt-chip i {
  font-style: normal; font-size: 11px; font-weight: 700; opacity: .62;
  background: color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 999px; padding: 1px 6px;
}
.dt-body {
  max-height: 460px; overflow: auto; border-radius: var(--radius-md);
  background: var(--md-surface); padding: 6px 4px;
}
.dt-line {
  display: flex; gap: 10px; padding: 7px 12px; border-radius: 8px;
  font-size: 13.5px; line-height: 1.5; color: var(--md-on-surface);
}
.dt-line:nth-child(odd) { background: color-mix(in srgb, var(--md-container) 45%, transparent); }
.dt-line .dt-no {
  flex: 0 0 22px; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums;
  color: var(--muted); padding-top: 2px;
}

/* ---------- 绑定码 ---------- */
.pair-box {
  margin-top: 6px; padding: 26px 20px; border-radius: var(--radius-lg);
  background: var(--md-surface); text-align: center;
}
.pair-code {
  font-size: 46px; font-weight: 800; letter-spacing: .22em; line-height: 1.1;
  color: var(--muted); font-variant-numeric: tabular-nums;
  transition: color .2s, letter-spacing .2s;
}
.pair-code.on { color: var(--md-primary); letter-spacing: .18em; }
.pair-tip { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- 远程控制 ---------- */
.rc-wrap { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .rc-wrap { grid-template-columns: 1fr; } }
.rc-screen { min-width: 0; }
.rc-shot {
  border-radius: var(--radius-md); overflow: hidden; background: var(--md-surface);
  border: 1px solid var(--md-outline-variant); min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  position: relative;   /* 点击落点 .rc-dot 靠它定位 */
}
.rc-img { display: block; width: 100%; height: auto; cursor: crosshair; }
/* 点击落点反馈：在画面上点一下，先标个圈再发指令 */
.rc-dot {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 3px solid var(--md-error);
  background: color-mix(in srgb, var(--md-error) 22%, transparent);
  pointer-events: none;
  animation: rcDot .9s ease-out forwards;
}
@keyframes rcDot {
  0% { transform: scale(.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.rc-side { min-width: 0; }
.rc-side-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.rc-side-head b { font-size: 14px; font-weight: 700; }
.rc-items {
  max-height: 420px; overflow: auto; border-radius: var(--radius-md);
  background: var(--md-surface); padding: 4px;
}
.rc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--md-on-surface);
}
.rc-item.on { cursor: pointer; }
.rc-item.on:hover { background: var(--md-container); }
.rc-item .rc-s {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--md-primary);
  background: var(--md-secondary-container); border-radius: 999px; padding: 2px 9px;
}
.rc-item .rc-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bili-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: 340px; overflow: auto; }
.bili-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: var(--md-surface);
}
.bili-item .bili-t { font-size: 13.5px; font-weight: 620; color: var(--md-on-surface); }
.bili-item .bili-m { grid-column: 1; font-size: 11.5px; color: var(--md-on-surface-variant); }
.bili-item button { grid-row: 1 / span 2; grid-column: 2; }
.rc-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 6px 10px;
  border-bottom: 1px solid var(--md-outline-variant); margin-bottom: 6px;
}
.rc-tab {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--md-outline-variant);
  background: transparent; color: var(--md-on-surface); font: inherit; font-size: 12.5px;
  font-weight: 620; cursor: pointer;
}
.rc-tab:hover { background: var(--md-container); }
.rc-switches { display: flex; flex-wrap: wrap; gap: 9px; }
.rc-sw {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--md-outline-variant);
  background: transparent; color: var(--md-on-surface); font: inherit; font-size: 13px;
  font-weight: 620; cursor: pointer; transition: background .16s, color .16s, border-color .16s;
}
.rc-sw:hover { background: var(--md-container); }
.rc-sw:disabled { opacity: .55; cursor: default; }

/* 多手表：当前手表卡片 + 手表选择 */
.dw-list { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-item {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 10px 18px; border-radius: 18px; border: 1px solid var(--md-outline-variant);
  background: transparent; color: var(--md-on-surface); font: inherit; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.dw-item:hover { background: var(--md-container); }
.dw-item.on { background: var(--md-primary-container); border-color: transparent; color: var(--md-on-primary-container); }
.dw-item .n { font-size: 15px; font-weight: 700; }
.dw-item .p { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dw-item.on .p { color: var(--md-on-primary-container); opacity: .78; }

/* 发送目标切换：发给手表 / 文件传输助手
   原来写死 #f1f2f6 / #6b7280 / #fff，深色主题下会突然冒出一块浅灰白条 */
.seg { display: inline-flex; background: var(--md-container); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font-size: 12.5px; line-height: 1;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}
.seg button:hover { color: var(--md-on-surface); }
.seg button.on {
  background: var(--card); color: var(--md-on-surface); font-weight: 600;
  box-shadow: var(--shadow-xs);
}

/* 手表功能：把「更多」页的全部入口铺成卡片，一点就在手表上打开 */
.fn-groups { display: flex; flex-direction: column; gap: 18px; }
.fn-group h4 {
  font-size: 12.5px; font-weight: 700; color: var(--md-on-surface-variant);
  letter-spacing: .04em; margin: 0 0 9px;
}
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.fn-item {
  display: flex; flex-direction: column; gap: 7px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--md-surface); border: 1px solid transparent;
  transition: border-color .16s;
}
.fn-item:hover { border-color: var(--md-outline-variant); }
.fn-item.hide { display: none; }
.fn-top { display: flex; align-items: center; gap: 8px; }
.fn-name {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 640; color: var(--md-on-surface);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fn-state {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px;
  background: var(--md-secondary-container); color: var(--md-primary);
}
.fn-state.off { background: var(--md-container); color: var(--md-on-surface-variant); }
.fn-sub {
  font-size: 11.5px; color: var(--md-on-surface-variant);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fn-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.fn-acts .btn { padding: 4px 10px; font-size: 12px; }
.fn-item.danger .fn-name { color: var(--md-error); }

/* 手表通讯录：名字 + 关系/号码，一行一个 */
.ct-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ct-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--md-surface); border: 1px solid transparent;
}
.ct-item:hover { border-color: var(--md-outline-variant); }
.ct-item.hide { display: none; }
.ct-item .fn-name { font-weight: 600; }

/* 健康数据：一行一个指标 */
.hl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hl-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--md-surface); border: 1px solid transparent;
}
.hl-name { font-size: 12px; font-weight: 700; color: var(--md-on-surface-variant); }
.hl-value { font-size: 19px; font-weight: 700; color: var(--md-primary); }
.hl-item.none .hl-value { font-size: 13px; font-weight: 600; color: var(--md-on-surface-variant); }
.hl-time { font-size: 11.5px; color: var(--md-on-surface-variant); }

/* AI 看图结果 */
.ai-box {
  border: 1px solid var(--md-outline, #dcdde7);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--md-surface-2, #fafaff);
  min-height: 52px;
}
.ai-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--md-on-surface, #272936);
  white-space: normal;
  word-break: break-word;
}
.ai-err {
  font-size: 13px;
  line-height: 1.7;
  color: var(--md-error, #a5323e);
}

/* 好友申请 */
.rq-box {
  border: 1px solid var(--md-outline, #dcdde7);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: var(--md-surface-2, #fafaff);
}
.rq-head { font-size: 12px; color: var(--md-variant, #626477); margin-bottom: 8px; }
.rq-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 7px 0;
  border-top: 1px solid var(--md-outline, #ececf2);
}
.rq-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rq-main .fn-name { font-weight: 600; }
.rq-item .fn-sub { flex: 1 1 100%; font-size: 11.5px; color: var(--md-variant, #626477); }
.rq-item [data-rq] { margin-left: auto; }

/* 逐层浏览：面包屑 */.rc-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px dashed var(--md-outline-variant, #e3e4ee);
  margin-bottom: 6px;
}
.rc-path .rc-crumb {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--md-primary-container, #e4e7fa);
  color: var(--md-on-primary-container, #2b3168);
  cursor: pointer;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-path .rc-crumb:hover { filter: brightness(.95); }
.rc-path .rc-sep { color: var(--md-on-surface-variant, #6b6d7c); margin: 0 1px; }
.rc-path .rc-lv { margin-left: auto; color: var(--md-on-surface-variant, #6b6d7c); font-variant-numeric: tabular-nums; }
/* 逐层浏览：返回上一级 / 回首页 */
.rc-nav { display: flex; gap: 8px; margin: 0 0 8px; }
.rc-nav .btn { flex: 1; justify-content: center; }

/* 二级功能面板：48 个入口铺成网格 */
.sec-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-chip {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--md-outline-variant, #dfe0ea);
  background: var(--md-surface, #fff);
  color: var(--md-on-surface, #1b1c22);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.sec-chip:hover { background: var(--md-primary-container); border-color: transparent; }
.sec-chip.on { background: var(--md-primary-container); color: var(--md-on-primary-container); border-color: transparent; font-weight: 600; }
.sec-out {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--md-surface-variant, #f4f5fa);
  font-size: 13px;
  line-height: 1.7;
  max-height: 320px;
  overflow-y: auto;
  word-break: break-all;
}
.sec-out.show { display: block; }
.sec-out b { color: var(--md-primary, #4a54a8); }

/* 页面地图：一级一行，展开看三级 */
.map-box { display: flex; flex-direction: column; gap: 4px; }
.map-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  background: var(--md-surface-variant, #f4f5fa);
}
.map-row:hover { filter: brightness(.97); }
.map-row.on { background: var(--md-primary-container, #e4e7fa); }
.map-caret { width: 12px; color: var(--md-on-surface-variant, #6b6d7c); font-size: 11px; }
.map-name { font-weight: 600; font-size: 13px; }
.map-cnt { font-size: 11px; color: var(--md-on-surface-variant, #6b6d7c); font-variant-numeric: tabular-nums; }
.map-go { margin-left: auto; }
.map-sub { padding: 2px 0 8px 22px; }
.map-leaf {
  padding: 5px 9px;
  margin: 3px 0;
  border-radius: 7px;
  border: 1px dashed var(--md-outline-variant, #dfe0ea);
  font-size: 12.5px;
  cursor: pointer;
}
.map-leaf:hover { background: var(--md-primary-container, #e4e7fa); }
.map-deep { margin: 6px 0 0; font-size: 12px; color: var(--md-primary, #4a54a8); }
.map-note { margin-top: 5px; font-size: 11.5px; color: var(--md-on-surface-variant, #6b6d7c); line-height: 1.6; }
.map-flag {
  width: 15px; height: 15px; line-height: 15px; text-align: center;
  border-radius: 50%; font-size: 10.5px; font-weight: 700;
  background: var(--md-warning-container, #fff3d6); color: var(--md-on-warning-container, #7a5200);
}

/* 版本对比：手机上装着的 vs 线上最新 */
.ver-cmp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--md-surface-variant, #f4f5fa);
}
.ver-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ver-k { font-size: 11.5px; color: var(--md-on-surface-variant, #6b6d7c); }
.ver-n {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.ver-d { font-size: 11px; color: var(--md-on-surface-variant, #6b6d7c); }
.ver-arrow { flex: 0 0 auto; color: var(--md-on-surface-variant, #6b6d7c); font-size: 15px; }

/* 更新日志 */
.cl-box { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.cl-item {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--md-outline-variant, #e3e4ee);
  background: var(--md-surface, #fff);
}
.cl-item.cur { border-color: var(--md-primary, #4a54a8); background: var(--md-primary-container, #eef0fc); }
.cl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-ver { font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-at { font-size: 11.5px; color: var(--md-on-surface-variant, #6b6d7c); }
.cl-title { margin-top: 5px; font-size: 13.5px; font-weight: 600; }
.cl-list { margin: 7px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.75; color: var(--md-on-surface, #2c2d35); }
.cl-list li { margin: 2px 0; }

/* 定位历史 */
.lc-list { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.lc-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--md-outline-variant, #e3e4ee);
  font-size: 13px;
  line-height: 1.5;
}
.lc-row:last-child { border-bottom: 0; }
.lc-row .t { flex: none; width: 88px; color: var(--md-on-surface-variant); font-variant-numeric: tabular-nums; }
.lc-row .x { flex: 1; min-width: 0; color: var(--md-on-surface); word-break: break-all; }

/* 设备健康告警：离线 / 快没电 / 通道异常，平时一条都不显示 */
.alert-stack { display: none; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.alert-stack.show { display: flex; }
.alert-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--md-warning-container);
  color: var(--md-on-warning-container);
}
.alert-item.err { background: var(--md-error-container); color: var(--md-on-error-container); }
.alert-item .ai-ico { flex: none; font-size: 15px; line-height: 1.4; }

/* 客户端旧包提示：只在该更新的时候出现，平时完全不存在 */
.apk-out {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--md-warning-container);
  color: var(--md-on-warning-container);
  border: 1px solid color-mix(in srgb, var(--md-on-warning-container) 22%, transparent);
  font-size: 14px;
  line-height: 1.5;
}
.apk-out.show { display: flex; }
.apk-out .apk-ico { font-size: 18px; line-height: 1; flex: none; }
.apk-out .apk-txt { flex: 1; min-width: 0; }
.apk-out .apk-txt b { font-weight: 600; }
.apk-out .btn { flex: none; }
@media (max-width: 560px) {
  .apk-out { flex-wrap: wrap; }
  .apk-out .btn { width: 100%; justify-content: center; }
}

/* 设备信息 / 使用时长 / 守护 */
.dv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

/* 「全部能力」：指令小方块，一行能塞好几个，方便扫一眼 */
.ac-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--md-outline, #dcdde7);
  background: var(--md-surface-2, #fafaff);
  color: var(--md-on-surface, #272936);
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.ac-chip:hover {
  background: color-mix(in srgb, var(--md-primary-container) 65%, var(--card));
  border-color: var(--md-primary);
}
.ac-chip:active { transform: scale(.97); }
.ac-chip[disabled] { opacity: .55; cursor: default; }
.ac-chip.need { color: var(--md-on-surface-variant); border-style: dashed; }
.ac-chip .ac-tag {
  font-size: 10.5px;
  color: var(--md-on-surface-variant);
  background: var(--md-container);
  border-radius: 6px;
  padding: 1px 5px;
}

.dv-item {
  border: 1px solid var(--md-outline, #dcdde7);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--md-surface-2, #fafaff);
}
.dv-title { font-size: 12px; color: var(--md-variant, #626477); margin-bottom: 8px; font-weight: 600; }
.dv-line {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 13px;
}
.dv-k { color: var(--md-variant, #626477); min-width: 56px; }
.dv-v { color: var(--md-on-surface, #272936); flex: 1; word-break: break-all; }
.dv-line .btn { margin-left: auto; }

.us-head { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.us-num {
  flex: 1; min-width: 120px;
  border: 1px solid var(--md-outline, #dcdde7);
  border-radius: 14px; padding: 12px 14px;
  background: var(--md-surface-2, #fafaff);
}
.us-num b { display: block; font-size: 20px; color: var(--md-on-surface, #272936); }
.us-num span { font-size: 11.5px; color: var(--md-variant, #626477); }
.us-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.us-name { width: 120px; color: var(--md-on-surface, #272936); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-bar { flex: 1; height: 8px; border-radius: 6px; background: var(--md-outline, #ececf2); overflow: hidden; }
.us-bar i { display: block; height: 100%; border-radius: 6px; background: var(--md-primary, #515d98); }
.us-val { width: 64px; text-align: right; color: var(--md-variant, #626477); }

/* 手表发来的图片 */
.wi-wrap { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.wi-img {
  width: 220px; max-width: 100%; border-radius: 14px; cursor: zoom-in;
  border: 1px solid var(--md-outline, #dcdde7); background: #fff;
}
.wi-side { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.wi-text { font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }

/* ---------- 页面快照（「更多」里读不到文字的页） ---------- */
/* 「输入框 + 按钮」并排的一行：输入框吃掉剩余宽度，按钮不会被挤到下一行 */
.ps-row { flex: 1 1 300px; min-width: 0; flex-wrap: nowrap; }
.ps-row > input { flex: 1 1 140px; width: auto; min-width: 0; max-width: none; }
@media (max-width: 640px) {
  /* 外面已经竖排了，这里必须清掉 flex-basis，否则会被拉成 300px 高的空白 */
  .ps-row { flex: 0 0 auto; flex-wrap: wrap; }
}

.ps-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px; margin-top: 14px;
}
.ps-list:empty { display: none; }
.ps-thumb {
  margin: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--md-outline-variant); background: var(--md-surface);
  transition: border-color .15s, transform .15s;
}
.ps-thumb:hover { border-color: var(--md-primary); transform: translateY(-1px); }
.ps-thumb img { display: block; width: 100%; height: 96px; object-fit: cover; }
.ps-thumb figcaption {
  padding: 5px 7px; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ==========================================================================
   手机端适配（≤640 手机，≤420 小屏）
   目标：单列、按钮够大、输入框不触发 iOS 缩放、底部导航不挤爆
   ========================================================================== */
@media (max-width: 640px) {
  /* iOS 上 font-size < 16px 的输入框一聚焦就会把整页放大，很难受 */
  input, select, textarea { font-size: 16px !important; }
  .main-content { padding: 12px 0 158px; }
  .main-content .card { padding: 16px 14px; border-radius: 20px; }
  .main-content h1 { font-size: 21px; }
  .main-content .sub { font-size: 13px; margin-bottom: 16px; }
  .main-content .card-head { margin-bottom: 12px; }
  .main-content .card-head h3 { font-size: 15.5px; }
  /* 标题 + 右侧说明在窄屏上会互相挤，让说明换到下一行 */
  .main-content .card-head { flex-wrap: wrap; row-gap: 4px; }
  .main-content .card-head h3 { flex: 0 0 auto; white-space: nowrap; }
  .main-content .card-head .hint { flex: 1 1 100%; min-width: 0; }

  .header-inner { min-height: 56px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; font-size: 13px; }
  .brand-text { font-size: 14px; }
  .header-actions { gap: 2px; }
  .account-chip { display: none; }
  .icon-btn { width: 36px; height: 36px; flex: 0 0 36px; }

  /* 手指点得中：统一抬到 38/34px */
  .btn { min-height: 38px; padding: 8px 14px; }
  .btn.sm { min-height: 34px; padding: 7px 12px; font-size: 13px; }
  .fn-acts .btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }

  /* 一律单列，别在小屏上塞两列。
     必须写 minmax(0,1fr) 而不是 1fr —— 1fr 的隐式最小宽度是 min-content，
     长邮箱 / 长链接会把整张卡片顶出屏幕（实测 439px > 390px） */
  .fn-grid, .ct-list, .dv-grid, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  /* 概览那四块统计卡很小，两列更紧凑 */
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 > *, .grid3 > *, .grid4 > *, .fn-grid > *, .dv-grid > *, .ct-list > * { min-width: 0; }
  /* 长邮箱 / 长地址在窄屏上换行，别撑宽 */
  .kv, .dv-line, .fn-sub, .hint, .cmd-res, .wi-text { overflow-wrap: anywhere; }

  /* 标题 + 按钮那一行在手机上改上下排 */
  .row.between { flex-direction: column; align-items: flex-start; gap: 10px !important; }
  .row.between > * { width: 100%; }
  .row.between > .row { flex-wrap: wrap; }
  input[type="text"], input[type="password"], input[type="email"], select { max-width: none !important; width: 100%; }
  /* 但「输入框 + 按钮」并排的那种行，输入框要能缩，不然按钮被挤到下一行。
     注意不能写成 .row > input —— .row.between 在手机上是竖排的，
     那样会把输入框压成 min-content 宽（实测 210px，只有半屏） */
  .row:not(.between) > input[type="text"], .row:not(.between) > input[type="password"],
  .row:not(.between) > input[type="email"], .row:not(.between) > select {
    width: auto !important; flex: 1 1 90px; min-width: 0;
  }
  .row.between > input[type="text"], .row.between > input[type="password"],
  .row.between > input[type="email"], .row.between > select {
    width: 100% !important; flex: 0 0 auto;
  }
  .copy-box { flex-direction: column; align-items: stretch; gap: 8px; }
  .copy-box code { word-break: break-all; }

  /* 面板里的「一行四列」会挤成一坨，允许换行 */
  .dv-line { flex-wrap: wrap; gap: 4px 8px; }
  .dv-line .dv-v { flex: 1 1 100%; }
  .kv { font-size: 13px; }
  .logbox { max-height: 220px; }
  .wi-wrap { flex-direction: column; gap: 10px; }
  .wi-img { width: auto; max-width: 100%; max-height: 260px; object-fit: contain; align-self: center; }
  .wi-side { min-width: 0; width: 100%; }
  .rc-items { max-height: 300px; }
  .dt-body { max-height: 340px; }
  .pair-code { font-size: 38px; letter-spacing: .16em; }
}

/* 底部导航：6 个按钮在小屏上会顶出去，改成等分 */
@media (max-width: 420px) {
  .dock {
    left: 8px; right: 8px; transform: none; max-width: none;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-between;
  }
  .dock button { min-width: 0; flex: 1 1 0; padding: 7px 3px; font-size: 10px; gap: 2px; }
  .dock button svg { width: 18px; height: 18px; }
  .main-content { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

/* 触屏设备：去掉 300ms 点击延迟和高亮块 */
@media (hover: none) and (pointer: coarse) {
  .btn, .dock button, .fn-item, .dt-chip, .ps-thumb { touch-action: manipulation; }
  .btn:active { transform: scale(.97); }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ==========================================================================
   全站到期横条 + 到期弹窗
   ========================================================================== */
.jz-bar.hidden { display: none; }
.jz-bar {
  position: relative;
  z-index: 60;
  background: var(--md-warning-container, #fff4d6);
  color: var(--md-on-warning-container, #6b4700);
  border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: 12.5px;
}
.jz-bar.dead {
  background: var(--md-error-container, #ffe1e1);
  color: var(--md-on-error-container, #7a1a1a);
}
.jz-bar-in {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  min-width: 0;
}
.jz-bar-ico {
  flex: 0 0 auto;
  width: 17px; height: 17px; line-height: 17px;
  text-align: center; border-radius: 50%;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-size: 11px; font-weight: 800;
}
.jz-bar-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jz-bar-txt b { font-variant-numeric: tabular-nums; }
.jz-bar-go {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}
.jz-bar-go:hover { background: color-mix(in srgb, currentColor 24%, transparent); color: inherit; }

.ex-modal { text-align: center; }
.ex-ico {
  width: 46px; height: 46px; line-height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 22px; font-weight: 800;
  background: var(--md-warning-container, #fff4d6);
  color: var(--md-on-warning-container, #6b4700);
}
.ex-left { font-size: 13px; color: var(--muted); margin: 12px 0 18px; }
.ex-left b { font-variant-numeric: tabular-nums; color: var(--md-on-surface); font-size: 15px; }
.ex-acts { display: flex; gap: 10px; justify-content: center; }
.ex-acts .btn { min-width: 132px; justify-content: center; }
/* 「算了吧」禁用时必须是真灰：背景、文字、边框一起压下去，鼠标也变禁止 */
.ex-acts .btn[disabled],
.ex-acts .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(1);
  pointer-events: none;
}

/* ==========================================================================
   捐赠页
   ========================================================================== */
.donate-hero h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.donate-hero .sub { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin: 0 0 20px; max-width: 720px; }

.qr-wrap { display: flex; flex-direction: column; align-items: center; }
.qr-img {
  width: min(320px, 78vw);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--md-outline-variant, #e3e4ee);
  background: #fff;
}

.up-drop {
  margin-top: 12px;
  min-height: 120px;
  border: 2px dashed var(--md-outline-variant, #dfe0ea);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.up-drop:hover, .up-drop.over { border-color: var(--md-primary, #4a54a8); background: var(--md-primary-container, #f3f4fd); }
.up-tip { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.up-tip b { font-size: 13.5px; }
.up-tip span { font-size: 12px; color: var(--muted); }
.up-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  object-fit: contain;
}
.up-preview.hidden { display: none; }

.dn-list { display: flex; flex-direction: column; gap: 10px; }
.dn-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: var(--md-surface-variant, #f4f5fa);
}
.dn-thumb {
  width: 74px; height: 74px; flex: 0 0 auto;
  border-radius: 8px; object-fit: cover;
  border: 1px solid var(--md-outline-variant, #e3e4ee);
  background: #fff;
}
.dn-main { min-width: 0; flex: 1; }
.dn-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dn-top b { font-size: 15px; font-variant-numeric: tabular-nums; }
.dn-at { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.dn-note { margin-top: 5px; font-size: 12.5px; }
.dn-rev { margin-top: 4px; font-size: 11.5px; color: var(--muted); }

.rk-list { display: flex; flex-direction: column; gap: 4px; }
.rk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
}
.rk-row:nth-child(odd) { background: var(--md-surface-variant, #f7f8fb); }
.rk-row.me { background: var(--md-primary-container, #eef0fc); font-weight: 600; }
.rk-no {
  flex: 0 0 26px; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 13px;
}
.rk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-cnt { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
.rk-amt {
  flex: 0 0 auto; min-width: 82px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 700;
}

/* ==========================================================================
   公告页
   ========================================================================== */
.nt-list { display: flex; flex-direction: column; gap: 12px; }
.nt-item {
  padding: 16px 18px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--md-outline-variant, #e3e4ee);
  background: var(--card);
}
.nt-item.pin { border-color: var(--md-primary, #4a54a8); }
.nt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.nt-body { margin-top: 9px; font-size: 13.5px; line-height: 1.8; word-break: break-word; }
.nt-foot { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   B 站扫码登录
   ========================================================================== */
.bili-login { margin: 0 0 12px; }
.bili-qr {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--md-surface-variant, #f4f5fa);
}
.bili-qr.hidden { display: none; }
.bili-qr-img canvas { display: block; border-radius: 6px; }
.bili-qr-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bili-qr-side b { font-size: 13.5px; }
.bili-qr-side .hint { font-size: 12px; line-height: 1.6; }
.bili-qr-fallback { font-size: 12px; color: var(--muted); }

@media (max-width: 520px) {
  .bili-qr { flex-direction: column; align-items: center; }
  .bili-qr-side { text-align: center; align-items: center; }
}

/* ==========================================================================
   品牌图标：用 APP 的那张图（绿色多边形 + 电话笑脸 + CS）
   ========================================================================== */
.logo-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.brand-mark {
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ═══ 2026-11-25 手机端右侧溢出修复 ═══
   ≤900px 时 .nav-links 已经隐藏，但 .nav-actions 里的「主题 / 捐赠」两个
   ghost 按钮没缩，导致整页 scrollWidth 比视口宽 80px，右边露出一条空白。 */
@media (max-width: 640px) {
  .nav-actions { gap: 6px; }
  .nav-actions .ghost { display: none; }
  .nav-actions .btn { padding-inline: 11px; font-size: 12.5px; }
  .nav { gap: 8px; padding-inline: 12px; }
  .brand span:last-child { font-size: 14px; }
}

/* 2026-11-26：版本提示条（.apk-out）在「设备状态」页最下面，而底部悬浮导航 .dock 是 fixed 的，
   滚到那儿的时候提示条会被导航盖住，只露出半句话。
   这里让提示条在滚到可视区底部时吸附在导航上方（z-index 压在导航下面），
   既不改文档流、也不会和导航打架。 */
.apk-out.show {
  position: sticky;
  bottom: 104px;
  z-index: 45;
  box-shadow: 0 10px 28px -12px #20243d2e;
}
@media (max-width: 920px) { .apk-out.show { bottom: 96px; } }

/* ============================================================
   2026-11-26 图标系统：全站去 emoji，换成内联 SVG 遮罩
   ------------------------------------------------------------
   之前按钮、状态、提示里全是 emoji 符号。问题有三个：
   一是各系统渲染差别大，安卓和 Windows 上不是同一套图；
   二是字号一变就跳行，和文字基线对不齐；三是彩色图案在浅色卡片上很吵。
   这里统一成 mask + currentColor 的单色图标：
   - 尺寸就是 1em，跟着字号走，颜色就是文字颜色
   - 想换色直接给 color，不用换图
   ============================================================ */
.ico {
  display: inline-block;
  width: 1em; height: 1em;
  flex: 0 0 auto;
  vertical-align: -0.135em;
  background-color: currentColor;
  -webkit-mask-image: var(--ico); mask-image: var(--ico);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.ico.i-check { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.6 12.7l4.6 4.6L19.4 7.3' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.ico.i-cross { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.4 6.4l11.2 11.2M17.6 6.4L6.4 17.6' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round'/></svg>"); }
.ico.i-warn  { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 4.1l8.7 15.4H3.3z' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'/><path d='M12 9.5v4.2' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/><circle cx='12' cy='16.5' r='1.15' fill='black'/></svg>"); }
.ico.i-ban   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='8.3' fill='none' stroke='black' stroke-width='2'/><path d='M6.3 17.7L17.7 6.3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); }
.ico.i-clock { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='8.4' fill='none' stroke='black' stroke-width='1.9'/><path d='M12 7.4V12l3.2 2.1' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.ico.i-box   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.3l8.1 4.4v8.6L12 20.7 3.9 16.3V7.7z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/><path d='M3.9 7.7L12 12.1l8.1-4.4M12 12.1v8.6' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/></svg>"); }
.ico.i-bolt  { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13.4 2.6L5.6 13.4h5.1l-1.3 8 8-11h-5.2z' fill='black'/></svg>"); }
.ico.i-play  { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.2 4.9l10.6 7.1-10.6 7.1z' fill='black'/></svg>"); }
.ico.i-up    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 19.2V5.4M6.3 11.1L12 5.3l5.7 5.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.ico.i-dot   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='4' fill='black'/></svg>"); }

/* 语义色：只在需要区分「正常 / 注意 / 异常」时用，其余跟随文字色 */
.ico.t-ok   { color: var(--ok, #2e7d32); }
.ico.t-warn { color: var(--warn-fg, #a86500); }
.ico.t-err  { color: var(--err, #c0392b); }

/* 圆形徽标里放图标时，把原来的行高居中换成网格居中，图标尺寸单独给 */
.jz-bar-ico, .ex-ico { display: grid; place-items: center; }
.jz-bar-ico .ico { width: 12px; height: 12px; vertical-align: 0; }
.ex-ico .ico { width: 22px; height: 22px; vertical-align: 0; }

/* ---- 2026-11-26 去 emoji 后的配套排版 ---- */
/* 拖拽上传区：原来是一个 26px 的 emoji 撑开，现在换成主色描边图标 */
.drop-ico {
  display: grid; place-items: center;
  font-size: 26px; line-height: 1; margin-bottom: 10px;
  color: var(--md-primary);
}
.drop-ico .ico { width: 30px; height: 30px; }

/* 电量后面的「充电中」小闪电 */
.dv-chg { margin-left: 3px; color: var(--ok); }

/* 巡检行：图标列不需要 56px 的文字对齐宽度 */
.dv-k.ic { min-width: 18px; display: inline-flex; align-items: center; }
.dv-k.ic .ico { width: 15px; height: 15px; vertical-align: 0; }

/* 页面树展开箭头：用 CSS 三角形，比 ▾ / ▸ 更锐利，展开时旋转 90 度 */
.map-caret {
  width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transition: transform .16s ease;
}
.map-row.on .map-caret { transform: rotate(90deg); }

/* 页面树补充说明：警告图标 + 文字两列，图标顶部对齐 */
.map-note { display: flex; gap: 5px; align-items: flex-start; }
.map-note .ico { width: 12px; height: 12px; margin-top: 3px; color: var(--md-on-warning-container, #7a5200); }

/* 捐赠排行榜：前三名改成金银铜圆形数字徽章 */
.rk-no {
  flex: 0 0 24px; height: 24px; line-height: 24px;
  border-radius: 50%; text-align: center;
  font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 12.5px; color: var(--muted);
}
.rk-no.top { color: #fff; font-size: 12px; }
.rk-no.top1 { background: linear-gradient(160deg, #f7c948, #d99a1d); box-shadow: 0 2px 8px -2px #d99a1d66; }
.rk-no.top2 { background: linear-gradient(160deg, #c9cfd9, #98a1b0); box-shadow: 0 2px 8px -2px #98a1b066; }
.rk-no.top3 { background: linear-gradient(160deg, #dda173, #b5713f); box-shadow: 0 2px 8px -2px #b5713f66; }

/* 首页通道对照表 / 浮动小卡里的对勾 */
.chan-row .yes { display: inline-flex; align-items: center; justify-content: center; }
.chan-row .yes .ico { width: 15px; height: 15px; }
.chip-ok .ico { width: 11px; height: 11px; }

/* 文档表格里的支持/不支持 */
.tbl td .ico { width: 15px; height: 15px; }

/* 客户端更新提示条的箭头图标 */
.apk-out .apk-ico.ico { width: 18px; height: 18px; }

/* ==========================================================================
   2026-11-26 全局细节：选区 / 滚动条 / 表格隔行 / 长串换行 / 降低动效
   ========================================================================== */

/* 选中文字：浏览器默认那抹蓝和站点主色不是一套，选起来像另一个网站 */
::selection {
  background: color-mix(in srgb, var(--md-primary) 26%, transparent);
  color: var(--md-on-surface);
}

/* 滚动容器统一细滚动条。Windows 默认 17px 的灰条会把 .logbox / .dt-body
   这种 200~300px 宽的窄面板挤掉一大块，右侧还留一条突兀的浅槽。 */
:is(.logbox, .dt-body, .rc-items, .cl-box, .lc-list, .flow-list, .bili-list,
    .sec-out, .modal, .doc-body pre, .doc-toc, .side nav) {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--md-on-surface-variant) 36%, transparent) transparent;
}
:is(.logbox, .dt-body, .rc-items, .cl-box, .lc-list, .flow-list, .bili-list,
    .sec-out, .modal, .doc-body pre, .doc-toc, .side nav)::-webkit-scrollbar {
  width: 8px; height: 8px;
}
:is(.logbox, .dt-body, .rc-items, .cl-box, .lc-list, .flow-list, .bili-list,
    .sec-out, .modal, .doc-body pre, .doc-toc, .side nav)::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--md-on-surface-variant) 34%, transparent);
  border-radius: 999px;
}
:is(.logbox, .dt-body, .rc-items, .cl-box, .lc-list, .flow-list, .bili-list,
    .sec-out, .modal, .doc-body pre, .doc-toc, .side nav)::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--md-on-surface-variant) 55%, transparent);
}
:is(.logbox, .dt-body, .rc-items, .cl-box, .lc-list, .flow-list, .bili-list,
    .sec-out, .modal, .doc-body pre, .doc-toc, .side nav)::-webkit-scrollbar-track {
  background: transparent;
}

/* 文档里的参数表行多，隔行加一点底色，长表格扫行不串行 */
.doc-body table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--md-container) 42%, transparent);
}

/* 文档正文里的长 URL / 长参数名不换行会把整页顶出横向滚动条 */
.doc-body { overflow-wrap: anywhere; }
.doc-body pre, .doc-body pre code { overflow-wrap: normal; }

/* 尊重系统「减少动效」：漂浮小卡、脉冲圆点、页签入场、平滑滚动全部关掉，
   否则前庭敏感的用户会被持续晃动搞晕 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .chip-a, .chip-b, .pill .dot-live { animation: none !important; }
  .bento-item:hover, .plan:hover, .plugin:hover, .ps-thumb:hover { transform: none; }
}
