/* ========================================
   天赋密码 - 统一设计系统 v3.0
   全站H5页面统一视觉语言
   ======================================== */

/* ====== CSS 变量 ====== */
:root {
  /* 主色系 */
  --p: #6366F1;
  --p-dark: #4F46E5;
  --p-light: #818CF8;
  --p-bg: #EEF2FF;
  --s: #F59E0B;
  --s-dark: #D97706;
  --s-light: #FBBF24;
  --s-bg: #FFFBEB;
  --accent: #EC4899;
  --accent-bg: #FDF2F8;

  /* 向后兼容别名（旧 admin 页面使用） */
  --card: #FFFFFF;
  --border: #E2E8F0;
  --text-muted: #64748B;
  --primary: #6366F1;

  /* 功能色 */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --info: #3B82F6;
  --info-bg: #EFF6FF;

  /* 表面色 */
  --bg: #F8FAFC;
  --surf: #FFFFFF;
  --surf2: #F1F5F9;
  --surf3: #E2E8F0;

  /* 文字色 */
  --ink: #0F172A;
  --ink2: #334155;
  --ink3: #64748B;
  --ink4: #94A3B8;

  /* 边框 */
  --line: #E2E8F0;
  --line2: #CBD5E1;
  --line-focus: #818CF8;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 10px 15px rgba(0,0,0,.06), 0 4px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 25px rgba(0,0,0,.06), 0 8px 10px rgba(0,0,0,.04);
  --shadow-xl: 0 25px 50px rgba(0,0,0,.08);

  /* 圆角 */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* 间距 */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;
  --s16: 64px;
  --s20: 80px;

  /* 字体 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 布局 */
  --max-w: 1200px;
  --nav-h: 64px;
}

/* ====== Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--p); color: #fff; }

/* ====== 容器 ====== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 880px; }
.container-lg { max-width: 1200px; }

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--ink3); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.gradient-text {
  background: linear-gradient(135deg, var(--p), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: var(--s3);
}

.report-section .section-title,
.card-body .section-title {
  text-align: left;
  margin-bottom: var(--s3);
  margin-top: var(--s5);
}

.section-subtitle {
  text-align: center;
  color: var(--ink3);
  max-width: 600px;
  margin: 0 auto var(--s12);
  font-size: 1.05rem;
}

/* ====== 顶部导航 ====== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: all .3s var(--ease);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.nav-logo .logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink3);
  transition: all .2s;
}

.nav-links a:hover { color: var(--ink); background: var(--surf2); }

.nav-links .nav-btn {
  background: var(--p);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--r-full);
  margin-left: 8px;
}

.nav-links .nav-btn:hover {
  background: var(--p-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}

.nav-links .nav-btn-outline {
  border: 2px solid var(--line);
  color: var(--ink2);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--r-full);
}

.nav-links .nav-btn-outline:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--p-bg);
}

.nav-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav-mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}

/* ====== Section 通用 ====== */
.section {
  padding: var(--s20) 0;
}

.section-sm { padding: var(--s12) 0; }
.section-lg { padding: 100px 0; }

.section-dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: #E2E8F0;
}

.section-dark h1, .section-dark h2, .section-dark h3 { color: #F8FAFC; }
.section-dark .text-muted { color: #94A3B8; }

.section-alt { background: var(--surf2); }

/* ====== Hero ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1A1A2E 100%);
  padding: calc(var(--nav-h) + var(--s10)) 0 var(--s16);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(236,72,153,.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(245,158,11,.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

.hero-content { max-width: 560px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--p-light);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: var(--s6);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #F8FAFC;
  margin-bottom: var(--s5);
}

.hero-title .hl {
  background: linear-gradient(135deg, var(--p-light), var(--s-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(226,232,240,.75);
  line-height: 1.8;
  margin-bottom: var(--s8);
}

.hero-actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s-light);
}
.hero-stats .stat-label {
  font-size: .82rem;
  color: rgba(226,232,240,.5);
  margin-top: 2px;
}
.hero-stats .stat-divider {
  width: 1px; height: 40px;
  background: rgba(226,232,240,.15);
}

/* 高亮统计项 — 1290万考生 */
.hero-stats .stat-highlight .stat-num {
  color: #FF6B6B;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(255,107,107,.4), 0 0 8px rgba(255,107,107,.2);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.hero-stats .stat-highlight .stat-label {
  color: rgba(255,107,107,.85);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .5px;
}
@keyframes pulseGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(255,107,107,.4), 0 0 8px rgba(255,107,107,.2); }
  50%      { text-shadow: 0 0 45px rgba(255,107,107,.7), 0 0 16px rgba(255,107,107,.5); }
}

/* ====== 高考竞争标语横幅 ====== */
.gaokao-banner {
  margin: var(--s6) auto var(--s8);
  max-width: 720px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF1F0 50%, #FFF5F5 100%);
  border: 1.5px solid #FECACA;
  border-radius: var(--r);
  padding: var(--s5) var(--s8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  box-shadow: 0 4px 16px rgba(239,68,68,.06);
}
.gaokao-banner .banner-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  animation: bannerPulse 2s ease-in-out infinite;
}
@keyframes bannerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
.gaokao-banner .banner-text {
  font-size: 1.05rem;
  color: #7F1D1D;
  line-height: 1.7;
  font-weight: 500;
}
.gaokao-banner .banner-text strong.count {
  font-size: 1.6rem;
  font-weight: 900;
  color: #DC2626;
  display: inline-block;
  margin: 0 2px;
  letter-spacing: -1px;
  text-shadow: 0 1px 2px rgba(220,38,38,.15);
}
.gaokao-banner .banner-text strong.warn {
  color: #DC2626;
  font-weight: 700;
}
@media (max-width: 640px) {
  .gaokao-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--s4);
    gap: var(--s2);
  }
  .gaokao-banner .banner-text { font-size: .94rem; }
  .gaokao-banner .banner-text strong.count { font-size: 1.35rem; }
}

/* 英雄视觉 - 轨道动画 */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 420px;
  height: 420px;
  justify-self: center;
}

.orbit-container {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-orb {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--p), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 0 60px rgba(99,102,241,.5);
  z-index: 2;
  position: relative;
  animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(99,102,241,.5); transform: scale(1); }
  50% { box-shadow: 0 0 80px rgba(99,102,241,.8); transform: scale(1.05); }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(226,232,240,.12);
  animation: orbitSpin linear infinite;
}

.orbit-1 { width: 160px; height: 160px; animation-duration: 8s; }
.orbit-2 { width: 260px; height: 260px; animation-duration: 14s; }
.orbit-3 { width: 380px; height: 380px; animation-duration: 20s; }

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.planet {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.planet-1 { width: 40px; height: 40px; background: var(--s); top: 0; left: 50%; transform: translate(-50%, -50%); }
.planet-2 { width: 32px; height: 32px; background: var(--accent); bottom: 10%; right: -5%; }
.planet-3 { width: 36px; height: 36px; background: var(--success); top: 20%; left: -5%; }

/* Hero 预览卡片 */
.hero-preview {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: var(--s6);
}

.hero-preview h4 {
  color: #F8FAFC;
  font-size: 1rem;
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border-radius: var(--r);
  margin-bottom: 6px;
}

.preview-item:last-child { margin-bottom: 0; }

.preview-rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.preview-name { color: #E2E8F0; font-weight: 600; font-size: .9rem; }
.preview-cat { color: rgba(226,232,240,.45); font-size: .78rem; margin-top: 2px; }
.preview-score { color: var(--s-light); font-weight: 700; font-size: .85rem; margin-left: auto; }

/* ====== 按钮系统 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--p);
  color: #fff;
}

.btn-primary:hover {
  background: var(--p-dark);
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}

.btn-secondary {
  background: var(--surf2);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surf3);
}

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.btn-danger:hover {
  background: #FECACA;
  color: #B91C1C;
  border-color: #FCA5A5;
  box-shadow: 0 4px 12px rgba(220,38,38,.15);
}

.btn-accent {
  background: linear-gradient(135deg, var(--p), var(--accent));
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 6px 20px rgba(236,72,153,.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--s), var(--s-dark));
  color: #fff;
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--line2);
  color: var(--ink2);
}

.btn-outline:hover {
  border-color: var(--p);
  color: var(--p);
  background: var(--p-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink3);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--surf2);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  box-shadow: var(--shadow-md);
}

/* 按钮尺寸 */
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn:disabled, .btn.loading {
  opacity: .6;
  pointer-events: none;
}

/* ====== 卡片系统 ====== */
.card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: all .25s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line2);
}

