/* ============================================
   XiaoLing 授权中台 · 管理端
   iOS 液态玻璃（Liquid Glass）设计语言
   禁：卡通图案 / AI 渐变 / 霓虹发光
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #e9ecf5; color: #1c1c1e;
  -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 14px;
  overflow-x: hidden;
}

/* ---------- 液态玻璃背景：柔光 + 磨砂噪点 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(160,200,255,.50), transparent 60%),
    radial-gradient(1000px 700px at 105% 15%, rgba(200,190,255,.40), transparent 55%),
    radial-gradient(900px 900px at 50% 115%, rgba(190,235,215,.45), transparent 60%),
    radial-gradient(700px 500px at 90% 75%, rgba(255,215,190,.35), transparent 55%),
    #e9ecf5; }
.bg::after { content:""; position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.5; mix-blend-mode:multiply; }
.bg .orb { position:absolute; border-radius:50%; filter: blur(90px); opacity:.32; }
.bg .o1 { width:520px; height:520px; background:#bcd7ff; top:-160px; left:-140px; }
.bg .o2 { width:460px; height:460px; background:#cfd0ff; bottom:-180px; right:-100px; }
.bg .o3 { width:420px; height:420px; background:#c9eeda; top:38%; left:60%; opacity:.26; }

/* ---------- 玻璃组件 ---------- */
.glass {
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(60,60,90,.08), 0 2px 6px rgba(60,60,90,.04), inset 0 1px 1px rgba(255,255,255,.9);
  position: relative;
}
.glass::before { content:""; position:absolute; inset:0 0 auto 0; height:50%; border-radius:20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.50), transparent); pointer-events:none; }

/* ---------- 工具类 ---------- */
.hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }

/* ---------- 按钮（单色语义，无渐变） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .18s; user-select: none;
  font-family: inherit; background: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.85);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.85), 0 2px 8px rgba(60,60,90,.05);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: #0A84FF; color: #fff; border-color: rgba(10,132,255,.4);
  box-shadow: 0 4px 14px rgba(10,132,255,.25), inset 0 1px 1px rgba(255,255,255,.25); }
.btn-primary:hover { background: #2E96FF; }
.btn-danger { background: #FF3B30; color: #fff; border-color: rgba(255,59,48,.4);
  box-shadow: 0 4px 14px rgba(255,59,48,.22), inset 0 1px 1px rgba(255,255,255,.25); }
.btn-danger:hover { background: #FF5A4F; }
.btn-ghost { background: rgba(255,255,255,.55); color: #0A66C2; border-color: rgba(10,132,255,.30); }
.btn-ghost:hover { background: rgba(255,255,255,.8); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: #6e6e73; margin-bottom: 6px; letter-spacing: .4px; }


/* ---------- 登录页 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 420px; padding: 34px 34px 30px; border-radius: 28px; }
.brand-lg { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.logo-lg { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.45));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgba(10,132,255,.22), inset 0 1px 1px rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  color: #0A84FF; font-weight: 800; font-size: 18px; }
.brand-lg .n { font-weight: 700; font-size: 16px; }
.brand-lg .s { font-size: 11px; color: #8e8e93; letter-spacing: .8px; text-transform: uppercase; }
.steps { display: flex; align-items: center; margin-bottom: 26px; }
.step { font-size: 11.5px; font-weight: 700; color: #8e8e93; padding: 5px 10px; border-radius: 999px; background: rgba(120,120,128,.10); white-space: nowrap; }
.step.on { color: #fff; background: #0A84FF; box-shadow: 0 3px 10px rgba(10,132,255,.28); }
.step.done { color: #248A3D; background: rgba(52,199,89,.16); }
.steps .line { flex: 1; height: 1px; background: rgba(60,60,67,.15); margin: 0 6px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img { width: 128px; height: 46px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 1px rgba(255,255,255,.8); }
.hint { font-size: 13px; color: #6e6e73; margin-bottom: 14px; }
.done-ic { width: 56px; height: 56px; border-radius: 50%; margin: 8px auto 14px;
  background: rgba(52,199,89,.16); color: #248A3D; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.alert-line { padding: 10px 14px; border-radius: 11px; font-size: 12.5px; margin-bottom: 12px; color: #D70015; background: rgba(255,59,48,.10); }
.alert-line.warn { color: #B26A00; background: rgba(255,149,0,.12); }

/* ---------- 管理端框架 ---------- */
.app { display: flex; width: 100%; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  padding: 18px 12px; overflow-y: auto;
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-right: 1px solid rgba(255,255,255,.7);
  box-shadow: 8px 0 30px rgba(60,60,90,.06); z-index: 10; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(10,132,255,.3); border-radius: 3px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 16px; border-bottom: 1px solid rgba(60,60,67,.12); margin-bottom: 10px; }
