/* 用户界面（官网 + 控制台）的品牌层，风格对齐 apex1.us。
   只作用于 body.site —— 管理后台不受影响（它不引用这个文件）。
   颜色取自 apex1.us 首页截图：主色 #5d30f7、背景 #f8f9fb、卡片边框 #e5e7eb、
   标题 #111827、正文 #6b7280、标签底 #ebe9fc。
   对比度：主色在白底 / 白字在主色底都约 6.5:1（WCAG AA）。
   状态四色（good / warning / serious / critical）沿用已验证的那套，不随品牌变 —— 它们承载含义。 */

body.site {
  --brand: #5d30f7;
  --brand-hover: #4c22e0;
  --brand-solid: #5d30f7;         /* 按钮底色（配白字）。浅色下和 --brand 相同 */
  --brand-solid-hover: #4c22e0;
  --brand-soft: #ebe9fc;
  --surface-1: #ffffff;
  --plane: #f8f9fb;
  --ink-1: #111827;
  --ink-2: #4b5563;
  --ink-muted: #6b7280;
  --grid: #eef0f3;
  --baseline: #d1d5db;
  --border: #e5e7eb;
  --series-1: var(--brand);
  --meter-100: #ebe9fc;
  --meter-250: #b9a6fb;
  --meter-450: #5d30f7;
  --meter-550: #4a1fd6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --gridline: rgba(17, 24, 39, .028);
  --glow: rgba(93, 48, 247, .10);
  --top-bg: rgba(248, 249, 251, .82);
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) body.site {
    --brand: #8b6cff;
    --brand-hover: #a28aff;
    /* 按钮另用深一档：白字配 #8b6cff 只有 3.7:1，不够 AA；#6a45f8 是 5.5:1 */
    --brand-solid: #6a45f8;
    --brand-solid-hover: #5d30f7;
    --brand-soft: rgba(139, 108, 255, .16);
    --surface-1: #12141c;
    --plane: #0b0d13;
    --ink-1: #f3f4f6;
    --ink-2: #c4c7cf;
    --ink-muted: #9ca3af;
    --grid: #1f2230;
    --baseline: #343849;
    --border: #23263a;
    --meter-100: #262342;
    --meter-450: #8b6cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --gridline: rgba(255, 255, 255, .03);
    --glow: rgba(139, 108, 255, .14);
    --top-bg: rgba(11, 13, 19, .82);
  }
}

/* ── 背景：淡网格 + 右上角一点紫色光晕 ── */
body.site {
  background-color: var(--plane);
  background-image:
    radial-gradient(900px 420px at 92% -8%, var(--glow), transparent 70%),
    linear-gradient(to right, var(--gridline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridline) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
  font: 14px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
body.site a { color: var(--brand) }

/* ── 顶栏：半透明 + 模糊，字标带方括号 ── */
body.site .top {
  background: var(--top-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
}
body.site .top .logo {
  font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--ink-1);
}
body.site .top .logo::before,
body.site .top .logo::after { font-weight: 300; color: var(--ink-muted); }
body.site .top .logo::before { content: "["; margin-right: 3px }
body.site .top .logo::after { content: "]"; margin-left: 3px }
body.site .top .logo:hover { text-decoration: none }
body.site .top nav { gap: 22px }
body.site .top nav a { color: var(--ink-2); font-weight: 500 }
body.site .top nav a:hover { color: var(--ink-1); text-decoration: none }
body.site .top nav a.cta {
  background: var(--surface-1); color: var(--ink-1);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 15px; box-shadow: var(--shadow);
}
body.site .top nav a.cta:hover { border-color: var(--baseline); filter: none }
body.site .top nav a.lang { color: var(--ink-muted); font-size: 13px }

/* ── 按钮 ── */
body.site button, body.site .btn {
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1);
  color: var(--ink-1); font-weight: 500; padding: 8px 15px; box-shadow: var(--shadow);
  transition: background .15s, border-color .15s;
}
body.site button:hover { filter: none; border-color: var(--baseline) }
body.site button.primary { background: var(--brand-solid); border-color: var(--brand-solid); color: #fff }
body.site button.primary:hover { background: var(--brand-solid-hover); border-color: var(--brand-solid-hover) }
body.site button.danger { color: var(--critical); border-color: color-mix(in oklab, var(--critical) 45%, var(--border)) }

/* ── 表单 ── */
body.site input, body.site select, body.site textarea {
  border-radius: 8px; border-color: var(--baseline); padding: 8px 11px;
}
body.site input:focus, body.site select:focus, body.site textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}

/* ── 首页 hero：居中、大标题、胶囊标签 ── */
body.site .hero { text-align: center; padding: 28px 0 8px }
body.site .hero .badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 500;
  margin-bottom: 18px;
}
body.site .hero .badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
body.site .hero h1 {
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em;
  margin: 0 auto 18px; max-width: 900px;
}
body.site .hero p.lead {
  font-size: 17px; color: var(--ink-muted); max-width: 640px; margin: 0 auto;
}
body.site .hero .actions { justify-content: center; margin-top: 28px }
body.site .hero .actions button { padding: 10px 20px; font-size: 15px }