.card-padded { padding: var(--s8); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-sm { padding: var(--s4); }
.card-lg { padding: var(--s8); border-radius: var(--r-xl); }

/* 统计卡片 */
.stat-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card-icon.blue { background: var(--p-bg); color: var(--p); }
.stat-card-icon.green { background: var(--success-bg); color: var(--success); }
.stat-card-icon.amber { background: var(--s-bg); color: var(--s); }
.stat-card-icon.pink { background: var(--accent-bg); color: var(--accent); }

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stat-card-label {
  font-size: .82rem;
  color: var(--ink3);
  margin-top: 2px;
}

/* ====== 表单系统 ====== */
.form-group { margin-bottom: var(--s5); }

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-hint {
  font-size: .78rem;
  color: var(--ink3);
  margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: .95rem;
  color: var(--ink);
  background: var(--surf);
  transition: all .2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.form-input::placeholder { color: var(--ink4); }
.form-textarea { min-height: 100px; resize: vertical; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid rgba(239,68,68,.2);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: .88rem;
  margin-bottom: var(--s4);
}

.form-success {
  background: var(--success-bg);
  border: 1px solid rgba(16,185,129,.2);
  color: #059669;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: .88rem;
  margin-bottom: var(--s4);
}

/* Radio / Checkbox Cards */
.option-card {
  display: block;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
}

.option-card:hover {
  border-color: var(--p-light);
  background: var(--p-bg);
}

.option-card input { display: none; }

.option-card.selected,
.option-card input:checked + .option-card-content {
  border-color: var(--p);
  background: var(--p-bg);
  color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.option-grid-5 { grid-template-columns: repeat(5, 1fr); }
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* 答题选项标签 */
.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .2s;
  font-weight: 500;
  background: var(--surf);
  position: relative;
  touch-action: manipulation;        /* 消除移动端 300ms 点击延迟 */
  -webkit-tap-highlight-color: transparent; /* 移除 iOS 点击灰色遮罩 */
  min-height: 48px;                  /* 移动端最小 48px 触摸目标 (WCAG) */
  user-select: none;                 /* 防止双击选中文字 */
  -webkit-user-select: none;
}
.option-label:hover {
  border-color: var(--p-light);
  background: var(--p-bg);
}
.option-label.selected,
.option-label:has(input:checked) {
  border-color: var(--p);
  background: var(--p-bg);
  color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}
.option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}
.radio-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink4);
  position: relative;
  flex-shrink: 0;
  transition: all .2s;
}
.option-label.selected .radio-dot,
.option-label:has(input:checked) .radio-dot {
  border-color: var(--p);
}
.option-label.selected .radio-dot::before,
.option-label:has(input:checked) .radio-dot::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border-radius: 50%;
  background: var(--p);
}

/* ====== 标签/徽章系统 ====== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary { background: var(--p-bg); color: var(--p); }
.badge-success { background: var(--success-bg); color: #059669; }
.badge-warning { background: var(--s-bg); color: #B45309; }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-accent { background: var(--accent-bg); color: var(--accent); }

.badge-lg { padding: 5px 14px; font-size: .85rem; }

.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--r-sm);
  font-size: .78rem;
  font-weight: 500;
  background: var(--surf2);
  color: var(--ink3);
}

/* ====== 表格系统 ====== */
.table-wrap {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--surf2);
  text-align: left;
  padding: 12px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 12px 16px;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink2);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surf2); }

.table-actions { display: flex; gap: 8px; }

/* ====== 分页 ====== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: var(--s8);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink2);
  transition: all .2s;
}

.pagination a:hover {
  background: var(--surf2);
  border-color: var(--p);
  color: var(--p);
}

.pagination .active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

.pagination .disabled {
  opacity: .4;
  pointer-events: none;
}

/* ====== 进度条 ====== */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--surf2);
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--accent));
  border-radius: var(--r-full);
  transition: width .4s var(--ease);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--ink3);
  margin-bottom: 6px;
}

/* ====== Toast 通知 ====== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--r);
  font-weight: 500;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform .35s var(--ease);
  max-width: 400px;
}

.toast.show { transform: translateX(0); }

.toast.info { background: var(--info); color: #fff; }
.toast.success { background: var(--success); color: #fff; }
.toast.error { background: var(--danger); color: #fff; }
.toast.warning { background: var(--s); color: #fff; }

/* ====== Auth 页面 (登录/注册) v4.0 — 现代极简风格 ====== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--s6) var(--s10);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* 装饰性背景元素 */
.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.07) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,.05) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--r-xl);
  padding: var(--s12) var(--s10);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.03),
    0 2px 4px rgba(0,0,0,.02),
    0 12px 40px rgba(0,0,0,.06),
    0 40px 80px rgba(99,102,241,.04);
}

/* 品牌标识 */
.auth-brand {
  text-align: center;
  margin-bottom: var(--s8);
}
.auth-brand .brand-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s4);
  background: linear-gradient(135deg, var(--p), var(--p-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(99,102,241,.25);
}
.auth-brand h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.auth-brand .subtitle {
  color: var(--ink3);
  font-size: .9rem;
  margin: 0;
}

/* Auth 专用表单样式 */
.auth-card form {
  display: flex;
  flex-direction: column;
}
.auth-card form .btn-primary {
  margin-top: 2px;
}
.auth-card .form-group {
  margin-bottom: var(--s5);
}
.auth-card .form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.auth-card .form-input,
.auth-card .form-select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: .95rem;
  color: var(--ink);
  background: rgba(248,250,252,.7);
  transition: all .25s var(--ease);
  outline: none;
  font-family: var(--font-sans);
}
.auth-card .form-input:hover,
.auth-card .form-select:hover {
  border-color: var(--line2);
  background: rgba(248,250,252,.9);
}
.auth-card .form-input:focus,
.auth-card .form-select:focus {
  border-color: var(--p);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(99,102,241,.08),
    0 0 0 1px rgba(99,102,241,.15);
}
.auth-card .form-input::placeholder {
  color: var(--ink4);
  font-weight: 400;
}

/* Auth 主按钮 — Stripe/Linear 级别质感 */
.auth-card .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  font-size: 1rem;
  font-weight: 650;
  border-radius: var(--r);
  color: #fff;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: .03em;
  font-family: var(--font-sans);
  background:
    linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #4338CA 100%);
  box-shadow:
    0 1px 2px rgba(99,102,241,.12),
    0 4px 8px rgba(99,102,241,.08),
    0 8px 24px rgba(79,70,229,.18);
  transition:
    transform .2s cubic-bezier(.34,1.56,.64,1),
    box-shadow .3s ease;
}
/* 内发光 */
.auth-card .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 60%);
  pointer-events: none;
}
/* 光泽条 */
.auth-card .btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.auth-card .btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 2px 6px rgba(99,102,241,.14),
    0 8px 16px rgba(99,102,241,.1),
    0 16px 40px rgba(79,70,229,.22);
}
.auth-card .btn-primary:hover::after {
  left: 120%;
}
.auth-card .btn-primary:active {
  transform: translateY(0) scale(.985);
  transition: transform .1s ease;
  box-shadow:
    0 1px 2px rgba(99,102,241,.12),
    0 2px 6px rgba(99,102,241,.08);
}
.auth-card .btn-primary:focus-visible {
  outline: 3px solid rgba(99,102,241,.4);
  outline-offset: 2px;
}

/* 分割线 */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin: var(--s6) 0;
  color: var(--ink4);
  font-size: .8rem;
  font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}

/* 微信登录按钮 — 高端质感 */
.btn-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 28px;
  font-size: .98rem;
  font-weight: 600;
  border-radius: var(--r);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: .03em;
  font-family: var(--font-sans);
  background:
    linear-gradient(135deg, #1aad5a 0%, #07C160 50%, #06AE56 100%);
  box-shadow:
    0 1px 2px rgba(7,193,96,.12),
    0 4px 8px rgba(7,193,96,.08),
    0 8px 24px rgba(6,174,86,.18);
  transition:
    transform .2s cubic-bezier(.34,1.56,.64,1),
    box-shadow .3s ease;
}
/* 内发光 */
.btn-wechat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 55%);
  pointer-events: none;
}
/* 光泽条 */
.btn-wechat::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn-wechat:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 2px 6px rgba(7,193,96,.14),
    0 8px 16px rgba(7,193,96,.1),
    0 16px 40px rgba(6,174,86,.22);
}
.btn-wechat:hover::after {
  left: 120%;
}
.btn-wechat:active {
  transform: translateY(0) scale(.985);
  transition: transform .1s ease;
  box-shadow:
    0 1px 2px rgba(7,193,96,.12),
    0 2px 6px rgba(7,193,96,.08);
}
.btn-wechat:focus-visible {
  outline: 3px solid rgba(7,193,96,.4);
  outline-offset: 2px;
}
.btn-wechat .fa-weixin {
  font-size: 1.15rem;
}

/* 页脚链接 */
.auth-footer {
  text-align: center;
  margin-top: var(--s8);
  font-size: .88rem;
  color: var(--ink3);
  line-height: 1.6;
}
.auth-footer a {
  color: var(--p);
  font-weight: 600;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all .2s;
}
.auth-footer a:hover {
  color: var(--p-dark);
  background: rgba(99,102,241,.06);
}

/* form-row 两列布局 */
.auth-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

/* ====== Dashboard 仪表盘 v2 ====== */

/* 页面容器 */
.db-page {
  max-width: 960px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--s6)) var(--s6) var(--s16);
  min-height: 100vh;
}

/* ===== Hero Header ===== */
.db-hero {
  background: linear-gradient(135deg, var(--p), #7C3AED, #A855F7);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s8);
  margin-bottom: var(--s6);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.db-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}

.db-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s6);
}

.db-hero-left {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex: 1;
  min-width: 0;
}

/* 头像 */
.db-avatar {
  position: relative;
  flex-shrink: 0;
}

.db-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.4);
  display: block;
}

.db-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,.3);
}

/* Hero 文字 */
.db-hero-info {
  flex: 1;
  min-width: 0;
}

.db-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: -.02em;
}

.db-hero-wave {
  display: inline-block;
  animation: db-wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes db-wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-15deg); }
}

.db-hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.5;
}

.db-hero-sub .fab {
  margin-right: 4px;
}

/* Hero 右侧操作 */
.db-hero-right {
  flex-shrink: 0;
}

