/* ==========================================================================
   验证码识别控制台 · 页面样式（2026-09-25 按 skill liquid-glass-ios27 重做）
   玻璃材质一律来自 ios27-glass.css 的 .lg27 / .lg27-lens / .lg27-ctl / .lg27-chart-tip，
   这个文件只管：排版、颜色 token、以及「玻璃里面的东西」（不再套 backdrop-filter，skill：绝不玻璃叠玻璃）。
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 🔴 切「识别详情 / 报错详情」时卡片会横跳：滚动条时有时无 ⇒ 宽度变。永久保留滚动条槽位。 */
html { scrollbar-gutter: stable; }

:root {
  --ink: 22 35 59;            /* #16233b */
  --ink-dim: 91 103 128;      /* #5b6780 */
  --accent: 99 102 241;       /* #6366f1 靛紫：请求量（卡片 / 折线 / 柱子 / 气泡色点同一个色） */
  --success: 16 185 129;      /* #10b981 */
  --warn: 249 115 22;         /* #f97316 */
  --danger: 225 29 72;        /* #e11d48 */
  --r-card: 24px;
  --r-ctl: 12px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: rgb(var(--ink));
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: rgb(var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: rgb(var(--ink-dim)); font-size: 13px; }
.mt0 { margin-top: 0; }

/* ---------- 左侧悬浮导航（skill 规矩 2：常驻导航 = Dock 式脱边悬浮玻璃） ---------- */
.navdock {
  position: fixed;
  left: 16px; top: 16px; bottom: 16px;
  z-index: 100;
  width: max-content;
  display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
}
.navdock > * { pointer-events: auto; }
.brand-pill { border-radius: 20px; padding: 12px 14px; text-align: center; }
.brand-pill .brand { font-size: 13px; font-weight: 700; line-height: 1.45; display: block; }
.brand-pill .brand span { color: rgb(var(--accent)); display: block; }
.navpill { border-radius: 22px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.out-pill { margin-top: auto; border-radius: 20px; padding: 6px; display: flex; }
.out-pill .seg-item { width: 100%; }

/* ---------- 分段按钮 / 导航项：选中 = 透镜胶囊（.58 + 蓝字 600，四边亮斜面） ----------
   放在玻璃里面的选中项不再加 backdrop-filter，只画透镜的填充、内光和斜面。 */
.seg-item {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgb(var(--ink));
  text-align: center;
  white-space: nowrap;
  font-size: 13.5px;
  transition: background .15s;
}
.seg-item:hover { text-decoration: none; background: rgba(255, 255, 255, .30); }
.seg-item.is-active {
  background: rgba(255, 255, 255, .58);
  color: rgb(var(--accent));
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .95),
    inset 0 0 14px 0 rgba(255, 255, 255, .45),
    0 2px 6px -2px rgba(20, 30, 60, .14);
}
.seg-item.is-active::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.50) 18%,
    rgba(255,255,255,.55) 45%, rgba(255,255,255,.55) 88%, rgba(255,255,255,.78) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
