/* ============================================================
   IDC 客户中心主题 · 设计系统 v2.0（2026-11-04 重写）
   ------------------------------------------------------------
   设计语言：Minimalist Modern（参考腾讯云/阿里云/AWS 控制台共性）
   · 电蓝双色调渐变做唯一强调色，其余近单色（slate 系）
   · 系统字体栈，零外部请求（Lighthouse 100 红线）
   · 组件分区见各 SECTION 注释；令牌变更须同步 docs/UI设计说明.md

   分区目录：
     01 令牌          02 基础重置      03 排版
     04 布局骨架      05 页头导航      06 按钮
     07 卡片          08 首页区块      09 表格
     10 表单          11 徽标与状态    12 键值与工单
     13 购买布局      14 认证窄栏      15 页脚
     16 响应式
   ============================================================ */

/* ---------- 01 令牌 ---------- */
:root {
  --brand: #0052ff; /* 电蓝：主操作、链接、强调 */
  --brand-2: #4d7cff; /* 渐变终点 */
  --brand-soft: #eef3ff; /* 品牌浅底（选中态、信息条） */
  --ink: #0f172a; /* 主文字（slate-900，非纯黑） */
  --ink-2: #334155; /* 次级标题 */
  --muted: #64748b; /* 次级文字（slate-500） */
  --line: #e2e8f0; /* 边框（slate-200） */
  --line-2: #cbd5e1; /* 深一档边框（输入框） */
  --bg: #fafafa; /* 页面画布（暖灰白） */
  --surface: #ffffff; /* 卡片面 */
  --surface-2: #f1f5f9; /* 次级面（表头、空态） */
  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --sh-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --sh-md: 0 4px 6px rgba(15, 23, 42, 0.07);
  --sh-lg: 0 10px 15px rgba(15, 23, 42, 0.08);
  --sh-brand: 0 4px 14px rgba(0, 82, 255, 0.25);
  --wrap: 1180px;
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ---------- 02 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font:
    15px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "HarmonyOS Sans SC",
    "Microsoft YaHei UI",
    "Noto Sans SC",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
}
::selection {
  background: rgba(0, 82, 255, 0.16);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 03 排版 ---------- */
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 1.08rem;
  color: var(--ink-2);
}
.price {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price .unit {
  font-size: 0.8em;
  font-weight: 500;
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
.error {
  color: var(--err);
  background: var(--err-bg);
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  margin: 0 0 16px;
  font-size: 0.92em;
}

/* ---------- 04 布局骨架 ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
main.wrap {
  padding-top: 32px;
  padding-bottom: 64px;
  min-height: calc(100vh - 340px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0;
}
.page-head .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 05 页头导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: var(--sh-brand);
  /* 渐变方块上的两枚“节点”记号：品牌识别的最小实现，无图片请求 */
  background-image:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.9) 0 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.55) 0 2px,
      transparent 2px
    );
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--brand);
  background: var(--brand-soft);
  text-decoration: none;
}
.nav .sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 8px;
}
.nav .user {
  font-weight: 600;
  color: var(--ink);
}
.nav .logout {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.nav .logout-form {
  display: inline;
  margin: 0;
}
.nav .btn {
  padding: 7px 16px;
  font-size: 0.88rem;
}
.langs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
  font-size: 0.82rem;
}
.langs a {
  padding: 3px 10px;
  color: var(--muted);
  border-radius: 0;
}
.langs a:hover {
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- 06 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.18s ease-out;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--sh-sm);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
button,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-sm);
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease-out;
  box-shadow: var(--sh-brand);
}
button:hover,
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.35);
}
button:active {
  transform: translateY(1px) scale(0.99);
}
.btn-secondary {
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  box-shadow: none;
  color: var(--ink-2);
  font-weight: 550;
}
.btn-secondary:hover {
  box-shadow: var(--sh-sm);
  filter: none;
  border-color: var(--line-2);
}
.btn-lg {
  padding: 13px 30px;
  font-size: 1.02rem;
  border-radius: 10px;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.86rem;
}