/* ── 版块与卡片 ── */
body.site .sec { margin-top: 64px }
body.site .sec > h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px }
body.site .card, body.site .pcard, body.site .tbl {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
}
body.site .card { padding: 18px 20px }
body.site .pcard { padding: 22px }
body.site .pcard .big, body.site .tile .val { color: var(--brand); font-weight: 700 }
body.site .pcard .big small, body.site .tile .val small { color: var(--ink-muted) }
/* 「可以验证」与「先说清楚」这两类说明块：白卡片 + 左侧细色条（紫 = 证明，琥珀 = 坦白的限制） */
body.site .proof, body.site .honest {
  background: var(--surface-1); border: 1px solid var(--border);
  border-left: 3px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow);
  padding: 14px 18px;
}
body.site .honest { border-left-color: var(--warning) }

/* ── 表格 ── */
body.site table { background: transparent }
body.site th {
  background: color-mix(in oklab, var(--ink-1) 2.5%, var(--surface-1));
  color: var(--ink-muted); font-weight: 600; font-size: 12px;
}
body.site th, body.site td { padding: 11px 14px; border-bottom-color: var(--grid) }
body.site tbody tr:hover td { background: color-mix(in oklab, var(--brand) 3%, transparent) }

/* ── 提示条 ── */
body.site .flash { border-radius: 10px; padding: 11px 14px }

/* ── 控制台二级导航：选中项紫色下划线 ── */
body.site .cnav {
  background: var(--top-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 0 28px; gap: 4px;
}
body.site .cnav a {
  color: var(--ink-2); font-weight: 500; padding: 11px 12px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
body.site .cnav a:hover { color: var(--ink-1); text-decoration: none }
body.site .cnav a.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand) }
body.site .cwrap { padding-top: 32px }
body.site .cwrap h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em }

/* ── 折叠说明 ── */
body.site details.why > div { border-radius: 8px; border-left-color: var(--brand-soft) }
body.site details.fold > summary { border-radius: 8px; border-color: var(--border) }

/* ── 页脚 ── */
body.site .foot { text-align: center; border-top-color: var(--border); background: transparent }

@media (max-width: 720px) {
  body.site .hero h1 { font-size: 32px }
  body.site .top { padding: 12px 16px }
  body.site .top nav { gap: 14px; font-size: 13px }
}

/* ══════════════════════════════════════════════════════════════════
   首页（templates/site/home.html）。版式参考同类产品官网：
   首屏左右分栏 + 产品画面、双色标题、带图示的卡片、时间轴、底部行动区
   ══════════════════════════════════════════════════════════════════ */
