/* ============================================
   白底炫酷 — Pipeline 通用授权中心
   参考:Linear.app / Stripe / Vercel
   设计语言:
   - 纯白底 + 彩色 mesh 渐变光晕
   - 极大字号(96-128px Hero),紧凑字距
   - Glass morphism(backdrop-filter blur)
   - Bento Grid 不对称布局
   - 渐变文字 + 渐变边框
   - 大量留白 + 装饰元素(光晕、徽章)
   ============================================ */

:root {
  /* ===== 品牌主色 (Tailwind blue-600 系) ===== */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-active: #1E40AF;
  --primary-light: #EFF6FF;

  /* ===== 背景 ===== */
  --bg-0: #FFFFFF;
  --bg-1: #F5F7FA;
  --bg-2: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-solid: #FFFFFF; /* 后台卡片/侧栏等不透明表面(此前被引用但未定义,导致透明) */

  /* ===== 文字 ===== */
  --text-0: #172033;
  --text-1: #1E293B;
  --text-2: #5B6475;
  --text-3: #8A94A6;
  --text-4: #A1A1AA;

  /* ===== 边框 ===== */
  --border: #E5EAF1;
  --border-strong: #D9E0EA;
  --border-blue: #BFDBFE;

  /* ===== 辅助色(原型 ui-prototypes 引用,补齐定义) ===== */
  --secondary: #1E40AF;
  --accent: #06B6D4;
  --accent-light: rgba(6, 182, 212, 0.10);
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* ===== 状态 ===== */
  --success: #16A34A;
  --success-light: #F0FDF4;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --info: #2563EB;
  --info-light: #EFF6FF;

  /* ===== 阴影 ===== */
  --shadow-2xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.10);

  /* ===== 圆角 ===== */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* ===== 间距 ===== */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ===== 全局滚动条:细 + 淡 =====
   - Chrome/Edge/Safari: ::-webkit-scrollbar-*
   - Firefox: scrollbar-width + scrollbar-color
   - 轨道透明,thumb 用 var(--border) 浅灰,hover 加深一档
*/
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
  transition: background 0.15s;
}
*::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
*::-webkit-scrollbar-thumb:active { background: var(--text-3); }
*::-webkit-scrollbar-corner { background: transparent; }

/* 注意:不能对 html 设 scrollbar-width/scrollbar-color(非 auto),
   否则 Chrome/Edge 会忽略上面的 ::-webkit-scrollbar 自定义宽度,10px 失效。
   统一交给 ::-webkit-scrollbar 渲染 10px 细条。 */

/* ===== 强制 body 用经典滚动条(避免 Chrome Win11 的 overlay 滚动条吞样式) ===== */
body {
  overflow-y: scroll;
  overflow-x: hidden;
}
/* body 直接规则比 * 通配优先级高,确保滚动条一定显示 */
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb {
  background: #D9E0EA;
  border-radius: 5px;
}
body::-webkit-scrollbar-thumb:hover { background: #B5BFCC; }

body {
  background: var(--bg-1);
  color: var(--text-0);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  font-feature-settings: "tnum", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--bg-2);
  color: var(--text-1);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

h1, h2, h3, h4 {
  color: var(--text-0);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ============================================
   顶部导航 — 玻璃拟态
   ============================================ */
.nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 76px;
}
.logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--text-0);
  color: white;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; gap: 2px; }