.db-hero-right .btn-primary {
  background: #fff;
  color: var(--p);
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.db-hero-right .btn-primary:hover {
  background: #f0f0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ===== Stats Row ===== */
.db-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.db-stat {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  transition: all .2s;
}

.db-stat:hover {
  border-color: var(--p-light);
  box-shadow: var(--shadow-sm);
}

.db-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--p-bg);
  color: var(--p);
}

.db-stat-icon--tests   { background: #EDE9FE; color: #7C3AED; }
.db-stat-icon--reports { background: #DBEAFE; color: #2563EB; }
.db-stat-icon--credits { background: #FEF3C7; color: #D97706; }
.db-stat-icon--pending { background: #FEE2E2; color: #DC2626; }

.db-stat-body {
  flex: 1;
  min-width: 0;
}

.db-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.db-stat-label {
  font-size: .8rem;
  color: var(--ink3);
  margin-top: 2px;
}

.db-stat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--p);
  text-decoration: none;
  margin-top: 4px;
  font-weight: 500;
}

.db-stat-link:hover {
  text-decoration: underline;
}

/* ===== Quick Actions ===== */
.db-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.db-action-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s4);
  text-decoration: none;
  color: inherit;
  transition: all .25s;
  position: relative;
}

.db-action-card:hover {
  border-color: var(--p-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.db-action-card:active {
  transform: translateY(0);
}

.db-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--p-bg);
  color: var(--p);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.db-action-icon--gaokao {
  background: #DBEAFE;
  color: #2563EB;
}

.db-action-body {
  flex: 1;
  min-width: 0;
}

.db-action-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.db-action-desc {
  font-size: .8rem;
  color: var(--ink3);
  line-height: 1.4;
}

.db-action-arrow {
  color: var(--ink4);
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform .2s;
}

.db-action-card:hover .db-action-arrow {
  transform: translateX(3px);
  color: var(--p);
}

/* ===== Records Section ===== */
.db-section {
  margin-bottom: var(--s8);
}

.db-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.db-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.db-section-title .fas {
  color: var(--p);
  font-size: .95rem;
}

.db-section-count {
  font-size: .85rem;
  color: var(--ink3);
  background: var(--surf2);
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* Records List */
.db-records {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.db-record-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s4);
  transition: all .2s;
  flex-wrap: wrap;
}

.db-record-card:hover {
  border-color: var(--p-light);
  box-shadow: var(--shadow-sm);
}

.db-record-card--paid {
  border-left: 3px solid var(--success);
}

.db-record-card--draft {
  border-left: 3px solid var(--warning);
}

.db-record-card--pending {
  border-left: 3px solid var(--danger);
}

/* Record Status Icon */
.db-record-status {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.db-record-status--paid {
  background: var(--success-bg);
  color: var(--success);
}

.db-record-status--draft {
  background: var(--warning-bg);
  color: var(--warning);
}

.db-record-status--pending {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Record Body */
.db-record-body {
  flex: 1;
  min-width: 0;
}

.db-record-top {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.db-record-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}

.db-record-mbti {
  font-size: .78rem;
  color: var(--p);
  background: var(--p-bg);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-weight: 600;
}

.db-record-enneagram {
  font-size: .75rem;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-weight: 500;
}

/* Record Meta */
.db-record-meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: .82rem;
}

.db-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 600;
  gap: 4px;
}

.db-badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.db-badge--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.db-badge--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.db-badge--info {
  background: var(--info-bg);
  color: var(--info);
}

.db-record-date {
  color: var(--ink3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.db-record-birth {
  color: var(--ink4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Record Actions */
.db-record-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-shrink: 0;
}

/* Dashboard Buttons */
.db-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.db-btn--primary {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

.db-btn--primary:hover {
  background: var(--p-dark);
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

.db-btn--gaokao {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  border: none;
}

.db-btn--gaokao:hover {
  box-shadow: 0 4px 12px rgba(59,130,246,.35);
  transform: translateY(-1px);
}

.db-btn--danger {
  background: transparent;
  color: #94A3B8;
  border: 1px solid transparent;
}
.db-btn--danger:hover {
  color: #fff;
  background: #EF4444;
  border-color: #EF4444;
  box-shadow: 0 2px 8px rgba(239,68,68,.3);
}
.db-btn--danger:active {
  background: #DC2626;
}

.db-btn--sm {
  padding: 6px 14px;
  font-size: .82rem;
}

/* ===== Empty State ===== */
.db-empty {
  text-align: center;
  padding: var(--s16) var(--s6);
  background: var(--surf);
  border: 2px dashed var(--line);
  border-radius: var(--r-xl);
}

.db-empty-illustration {
  font-size: 3.5rem;
  margin-bottom: var(--s4);
  opacity: .6;
}

.db-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s2);
}

.db-empty-desc {
  font-size: .9rem;
  color: var(--ink3);
  margin-bottom: var(--s6);
  line-height: 1.6;
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .db-page {
    padding: calc(var(--nav-h) + var(--s4)) var(--s4) var(--s10);
  }

  .db-hero {
    padding: var(--s6) var(--s5);
    border-radius: var(--r-lg);
  }

  .db-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s4);
  }

  .db-hero-left {
    width: 100%;
  }

  .db-hero-title {
    font-size: 1.3rem;
  }

  .db-hero-right {
    width: 100%;
  }

  .db-hero-right .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .db-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .db-actions {
    grid-template-columns: 1fr;
  }

  .db-record-card {
    flex-wrap: wrap;
    padding: var(--s3) var(--s4);
  }

  .db-record-actions {
    width: 100%;
    margin-top: var(--s2);
    justify-content: flex-end;
  }

  /* Settings */
  .db-settings-card {
    padding: var(--s4) var(--s5);
  }
  .db-settings-card-hd {
    gap: var(--s2);
  }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .db-hero-title {
    font-size: 1.1rem;
  }

  .db-avatar-img,
  .db-avatar-placeholder {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .db-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
  }

  .db-stat {
    padding: var(--s3);
  }

  .db-stat-value {
    font-size: 1.2rem;
  }

  .db-action-card {
    padding: var(--s3);
  }

  .db-action-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .db-record-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
  }

  .db-record-status {
    display: none;
  }

  .db-record-actions {
    justify-content: flex-start;
  }

  /* Settings */
  .db-settings-card {
    padding: var(--s3) var(--s4);
  }
  .db-settings-card-icon {
    width: 34px; height: 34px;
    font-size: .82rem;
  }
  .db-settings-card-title {
    font-size: .88rem;
  }
  .db-settings-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ====== 测试流程页面 ====== */
.test-page {
  padding: calc(var(--nav-h) + var(--s10)) 0 var(--s16);
  min-height: 100vh;
}

/* 测试容器 & 公共元素 */
.test-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

.test-header {
  text-align: center;
  margin-bottom: var(--s8);
}

.test-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s4);
  font-family: var(--font-serif);
}

/* 进度条 */
.progress-bar-wrap {
  height: 6px;
  background: var(--surf3);
  border-radius: var(--r-full);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--p-light));
  border-radius: var(--r-full);
  transition: width .5s var(--ease);
}

.progress-label {
  font-size: .8rem;
  color: var(--ink3);
  margin-top: var(--s2);
  font-weight: 500;
  letter-spacing: .05em;
}

/* 表单区块卡片 */
.test-section {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s8);
  margin-bottom: var(--s6);
  box-shadow: var(--shadow-xs);
}

.test-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--p-bg);
}

.test-section h2 i {
  color: var(--p);
  font-size: .92rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-bg);
  border-radius: var(--r);
  flex-shrink: 0;
}

/* 表单两列布局 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

/* 提交区 */
.form-submit-bar {
  text-align: center;
  padding: var(--s4) 0 var(--s10);
}

.form-submit-bar .btn {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* 农历公历切换 */
.calendar-toggle {
  display: flex;
  align-items: center;
  margin-bottom: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--surf2);
  border-radius: var(--r);
  gap: var(--s3);
}

.calendar-toggle .toggle-label {
  font-size: .85rem;
  color: var(--ink2);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ink4);
  border-radius: var(--r-full);
  transition: .3s;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--p); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

.toggle-hint {
  font-size: .78rem;
  color: var(--s-dark);
  font-weight: 500;
}

/* 出生日期网格 */
.birth-date-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

/* 偏好三列网格 */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

/* 农历/公历预览条 */
.lunar-preview, .solar-preview {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  font-size: .9rem;
}

.lunar-preview {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
}

.lunar-preview .preview-icon { font-size: 1.1rem; }

.lunar-preview .preview-text {
  font-weight: 600;
  color: #92400E;
}

.lunar-preview .preview-extra {
  font-size: .78rem;
  color: #A16207;
}

.solar-preview {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid #93C5FD;
}

.solar-preview .preview-icon { font-size: 1.1rem; }

.solar-preview .preview-text {
  font-weight: 600;
  color: #075985;
}

.solar-preview .preview-extra {
  font-size: .78rem;
  color: #0369A1;
}

/* 测试入口卡 (test.php) */
.test-hero {
  text-align: center;
  padding: var(--s10) 0 var(--s6);
}

.test-hero h1 { margin-bottom: var(--s3); }

.pricing-card {
  background: var(--surf);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s8);
  text-align: center;
  max-width: 360px;
  margin: 0 auto var(--s8);
  transition: all .3s;
}

.pricing-card.featured {
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(99,102,241,.08);
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.pricing-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink3);
}