/* ---------- 07 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 28px;
  box-shadow: var(--sh-sm);
}
.card + .card {
  margin-top: 20px;
}
/* grid 布局内取消相邻 margin：它会压缩同行 item 的高度（视觉等高被破坏） */
.grid .card + .card,
.grid > .card + .card {
  margin-top: 0;
}
.card.hoverable {
  transition: all 0.25s ease-out;
}
.card.hoverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: #c7d6f5;
}
.narrow {
  max-width: 440px;
  margin: 3vh auto 0;
}

/* ---------- 08 首页区块 ---------- */
/* .hero/.band 是 wrap 内的全宽区块：用 50vw 破格抵消容器左右 padding */
.fullbleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero {
  position: relative; overflow: hidden;
  margin-top: -32px; /* 抵消 main.wrap 的 padding-top */
  padding: 84px 0 72px;
  background:
    radial-gradient(
      900px 380px at 82% -10%,
      rgba(0, 82, 255, 0.09),
      transparent 60%
    ),
    radial-gradient(
      700px 320px at 8% 115%,
      rgba(77, 124, 255, 0.07),
      transparent 60%
    ),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 56px;
  box-shadow: var(--sh-sm);
}
.statbar > div {
  background: var(--surface);
  padding: 20px 24px;
}
.statbar b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.statbar span {
  color: var(--muted);
  font-size: 0.87rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
}
.grid article.card { display: flex; flex-direction: column; }
.grid article.card > .btn { margin-top: auto; }
.grid article.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-chip {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.band {
  background: var(--ink);
  color: #e2e8f0;
  padding: 64px 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
}
.band .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.band h3 {
  color: #fff;
  margin-bottom: 8px;
}
.band p {
  color: #94a3b8;
  margin: 0;
  font-size: 0.95rem;
}
.band b {
  display: block;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- 09 表格 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.table th,
.table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table thead th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--ink-2);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background 0.15s;
}
.table tbody tr:hover {
  background: #f8faff;
}
.table tfoot td,
.table tfoot th {
  padding: 13px 18px;
  font-weight: 600;
}
.table tfoot tr:last-child {
  background: var(--brand-soft);
}
.table tfoot tr:last-child th,
.table tfoot tr:last-child td {
  color: var(--brand);
}
.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
thead .amount {
  text-align: right;
}
.table .empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 42px 18px;
}

/* 空状态：圆底图标 + 主文案 + 引导动作，与卡片系统同构 */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state::before {
  content: "∅"; display: inline-flex; width: 56px; height: 56px;
  border-radius: 50%; background: var(--surface-2); color: var(--line-2);
  align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 14px;
}
.empty-state p { color: var(--muted); margin-bottom: 18px; }

/* ---------- 10 表单 ---------- */
label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 550;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.13);
}
textarea {
  resize: vertical;
}
form button {
  margin-top: 4px;
  width: 100%;
}