.logo-name { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.logo-sub {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 44px; align-items: center; }
.nav-links a {
  color: var(--text-1);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.15s;
  padding: 4px 0;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--primary); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-user { display: flex; align-items: center; gap: 8px; }
/* 导航登录态(由 base.html 的内联脚本根据 localStorage 切换) */
.nav-username {
  color: var(--text-1);
  font-size: 14px;
  text-decoration: none;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-username:hover { color: var(--primary); }

/* ============================================
   通用容器
   ============================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Hero — 彩色 mesh + 大字号 + 不对称
   ============================================ */
.hero {
  padding: 120px 0 88px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--primary-light), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 36px;
  padding: 8px 16px;
  background: var(--accent-light);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 4px;
  font-family: var(--font-mono);
}
.hero-en {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 28px;
}
.hero h1 {
  font-size: 104px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  color: var(--text-0);
}
.hero .sub {
  font-size: 22px;
  color: var(--text-2);
  max-width: 760px;
  margin: 0 auto 64px;
  line-height: 1.55;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--bg-1);
  margin-bottom: 32px;
  font-weight: 500;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.hero h1 {
  font-size: 88px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--text-0);
}
.hero .sub {
  font-size: 21px;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 56px;
  line-height: 1.6;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 80px;
}

/* Hero 数据指标 — 极简 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 800px;
  margin: 0 auto;
  padding: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.hero-stat {
  background: var(--bg-card);
  padding: 24px 16px;
  text-align: center;
}
.hero-stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-0);
  margin-bottom: 8px;
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
  position: relative;
}
.btn-primary {
  background: var(--text-0);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #000;
  color: white;
  box-shadow: var(--shadow);
}
.btn-outline {
  background: var(--bg-card);
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--text-0);
  color: var(--text-0);
  background: var(--bg-1);
}
.btn-solid {
  background: var(--primary);
  color: white;
}
.btn-solid:hover {
  background: var(--primary-hover);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--text-0);
  background: var(--bg-2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ============================================
   Section
   ============================================ */
.section { padding: 140px 0; position: relative; }
.section-alt { background: var(--bg-1); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}
.section-header-left {
  flex: 1;
  min-width: 280px;
}
.section-header-side {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 1px;
  padding-bottom: 12px;
}
.section-header-side a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.section-header-side a:hover { border-bottom-color: var(--primary); }
.section-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  color: var(--text-0);
  line-height: 1.0;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  font-weight: 400;
  margin-top: 28px;
  max-width: 600px;
}

/* ============================================
   产品矩阵 — 自适应 grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  border-radius: 12px 0 0 12px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.product-card:hover::before { opacity: 1; }
.product-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-1);
  position: relative;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.product-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-4);
  letter-spacing: 1px;
}
.product-id {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 14px;
}
.product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-1);
  color: var(--primary);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
}
.product-mark.tone-1 { background: var(--primary-light); color: var(--primary); border-color: rgba(37, 99, 235, 0.25); }
.product-mark.tone-2 { background: var(--accent-light); color: var(--accent); border-color: rgba(14, 165, 233, 0.25); }
.product-mark.tone-3 { background: var(--secondary-light); color: var(--secondary); border-color: rgba(30, 64, 175, 0.25); }
.product-mark.tone-4 { background: #ede9fe; color: #5b21b6; border-color: rgba(91, 33, 182, 0.25); }
.product-mark.tone-5 { background: var(--warning-light); color: var(--warning); border-color: rgba(217, 119, 6, 0.25); }
.product-mark.tone-6 { background: var(--danger-light); color: var(--danger); border-color: rgba(220, 38, 38, 0.25); }

.product-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--text-0);
}
.product-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  min-height: 50px;
}
.product-features {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-1);
  padding: 4px 9px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid var(--border);
}
.product-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px dashed var(--border);
}
.price-amount {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1;
  font-family: var(--font-mono);
}
.price-cycle {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
}
.price-label {
  font-size: 12px;
  color: var(--text-3);
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ============================================
   功能特性 — 6 卡片网格
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.15s;
}
.feature-card:hover {
  border-color: var(--text-0);
  box-shadow: var(--shadow);
}
.feature-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text-0);
}
.feature-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   终端 / 代码区
   ============================================ */
.code-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.code-text h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.code-text p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}
.code-features {
  list-style: none;
  padding: 0;
}
.code-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-1);
}
.code-features li::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
  margin-top: 2px;
}

