/* ============================================================
   AI 中转站 · 企业商务简约 UI
   深蓝 / 深灰配色，全部图标为内联 SVG 线条图标
   ============================================================ */
:root {
  --navy: #0e2244;
  --navy-2: #132c55;
  --navy-3: #1b3b6f;
  --brand: #1d4ed8;
  --brand-dark: #1a40ad;
  --brand-soft: #eef2fb;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #17233b;
  --text-2: #475569;
  --muted: #6b7a90;
  --green: #12805c;
  --green-bg: #e8f6f0;
  --red: #c0392b;
  --red-bg: #fdeceb;
  --amber: #9a6700;
  --amber-bg: #fdf5e3;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 35, 70, .05), 0 6px 18px rgba(15, 35, 70, .05);
  --sidebar-w: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 600; }
p { margin: 0 0 12px; }
.ico { vertical-align: -3px; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--navy);
  color: #c9d6ea;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 20;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-brand .logo-mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2a5bd7, #14315e);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.15);
}
.sidebar-brand .brand-text { min-width: 0; }
.sidebar-brand .brand-name {
  font-size: 15px; color: #fff; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-brand .brand-sub { font-size: 11px; color: #7f93b4; letter-spacing: .5px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.nav-group-title {
  font-size: 11px; color: #6f84a6; letter-spacing: 1px;
  padding: 12px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 2px;
  border-radius: 5px; color: #c9d6ea; font-size: 13.5px;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-item.active {
  background: rgba(255, 255, 255, .1);
  color: #fff; border-left-color: #4f83f1; font-weight: 500;
}
.nav-item .ico { opacity: .82; flex: 0 0 auto; }
.nav-item .badge-mini {
  margin-left: auto; font-size: 11px; background: rgba(255,255,255,.12);
  color: #dce6f5; padding: 1px 7px; border-radius: 10px;
}
.sidebar-foot {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: #7f93b4;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; position: sticky; top: 0; z-index: 15;
}
.topbar .crumb { font-size: 13px; color: var(--muted); }
.topbar .crumb strong { color: var(--text); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar .user-chip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; border: 1px solid #d7e2f8;
}
.topbar .user-name { font-size: 13px; color: var(--text); }
.notice-dot {
  position: relative; color: var(--text-2); display: inline-flex;
  padding: 4px;
}
.notice-dot::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d97706;
  position: absolute; top: 2px; right: 2px;
}
.mobile-menu-btn { display: none; }

.content { padding: 24px 24px 48px; }

