/* =========================================================
   展信包装 · 网站管理后台
   GEO 检测与收录（geo.js 专用样式）
   ---------------------------------------------------------------
   复用 app.css 的设计变量与公共类（.card / .btn / .table /
   .badge / .input / .empty / .modal / .toast 等），
   这里只补充 GEO 页面专属的布局与组件样式。
   ========================================================= */

/* ---------- 1. 页头 / Tab 导航 ---------- */
.geo-site-pill { max-width: 300px; }
.geo-site-pill span {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.geo-tab-body { min-width: 0; }

.geo-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 16px;
  padding: 4px;
  background: #EDEFF1;
  border-radius: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.geo-tabs::-webkit-scrollbar { height: 5px; }
.geo-tabs::-webkit-scrollbar-thumb { background: #D3D7DB; border-radius: 3px; }
.geo-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5A6167;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.geo-tab .icon { color: #8B9299; transition: color .15s ease; }
.geo-tab:hover { color: var(--ink); }
.geo-tab:hover .icon { color: var(--ink-2); }
.geo-tab.active {
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.geo-tab.active .icon { color: var(--brand); }
.geo-tab-count {
  min-width: 16px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(35, 39, 43, .06);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.geo-tab-count:empty { display: none; }
.geo-tab.active .geo-tab-count { background: var(--brand-soft); color: var(--brand); }

/* ---------- 2. 通用布局 ---------- */
.geo-mt { margin-top: 16px; }
.geo-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.geo-grid-2 > .card + .card { margin-top: 0; }
.geo-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.geo-actions-row .hint { flex: 1 1 220px; min-width: 0; }
.geo-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.geo-empty-actions .btn { margin-top: 0; }
.geo-inline-note {
  padding: 4px 18px 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.7;
}
.geo-inline-note .loading-block { padding: 16px 0; }
.geo-error-detail { word-break: break-word; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.link-button:hover { color: var(--brand-dark); text-decoration: underline; }

/* 行内 code / hint 里的等宽文本 */
.geo-grid-2 code,
.geo-grid-2 .hint code,
.geo-help-list code,
.geo-steps code,
.geo-instructions code,
.geo-key-block code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #F3F5F6;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 11.5px;
  word-break: break-all;
}
.geo-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.geo-inline-check input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }

/* ---------- 3. 骨架屏 ---------- */
.geo-skel-row {
  height: 34px;
  margin-bottom: 10px;
  border-radius: 7px;
}
.geo-skel-row:last-child { margin-bottom: 0; }
.geo-skel-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
}
.geo-skel-line {
  display: block;
  height: 11px;
  margin-bottom: 9px;
  border-radius: 5px;
}
.geo-skel-line:last-child { margin-bottom: 0; }
.geo-skel-line.w55 { width: 55%; }
.geo-skel-line.w35 { width: 35%; }

/* ---------- 4. 概览统计卡 ---------- */
.geo-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.geo-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.geo-stat.is-clickable { cursor: pointer; }
.geo-stat.is-clickable:hover {
  transform: translateY(-2px);
  border-color: #DFE2E5;
  box-shadow: var(--shadow-md);
}
.geo-stat-main { display: flex; flex-direction: column; min-width: 0; }
.geo-stat-main .kpi-num { font-size: 24px; }
.geo-stat-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 5. 最近运行列表 ---------- */
.geo-run-list { display: flex; flex-direction: column; }
.geo-run-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  border-top: 1px solid #F0F2F3;
  background: #fff;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease;
}
.geo-run-row:first-child { border-top: 0; }
.geo-run-row:hover { background: #FAFBFC; }
.geo-run-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.geo-run-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.geo-run-meta {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.geo-run-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.geo-last-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.geo-last-head .spacer { flex: 1 1 auto; }

/* ---------- 6. 检测运行：渠道 / 问题多选 ---------- */
.geo-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}
.geo-picker { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.geo-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.geo-picker-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.geo-picker-title .icon { color: var(--muted); }
.geo-picker-actions { display: flex; align-items: center; gap: 2px; }
.geo-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 238px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}
.geo-check-list::-webkit-scrollbar { width: 6px; }
.geo-check-list::-webkit-scrollbar-thumb { background: #D8DCE0; border-radius: 3px; }
.geo-question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 238px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}
.geo-question-list::-webkit-scrollbar { width: 6px; }
.geo-question-list::-webkit-scrollbar-thumb { background: #D8DCE0; border-radius: 3px; }
.geo-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.geo-check-item:hover { border-color: #D8DCE0; background: #FAFBFC; }
.geo-check-item:has(input:checked) { border-color: #E9AFB8; background: #FDF6F7; }
.geo-check-item.is-disabled { opacity: .62; cursor: not-allowed; background: #F8F9FA; }
.geo-check-item input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}
.geo-check-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.geo-check-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.45;
}
.geo-check-sub {
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted-2);
}
.geo-picker-empty {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: #FAFBFC;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.geo-picker-note {
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #8A6416;
  font-size: 12px;
  line-height: 1.65;
}
.geo-start-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.geo-start-bar .hint { flex: 1 1 260px; min-width: 0; }
.geo-start-bar .btn { margin-left: auto; }

/* ---------- 7. 运行进度 ---------- */
.geo-progress-card { display: flex; flex-direction: column; gap: 10px; padding: 15px 18px; }
.geo-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.geo-progress-head .card-title { font-size: 14px; }
.geo-progress-head .hint { margin-top: 3px; }
.geo-progress-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.geo-progress {
  height: 8px;
  border-radius: 999px;
  background: #EDEFF1;
  overflow: hidden;
}
.geo-progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #D9364F);
  transition: width .3s ease;
}

/* ---------- 8. 运行详情 / 结果表 ---------- */
.geo-run-detail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.geo-run-detail-head .spacer { flex: 1 1 auto; }
.geo-run-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 18px;
  padding: 10px 13px;
  border: 1px solid #F3C6CE;
  border-radius: 8px;
  background: var(--brand-soft);
  color: #A11227;
  font-size: 12.5px;
  line-height: 1.65;
  word-break: break-word;
}
.geo-run-error .icon { flex: none; margin-top: 2px; }
.geo-table { min-width: 680px; }
.geo-result-table th:first-child,
.geo-result-table td:first-child { min-width: 230px; }
.geo-result-table th:nth-child(7) { min-width: 220px; }
.geo-table tbody tr.is-selected { background: #FDF4F5; }
.geo-table tbody tr.is-selected:hover { background: #FCEBEE; }
.geo-answer-row > td {
  padding: 0;
  background: #FAFBFC;
}
.geo-answer-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 18px 16px;
}
.geo-answer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.geo-answer-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.geo-answer-full {
  max-height: 360px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.geo-answer-snippet {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.geo-url-list {
  margin: 0;
  padding-left: 18px;
  color: var(--info);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}
.geo-url-list li { margin: 3px 0; }
.geo-url-list a { color: var(--info); }
.geo-url-list a:hover { text-decoration: underline; }

/* ---------- 9. 检测渠道 ---------- */
.geo-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}
.geo-provider-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.geo-provider-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}
.geo-provider-title { flex: 1 1 auto; min-width: 0; }
.geo-provider-title h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.geo-provider-sub {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--muted-2);
}
.geo-provider-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FAFBFC;
}
.geo-kv-line {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  font-size: 12px;
}
.geo-kv-line > span:first-child { flex: none; color: var(--muted); }
.geo-kv-line > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 500;
  text-align: right;
}
.geo-kv-line .mono { font-size: 11.5px; }
.geo-mask {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.geo-provider-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.geo-provider-foot .spacer { flex: 1 1 auto; }
.geo-test-result { min-width: 0; font-size: 11.5px; }
.geo-test-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); }
.geo-test-fail { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); }