/* ---------- 11 徽标与状态 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.badge-ok {
  color: var(--ok);
  background: var(--ok-bg);
}
.badge-warn {
  color: var(--warn);
  background: var(--warn-bg);
}
.badge-err {
  color: var(--err);
  background: var(--err-bg);
}
.badge-info {
  color: var(--brand);
  background: var(--brand-soft);
}
.badge-muted {
  color: var(--muted);
  background: var(--surface-2);
}
.balance-hero {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.balance-hero b {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.balance-hero .unit {
  color: var(--muted);
}
.wallet-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

/* ---------- 12 键值与工单 ---------- */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 22px;
  margin: 0 0 20px;
}
.kv dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.kv dd {
  margin: 0;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.thread .msg {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 14px 18px;
  max-width: 92%;
}
.thread .msg header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.88rem;
}
.thread .msg header strong::before {
  content: attr(data-initial);
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  font-size: 0.78rem;
  vertical-align: middle;
}
.thread .msg p {
  margin: 0;
}
.thread .msg.staff {
  background: var(--brand-soft);
  border-color: #d4e0fb;
}
.close-form {
  margin-top: 10px;
}
.close-form button {
  width: auto;
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* ---------- 13 购买布局 ---------- */
.buy-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.buy-summary {
  position: sticky;
  top: 84px;
}
.buy-summary h2 {
  margin-bottom: 4px;
}
.buy-summary .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.buy-summary .total b {
  font-size: 1.5rem;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.buy-summary ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.buy-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
.buy-summary li span:last-child {
  font-variant-numeric: tabular-nums;
}
.cycle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 6px 0 8px;
}
.cycle-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--ink);
  transition: all 0.18s;
  background: var(--surface);
}
.cycle-list a::after {
  content: "92";
  color: var(--line-2);
  font-weight: 600;
  transition: all 0.18s;
  margin-left: 8px;
}
.cycle-list a:hover::after {
  color: var(--brand);
  transform: translateX(3px);
}
.cycle-list a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--sh-brand);
  text-decoration: none;
  transform: translateY(-1px);
}
.cycle-list .num {
  font-weight: 700;
}
.option-group {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}
.option-group ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-group li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.88rem;
  color: var(--ink-2);
  background: var(--surface-2);
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
  white-space: nowrap;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb .sep {
  opacity: 0.5;
}

/* ---------- 14 认证窄栏 ---------- */
.auth-hero {
  text-align: center;
  margin-bottom: 22px;
}
.auth-hero h1 {
  font-size: 1.45rem;
}
.auth-hero p {
  margin: 0;
}
.auth-links {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.92rem;
}

/* ---------- 15 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- 16 响应式 ---------- */
@media (max-width: 900px) {
  .buy-layout,
  .wallet-layout {
    grid-template-columns: 1fr;
  }
  .buy-summary {
    position: static;
  }
  .band .wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .statbar {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .site-header .wrap {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-header .wrap::-webkit-scrollbar {
    display: none;
  }
  .nav {
    margin-left: 0;
  }
  .nav a {
    padding: 6px 8px;
    font-size: 0.88rem;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .card {
    padding: 20px;
  }
  main.wrap {
    padding-top: 22px;
  }
  .statbar {
    margin-top: 36px;
  }
}

/* ---------- 17 控制台布局（用户中心侧边导航） ---------- */
/* 用户中心/控制台页组共用：左侧竖直导航 + 右侧内容。
   active 态由 partials/console_nav.html 内的小脚本按 pathname 标注。 */
.console-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.console-nav {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 8px;
}
.console-nav .grp {
  margin: 14px 12px 6px;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.console-nav .grp:first-child { margin-top: 6px; }
.console-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .93rem;
  position: relative;
  white-space: nowrap;
}
.console-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}
.console-nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.console-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 3px;
  border-radius: 2px;
  background: var(--grad);
}
.console-main { min-width: 0; }

@media (max-width: 900px) {
  .console-layout { grid-template-columns: 1fr; }
  .console-nav {
    position: static;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px;
  }
  .console-nav::-webkit-scrollbar { display: none; }
  .console-nav .grp { display: none; }
  .console-nav a { padding: 7px 12px; }
  .console-nav a.active::before { display: none; }
}

/* ---------- 18 购物车引导页 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps .step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  padding: 26px 24px 22px;
  transition: all .25s ease-out;
}
.steps .step:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: #c7d6f5; }
.steps .step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--sh-brand);
}
.steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 42px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  transform: rotate(45deg);
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .steps .step:not(:last-child)::after { display: none; }
}

/* ---------- 19 公告正文 ---------- */
.article-body { color: var(--ink-2); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

/* ---------- 20 筛选 tab ---------- */
.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.type-tabs .btn { padding: 6px 16px; font-size: .88rem; }

/* ---------- 21 控制台指标卡（固定 4 列，避免 auto-fill 在第 4 张断裂） ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .metric-grid { grid-template-columns: 1fr; } }