.logo { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.45));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 20px rgba(10,132,255,.22), inset 0 1px 1px rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  color: #0A84FF; font-weight: 800; font-size: 15px; }
.brand .n { font-weight: 700; font-size: 14px; }
.brand .s { font-size: 10px; color: #8e8e93; letter-spacing: .8px; text-transform: uppercase; }
.nav-group { font-size: 10px; font-weight: 700; color: #8e8e93; letter-spacing: 1.2px; text-transform: uppercase; padding: 12px 10px 5px; }
.nav a { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 11px;
  color: #48484a; text-decoration: none; font-size: 13px; font-weight: 500; margin: 1.5px 0; transition: all .18s; }
.nav a .ic { width: 18px; text-align: center; font-size: 13px; color: #8e8e93; }
.nav a:hover { background: rgba(255,255,255,.55); color: #0A84FF; }
.nav a.on { background: rgba(255,255,255,.72); color: #0A84FF; font-weight: 600;
  box-shadow: 0 4px 14px rgba(10,132,255,.14), inset 0 1px 1px rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.85); }
.nav a.on .ic { color: #0A84FF; }

.main { flex: 1 1 auto; min-width: 0; padding: 20px 28px 70px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; margin-bottom: 18px; border-radius: 16px; }
.crumb { font-size: 13px; color: #6e6e73; font-weight: 500; }
.top-right { display: flex; align-items: center; gap: 12px; }
.who { font-size: 13px; font-weight: 600; }
.health-dot { width: 10px; height: 10px; border-radius: 50%; background: #8e8e93; box-shadow: 0 0 0 3px rgba(120,120,128,.15); }
.health-dot.ok { background: #34C759; box-shadow: 0 0 0 3px rgba(52,199,89,.18); }
.health-dot.warn { background: #FF9500; box-shadow: 0 0 0 3px rgba(255,149,0,.18); }
.health-dot.err { background: #FF3B30; box-shadow: 0 0 0 3px rgba(255,59,48,.18); }

/* ---------- 页面通用 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.page-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.page-head .sub { font-size: 12.5px; color: #8e8e93; margin-top: 2px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; }

/* KPI 卡片 */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 16px 18px; border-radius: 18px; }
.kpi .n { font-size: 11px; color: #8e8e93; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.kpi .v { font-size: 25px; font-weight: 800; margin-top: 3px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 11px; color: #8e8e93; margin-top: 2px; }
.kpi.b .v { color: #0A66C2; } .kpi.g .v { color: #248A3D; } .kpi.o .v { color: #B26A00; } .kpi.p .v { color: #9B34D2; } .kpi.r .v { color: #D70015; }

/* 数据卡片 */
.card { padding: 20px 22px; margin-bottom: 16px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.card h3 .dot { width: 7px; height: 7px; border-radius: 50%; background: #0A84FF; box-shadow: 0 0 0 3px rgba(10,132,255,.14); }

/* 表格 */
.tw { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(60,60,67,.10); vertical-align: middle; white-space: nowrap; }
th { background: rgba(10,132,255,.06); color: #3a3a3c; font-weight: 700; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; }
tr:hover td { background: rgba(10,132,255,.03); }
td.mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 标签 */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.pill.b { background: rgba(10,132,255,.12); color: #0A66C2; }
.pill.g { background: rgba(52,199,89,.14); color: #248A3D; }
.pill.o { background: rgba(255,149,0,.14); color: #B26A00; }
.pill.r { background: rgba(255,59,48,.12); color: #D70015; }
.pill.p { background: rgba(175,82,222,.12); color: #9B34D2; }
.pill.s { background: rgba(120,120,128,.14); color: #5a5a5e; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: #6e6e73; }
.pager button { padding: 5px 12px; }
.pager .info { margin-right: auto; }

/* 状态点 */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.ok { background: #34C759; } .dot.off { background: #aeaeb2; } .dot.warn { background: #FF9500; } .dot.err { background: #FF3B30; }

/* 骨架屏 */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, rgba(120,120,128,.08), rgba(120,120,128,.16), rgba(120,120,128,.08)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 空态 */
.empty { text-align: center; padding: 42px 20px; color: #8e8e93; }
.empty .e-ic { font-size: 30px; opacity: .45; margin-bottom: 8px; }
.empty p { font-size: 13px; }

/* ---------- 弹窗 / 抽屉 ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(245,245,248,.6);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 480px; max-width: 100%; border-radius: 26px; padding: 26px; animation: pop .22s ease; }
.modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.modal .row-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 480px; max-width: 100%;
  background: rgba(255,255,255,.62); backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,.8); box-shadow: -18px 0 50px rgba(30,30,60,.12);
  padding: 24px; overflow-y: auto; animation: slide .25s ease; }
.drawer h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.drawer .row-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 11px 18px; border-radius: 14px; font-size: 13px; font-weight: 500; color: #1c1c1e;
  background: rgba(255,255,255,.72); backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(60,60,90,.14), inset 0 1px 1px rgba(255,255,255,.9);
  animation: pop .2s ease; max-width: 360px; }
.toast.err { color: #D70015; border-left: 3px solid #FF3B30; }
.toast.okc { border-left: 3px solid #34C759; }

/* ---------- 图表（极简 SVG 线条，无渐变） ---------- */
.chart { width: 100%; height: 180px; }
.chart-bar { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 0 4px; }
.chart-bar .col { flex: 1; background: rgba(10,132,255,.55); border-radius: 5px 5px 2px 2px; min-height: 2px; transition: height .5s ease; position: relative; }
.chart-bar .col.b { background: rgba(255,149,0,.5); }
.chart-bar .col:hover { background: rgba(10,132,255,.8); }
.chart-labels { display: flex; justify-content: space-between; font-size: 10px; color: #8e8e93; margin-top: 6px; padding: 0 4px; }

/* 通道健康卡 */
.chan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .chan-grid { grid-template-columns: 1fr; } }
.chan-card { padding: 16px 18px; }
.chan-card .nm { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.chan-card .meta { font-size: 12px; color: #6e6e73; margin-top: 8px; line-height: 1.7; }
.chan-card .meta b { color: #1c1c1e; font-variant-numeric: tabular-nums; }

/* 响应式 */
@media (max-width: 1100px) {
  .app { flex-direction: column; }
  .sidebar { position: relative; width: 100%; height: auto; max-height: 44vh; border-right: none; border-bottom: 1px solid rgba(255,255,255,.7); }
  .main { padding: 16px 14px 50px; }
}

/* ============================================
   动效层：页面过渡 / 入场 / 悬浮 / 按压
   ============================================ */

/* 页面切换过渡 */
.page-entrance { animation: pageIn .42s cubic-bezier(.22,.9,.3,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
#page > * { animation: pageIn .4s cubic-bezier(.22,.9,.3,1) both; }

/* 卡片 stagger 入场 */
.card, .kpi, .chan-card, .ui-card { animation: cardIn .45s cubic-bezier(.22,.9,.3,1) both; }
.card:nth-child(2), .kpi:nth-child(2), .chan-card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3), .kpi:nth-child(3), .chan-card:nth-child(3) { animation-delay: .10s; }
.card:nth-child(4), .kpi:nth-child(4), .chan-card:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5), .kpi:nth-child(5) { animation-delay: .20s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 表格行淡入 */
tbody tr { animation: rowIn .3s ease both; }
tbody tr:nth-child(2) { animation-delay: .03s; }
tbody tr:nth-child(3) { animation-delay: .06s; }
tbody tr:nth-child(4) { animation-delay: .09s; }
tbody tr:nth-child(5) { animation-delay: .12s; }
tbody tr:nth-child(6) { animation-delay: .15s; }
tbody tr:nth-child(7) { animation-delay: .18s; }
tbody tr:nth-child(8) { animation-delay: .21s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* 卡片悬浮微动效 */
.card, .kpi, .chan-card, .ui-card, .glass { transition: transform .25s cubic-bezier(.22,.9,.3,1), box-shadow .25s ease, background .25s ease; }
.card:hover, .chan-card:hover, .ui-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(60,60,90,.12), 0 4px 10px rgba(60,60,90,.06), inset 0 1px 1px rgba(255,255,255,.9); }
.kpi:hover { transform: translateY(-2px); }

/* 按钮按压反馈增强 */
.btn { transition: transform .15s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.96); }

/* 数字滚动高亮 */
.num-flash { animation: numFlash 1.2s ease; }
@keyframes numFlash { 0% { color: #0A84FF; } 100% { color: inherit; } }

/* 登录步骤切换 */
.step-pane { animation: paneIn .38s cubic-bezier(.22,.9,.3,1) both; }
@keyframes paneIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* 顶栏健康指示灯呼吸 */
.health-dot.ok { animation: breathe 2.6s ease-in-out infinite; }
.health-dot.warn { animation: breathe 1.8s ease-in-out infinite; }
.health-dot.err { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 3px rgba(52,199,89,.18); } 50% { box-shadow: 0 0 0 6px rgba(52,199,89,.06); } }

/* Tab 切换 */
.tab-body { animation: pageIn .35s ease both; }

/* 玻璃高光扫过（仅用于卡片顶部提示条，非业务元素） */
.shine { position: relative; overflow: hidden; }
.shine::after { content:""; position:absolute; top:0; left:-80%; width:50%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: shineSweep 3.5s ease-in-out infinite; pointer-events:none; }
@keyframes shineSweep { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }

/* 空态入场 */
.empty { animation: cardIn .4s ease both; }

/* ============================================
   UI 精修层：统一布局节奏 / 表格层次 / 通道卡片
   ============================================ */

/* 页面头 */
.page-head { align-items: center; margin-bottom: 20px; }
.page-head h2 { font-size: 24px; letter-spacing: -.5px; }
.page-head .sub { margin-top: 4px; font-size: 13px; color: #6e6e73; }

/* 卡片标题节奏 */
.card > h3, .card h3 { font-size: 15px; margin-bottom: 14px; }

/* 表格：表头轻高光 + 斑马纹 + 行悬浮 */
table th { background: rgba(10,132,255,.07); font-size: 11px; letter-spacing: .5px; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.22); }
tbody tr:hover td { background: rgba(10,132,255,.06); }
tbody tr { transition: background .15s ease; }

/* 按钮更饱满 */
.btn-primary { padding: 10px 22px; border-radius: 13px; font-size: 14px; }
.big-cta { padding: 12px 22px; font-size: 14.5px; border-radius: 14px; width: 100%; }

/* 表单：全选 input（含无 type 属性的），修复原生丑框 */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%; padding: 10px 14px; font-size: 13.5px; font-family: inherit; color: #1c1c1e;
  background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.95); border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(60,60,90,.06); outline: none; transition: all .18s ease;
  min-height: 40px; -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e8e93' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(10,132,255,.55); background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 3px rgba(10,132,255,.14), inset 0 1px 2px rgba(60,60,90,.06);
}
input::placeholder, textarea::placeholder { color: #aeaeb2; }
input:disabled, select:disabled { opacity: .5; }
.field label { font-size: 12px; margin-bottom: 8px; letter-spacing: .3px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .form-2col { grid-template-columns: 1fr; } }

/* 通道徽章（手动对接页表格内） */
.chan-no { display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  background: rgba(10,132,255,.12); color: #0A66C2; border: 1px solid rgba(10,132,255,.25); }
.chan-no.p { background: rgba(175,82,222,.12); color: #9B34D2; border-color: rgba(175,82,222,.28); }

/* 通道条（项目对接页 4 条通道） */
.chan-strip { display: flex; gap: 16px; align-items: flex-start; }
.chan-strip .badge { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(255,255,255,.5));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 6px 16px rgba(60,60,90,.08); }
.chan-strip .badge.b { color: #0A84FF; } .chan-strip .badge.p { color: #AF52DE; }
.chan-strip .badge.g { color: #24C55E; } .chan-strip .badge.o { color: #FF9F0A; }
.chan-strip .info { flex: 1; min-width: 0; }
.chan-strip .info .t { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.chan-strip .info .d { font-size: 12px; color: #6e6e73; margin-bottom: 10px; }

/* 生成密钥区强调 */
.gen-key-zone { border: 1px dashed rgba(10,132,255,.4); border-radius: 16px;
  background: rgba(10,132,255,.05); padding: 16px 18px; }
.gen-key-zone input { background: rgba(255,255,255,.8); }

/* 通道条内表格自适应（修复截断） */
.chan-strip .tw { overflow-x: visible; }
.chan-strip table { min-width: 0; width: 100%; }
.chan-strip td, .chan-strip th { padding: 8px 10px; }

/* 输入框二次加固（覆盖一切浏览器默认） */
input, select, textarea { border-radius: 12px !important; background-clip: padding-box; }
.field input, .field select, .field textarea { background: rgba(255,255,255,.68) !important; }

/* 控制面板 */
.cp-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.cp-gauge { display: flex; align-items: center; justify-content: center; padding: 16px 12px; }
.cp-gauge svg { display: block; max-width: 100%; height: auto; }
.cp-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cp-charts .card { margin-bottom: 0; }
.cp-curve { width: 100%; height: 190px; display: block; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
  background: #24C55E; box-shadow: 0 0 0 3px rgba(36,197,94,.16); animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@media (max-width: 1100px) {
  .cp-gauges { grid-template-columns: repeat(3, 1fr); }
  .cp-charts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .cp-gauges { grid-template-columns: 1fr; } }

/* 卡密明细双视图 */
.cm-tabs { display: flex; gap: 8px; margin: 10px 0 12px; }
.cm-tab { border: 1px solid rgba(120,120,128,.2); background: rgba(255,255,255,.55); color: #6e6e73;
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; }
.cm-tab:hover { background: rgba(255,255,255,.85); }
.cm-tab.on { background: #0A84FF; border-color: #0A84FF; color: #fff;
  box-shadow: 0 4px 12px rgba(10,132,255,.28); }
.cm-tab .cm-n { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 4px;
  border-radius: 999px; background: rgba(120,120,128,.16); font-size: 11.5px; }
.cm-tab.on .cm-n { background: rgba(255,255,255,.26); }
.cm-body { max-height: 54vh; overflow: auto; }
.cm-body .pager { margin-top: 10px; }