/* 二维码支付区 */
.qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  padding: var(--s6);
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.qr-area img {
  width: 200px; height: 200px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.credits-banner {
  background: linear-gradient(135deg, var(--success-bg), #D1FAE5);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s6);
  text-align: center;
  margin-bottom: var(--s6);
}

.credits-banner .count {
  font-size: 1.5rem;
  font-weight: 800;
  color: #059669;
}

/* 题目卡片 (test_step2) */
.question-section { margin-bottom: var(--s8); }

.question-section h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s2);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}

.question-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  margin-bottom: var(--s4);
}

.question-card .q-num {
  font-size: .8rem;
  color: var(--p);
  font-weight: 700;
  margin-bottom: 4px;
}

.question-card .q-text {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: var(--s4);
}

/* 进度条固定底部 */
.progress-sticky {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(12px);
  padding: var(--s4) var(--s6);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.progress-sticky .progress-bar { flex: 1; }
.progress-sticky .progress-label { margin-bottom: 0; min-width: 120px; }

/* ====== 报告页面 ====== */
.report-page {
  padding: var(--s8) 0 var(--s16);
  min-height: 100vh;
  background: var(--bg);
}

.report-header {
  text-align: center;
  padding: var(--s10) 0 var(--s8);
  background: linear-gradient(135deg, var(--p-bg), #E8E0FF);
  color: var(--ink2);
  margin-bottom: var(--s8);
  border-bottom: 1px solid var(--line);
}

.report-header h1 {
  color: var(--ink);
  margin-bottom: var(--s2);
}

.report-section {
  margin-bottom: var(--s8);
}

.report-section h2 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0;
}

.report-section .icon { color: var(--p); }

/* MBTI 类型显示 */
.mbti-display {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin: var(--s6) 0;
}

.mbti-letter {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--p), var(--p-dark));
  color: #fff;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

/* 维度条 */
.dimension-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
}

.dimension-bar .label {
  font-size: .85rem;
  font-weight: 700;
  width: 24px;
  text-align: center;
}

.dimension-bar .track {
  flex: 1; height: 10px;
  background: var(--surf2);
  border-radius: var(--r-full);
  overflow: hidden;
  display: flex;
}

.dimension-bar .fill-left,
.dimension-bar .fill-right {
  height: 100%;
  transition: width .6s var(--ease);
}

.dimension-bar .fill-left { background: var(--p); border-radius: var(--r-full) 0 0 var(--r-full); }
.dimension-bar .fill-right { background: var(--s); border-radius: 0 var(--r-full) var(--r-full) 0; }

/* 八字展示 */
.bazi-display {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s6);
}

.bazi-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-bottom: var(--s6);
}

.bazi-pillar {
  text-align: center;
  padding: var(--s4);
  background: var(--surf2);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.bazi-pillar .pillar-label {
  font-size: .75rem;
  color: var(--ink3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.bazi-pillar .tian-gan {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}

.bazi-pillar .di-zhi {
  font-size: 1.1rem;
  color: var(--ink2);
  font-weight: 600;
}

.bazi-pillar.highlight {
  border-color: var(--p);
  background: var(--p-bg);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}

/* 五行能量条 */
.wuxing-bars { display: flex; flex-direction: column; gap: 6px; }
.wuxing-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.wuxing-row .label {
  width: 32px;
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
}

.wuxing-row .track {
  flex: 1; height: 10px;
  background: var(--surf2);
  border-radius: var(--r-full);
  overflow: hidden;
}

.wuxing-row .fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 1s var(--ease);
}

.wuxing-row .val {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink3);
  width: 36px;
}

/* 职业卡片 */
.career-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  transition: all .2s;
}

.career-card:hover {
  border-color: var(--p-light);
  box-shadow: var(--shadow);
}

.career-card .rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: var(--s2);
}