/* 横排分段条：压在页面底上时加 .lg27（玻璃），放在卡片里时只是一道浅凹槽 */
.segbar { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; }
.segbar:not(.lg27) {
  background: rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 2px rgba(20, 30, 60, .08), inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.tabs { margin-bottom: 16px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1500px; margin: 0 auto; padding: 24px 24px 60px 156px; }
.page-title { font-size: 21px; font-weight: 700; margin: 0 0 16px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .page-title { margin: 0; }
.range-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card { border-radius: var(--r-card); padding: 20px 22px; margin-bottom: 18px; }
.card h2 { font-size: 15px; margin: 0 0 14px; font-weight: 700; }
.h2-sub { color: rgb(var(--ink-dim)); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* ---------- 统计卡（卡片颜色 = 对应指标颜色，skill 规矩 7） ---------- */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { border-radius: 20px; padding: 14px 22px; min-width: 132px; flex: 1; }
.stat .n { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat .t { color: rgb(var(--ink-dim)); font-size: 13px; margin-top: 2px; }
.stat.blue .n { color: rgb(var(--accent)); }
.stat.green .n { color: rgb(var(--success)); }
.stat.red .n { color: rgb(var(--danger)); }
.stat.orange .n { color: rgb(var(--warn)); }

/* ---------- 按钮（外观 = .lg27 .lg27-ctl，这里只管尺寸和字色） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600;
  color: rgb(var(--ink));
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
a.btn:hover { text-decoration: none; }
.btn--brand { color: rgb(var(--accent)); }
.btn--danger { color: rgb(var(--danger)); }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
/* 两段式删除「再点一次确认」：红色染在玻璃上，不做实心红块 */
.btn.armed {
  background: rgb(var(--danger) / .18) !important;
  color: rgb(var(--danger));
  animation: armpulse 1s ease-in-out infinite;
}
@keyframes armpulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }

/* ---------- 输入框（在卡片里面，不加 backdrop-filter；填充 .24，聚焦 .38） ---------- */
.lg-label { display: block; margin-bottom: 6px; color: rgb(var(--ink-dim)); font-size: 13px; }
.lg-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 13px;
  border: none;
  border-radius: var(--r-ctl);
  background: rgba(255, 255, 255, .24);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .90),
    inset 0 0 0 1px rgba(255, 255, 255, .55),
    0 1px 3px -1px rgba(20, 30, 60, .10);
  color: rgb(var(--ink));
  font: inherit; font-size: 14px;
  outline: none;
  transition: background .15s, box-shadow .15s;
}
.lg-input:hover { background: rgba(255, 255, 255, .32); }
.lg-input:focus, .lg-input.is-open {
  background: rgba(255, 255, 255, .38);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .70),
    0 0 0 3px rgb(var(--accent) / .18);
}
.lg-input::placeholder { color: rgb(var(--ink-dim) / .75); }
.lg-input[type=number] { max-width: 220px; }
table .lg-input { padding: 7px 12px; font-size: 13px; }