.terminal {
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px -20px rgba(21, 128, 61, 0.4);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #1f1f1f;
  background: #111;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2a2a2a;
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #71717a;
  margin-left: 12px;
}
.terminal-body {
  padding: 28px;
  color: #e4e4e7;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
}
.t-comment { color: #71717a; }
.t-key { color: #fbbf24; }
.t-str { color: #86efac; }
.t-prompt { color: #60a5fa; font-weight: 700; }
.t-out { color: #a1a1aa; }
.t-ok { color: #22c55e; font-weight: 700; }

/* ============================================
   CTA — 深蓝数据感
   ============================================ */
.cta-block {
  background: var(--primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 20px;
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.035em;
  color: white;
  line-height: 1.0;
}
.cta-block p {
  font-size: 19px;
  opacity: 0.85;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.cta-block .btn-primary {
  background: white;
  color: var(--primary);
  border-color: white;
}
.cta-block .btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary);
}
.cta-block .btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(14, 165, 233, 0.6);
}
.cta-block .btn-outline:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--accent);
  color: white;
}

/* ============================================
   表单
   ============================================ */
.auth-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}
.auth-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.025em;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-0);
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); /* 品牌蓝 focus 环 */
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-2);
}

/* ============================================
   用户 dashboard
   ============================================ */
.dashboard {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 32px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.dashboard-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 14px;
}
.stat-label {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.section-panel {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.panel-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  color: var(--text-0);
}

table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--text-3);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-1);
}
td { color: var(--text-1); }
tr:hover td { background: var(--bg-1); }
tr:last-child td { border-bottom: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tag-success {
  background: var(--primary-light);
  color: var(--primary);
}
.tag-warning {
  background: rgba(217, 119, 6, 0.08);
  color: var(--warning);
}
.tag-error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}
.tag-info {
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================
   富文本产品介绍
   ============================================ */
.intro-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 64px;
  box-shadow: var(--shadow);
}
.intro-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-1);
}
.intro-content h1, .intro-content h2, .intro-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.intro-content h1 { font-size: 32px; font-weight: 800; margin-top: 0; }
.intro-content h2 { font-size: 26px; font-weight: 800; }
.intro-content h3 { font-size: 22px; font-weight: 700; }
.intro-content p { margin-bottom: 16px; }
.intro-content ul, .intro-content ol {
  margin: 16px 0 16px 0;
  padding-left: 24px;
}
.intro-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.intro-content img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 20px 0;
}
.intro-content a { color: var(--primary); text-decoration: underline; }
.intro-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.intro-content table th, .intro-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.intro-content table th {
  background: var(--bg-1);
  font-weight: 600;
}
.intro-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: var(--accent-light);
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  color: var(--text-2);
  font-style: italic;
}
.intro-content code {
  background: var(--bg-1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
}
.intro-section .section-tag {
  margin-bottom: 24px;
}

/* ============================================
   产品详情
   ============================================ */
.product-hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(37, 99, 235, 0.05), transparent),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(14, 165, 233, 0.05), transparent),
    var(--bg-0);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}