body.site main.wrap.wide { max-width: 1160px; padding-top: 24px }
body.site .grad {
  background: linear-gradient(90deg, var(--brand), #a855f7 60%, #ec4899);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.site .body { color: var(--ink-2); font-size: 15px; line-height: 1.8; margin: 0 }

/* 双色标题：第一行深、第二行浅 */
body.site h2.two { font-size: 30px; font-weight: 750; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 20px }
body.site h2.two span { display: block; color: var(--ink-muted); font-weight: 600 }

/* ── 首屏 ── */
body.site .hx {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0 40px;
}
body.site .hx .badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 500; margin-bottom: 22px;
}
body.site .hx .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand) }
body.site .hx h1 {
  font-size: clamp(34px, 4vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; margin: 0 0 20px;
}
body.site .hx .lead { font-size: 16.5px; line-height: 1.75; color: var(--ink-muted); margin: 0 }
body.site .hx .lead strong { color: var(--ink-1) }
body.site .hx .actions { margin-top: 30px; gap: 10px }
body.site .hx .actions button { padding: 11px 20px; font-size: 15px }

/* 右边：状态胶囊 + 终端窗口 */
body.site .hx-visual { position: relative }
body.site .hx-visual::before {           /* 终端后面一团柔和的光 */
  content: ""; position: absolute; inset: -40px -30px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 22%, transparent), transparent);
  filter: blur(20px);
}
body.site .state-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12.5px }
body.site .state-row .arrow { color: var(--ink-muted) }
body.site .pill { border-radius: 999px; padding: 4px 11px; font-weight: 600; border: 1px solid var(--border); background: var(--surface-1) }
body.site .pill.off { color: var(--ink-muted) }
body.site .pill.off::before { content: "○ "; }
body.site .pill.on { color: var(--success-text); border-color: color-mix(in oklab, var(--good) 35%, var(--border)) }
body.site .pill.on::before { content: "● "; color: var(--good) }
body.site .term {
  background: #0d0f17; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 60px -20px rgba(30, 20, 80, .45), 0 0 0 1px rgba(93, 48, 247, .08);
}
body.site .term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #151826; border-bottom: 1px solid rgba(255,255,255,.06) }
body.site .term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57 }
body.site .term-bar i:nth-child(2) { background: #febc2e }
body.site .term-bar i:nth-child(3) { background: #28c840 }
body.site .term-bar span { margin-left: 10px; color: #8b90a3; font-size: 12px }
body.site .term pre {
  margin: 0; padding: 20px 20px 24px; color: #e6e8ef; white-space: pre-wrap;
  font: 13.5px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body.site .term .p { color: #a78bfa }
body.site .term .c { color: #6b7394 }
body.site .term .k { color: #f0abfc }
body.site .term .g { color: #fbbf24 }
body.site .term .ok { color: #4ade80 }
body.site .term .cur { display: inline-block; width: 8px; height: 16px; margin-left: 4px; vertical-align: -3px; background: #a78bfa; animation: hxblink 1.1s steps(1) infinite }
@keyframes hxblink { 50% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { body.site .term .cur { animation: none } }

/* ── 数字条 ── */
body.site .stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 0;
}
body.site .stats > div {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 18px 18px 16px; text-align: center;
}
body.site .stats b { display: block; font-size: 26px; font-weight: 750; color: var(--brand); letter-spacing: -.02em }
body.site .stats span { display: block; margin-top: 4px; color: var(--ink-muted); font-size: 12.5px }

/* ── 左文右图 ── */
body.site .sec.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center }
body.site main.wrap.wide .sec { margin-top: 96px }

/* 流程图：运行 → 写进加密盘 → 待机，下面一条「下次连接时装回」 */
body.site .flow {
  display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr; align-items: center;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 28px 22px 22px; row-gap: 18px;
}
body.site .flow .node {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 10px; text-align: center;
  background: var(--plane); min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
body.site .flow .node b { font-size: 14px }
body.site .flow .node span { font-size: 12px; color: var(--ink-muted); line-height: 1.45 }
body.site .flow .node.run { border-color: color-mix(in oklab, var(--good) 40%, var(--border)) }
body.site .flow .node.save { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); background: var(--brand-soft) }
body.site .flow .node.save svg { width: 20px; height: 20px; margin: 0 auto; fill: none; stroke: var(--brand); stroke-width: 1.8 }
body.site .flow .node.off { color: var(--ink-2) }
body.site .flow .edge { height: 2px; background: linear-gradient(90deg, var(--border), var(--brand)) }
body.site .flow .back {
  grid-column: 1 / -1; text-align: center; font-size: 12.5px; color: var(--brand);
  border-top: 1px dashed var(--border); padding-top: 14px;
}

/* 一天的时间轴 */
body.site .day { padding: 26px 26px 22px }
body.site .day .track {
  position: relative; height: 36px; border-radius: 10px;
  background: repeating-linear-gradient(135deg, var(--plane) 0 8px, color-mix(in oklab, var(--ink-1) 4%, var(--plane)) 8px 9px);
  border: 1px solid var(--border);
}
body.site .day .seg {
  position: absolute; top: 4px; bottom: 4px; border-radius: 7px;
  background: linear-gradient(90deg, var(--brand), #8b5cf6);
  box-shadow: 0 4px 14px -4px color-mix(in oklab, var(--brand) 60%, transparent);
}
body.site .day .ticks { display: flex; justify-content: space-between; margin: 8px 2px 0; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums }
body.site .day .legend { display: flex; gap: 22px; margin: 16px 0 14px; font-size: 13px; color: var(--ink-2) }
body.site .day .sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 0 }
body.site .day .sw.on { background: var(--brand) }
body.site .day .sw.off { background: repeating-linear-gradient(135deg, var(--plane) 0 3px, var(--baseline) 3px 4px); border: 1px solid var(--border) }
body.site .day .body strong { color: var(--brand) }

/* 三张带图标的卡片 */
body.site .feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
body.site .feat {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 24px 22px; display: flex; flex-direction: column;
}
body.site .feat .ic {
  width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 16px;
}
body.site .feat .ic svg { width: 21px; height: 21px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
body.site .feat h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4 }
body.site .feat p { margin: 0; color: var(--ink-muted); font-size: 13.5px; line-height: 1.75; flex: 1 }
body.site .feat a { margin-top: 14px; font-size: 13.5px; font-weight: 600 }

/* 预装工具标签 */
body.site .chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
body.site .chips span {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 15px; font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2);
  box-shadow: var(--shadow);
}
body.site .chips span.k { color: var(--brand); border-color: color-mix(in oklab, var(--brand) 35%, var(--border)); background: var(--brand-soft) }

/* 价格卡片 */
body.site .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px }
body.site .plan {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 22px; transition: border-color .15s, transform .15s;
}
body.site .plan:hover { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); transform: translateY(-2px) }
body.site .plan .name { font-weight: 700; font-size: 16px }
body.site .plan .spec { color: var(--ink-muted); font-size: 12px; margin: 2px 0 16px }
body.site .plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--ink-1) }
body.site .plan .price small { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 3px }
body.site .plan ul { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--grid); font-size: 13px; color: var(--ink-2) }
body.site .plan li { padding: 4px 0 4px 20px; position: relative }
body.site .plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700 }

/* 适合 / 不适合 */
body.site .fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
body.site .fit h3 { margin: 0 0 12px; font-size: 15px }
body.site .fit h3.yes { color: var(--success-text) }
body.site .fit h3.no { color: var(--ink-2) }
body.site .fit ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2) }
body.site .fit li { padding: 6px 0 6px 26px; position: relative }
body.site .fit ul.ok li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 700 }
body.site .fit ul.no li::before { content: "✕"; position: absolute; left: 3px; color: var(--ink-muted); font-weight: 700 }
body.site .fitnote { margin-top: 14px; line-height: 1.8 }
body.site .fit .lede { margin: 0 0 8px; font-weight: 600; font-size: 14px; color: var(--ink-1) }