.career-card .rank.gold { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }
.career-card .rank.silver { background: linear-gradient(135deg, #94A3B8, #64748B); color: #fff; }
.career-card .rank.bronze { background: linear-gradient(135deg, #D97706, #92400E); color: #fff; }

.career-card .name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.career-card .cat {
  font-size: .8rem;
  color: var(--ink3);
}

.career-card .score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--p);
  margin-top: var(--s2);
}

/* 八卦/图标信息条 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
}

.info-item {
  padding: var(--s4);
  background: var(--surf2);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.info-item .key {
  font-size: .78rem;
  color: var(--ink3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 2px;
}

.info-item .val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* 建议区块 */
.advice-box {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  margin-bottom: var(--s4);
}

.advice-box h4 {
  font-size: 1rem;
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.advice-box p {
  color: var(--ink2);
  font-size: .92rem;
  line-height: 1.8;
}

/* ====== 报告页通用组件 ====== */
.card-header {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line);
}
.card-header:first-child { padding-top: 0; }

.card-body {
  padding: var(--s5) 0;
}
.card-body:last-child { padding-bottom: 0; }

.nav-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.name-badge {
  display: inline-block;
  background: var(--surf);
  border: 1px solid var(--line);
  color: var(--ink2);
  padding: 8px 24px;
  border-radius: var(--r-full);
  font-size: .95rem;
  font-weight: 600;
  margin-top: var(--s4);
  box-shadow: var(--shadow-xs);
}

.subtitle {
  color: var(--ink3);
  font-size: 1rem;
  max-width: 600px;
  margin: var(--s2) auto 0;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* 操作栏 */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: var(--s3) var(--s6);
  background: var(--surf);
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}
.action-bar .btn { font-size: .82rem; padding: 6px 14px; }
.report-date {
  margin-left: auto;
  font-size: .8rem;
  color: var(--ink3);
}

/* ====== 职业列表 ====== */
.career-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.career-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  cursor: pointer;
  padding: var(--s2) 0;
}

.career-info { flex: 1; min-width: 0; }
.career-name {
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
}
.career-category {
  font-size: .78rem;
  color: var(--ink3);
  margin-top: 2px;
}
.career-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.career-detail {
  display: none;
  padding: var(--s4);
  background: var(--surf2);
  border-radius: var(--r);
  margin-top: var(--s2);
}
.career-detail.open { display: block; }

.toggle-btn {
  font-size: .8rem;
  color: var(--ink3);
  transition: transform .25s;
  padding: 4px 8px;
}
.career-detail.open ~ .toggle-btn,
.toggle-btn.open { transform: rotate(180deg); }

.income-stars {
  font-size: .8rem;
  letter-spacing: 1px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  background: var(--surf3);
  color: var(--ink2);
}

.career-card.rank-1 .rank-badge { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }
.career-card.rank-2 .rank-badge { background: linear-gradient(135deg, #94A3B8, #64748B); color: #fff; }
.career-card.rank-3 .rank-badge { background: linear-gradient(135deg, #B45309, #78350F); color: #fff; }

.career-card.rank-1 { border-color: #F59E0B; }
.career-card.rank-2 { border-color: #94A3B8; }
.career-card.rank-3 { border-color: #D97706; }

/* ====== 八字增强 ====== */
.pillar-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
}
.el-name {
  font-weight: 700;
  font-size: .9rem;
  width: 28px;
  text-align: center;
}
.el-score {
  font-size: .8rem;
  color: var(--ink3);
  width: 42px;
  text-align: right;
}

/* ====== 时间轴 ====== */
.timeline {
  position: relative;
  padding-left: var(--s8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--s5);
}
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--s8) + 4px);
  top: 6px;
  width: 16px; height: 16px;
  background: var(--p);
  border: 3px solid var(--p-bg);
  border-radius: 50%;
  z-index: 1;
}
.timeline-content {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
}
.timeline-content h4 {
  font-size: .95rem;
  margin-bottom: 2px;
}
.timeline-content .period {
  font-size: .8rem;
  color: var(--ink3);
  margin-bottom: var(--s2);
}

/* ====== 高考志愿报告 ====== */
.gaokao-report-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.gaokao-body.hidden { display: none; }

.gaokao-major-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.gaokao-major-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4);
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}

.gaokao-major-rank {
  width: 36px; height: 36px;
  background: var(--surf2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: var(--ink2);
  flex-shrink: 0;
}
.gaokao-major-card.rank-1 .gaokao-major-rank { background: linear-gradient(135deg,#F59E0B,#D97706); color:#fff; }
.gaokao-major-card.rank-2 .gaokao-major-rank { background: linear-gradient(135deg,#94A3B8,#64748B); color:#fff; }
.gaokao-major-card.rank-3 .gaokao-major-rank { background: linear-gradient(135deg,#B45309,#78350F); color:#fff; }

.gaokao-major-content { flex: 1; min-width: 0; }
.gaokao-major-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.gaokao-major-dir {
  font-size: .8rem;
  color: var(--ink3);
  margin-bottom: var(--s2);
}
.gaokao-major-reasons {
  padding-left: 16px;
  font-size: .82rem;
  color: var(--ink2);
  line-height: 1.6;
}
.gaokao-major-reasons li { margin-bottom: 2px; }

/* ====== 大学专业排名 ====== */
.dist-name { font-weight: 600; font-size: .88rem; }
.dist-count { font-size: 1.1rem; font-weight: 700; color: var(--p); }

.major-cat-header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surf2);
  border-radius: var(--r);
  cursor: pointer;
  margin-bottom: var(--s2);
  transition: background .2s;
}
.major-cat-header:hover { background: var(--surf3); }
.major-cat-header h3 { flex: 1; font-size: .95rem; margin: 0; }
.cat-count { font-size: .82rem; color: var(--ink3); }
.cat-toggle { font-size: .75rem; color: var(--ink4); transition: transform .25s; }

.major-cat-body.collapsed { display: none; }

.mrr-rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  background: var(--surf2);
  color: var(--ink2);
  flex-shrink: 0;
}
.mrr-rank.gold { background: linear-gradient(135deg,#F59E0B,#D97706); color:#fff; }
.mrr-rank.silver { background: linear-gradient(135deg,#94A3B8,#64748B); color:#fff; }
.mrr-rank.bronze { background: linear-gradient(135deg,#B45309,#78350F); color:#fff; }
.mrr-info { flex: 1; min-width: 0; }
.mrr-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.mrr-sub { font-size: .78rem; color: var(--ink3); margin-top: 1px; }
.mrr-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mrr-score { flex-shrink: 0; font-size: .78rem; white-space: nowrap; }

/* ====== 高考志愿页 ====== */
.gaokao-page {
  padding: calc(var(--nav-h) + var(--s8)) 0 var(--s16);
  min-height: 100vh;
}

.gaokao-header {
  text-align: center;
  margin-bottom: var(--s8);
}

/* 天赋档案卡 */
.profile-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s6);
  margin-bottom: var(--s6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
}

.profile-card .mbti-badge {
  background: var(--p);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 1.1rem;
}

.profile-card .wx-badge {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .9rem;
}

.profile-card .talent-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 方向标签栏 */
.direction-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.direction-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink3);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.direction-tab:hover {
  border-color: var(--p-light);
  color: var(--p);
}

.direction-tab.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

.direction-tab .count {
  font-size: .75rem;
  opacity: .8;
  margin-left: 4px;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
  align-items: center;
}

.filter-bar select {
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .85rem;
  color: var(--ink2);
  background: var(--surf);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748B'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
}

.filter-bar select:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}

.filter-bar .score-input {
  width: 100px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .85rem;
  outline: none;
}

.filter-bar .score-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}

.filter-clear {
  font-size: .82rem;
  color: var(--danger);
  font-weight: 500;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: var(--r-full);
  transition: all .2s;
}

.filter-clear:hover { background: var(--danger-bg); }

/* 统计胶囊 */
.stats-pills {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}

.stats-pill {
  padding: 6px 14px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .82rem;
  color: var(--ink3);
}

/* 排序条 */
.sort-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
  padding: 10px 16px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.sort-bar .sort-label {
  font-size: .78rem;
  color: var(--ink4);
  font-weight: 600;
  white-space: nowrap;
}
.sort-bar .sort-option {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink3);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.sort-bar .sort-option:hover {
  background: var(--surf2);
  color: var(--ink);
}
.sort-bar .sort-option.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
  font-weight: 700;
}
.sort-bar .home-select {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .8rem;
  color: var(--ink2);
  background: #fff;
  outline: none;
  width: 110px;
}
.sort-bar .home-select:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}

.stats-pill strong { color: var(--ink); }

/* 高校卡片 */
.uni-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s;
  margin-bottom: var(--s4);
}

.uni-card:hover {
  border-color: var(--p-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.uni-card-top {
  height: 4px;
}

.uni-card-top.gold { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.uni-card-top.silver { background: linear-gradient(90deg, #94A3B8, #CBD5E1); }
.uni-card-top.bronze { background: linear-gradient(90deg, #D97706, #F59E0B); }
.uni-card-top.default { background: linear-gradient(90deg, var(--p), var(--p-light)); }

.uni-card-body {
  padding: var(--s4) var(--s5);
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}

.uni-rank-block {
  width: 44px; height: 44px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.uni-rank-block.gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.uni-rank-block.silver { background: linear-gradient(135deg, #94A3B8, #64748B); }
.uni-rank-block.bronze { background: linear-gradient(135deg, #D97706, #92400E); }
.uni-rank-block.default { background: linear-gradient(135deg, var(--p), var(--p-dark)); }

.uni-info { flex: 1; min-width: 0; }

.uni-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uni-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.uni-match-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  /* 环形图：用白色中心圆制造 donut 效果 */
}
.uni-match-circle::before {
  content: '';
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  z-index: 0;
}

.uni-match-circle .score-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.uni-match-circle .score-text {
  font-size: 1.05rem;
  font-weight: 800;
  z-index: 1;
  position: relative;
  color: #1e1b4b;
}

/* 匹配原因标签 */
.match-reasons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--s3);
}

.match-reason {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 600;
}

.match-reason.mbti { background: var(--p-bg); color: var(--p); }
.match-reason.wx { background: var(--success-bg); color: #059669; }
.match-reason.score { background: var(--s-bg); color: #B45309; }
.match-reason.major { background: var(--info-bg); color: var(--info); }
.match-reason.tier { background: #fef3c7; color: #92400e; }

/* 匹配专业小卡片 */
.match-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s2);
}

.match-major-tag {
  padding: 4px 12px;
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .8rem;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 分数档标签 */
.score-level {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 700;
}

.score-level.safe { background: var(--success-bg); color: #059669; }
.score-level.safe_plus { background: #d1fae5; color: #065f46; }
.score-level.stable { background: var(--info-bg); color: var(--info); }
.score-level.reach { background: var(--s-bg); color: #B45309; }
.score-level.stretch { background: #fef3c7; color: #92400e; }
.score-level.hard { background: var(--danger-bg); color: var(--danger); }
.score-level.extreme { background: #fee2e2; color: #991b1b; font-weight:800; }

/* 展开/收起建议 */
.advice-toggle {
  font-size: .85rem;
  color: var(--p);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--s3);
  transition: all .2s;
}

.advice-toggle:hover { color: var(--p-dark); }

.advice-detail {
  margin-top: var(--s3);
  padding: var(--s4);
  background: var(--surf2);
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.advice-detail .tab-header {
  display: flex;
  gap: var(--s2);
  margin-bottom: var(--s3);
  flex-wrap: wrap;
}

.advice-detail .tab-btn {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--surf);
  color: var(--ink3);
  border: 1px solid var(--line);
  transition: all .2s;
}

.advice-detail .tab-btn.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

.advice-detail .tab-content { font-size: .9rem; color: var(--ink2); line-height: 1.8; }

/* 学科分布图 */
.cat-distribution {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.cat-card {
  padding: var(--s3) var(--s4);
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
}

.cat-card .cat-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.cat-card .cat-count {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--p);
}

.cat-card .cat-bar {
  height: 4px;
  background: var(--surf2);
  border-radius: var(--r-full);
  margin-top: 4px;
  overflow: hidden;
}

.cat-card .cat-bar-fill {
  height: 100%;
  background: var(--p);
  border-radius: var(--r-full);
}

/* 专业排名表 */
.major-rank-group { margin-bottom: var(--s6); }

.major-rank-group h3 {
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  user-select: none;
}

.major-rank-group h3:hover { background: var(--surf2); }

.major-rank-list {
  margin-top: var(--s2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.major-rank-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 8px 12px;
  background: var(--surf);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all .2s;
}

.major-rank-item:hover {
  border-color: var(--p-light);
  background: var(--p-bg);
}

.major-rank-item .rank-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ====== 弹窗 ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
  animation: fadeIn .25s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surf);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  animation: popUp .3s var(--ease-spring);
}

@keyframes popUp {
  from { opacity: 0; transform: scale(.95) translateY(12px); }
  to { opacity: 1; transform: none; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--line);
}

.modal-header h3 { font-size: 1.1rem; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink3);
  font-size: 1.2rem;
  transition: all .2s;
}

.modal-close:hover { background: var(--surf2); color: var(--ink); }

.modal-body { padding: var(--s5) var(--s6); overflow-y: auto; flex: 1; }

/* 弹窗内专业小表格 */
.prof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.prof-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--surf2);
  font-size: .78rem;
  color: var(--ink3);
  font-weight: 700;
}

.prof-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.prof-table .grade-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.prof-table .grade-dot.ap { background: #6366F1; }
.prof-table .grade-dot.a { background: #3B82F6; }
.prof-table .grade-dot.am { background: #10B981; }
.prof-table .grade-dot.bp { background: #F59E0B; }
.prof-table .grade-dot.b { background: #F97316; }

/* ====== 功能特性网格 ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s6);
}

.feature-item {
  text-align: center;
  padding: var(--s8) var(--s6);
}

.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--s4);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-icon.purple { background: var(--p-bg); color: var(--p); }
.feature-icon.gold { background: var(--s-bg); color: var(--s); }
.feature-icon.green { background: var(--success-bg); color: var(--success); }
.feature-icon.pink { background: var(--accent-bg); color: var(--accent); }
.feature-icon.blue { background: var(--info-bg); color: var(--info); }
.feature-icon.red { background: var(--danger-bg); color: var(--danger); }

.feature-item h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.feature-item p { color: var(--ink3); font-size: .92rem; line-height: 1.7; }

/* ====== 流程步骤 ====== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s8);
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px; height: 48px;
  margin: 0 auto var(--s4);
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.step-item h4 { font-size: 1rem; margin-bottom: var(--s1); }
.step-item p { color: var(--ink3); font-size: .88rem; }

/* 连接步骤圆圈的横线 — 全宽线, 圆圈 (z-index:1) 自然覆盖 */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;            /* 48px 圆 的垂直中心 */
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

/* 移动端步骤纵向堆叠时隐藏连接线 */
@media (max-width: 600px) {
  .steps-grid::before { display: none; }
}

/* ====== 定价卡片 ====== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s6);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-item {
  text-align: center;
  padding: var(--s8);
  background: var(--surf);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  transition: all .3s;
  position: relative;
}

.pricing-item:hover {
  border-color: var(--p-light);
  box-shadow: var(--shadow-lg);
}

.pricing-item.popular {
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(99,102,241,.06);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--p);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 700;
}

.pricing-item .amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.pricing-item .amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink3);
}

/* ====== 评价卡片 ====== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s6);
}

.testimonial-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
}

.testimonial-card .quote {
  font-size: .95rem;
  color: var(--ink2);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--s4);
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.testimonial-card .author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.testimonial-card .author-name { font-weight: 600; font-size: .9rem; }
.testimonial-card .author-role { font-size: .78rem; color: var(--ink3); }

/* ====== FAQ ====== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.faq-item {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.faq-q {
  padding: var(--s4) var(--s5);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-q:hover { background: var(--surf2); }

.faq-a {
  padding: 0 var(--s5) var(--s4);
  color: var(--ink2);
  font-size: .92rem;
  line-height: 1.8;
}

/* ====== CTA 区 ====== */
.cta-section {
  text-align: center;
  padding: var(--s20) 0;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #E2E8F0;
}

.cta-section h2 {
  color: #F8FAFC;
  margin-bottom: var(--s3);
}

.cta-section p {
  color: rgba(226,232,240,.7);
  max-width: 500px;
  margin: 0 auto var(--s6);
}

/* ====== 页脚 ====== */
.footer {
  background: var(--surf);
  border-top: 1px solid var(--line);
  padding: var(--s16) 0 var(--s8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s8);
  margin-bottom: var(--s10);
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s3);
}

.footer-desc {
  color: var(--ink3);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: var(--s4);
}

.footer-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: var(--s4);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: .88rem;
  color: var(--ink3);
  transition: color .2s;
}

.footer-links a:hover { color: var(--p); }

.footer-bottom {
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .82rem;
  color: var(--ink4);
}

/* ====== Admin 管理后台（精致软风格 v2）====== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F1F5F9;
}

/* ---- 侧边栏 ---- */
.admin-sidebar {
  width: 248px;
  background: linear-gradient(180deg, #1E1B4B 0%, #1E293B 100%);
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.04);
}

.admin-sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.08) 0%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,.04) 100%);
}

.admin-sidebar-brand {
  padding: 22px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-serif);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F1F5F9;
  letter-spacing: .3px;
}

.admin-sidebar-brand i {
  font-size: 1.15rem;
  color: var(--p-light);
  opacity: .9;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  margin: 2px 10px;
  font-size: .87rem;
  font-weight: 500;
  color: #94A3B8;
  transition: all .25s var(--ease);
  border-radius: 8px;
  position: relative;
  text-decoration: none;
}

.admin-sidebar-nav a i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  opacity: .7;
  transition: all .25s;
}

.admin-sidebar-nav a:hover {
  background: rgba(255,255,255,.06);
  color: #E2E8F0;
}

.admin-sidebar-nav a:hover i { opacity: 1; }

.admin-sidebar-nav a.active {
  background: rgba(129,140,248,.12);
  color: #C7D2FE;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(129,140,248,.15);
}

.admin-sidebar-nav a.active i { opacity: 1; color: var(--p-light); }

.admin-sidebar-nav .nav-section {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #475569;
  padding: 18px 20px 6px;
  font-weight: 600;
}

.admin-sidebar-nav .nav-logout {
  margin-top: auto;
  color: #64748B;
  font-size: .82rem;
}

.admin-sidebar-nav .nav-logout:hover {
  color: #FCA5A5;
  background: rgba(248,113,113,.08);
}

/* ---- 主内容区 ---- */
.admin-main {
  flex: 1;
  margin-left: 248px;
  padding: 28px 32px 48px;
  min-height: 100vh;
  background: #F1F5F9;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.3px;
}

/* ---- 统计卡片 ---- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
  cursor: default;
}

.admin-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--p);
  opacity: 0;
  transition: opacity .3s;
}

.admin-stat:hover {
  border-color: rgba(99,102,241,.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-stat:hover::before { opacity: 1; }

.admin-stat .label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.admin-stat .value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: -.5px;
}

.admin-stat .sub {
  font-size: .78rem;
  color: var(--ink4);
  margin-top: 4px;
}

/* 统计卡片颜色变体 */
.admin-stat.primary::before { background: var(--p); }
.admin-stat.primary:hover { border-color: rgba(99,102,241,.2); box-shadow: 0 8px 24px rgba(99,102,241,.08); }
.admin-stat.primary .value { color: var(--p); }

.admin-stat.green::before { background: var(--success); }
.admin-stat.green:hover { border-color: rgba(16,185,129,.2); box-shadow: 0 8px 24px rgba(16,185,129,.08); }
.admin-stat.green .value { color: #059669; }

.admin-stat.gold::before { background: var(--s); }
.admin-stat.gold:hover { border-color: rgba(245,158,11,.2); box-shadow: 0 8px 24px rgba(245,158,11,.08); }
.admin-stat.gold .value { color: #D97706; }

.admin-stat.red::before { background: var(--danger); }
.admin-stat.red:hover { border-color: rgba(239,68,68,.2); box-shadow: 0 8px 24px rgba(239,68,68,.08); }
.admin-stat.red .value { color: #DC2626; }

/* ---- 表格区 ---- */
.admin-table-wrap {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.admin-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surf);
}

.admin-table-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table-header h3 i {
  color: var(--p);
  font-size: .95rem;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-wrap th {
  background: #F8FAFC;
  text-align: left;
  padding: 12px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table-wrap td {
  padding: 14px 16px;
  font-size: .88rem;
  border-bottom: 1px solid #F1F5F9;
  color: var(--ink2);
  vertical-align: middle;
}

.admin-table-wrap tr:last-child td { border-bottom: none; }
.admin-table-wrap tbody tr { transition: background .2s; }
.admin-table-wrap tbody tr:hover td { background: #F8FAFC; }

/* 表格内特殊样式 */
.admin-table-wrap td .mono {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink3);
}

/* ---- 搜索栏 ---- */
.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.admin-search input[type="text"] {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .88rem;
  background: var(--surf);
  outline: none;
  transition: all .25s;
  box-shadow: var(--shadow-xs);
}

.admin-search input[type="text"]:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.06), var(--shadow-sm);
}

/* ---- 表单区 ---- */
.admin-form-section {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.admin-form-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.admin-form-grid .form-group:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---- 分页 ---- */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.admin-pagination a,
.admin-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink2);
  transition: all .2s;
  text-decoration: none;
  background: var(--surf);
}

.admin-pagination a:hover {
  background: var(--surf2);
  border-color: var(--p);
  color: var(--p);
  box-shadow: 0 2px 8px rgba(99,102,241,.08);
}

.admin-pagination .active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(99,102,241,.25);
}

.admin-pagination .disabled {
  opacity: .35;
  pointer-events: none;
}

/* ---- Toast / 消息提示 ---- */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight .35s var(--ease-spring);
  max-width: 400px;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.admin-toast i { font-size: 1.1rem; }
.admin-toast.success { border-left: 3px solid var(--success); }
.admin-toast.success i { color: var(--success); }
.admin-toast.error { border-left: 3px solid var(--danger); }
.admin-toast.error i { color: var(--danger); }

/* ---- Tab 切换 (首页设置等) ---- */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
}

.admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}

.admin-tabs a:hover { color: var(--ink); }

.admin-tabs a.active {
  color: var(--p);
  border-bottom-color: var(--p);
  font-weight: 600;
}

/* ====== 辅助类 ====== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--s1); }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }

.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mb-2 { margin-bottom: var(--s2); }
.mb-4 { margin-bottom: var(--s4); }
.mb-6 { margin-bottom: var(--s6); }
.mb-8 { margin-bottom: var(--s8); }

.w-full { width: 100%; }
.hidden { display: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }

/* ====== 动画增强 ====== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 骨架加载 */
.skeleton {
  background: linear-gradient(90deg, var(--surf2) 25%, var(--surf3) 50%, var(--surf2) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--r);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ====== 响应式设计 ====== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 300px; height: 300px; margin: 0 auto; }
  .orbit-1 { width: 120px; height: 120px; }
  .orbit-2 { width: 190px; height: 190px; }
  .orbit-3 { width: 280px; height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .option-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    padding: var(--s4);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.show { display: flex; }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-mobile-toggle { display: flex; }

  .hero { padding: calc(var(--nav-h) + var(--s8)) 0 var(--s12); }

  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: .95rem; }

  .hero-visual { width: 240px; height: 240px; }
  .center-orb { width: 56px; height: 56px; font-size: 1.3rem; }
  .orbit-1 { width: 100px; height: 100px; }
  .orbit-2 { width: 160px; height: 160px; }
  .orbit-3 { width: 220px; height: 220px; }

  .bazi-pillars { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .birth-date-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pref-grid { grid-template-columns: 1fr !important; }

  .option-grid-5 { grid-template-columns: repeat(3, 1fr); }

  .auth-card { padding: var(--s8) var(--s6); }
  .auth-page { padding: 80px var(--s4) var(--s8); }
  .auth-card .form-row { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  /* Admin 响应式 */
  .admin-sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .admin-sidebar-brand { padding: 16px 20px; }

  .admin-main {
    margin-left: 0;
    padding: 20px 16px;
  }

  .admin-layout { flex-direction: column; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }

  .admin-form-grid { grid-template-columns: 1fr; }

  .admin-table-header { flex-direction: column; align-items: flex-start; }

  .admin-search { flex-direction: column; }

  .admin-search input[type="text"] { width: 100%; }

  .admin-pagination a, .admin-pagination span {
    min-width: 32px; height: 32px;
    font-size: .8rem;
  }

  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: var(--s12) 0; }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select { width: 100%; }
  .sort-bar { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .sort-bar .sort-option { font-size: .78rem; padding: 5px 10px; }

  .cat-distribution { grid-template-columns: repeat(2, 1fr); }

  /* 报告页移动端 */
  .mbti-display { flex-direction: column; }

  .action-bar { padding: var(--s2) var(--s4); gap: 4px; }
  .action-bar .btn { font-size: .75rem; padding: 5px 10px; }
  .report-date { margin-left: 0; width: 100%; text-align: right; margin-top: 4px; }

  .report-header { padding: var(--s6) var(--s4); }
  .report-header h1 { font-size: 1.5rem; }

  .info-grid { grid-template-columns: 1fr; }

  .career-header { flex-wrap: wrap; }
  .career-meta { width: 100%; margin-top: var(--s2); }

  .gaokao-report-header { flex-direction: column; align-items: flex-start; }

  .gaokao-major-card { flex-direction: column; gap: var(--s2); }

  .timeline { padding-left: var(--s6); }
  .timeline-dot { left: calc(-1 * var(--s6) + 4px); }

  .major-rank-item { flex-wrap: wrap; }
  .mrr-score { width: 100%; text-align: right; margin-top: 4px; }

  .nav-quick { font-size: .78rem; }
  .nav-quick .badge { font-size: .72rem; padding: 3px 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s4); }

  .hero-stats { gap: var(--s3); flex-wrap: wrap; justify-content: center; }
  .hero-stats .stat-num { font-size: 1.3rem; }
  .hero-stats .stat-highlight .stat-num { font-size: 1.4rem; }
  .hero-stats .stat-divider { height: 28px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .mbti-letter { width: 48px; height: 48px; font-size: 1.3rem; }

  .option-grid-5 { grid-template-columns: repeat(2, 1fr); }

  .uni-card-body { flex-direction: column; }
  .uni-match-circle { align-self: center; }

  /* 报告页超小屏 */
  .action-bar { justify-content: center; }
  .action-bar .btn { flex: 1; justify-content: center; }
  .report-date { text-align: center; }

  .bazi-pillars { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .bazi-pillar { padding: var(--s2); }

  .nav-quick { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-quick::-webkit-scrollbar { height: 0; }
  .nav-quick .badge { flex-shrink: 0; }

  .gaokao-major-card { padding: var(--s3); }

  .option-label { padding: 14px 16px; font-size: .95rem; }

  .auth-card { padding: var(--s6) var(--s5); max-width: 100%; border-radius: var(--r-lg); }
  .auth-page { padding: 60px var(--s4) var(--s8); }
  .auth-brand .brand-icon { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 14px; }
  .auth-brand h2 { font-size: 1.2rem; }
}

/* ========================================
   360浏览器 & 旧版WebKit内核兼容降级
   ======================================== */

/* backdrop-filter 降级：不支持时加深背景补偿 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navbar {
    background: rgba(255,255,255,.95);
  }
  .auth-card {
    background: rgba(255,255,255,.96);
  }
  .hero-preview {
    background: rgba(255,255,255,.15);
  }
}

/* gap 降级：旧版 flexbox 不支持 gap，用 margin 替代 */
@supports not (gap: 1px) {
  .hero-stats { margin: -0.5rem; }
  .hero-stats > * { margin: 0.5rem; }
  .db-record-actions { margin: -4px; }
  .db-record-actions > * { margin: 4px; }
  .option-grid { margin: -6px; }
  .option-grid > * { margin: 6px; }
}

/* 旧版 WebKit 渐变文字降级 */
@supports not (-webkit-background-clip: text) {
  .gradient-text,
  .hero-title span {
    -webkit-text-fill-color: initial;
    color: #6C5CE7;
  }
}

/* ========================================
   文章系统样式 v1.0
   articles.php / article.php / index.php 文章区
   ======================================== */

/* ── 文章列表页 Hero ── */
.art-list-hero {
  background: linear-gradient(135deg, var(--p) 0%, var(--p-dark) 100%);
  padding: var(--s16) 0 var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.art-list-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.art-list-hero-inner { position: relative; z-index: 1; }
.art-list-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-full);
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: var(--s4);
}
.art-list-hero-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s3);
}
.art-list-hero-sub {
  color: rgba(255,255,255,.8);
  font-size: .92rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── 双栏布局 ── */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s8);
  align-items: start;
}
@media (max-width: 900px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { order: -1; }
}

/* ── 分类筛选条 ── */
.art-cat-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--s6);
}
.art-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink3);
  background: var(--surf);
  text-decoration: none;
  transition: all .2s;
}
.art-cat-btn:hover, .art-cat-btn.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.art-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.25);
  font-size: .68rem;
  font-weight: 700;
}
.art-cat-btn:not(.active) .art-cat-count {
  background: var(--surf2);
  color: var(--ink4);
}

/* ── 文章网格 ── */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s5);
}
.art-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surf);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--p-light);
}
.art-card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
@media (max-width: 600px) {
  .art-card-featured { flex-direction: column; }
}
.art-card-featured .art-card-cover { flex: 0 0 300px; max-height: 220px; }
.art-card-featured .art-card-body { flex: 1; }
.art-card-featured .art-card-title { font-size: 1.1rem; }
.art-card-cover {
  position: relative;
  overflow: hidden;
  height: 180px;
}
.art-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.art-card:hover .art-card-cover img { transform: scale(1.05); }
.art-card-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--p-bg), var(--s-bg));
}
.art-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--p);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.art-card-body {
  padding: var(--s4) var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.art-card-title {
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.art-card-summary {
  font-size: .82rem;
  color: var(--ink3);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}
.art-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.art-card-meta {
  display: flex;
  gap: var(--s3);
  font-size: .75rem;
  color: var(--ink4);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}
.art-card-meta i { margin-right: 2px; }

/* ── 标签 ── */
.art-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--p-bg);
  color: var(--p-dark);
  font-size: .74rem;
  font-weight: 500;
}

