/* M2 控制台样式。所有颜色都取自 /theme.css 注入的 CSS 变量 —— 租户换色不需要重新构建。 */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1a1d24;
  --muted: #6b7280;
  --border: #e4e7ee;
  --danger: #d64545;
  --ok: #1f9d55;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --brand-primary: #2f6feb;
  --brand-accent: #f5a623;
  --brand-primary-soft: #eef3fe;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: #f0f2f6; padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ellipsis { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.inline { display: inline; }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 17px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-primary); color: #fff; font-weight: 700; font-size: 15px;
}
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { color: var(--text); font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 9px;
  background: var(--brand-primary); color: #fff; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.3;
}
.btn:hover { background: var(--brand-primary-dark, #2a63d4); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--brand-primary-soft); color: var(--text); }
.btn-quiet { background: transparent; color: var(--muted); font-weight: 500; padding: 6px 10px; }
.btn-quiet:hover { background: #eef1f6; color: var(--text); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 8px; }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.22; margin: 16px 0 18px; letter-spacing: -.5px; }
.hl { color: var(--brand-primary); }
.lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.pill {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  font-size: 13px; font-weight: 600;
}
.cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; padding-bottom: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card-icon { font-size: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: 14px;
  color: var(--text); font-size: 13px; line-height: 1.95;
}
.card ul li::before {
  content: "·"; position: absolute; left: 2px; top: -1px;
  color: var(--brand-primary); font-weight: 700; font-size: 16px;
}

/* ---------- 套餐 ---------- */
.plans { padding: 48px 20px 72px; }
.plans h2 { font-size: 26px; text-align: center; margin: 0 0 8px; }
.plans-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 28px; }
/* 2026-11-09 起五列：四档套餐 + 第 5 块「开发者API版流量包」 */
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--plan-accent, var(--border));
  border-radius: var(--radius); padding: 26px 20px 22px; text-align: left;
}
/* 灰 → 蓝 → 紫 → 黑金：用色阶暗示从基础走向高级（定价页排版建议 2） */
.plan-gray { --plan-accent: #9aa3b2; --plan-tint: #f4f6f9; }
.plan-blue { --plan-accent: #2f6feb; --plan-tint: #eef4ff; }
.plan-purple { --plan-accent: #6b46c1; --plan-tint: #f3effc; }
.plan-blackgold { --plan-accent: #23283a; --plan-tint: #f6f2e8; }
.plan-blackgold .price { color: #8a6d1f; }
/* 第 5 块流量包用青绿：与四档的价格卡区分开，一眼看出"这不是套餐" */
.plan-teal { --plan-accent: #0f7b6c; --plan-tint: #e8f6f2; }
.plan-hot {
  border-color: var(--brand-primary); border-top-color: var(--brand-primary);
  box-shadow: 0 10px 28px rgba(47, 111, 235, .14);
}
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand-primary); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { margin: 0 0 4px; font-size: 17px; }
.price { font-size: 30px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; color: var(--plan-accent); }
.price small { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.plan-summary { margin: 0 0 6px; font-size: 13px; color: var(--text); line-height: 1.65; }
.plan-summary strong { color: var(--plan-accent); }
.plan-audience { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.plan-base {
  background: var(--plan-tint, #f4f6f9); border-radius: 8px;
  padding: 9px 11px; font-size: 12.8px; color: var(--text); margin-bottom: 4px;
}
.plan-sec h4 { margin: 14px 0 4px; font-size: 12.8px; color: var(--text); }
.plan-sec ul { list-style: none; margin: 0; padding: 0; }
.plan-sec li {
  position: relative; padding-left: 12px; font-size: 12.6px; line-height: 1.75; color: var(--text);
}
.plan-sec li::before {
  content: "·"; position: absolute; left: 1px; top: -1px;
  color: var(--plan-accent); font-weight: 700;
}
/* 受限项：浅灰 + 必须给出可花钱解决的升级方向（排版建议 3） */
.plan-sec li.off { color: #9aa1ad; }
.plan-sec li.off::before { color: #c2c8d2; }
.up {
  display: inline-block; margin-left: 5px; font-size: 11px; line-height: 1.6;
  color: var(--plan-accent); background: var(--plan-tint, #f4f6f9);
  border-radius: 999px; padding: 0 7px; white-space: nowrap;
}
.plan-sec:last-of-type { margin-bottom: 16px; }
/* 四列等高：CTA 统一贴底，避免长短不一显得参差 */
.plan .btn { margin-top: auto; }
.plan .btn-block { width: 100%; text-align: center; }

/* ---------- 第 5 卡：开发者API版流量包（2026-11-09） ----------
   一次买断的加购额度，不是订阅档：三个小包纵向排列，下面是 5 条购买须知。
   价格与额度都由 config.PACKS 渲染，这里只管排版。 */
.pack-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 6px; }
.pack {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: var(--plan-tint, #f7f9fb);
}
.pack-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pack-name { font-size: 12.8px; font-weight: 600; color: var(--text); }
.pack-price { font-size: 15px; font-weight: 700; color: var(--plan-accent); white-space: nowrap; }
.pack-units { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.pack-scene { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
/* 每档的「立即购买」：小一号的实心按钮，压在场景说明下面。
   2026-11-10 起三档各自可下单（原来整张卡只有一个"联系购买"）。 */
.pack { display: flex; flex-direction: column; }
.pack-buy {
  margin-top: 8px; align-self: flex-start;
  padding: 5px 14px; font-size: 12.5px; line-height: 1.4;
  background: var(--plan-accent); border-color: var(--plan-accent); color: #fff;
}
.pack-buy:hover { filter: brightness(1.08); color: #fff; }

/* ---------- 控制台 /packs（2026-11-10） ----------
   官网三档「立即购买」点进来的落地页：三张卡并排 + 订单流水。
   下单只落"待支付"，所以状态标签要一眼能分辨。 */
.pack-grid {
  display: grid; gap: 12px; margin-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.pack-card {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; background: var(--plan-tint, #f7f9fb);
  display: flex; flex-direction: column;
}
.pack-card-on { border-color: var(--plan-accent); box-shadow: 0 0 0 2px var(--plan-accent-alpha, #0f7b6c22); }
.pack-card .pack-name { font-size: 13.2px; font-weight: 600; }
.pack-card .pack-price { font-size: 16px; font-weight: 700; color: var(--plan-accent); }
.pack-card .pack-units { margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.pack-card .pack-scene { margin: 4px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.pack-card form { margin-top: auto; }
.pack-buy-btn {
  margin-top: auto; background: var(--plan-accent); border-color: var(--plan-accent);
  color: #fff; font-size: 13px; padding: 7px 12px;
}
.pack-buy-btn:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }
.pack-buy-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 自动续费条（2026-11-26《4.扩容包定价》）：SaaS 触达包按月订阅，客户要能在下单位置
   就地看到开关状态并取消。左边状态、右边按钮，窄屏自动换行。 */
.renew-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 14px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fbfcfd;
}
.renew-bar.renew-on { background: var(--plan-tint, #f2f8ff); border-color: #cfe3ff; }
.renew-text { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.renew-text strong { font-size: 13px; }
.renew-text span { color: var(--muted); }
.renew-bar form { margin: 0; }
.renew-hint { margin: 6px 0 0; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.7;
  background: var(--plan-tint, #eef4f9); color: var(--text); border: 1px solid var(--border);
}
.tag-warn { background: #fff5e6; border-color: #f0c98a; color: #8a5a00; }
.pack-notes h4 { margin: 10px 0 6px; font-size: 12.8px; color: var(--text); }
.pack-notes ol { margin: 0; padding-left: 17px; }
.pack-notes li {
  font-size: 11.8px; color: var(--muted); line-height: 1.55; margin-bottom: 5px;
}
.pack-notes li::marker { color: var(--plan-accent); }
.plans-note {
  max-width: 760px; margin: 26px auto 0; text-align: center;
  font-size: 12.5px; color: var(--muted); line-height: 1.8;
}
/* 定价区底部「承诺」（2026-11-20《定价标题变更》）：一行 12.5px 灰字读不到，
   需求要求视觉强化 —— 改成浅色卡片 + 盾牌，左边缘用品牌色压一条竖线。
   三条词条分三行渲染，税费单独用虚线隔开（承诺是主信息，税费是补充说明）。 */
.plans-promise {
  max-width: 760px; margin: 32px auto 0; padding: 16px 20px;
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: linear-gradient(180deg, #f3f7ff 0%, #fbfdff 100%);
  border: 1px solid #dbe6fb; border-left: 3px solid var(--brand-primary);
  border-radius: 12px;
}
.plans-promise .promise-ico { font-size: 23px; line-height: 1.15; }
.plans-promise .promise-text { flex: 1; min-width: 0; }
.plans-promise .promise-head { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--text); }
.plans-promise .promise-body { margin: 0; font-size: 13.5px; color: #374151; line-height: 1.7; }
.plans-promise .promise-tax {
  margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #cfdcf6;
  font-size: 12.5px; color: var(--muted); line-height: 1.6;
}
/* 五列太挤时先降到三列，再降到两列（1240 是五列开始压字宽的临界点） */
@media (max-width: 1240px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- 表单 ---------- */
.auth { display: flex; justify-content: center; padding: 56px 20px 80px; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0 0 6px; font-size: 21px; }
.auth-card > .muted { margin-top: 0; }
label { display: block; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: #374151; }
input, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px var(--brand-primary-soft); }

/* ---------- 提示 ---------- */
.alert { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin: 14px 0; }
.alert-error { background: #fdecec; color: #a32626; border: 1px solid #f5c6c6; }
.alert-ok { background: #e9f7ef; color: #17693c; border: 1px solid #bfe6cf; }

/* ---------- 控制台 ---------- */
.page { padding: 34px 20px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 25px; }
.page-head p { margin: 0; }
.page-actions { display: flex; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
/* 控制台顶部 5 张卡：订阅状态 / 基础配置 / 安全防线 / 增长引擎 / 客户资产 */
.stat-grid-5 { grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }
.stat-plan { font-size: 19px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
}
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 23px; font-weight: 700; }
.stat .muted { font-size: 12.5px; }

/* 用量进度条 */
.meter { display: block; height: 5px; border-radius: 3px; background: #eef1f6; overflow: hidden; margin: 2px 0 4px; }
.meter > i { display: block; height: 100%; background: var(--brand-primary); border-radius: 3px; }
.stat-value small { font-size: 14px; font-weight: 400; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.panel h2 { margin: 0 0 12px; font-size: 16px; }

table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.kv th { text-align: left; font-weight: 600; color: var(--muted); padding: 7px 0; width: 40%; }
table.kv td { padding: 7px 0; }
table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; padding: 7px 8px; border-bottom: 1px solid var(--border); }
table.list td { padding: 7px 8px; border-bottom: 1px solid #f1f3f7; }
.ok { color: var(--ok); font-weight: 600; }
.bad { color: var(--danger); font-weight: 600; }

.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; border: 1px solid var(--border); }

/* ---------- 代码块（挂件嵌入代码）---------- */
pre.code {
  margin: 12px 0; padding: 14px 16px; border-radius: 10px;
  background: #0f1620; color: #d8e2f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.6;
  overflow-x: auto; white-space: pre; tab-size: 2;
}
.preview-box {
  margin-top: 16px; padding: 16px; border: 1px dashed var(--border);
  border-radius: 10px; background: var(--bg); text-align: center;
}
.preview-topbar { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 20px 0; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 8px; }

/* ---------- 坐席管理 ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: #eef1f6; color: #4b5563;
}
.badge-owner { background: var(--brand-primary-soft); color: var(--brand-primary); }
.badge-admin { background: #eaf2ff; color: #2a63d4; }
.badge-member { background: #f0f2f6; color: #4b5563; }
.badge-on { background: #e9f7ef; color: #17693c; }
.badge-off { background: #fdecec; color: #a32626; }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }
.row-actions select { width: auto; margin: 0; padding: 4px 8px; font-size: 12.5px; border-radius: 7px; }
.row-actions .btn { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }

/* 邀请表单 */
.invite-grid { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr auto; gap: 10px; align-items: end; }
.invite-grid label { margin: 0; }
.invite-grid input, .invite-grid select { margin-top: 4px; }
.invite-grid .btn { white-space: nowrap; }
@media (max-width: 720px) { .invite-grid { grid-template-columns: 1fr; } }

/* 一次性凭据展示 */
.cred {
  margin-top: 12px; padding: 14px 16px; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a;
}
.cred-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cred-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; border: 1px solid var(--border); border-radius: 7px;
  padding: 6px 10px; font-size: 13.5px; user-select: all;
}
.alert-warn { background: #fffbeb; color: #8a5a00; border: 1px solid #fde68a; }

/* ---------- 语言切换 ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-switch-label {
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.lang-switch select {
  font: inherit; font-size: 12.5px; line-height: 1.6;
  padding: 3px 8px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: inherit;
  max-width: 150px;
}
.lang-switch select:hover { border-color: var(--brand-primary); }
.lang-switch select:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 1px; }
@media (max-width: 720px) {
  .lang-switch-label { display: none; }
  .lang-switch select { max-width: 120px; }
}

/* 阿拉伯语等从右往左书写的语言：整体翻转，语言下拉保持可读 */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .lang-switch { direction: ltr; }
[dir="rtl"] .lang-switch-label { display: none; }

/* ---------- 官网 4+1 页脚（《需求/10.底部4+1模块》） ---------- */
.site-footer {
  margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border);
  padding: 40px 0 0; color: var(--muted); font-size: 13.5px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px 32px;
  padding-bottom: 32px;
}
.foot-col h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); opacity: .75; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 7px 0; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--brand-primary); text-decoration: none; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 16px; }
.foot-logo:hover { text-decoration: none; }
.foot-slogan { color: var(--text) !important; font-size: 13.5px; line-height: 1.5; max-width: 28em; }
.foot-line { color: var(--muted); font-size: 13px; word-break: break-word; }
.foot-bottom { border-top: 1px solid var(--border); padding: 14px 0 18px; }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--muted); }
/* ICP 备案号（2026-11-17）：页脚是灰底小字，跟全局蓝色链接会太跳；
   hover 加深而不是变蓝，保持「版权信息」的整体感。 */
.foot-bottom a.foot-icp { color: var(--muted); }
.foot-bottom a.foot-icp:hover { color: var(--text); text-decoration: none; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-bottom .wrap { flex-direction: column; }
}
[dir="rtl"] .foot-col ul { padding-right: 0; }

/* ---------- 内容页 ---------- */
.page-head { padding: 44px 20px 8px; }
/* 定价页头（2026-11-20《定价标题变更》）：主标题 + 副标题上下排。
   `.page-head` 默认是 flex 左右分栏（标题左、导语右），那是「标题 + 一句话说明」
   的版式；这一对是「营销主标题 + 副标题」，并排会读成两列平行信息，
   而且主标题一长，窄屏换行后副标题会掉到下一行显得断掉。 */
.page-head-stack { display: block; }
.page-head-stack .lead { margin: 10px 0 0; }
.page-head h1 { margin: 0 0 10px; font-size: 32px; letter-spacing: -.01em; }
.page-head .lead { margin: 0; color: var(--muted); font-size: 16px; max-width: 46em; }
.page-body { padding: 12px 20px 8px; max-width: 880px; }
.page-block { margin: 26px 0; }
.page-block h2 { font-size: 19px; margin: 0 0 8px; }
.page-block p { margin: 8px 0; color: #313741; }
.page-block ul { margin: 10px 0; padding-inline-start: 22px; }
.page-block li { margin: 5px 0; }
.page-block .code { background: #f6f8fb; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 12.5px; }
.page-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.page-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.page-item h3 { margin: 0 0 6px; font-size: 15.5px; }
.page-item p { margin: 0; color: var(--muted); font-size: 13.5px; }
.faq { margin: 24px 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 2px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin: 26px 0; }
.contact-info p { margin: 0 0 16px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--text); padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand-primary); outline-offset: 0; border-color: transparent; }
.notice { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin: 18px 0; }
.notice.ok { background: #e9f7ef; color: #15613a; border: 1px solid #b7e4c9; }
.notice.bad { background: #fdecec; color: #8f2323; border: 1px solid #f3c2c2; }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 首页集成渠道区块 ---------- */
.integrations { padding: 8px 20px 24px; }
.integrations h2 { font-size: 22px; margin: 0 0 6px; }
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 8px; }
.integ { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.integ h3 { margin: 0 0 5px; font-size: 14.5px; }
.integ p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .integ-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .integ-grid { grid-template-columns: 1fr; } }

/* ---------- 锚点跳转：平滑滚动 + 到达后短暂高亮 ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes anchorFlash {
  0%   { box-shadow: 0 0 0 3px rgba(47, 111, 235, .35); }
  100% { box-shadow: 0 0 0 3px rgba(47, 111, 235, 0); }
}
.anchor-flash { animation: anchorFlash 1.8s ease-out 1; border-radius: 14px; }

/* ---------- 官网内容页：博客分类 / 订阅 / 状态页（20261105 需求新增） ---------- */
.blog-cat { margin: 34px 0 6px; }
.blog-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.blog-cat-head h2 { font-size: 19px; margin: 0; }
.blog-cat-head .more { font-size: 13px; }
a.page-item.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.page-item.card-link:hover { border-color: var(--brand-primary); transform: translateY(-2px); text-decoration: none; }
a.page-item.card-link:hover h3 { color: var(--brand-primary); }
.page-item.card-link h3 { transition: color .15s ease; }

/* 订阅收集：《需求/6.博客》3.3 */
.subscribe { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 34px 0 8px; max-width: 580px; }
.subscribe label { display: block; font-weight: 700; margin-bottom: 10px; }
.subscribe-row { display: flex; gap: 10px; }
.subscribe-row input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; background: #fff; color: var(--text); }
.subscribe p { margin: 10px 0 0; }

/* 帮助中心按分类分组 */
.faq-group { margin: 30px 0; }
.faq-group h2 { font-size: 18px; margin: 0 0 4px; }

/* 定价卡里的小字说明（需求原文的括注句） */
.plan-sec li .plan-desc { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5; font-weight: 400; }
.plan-sec li.off .plan-desc { color: #9aa1ad; }

/* 博客正文行宽：正文比列表页窄一档，读起来不累 */
.article .page-block p { max-width: 720px; }

/* 服务状态页 */
.status-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.status-table th, .status-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.status-table th { background: #f2f4f8; font-size: 13px; color: var(--muted); font-weight: 600; }
.status-table tr:last-child td { border-bottom: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.dot-up { background: var(--ok); }
.dot-down { background: var(--danger); }
.dot-unknown { background: #c2c7d0; }

/* ==========================================================================
   登录 / 找回密码 / 重置密码（2026-11-13《1.登录界面设计》）
   独立页体系：不复用 .auth / .auth-card 的旧居中卡片，那套已不再被登录页引用。
   ========================================================================== */

.auth-body {
  background: #fff;
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.auth-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* 顶部：只放 Logo 与语言切换。需求给的是极简头，不要控制台导航 */
.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--border);
  background: #fff; position: relative; z-index: 2;
}
.auth-top .logo { color: var(--text); }

/* 左右 40:60（需求建议 5:7，实际用 40/60 —— 表单区要能放下一行 Google 按钮 + 两个字段不换行） */
.auth-split { flex: 1; display: grid; grid-template-columns: 40fr 60fr; min-height: 0; }

/* ---------- 左：品牌与信任背书 ---------- */
.auth-brand {
  position: relative; overflow: hidden; color: #fff;
  display: flex; align-items: center; padding: 44px 48px;
  background:
    radial-gradient(120% 85% at 12% 0%, #17356b 0%, rgba(23, 53, 107, 0) 58%),
    radial-gradient(95% 80% at 100% 100%, #0d2a5c 0%, rgba(13, 42, 92, 0) 62%),
    linear-gradient(158deg, #0b1834 0%, #0a1226 56%, #070d1a 100%);
}
/* 科技感网格：只在左上角显影，右下角淡出，避免整屏条纹显得脏 */
.auth-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 26% 14%, #000 0%, transparent 76%);
          mask-image: radial-gradient(circle at 26% 14%, #000 0%, transparent 76%);
}
/* 底部一抹品牌色光晕，让深色块不至于死板 */
.auth-brand::after {
  content: ""; position: absolute; left: -10%; bottom: -32%; width: 70%; height: 62%;
  background: radial-gradient(circle, var(--brand-primary) 0%, transparent 68%);
  opacity: .30; filter: blur(28px); pointer-events: none;
}
.auth-brand-inner { position: relative; z-index: 1; max-width: 420px; }
.auth-shield {
  width: 104px; height: 122px; display: block; margin-bottom: 26px;
  filter: drop-shadow(0 18px 40px rgba(47, 111, 235, .55));
}
.auth-brand-title {
  margin: 0 0 12px; font-size: 27px; line-height: 1.32; font-weight: 700;
  letter-spacing: -.2px;
}
.auth-brand-slogan {
  margin: 0 0 30px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .72);
}
.auth-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.auth-badges li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .84);
}
.auth-badges svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: #7fb0ff; }

/* ---------- 右：表单区 ---------- */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-title { margin: 0 0 6px; font-size: 26px; letter-spacing: -.3px; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

/* 字段级错误：需求三-1「不要弹全局 Toast，在输入框下方用红字」 */
.field { display: block; margin: 0 0 16px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 7px; }
.field input { margin-top: 0; }
.field-err { display: none; margin-top: 6px; font-style: normal; font-size: 12.5px; line-height: 1.5; color: #c0392b; }
.field-bad .field-err { display: block; }
.field-bad input { border-color: #e0a3a3; }
.field-bad input:focus { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }

/* 密码小眼睛 */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: #8b93a1; cursor: pointer;
  padding: 0; line-height: 0;
}
.pw-eye svg { width: 19px; height: 19px; }
.pw-eye:hover { background: #f1f3f7; color: #4b5563; }
/* 密文状态画一道斜杠（"当前是隐藏的"），点开后斜杠消失 */
.pw-slash { opacity: 1; }
.pw-eye.on .pw-slash { opacity: 0; }
.pw-eye.on { color: var(--brand-primary); }

/* 记住我 + 忘记密码 */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; font-weight: 500; cursor: pointer; }
.check input[type="checkbox"] {
  width: 15px; height: 15px; margin: 0; padding: 0; flex: 0 0 15px;
  accent-color: var(--brand-primary); cursor: pointer;
}
.auth-link { font-size: 13px; }
.auth-link-strong { font-weight: 600; }
.auth-submit { margin-top: 2px; }

.auth-footnote { margin: 20px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-dev { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Google 按钮：白底描边，不带品牌主色 —— 第三方登录要是蓝的，会和主按钮抢焦点 */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px; margin-bottom: 4px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--text); font-size: 14px; font-weight: 600; transition: background .16s, border-color .16s, box-shadow .16s;
}
.btn-google:hover { background: #f7f8fa; border-color: #d3d8e2; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.g-icon { width: 18px; height: 18px; flex: 0 0 18px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; color: var(--muted); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* 表单级提示（限流 / 账号停用 / 重置成功） */
.auth-alert {
  padding: 11px 14px; margin: 0 0 18px; border-radius: 9px; font-size: 13.5px; line-height: 1.55;
  background: #fdecec; color: #a32626; border: 1px solid #f5c6c6;
}
.auth-note { padding: 13px 15px; margin: 0 0 18px; border-radius: 9px; font-size: 13.5px; line-height: 1.6; }
.auth-note.ok { background: #e9f7ef; color: #17693c; border: 1px solid #bfe6cf; }
.auth-note.warn { background: #fff6e6; color: #8a5a00; border: 1px solid #f4ddb0; }
.auth-note.warn a { color: #8a5a00; text-decoration: underline; }

/* ---------- 底部合规区（Paddle 审核必看） ---------- */
.auth-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 20px; padding: 15px 24px; border-top: 1px solid var(--border);
  background: #fff; font-size: 12.5px; color: var(--muted);
}
.auth-legal nav { display: flex; flex-wrap: wrap; gap: 16px; }
.auth-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--brand-primary); }

/* ---------- 响应式：窄屏把左栏压成顶部横幅 ---------- */
@media (max-width: 940px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { padding: 26px 24px 28px; }
  .auth-shield { width: 54px; height: 64px; margin-bottom: 14px; }
  .auth-brand-title { font-size: 20px; margin-bottom: 8px; }
  .auth-brand-slogan { margin-bottom: 16px; font-size: 13.5px; }
  .auth-badges { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .auth-badges li { font-size: 12.5px; }
  .auth-panel { padding: 30px 22px 40px; }
  .auth-top { padding: 12px 18px; }
}

@media (max-width: 480px) {
  .auth-title { font-size: 22px; }
  .auth-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .auth-legal { flex-direction: column; text-align: center; gap: 6px; }
}

/* ================================================================
   卖家控制台（《2.用户界面设计》）—— 左侧七板块导航 + 内容区
   颜色全部走 /theme.css 注入的变量：租户换品牌色不用重建样式。
   ================================================================ */
.cz-body { background: var(--bg); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

.cz-imp {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px; background: #7a2e0e; color: #fff; font-size: 14px;
}
.cz-imp strong { font-weight: 700; }
.cz-imp .btn { background: #fff; color: #7a2e0e; border: 0; }

.cz-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.cz-nav {
  background: var(--surface); border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.cz-logo { display: flex; align-items: center; gap: 9px; padding: 4px 8px 10px; color: var(--text); font-weight: 700; }
.cz-logo:hover { text-decoration: none; }
.cz-menu { display: flex; flex-direction: column; gap: 2px; }
.cz-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: 14px;
}
.cz-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; flex: 0 0 auto; }
.cz-item:hover { background: #f2f5fa; text-decoration: none; }
.cz-item.on { background: var(--brand-primary-soft); color: var(--brand-primary); font-weight: 600; }
.cz-item.on svg { opacity: 1; }
.cz-dot {
  margin-inline-start: auto; font-style: normal; font-size: 11px; font-weight: 700;
  background: var(--danger); color: #fff; border-radius: 999px; padding: 1px 6px;
}
.cz-side-foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 10px 4px; border-top: 1px solid var(--border); font-size: 13px;
}
.cz-plan { font-weight: 700; color: var(--brand-primary); font-size: 13px; }
.cz-side-link { color: var(--muted); font-size: 13px; }

.cz-main { padding: 22px 26px 56px; min-width: 0; }
.cz-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.cz-h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.2px; }
.cz-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.cz-top-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cz-user { font-size: 13px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cz-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0;
}
.cz-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cz-card-head h2 { font-size: 15.5px; margin: 0; }
/* 阶段标注（2026-12-02《板块位置调整》）：事前 / 事中 / 事后。
   三个板块按时间轴排，标题后面跟一个阶段词，用户不用读完正文就知道
   这一块是"付款前/付款时/付款后"哪一步。用 muted 弱化 —— 它是标注不是名字。
   margin 用 inline-start，阿拉伯语 RTL 下自动落到右侧；词条自带括号，
   半角/全角由各语言自己决定，模板里不写死。 */
.cz-phase { margin-inline-start: .4em; font-weight: 600; color: var(--muted); }
.cz-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.cz-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cz-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cz-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cz-grid > .cz-card { margin-bottom: 0; }

.cz-metric { display: flex; flex-direction: column; gap: 6px; }
.cz-metric-label { font-size: 12.5px; color: var(--muted); }
.cz-metric-value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.cz-metric-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 3px; }
.cz-metric-value.ok { color: var(--ok); }
.cz-metric-value.warn { color: #b7791f; }
.cz-metric-value.bad { color: var(--danger); }
.cz-metric-note { font-size: 12.5px; color: var(--muted); }

.cz-meter { display: block; height: 6px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.cz-meter > i { display: block; height: 100%; background: var(--brand-primary); border-radius: 999px; }
.cz-meter.full > i { background: var(--danger); }

.cz-flywheel { width: 100%; height: auto; max-height: 200px; }
.cz-chart { width: 100%; height: auto; max-height: 190px; }
.cz-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.cz-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.cz-sw.sw-bar { background: var(--brand-primary); opacity: .35; }
.cz-sw.sw-line { background: var(--brand-primary); height: 3px; border-radius: 2px; }

.cz-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cz-todo-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; font-size: 13.5px; }
.cz-todo-badge {
  min-width: 42px; text-align: center; font-weight: 700; font-size: 12.5px;
  background: #fff; border: 1px solid var(--border); border-radius: 7px; padding: 2px 7px;
}
.cz-todo-item.lv-high .cz-todo-badge { color: var(--danger); border-color: #f3c8c8; background: #fdf2f2; }
.cz-todo-item.lv-mid .cz-todo-badge { color: #b7791f; border-color: #f2e0bd; background: #fdf8ee; }
.cz-todo-item.lv-ok .cz-todo-badge { color: var(--ok); border-color: #c8e6d4; background: #f1faf4; }
.cz-todo-text { flex: 1; }
.cz-todo-go { font-size: 12.5px; white-space: nowrap; }

.cz-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cz-table th, .cz-table td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cz-table th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: none; white-space: nowrap; }
.cz-table tbody tr:last-child td { border-bottom: 0; }
.cz-table.cz-kv th { width: 40%; font-weight: 500; }

.cz-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: #f0f3f8; color: var(--muted); white-space: nowrap;
}
.cz-tag.lv-ok, .cz-tag.t-pass { background: #edf9f1; color: #17794a; }
.cz-tag.lv-mid, .cz-tag.t-review { background: #fdf6e7; color: #8a6116; }
.cz-tag.lv-high, .cz-tag.t-block { background: #fdeeee; color: #b32d2d; }
.cz-tag.lv-low { background: #f0f3f8; color: var(--muted); }

.cz-empty { padding: 26px 8px; text-align: center; }
.cz-empty strong { display: block; font-size: 14.5px; margin-bottom: 6px; }
.cz-empty p { margin: 0; color: var(--muted); font-size: 13px; max-width: 560px; margin-inline: auto; }

.cz-onboard { background: linear-gradient(180deg, #fff, var(--brand-primary-soft)); }
.cz-steps { margin: 12px 0 16px; padding-inline-start: 20px; color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }

.cz-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cz-form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cz-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); min-width: 180px; }
.cz-field input, .cz-field select, .cz-field textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 11px;
}
.cz-field textarea { width: 100%; min-width: 520px; resize: vertical; }

.cz-flash { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px; }
.cz-flash-ok { background: #edf9f1; color: #17794a; border: 1px solid #c8e6d4; }
.cz-flash-err { background: #fdeeee; color: #b32d2d; border: 1px solid #f3c8c8; }
.cz-flash-warn { background: #fdf8ee; color: #8a6116; border: 1px solid #f2e0bd; }

.cz-key { display: inline-block; margin: 6px 0; padding: 6px 10px; background: #0b1834; color: #d7e3ff; border-radius: 7px; word-break: break-all; }

.cz-pyramid { display: flex; flex-direction: column; gap: 10px; }
.cz-pyr-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 130px 90px; align-items: center; gap: 10px; font-size: 13.5px; }
.cz-pyr-name { color: var(--muted); }
.cz-pyr-bar { height: 14px; background: #f0f3f8; border-radius: 7px; overflow: hidden; }
.cz-pyr-bar > i { display: block; height: 100%; border-radius: 7px; background: var(--brand-primary); }
.cz-pyr-bar > i.sg-high_value { background: #1f9d55; }
.cz-pyr-bar > i.sg-active { background: var(--brand-primary); }
.cz-pyr-bar > i.sg-at_risk { background: #d9a13b; }
.cz-pyr-bar > i.sg-lost { background: #d64545; }
.cz-pyr-num { font-weight: 600; text-align: end; }
.cz-pyr-spent { text-align: end; }

/* 统计周期（2026-12-02《2.3 用户界面-客户》一）：放在顶栏动作区，
   跟"通知/语言/头像"同一行。它只影响当前页，所以刻意做得比主按钮轻。 */
.cz-period label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.cz-period select {
  font: inherit; font-size: 12.5px; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: 7px; background: #fff; color: var(--text);
}

/* 核心行动指示区：这两张卡是"今天该给谁发消息"，数字要比普通指标卡更抢眼，
   但底部按钮只有一个动作，不再堆二级链接。 */
.cz-pool-num { font-size: 30px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; margin: 0 0 4px; }
.cz-pool-num small { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.cz-pool-side { font-size: 13px; margin: 0 0 6px; }
.cz-pool-side strong { font-size: 14px; }
/* 合计金额（2026-12-04《2.3.2》一）：空态也要显示，所以不能挂在"有数据"的分支里。
   金额用等宽数字、比说明文字重一档，0 人的时候这一行是整张卡唯一有信息量的内容。 */
.cz-pool-total {
  margin: 0 0 6px; font-size: 13px; color: var(--muted);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.cz-pool-total strong { font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cz-pool-fine { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.cz-pool-cta { margin: 0; padding-top: 10px; }

/* 右上角状态标签（金字塔"已剔除高危买家"）：绿色=确实剔过人，灰色=暂时没有人被剔。 */
.cz-badge { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cz-badge-ok { background: #eaf6ee; color: #17794a; border: 1px solid #cfe8d8; }
.cz-badge-idle { background: #f2f4f8; color: var(--muted); border: 1px solid var(--border); }

/* 复购周期冷启动（《2.3》三）：没有真实复购单时不是"空态"，而是一个可以立刻做完的决定。 */
.cz-cold { padding: 4px 0 2px; }
.cz-cold-title { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.cz-cold-body { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.cz-cold-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cz-cold-form .cz-field { min-width: 140px; }
.cz-cold-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* SKU 复购周期数据表（2026-12-03《2.3.1》二）
   全宽 + 横向可滚：SKU 名可能很长，宁可让表格自己出滚动条，
   也不把「当前周期 / 数据来源 / 状态」挤到换行 —— 这三列要横向对比着看。 */
.cz-cyc .cz-card-head { margin-bottom: 4px; }
.cz-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* 2026-12-04《20261204-4/调整1》：卡片"主标题 + 副标题"两行结构。
   副标题原来是独立的一条浅蓝横幅（.cz-banner），占满一行、把标题和 tab 隔开；
   改成标题下的弱化小字后，层级是"名字 → 一句话说明"，不再抢标题。
   类名刻意用 `.cz-card-sub` 而不是 `.cz-sub` —— 后者是**页面级**副标题
   （`_console_base.html` 的 `{% block sub %}` 在用），重名会把全站页头副标题一起改小。
   `align-items: baseline` 仍由 .cz-card-head 提供：列的基线取首行（h2），
   所以右侧「同步最新商品」和标题对齐，不会被副标题拽下去。 */
.cz-head-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cz-card-sub { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
/* 2026-12-04《2.3.2》一：表级操作组挪到 tab 行之后、搜索框之前。
   `margin-left:auto` 只加在搜索框上 —— 这样"tab | 按钮组"贴着左边读成一句，
   搜索框被推到最右，窄屏折行时也是"tab / 按钮 / 搜索"的顺序，不会插队。 */
.cz-cyc-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.cz-cyc-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz-cyc-tools .cz-search { margin-left: auto; }
/* 浮层改为「跟着按钮向右展开」：按钮已经挪到 tab 行左侧，若仍按右边缘对齐，
   300px 的浮层会往左溢出视口（窄屏折行后按钮几乎贴左边，必然越界）。 */
.cz-cyc-ops .cz-pop-form { inset-inline-start: 0; inset-inline-end: auto; max-width: calc(100vw - 40px); }
.cz-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cz-tab {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); text-decoration: none; white-space: nowrap;
}
.cz-tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.cz-tab.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.cz-search input {
  font: inherit; font-size: 13px; padding: 7px 11px; min-width: 200px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.cz-cyc-wrap { overflow-x: auto; }
.cz-cyc-table { min-width: 720px; }
.cz-cyc-prod { display: flex; flex-direction: column; gap: 2px; }
.cz-cyc-title { font-weight: 600; }
.cz-cyc-sku { font-size: 11.5px; color: var(--muted); }
.cz-src { font-size: 12.5px; white-space: nowrap; }
.cz-src-actual { color: #17794a; font-weight: 600; }
.cz-cyc-sample { display: block; font-size: 11.5px; color: var(--muted); }
.cz-dot { font-size: 12.5px; white-space: nowrap; }
.cz-dot-wait { color: #8a6116; }
.cz-dot-on { color: var(--muted); }
.cz-dot-auto { color: #17794a; font-weight: 600; }
.cz-cyc-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* 行内「修改」：展开一个天数输入，不做弹窗 —— 一次改一个数字，
   弹窗的遮罩与打开动画比这次操作本身还重。 */
.cz-inline-edit { position: relative; }
.cz-inline-edit > summary { list-style: none; cursor: pointer; }
.cz-inline-edit > summary::-webkit-details-marker { display: none; }
.cz-edit-form { display: flex; gap: 6px; margin-top: 6px; }
.cz-edit-form input {
  width: 74px; font: inherit; font-size: 13px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: 7px;
}
/* 明细侧滑抽屉（《2.3.1》二-3）：从右侧滑出，遮罩吃掉背景点击。 */
.cz-drawer { position: fixed; inset: 0; z-index: 60; }
.cz-drawer-mask { position: absolute; inset: 0; background: rgba(11, 24, 52, .38); }
.cz-drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(400px, 92vw);
  background: #fff; box-shadow: -12px 0 32px rgba(16, 32, 64, .16);
  padding: 22px 22px 26px; overflow-y: auto;
}
.cz-drawer-panel h3 { margin: 0 0 4px; font-size: 16px; }
.cz-drawer-x {
  position: absolute; inset-block-start: 10px; inset-inline-end: 12px;
  border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
}
.cz-drawer-body p { margin: 0 0 10px; font-size: 13.5px; }
/* 金字塔现在与"SKU 复购周期"并排，卡片变窄后 120+130+90 的固定列会挤掉进度条，
   窄屏先丢掉最右的"累计消费"（它的信息量最低），982px 以下整行已经塌成单列。 */
@media (max-width: 1150px) {
  .cz-pyr-row { grid-template-columns: 92px minmax(0, 1fr) 84px; }
  .cz-pyr-spent { display: none; }
}

.cz-copy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cz-copy { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fcfdff; }
.cz-copy-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 6px; }
.cz-copy-body { margin: 0 0 10px; font-size: 13.5px; color: var(--text); white-space: pre-wrap; }
.cz-copy-actions { display: flex; gap: 8px; }

.cz-hero-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px;
  background: linear-gradient(140deg, #0b1834, #16305c 60%, #1d3f74);
  color: #fff; border-radius: 16px; padding: 24px 26px; margin-bottom: 16px;
}
.cz-hero-text h2 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.cz-hero-text p { margin: 0 0 16px; color: #c9d6ef; font-size: 14px; max-width: 620px; }
.cz-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.cz-hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.cz-hero-stats .small { color: #9fb2d4 !important; }
.cz-hero-stats strong { font-size: 20px; }
.cz-hero-actions { display: flex; flex-direction: column; gap: 8px; align-self: center; }
.cz-hero-actions .btn { background: #fff; color: #16305c; border: 0; }
.cz-hero-actions .btn-ghost { background: transparent; color: #dce6fa; border: 1px solid #3c5a8c; }

.cz-chan { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.cz-chan strong { display: block; margin-bottom: 4px; }
.cz-row-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cz-kpi-row { display: flex; gap: 28px; flex-wrap: wrap; }
.cz-kpi-row div { display: flex; flex-direction: column; }
.cz-kpi-row strong { font-size: 20px; }

@media (max-width: 1100px) {
  .cz-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cz-shell { grid-template-columns: 1fr; }
  .cz-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cz-menu { flex-direction: row; flex-wrap: wrap; }
  .cz-side-foot { border-top: 0; flex-direction: row; gap: 12px; margin-top: 0; }
  .cz-grid-2, .cz-grid-3, .cz-grid-4 { grid-template-columns: 1fr; }
  .cz-field textarea { min-width: 0; }
  .cz-hero-card { grid-template-columns: 1fr; }
}

/* ================================================================
   控制台 2026-11-30《用户界面 2.1~2.8》新增组件
   ================================================================ */

/* 数据源连接状态胶囊（2.1 一） */
.cz-sources { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cz-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; color: #fff;
}
.cz-pill:hover { text-decoration: none; filter: brightness(1.04); }
.cz-pill.on { background: #10b981; border-color: #0ea472; }
.cz-pill.off { background: #f59e0b; border-color: #d98a06; }
.cz-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.85); }

/* 顶栏：通知 + 头像下拉（2.8） */
.cz-pop { position: relative; }
.cz-pop > summary { list-style: none; cursor: pointer; }
.cz-pop > summary::-webkit-details-marker { display: none; }
.cz-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: #fff;
}
.cz-bell svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cz-bell-dot {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center;
}
.cz-me { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); }
.cz-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--brand-primary); color: #fff; font-weight: 700; font-size: 12.5px;
}
.cz-me-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 「👤 个人中心」的头像位：emoji 自带颜色，塞进蓝底白字的圆里会变成
   蓝底上一团暗色，几乎看不清。改成透明底原色 emoji，与文字基线对齐。 */
.cz-avatar-i {
  width: auto; height: auto; background: none; color: inherit;
  font-size: 15px; font-weight: 400; line-height: 1;
}
/* 下拉顶部的身份行：只读、不可点，用来补回被"个人中心"四个字替代掉的姓名 */
.cz-pop-mail {
  margin: 4px 10px 6px; padding-bottom: 7px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cz-me-caret { color: var(--muted); font-size: 11px; }
.cz-pop-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 40;
  min-width: 190px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 30, 54, .12); padding: 6px; display: flex; flex-direction: column;
}
.cz-pop-menu a, .cz-pop-btn {
  display: block; width: 100%; text-align: start; padding: 8px 10px; border-radius: 7px;
  font-size: 13.5px; color: var(--text); background: none; border: 0; font-family: inherit; cursor: pointer;
}
.cz-pop-menu a:hover, .cz-pop-btn:hover { background: #f2f5fa; text-decoration: none; }
.cz-pop-title { margin: 6px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cz-pop-empty { margin: 6px 10px 8px; font-size: 13px; color: var(--muted); }
.cz-pop-notif { min-width: 300px; }
.cz-pop-notif a { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cz-dot-red, .cz-dot-amber { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.cz-dot-red { background: var(--danger); }
.cz-dot-amber { background: #d98a06; }

/* 飞轮节点可点（2.1 三-3） */
.cz-flywheel a.cz-fw-node { cursor: pointer; }
.cz-flywheel a.cz-fw-node:hover rect { fill: var(--brand-primary); fill-opacity: .14; stroke-opacity: .7; }
.cz-flywheel a.cz-fw-node:hover text { text-decoration: none; }

/* 新手接入指南（2.1 三-4） */
.cz-meter-lg { height: 8px; margin-bottom: 14px; }
.cz-ob-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cz-ob-list li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; background: #f7f9fc; }
.cz-ob-list li.todo { background: #fffaf0; }
.cz-ob-ico { width: 18px; text-align: center; color: var(--muted); flex: 0 0 auto; }
.cz-ob-list li.done .cz-ob-ico { color: var(--ok); }
.cz-ob-list li.todo .cz-ob-ico { color: #d98a06; }
.cz-ob-text { flex: 1; }
.cz-ob-go { font-size: 12.5px; white-space: nowrap; }

/* 趋势空状态骨架（2.1 三-5） */
.cz-chart-empty { opacity: .9; }
.cz-chart-skeleton { width: 100%; height: auto; max-height: 150px; }
.cz-empty-inline { padding: 12px 8px 4px; }
.cz-empty-cta { margin: 14px 0 0 !important; }

/* 卡片头右侧动作组 + 行内浮层（2.2 三） */
.cz-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cz-inline-pop { position: relative; }
.cz-inline-pop > summary { list-style: none; cursor: pointer; }
.cz-inline-pop > summary::-webkit-details-marker { display: none; }
.cz-pop-form {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30;
  width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 30, 54, .12); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.cz-pop-form .cz-field { min-width: 0; }

/* 全站体检（2.2 一） */
.cz-scan-main { display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.cz-scan-body { margin: 0 0 6px; font-size: 13.5px; max-width: 640px; }
.cz-scan-deep { margin-top: 12px; }
.cz-scan-deep > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cz-scan-deep .cz-form { margin-top: 12px; }

/* 文案工作台三栏（文案工作台 三） */
.cz-work { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 16px; margin-bottom: 16px; align-items: start; }
.cz-work-side { font-size: 13.5px; }
.cz-side-list { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cz-side-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cz-side-list strong { color: var(--text); }
.cz-side-btn { display: block; width: 100%; margin-bottom: 8px; text-align: center; }
/* 左栏里的「投喂 / 禁用词」在卡片内就地展开，不做绝对定位浮层：
   侧栏只有 250px，300px 宽的浮层会顶着页面左边缘，被视口裁掉一半。 */
.cz-side-pop { margin-bottom: 10px; }
.cz-side-pop > summary.cz-side-btn { margin-bottom: 0; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; }
.cz-side-pop[open] > summary.cz-side-btn { border-color: var(--brand-primary); color: var(--brand-primary); }
.cz-side-pop > .cz-pop-form {
  position: static; width: auto; inset-inline-end: auto; top: auto;
  box-shadow: none; padding: 10px; margin-top: 8px; background: #fbfcfe;
}
.cz-side-pop .cz-pop-form input[type="text"],
.cz-side-pop .cz-pop-form select,
.cz-side-pop .cz-pop-form textarea { width: 100%; font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.cz-side-pop .cz-pop-form textarea { resize: vertical; line-height: 1.55; }
.cz-side-foot-note { margin-top: 12px; }
.cz-work-sub { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cz-lib-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cz-lib-list > li { border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; background: #fcfdff; }
.cz-lib-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.cz-lib-title { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; }
.cz-lib-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* 合规文案主工作区（2026-12-03《2.4》一：左 3 : 右 7）
   左栏是"系统知道什么"，右栏是"系统产出了什么"。左栏窄是刻意的：
   卖家 90% 的时间在右栏点通过，左栏只要够读出依据。 */
.cz-work2 { display: grid; grid-template-columns: minmax(250px, 3fr) minmax(0, 7fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.cz-brain { display: flex; flex-direction: column; gap: 16px; font-size: 13.5px; }
.cz-guard-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.cz-guard-list li { color: var(--text); }
.cz-words { border-top: 1px solid var(--border); padding-top: 10px; }
.cz-words-label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; }
.cz-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cz-chip {
  display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: #f1f4f9; color: #475467; border: 1px solid var(--border);
}
.cz-chip-btn { font: inherit; font-size: 12px; cursor: pointer; }
.cz-chip-btn.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 600; }
.cz-tone-hint { margin: 0 0 8px; }
.cz-adv > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.cz-adv > summary::-webkit-details-marker { display: none; }
.cz-adv-title { font-weight: 600; font-size: 14px; }
.cz-adv[open] > summary { margin-bottom: 12px; }
.cz-form-stack { display: flex; flex-direction: column; gap: 10px; }
.cz-form-stack .cz-field { min-width: 0; }
.cz-copy-meta { font-size: 12px; color: var(--muted); }
.cz-copy-tone { font-size: 12px; color: #24406b; background: #f3f7ff; border-radius: 999px; padding: 2px 9px; }
.cz-tweak { display: inline-block; }
.cz-tweak > summary { list-style: none; cursor: pointer; }
.cz-tweak > summary::-webkit-details-marker { display: none; }
.cz-tweak > .cz-pop-form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
.cz-lib-link { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.cz-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }

/* 左栏合并模块（2026-12-04《2.4.1 布局调整》一）
   「合规安全防线」与「AI 品牌认知进度」原本是两张卡片，各带标题与说明，
   中间还空 16px —— 讲的却是同一件事。合并后靠一条分隔线分区，
   标题只留一个，左栏整体上移，右栏第一格草稿能在首屏露出来。 */
.cz-merge .cz-card-head { margin-bottom: 10px; }
.cz-merge .cz-card-head h2 { font-size: 14px; }
.cz-merge-sep { height: 1px; background: var(--border); margin: 14px 0 12px; scroll-margin-top: 80px; }
/* 本店禁用词收成一行折叠入口（原独立框已删）：不加边框，跟上面的清单同宽同色。 */
.cz-words-mini { margin-top: 2px; }
.cz-words-mini > summary.cz-side-btn {
  border: 0; padding: 2px 0; text-align: start; font-size: 12.5px; color: var(--muted);
}
.cz-words-mini[open] > summary.cz-side-btn { border: 0; color: var(--brand-primary); }

/* 右栏按场景分区（2026-12-04《2.4.1 布局调整》二）
   四格固定：复购提醒 / 流失挽回 / 购买感谢 / 退货安抚。
   每格自带空态 —— 混在一个列表里时，卖家只能逐条读正文才知道在审哪件事。 */
.cz-review { display: flex; flex-direction: column; gap: 16px; }
.cz-review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cz-review-head h2 { font-size: 15px; margin: 0; }
.cz-scene { scroll-margin-top: 80px; }
.cz-scene .cz-card-head { margin-bottom: 10px; }
.cz-scene .cz-card-head h2 { font-size: 14px; }
.cz-empty-tight { padding: 6px 0 2px; }
.cz-empty-tight strong { font-size: 13px; }
@media (max-width: 1100px) {
  .cz-work2 { grid-template-columns: 1fr; }
}
.cz-ad-check { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cz-ad-check input { flex: 1; min-width: 240px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; font: inherit; font-size: 13.5px; }

/* 复购编排（2.5） */
.cz-guard {
  margin: 0 0 14px; padding: 9px 12px; border-radius: 9px;
  background: #edf9f1; color: #17794a; border: 1px solid #c8e6d4; font-size: 13px;
}
.cz-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 14px; }
.cz-form-grid .cz-field { min-width: 0; }
.cz-form-submit { display: flex; align-items: end; }
/* A/B 勾选框：跟 .cz-field 同高，避免错位（label 套 label 时 flex 对齐会歪） */
.cz-check { display: flex; align-items: center; gap: 7px; min-height: 38px; font-size: 13px; color: var(--text); cursor: pointer; }
.cz-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand-primary); }
.cz-funnel { list-style: none; margin: 10px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.cz-funnel li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.cz-funnel i { display: block; height: 12px; border-radius: 6px; background: var(--brand-primary); opacity: .28; min-width: 2px; }
.cz-funnel strong { text-align: end; color: var(--text); }
.cz-form-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* 资产页（2.6） */
.cz-grid-split { grid-template-columns: 3fr 2fr; }
.cz-card-danger { border-color: #f3c8c8; box-shadow: inset 3px 0 0 0 #e8a3a3; }
.cz-hero-note { margin: -6px 0 14px !important; font-size: 12px !important; color: #9fb2d4 !important; }

/* 设置页 Tab 与网关（2.7） */
.cz-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.cz-tabs a {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); background: #fff;
}
.cz-tabs a:hover { text-decoration: none; background: #f7f9fc; color: var(--text); }
.cz-anchor { scroll-margin-top: 20px; }
.cz-gw-list { display: flex; flex-direction: column; gap: 10px; }
.cz-gw-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
}
.cz-metric-value .ok { color: var(--ok); }
.cz-metric-value .bad { color: var(--danger); }

/* 官网顶栏头像下拉（2.8） */
.nav-me { display: inline-flex; align-items: center; gap: 6px; }
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand-primary); color: #fff; font-size: 12px; font-weight: 700;
}
/* 「👤 个人中心」的头像位：emoji 自带颜色，不能塞进蓝底白字的圆形里
   （会变成蓝底上一个暗色人形，几乎看不清）。改成透明底 + 原色 emoji，
   与右侧文字的基线对齐；首字母圆点样式仍留给未来的账号头像用。 */
.nav-avatar-i {
  width: auto; height: auto; background: none; color: inherit;
  font-size: 15px; font-weight: 400; line-height: 1;
}
.nav-menu-btn {
  display: block; width: 100%; text-align: start; padding: 8px 12px; border: 0; background: none;
  font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; border-radius: 7px;
}
.nav-menu-btn:hover { background: #f2f5fa; }

@media (max-width: 1180px) {
  .cz-work { grid-template-columns: 1fr; }
  .cz-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cz-grid-split { grid-template-columns: 1fr; }
  .cz-form-grid { grid-template-columns: 1fr; }
  .cz-scan-main { flex-direction: column; align-items: stretch; }
  .cz-pop-notif { min-width: 0; width: 86vw; }
  .cz-me-name { display: none; }
}

/* ================================================================
   内部管理后台（《3.GrowArk管理后台》）—— 与卖家控制台刻意不同的视觉：
   更密、更中性，一眼能区分"我在后台"而不是"我在客户的后台"。
   ================================================================ */
.ad-body { margin: 0; background: #f4f5f8; color: #1a1d24; font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

.ad-top {
  display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 56px;
  background: #0b1834; color: #e8eefb; position: sticky; top: 0; z-index: 30;
}
.ad-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 15px; }
.ad-brand:hover { text-decoration: none; }
.ad-brand em { font-style: normal; font-weight: 500; color: #8fa6cc; font-size: 13px; }
.ad-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; background: #2f6feb; color: #fff; font-weight: 700;
}
.ad-search { flex: 1; max-width: 420px; }
.ad-search input {
  width: 100%; padding: 7px 12px; border-radius: 8px; border: 1px solid #23375c;
  background: #14244a; color: #e8eefb; font: inherit; font-size: 13px;
}
.ad-search input::placeholder { color: #7b8db0; }
.ad-top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.ad-alert-link { color: #ffd08a; }
.ad-me { display: flex; flex-direction: column; line-height: 1.2; }
.ad-me em { font-style: normal; color: #8fa6cc; font-size: 11.5px; }
.ad-quiet { background: none; border: 0; color: #b8c6e0; font: inherit; cursor: pointer; padding: 4px 6px; }
.ad-quiet:hover { color: #fff; }

.ad-shell { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.ad-nav { background: #fff; border-inline-end: 1px solid #e4e7ee; padding: 14px 10px; }
.ad-item { display: block; padding: 8px 10px; border-radius: 8px; color: #35405a; font-size: 13.5px; }
.ad-item:hover { background: #f3f6fb; text-decoration: none; }
.ad-item.on { background: #eef3fe; color: #2f6feb; font-weight: 600; }
.ad-item.sub { padding-inline-start: 20px; font-size: 13px; color: #5b6780; }
.ad-group { display: block; padding: 14px 10px 5px; font-size: 11.5px; color: #9aa4b8; letter-spacing: .3px; }

.ad-main { padding: 20px 24px 60px; min-width: 0; }
.ad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ad-head h1 { font-size: 20px; margin: 0 0 3px; }
.ad-sub { margin: 0; color: #6b7280; font-size: 12.5px; }
.ad-stamp { font-size: 12.5px; color: #6b7280; }
.ad-bad { color: #b32d2d; }

.ad-card { background: #fff; border: 1px solid #e4e7ee; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; min-width: 0; }
.ad-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ad-card-head h2 { font-size: 14.5px; margin: 0; }
.ad-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.ad-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-grid > .ad-card { margin-bottom: 0; }

.ad-metric { display: flex; flex-direction: column; gap: 5px; }
.ad-metric-label { font-size: 12px; color: #6b7280; }
.ad-metric-value { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.ad-metric-value.bad { color: #b32d2d; }
.ad-metric-note { font-size: 12px; color: #6b7280; }
.ad-unknown { color: #9aa4b8 !important; font-size: 14px !important; font-weight: 600; }

.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th, .ad-table td { text-align: start; padding: 8px 9px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.ad-table th { font-size: 11.5px; color: #6b7280; font-weight: 600; background: #fafbfd; white-space: nowrap; }
.ad-table tbody tr:hover { background: #fafbfd; }
.ad-table .pick { width: 34px; }
.ad-table-cols { table-layout: auto; }
.ad-mono { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #6b7280; }
td.ad-mono { display: table-cell; color: #35405a; }

.ad-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; background: #f0f3f8; color: #5b6780; white-space: nowrap; }
.ad-tag.lv-ok { background: #edf9f1; color: #17794a; }
.ad-tag.lv-mid { background: #fdf6e7; color: #8a6116; }
.ad-tag.lv-high { background: #fdeeee; color: #b32d2d; }
.ad-tag.lv-low { background: #f0f3f8; color: #5b6780; }

.ad-alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ad-alerts li { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 6px 8px; border-radius: 7px; background: #fafbfd; }
.ad-alerts li.lv-high { background: #fdf5f5; }
.ad-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa4b8; flex: 0 0 auto; }
.ad-alerts li.lv-high .ad-dot { background: #d64545; }
.ad-alerts li.lv-mid .ad-dot { background: #d9a13b; }
.ad-alerts a { color: #1a1d24; }

.ad-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ad-donut { width: 140px; height: 140px; flex: 0 0 auto; }
.ad-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.ad-legend li { display: flex; align-items: center; gap: 8px; }
.ad-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ad-legend strong { margin-inline-start: auto; }
.ad-legend span { color: #6b7280; width: 38px; text-align: end; }

.ad-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e4e7ee; margin-bottom: 14px; flex-wrap: wrap; }
.ad-tab { padding: 8px 14px; font-size: 13.5px; color: #5b6780; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ad-tab:hover { text-decoration: none; color: #1a1d24; }
.ad-tab.on { color: #2f6feb; border-bottom-color: #2f6feb; font-weight: 600; }

.ad-filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; background: #fff; border: 1px solid #e4e7ee; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 12.5px; color: #6b7280; }
.ad-filters label { display: flex; flex-direction: column; gap: 4px; }
.ad-filters label.grow { flex: 1; min-width: 180px; }
.ad-filters input, .ad-filters select {
  font: inherit; color: #1a1d24; padding: 6px 9px; border: 1px solid #e4e7ee; border-radius: 7px; background: #fff;
}

.ad-cols { background: #fff; border: 1px solid #e4e7ee; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px; }
.ad-cols summary { cursor: pointer; color: #2f6feb; }
.ad-col-grid { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.ad-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #35405a; }
.ad-move { font-size: 10px; color: #9aa4b8; margin-inline-start: 4px; }
.ad-move:hover { color: #2f6feb; }

.ad-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; }
/* 「全选」标签别被挤成两行（截图里 "全" / "选" 竖排过） */
.ad-bulk label { white-space: nowrap; }
.ad-bulk .ad-check { flex: 0 0 auto; }
.ad-bulk select { font: inherit; padding: 5px 8px; border: 1px solid #e4e7ee; border-radius: 7px; background: #fff; }

.ad-btn {
  display: inline-block; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent;
  background: #2f6feb; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ad-btn:hover { background: #2a63d4; text-decoration: none; color: #fff; }
.ad-btn-sm { padding: 5px 10px; font-size: 12.5px; }
.ad-btn-ghost { background: #fff; color: #35405a; border-color: #e4e7ee; }
.ad-btn-ghost:hover { background: #f3f6fb; color: #1a1d24; }
.ad-btn-danger { background: #d64545; }
.ad-btn-danger:hover { background: #b93a3a; }
.ad-link { font-size: 12.5px; color: #2f6feb; }

.ad-empty { padding: 22px 8px; text-align: center; }
.ad-empty strong { display: block; font-size: 13.5px; margin-bottom: 5px; }
.ad-empty p { margin: 0; color: #6b7280; font-size: 12.5px; }

.ad-flash { border-radius: 8px; padding: 10px 13px; font-size: 13px; margin-bottom: 12px; }
.ad-flash-ok { background: #edf9f1; color: #17794a; border: 1px solid #c8e6d4; }
.ad-flash-err { background: #fdeeee; color: #b32d2d; border: 1px solid #f3c8c8; }
.ad-flash-warn { background: #fdf8ee; color: #8a6116; border: 1px solid #f2e0bd; }

.ad-ops { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ad-op-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ad-op-form select, .ad-op-form input {
  font: inherit; font-size: 12.5px; padding: 6px 9px; border: 1px solid #e4e7ee; border-radius: 7px; background: #fff;
}
.ad-op-form input.grow { flex: 1; min-width: 260px; }

.ad-kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-kv th, .ad-kv td { text-align: start; padding: 6px 0; border-bottom: 1px dashed #eef1f6; vertical-align: top; }
.ad-kv th { color: #6b7280; font-weight: 500; width: 42%; }
.ad-kv tr:last-child th, .ad-kv tr:last-child td { border-bottom: 0; }

.ad-params { display: flex; flex-direction: column; gap: 12px; }
.ad-params label { display: grid; grid-template-columns: 220px minmax(0, 1fr) 180px; gap: 12px; align-items: center; font-size: 13px; }
.ad-params em { font-style: normal; font-size: 11.5px; color: #9aa4b8; }
.ad-params input { font: inherit; padding: 7px 10px; border: 1px solid #e4e7ee; border-radius: 7px; }

.ad-login-body { display: grid; place-items: center; min-height: 100vh; background: #0b1834; }
.ad-login {
  width: 100%; max-width: 400px; background: #fff; border-radius: 14px;
  padding: 30px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.ad-login-brand { margin-bottom: 18px; }
.ad-login-brand strong { display: block; margin-top: 10px; font-size: 17px; }
.ad-login-brand p { margin: 6px 0 0; color: #6b7280; font-size: 12.5px; }
.ad-login-form { display: flex; flex-direction: column; gap: 12px; }
.ad-login-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #6b7280; }
.ad-login-form input { font: inherit; padding: 9px 11px; border: 1px solid #e4e7ee; border-radius: 8px; }
.ad-login-form .ad-btn { margin-top: 4px; padding: 10px; }
.ad-login-foot { margin: 14px 0 0; color: #9aa4b8; font-size: 11.5px; text-align: center; }

@media (max-width: 1080px) {
  .ad-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ad-shell { grid-template-columns: 1fr; }
  .ad-search { display: none; }
  .ad-grid-2, .ad-grid-3, .ad-grid-4 { grid-template-columns: 1fr; }
  .ad-params label { grid-template-columns: 1fr; }
}

/* 试用期横幅（2026-11-15《需求-20261114》）：常驻控制台所有页面顶部。
   浅琥珀底而不是红色 —— 它不代表出错，只代表"还有一个决定没做"。 */
.cz-trial {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px; font-size: 14px;
  background: #fff7e6; color: #8a5a00; border-bottom: 1px solid #f0d9a8;
}
.cz-trial strong { font-weight: 700; }
.cz-trial .btn { margin-inline-start: auto; background: #8a5a00; border: 0; color: #fff; }

.cz-trial-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cz-trial-card p { margin: .35rem 0 0; }

.cz-pending-card { border-color: #f0d9a8; }
.cz-pending-card h2 { font-size: 1rem; margin: 0 0 .5rem; }
.cz-pending-card form { margin-top: .6rem; }

/* ==========================================================================
   博客（《需求-国内&海外-20261118/博客设计-SEO-GEO引流》）
   前台：列表卡片 + 正文排版；后台：编辑器两栏 + 实时预览。
   ========================================================================== */

/* ---------- 列表：分类筛选 ---------- */
.blog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.blog-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13.5px; text-decoration: none; transition: border-color .15s ease, color .15s ease;
}
.blog-tab:hover { border-color: var(--brand-primary); color: var(--brand-primary); text-decoration: none; }
.blog-tab.on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.blog-tab .n { font-size: 11.5px; opacity: .7; }

/* ---------- 列表：卡片 ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 22px 0; }
.blog-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); text-decoration: none; }
.blog-card h2, .blog-card h3 { margin: 0; font-size: 16.5px; line-height: 1.45; }
.blog-card:hover h2, .blog-card:hover h3 { color: var(--brand-primary); }
.blog-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.blog-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; background: #eef1f6; }
.blog-tag {
  align-self: flex-start; font-size: 11.5px; letter-spacing: .02em; color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff); border-radius: 6px; padding: 3px 8px;
}
.blog-meta { margin-top: auto; font-size: 12px; color: #9aa1ad; }

/* ---------- 正文 ---------- */
.article-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; margin: 6px 0 22px; background: #eef1f6; }
.article-related { margin: 40px 0 0; }
.article-related h2 { font-size: 18px; margin: 0 0 4px; }
.article-related .blog-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* markdown 输出：只覆盖本渲染器会产出的标签 */
.md { max-width: 720px; color: #313741; font-size: 15.5px; line-height: 1.78; }
.md > *:first-child { margin-top: 0; }
.md h2 { font-size: 21px; margin: 30px 0 10px; color: var(--text); }
.md h3 { font-size: 17.5px; margin: 24px 0 8px; color: var(--text); }
.md h4 { font-size: 15.5px; margin: 20px 0 6px; color: var(--text); }
.md p { margin: 12px 0; }
.md ul, .md ol { margin: 12px 0; padding-inline-start: 22px; }
.md li { margin: 6px 0; }
.md a { color: var(--brand-primary); }
.md blockquote { margin: 16px 0; padding: 10px 16px; border-inline-start: 3px solid var(--brand-primary); background: #f6f8fb; color: #4a515c; border-radius: 0 8px 8px 0; }
.md blockquote p { margin: 4px 0; }
.md pre { background: #f6f8fb; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 16px 0; }
.md pre code { font-size: 12.5px; line-height: 1.6; }
.md code { background: #f2f4f8; border-radius: 5px; padding: 1px 5px; font-size: 13px; }
.md pre code { background: none; padding: 0; }
.md img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }

/* 后台预览专用：顶部黄条提示"这篇还没上线" */
.blog-preview-bar { background: #fff7e6; color: #8a5a00; border-bottom: 1px solid #f0dcae; padding: 9px 20px; font-size: 13px; text-align: center; }

/* ---------- 后台：列表 ---------- */
.ad-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-ops form { margin: 0; }

/* ---------- 后台：编辑器 ---------- */
.ad-blog-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ad-blog-main, .ad-blog-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .ad-blog-edit { grid-template-columns: 1fr; } }

.ad-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 13px; }
.ad-field > span { font-weight: 600; color: #3b4250; display: flex; align-items: center; gap: 8px; }
.ad-field > span em { color: var(--danger); font-style: normal; }
.ad-field input, .ad-field select, .ad-field textarea {
  font: inherit; color: var(--text); padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 9px; background: #fff; width: 100%;
}
.ad-field input:focus, .ad-field select:focus, .ad-field textarea:focus {
  outline: 2px solid var(--brand-primary); outline-offset: 0; border-color: transparent;
}
.ad-field small { color: var(--muted); font-size: 12px; }
.ad-field textarea { resize: vertical; line-height: 1.6; }
.ad-inline { display: flex; align-items: center; gap: 8px; }
.ad-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .ad-grid-2 { grid-template-columns: 1fr; } }

/* 字数计数：超阈值变橙，低于下限变灰提示 */
.ad-count { font-size: 11.5px; font-weight: 500; color: #9aa1ad; margin-inline-start: auto; }
.ad-count.over { color: #b45309; }
.ad-count.under { color: #9aa1ad; }

/* Markdown 工具条 + 编辑区 */
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #f6f8fb; border: 1px solid var(--border); border-radius: 9px 9px 0 0; }
.md-toolbar button {
  font: inherit; font-size: 12.5px; padding: 5px 9px; border: 1px solid var(--border);
  background: #fff; border-radius: 6px; cursor: pointer; color: #3b4250;
}
.md-toolbar button:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.ad-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.7;
  border-radius: 0 0 9px 9px; border-top: 0; min-height: 380px; tab-size: 2;
}
.md-preview { border: 1px dashed var(--border); border-radius: 10px; padding: 6px 18px; background: #fcfdff; }
.md-preview .md { max-width: none; }

/* 博客页头：不复用 `.page-head` —— 那条规则是 flex 布局（标题与导语左右分栏），
   套到带面包屑的文章页上会把 h1 挤到右边，实测截图确认过。 */
.blog-head { padding: 40px 20px 8px; max-width: 880px; margin: 0 auto; }
.blog-head h1 { margin: 0 0 10px; font-size: 31px; line-height: 1.35; letter-spacing: -.01em; }
.blog-head .lead { margin: 0; color: var(--muted); font-size: 16px; max-width: 46em; }
.blog-head .crumb { margin: 0 0 12px; color: #9aa1ad; font-size: 12.5px; }
.blog-body { padding: 12px 20px 8px; max-width: 880px; margin: 0 auto; }

/* ---------- 定价：两类接入方式（2026-11-19） ----------
   需求《需求/需求-国内&海外-20261119》：定价拆两块，点进去才看报价。
   入口卡沿用首页 .card 的语言（白底 + 细边框 + 圆角 + hover 轻抬），
   不引入新色系 —— 页面色调与首页保持一致。 */
.biz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 0 auto; }
.biz-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 26px 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
  text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.biz-card:hover {
  border-color: var(--brand-primary); transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 40, 90, .10); text-decoration: none; color: var(--text);
}
.biz-icon {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 19px; background: var(--brand-primary-soft);
}
.biz-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 12px; font-weight: 600;
}
.biz-card h3 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.01em; }
.biz-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.biz-cta { margin-top: 6px; color: var(--brand-primary); font-size: 13.5px; font-weight: 600; }
.biz-hint { max-width: 920px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.biz-switch { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 920px; margin: 0 auto 20px; }
.biz-chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none;
}
.biz-chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); text-decoration: none; }
.biz-chip.on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.biz-chip.on:hover { color: #fff; }
.biz-back { margin-left: 6px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.biz-back:hover { color: var(--brand-primary); text-decoration: none; }
/* 分组后的列数：SaaS 三档并排、API 两张（套餐 + 流量包）居中。
   原 .plan-grid 是 5 列（四档 + 流量包），分组后必须覆盖掉 —— 这两条规则在文件末尾，
   与媒体查询里的 .plan-grid 同特异性，靠顺序取胜，别再往前挪。 */
.plan-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-grid-1 { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
.plan-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: 1fr; }
  .plan-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .plan-grid-3, .plan-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- 定价网格含「扩容包」列（2026-11-25《14.首页整改》4） ----------
   扩容包从"卡片下方整行"挪进网格最后一列，所以列数要 +1：
   SaaS 三档 → 4 列，API 两档 → 3 列，海外 API 一档 → 2 列。
   扩容包那列给 1.04fr：它要装两张包卡 + 四条须知，等宽会被压得比套餐卡还窄。
   ≤1180px 一律回落成「卡片照旧、扩容包整行铺底」——280px 宽的列排两列包卡会崩。 */
.plan-grid-packs.plan-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.04fr); }
.plan-grid-packs.plan-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.04fr); max-width: 1120px; }
.plan-grid-packs.plan-grid-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); max-width: 900px; }
.plan-grid-packs .pack-col {
  max-width: none; margin: 0; padding: 22px 18px;
  display: flex; flex-direction: column;
}
/* 列内只有一列包卡：.pack-grid-N 会硬写 2/3 列，窄列里必须压回单列 */
.plan-grid-packs .pack-col .pack-grid { grid-template-columns: minmax(0, 1fr); }
.plan-grid-packs .pack-col .pack-block-head h3 { font-size: 15.5px; line-height: 1.35; }
.plan-grid-packs .pack-col .pack-block-head p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; }
.plan-grid-packs .pack-col .pack { padding: 12px 13px; }
/* 须知紧跟包卡（2026-11-26《调整位置距离》）：原来是 margin-top:auto 把说明"沉底"，
   列高被最高的套餐卡撑开时，规则与包卡之间会空出上百像素 —— 读的时候像两块无关的内容。
   改成固定上边距，让规则紧贴包卡；行距同时放到 1.75、条间距 6px，
   避免"上移"被顺手理解成"压缩"，5 条规则挤成一段反而更难读。 */
.plan-grid-packs .pack-col .pack-rules { margin-top: 16px; padding-top: 14px; }
.plan-grid-packs .pack-col .pack-rules ol { padding-left: 16px; font-size: 12px; line-height: 1.75; }
.plan-grid-packs .pack-col .pack-rules li { margin-bottom: 6px; }
.plan-grid-packs .pack-col .pack-rules li:last-child { margin-bottom: 0; }
@media (max-width: 1180px) {
  .plan-grid-packs.plan-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid-packs.plan-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid-packs.plan-grid-1 { grid-template-columns: minmax(0, 1fr); }
  .plan-grid-packs .pack-col { grid-column: 1 / -1; }
  .plan-grid-packs .pack-col .pack-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
}
@media (max-width: 900px) {
  .plan-grid-packs.plan-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .plan-grid-packs.plan-grid-1,
  .plan-grid-packs.plan-grid-2,
  .plan-grid-packs.plan-grid-3 { grid-template-columns: 1fr; }
}

/* 2026-11-20 入口卡极简化（需求：每卡只留「标题 + 接入方式」）。
   去掉图标/描述/CTA 后，原来四段堆叠会变成上重下空 —— 改垂直居中 + 最小高度，
   两卡等高、留白均匀；标签仍紧贴标题下方（标题在上，接入方式在下）。
   原 `.biz-card h3 { margin: 2px 0 0 }` 在 1180 行，此处同特异性靠顺序覆盖。 */
.biz-card { justify-content: center; min-height: 150px; padding: 30px 26px; gap: 10px; }
.biz-card h3 { margin: 0; font-size: 20px; }
.biz-card:hover .biz-tag { background: var(--brand-primary); color: #fff; }
@media (max-width: 680px) {
  .biz-card { min-height: 116px; padding: 22px 20px; gap: 8px; }
  .biz-card h3 { font-size: 18px; }
}

/* 2026-11-20 二次调整：入口卡右侧加灰色「查看套餐与报价 →」提示。
   卡片从纵向改横向 —— 左一列（标题 + 接入方式），右侧小字提示可点，
   比纯靠 hover 表达更直白，又不像大按钮那样把极简布局顶破。
   `.biz-main` 必须是 div：span 里包 h3 不合规，浏览器会重排 DOM 导致错位。 */
.biz-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.biz-main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.biz-go {
  flex: none; color: #9aa1ad; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: color .18s, transform .18s;
}
.biz-card:hover .biz-go { color: var(--brand-primary); transform: translateX(2px); }
@media (max-width: 680px) {
  .biz-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- 定价区「扩容包」区块（2026-11-20） ----------
   套餐与加购分两层展示：上面是能力档位，这里是"这个月额度不够"的补丁。
   复用 .pack / .pack-top / .pack-buy 这套小卡样式，只覆盖配色变量与列数 ——
   .pack 原本靠 .plan 上的 --plan-accent 取色，这里没有 .plan 外层，必须自己补。 */
.pack-block {
  --plan-accent: var(--brand-primary);
  --plan-tint: var(--brand-primary-soft);
  max-width: 920px; margin: 28px auto 0; padding: 24px 26px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.pack-block-head h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.pack-block-head p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
/* API 组只有一个包：单列居中，别拉成半屏宽的空卡 */
.pack-grid-1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
.pack-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pack-block .pack { padding: 16px 18px; background: var(--surface); }
.pack-block .pack-name { font-size: 14px; }
.pack-block .pack-price { font-size: 20px; }
.pack-block .pack-price small { margin-left: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pack-block .pack-units { margin-top: 6px; font-size: 13px; }
.pack-block .pack-scene { margin-top: 5px; font-size: 12.5px; }
.pack-rules { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.pack-rules h4 { margin: 0 0 8px; font-size: 13px; }
.pack-rules ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.pack-rules li { margin-bottom: 4px; }
@media (max-width: 680px) {
  .pack-grid-1, .pack-grid-2 { grid-template-columns: 1fr; }
  .pack-block { padding: 18px 16px; }
}

/* ==========================================================================
   2026-11-23 《案例展示-跑马灯类目》—— 定价页数据跑马灯
   纯 CSS：复制一份卡片 + translateX(-50%)。用 JS 改 left 会掉帧（需求《六》明确不要）。
   ========================================================================== */
.cases {
  margin: 36px 0 0;
  padding: 26px 0 18px;
  background: #F8F9FA;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  /* 两端淡出，避免卡片在边缘被"切断"看得太生硬 */
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cases-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: cases-scroll 46s linear infinite;
  will-change: transform;
}
/* 悬停暂停（需求《三.2》）：停在原地让人读，不要加过渡，会抖 */
.cases:hover .cases-track { animation-play-state: paused; }
@keyframes cases-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.case-card {
  flex: 0 0 300px;
  width: 300px;
  min-height: 104px;
  padding: 14px 16px;
  background: var(--surface, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  box-sizing: border-box;
}
.case-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 700; color: var(--text);
}
.case-ico { font-size: 17px; line-height: 1; }
.case-pain { margin: 7px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.case-metrics {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--brand-primary);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.case-metrics i { color: #c7ccd6; font-style: normal; font-weight: 400; }
.cases-note {
  max-width: 760px; margin: 14px auto 0; padding: 0 20px;
  text-align: center; font-size: 12px; color: #9CA3AF; line-height: 1.6;
}
/* 移动端：卡片窄一点、滚慢一点（屏幕小，速度太快看不清） */
@media (max-width: 720px) {
  .case-card { flex-basis: 260px; width: 260px; }
  .cases-track { animation-duration: 38s; }
  .cases { mask-image: none; -webkit-mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cases-track { animation: none; }
  .cases { overflow-x: auto; }
}

/* ---------- 顶栏「合作伙伴」下拉（2026-11-23） ---------- */
.nav-drop { position: relative; }
.nav-drop > summary {
  list-style: none; cursor: pointer;
  font-size: 14px; color: var(--text);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 2px;
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary:hover { color: var(--brand-primary); }
.nav-caret { font-size: 10px; color: var(--muted); }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 210px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.nav-menu a {
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text);
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--brand-primary-soft); text-decoration: none; }

/* ==========================================================================
   2026-11-23 合作伙伴（《合作伙伴-推广联盟和开发者沙盒》）
   配色走紫/金（需求《五》），与商家控制台的蓝/绿区分。
   ========================================================================== */
:root {
  --pt: #6d4aef;
  --pt-soft: #f2eefe;
  --pt-gold: #b8860b;
  --pt-gold-soft: #fdf6e3;
}

/* --- 首页「合作伙伴计划」Banner（2026-11-24《首页底部添加板块-合作伙伴计划》） --- */
/* 克制优先：浅灰底 + 细边框，绝不拿品牌主色大面积铺底 —— 它的定位是流量截流器，
   不能和页面主 CTA（免费试用）抢注意力。 */
.pb-wrap { padding: 0 20px 72px; }
.pb {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px 24px; border-radius: 16px;
  background: #f9fafb; border: 1px solid #f3f4f6;
}
.pb-main { min-width: 0; }
.pb-title { font-size: 20px; font-weight: 600; color: #111827; margin: 0 0 12px; line-height: 1.4; }
.pb-desc { font-size: 14px; color: #4b5563; line-height: 1.6; margin: 0 0 24px; max-width: 660px; }
.pb-points {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 8px 26px; font-size: 13.5px; color: #4b5563;
}
.pb-points li { display: flex; align-items: baseline; gap: 6px; }
.pb-points b { color: #111827; font-weight: 600; }
/* 2026-11-27 Requirement 1.3：两个按钮改为上下摆放（原来 PC 是「次在左、主在右」横排）。
   竖排后 PC 与移动端顺序一致，DOM 里已经按「申请在上、登录在下」写，无需 order 覆盖。
   align-items: stretch 让两颗按钮等宽（由最宽的「了解并申请加入」定宽），看着像一组。 */
.pb-actions {
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0; align-items: stretch; min-width: 158px;
}
.pb-btn { white-space: nowrap; text-align: center; }
@media (max-width: 860px) {
  .pb { flex-direction: column; align-items: stretch; gap: 22px; padding: 28px 20px; }
  .pb-title { font-size: 18px; }
  .pb-desc { margin-bottom: 16px; }
  .pb-points { flex-direction: column; gap: 8px; }
  /* 竖排后移动端不再需要换序，只把按钮拉满整行 */
  .pb-actions { width: 100%; min-width: 0; }
  .pb-actions .pb-btn { width: 100%; }
}

/* --- 公开招募页 --- */
.pt-hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--pt-soft), transparent); }
.pt-hero h1 { font-size: 38px; line-height: 1.25; margin: 14px 0 12px; letter-spacing: -.01em; }
.pt-hero-lede { max-width: 680px; font-size: 16px; color: var(--muted); margin: 0 0 22px; }
.pt-hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pt-hero-link { font-size: 14px; color: var(--pt); }
.pt-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid #ddd3fb; color: var(--pt);
  font-size: 12.5px; font-weight: 600;
}
.pt-sec { padding: 34px 20px; }
.pt-sec-title { font-size: 22px; margin: 0 0 18px; }
.pt-sec-cta { margin-top: 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-card-hover { transition: box-shadow .15s ease, transform .15s ease; }
.pt-card-hover:hover { box-shadow: 0 8px 24px rgba(109, 74, 239, .12); transform: translateY(-2px); }
.pt-card-hover h3 { margin: 0 0 8px; font-size: 16px; }
.pt-card-hover p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.pt-steps { margin: 0; padding-left: 22px; }
.pt-steps li { margin: 8px 0; font-size: 14.5px; color: #374151; }
@media (max-width: 860px) { .pt-cards { grid-template-columns: 1fr; } .pt-hero h1 { font-size: 28px; } }

/* --- 伙伴计划介绍页 /partners（2026-11-24）：两族并列 --- */
.pt-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-cards-2 .pt-card { display: flex; flex-direction: column; margin-bottom: 0; }
.pt-cards-2 .pt-card h3 { margin: 10px 0 8px; font-size: 16.5px; line-height: 1.45; }
.pt-cards-2 .pt-card > p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.pt-list { list-style: none; margin: 0 0 16px; padding: 0; }
.pt-list li {
  font-size: 13.5px; color: #4b5563; line-height: 1.6;
  padding: 7px 0; border-top: 1px solid var(--border);
}
.pt-list li:first-child { border-top: 0; }
.pt-list strong { display: block; color: #111827; font-weight: 600; margin-bottom: 2px; }
.pt-card-more { margin: auto 0 0; font-size: 13.5px; }
.pt-form { max-width: 560px; margin: 0 auto; }
.pt-sec-sub { font-size: 14px; color: var(--muted); margin: -6px 0 16px; }
/* 表单末尾的「还没有合作伙伴账号？去登录」：不能复用 .pt-sec-sub —— 那条 -6px 上边距
   是给标题下的引导小字用的，套在全宽提交按钮下面会把文字顶到按钮底边上 */
.pt-form-foot { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
/* .btn-block 全局只有 8px 上边距，紧贴字段区，这里补到 16px */
.pt-form .btn-block { margin-top: 16px; }
@media (max-width: 860px) { .pt-cards-2 { grid-template-columns: 1fr; } }


/* --- Partner Hub 骨架 --- */
.pt-body { background: #f7f8fb; }
.pt-shell { display: flex; min-height: 100vh; }
.pt-nav {
  width: 232px; flex: 0 0 232px; padding: 22px 16px;
  background: #1c1533; color: #e9e4ff;
  display: flex; flex-direction: column; gap: 18px;
}
.pt-logo { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; }
.pt-logo:hover { text-decoration: none; }
.pt-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--pt);
  display: inline-flex; align-items: center; justify-content: center;
}
.pt-logo-text em { font-style: normal; font-weight: 500; color: #b9aef0; font-size: 13px; }
.pt-env {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px;
  padding: 7px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); color: #cfc6f5;
}
.pt-env strong { color: #ffd479; font-weight: 700; }
.pt-env-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd479; }
.pt-menu { display: flex; flex-direction: column; gap: 3px; }
.pt-item {
  padding: 10px 12px; border-radius: 9px; font-size: 14px; color: #d8d1f5;
}
.pt-item:hover { background: rgba(255, 255, 255, .07); text-decoration: none; color: #fff; }
.pt-item.on { background: var(--pt); color: #fff; font-weight: 600; }
.pt-nav-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: 12.5px; }
.pt-quiet { background: none; border: 0; padding: 0; color: #a99ddb; font: inherit; cursor: pointer; }
.pt-quiet:hover { color: #fff; text-decoration: none; }

.pt-main { flex: 1; min-width: 0; padding: 26px 28px 60px; }
.pt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pt-top h1 { margin: 0 0 4px; font-size: 24px; }
.pt-sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.pt-who { text-align: right; font-size: 13.5px; }
.pt-who em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; }

/* --- 卡片 / KPI / 表格 --- */
.pt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.pt-kpi {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.pt-kpi-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.pt-kpi strong { font-size: 24px; letter-spacing: -.01em; }
.pt-kpi-gold { background: var(--pt-gold-soft); border-color: #f0e2b8; }
.pt-kpi-gold strong { color: var(--pt-gold); }
.pt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pt-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 16px;
}
.pt-card h2 { margin: 0 0 10px; font-size: 15.5px; }
.pt-note { font-size: 12.8px; color: var(--muted); line-height: 1.65; margin: 8px 0; }
.pt-muted { color: var(--muted); font-size: 13px; }
.pt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.pt-key { word-break: break-all; }
.pt-big { font-size: 26px; font-weight: 700; margin: 4px 0 6px; color: var(--pt-gold); }
.pt-links { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.9; }
.pt-copy { margin: 8px 0; }
.pt-input {
  width: 100%; padding: 9px 11px; font-size: 13.5px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text);
}
.pt-form label { display: block; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: #374151; }
.pt-form .pt-input { margin-top: 6px; font-weight: 400; }
.pt-btn {
  display: inline-block; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent;
  background: var(--pt); color: #fff; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pt-btn:hover { background: #5c3ad6; text-decoration: none; color: #fff; }
.pt-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pt-btn-ghost { background: transparent; color: var(--pt); border-color: #d9cffb; }
.pt-btn-ghost:hover { background: var(--pt-soft); color: var(--pt); }
.pt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pt-table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12px;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.pt-table td { padding: 9px 10px; border-bottom: 1px solid #f1f3f7; }
.pt-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: #eef1f6; color: #475467;
}
.pt-tag-pending { background: #fff5e6; color: #8a5a00; }
.pt-tag-approved { background: #e9f7ef; color: #17693c; }
.pt-tag-paid { background: #e9f7ef; color: #17693c; }
.pt-tag-clawback { background: #fdecec; color: #a32626; }
.pt-tag-active { background: #e9f7ef; color: #17693c; }
.pt-alert { padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin: 0 0 16px; }
.pt-alert.ok { background: #e9f7ef; color: #17693c; border: 1px solid #bfe6cf; }
.pt-alert.bad { background: #fdecec; color: #a32626; border: 1px solid #f5c6c6; }
.pt-code {
  background: #1c1533; color: #e9e4ff; border-radius: 10px; padding: 14px 16px;
  font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre;
}
.pt-roles { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 12px; margin: 14px 0 0; }
.pt-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 400; margin: 8px 0 0; }
.pt-check input { width: auto; margin: 0; }

@media (max-width: 980px) {
  .pt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pt-shell { flex-direction: column; }
  .pt-nav { width: 100%; flex: none; flex-direction: row; align-items: center; gap: 12px; overflow-x: auto; }
  .pt-env { display: none; }
  .pt-menu { flex-direction: row; }
  .pt-nav-foot { margin: 0 0 0 auto; }
  .pt-main { padding: 18px 16px 40px; }
  .pt-table { display: block; overflow-x: auto; white-space: nowrap; }
}