.product-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-hero-info h1 {
  font-size: 64px;
  font-weight: 900;
  margin: 20px 0 16px;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.product-hero-info .sub {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 540px;
}
.hero-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.product-hero-screenshot {
  position: relative;
}
.product-hero-screenshot::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08), transparent 70%);
  z-index: -1;
}
.product-hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse 60% 40% at 30% 20%, rgba(21, 128, 61, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(99, 102, 241, 0.08), transparent),
    var(--bg-0);
  position: relative;
  overflow: hidden;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-hero-info h1 {
  font-size: 64px;
  font-weight: 900;
  margin: 24px 0 16px;
  letter-spacing: -0.03em;
}
.product-hero-info .sub {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.7;
}
.hero-img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.download-btn {
  flex-direction: column;
  align-items: center;
  padding: 20px 16px !important;
  gap: 4px;
}
.dl-os {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dl-version { font-size: 13px; opacity: 0.7; }
.dl-size { font-size: 12px; opacity: 0.5; }
.req-list { padding-left: 24px; color: var(--text-2); line-height: 2; }
.req-list li { font-size: 15px; }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.screenshot-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}
.plan-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text-0); }
.plan-cycle {
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 20px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.plan-price .currency { color: var(--text-3); font-size: 16px; font-weight: 600; }
.plan-price .amount {
  font-size: 44px;
  font-weight: 900;
  color: var(--text-0);
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price .cycle-text { color: var(--text-3); font-size: 14px; }
.plan-first-period, .plan-trial {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}
.plan-first-period strong, .plan-trial strong { color: var(--text-0); }
.plan-features { list-style: none; margin: 16px 0 24px; padding: 0; }
.plan-features li {
  font-size: 14px;
  color: var(--text-1);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-features li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.plan-features strong { color: var(--text-0); font-weight: 600; }
.plan-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.plan-cta { margin-top: auto; width: 100%; }
/* 从产品详情页跳转过来时,选中套餐的高亮态(/plans?plan=xxx) */
.plan-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

/* ============================================
   重设计期间遗失的类名补齐(与上方设计语言一致)
   ============================================ */
.product-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: var(--primary-light);
}
.price-from {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-actions { margin-top: auto; padding-top: 20px; }
.product-actions .btn { width: 100%; }
.product-id-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-tag-left {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.subscribe-btn { margin-top: auto; }
.num { font-size: 32px; font-weight: 900; color: var(--text-0); letter-spacing: -0.03em; }
/* admin 仪表盘统计卡变体 */
.stat-card-primary { border-top: 3px solid var(--primary); }
.stat-card-info { border-top: 3px solid #0EA5E9; }
.stat-card-success { border-top: 3px solid #18A058; }
.stat-card-warning { border-top: 3px solid #F59E0B; }

/* ============================================
   布局工具类(模板内联样式的统一收口)
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.text-faint { color: var(--text-3); }
.text-success { color: #18A058; }
.text-error { color: #D03050; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.w-full { width: 100%; }

/* ============================================
   支付弹窗
   ============================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-card {
  background: var(--bg-card-solid);
  border-radius: 18px;
  padding: 40px;
  width: 400px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.modal-card h3 { margin-bottom: 20px; font-size: 22px; font-weight: 800; }
.qr-container {
  margin: 16px 0;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.qr-container img { max-width: 240px; }
.qr-hint { color: var(--text-2); font-size: 13px; margin-top: 12px; }
.code-display {
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 10px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--text-0);
  font-weight: 700;
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  font-size: 14px;
  border-left: 3px solid var(--text-0);
  animation: slideIn 0.3s ease;
}
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   通用工具
   ============================================ */
.text-center { text-align: center; }
.text-success { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.muted { color: var(--text-2); }
.small { font-size: 13px; }

/* ============================================
   Footer — 多列商务
   ============================================ */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--text-0); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================
   响应式 — 兼容手机端
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .code-section { grid-template-columns: 1fr; }
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero-stats { max-width: 600px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; gap: 16px; min-height: 64px; }
  .container { padding: 0 20px; }
  .logo-sub { display: none; }
  .logo-mark { width: 36px; height: 36px; font-size: 14px; }
  .nav-status { display: none; }
  .nav-divider { display: none; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .nav-user .btn { padding: 10px 18px; font-size: 14px; font-weight: 600; }

  .hero { padding: 80px 0 72px; }
  .hero h1 { font-size: 52px; letter-spacing: -0.03em; }
  .hero .sub { font-size: 17px; margin-bottom: 40px; }
  .hero-eyebrow { font-size: 11px; padding: 6px 12px; letter-spacing: 3px; }
  .hero-en { font-size: 11px; letter-spacing: 4px; margin-top: 20px; }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
  }
  .hero-actions .btn { width: 100%; }

  .section { padding: 72px 0; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 48px;
    gap: 16px;
  }
  .section-header-side { padding-bottom: 0; }
  .section-title { font-size: 40px; letter-spacing: -0.025em; }
  .section-title::after { bottom: -12px; height: 3px; width: 36px; }
  .section-sub { font-size: 16px; margin-top: 20px; }

  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 28px 24px; }
  .product-name { font-size: 24px; }
  .product-desc { font-size: 15px; min-height: auto; }
  .price-amount { font-size: 36px; }

  .cta-block { padding: 56px 24px; border-radius: 16px; }
  .cta-block h2 { font-size: 36px; letter-spacing: -0.025em; }
  .cta-block p { font-size: 16px; margin-bottom: 32px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  .section-title { font-size: 32px; }
}

/* ============================================
   管理后台 — 白底风
   ============================================ */
.admin-body { background: var(--bg-1); }
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-card-solid);
  border-right: 1px solid var(--border);
  padding: 0 0 24px; /* 去掉顶部内边距,让 Logo 与顶栏齐平 */
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  height: 57px;                 /* 与右侧顶栏等高,两条底边框对齐 */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.admin-logo a { color: var(--text-0); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.admin-logo a::before {
  content: "B";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--gradient-3); color: white;
  border-radius: 8px;
  font-size: 14px; font-weight: 800;
}
.admin-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.admin-nav-item:hover { background: var(--bg-1); color: var(--text-0); }
.admin-nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.admin-sidebar-footer { padding: 12px; border-top: 1px solid var(--border); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.admin-main { overflow-x: hidden; }
.admin-topbar {
  height: 57px;                 /* 与左侧 Logo 区等高 */
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--text-0); letter-spacing: -0.02em; }
.admin-topbar-user { font-size: 13px; color: var(--text-2); }

#page-content { padding: 28px 32px; }

.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 1024px) { .row-2col { grid-template-columns: 1fr; } }
.chart-area { padding: 16px 0; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--bg-card); }
.admin-table th {
  background: var(--bg-1);
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--text-3);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
}
.admin-table tr:hover td { background: var(--bg-1); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table code {
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.form-row { margin-bottom: 20px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-0);
  box-sizing: border-box;
  transition: all 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); /* 品牌蓝 focus 环(原绿色与全站主题冲突) */
}
.form-input:disabled { background: var(--bg-1); color: var(--text-3); }
.form-hint { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.form-actions { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.btn-block { display: block; width: 100%; }

.plan-group {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card-solid);
}
.plan-group-header {
  padding: 16px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.plan-group-title { font-weight: 800; color: var(--text-0); font-size: 16px; }

.modal {
  background: var(--bg-card-solid);
  border-radius: 18px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; color: var(--text-0); letter-spacing: -0.02em; }

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .form-row-2col, .form-row-3col { grid-template-columns: 1fr; }
}

/* ============================================
   专业级设计令牌 — 统一规范 (Professional Tier)
   ============================================ */

:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 20px;
  --shadow-2xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-xs:  0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 4px 8px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg:  0 12px 20px -4px rgba(15, 23, 42, 0.10), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl:  0 24px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* 全局字体渲染更精致 */
body {
  font-feature-settings: "cv11", "ss01", "tnum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}
h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.15; }
h1 { letter-spacing: -0.035em; line-height: 1.05; }
code, .mono {
  font-feature-settings: "tnum", "zero", "ss02";
  letter-spacing: -0.005em;
}

/* 焦点环(可访问性) */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
input, select, textarea, button { font-family: inherit; }
input:focus, select:focus, textarea:focus, button:focus { outline: none; }

/* ============================================
   通用组件库
   ============================================ */

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Panel (dashboard 区块) */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.panel-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: 12px;
}
.panel-title {
  font-size: 16px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text-0);
  display: flex; align-items: center; gap: 8px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-3);
  font-family: var(--font-mono);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-4); }