/* ── 分页 ── */
.art-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s8);
}
.art-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r);
  background: var(--surf);
  border: 1px solid var(--line);
  color: var(--ink2);
  font-size: .85rem;
  text-decoration: none;
  transition: all .2s;
}
.art-page-btn:hover, .art-page-btn.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

/* ── 空状态 ── */
.art-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--ink3);
}

/* ── 侧边栏 ── */
.art-sidebar { display: flex; flex-direction: column; gap: var(--s4); }
.art-sidebar-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.art-sidebar-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--p);
}
.art-sidebar-title i { color: var(--p); margin-right: 6px; }

/* 热门文章 */
.art-hot-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.art-hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
}
.art-hot-list a {
  color: var(--ink2);
  text-decoration: none;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-hot-list a:hover { color: var(--p); }
.art-hot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: var(--r-sm);
  background: var(--surf2);
  color: var(--ink4);
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.art-hot-rank.top { background: var(--p); color: #fff; }

/* 分类列表 */
.art-cat-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.art-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  color: var(--ink2);
  text-decoration: none;
  font-size: .83rem;
  transition: background .15s;
}
.art-cat-list a:hover, .art-cat-list a.active {
  background: var(--p-bg);
  color: var(--p);
}
.art-cat-list a span {
  font-size: .73rem;
  color: var(--ink4);
  background: var(--surf2);
  padding: 1px 7px;
  border-radius: var(--r-full);
}

/* CTA 侧边栏 */
.art-sidebar-cta {
  background: linear-gradient(135deg, var(--p-bg), var(--s-bg));
  border-color: transparent;
  text-align: center;
}

/* ── 相关文章 ── */
.art-related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink2);
  font-size: .83rem;
  line-height: 1.4;
  transition: color .15s;
}
.art-related-item:hover { color: var(--p); }
.art-related-cover {
  width: 60px; height: 44px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

/* ── 文章详情页 ── */
.art-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s8);
  align-items: start;
}
@media (max-width: 900px) {
  .art-detail-layout { grid-template-columns: 1fr; }
}