/* 渠道接入说明 */
.geo-help-list { margin: 0; }
.geo-help-list dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.geo-help-list dt:first-child { margin-top: 0; }
.geo-help-list dt .icon { color: var(--brand); }
.geo-help-list dd {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 10. 收录提交 ---------- */
.geo-key-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.geo-key-block .geo-kv-line { flex-wrap: wrap; justify-content: flex-start; }
.geo-kv-label { flex: none; color: var(--muted); font-size: 12px; }
.geo-key-value {
  flex: 1 1 200px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: #FAFBFC;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}
.geo-steps {
  margin: 4px 0 4px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.8;
}
.geo-steps li { margin-bottom: 6px; }
.geo-instructions {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FAFBFC;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.geo-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #F0DDB8;
  border-radius: 8px;
  background: var(--warn-soft);
  color: #8A6416;
  font-size: 12.5px;
  line-height: 1.7;
}
.geo-warning .icon { flex: none; margin-top: 2px; }
.geo-result-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FAFBFC;
}
.geo-result-panel.is-ok { border-color: #BFE6D0; background: var(--ok-soft); }
.geo-result-panel.is-fail { border-color: #F3C6CE; background: var(--brand-soft); }
.geo-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}
.geo-result-panel.is-ok .geo-result-head { color: var(--ok); }
.geo-result-panel.is-fail .geo-result-head { color: var(--brand); }
.geo-result-line {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
  word-break: break-word;
}

/* GEO 自检 */
.geo-audit-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.geo-audit-summary .spacer { flex: 1 1 auto; }
.geo-audit-score {
  color: var(--warn);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.geo-audit-score.is-ok { color: var(--ok); }
.geo-audit-list { margin: 0; padding: 0; list-style: none; }
.geo-audit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid #F0F2F3;
}
.geo-audit-item:last-child { border-bottom: 0; }
.geo-audit-icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.geo-audit-item.is-ok .geo-audit-icon { background: var(--ok-soft); color: var(--ok); }
.geo-audit-item.is-fail .geo-audit-icon { background: var(--brand-soft); color: var(--brand); }
.geo-audit-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.geo-audit-label { color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 1.55; }
.geo-audit-item.is-fail .geo-audit-label { color: var(--ink); }
.geo-audit-detail {
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.65;
  word-break: break-word;
}
.geo-audit-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
}
.geo-audit-error .geo-audit-main { flex: 1 1 auto; }
.geo-audit-error .geo-audit-icon.is-fail { background: var(--brand-soft); color: var(--brand); }

/* ---------- 11. 手动检测 ---------- */
.geo-textarea-lg { min-height: 220px; font-size: 13px; line-height: 1.7; }
.geo-verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.geo-verdict-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FAFBFC;
}
.geo-verdict-label { font-size: 11.5px; color: var(--muted-2); }
.geo-verdict-value {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.geo-verdict-value.is-ok { color: var(--ok); }
.geo-verdict-value.is-fail { color: var(--brand); }
.geo-verdict-notes {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.geo-verdict-notes li {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FAFBFC;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 12. 概览：GEO 趋势 / 掉榜预警 ---------- */
.geo-alert-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 18px 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.65;
}
.geo-alert-icon { flex: none; display: inline-flex; margin-top: 1px; }
.geo-alert-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.geo-alert-label { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.geo-alert-msg { color: inherit; word-break: break-word; }
.geo-alert-meta { flex: none; font-size: 11.5px; opacity: .72; font-variant-numeric: tabular-nums; }
.geo-alert-bar.is-danger { border-color: #F1C6CE; background: var(--brand-soft); color: #A11227; }
.geo-alert-bar.is-warning { border-color: #F0DDB8; background: var(--warn-soft); color: #8A6416; }
.geo-alert-bar.is-ok { border-color: #BFE6D0; background: var(--ok-soft); color: var(--ok); }

.geo-trend-loading .loading-block { padding: 38px 20px; }
.geo-trend-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px 0;
}
.geo-trend-range { flex: none; }
.geo-trend-range .seg-tab { cursor: pointer; }
.geo-trend-wrap { padding: 8px 18px 16px; }
.geo-trend-legend { display: flex; align-items: center; gap: 16px; padding: 2px 0 8px; }
.geo-trend-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.geo-trend-swatch { width: 18px; height: 3px; border-radius: 2px; }
.geo-trend-swatch.is-red { background: var(--brand); }
.geo-trend-swatch.is-blue { background: var(--info); }
.geo-trend-chart-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; }
.geo-trend-chart-scroll::-webkit-scrollbar { height: 5px; }
.geo-trend-chart-scroll::-webkit-scrollbar-thumb { background: #D3D7DB; border-radius: 3px; }
.geo-trend-chart { display: block; width: 100%; height: auto; min-height: 200px; }
.geo-trend-grid { stroke: #EDEFF1; stroke-width: 1; }
.geo-trend-grid.is-vertical { stroke: #F3F5F6; }
.geo-trend-axis-line { stroke: var(--line-strong); stroke-width: 1; }
.geo-trend-axis { fill: var(--muted-2); font-family: var(--sans); font-size: 10.5px; }
.geo-trend-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.geo-trend-line.is-red { stroke: var(--brand); }
.geo-trend-line.is-blue { stroke: var(--info); }
.geo-trend-dot { stroke: #fff; stroke-width: 1.5; transition: r .12s ease; }
.geo-trend-dot.is-red { fill: var(--brand); }
.geo-trend-dot.is-blue { fill: var(--info); }
.geo-trend-dot:hover { r: 5; }
.geo-trend-empty {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 18px 18px;
  padding: 14px 16px;
  border: 1px solid #F1C6CE;
  border-radius: 10px;
  background: var(--brand-soft);
}
.geo-trend-empty-icon { flex: none; display: inline-flex; margin-top: 2px; color: var(--brand); }
.geo-trend-empty-main { flex: 1 1 240px; min-width: 0; }
.geo-trend-empty .empty-title { font-size: 13.5px; }
.geo-trend-empty .empty-desc { margin-top: 3px; color: #A11227; }
.geo-trend-empty .btn { margin-left: auto; }

/* ---------- 13. 定时巡检 ---------- */
.geo-schedule-table th,
.geo-schedule-table td { padding-left: 12px; padding-right: 12px; }
.geo-schedule-table th:first-child,
.geo-schedule-table td:first-child { min-width: 160px; }
.geo-schedule-table td { vertical-align: middle; }
.geo-schedule-table tr.is-disabled .cell-title { color: var(--muted); }
.geo-schedule-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.geo-schedule-sub .icon { flex: none; color: var(--muted-2); }
.geo-schedule-table tr.is-disabled .geo-schedule-sub { color: #A6ADB3; }

/* 启用开关 */
.geo-switch { display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.geo-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.geo-switch-track {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #D8DCE0;
  transition: background .16s ease;
}
.geo-switch-track > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 20, 25, .28);
  transition: transform .16s ease;
}
.geo-switch input:checked + .geo-switch-track { background: var(--brand); }
.geo-switch input:checked + .geo-switch-track > span { transform: translateX(16px); }
.geo-switch input:focus-visible + .geo-switch-track { box-shadow: 0 0 0 3px rgba(189, 17, 43, .16); }
.geo-switch input:disabled + .geo-switch-track { opacity: .55; }
.geo-switch.is-busy .geo-switch-track { opacity: .6; }

/* 弹窗表单 */
.geo-time-pair { display: flex; align-items: center; gap: 6px; }
.geo-time-pair .select { flex: 1 1 0; min-width: 0; }
.geo-time-sep { color: var(--muted-2); font-weight: 600; }
.geo-schedule-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FAFBFC;
  color: var(--ink-2);
  font-size: 12.5px;
}
.geo-schedule-preview-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.geo-schedule-preview-label .icon { color: var(--muted-2); }
.geo-schedule-section { margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.geo-schedule-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.geo-schedule-check-list { max-height: 168px; }
.geo-schedule-check-list .geo-check-name { font-size: 12px; }
.geo-schedule-modes { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.geo-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.geo-radio input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }
.geo-radio input:disabled { cursor: not-allowed; }

/* ---------- 14. 预警推送 ---------- */

/* 概览：趋势卡片内的「预警推送」状态入口 */
.geo-notify-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 18px 0;
  padding: 9px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: #FAFBFC;
  font-size: 12.5px;
  color: var(--ink-2);
}
.geo-notify-entry.is-loading { color: var(--muted-2); }
.geo-notify-entry .spinner { flex: none; }
.geo-notify-entry-icon { flex: none; display: inline-flex; color: var(--muted); }
.geo-notify-entry.is-ok .geo-notify-entry-icon { color: var(--ok); }
.geo-notify-entry.is-warn .geo-notify-entry-icon { color: var(--warn); }
.geo-notify-entry.is-error { border-color: var(--danger-line); background: var(--brand-soft); }
.geo-notify-entry.is-error .geo-notify-entry-icon { color: var(--brand); }
.geo-notify-entry-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1 1 260px; }
.geo-notify-entry-label { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.geo-notify-entry-text { color: var(--muted); word-break: break-word; }
.geo-notify-entry-meta { font-size: 11.5px; color: var(--muted-2); }
.geo-notify-entry .link-button { margin-left: auto; white-space: nowrap; }

/* 预警中心 */
.geo-notify-center { position: relative; overflow: hidden; }
.geo-notify-center::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line-strong);
}
.geo-notify-center.is-info::before { background: var(--ok); }
.geo-notify-center.is-warning::before { background: var(--warn); }
.geo-notify-center.is-danger::before { background: var(--brand); }
.geo-notify-hero { display: flex; align-items: flex-start; gap: 14px; }
.geo-notify-orb {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}
.geo-notify-orb.is-info { background: var(--ok-soft); color: var(--ok); }
.geo-notify-orb.is-warning { background: var(--warn-soft); color: var(--warn); }
.geo-notify-orb.is-danger { background: var(--brand-soft); color: var(--brand); }
.geo-notify-hero-main { flex: 1 1 auto; min-width: 0; }
.geo-notify-hero-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.geo-notify-hero-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.geo-notify-hero-msg { margin-top: 5px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.geo-notify-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.geo-notify-fact {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FAFBFC;
  min-width: 0;
}
.geo-notify-fact-k { display: block; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.geo-notify-fact-v {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.geo-notify-fact-v.is-ok { color: var(--ok); }
.geo-notify-fact-v.is-warn { color: var(--warn); }
.geo-notify-fact-v.is-bad { color: var(--brand); }
.geo-notify-fact-v.is-muted { color: var(--muted); }

/* 操作结果 / 渠道测试结果 */
.geo-notify-action-result:empty,
.geo-notify-channel-result:empty { display: none; }
.geo-notify-action-result { margin-top: 14px; }
.geo-notify-channel-result { padding: 0 18px 2px; }
.geo-notify-results {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.geo-notify-results.is-error { border-color: var(--danger-line); background: var(--brand-soft); }
.geo-notify-result-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #FAFBFC;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.geo-notify-results.is-error .geo-notify-result-head { background: transparent; border-bottom: 0; }
.geo-notify-result-head strong { font-size: 12.5px; color: var(--ink); }
.geo-notify-result-head .toolbar-count { margin-left: auto; }
.geo-notify-result-note { padding: 9px 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; word-break: break-word; }
.geo-notify-result-empty { padding: 12px; font-size: 12.5px; color: var(--muted); }
.geo-notify-result-list { display: flex; flex-direction: column; }
.geo-notify-result-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.geo-notify-result-item:first-child { border-top: 0; }
.geo-notify-result-icon { flex: none; display: inline-flex; }
.geo-notify-result-icon.is-fail { color: var(--brand); }
.geo-notify-result-item.is-ok .geo-notify-result-icon { color: var(--ok); }
.geo-notify-result-item.is-fail .geo-notify-result-icon { color: var(--brand); }
.geo-notify-result-name { font-weight: 600; color: var(--ink); }
.geo-notify-result-status { flex: none; color: var(--muted); font-size: 11.5px; }
.geo-notify-result-item.is-ok .geo-notify-result-status { color: var(--ok); }
.geo-notify-result-item.is-fail .geo-notify-result-status { color: var(--brand); }
.geo-notify-result-response {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11.5px;
  word-break: break-word;
}

/* 通知渠道 */
.geo-notify-table th:first-child,
.geo-notify-table td:first-child { min-width: 150px; }
.geo-notify-table tr.is-disabled .cell-title { color: var(--muted); }
.geo-notify-url { max-width: 300px; font-family: var(--mono); font-size: 11.5px; }
.geo-notify-log-response { max-width: 320px; }
.geo-notify-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.geo-notify-help-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.geo-notify-help-title .icon { color: var(--brand); }

/* 预警规则 */
.geo-notify-number { max-width: 160px; }
.geo-notify-rule-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 2px;
}
.geo-notify-rule-channels .geo-check-item { padding: 8px 10px; }
.geo-notify-rule-channels .geo-check-name { font-size: 12.5px; }

/* 推送历史筛选 */
.geo-notify-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.geo-notify-filter {
  width: auto;
  min-width: 96px;
  height: auto;
  padding: 5px 28px 5px 10px;
  font-size: 12.5px;
}

@media (max-width: 768px) {
  .geo-notify-entry { margin: 12px 14px 0; }
  .geo-notify-entry .link-button { margin-left: 0; }
  .geo-notify-hero { flex-direction: column; gap: 10px; }
  .geo-notify-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-notify-channel-result { padding: 0 14px 2px; }
  .geo-notify-filters { width: 100%; }
  .geo-notify-filter { flex: 1 1 90px; min-width: 0; }
  .geo-notify-table .cell-actions { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .geo-notify-facts { grid-template-columns: minmax(0, 1fr); }
  .geo-notify-result-response { flex-basis: 100%; }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1100px) {
  .geo-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .geo-grid-2 > .card + .card { margin-top: 0; }
  .geo-picker-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .geo-question-list { grid-template-columns: minmax(0, 1fr); }
  .geo-verdict-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .geo-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .geo-stat { padding: 13px 14px; gap: 10px; }
  .geo-stat-main .kpi-num { font-size: 21px; }
  .geo-provider-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-check-list { grid-template-columns: minmax(0, 1fr); max-height: 230px; }
  .geo-start-bar .btn { margin-left: 0; width: 100%; }
  .geo-run-row { flex-wrap: wrap; }
  .geo-run-side { width: 100%; justify-content: space-between; }
  .geo-last-head { gap: 8px; }
  .geo-audit-summary { flex-wrap: wrap; }
  .geo-key-block .geo-kv-line { align-items: flex-start; }
  .geo-actions-row .btn { flex: 1 1 auto; }
  .geo-alert-bar { margin: 12px 14px 0; }
  .geo-alert-main { flex-direction: column; gap: 2px; }
  .geo-trend-meta { padding: 12px 14px 0; }
  .geo-trend-wrap { padding: 8px 14px 14px; }
  .geo-trend-chart { min-width: 560px; }
  .geo-schedule-section-head { align-items: flex-start; }
  .geo-schedule-table .cell-actions { flex-wrap: wrap; }
  .geo-schedule-modes { gap: 12px; }
}
@media (max-width: 520px) {
  .geo-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-verdict-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-tab { padding: 6px 11px; font-size: 12.5px; }
  .geo-site-pill { max-width: 180px; }
  .geo-site-pill span { max-width: 140px; }
  .geo-tab-count { display: none; }
  .geo-trend-range .seg-tab { padding: 5px 9px; font-size: 12px; }
  .geo-alert-meta { display: none; }
  .geo-trend-chart { min-width: 480px; }
  .geo-trend-empty .btn { margin-left: 0; }
}