/* Badge(状态徽章 — 统一规范) */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.4;
}
.badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.badge-success { background: var(--primary-light); color: var(--primary); }
.badge-warning { background: rgba(217, 119, 6, 0.08); color: var(--warning); }
.badge-danger  { background: rgba(220, 38, 38, 0.08); color: var(--danger); }
.badge-info    { background: var(--accent-light); color: var(--accent); }
.badge-muted   { background: var(--bg-2); color: var(--text-3); }
.badge-dark    { background: var(--text-0); color: white; }
.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
  padding: 2px 8px;
}

/* Tab */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-0); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Filter pills */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.pill {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-family: var(--font-mono);
  color: var(--text-2);
  background: var(--bg-card);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}
.pill:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Table (紧凑专业) */
.tbl {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-card);
}
.tbl thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 12px; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky; top: 0;
}
.tbl tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--bg-1); }
.tbl tbody tr.row-warning { background: rgba(217, 119, 6, 0.04); }
.tbl tbody tr.row-warning:hover { background: rgba(217, 119, 6, 0.07); }
.tbl code {
  font-size: 13px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Data cell (信息格) */
.data-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.data-grid-2 { grid-template-columns: repeat(2, 1fr); }
.data-grid-3 { grid-template-columns: repeat(3, 1fr); }
.data-grid-4 { grid-template-columns: repeat(4, 1fr); }
.data-grid-5 { grid-template-columns: repeat(5, 1fr); }
.data-grid-6 { grid-template-columns: repeat(6, 1fr); }
.data-cell {
  background: var(--bg-card);
  padding: 16px 20px;
}
.data-cell-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.data-cell-value {
  font-size: 15px; font-weight: 700;
  color: var(--text-0);
  font-family: var(--font-mono);
  line-height: 1.2;
}
.data-cell-value.large { font-size: 20px; }
.data-cell-value.success { color: var(--primary); }
.data-cell-value.muted { color: var(--text-3); }
.data-cell-value.danger { color: var(--danger); }
.data-cell-sub {
  font-size: 12px; color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: 4px;
}

/* Metric(大数字) */
.metric {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-lg { font-size: 40px; }
.metric-success { color: var(--primary); }
.metric-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 8px;
}
.metric-trend.up { background: var(--primary-light); color: var(--primary); }
.metric-trend.down { background: rgba(220, 38, 38, 0.08); color: var(--danger); }

/* Link arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-weight: 600;
  font-size: 13px;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: gap 0.15s;
}
.link-arrow:hover { gap: 8px; }
.link-arrow::after { content: "→"; }

/* Section header */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ""; width: 18px; height: 2px;
  background: var(--accent);
}
.section-title {
  font-size: 48px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05;
  color: var(--text-0);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--text-2);
  line-height: 1.6;
  max-width: 620px;
}

