/* ============================================================
   腾讯广告投放台 —— 样式
   浅色主题（贴合当前 IDE 主题），中文优先字体栈
   ============================================================ */

:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --text: #1a1d23;
  --text-2: #5b6270;
  --text-3: #8b929e;
  --brand: #2f6fed;
  --brand-soft: #eef4ff;
  --good: #12a150;
  --good-soft: #e9f8ef;
  --warn: #c47f17;
  --warn-soft: #fdf5e6;
  --bad: #d64545;
  --bad-soft: #fdeeee;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 32px rgba(16, 24, 40, 0.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* hidden 属性必须压过组件自己的 display，否则遮罩会永远盖在页面上 */
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 12.5px; }

/* ---------------- 启动遮罩 ---------------- */
.boot {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.boot.hide { display: none; }
.boot-inner { text-align: center; }
.boot-text { margin-top: 14px; color: var(--text-2); font-size: 13px; }
.spinner {
  width: 30px; height: 30px; margin: 0 auto;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 登录 / 组织引导 ---------------- */
.auth-wrap {
  min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px 24px;
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.auth-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
}
.auth-title { font-size: 18px; font-weight: 600; }
.auth-sub { color: var(--text-2); font-size: 13px; margin: 6px 0 18px; }

.tabs { display: flex; gap: 4px; background: var(--panel-2); padding: 4px;
  border-radius: 9px; border: 1px solid var(--line); margin-bottom: 18px; }
.tabs button {
  flex: 1; padding: 7px 10px; border: 0; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 13px;
}
.tabs button.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

/* 推送通道分段切换控件（清晰显眼的二选一切换） */
.channel-switch {
  display: flex; gap: 10px;
}
.channel-switch .cs-item {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  text-align: left; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--panel); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.channel-switch .cs-item:hover { border-color: #d0d5dc; background: var(--panel-2); }
.channel-switch .cs-item.on {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.channel-switch .cs-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.channel-switch .cs-item.on .cs-name { color: var(--brand); }
.channel-switch .cs-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.channel-switch .cs-item.on .cs-desc { color: var(--text); }
.channel-switch .cs-badge {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 500; line-height: 1.5;
  background: #f0f2f5; color: var(--text-3);
}
.channel-switch .cs-badge-on { background: var(--good-soft); color: var(--good); }

.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 8px;
  cursor: pointer; font-size: 13.5px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--panel-2); border-color: #d8dbe0; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: #2560d8; border-color: #2560d8; }
.btn-danger { color: var(--bad); border-color: #f0cccc; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--panel-2); }

.alt-link { text-align: center; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.alt-link button { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; font-size: 13px; }

/* ---------------- 主框架 ---------------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 218px; flex: 0 0 218px;
  background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-brand {
  padding: 18px 16px 14px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 9px;
}
.side-brand .auth-logo { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; }
.side-brand .nm { font-weight: 600; font-size: 14.5px; }
.side-brand .sub { font-size: 11.5px; color: var(--text-3); }

.nav { flex: 1; overflow-y: auto; padding: 10px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: var(--text-2); font-size: 13.5px; border: 0; background: none;
  width: 100%; text-align: left; margin-bottom: 2px;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .ico { width: 17px; text-align: center; font-size: 14px; flex: 0 0 17px; }

.side-foot { padding: 10px 12px 14px; border-top: 1px solid var(--line-2); }
.who { font-size: 12px; color: var(--text-3); word-break: break-all; margin-bottom: 7px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 54px; flex: 0 0 54px;
  background: rgba(255,255,255,0.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 15.5px; font-weight: 600; margin: 0; }
.topbar .sp { flex: 1; }
.content { padding: 20px; flex: 1; }

.menu-btn { display: none; }

/* ---------------- 卡片 / 网格 ---------------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.card-head {
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card-head h2 { font-size: 14px; font-weight: 600; margin: 0; }
.card-head .sp { flex: 1; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 12px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.kpi {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px;
}
.kpi .k { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.kpi .v { font-size: 20px; font-weight: 650; letter-spacing: -0.2px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.kpi.good .v { color: var(--good); }
.kpi.warn .v { color: var(--warn); }
.kpi.bad .v { color: var(--bad); }

/* ---------------- 结论条 ---------------- */
.verdict {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  margin-bottom: 16px;
}
.verdict.good { background: var(--good-soft); border-color: #c9ecd8; }
.verdict.warn { background: var(--warn-soft); border-color: #f0e0bd; }
.verdict.bad  { background: var(--bad-soft);  border-color: #f2cccc; }
.verdict .big { font-size: 15px; font-weight: 650; }
.verdict .txt { font-size: 13px; color: var(--text-2); }

.note { padding: 10px 13px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 10px; }
.note.good { background: var(--good-soft); border-color: #c9ecd8; color: #0c6b37; }
.note.warn { background: var(--warn-soft); border-color: #f0e0bd; color: #8a5a0d; }
.note.bad  { background: var(--bad-soft);  border-color: #f2cccc; color: #a13030; }
.note.info { background: var(--brand-soft); border-color: #d5e2fb; color: #1d4ea8; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; padding: 9px 12px; background: var(--panel-2);
  border-bottom: 1px solid var(--line); color: var(--text-2);
  font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #fcfcfd; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl .nowrap { white-space: nowrap; }
.empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------------- 徽章 ---------------- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line);
}
.badge.good { background: var(--good-soft); color: #0c6b37; border-color: #c9ecd8; }
.badge.warn { background: var(--warn-soft); color: #8a5a0d; border-color: #f0e0bd; }
.badge.bad  { background: var(--bad-soft);  color: #a13030; border-color: #f2cccc; }
.badge.info { background: var(--brand-soft); color: #1d4ea8; border-color: #d5e2fb; }

/* ---------------- 进度条 ---------------- */
.bar { height: 8px; background: var(--line-2); border-radius: 20px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 20px; transition: width 0.4s; }
.bar > i.good { background: var(--good); }
.bar > i.warn { background: var(--warn); }
.bar > i.bad { background: var(--bad); }

/* ---------------- 图表 ---------------- */
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

/* ---------------- 拖拽上传 ---------------- */
.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 26px 16px; text-align: center; color: var(--text-2);
  background: var(--panel-2); cursor: pointer; transition: 0.15s;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.drop .big { font-size: 22px; margin-bottom: 6px; }

/* ---------------- 工具条 ---------------- */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .sp { flex: 1; }
.toolbar input[type="date"], .toolbar input[type="text"], .toolbar select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 24, 40, 0.42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--panel); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal.wide { max-width: 760px; }
.modal-head {
  padding: 15px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.modal-head .sp { flex: 1; }
.modal-body { padding: 18px; }
.modal-foot {
  padding: 13px 18px; border-top: 1px solid var(--line-2);
  display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--panel);
}

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #23272f; color: #fff; padding: 10px 18px; border-radius: 24px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: 0.22s;
  z-index: 300; max-width: 88vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.toast.good { background: var(--good); }

/* ---------------- 代码块 ---------------- */
pre.code {
  background: #23272f; color: #e6e8eb; padding: 12px 14px;
  border-radius: 8px; overflow-x: auto; font-family: var(--mono);
  font-size: 12px; line-height: 1.65; margin: 0;
}

.kv { display: grid; grid-template-columns: 128px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }

.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.mb0 { margin-bottom: 0; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .side {
    position: fixed; left: 0; top: 0; z-index: 100;
    transform: translateX(-100%); transition: transform 0.22s;
    box-shadow: var(--shadow-lg);
  }
  .side.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 6px; }
}
@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}


/* ============================================================
   号池 / 自动推送 / 三级级联选择 —— 新增组件
   ============================================================ */

/* 成排的操作按钮（原来页面里用到了但没定义，补上） */
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }

/* 额度条：账户级「已推 / 剩余」的视觉化 */
.quota-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quota-bar .bar { flex: 1; min-width: 180px; max-width: 360px; }

/* 被选中的行（第二三步的级联选择） */
table.tbl tbody tr.row-on td { background: var(--brand-soft); }
table.tbl tbody tr.row-on:hover td { background: #e4eeff; }

/* 自动推送倒计时：等宽数字，秒数跳动时不抖 */
.countdown {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.countdown.soon { color: var(--warn); font-size: 12.5px; font-weight: 500; }

/* 通用隐藏：JS 里用 classList.toggle('hide') 切换区块显示。
   注意 toggle 的是「hide」这个类，所以必须有独立的 .hide 规则，光有 .boot.hide 是不够的。 */
.hide { display: none !important; }


/* ============================================================
   登录页：左深色品牌区 + 右白色登录卡（参考双栏版式）
   ============================================================ */
.login-shell { min-height: 100vh; display: flex; align-items: stretch; }

.login-brand {
  flex: 1 1 52%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 52px; position: relative; overflow: hidden;
  background: radial-gradient(1200px 700px at 78% 10%, #122a3c 0%, #0b1723 46%, #070f17 100%);
  color: #e8f1f2;
}
.login-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.lb-top { display: flex; align-items: center; gap: 12px; position: relative; }
.lb-id { display: flex; align-items: center; gap: 10px; }
.lb-logo {
  width: 40px; height: 40px; border-radius: 10px; font-size: 20px;
  background: linear-gradient(135deg, #35e0c2, #1ba88e); color: #04211b;
  box-shadow: 0 6px 18px rgba(53, 224, 194, .28);
}
.lb-app { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.lb-logo-img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
  background: rgba(255,255,255,.07); padding: 4px; box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); flex: none;
}
.lb-ws { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: #7f97a3; }
.lb-main {
  position: relative; max-width: 560px; margin: 0 auto;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.lb-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .34em; color: #35e0c2; margin-bottom: 22px; }
.lb-slogan {
  font-size: clamp(34px, 3.9vw, 58px); line-height: 1.16; font-weight: 800;
  margin: 0 0 22px; letter-spacing: .01em;
}
.lb-slogan em { font-style: normal; color: #35e0c2; }
.lb-sub { color: #9db1bd; font-size: 15px; line-height: 1.85; max-width: 42ch; margin: 0; }
.lb-foot {
  position: relative; display: flex; justify-content: space-evenly; gap: 24px;
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 20px;
}
.lb-item { text-align: center; }
.lb-item span {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; color: #6f8794; margin-bottom: 6px;
}
.lb-item b { font-size: 13px; font-weight: 600; color: #dbe7ea; }

.login-panel {
  flex: 1 1 48%; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}
.login-card {
  width: 100%; max-width: 460px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 36px 24px; box-shadow: var(--shadow-lg);
}
.lc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.lc-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--text-2); }
.lc-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.lc-secure i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.lc-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: #14b8a5; margin-bottom: 8px; }
.lc-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.lc-sub { color: var(--text-2); font-size: 13px; margin: 0 0 20px; }
.lc-submit {
  width: 100%; margin-top: 4px; padding: 12px 16px;
  background: #35e0c2; border-color: #35e0c2; color: #052720;
  font-weight: 700; font-size: 15px;
}
.lc-submit:hover { background: #2ecdb1; border-color: #2ecdb1; }
.lc-submit:disabled { opacity: .6; }
.lc-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 13px; }
.lc-links button { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; font-size: 13px; }
.lc-links button:hover { text-decoration: underline; }
.lc-dot { color: var(--text-2); }
.lc-tip {
  margin-top: 14px; padding-top: 12px; text-align: center;
  color: var(--text-2); font-size: 12px; border-top: 1px dashed var(--line);
}

@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-panel { align-items: flex-start; padding-top: 7vh; }
}

/* ============================================================
   腾讯授权（广告账户绑定）—— 参照主流服务商的授权卡布局
   ============================================================ */
.auth-app-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft, #f7f8fa);
  margin-bottom: 14px;
}
.auth-app-name { font-size: 15px; font-weight: 700; margin: 2px 0 4px; }
.auth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.auth-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-card.gone { opacity: 0.62; background: var(--bg-soft, #f7f8fa); }
.ac-top { display: flex; align-items: flex-start; gap: 10px; }
.ac-ava {
  width: 34px; height: 34px; flex: none;
  border-radius: 8px;
  background: var(--brand-soft, #e8effc);
  color: var(--brand, #2f6fed);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ac-tt { flex: 1; min-width: 0; }
.ac-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: var(--bg-soft, #f7f8fa);
}
.ac-kv span { display: block; font-size: 11.5px; color: var(--text-3, #8b929e); margin-bottom: 3px; }
.ac-kv b { font-size: 12.5px; font-weight: 600; }
.ac-ops { display: flex; gap: 8px; flex-wrap: wrap; }
ol.steps { margin: 10px 0 12px; padding-left: 20px; color: var(--text-2, #4b5563); }
ol.steps li { margin: 6px 0; }
.qq-oauth {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qq-app { text-align: center; font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.qq-scope { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 2px; }