/* ---------- 页头 ---------- */
.page-head { margin-bottom: 18px; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; letter-spacing: .2px; }
.page-head p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.page-head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 15px; }
.card-head .hint { font-size: 12px; color: var(--muted); }
.card-head-actions { margin-left: auto; display: flex; gap: 8px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand);
  opacity: .9;
}
.stat-card.green::before { background: var(--green); }
.stat-card.amber::before { background: #c07a00; }
.stat-card.gray::before { background: #607189; }
.stat-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 26px; font-weight: 650; color: var(--navy); letter-spacing: .3px; margin-top: 6px; line-height: 1.25; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: 4px; }
.stat-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }
.stat-foot .up { color: var(--green); }
.stat-foot .down { color: var(--red); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 5px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font-size: 13px; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #9fb0c8; background: #f8fafc; text-decoration: none; }
.btn-primary { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-primary:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn-danger { background: #fff; border-color: #efc7c2; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #0c6b4c; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 4px; }
.btn-block { width: 100%; height: 40px; font-size: 14px; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); border-color: transparent; }

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.form-row .desc { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url],
select, textarea {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 5px;
  font-family: inherit; font-size: 13.5px; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 110px; padding: 9px 11px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #7ea2e0; box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}
input[readonly], input[disabled] { background: #f7f9fc; color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.checkbox-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.checkbox-line input { width: 15px; height: 15px; accent-color: var(--brand); }
.switch { position: relative; display: inline-block; width: 38px; height: 20px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #cdd6e3; border-radius: 20px; transition: .2s; cursor: pointer;
}
.switch .slider:before {
  content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider:before { transform: translateX(18px); }
.field-error { color: var(--red); font-size: 12px; margin-top: 5px; display: none; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-weight: 600; color: var(--text-2); background: #f8fafc;
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #edf1f6; color: var(--text); vertical-align: middle; }
table.data tbody tr:hover { background: #fafcff; }
table.data td.mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
table.data .num { font-variant-numeric: tabular-nums; }
.table-empty { text-align: center; color: var(--muted); padding: 38px 0 !important; }

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 3px;
  font-size: 12px; border: 1px solid transparent;
}
.badge-green { background: var(--green-bg); color: var(--green); border-color: #c9ebde; }
.badge-red { background: var(--red-bg); color: var(--red); border-color: #f4cdc7; }
.badge-gray { background: #f1f4f9; color: #566580; border-color: #e0e6ef; }
.badge-blue { background: var(--brand-soft); color: var(--brand-dark); border-color: #d5e1f8; }
.badge-amber { background: var(--amber-bg); color: var(--amber); border-color: #f2e0b6; }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab {
  padding: 9px 16px; font-size: 13.5px; color: var(--text-2); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--line); }
.pager .info { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.pager button {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line);
  background: #fff; border-radius: 4px; cursor: pointer; font-size: 12.5px; color: var(--text-2); font-family: inherit;
}
.pager button:hover:not([disabled]) { border-color: #9fb0c8; color: var(--navy); }
.pager button.active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.pager button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 25, 45, .48);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 16px 40px; z-index: 60; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 520px; background: #fff; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(9, 22, 42, .28); border: 1px solid #dbe3ee;
  animation: modalIn .18s ease-out;
}
.modal.wide { max-width: 720px; }
.modal.narrow { max-width: 420px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { font-size: 15.5px; }
.modal-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; line-height: 0; }
.modal-close:hover { color: var(--navy); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfe; border-radius: 0 0 8px 8px; }
body.modal-open { overflow: hidden; }

/* ---------- 提示 ---------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 240px; max-width: 360px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 5px; box-shadow: 0 8px 24px rgba(15, 35, 70, .14);
  padding: 11px 14px; font-size: 13px; color: var(--text); display: flex; gap: 8px; align-items: flex-start;
  animation: toastIn .22s ease-out;
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: #c07a00; }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.alert { padding: 11px 14px; border-radius: 5px; font-size: 13px; margin-bottom: 16px; border: 1px solid; }
.alert-info { background: var(--brand-soft); border-color: #d5e1f8; color: #24406f; }
.alert-warn { background: var(--amber-bg); border-color: #f2e0b6; color: #7a5200; }
.alert-danger { background: var(--red-bg); border-color: #f4cdc7; color: #8f2c20; }

/* ---------- 认证页 ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0e2244;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  padding: 30px 16px;
}
.auth-panel {
  width: 100%; max-width: 420px; background: #fff; border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden;
}
.auth-head { padding: 26px 30px 0; text-align: left; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-brand .logo-mark {
  width: 34px; height: 34px; border-radius: 7px; background: var(--navy-2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.auth-brand span { font-weight: 600; color: var(--navy); font-size: 15px; }
.auth-head h1 { font-size: 21px; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: 13px; margin: 0; }
.auth-body { padding: 22px 30px 26px; }
.auth-foot { padding: 14px 30px 22px; font-size: 13px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); background: #fbfcfe; }
.auth-body .form-row { margin-bottom: 15px; }
.auth-body input { height: 40px; }
.auth-body .btn-block { margin-top: 6px; }
.auth-extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin: 2px 0 16px; }
.auth-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.7; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { height: 40px; min-width: 108px; }

/* ---------- 首页 Landing ---------- */
.landing-nav {
  height: 66px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 32px; gap: 28px;
  position: sticky; top: 0; z-index: 10;
}
.landing-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--navy); font-size: 16px; }
.landing-nav .logo-mark { width: 32px; height: 32px; border-radius: 7px; background: var(--navy-2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.landing-nav .links { display: flex; gap: 24px; margin-left: 12px; }
.landing-nav .links a { color: var(--text-2); font-size: 13.5px; }
.landing-nav .nav-actions { margin-left: auto; display: flex; gap: 10px; }
.landing-hero { background: var(--navy); color: #fff; padding: 76px 32px 84px; position: relative; overflow: hidden; }
.landing-hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
  border: 1px solid rgba(255,255,255,.12); transform: rotate(45deg); border-radius: 24px;
}
.landing-hero .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.landing-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #a9bfe0;
  border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: 3px; margin-bottom: 20px;
}
.landing-hero h1 { color: #fff; font-size: 36px; line-height: 1.35; max-width: 760px; letter-spacing: .5px; }
.landing-hero h1 em { font-style: normal; color: #8fb6ff; }
.landing-hero p.lead { color: #b8c9e3; font-size: 15px; max-width: 640px; margin: 16px 0 30px; line-height: 1.8; }
.landing-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-hero .cta .btn { height: 42px; padding: 0 22px; font-size: 14px; }
.landing-hero .cta .btn-primary { background: #2f63d6; border-color: #2f63d6; }
.landing-hero .metrics { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.landing-hero .metrics div span { display: block; font-size: 12px; color: #93a9c9; letter-spacing: .5px; }
.landing-hero .metrics div strong { font-size: 22px; color: #fff; font-weight: 600; }
.landing-section { max-width: 1100px; margin: 0 auto; padding: 56px 32px; }
.landing-section h2 { font-size: 24px; margin-bottom: 8px; }
.landing-section .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 22px;
}
.feature .fi { width: 34px; height: 34px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 13px; line-height: 1.75; margin: 0; }
.landing-code {
  background: #0c1a30; border-radius: 8px; padding: 20px 22px; color: #cfe0f7;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9; overflow-x: auto;
  border: 1px solid #1c3255;
}
.landing-code .k { color: #7fb0ff; }
.landing-code .s { color: #9fd6a9; }
.landing-code .c { color: #6b83a3; }
.landing-foot { border-top: 1px solid var(--line); background: #fff; padding: 26px 32px; color: var(--muted); font-size: 12.5px; text-align: center; }
.notice-bar { background: #fff8e6; border-bottom: 1px solid #f0e2bd; color: #7a5200; font-size: 13px; padding: 9px 32px; display: flex; align-items: center; gap: 8px; }

/* ---------- 代码块 ---------- */
.code-block { position: relative; }
.code-block pre {
  margin: 0; background: #0c1a30; color: #d5e3f7; border-radius: 6px;
  padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.8;
  border: 1px solid #1b2f4d;
}
.code-block .copy-btn {
  position: absolute; right: 8px; top: 8px; height: 26px; padding: 0 9px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #c8d8ee;
  border-radius: 4px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.code-block .copy-btn:hover { background: rgba(255,255,255,.16); }
.method { display: inline-block; min-width: 52px; text-align: center; font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.method.post { background: #e8f0ff; color: #1a40ad; border: 1px solid #d3e0fa; }
.method.get { background: #e8f6f0; color: var(--green); border: 1px solid #c9ebde; }
.api-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.api-row:last-child { border-bottom: 0; }
.api-row .path { font-family: var(--mono); font-size: 12.5px; color: var(--navy); }

/* ---------- 其他 ---------- */
.kv-list { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 13px; }
.kv-list .k { color: var(--muted); padding: 9px 0; border-bottom: 1px solid #f1f4f9; }
.kv-list .v { padding: 9px 0; border-bottom: 1px solid #f1f4f9; word-break: break-all; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .ico { opacity: .45; }
.empty-state p { margin: 10px 0 0; font-size: 13px; }
.tip-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 5px; padding: 12px 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.progress { height: 6px; background: #edf1f7; border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-mono { font-family: var(--mono); }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.w100 { width: 100%; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.nowrap { white-space: nowrap; }
.chart-box { position: relative; height: 280px; width: 100%; }
.chart-box.sm { height: 240px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--text-2); font-family: inherit; }
.seg button.active { background: var(--navy-2); color: #fff; }
.price-card { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 22px; display: flex; flex-direction: column; transition: box-shadow .18s; }
.price-card:hover { box-shadow: 0 10px 28px rgba(15,35,70,.08); border-color: #cfdbee; }
.price-card .type { font-size: 11.5px; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid #d5e1f8; padding: 2px 8px; border-radius: 3px; align-self: flex-start; }
.price-card h3 { font-size: 17px; margin: 12px 0 4px; }
.price-card .desc { font-size: 12.5px; color: var(--muted); min-height: 38px; }
.price-card .price { font-size: 26px; font-weight: 650; color: var(--navy); margin: 14px 0 4px; }
.price-card .price small { font-size: 13px; font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 12px 0 18px; font-size: 12.5px; color: var(--text-2); }
.price-card ul li { padding: 4px 0; display: flex; gap: 7px; align-items: center; }
.price-card .btn { margin-top: auto; }

/* ---------- 补充组件：卡片底部 / 单选卡 / 富文本编辑器 ---------- */
.card-foot {
  padding: 12px 18px; border-top: 1px solid var(--line); background: #fbfcfe;
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.card-foot .hint { margin-right: auto; font-size: 12px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.mt10 { margin-top: 10px; }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.hint { font-size: 12px; color: var(--muted); }

.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid #eef2f8;
}
.switch-row:last-child { border-bottom: 0; }
.switch-row strong { font-size: 13.5px; color: var(--navy); font-weight: 600; }
.switch-row p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.6; }
.logo-preview {
  width: 76px; height: 76px; border: 1px dashed var(--line-strong); border-radius: 8px;
  background: #f8fafc; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 14px 16px;
  background: #fff; transition: border-color .16s, box-shadow .16s;
}
.radio-card:hover { border-color: #b6c6dd; }
.radio-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .08); }
.radio-card input { margin-top: 3px; accent-color: var(--brand); }
.radio-card-body { display: flex; flex-direction: column; gap: 3px; }
.radio-card-body strong { font-size: 13.5px; color: var(--navy); }
.radio-card-body span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.editor-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; background: #f8fafc; padding: 7px 8px;
}
.tbtn {
  height: 26px; min-width: 28px; padding: 0 8px; font-family: inherit; font-size: 12.5px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--text-2); cursor: pointer;
}
.tbtn:hover { background: var(--brand-soft); border-color: #bfd0ef; color: var(--brand-dark); }
.tsep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 4px; }
.editor-area {
  min-height: 320px; max-height: 60vh; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 20px; background: #fff; outline: none; font-size: 13.5px; line-height: 1.85;
  color: var(--text);
}
.editor-area:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.07); }
.editor-area h2 { font-size: 19px; margin: 14px 0 8px; }
.editor-area h3 { font-size: 16px; margin: 12px 0 6px; }
.editor-area ul { padding-left: 22px; }
.editor-area table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
.editor-area table th { background: #f3f6fb; text-align: left; }
.editor-area table th, .editor-area table td { border: 1px solid var(--line-strong); padding: 7px 10px; }
.editor-area pre { background: #0c1a30; color: #d5e3f7; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; }
.editor-area hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid.five { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 12px 0 40px rgba(0,0,0,.25); }
  .main { margin-left: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .content { padding: 18px 14px 40px; }
  .grid-2, .grid-3, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .landing-hero h1 { font-size: 26px; }
  .landing-nav .links { display: none; }
  .landing-hero { padding: 50px 18px 56px; }
  .landing-section { padding: 40px 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 560px) {
  .stat-grid, .stat-grid.three, .stat-grid.five { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .topbar .crumb { display: none; }
  .topbar .user-name { display: none; }
  .modal-mask { padding: 20px 10px; }
  .pager .info { display: none; }
  .price-card { padding: 18px; }
}