/* Action group */
.actions {
  display: inline-flex; gap: 6px; align-items: center;
}
.actions .btn { padding: 6px 12px; font-size: 13px; }

/* Alert (提示框) */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; line-height: 1.6;
}
.alert-icon { flex-shrink: 0; font-size: 16px; line-height: 1; margin-top: 1px; }
.alert-info    { background: var(--accent-light); color: var(--text-1); border-color: rgba(14, 165, 233, 0.25); }
.alert-warning { background: rgba(217, 119, 6, 0.06); color: var(--text-1); border-color: rgba(217, 119, 6, 0.25); }
.alert-danger  { background: rgba(220, 38, 38, 0.06); color: var(--text-1); border-color: rgba(220, 38, 38, 0.25); }
.alert-success { background: var(--primary-light); color: var(--text-1); border-color: rgba(22, 163, 74, 0.25); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-3);
}
.empty-state-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.empty-state-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.empty-state-desc {
  font-size: 13px; color: var(--text-3);
  max-width: 320px; margin: 0 auto;
}

/* Cell helpers */
.cell-primary { color: var(--text-0); font-weight: 700; }
.cell-secondary { color: var(--text-1); }
.cell-muted { color: var(--text-3); }
.cell-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cell-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Dot indicator (in cell) */
.dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot-success { background: var(--primary); }
.dot-warning { background: var(--warning); }
.dot-danger  { background: var(--danger); }
.dot-info    { background: var(--accent); }
.dot-muted   { background: var(--text-4); }