/* 面包屑 */
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--ink4);
  margin-bottom: var(--s5);
  flex-wrap: wrap;
}
.art-breadcrumb a { color: var(--ink4); text-decoration: none; transition: color .15s; }
.art-breadcrumb a:hover { color: var(--p); }
.art-breadcrumb i { font-size: .6rem; }

/* 文章头部 */
.art-detail-header { margin-bottom: var(--s6); }
.art-detail-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.art-detail-cat {
  display: inline-block;
  background: var(--p);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--r-full);
  text-decoration: none;
}
.art-detail-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 var(--s3);
}
@media (max-width: 600px) {
  .art-detail-title { font-size: 1.3rem; }
}
.art-detail-summary {
  font-size: .93rem;
  color: var(--ink3);
  line-height: 1.7;
  margin: 0 0 var(--s4);
}
.art-detail-meta {
  display: flex;
  gap: var(--s4);
  font-size: .78rem;
  color: var(--ink4);
  flex-wrap: wrap;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.art-detail-meta i { margin-right: 3px; }

/* 封面 */
.art-detail-cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s6);
  max-height: 420px;
}
.art-detail-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* 正文 */
.art-detail-content {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--ink2);
  word-break: break-word;
}
.art-detail-content h1,
.art-detail-content h2,
.art-detail-content h3,
.art-detail-content h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  margin: 1.6em 0 .6em;
  line-height: 1.4;
}
.art-detail-content h2 { font-size: 1.25rem; border-bottom: 2px solid var(--p-bg); padding-bottom: 6px; }
.art-detail-content h3 { font-size: 1.08rem; }
.art-detail-content p { margin-bottom: 1em; }
.art-detail-content blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  background: var(--p-bg);
  border-left: 4px solid var(--p);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink3);
  font-style: italic;
}
.art-detail-content ul, .art-detail-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.art-detail-content li { margin-bottom: .4em; }
.art-detail-content a { color: var(--p); text-decoration: underline; }
.art-detail-content img {
  max-width: 100%;
  border-radius: var(--r);
  margin: 8px 0;
}
.art-detail-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.5em 0;
}
.art-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: .88rem;
}
.art-detail-content th, .art-detail-content td {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.art-detail-content th { background: var(--surf2); font-weight: 700; }

/* 底部标签 */
.art-detail-footer-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

/* 上一篇/下一篇 */
.art-detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.art-detail-nav-item { display: flex; flex-direction: column; gap: 5px; }
.art-detail-nav-label { font-size: .74rem; color: var(--ink4); }
.art-detail-nav-label i { color: var(--p); }
.art-detail-nav-title {
  font-size: .85rem;
  color: var(--ink2);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.art-detail-nav-title:hover { color: var(--p); }

/* ── 首页文章区块 ── */
#articles-section { background: var(--surf); }
.index-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s6);
}
@media (max-width: 900px) { .index-art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .index-art-grid { grid-template-columns: 1fr; } }
.index-art-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surf);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.index-art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--p-light);
}
.index-art-cover {
  position: relative;
  overflow: hidden;
  height: 160px;
}
.index-art-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.index-art-card:hover .index-art-cover img { transform: scale(1.05); }
.index-art-cover-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--p-bg) 0%, var(--s-bg) 100%);
}
.index-art-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(99,102,241,.9);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}
.index-art-body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s2);
}
.index-art-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.index-art-summary {
  font-size: .8rem;
  color: var(--ink3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}
.index-art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}