/* ---------- 徽标 ---------- */
.lg-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: rgba(255, 255, 255, .45);
  color: rgb(var(--ink-dim));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 0 0 1px rgba(255, 255, 255, .5);
  white-space: nowrap;
}
.lg-badge--success { background: rgb(var(--success) / .15); color: #0b7a55; }
.lg-badge--warn    { background: rgb(var(--warn) / .16);    color: #b45309; }
.lg-badge--danger  { background: rgb(var(--danger) / .14);  color: #be123c; }

/* ---------- 提示条 / 成段内容：卡片里的亮底块，不是玻璃 ---------- */
.notice {
  border-radius: 14px;
  padding: 11px 15px;
  margin-bottom: 16px;
  font-size: 13px;
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.notice.green { color: #0b7a55; }
.notice.red { color: #be123c; }
/* 压在页面底上（不在卡片里）的提示条本身就是一块玻璃 */
.notice.lg27 { background: rgba(255, 255, 255, .38); }

/* ---------- 表格：外壳是卡片里的浅凹槽，行不套玻璃 ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
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(--ink-dim)); white-space: nowrap; box-shadow: inset 0 -1px 0 0 rgba(20, 40, 70, .10); }
td { box-shadow: inset 0 -1px 0 0 rgba(20, 40, 70, .06); }
tbody tr:last-child td { box-shadow: none; }
tbody tr:hover td { background-color: rgba(255, 255, 255, .30); }
tbody tr:has(.ck-row:checked) td { background-color: rgb(var(--accent) / .10); }
tr.dim td { color: rgb(var(--ink-dim)); opacity: .65; }
td.mono, .mono { font-family: Consolas, "Courier New", monospace; }
td.center, th.center { text-align: center; }
.cap-img { background: #fff; border-radius: 8px; max-height: 46px; max-width: 220px; display: block; margin: 0 auto; }
.res { font-family: Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.empty { text-align: center; color: rgb(var(--ink-dim)); padding: 46px 0; }

/* ---------- 表单排版 ---------- */
.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; }
.grid2 .muted { margin-top: 6px; }
.ck { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; user-select: none; }
table input[type="checkbox"], .ck input[type="checkbox"] { width: 15px; height: 15px; accent-color: rgb(var(--accent)); margin: 0; cursor: pointer; }

/* ---------- 登录页 ---------- */
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { border-radius: 28px; padding: 38px 36px 32px; width: 100%; max-width: 372px; }
.login-box h1 { font-size: 20px; margin: 0 0 26px; text-align: center; }
.login-box .field { margin-bottom: 16px; }
.login-box .btn { width: 100%; margin-top: 6px; }

/* ---------- 代码块：浅色内容块（页面上不出现深灰/黑色大块） ---------- */
pre.code {
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .6);
  color: #1e293b;
  padding: 14px 16px;
  border-radius: 14px;
  overflow-x: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
  text-shadow: none;
}
code.inline {
  background: rgb(var(--accent) / .10);
  color: #4338ca;
  padding: 1px 7px;
  border-radius: 6px;
  font-family: Consolas, monospace;
  font-size: 13px;
}

/* ---------- 在线测试：拖拽上传 ---------- */
.drop {
  border: 2px dashed rgb(var(--accent) / .35);
  border-radius: 18px;
  padding: 44px 20px;
  text-align: center;
  color: rgb(var(--ink-dim));
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: background .15s;
}
.drop:hover { background: rgba(255, 255, 255, .34); }
.drop.over { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .10); color: rgb(var(--accent)); }
.try-result { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.try-result img { border-radius: 10px; background: #fff; max-height: 90px; box-shadow: 0 10px 24px -12px rgba(20, 30, 60, .3); }
.try-result .big { font-size: 32px; font-weight: 700; font-family: Consolas, monospace; letter-spacing: 3px; color: #0b7a55; }
/* 批量测试结果里的小统计块（在卡片里，不是玻璃） */
.card .stat:not(.lg27) {
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .55);
  border-radius: 16px;
}

/* ---------- 仪表盘 · 用量趋势（纯 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(--ink-dim)); }
.trend-yaxis .ytick { position: absolute; right: 8px; transform: translateY(-50%); white-space: nowrap; }
.trend-plot { position: relative; flex: 1; min-width: 0; }
/* 2026-09-25 用户嫌「看起来比较硬」：平滑曲线 + 渐变面积 + 虚线网格 + 小而轻的点 */
.trend-plot .gridline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(20, 40, 70, .10); }
.trend-plot .gridline.base { border-top: 1px solid rgba(20, 40, 70, .14); }
.trend-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.trend-stop-top { stop-color: rgb(var(--accent)); stop-opacity: .30; }
.trend-stop-bottom { stop-color: rgb(var(--accent)); stop-opacity: 0; }
.trend-line {
  fill: none;
  stroke: rgb(var(--accent));
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgb(var(--accent) / .25));
}
.trend-plot .dot {
  position: absolute;
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgb(var(--accent));
  box-shadow: 0 0 0 3px rgb(var(--accent) / .12);
  cursor: default;
  transition: transform .15s, box-shadow .15s;
}
.trend-plot .dot.zero { border-color: rgb(var(--accent) / .35); box-shadow: none; width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.trend-plot .dot.peak { border-color: rgb(var(--warn)); background: rgb(var(--warn)); box-shadow: 0 0 0 4px rgb(var(--warn) / .18); }
.trend-plot .dot:hover { transform: scale(1.35); box-shadow: 0 0 0 5px rgb(var(--accent) / .16); }
.trend-plot .dot-val { position: absolute; bottom: 11px; left: 50%; transform: translateX(-50%); font-size: 11px; color: rgb(var(--ink-dim)); white-space: nowrap; }
.trend-plot .dot.peak .dot-val { color: #b45309; font-weight: 700; }
.trend-xaxis { position: relative; height: 20px; margin-left: 46px; font-size: 11px; color: rgb(var(--ink-dim)); }
.trend-xaxis .xlab { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }

/* ---------- 仪表盘 · 时段分布柱状图 ---------- */
/* 2026-09-25 同上改柔：去掉整排灰底槽，柱子收窄 + 圆头 + 上深下浅渐变 */
.chart-hourly {
  display: flex; align-items: flex-end; gap: 4px;
  height: 190px;
  padding: 18px 4px 0;
  border-bottom: 1px solid rgba(20, 40, 70, .10);
  overflow-x: auto;
}
.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(--ink-dim)); height: 15px; line-height: 15px; }
.bar-track { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill {
  width: 58%;
  max-width: 34px;
  min-height: 0;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgb(var(--accent) / .85) 0%, rgb(var(--accent) / .40) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: filter .15s, transform .15s;
}
.bar-fill.peak { background: linear-gradient(180deg, rgb(var(--warn) / .92) 0%, rgb(var(--warn) / .45) 100%); }
.bar-col:hover .bar-fill { filter: brightness(1.08) saturate(1.1); }
.bar-col:hover .bar-val { color: rgb(var(--ink)); font-weight: 600; }
.bar-x { font-size: 11px; color: rgb(var(--ink-dim)); padding-top: 5px; white-space: nowrap; }
.peak-note {
  margin-top: 14px;
  background-color: rgba(255, 255, 255, .5);
  background-image: radial-gradient(120% 160% at 20% 0%, rgba(249, 115, 22, .20), transparent 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .6);
  color: #b45309;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
}
.mini-track { background: rgba(20, 40, 70, .08); border-radius: 4px; height: 10px; width: 100%; }
.mini-fill { background: rgb(var(--accent)); border-radius: 4px; height: 10px; min-width: 1px; }

/* ---------- 悬停气泡（材质 = .lg27-chart-tip，这里只管定位和行排版） ---------- */
.gtip { position: fixed !important; z-index: 1000; pointer-events: none; white-space: nowrap; }

/* ---------- 时间选择器 / 下拉（弹出层 = .lg27 玻璃，skill 规矩 6） ---------- */
.dp-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit; font-size: 13.5px;
  color: rgb(var(--ink));
  cursor: pointer;
  white-space: nowrap;
}
.dp-trigger.is-empty span:last-child { color: rgb(var(--ink-dim)); }
.dp-trigger.is-custom { color: rgb(var(--accent)); font-weight: 600; }
.dp-ico {
  width: 14px; height: 14px; flex: none;
  border: 1.6px solid currentColor; border-radius: 3px;
  position: relative; opacity: .7;
}
.dp-ico::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1.6px solid currentColor; }
.dp-pop, .gs-pop { position: absolute; z-index: 1000; border-radius: 20px; }
.dp-pop { padding: 12px 12px 10px; width: 272px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-weight: 700; font-size: 14px; }
.dp-nav {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .24); color: rgb(var(--ink));
  font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.dp-nav:hover { background: rgba(255, 255, 255, .45); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-w { text-align: center; font-size: 12px; color: rgb(var(--ink-dim)); padding: 4px 0; }
.dp-day {
  position: relative;
  height: 32px; border: none; border-radius: 999px;
  background: transparent; color: rgb(var(--ink));
  font: inherit; font-size: 13px; cursor: pointer;
}
.dp-day:hover { background: rgba(255, 255, 255, .40); }
.dp-day:disabled { color: rgb(var(--ink-dim) / .4); cursor: default; background: transparent; }
.dp-day.is-today { color: rgb(var(--accent)); font-weight: 700; }
.dp-day.in-range { background: rgb(var(--accent) / .12); border-radius: 8px; }
.dp-day.is-sel {
  background: rgba(255, 255, 255, .62);
  color: rgb(var(--accent));
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 10px rgba(255, 255, 255, .5),
              inset 0 0 0 1.2px rgb(var(--accent) / .45), 0 2px 6px -2px rgba(20, 30, 60, .18);
}
.dp-foot { display: flex; align-items: center; justify-content: space-between; min-height: 26px; margin-top: 8px; font-size: 12px; color: rgb(var(--ink-dim)); }
.dp-link { border: none; background: none; color: rgb(var(--accent)); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; }

.gs { position: relative; }
.gs-native { display: none !important; }
.gs-btn { text-align: left; cursor: pointer; padding-right: 32px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-btn::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.6px solid rgb(var(--ink-dim)); border-bottom: 1.6px solid rgb(var(--ink-dim));
  transform: rotate(45deg);
}
.gs-pop { padding: 6px; max-height: 320px; overflow-y: auto; }
.gs-opt { padding: 8px 12px; border-radius: 12px; cursor: pointer; font-size: 13.5px; white-space: nowrap; position: relative; }
.gs-opt:hover { background: rgba(255, 255, 255, .40); }
.gs-opt.is-sel { background: rgba(255, 255, 255, .62); color: rgb(var(--accent)); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 10px rgba(255, 255, 255, .45); }

/* ---------- 窄屏：导航改成顶部横排悬浮条 ---------- */
@media (max-width: 760px) {
  .navdock { position: sticky; top: 8px; left: auto; bottom: auto; margin: 8px 16px 0; width: auto; flex-direction: row; flex-wrap: wrap; }
  .brand-pill { display: none; }
  .navpill { flex-direction: row; overflow-x: auto; flex: 1; }
  .out-pill { margin-top: 0; }
  .wrap { padding: 16px 16px 48px; }
}