/* Brand bar(顶部品牌条,非完整 nav) */
.brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky; top: 0; z-index: 50;
}
.brand-bar-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.025em;
  color: var(--text-0); font-size: 15px;
  text-decoration: none;
}
.brand-bar-mark::before {
  content: "B";
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text-0); color: white;
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 800;
}
.brand-bar-meta {
  display: flex; gap: 20px; align-items: center;
  font-size: 13px; color: var(--text-3);
  font-family: var(--font-mono);
}

/* Cell label pair (label + value, vertical) */
.kv {
  display: flex; flex-direction: column; gap: 4px;
}
.kv-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kv-value {
  font-size: 14px; font-weight: 700;
  color: var(--text-0);
  font-family: var(--font-mono);
  line-height: 1.3;
}
.kv-value.mono { font-family: var(--font-mono); }
.kv-value.muted { color: var(--text-3); }
.kv-value.danger { color: var(--danger); }
.kv-value.success { color: var(--primary); }

/* Hover row highlight */
.tbl tbody tr.row-active {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
}

/* Skeleton loader(简单版) */
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-1) 50%, var(--bg-2) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Backlink (返回链接) */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--font-mono);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s, gap 0.15s;
}
.back-link:hover { color: var(--primary); gap: 10px; }
.back-link::before { content: "←"; }

/* ============================================
   后台共享表单组件 (.pf) — 产品/套餐编辑页统一风格
   ============================================ */
.pf { max-width: 1240px; margin: 0 auto; padding-bottom: 96px; }

.pf-head { margin-bottom: 22px; }
.pf-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); text-decoration: none; margin-bottom: 12px; }
.pf-back:hover { color: var(--primary); }
.pf-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-0); }
.pf-sub { margin: 6px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

.pf-card { background: var(--bg-card-solid); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); padding: 24px 26px; margin-bottom: 18px; }
.pf-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pf-num { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-light); color: var(--primary); font-family: var(--font-mono); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pf-card-h h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text-0); letter-spacing: -0.01em; }

.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.pf-field { min-width: 0; }
.pf-field.full { grid-column: 1 / -1; }
.pf .form-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.pf .form-label .req { color: var(--danger); }
.pf .form-label .opt { font-weight: 400; color: var(--text-3); font-size: 13px; }
.pf .form-input { width: 100%; padding: 10px 13px; background: var(--bg-0); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-0); box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.pf textarea.form-input { resize: vertical; line-height: 1.6; }
.pf .form-input.mono { font-family: var(--font-mono); font-size: 12.5px; }
.pf .form-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-focus); }
.pf .form-hint { margin: 8px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.5; }

.pf-upload-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.up-status { font-size: 13px; color: var(--text-3); }

