/* ==========================================================================
   验证码识别控制台 · 页面样式
   2026-09-06 全站改液态玻璃：外观（填充/边缘/内光/投影）一律由 liquid-glass.css
   的 .lg 系列负责，这个文件只留**排版**（尺寸、间距、栅格）和**颜色 token 映射**。
   🔴 本文件里不许出现 backdrop-filter，也不许自己画玻璃边。
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 🔴 切「识别详情 / 报错详情」时整块卡片会横向跳一下：
   两个 tab 内容长短不同 ⇒ 滚动条一会儿有一会儿没有 ⇒ 页面宽度变化。
   永久保留滚动条槽位，切换就不再位移。 */
html { scrollbar-gutter: stable; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: rgb(var(--lg-ink));
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: rgb(var(--lg-accent)); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   配色 = 猎鹰控制台「数据仪表盘」那套（色值取自
   `猎鹰控制台\srciewsdstats\dashboard\index.vue`）：
     页面底 #f2f5fa→#eef1f6，卡片白，品牌色 靛紫#6366f1 天蓝#0ea5e9 翠绿#10b981 橙#f97316

   🔴 但它原本是**纯色平铺**的浅灰，而 skill 第 3 条硬性约束写明
      「纯色平铺底上做玻璃是白费力气，没有东西可透」。
      所以这里保留它的色相族，把品牌色做成柔光晕铺在同一个底上 ——
      颜色是猎鹰控制台的，背景又有明暗层次，玻璃才立得住。
   ========================================================================== */
:root {
  --lg-accent: 99 102 241;    /* #6366f1 靛紫，仪表盘主色 */
  --lg-success: 16 185 129;   /* #10b981 */
  --lg-warn: 249 115 22;      /* #f97316 */
  --lg-danger: 225 29 72;     /* #e11d48 */

  /* 🔥 用户要求「液态玻璃 iOS 27 风格必须拉满」：通透度拉到 .88，
     填充几乎消失，形状完全靠边缘撑 —— 这正是 skill 自检第一条要测的。
     代价是卡片变透，所以成段文字/表格一律放进 .lg-content 实底容器
     （skill 第 8 条：正文不压在强模糊玻璃上）。 */
  --lg-clarity: .88;
  --lg-rim-w: 2px;
  --lg-rim-hi: rgb(255 255 255 / 1);
  --lg-rim-mid: rgb(30 45 80 / 0.12);
  --lg-rim-lo: rgb(255 255 255 / 0.85);
  --lg-inner-top: rgb(255 255 255 / 0.85);
  --lg-inner-glow: rgb(255 255 255 / 0.45);
  --lg-sheen: rgb(255 255 255 / 0.42);
  --lg-sat: 190%;
  --lg-shadow: 0 12px 34px -12px rgb(30 45 80 / 0.22), 0 2px 6px -2px rgb(30 45 80 / 0.10);
  --lg-shadow-lg: 0 26px 60px -18px rgb(30 45 80 / 0.34), 0 8px 20px -8px rgb(30 45 80 / 0.18);
}

:root .lg-bg, :root[data-lg-theme="light"] .lg-bg {
  background:
    radial-gradient(56% 44% at 12% 0%,   rgb(99 102 241 / .13), transparent 66%),
    radial-gradient(50% 40% at 90% 6%,   rgb(14 165 233 / .11), transparent 64%),
    radial-gradient(58% 48% at 80% 98%,  rgb(16 185 129 / .10), transparent 64%),
    linear-gradient(180deg, #f2f5fa 0%, #eef1f6 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---------- 左侧悬浮导航（玻璃由 .lg 系列提供，这里只排版） ----------
   三块独立的玻璃竖排浮在**左侧**：上品牌、中导航、下退出。
   🔴 skill 第 5 条：backdrop-filter 会创建新的层叠上下文，
      所以这层 fixed 容器必须直接挂在 body 下，不能塞进任何玻璃元素里面。 */
.navdock {
  position: fixed;
  left: 12px;
  top: 14px;
  bottom: 14px;
  z-index: 100;
  width: max-content;            /* 跟着最长的那几个字走，不占多余空间 */
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  pointer-events: none;          /* 空白处不挡下面的内容 */
}
.navdock > * { pointer-events: auto; }
/* 品牌名最长，让它折成两行，整条导航就能收窄到「四个字」的宽度 */
.brand-pill {
  padding: 10px 12px;
  justify-content: center;
  text-align: center;
  border-radius: var(--lg-r-md);
}
.brand-pill .brand {
  font-size: 13px;
  font-weight: 700;
  white-space: normal;      /* 允许折行，整条侧栏才收得窄 */
  line-height: 1.45;
  text-shadow: var(--lg-text-shadow);
}
.brand-pill .brand span { color: rgb(var(--lg-accent)); }
.navpill {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  border-radius: var(--lg-r-md);
  padding: 6px;
}
.navpill .lg-seg { padding: 9px 12px; justify-items: stretch; text-align: center; white-space: nowrap; }
.out-pill { margin-top: auto; justify-content: center; border-radius: var(--lg-r-md); padding: 6px; }
.out-pill .lg-seg { padding: 9px 12px; width: 100%; white-space: nowrap; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1500px; margin: 0 auto; padding: 24px 24px 60px 148px; }  /* 左边留出悬浮导航的位置 */
.page-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; text-shadow: var(--lg-text-shadow); }
.card { padding: 18px 20px; margin-bottom: 18px; }
.card h2 { font-size: 15px; margin: 0 0 14px; font-weight: 700; text-shadow: var(--lg-text-shadow); }
.muted { color: rgb(var(--lg-ink-dim)); font-size: 13px; }
.mt0 { margin-top: 0; }

/* ---------- 统计条 ---------- */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { padding: 14px 22px; min-width: 132px; flex: 1; }
.stat .n { font-size: 24px; font-weight: 700; line-height: 1.2; text-shadow: var(--lg-text-shadow); }
.stat .t { color: rgb(var(--lg-ink-dim)); font-size: 13px; margin-top: 2px; }
.stat.blue .n { color: rgb(var(--lg-accent)); }
.stat.green .n { color: rgb(var(--lg-success)); }
.stat.red .n { color: rgb(var(--lg-danger)); }
.stat.orange .n { color: rgb(var(--lg-warn)); }

/* ---------- tab（用玻璃分段控件，这里只管间距） ---------- */
.tabs { display: inline-flex; margin-bottom: 16px; }

/* ---------- 表格（外壳给 .lg .lg-table-wrap，行不套玻璃：第 9 条硬性约束） ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: middle; }
th {
  font-weight: 600;
  color: rgb(var(--lg-ink-dim));
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 0 rgb(20 40 70 / .12);
}
td { box-shadow: inset 0 -1px 0 0 rgb(20 40 70 / .07); }
tbody tr:last-child td { box-shadow: none; }
tbody tr:hover td { background-color: rgb(255 255 255 / .28); }
td.mono, .mono { font-family: Consolas, "Courier New", monospace; }
td.center, th.center { text-align: center; }
.cap-img {
  background: #fff;
  border-radius: 6px;
  max-height: 46px;
  max-width: 220px;
  display: block;
}
.res { font-family: Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.empty { text-align: center; color: rgb(var(--lg-ink-dim)); padding: 46px 0; }

/* ---------- 表单（外观走 .lg-input / .lg-label，这里只管排版） ---------- */
label.f { display: block; margin-bottom: 5px; color: rgb(var(--lg-ink-dim)); font-size: 13px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.form-row > div { flex: 1; min-width: 150px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

/* ---------- 只补 skill 没有的「尺寸」，不碰外观 ---------- */
.lg-btn.sm { padding: 6px 14px; font-size: 13px; }
.lg-btn[disabled] { opacity: .35; pointer-events: none; }
.form-row .lg-input { min-width: 0; }
.lg-input[type=number] { max-width: 220px; }
table .lg-input { padding: 7px 12px; font-size: 13px; }

/* 提示条：用 skill 的 .lg-content 实底容器承载（第 8 条：正文不压在强模糊玻璃上），
   这里只给间距和语义色 */
.notice { border-radius: var(--lg-r-sm); padding: 11px 15px; margin-bottom: 16px; font-size: 13px; }
.notice.green { color: #12833f; }
.notice.red { color: #b91c1c; }

/* ---------- 登录页 ----------
   背景和配色都由 skill 的 .lg-bg 默认值提供，卡片外观交给 .lg，
   这里只留「居中 + 尺寸 + 间距」这些排版，一行玻璃样式都不写。 */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  padding: 38px 36px 32px;
  width: 100%;
  max-width: 372px;
}
.login-box h1 {
  font-size: 20px;
  margin: 0 0 26px;
  text-align: center;
  color: rgb(var(--lg-ink));
  text-shadow: var(--lg-text-shadow);
}
.login-box .field { margin-bottom: 16px; }
.login-box .lg-btn { width: 100%; margin-top: 6px; }

/* ---------- 代码块 ---------- */
pre.code {
  background: #1e2a3a;
  color: #d8e2ef;
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
}
pre.code .k { color: #7fb2ff; }
code.inline {
  background: #eef1f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 13px;
}

/* ---------- 拖拽上传 ---------- */
.drop {
  border: 2px dashed rgb(20 40 70 / .22);
  border-radius: var(--lg-r-md);
  padding: 44px 20px;
  text-align: center;
  color: rgb(var(--lg-ink-dim));
  background-color: rgb(255 255 255 / .35);
  cursor: pointer;
}
.drop.over {
  border-color: rgb(var(--lg-accent));
  background-color: rgb(var(--lg-accent) / .10);
  color: rgb(var(--lg-accent));
}
.try-result { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.try-result img { border-radius: 8px; background: #fff; max-height: 90px; box-shadow: var(--lg-shadow); }
.try-result .big { font-size: 32px; font-weight: 700; font-family: Consolas, monospace; letter-spacing: 3px; color: #12833f; }

/* ---------- 打码记录 · 多选删除 ---------- */
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgb(var(--lg-ink)); cursor: pointer; user-select: none; }
.ck input[type="checkbox"] { cursor: pointer; }
table input[type="checkbox"], .ck input[type="checkbox"] { width: 15px; height: 15px; accent-color: rgb(var(--lg-accent)); margin: 0; }
.btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.btn.armed { background-color: rgb(var(--lg-danger)); color: #fff; animation: armpulse 1s ease-in-out infinite; }
.btn.gray.armed { background-color: rgb(var(--lg-danger)); color: #fff; box-shadow: none; }
@keyframes armpulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
tbody tr:has(.ck-row:checked) td { background-color: rgb(var(--lg-accent) / .12); }

/* ---------- 仪表盘图表（2026-09-06） ---------- */
/* 纯 CSS 柱状图：这是内网自用后台，不引任何图表库，也不发外部请求 */
.chart-daily, .chart-hourly {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 190px;
  padding: 18px 4px 0;
  border-bottom: 1px solid #e5e9f0;
  overflow-x: auto;
}
.chart-hourly { gap: 3px; }
.chart-daily .bar-col, .chart-hourly .bar-col {
  flex: 1 1 0;
  min-width: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: center;
  cursor: default;
}
.bar-val { font-size: 11px; color: rgb(var(--lg-ink-dim)); height: 15px; line-height: 15px; }
.bar-track {
  flex: 1;
  display: flex;
  align-items: flex-end;
  background: rgb(20 40 70 / .06);
  border-radius: 3px 3px 0 0;
}
.bar-fill {
  width: 100%;
  min-height: 2px;
  background: rgb(var(--lg-accent));
  border-radius: 3px 3px 0 0;
  transition: background .15s;
}
.bar-fill.hour { background: rgb(var(--lg-accent) / .8); }
.bar-fill.peak { background: rgb(var(--lg-warn)); }
.bar-col:hover .bar-fill { background: rgb(var(--lg-accent) / .6); }
.bar-x { font-size: 11px; color: rgb(var(--lg-ink-dim)); padding-top: 5px; white-space: nowrap; }
.bar-x2 { font-size: 11px; color: rgb(var(--lg-ink-dim)); opacity: .7; }
.peak-note {
  margin-top: 14px;
  background-color: rgb(255 255 255 / .5);
  background-image: radial-gradient(120% 160% at 20% 0%, rgb(255 159 10 / .26), transparent 72%);
  box-shadow: inset 0 0 0 1px rgb(20 40 70 / .10);
  color: #a35a06;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}
.mini-track { background: rgb(20 40 70 / .10); border-radius: 4px; height: 10px; width: 100%; }
.mini-fill { background: rgb(var(--lg-accent)); border-radius: 4px; height: 10px; min-width: 1px; }
tr.dim td { color: rgb(var(--lg-ink-dim)); opacity: .65; }
/* 仪表盘顶部：标题 + 时间范围分段控件 */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.h2-sub { color: rgb(var(--lg-ink-dim)); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* ---------- 仪表盘 · 用量趋势图（2026-09-06） ---------- */
/* 折线 + 面积，纯 inline SVG，不引图表库 */
.trend { display: flex; height: 250px; padding-top: 10px; }
.trend-yaxis {
  position: relative;
  width: 46px;
  flex: 0 0 46px;
  font-size: 11px;
  color: rgb(var(--lg-ink-dim));
}
.trend-yaxis .ytick {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  white-space: nowrap;
}
.trend-plot { position: relative; flex: 1; min-width: 0; }
.trend-plot .gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgb(20 40 70 / .08);
}
.trend-plot .gridline.base { background: rgb(20 40 70 / .18); }
.trend-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trend-plot .dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgb(var(--lg-accent));
  cursor: default;
  transition: transform .12s;
}
.trend-plot .dot.zero { border-color: rgb(20 40 70 / .25); width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.trend-plot .dot.peak { border-color: rgb(var(--lg-warn)); background: rgb(var(--lg-warn)); }
.trend-plot .dot:hover { transform: scale(1.45); }
.trend-plot .dot-val {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgb(var(--lg-ink));
  white-space: nowrap;
}
.trend-plot .dot.peak .dot-val { color: #a35a06; font-weight: 700; }
.trend-xaxis {
  position: relative;
  height: 20px;
  margin-left: 46px;
  font-size: 11px;
  color: rgb(var(--lg-ink-dim));
}
.trend-xaxis .xlab {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  white-space: nowrap;
}