/* ========================================
   后台专用扩展样式（legal.php / seo.php 等）
   所有规则使用 .admin-main 前缀 + admin-only 类，
   不会污染前台 .btn / .card 等共享组件
   ======================================== */

/* ── 消息提示（后台专用）── */
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.msg-success { background: #D5F5E3; color: #1E7E34; border: 1px solid #A9DFBF; }
.msg-info { background: #D6EAF8; color: #1A5276; border: 1px solid #AED6F1; }

/* ── Tab 切换栏 ── */
.tab-bar {
  display: flex; gap: 0; background: var(--surf); border-radius: 10px;
  padding: 4px; margin-bottom: 20px; border: 1px solid var(--line);
}
.tab-bar a {
  flex: 1; text-align: center; padding: 10px 16px; border-radius: 7px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink3); text-decoration: none; transition: .15s;
}
.tab-bar a:hover { color: var(--ink); background: var(--surf2); }
.tab-bar a.active { background: var(--p); color: #fff; }

/* ── 页面标签选择器 ── */
.page-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.page-tabs a {
  padding: 8px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  color: var(--ink3); text-decoration: none; background: var(--surf); border: 1px solid var(--line);
  transition: .15s;
}
.page-tabs a:hover { background: var(--surf2); color: var(--ink); }
.page-tabs a.active { background: var(--p); color: #fff; border-color: var(--p); }

/* ── 管理后台卡片（仅作用于 .admin-main 内部，不动前台 .card）── */
.admin-main .card {
  padding: 24px;
  margin-bottom: 20px;
}
.admin-main .card:hover {
  box-shadow: none;
  border-color: var(--line);
}
.admin-main .card h2 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-main .card .hint {
  font-size: 0.82rem;
  color: var(--ink4);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ── 法律编辑器 ── */
textarea.legal-editor {
  width: 100%; min-height: 500px; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem; line-height: 1.6; padding: 16px; border: 1px solid var(--line);
  border-radius: 8px; resize: vertical; color: var(--ink); background: #FAFBFC;
}
textarea.legal-editor:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* ── 两列表单网格（seo.php 专用）── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .form-group.full { grid-column: 1 / -1; }
.form-grid .form-group input,
.form-grid .form-group textarea,
.form-grid .form-group select {
  width: 100%;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.88rem; color: var(--ink); background: #FAFBFC; transition: .15s;
  font-family: inherit;
}
.form-grid .form-group input:focus,
.form-grid .form-group textarea:focus,
.form-grid .form-group select:focus {
  outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-grid .form-group textarea { resize: vertical; min-height: 60px; }

/* ── 表单辅助（后台专用）── */
.admin-main .form-group label i { width: 16px; margin-right: 4px; color: var(--p); }
.admin-main .form-group .inline-hint { font-size: 0.75rem; color: var(--ink4); margin-top: 2px; }

/* ── Logo 单选 ── */
.logo-type-group { display: flex; gap: 20px; align-items: center; }
.logo-type-group label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.logo-type-group input[type="radio"] { accent-color: var(--p); }

/* ── 分节线 ── */
.section-hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

/* ── 状态标签 ── */
.status-badge { font-size: 0.75rem; font-weight: 400; margin-left: 8px; padding: 2px 8px; border-radius: 10px; }
.status-custom { background: #D5F5E3; color: #1E7E34; }
.status-default { background: #F0F0F0; color: var(--ink4); }

/* ── 预览面板 ── */
.preview-panel { display: none; margin-top: 16px; padding: 20px; background: #F8F9FA; border: 1px solid var(--line); border-radius: 8px; }
.preview-panel.show { display: block; }

/* ── 按钮（仅 .admin-main 内覆盖，前台按钮不变）── */
.admin-main .btn-danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}
.admin-main .btn-danger:hover {
  background: var(--danger-bg);
}
.btn-bar { display: flex; gap: 10px; margin-top: 16px; }

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   个人中心 — 账号设置区域
   ═══════════════════════════════════════════════════════════ */

/* ══════════ 个人设置 v5.4 — 完全匹配"我的空间"版式 ══════════ */

/* ── 可点击的章节标题（复用 .db-section-header）── */
.db-settings-toggle {
  cursor: pointer;
  user-select: none;
  border-radius: var(--r);
  padding: var(--s2) var(--s3);
  margin: 0 calc(-1 * var(--s3));
  transition: background .2s;
}
.db-settings-toggle:hover {
  background: var(--surf2);
}

.db-settings-chevron {
  font-size: .8rem;
  color: var(--ink4);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.db-settings-chevron.is-open {
  transform: rotate(180deg);
  color: var(--p);
}

/* ── 主体：默认隐藏，展开带滑入动画 ── */
.db-settings-body {
  display: none;
  margin-top: var(--s4);
  overflow: hidden;
}
.db-settings-body.is-open {
  animation: settingsFadeIn .35s var(--ease);
}
@keyframes settingsFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 提示条 ── */
.db-settings-alert {
  display: none;
  padding: var(--s3) var(--s4);
  border-radius: var(--r);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: var(--s4);
  line-height: 1.5;
}

/* ── 两列网格 ── */
.db-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
@media (max-width: 760px) {
  .db-settings-grid { grid-template-columns: 1fr; }
}

/* ── 卡片 — 与 .db-record-card 同款白底灰边 ── */
.db-settings-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: border-color .2s, box-shadow .2s;
}
.db-settings-card:hover {
  border-color: var(--line2);
  box-shadow: var(--shadow-sm);
}

/* 卡片头部：图标 + 标题 + 描述 */
.db-settings-card-hd {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.db-settings-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-bg);
  color: var(--p);
  font-size: .95rem;
  flex-shrink: 0;
}
.db-settings-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.db-settings-card-desc {
  font-size: .78rem;
  color: var(--ink4);
  margin: 2px 0 0;
}

/* ── 表单：直接用全局 .form-group + .form-input 体系 ── */
.db-settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.db-settings-form .form-group {
  margin-bottom: 0;
}
.db-settings-form .btn {
  align-self: flex-start;
}

/* ── 微信提示 ── */
.db-settings-notice {
  font-size: .82rem;
  color: var(--ink2);
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
  border-radius: var(--r);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s3);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.db-settings-notice .fa-weixin {
  color: #07C160;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 密码输入组（input + 眼睛）── */
.db-settings-pw-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  background: var(--surf);
}
.db-settings-pw-wrap:focus-within {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.db-settings-input-pw {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--ink);
  background: transparent;
  outline: none;
  font-family: inherit;
}
.db-settings-input-pw::placeholder {
  color: var(--ink4);
}
.db-settings-pw-eye {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  color: var(--ink4);
  cursor: pointer;
  font-size: .82rem;
  transition: color .15s;
  padding: 0;
  flex-shrink: 0;
}
.db-settings-pw-eye:hover {
  color: var(--p);
}

/* ── 密码强度条 ── */
.db-settings-pw-meter {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.db-settings-pw-bar {
  flex: 1;
  height: 4px;
  background: var(--surf2);
  border-radius: 2px;
  overflow: hidden;
}
.db-settings-pw-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  width: 0;
  background: var(--p);
  transition: width .35s ease, background .3s ease;
  font-style: normal;
}
.db-settings-pw-meter > span:last-child {
  font-size: .75rem;
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}