/* 底部行动区 */
body.site .cta-band {
  margin: 110px 0 20px; text-align: center; padding: 56px 24px; border-radius: 22px;
  background:
    radial-gradient(600px 220px at 15% 0%, rgba(168, 85, 247, .18), transparent 70%),
    radial-gradient(600px 220px at 85% 100%, rgba(93, 48, 247, .20), transparent 70%),
    var(--surface-1);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
body.site .cta-band h2 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px }
body.site .cta-band p { color: var(--ink-muted); margin: 0 0 26px }
body.site .cta-band .actions { justify-content: center; gap: 10px }
body.site .cta-band button { padding: 11px 20px; font-size: 15px }

@media (max-width: 920px) {
  body.site .hx, body.site .sec.split { grid-template-columns: 1fr; gap: 32px }
  body.site .hx { padding-top: 28px }
  body.site .stats { grid-template-columns: repeat(2, 1fr) }
  body.site .feat3, body.site .fit { grid-template-columns: 1fr }
  body.site main.wrap.wide .sec { margin-top: 64px }
  body.site h2.two { font-size: 24px }
}

/* 标题别留孤字（「开一台，用完就让它 / 睡」） */
body.site h1, body.site h2 { text-wrap: balance }
body.site .top nav a { white-space: nowrap }