/* 主图 / 截图预览 */
.hero-preview { margin-top: 10px; height: 170px; display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--bg-1); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-3); font-size: 13px; overflow: hidden; }
.hero-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.shot-grid:empty { display: none; }
.shot-item { position: relative; aspect-ratio: 16/10; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.shot-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(23,32,51,.75); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.shot-del:hover { background: var(--danger); }
.shot-idx { position: absolute; left: 6px; bottom: 4px; font-family: var(--font-mono); font-size: 11px; color: #fff; background: rgba(23,32,51,.6); padding: 1px 6px; border-radius: 4px; }

/* 标签输入器(特性 / 系统要求) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: var(--bg-0); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); min-height: 44px; align-items: center; transition: border-color .15s, box-shadow .15s; }
.chips:focus-within { border-color: var(--primary); box-shadow: var(--shadow-focus); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 10px; background: var(--primary-light); color: var(--primary); border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip-x { border: none; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 50%; opacity: .7; }
.chip-x:hover { opacity: 1; background: rgba(37,99,235,.15); }
.chip-input { flex: 1; min-width: 160px; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text-0); padding: 4px; }

/* 截图 URL 添加行 */
.add-url-row { display: flex; gap: 8px; margin-top: 10px; }
.add-url-row .form-input { flex: 1; }

/* 下载链接结构化行 */
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-empty { font-size: 13px; color: var(--text-3); padding: 12px; background: var(--bg-1); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); }
.dl-row { display: grid; grid-template-columns: 120px 1fr 130px 90px 40px; gap: 8px; align-items: center; }
.dl-row .form-input { padding: 8px 10px; font-size: 13px; }
.dl-del { border: 1px solid var(--border-strong); background: var(--bg-0); color: var(--danger); border-radius: var(--radius-sm); height: 36px; cursor: pointer; font-size: 14px; }
.dl-del:hover { background: var(--danger-light); border-color: var(--danger); }
@media (max-width: 900px) { .dl-row { grid-template-columns: 1fr 1fr; } }

/* 富文本编辑器 */
.rte { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; background: var(--bg-1); border-bottom: 1px solid var(--border); }
.rte-bar button { min-width: 32px; height: 30px; padding: 0 8px; border: 1px solid transparent; background: transparent; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-1); }
.rte-bar button:hover { background: #fff; border-color: var(--border-strong); }
.rte-edit { min-height: 260px; padding: 14px 16px; background: var(--bg-0); font-size: 14px; line-height: 1.8; color: var(--text-0); outline: none; }
.rte-edit:focus { box-shadow: inset 0 0 0 2px rgba(37,99,235,.15); }
.rte-edit h3 { font-size: 18px; margin: 16px 0 8px; font-weight: 800; }
.rte-edit img { max-width: 100%; border-radius: 6px; margin: 8px 0; }
.rte-edit ul, .rte-edit ol { padding-left: 22px; margin: 8px 0; }

/* 底部固定操作栏 */
.pf-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 26px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.pf-foot .pf-err { font-size: 13px; color: var(--danger); }
.pf-foot .spacer { margin-left: auto; }
.pf-foot .btn { min-width: 96px; justify-content: center; }

@media (max-width: 720px) { .pf-grid { grid-template-columns: 1fr; } .pf { padding-bottom: 88px; } }

/* ===== 后台细节统一 ===== */
/* 列表页工具栏统一类 */
.admin-toolbar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-toolbar .form-input { flex: none; }
.admin-toolbar .search { flex: 1; min-width: 280px; max-width: 480px; }

/* 嵌在 panel 内的表格去掉外边距,与容器边框对齐 */
.panel > .tbl-wrap { overflow: hidden; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card-solid); }
.tbl-wrap .tbl { background: transparent; }

/* 空表格行统一观感 */
.tbl tbody td.empty-cell, .admin-table tbody td.empty-cell { text-align: center; color: var(--text-3); padding: 40px 14px; }

/* ===== 仪表盘 ===== */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-stat { background: var(--bg-card-solid); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.dash-stat-label { font-size: 12px; font-weight: 600; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.dash-stat .metric { font-size: 28px; }
.dash-stat .metric.danger { color: var(--danger); }
.dash-stat-note { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.dash-stat-note.ok { color: var(--primary); }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-cols:last-child { margin-bottom: 0; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.panel-flush-body { padding: 16px 24px; }
.dash-todo-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--warning-light); border: 1px solid rgba(217, 119, 6, 0.22); border-radius: var(--radius-sm); margin-bottom: 8px; }
.dash-todo-item:last-child { margin-bottom: 0; }
.dash-todo-title { font-size: 13px; font-weight: 700; color: var(--text-0); }
.dash-todo-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dash-empty { padding: 20px 0; font-size: 13px; color: var(--text-3); }
@media (max-width: 1100px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } .dash-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dash-stats { grid-template-columns: 1fr; } }