/* 手机：顶栏导航放不下一行时整体挪到字标下面，不再逐字折行；流程图改成竖排 */
@media (max-width: 520px) {
  body.site .top { flex-wrap: wrap; row-gap: 10px }
  body.site .top nav { width: 100%; justify-content: space-between; gap: 8px }
  body.site .flow { grid-template-columns: 1fr; padding: 20px 18px 18px; row-gap: 0 }
  body.site .flow .node { min-height: 0; padding: 12px }
  body.site .flow .edge { width: 2px; height: 18px; margin: 0 auto;
    background: linear-gradient(180deg, var(--border), var(--brand)) }
  body.site .flow .back { margin-top: 16px }
  body.site .cta-band h2 { font-size: 24px }
}

/* 宽表格（价格页、控制台）：放不下就横向滑动，不再逐字折行、也不裁掉右边几列 */
body.site .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch }
@media (max-width: 720px) {
  body.site .tbl th, body.site .tbl td { white-space: nowrap }
}

/* 控制台机器页顶部的连接卡片（templates/console/ws.html） */
body.site .card.conn { margin-bottom: 16px; border-color: color-mix(in oklab, var(--brand) 30%, var(--border)) }
body.site .card.conn h3 { margin: 0 0 12px; font-size: 15px }
body.site .conn-cmd { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px }
body.site .conn-cmd code, body.site .conn-cmd pre {
  flex: 1; margin: 0; padding: 10px 14px; border-radius: 8px; overflow-x: auto;
  background: #11131a; color: #e8e8f0; font-size: 14px; line-height: 1.55;
}
body.site .conn-cmd button.copy { flex: none; padding: 8px 14px }
body.site .card.conn details.fold { margin: 6px 0 10px }
body.site .card.conn details.fold .conn-cmd { margin: 10px 0 6px }
body.site .conn-cmd code { display: block; white-space: pre }
body.site .card.conn dd code { white-space: nowrap }
/* 重装 / 删除确认：机器名 + 复制按钮 */
body.site .confirm-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 13px }
body.site .confirm-name code { user-select: all; padding: 2px 8px; border-radius: 6px; font-size: 13px }
body.site .confirm-name button.copy { padding: 3px 10px; font-size: 12px }
/* 控制台二级导航：手机上放不下就横向滑动，不逐字竖排 */
body.site .cnav { overflow-x: auto }
body.site .cnav a { white-space: nowrap }
@media (max-width: 520px) {
  body.site .conn-cmd { flex-direction: column; align-items: stretch; gap: 8px }
}

/* 机器配置 × 预装工具 的单选卡片（macros.configurator） */
body.site .cfg-h { font-size: 13px; font-weight: 600; color: var(--ink-1); margin: 16px 0 8px }
body.site .cfg > .cfg-h:first-child { margin-top: 0 }
body.site .pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px }
body.site .pick-opt { margin: 0; position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  padding: 12px 14px 12px 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1) }
body.site .pick-opt input { position: absolute; left: 14px; top: 15px; margin: 0; width: auto; padding: 0; box-shadow: none; accent-color: var(--brand) }
body.site .pick-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft) }
body.site .pick-opt.off { cursor: not-allowed; opacity: .55 }
body.site .pick-t { font-weight: 600; color: var(--ink-1); font-size: 14px }
body.site .pick-d { font-size: 12px; color: var(--ink-muted) }
body.site .pick-p { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums }
body.site .cfg-check { margin: 16px 0 0; display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.6 }
body.site .cfg-check input { flex: none; width: auto; padding: 0; margin: 4px 0 0; accent-color: var(--brand) }
body.site .cfg-total { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; margin-top: 18px;
  padding: 14px 16px; border-radius: 10px; background: var(--plane); border: 1px solid var(--border) }
body.site .cfg-total > div { display: flex; gap: 8px; align-items: baseline }
body.site .cfg-total .note { flex-basis: 100% }
body.site .cfg-big { font-size: 24px; color: var(--brand) }

/* 页脚社交链接（沿用原 apex1.us 的 X / Telegram / 邮箱 / 文档） */
body.site .foot .social { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 14px }
body.site .foot .social a { display: inline-flex; color: var(--ink-muted) }
body.site .foot .social a:hover { color: var(--brand); text-decoration: none }
body.site .foot .social svg { width: 18px; height: 18px; fill: currentColor }
body.site .foot .social svg.line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round }
body.site .foot .social .txt { font-size: 12.5px }
