/* ========================================
   九型人格测试 - Apple 风格样式表
   深色 / 浅色 双主题 · 移动端优先
   ======================================== */

/* ===== 非主题变量（所有主题共享） ===== */
:root {
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 880px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== 深色主题（默认） ===== */
:root,
:root[data-theme="dark"] {
  --bg: #0a0b0f;
  --bg-2: #121419;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --surface-solid: #1a1d24;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #a8adb8;
  --text-3: #6e7480;
  --text-dim: #454a55;
  --accent: #d4af6a;
  --accent-dim: #9a7d45;
  --accent-glow: rgba(212, 175, 106, 0.12);
  --accent-hover: #e0bd78;
  --danger: #e54b4b;
  --success: #2eb87e;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
  --navbar-bg: rgba(10, 11, 15, 0.72);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --hero-grad-start: #f5f5f7;
  --hero-grad-end: #d4af6a;
  --hero-glow: radial-gradient(ellipse 600px 400px at 50% 40%, rgba(212,175,106,0.08), transparent 70%);
  --summary-bg: rgba(212, 175, 106, 0.08);
  --input-bg: rgba(255, 255, 255, 0.06);
  --chart-grid-outer: rgba(255, 255, 255, 0.06);
  --chart-grid-inner: rgba(255, 255, 255, 0.03);
  --chart-axis: rgba(255, 255, 255, 0.04);
  --chart-fill-start: rgba(212, 175, 106, 0.25);
  --chart-fill-end: rgba(212, 175, 106, 0.05);
  --chart-stroke: rgba(212, 175, 106, 0.7);
  --chart-point-stroke: rgba(255, 255, 255, 0.9);
  --chart-secondary-stroke: rgba(255, 255, 255, 0.35);
  --chart-label: rgba(168, 173, 184, 0.6);
  --chart-label-score: rgba(110, 116, 128, 0.5);
  --chart-center: rgba(212, 175, 106, 0.7);
  --chart-center-sub: rgba(110, 116, 128, 0.5);
  --screenshot-bg: #0a0b0f;
  --card-glow: 0 0 60px rgba(212, 175, 106, 0.06);
}

/* ===== 浅色主题 ===== */
:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-2: #eeeee9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(0, 0, 0, 0.03);
  --surface-3: rgba(0, 0, 0, 0.06);
  --surface-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --text-2: #555560;
  --text-3: #86868b;
  --text-dim: #aeaeb2;
  --accent: #a8742e;
  --accent-dim: #876028;
  --accent-glow: rgba(168, 116, 46, 0.08);
  --accent-hover: #966426;
  --danger: #c63838;
  --success: #16865a;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --navbar-bg: rgba(245, 245, 247, 0.72);
  --overlay-bg: rgba(0, 0, 0, 0.2);
  --hero-grad-start: #1d1d1f;
  --hero-grad-end: #a8742e;
  --hero-glow: radial-gradient(ellipse 600px 400px at 50% 40%, rgba(168,116,46,0.06), transparent 70%);
  --summary-bg: rgba(168, 116, 46, 0.06);
  --input-bg: rgba(0, 0, 0, 0.03);
  --chart-grid-outer: rgba(0, 0, 0, 0.05);
  --chart-grid-inner: rgba(0, 0, 0, 0.025);
  --chart-axis: rgba(0, 0, 0, 0.03);
  --chart-fill-start: rgba(168, 116, 46, 0.2);
  --chart-fill-end: rgba(168, 116, 46, 0.03);
  --chart-stroke: rgba(168, 116, 46, 0.65);
  --chart-point-stroke: rgba(255, 255, 255, 0.9);
  --chart-secondary-stroke: rgba(0, 0, 0, 0.25);
  --chart-label: rgba(85, 85, 96, 0.6);
  --chart-label-score: rgba(134, 134, 139, 0.5);
  --chart-center: rgba(168, 116, 46, 0.7);
  --chart-center-sub: rgba(134, 134, 139, 0.5);
  --screenshot-bg: #f5f5f7;
  --card-glow: 0 0 60px rgba(168, 116, 46, 0.04);
}

/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition-theme);
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

.hidden { display: none !important; }

/* ===== 滚动渐入动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== 视图过渡动画 ===== */
.view {
  display: none;
  min-height: 100vh;
  padding-top: calc(56px + var(--safe-top));
}
.view.active {
  display: block;
  animation: viewFadeIn 0.5s var(--ease-out);
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(56px + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--navbar-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: var(--transition-theme);
}
.nav-inner {
  max-width: var(--max-width);
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo {
  width: 30px; height: 30px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  position: relative;
  transition: transform 0.3s var(--ease-spring);
}
.nav-brand:hover .nav-logo { transform: rotate(8deg) scale(1.05); }
.nav-logo::after {
  content: '9';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}
.nav-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--bg);
  transition: transform 0.2s var(--ease-spring);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.nav-avatar.avatar-img { background-color: var(--surface-3); }
.nav-avatar.avatar-number { font-weight: 800; font-size: 15px; }
.nav-avatar:hover { transform: scale(1.08); }
.nav-nickname { font-size: 14px; color: var(--text-2); }

/* ========== Theme Toggle ========== */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-spring);
  flex-shrink: 0;
  position: relative;
}
.theme-toggle:hover {
  border-color: var(--accent-dim);
  background: var(--surface-2);
  transform: scale(1.08);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.4s var(--ease-spring);
}
.theme-toggle:hover svg { stroke: var(--accent); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; transform: rotate(360deg); }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ========== Buttons ========== */
.btn-primary, .btn-secondary, .btn-text, .btn-danger, .btn-wechat {
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 13px 36px;
  border-radius: 100px;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 12px rgba(212,175,106,0.2);
}
:root[data-theme="light"] .btn-primary {
  box-shadow: 0 2px 12px rgba(168,116,46,0.15);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,175,106,0.3);
}
:root[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(168,116,46,0.2);
}
.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-2);
  padding: 13px 36px;
  border-radius: 100px;
  font-size: 15px;
  border: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-light);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: scale(0.96); }

.btn-text {
  background: transparent;
  color: var(--text-3);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14px;
}
.btn-text:hover { color: var(--accent); background: var(--surface-2); }
.btn-text:active { transform: scale(0.95); }

.btn-lg { padding: 17px 52px; font-size: 17px; }
.btn-block { width: 100%; padding: 15px; margin-top: 8px; }
.btn-sm { padding: 9px 22px; font-size: 13px; }

.btn-danger {
  background: var(--danger);
  color: #fff;
  padding: 13px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
}
.btn-danger:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-danger:active { transform: scale(0.96); }

.btn-wechat {
  width: 100%;
  background: #07c160;
  color: #fff;
  padding: 15px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
}
.btn-wechat:hover { background: #06ad56; transform: translateY(-1px); }
.btn-wechat:active { transform: scale(0.96); }
.wechat-icon {
  width: 20px; height: 20px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 4C4.9 4 2 6.5 2 9.5c0 1.7.9 3.2 2.4 4.2L4 16l2.5-1.3c.6.2 1.3.3 2 .3.2 0 .4 0 .6-.1-.1-.5-.2-1-.2-1.4 0-2.9 2.9-5.2 6.5-5.2.2 0 .4 0 .6.1C15.6 5.8 12.3 4 8.5 4zm-2.3 3.2c.5 0 .9.4.9.9s-.4.9-.9.9-.9-.4-.9-.9.4-.9.9-.9zm4.6 0c.5 0 .9.4.9.9s-.4.9-.9.9-.9-.4-.9-.9.4-.9.9-.9z'/%3E%3Cpath d='M22 13.5c0-2.5-2.5-4.5-5.5-4.5S11 11 11 13.5s2.5 4.5 5.5 4.5c.6 0 1.2-.1 1.7-.3L20 19l-.4-1.8c1.4-.8 2.4-2.1 2.4-3.7zm-7.3-1.2c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7zm3.6 0c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 4C4.9 4 2 6.5 2 9.5c0 1.7.9 3.2 2.4 4.2L4 16l2.5-1.3c.6.2 1.3.3 2 .3.2 0 .4 0 .6-.1-.1-.5-.2-1-.2-1.4 0-2.9 2.9-5.2 6.5-5.2.2 0 .4 0 .6.1C15.6 5.8 12.3 4 8.5 4zm-2.3 3.2c.5 0 .9.4.9.9s-.4.9-.9.9-.9-.4-.9-.9.4-.9.9-.9zm4.6 0c.5 0 .9.4.9.9s-.4.9-.9.9-.9-.4-.9-.9.4-.9.9-.9z'/%3E%3Cpath d='M22 13.5c0-2.5-2.5-4.5-5.5-4.5S11 11 11 13.5s2.5 4.5 5.5 4.5c.6 0 1.2-.1 1.7-.3L20 19l-.4-1.8c1.4-.8 2.4-2.1 2.4-3.7zm-7.3-1.2c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7zm3.6 0c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ========== Welcome / Hero ========== */

/* 进度恢复提示条 */
.progress-restore-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.15);
  animation: slideDown 0.4s var(--ease-smooth);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.progress-restore-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.progress-restore-text svg {
  color: var(--accent);
  flex-shrink: 0;
}
.progress-restore-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-restore-continue {
  padding: 10px 24px;
  border: none;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}
.btn-restore-continue:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.4);
}
.btn-restore-discard {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}
.btn-restore-discard:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
@media (max-width: 768px) {
  .progress-restore-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

.hero {
  min-height: calc(100vh - 56px - var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  z-index: 1;
}
.hero-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
  text-transform: uppercase;
}
.hero-title {
  font-size: 68px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13px; color: var(--text-3); }
.hero-hint { font-size: 14px; color: var(--text-dim); margin-top: 24px; }

/* ========== Quiz ========== */
.view-quiz { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 80px; }
.quiz-header { margin-bottom: 40px; }
.quiz-progress-bar {
  height: 2px;
  background: var(--surface-2);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 16px;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 1px;
  width: 9%;
  transition: width 0.5s var(--ease-out);
  box-shadow: 0 0 8px var(--accent-glow);
}
.quiz-progress-text {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

.quiz-list { display: flex; flex-direction: column; gap: 10px; }
.quiz-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.quiz-item:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.quiz-item:active { transform: scale(0.99); }
.quiz-item.checked {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}
.quiz-checkbox {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid var(--border-light);
  border-radius: 7px;
  margin-top: 1px;
  transition: all 0.25s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.quiz-item.checked .quiz-checkbox {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.05);
}
.quiz-item.checked .quiz-checkbox::after {
  content: '';
  width: 7px; height: 11px;
  border: solid var(--bg);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.quiz-num {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-dim);
  width: 28px;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.quiz-text { font-size: 15px; color: var(--text); line-height: 1.65; }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.quiz-nav-page { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ========== Result ========== */
.view-result { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 80px; }
.result-container { display: flex; flex-direction: column; gap: 28px; }

.result-hero {
  text-align: center;
  padding: 64px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-glow);
}
.result-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--type-color, var(--accent)), transparent);
}
.result-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 300px at 50% 0%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.result-hero-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}
.result-hero-num {
  font-size: 80px;
  font-weight: 800;
  color: var(--type-color, var(--accent));
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
  position: relative;
}
.result-hero-name { font-size: 30px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; position: relative; }
.result-hero-en { font-size: 15px; color: var(--text-3); font-style: italic; margin-bottom: 24px; position: relative; }
.result-hero-summary {
  display: inline-block;
  font-size: 15px;
  color: var(--type-color, var(--accent));
  padding: 10px 24px;
  background: var(--summary-bg);
  border-radius: 100px;
  font-weight: 500;
  position: relative;
}

.result-chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.result-section-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.result-section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
#radarCanvas { width: 100%; max-width: 420px; display: block; margin: 0 auto; }

.result-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.result-overview {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.detail-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 32px; }
.detail-trio-item {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s var(--ease-smooth);
}
.detail-trio-item:hover { transform: translateY(-2px); }
.detail-trio-label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.5px; }
.detail-trio-value { font-size: 14px; color: var(--text); line-height: 1.55; }

.detail-section { margin-bottom: 28px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--type-color, var(--accent));
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.detail-list { list-style: none; }
.detail-list li {
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.65;
}
.detail-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--type-color, var(--accent));
  opacity: 0.5;
}

.detail-growth { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.detail-growth-item {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s var(--ease-smooth);
}
.detail-growth-item:hover { transform: translateY(-2px); }
.detail-growth-label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.detail-growth-text { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.detail-careers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.career-tag {
  font-size: 13px;
  padding: 7px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
  transition: all 0.2s var(--ease-smooth);
}
.career-tag:hover {
  border-color: var(--accent-dim);
  color: var(--text);
  transform: translateY(-1px);
}
.detail-relationship {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.detail-catchphrase {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.detail-catchphrase span { color: var(--type-color, var(--accent)); font-style: italic; }

/* ========== Score Breakdown ========== */
.score-breakdown { display: flex; flex-direction: column; gap: 10px; }
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.score-type {
  flex-shrink: 0;
  width: 120px;
  font-size: 13px;
  color: var(--text-3);
}
.score-row.score-core .score-type { color: var(--text); font-weight: 600; }
.score-row.score-secondary .score-type { color: var(--text-2); font-weight: 500; }
.score-bar-container {
  flex: 1;
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s var(--ease-out);
  opacity: 0.7;
}
.score-row.score-core .score-bar { opacity: 1; }
.score-row.score-secondary .score-bar { opacity: 0.85; }
.score-value {
  flex-shrink: 0;
  width: 32px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.score-row.score-core .score-value { color: var(--type-color, var(--accent)); font-size: 16px; }

/* ========== Wing Analysis ========== */
.wing-analysis { display: flex; flex-direction: column; gap: 12px; }
.wing-secondary {
  font-size: 15px;
  color: var(--text-2);
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--type-color, var(--accent));
}
.wing-secondary span { color: var(--type-color, var(--accent)); font-weight: 600; }
.wing-description { font-size: 14px; color: var(--text-3); line-height: 1.75; }

/* ========== Development Levels ========== */
.dev-levels { display: flex; flex-direction: column; gap: 12px; }
.dev-level {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border-left: 3px solid;
}
.dev-healthy { background: rgba(48, 176, 120, 0.08); border-color: #30b078; }
.dev-average { background: rgba(200, 160, 40, 0.08); border-color: #c8a028; }
.dev-unhealthy { background: rgba(200, 60, 60, 0.08); border-color: #c83c3c; }
.dev-level-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dev-healthy .dev-level-label { color: #30b078; }
.dev-average .dev-level-label { color: #c8a028; }
.dev-unhealthy .dev-level-label { color: #c83c3c; }
.dev-level-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ========== Growth Suggestions ========== */
.growth-suggestions { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.growth-suggestions li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease-smooth);
}
.growth-suggestions li:hover { transform: translateX(4px); }
.suggestion-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--type-color, var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.suggestion-text { font-size: 14px; color: var(--text-2); line-height: 1.7; flex: 1; }

/* ========== Compatible Types ========== */
.compatible-types { display: flex; flex-direction: column; gap: 12px; }
.compatible-type {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.compatible-type-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.compatible-type-info { display: flex; flex-direction: column; gap: 4px; }
.compatible-type-name { font-size: 14px; font-weight: 600; color: var(--text); }
.compatible-type-reason { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ========== Famous People ========== */
.famous-people { display: flex; flex-wrap: wrap; gap: 10px; }
.famous-tag {
  padding: 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.2s var(--ease-smooth);
}
.famous-tag:hover {
  border-color: var(--type-color, var(--accent));
  color: var(--type-color, var(--accent));
  transform: translateY(-2px);
}

/* ========== AI 深度解读 ========== */
.ai-report-section {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.ai-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.ai-report-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ai-report-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ai-report-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
}
.ai-report-body {
  padding: 32px 28px;
  min-height: 120px;
}
.ai-report-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  text-align: center;
}
.ai-report-lock-icon {
  color: var(--text-3);
  opacity: 0.6;
}
.ai-report-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 420px;
}
.btn-ai-generate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #d4af5a);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-ai-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-ai-generate:active {
  transform: scale(0.97);
}
.btn-ai-login {
  background: linear-gradient(135deg, #4a90d9, #357abd);
  box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}
.btn-ai-login:hover {
  box-shadow: 0 6px 24px rgba(74, 144, 217, 0.45);
}

/* AI 报告加载动画 */
.ai-report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}
.ai-report-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-report-loading-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.ai-report-loading-sub {
  font-size: 13px;
  color: var(--text-3);
}

/* AI 报告内容卡片 */
.ai-report-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ai-report-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ai-report-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.ai-report-card-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
  white-space: pre-wrap;
}

/* AI 报告移动端适配 */
@media (max-width: 768px) {
  .ai-report-header { padding: 16px 20px; }
  .ai-report-body { padding: 24px 20px; }
  .ai-report-title { font-size: 16px; }
  .ai-report-card { padding: 18px; }
  .ai-report-card-text { font-size: 13px; line-height: 1.7; }
  .btn-ai-generate { padding: 12px 26px; font-size: 14px; }
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: overlayIn 0.3s var(--ease-out);
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow);
  animation: modalIn 0.35s var(--ease-spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
  transition: all 0.2s;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--input-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s var(--ease-smooth);
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-error { font-size: 13px; color: var(--danger); min-height: 18px; margin-bottom: 4px; }
.auth-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--surface-solid); padding: 0 16px; font-size: 13px; color: var(--text-dim); }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: calc(32px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-solid);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  z-index: 300;
  animation: toastIn 0.4s var(--ease-spring);
  max-width: 90vw;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 24px) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ========== Login Prompt ========== */
.login-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.login-prompt-text { font-size: 14px; color: var(--text-2); }

/* ========== History Panel ========== */
.history-loading {
  padding: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.history-panel {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  cursor: pointer;
  transition: background 0.2s;
}
.history-header:hover { background: var(--surface-2); }
.history-title { font-size: 15px; font-weight: 600; color: var(--text); }
.history-count {
  font-size: 13px;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 3px 12px;
  border-radius: 100px;
}
.history-toggle { margin-left: auto; font-size: 13px; color: var(--accent); }
.history-list { border-top: 1px solid var(--border); }
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  border-bottom: 1px solid var(--border);
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: var(--surface-2); }
.history-item:active { transform: scale(0.99); }
.history-item.current { background: var(--accent-glow); }
.history-item-left { display: flex; align-items: center; gap: 16px; }
.history-item-num { font-size: 24px; font-weight: 700; min-width: 48px; font-variant-numeric: tabular-nums; }
.history-item-type { font-size: 14px; font-weight: 500; color: var(--text); }
.history-item-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.history-item-right { display: flex; align-items: center; gap: 12px; }
.history-item-secondary { font-size: 12px; color: var(--text-3); }
.history-item-arrow { font-size: 22px; color: var(--text-dim); line-height: 1; }

/* ========== Bind Result Modal ========== */
.modal-sm { max-width: 360px; text-align: center; }
.bind-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.02em; }
.bind-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }
.bind-actions { display: flex; gap: 12px; }
.bind-actions button { flex: 1; }

/* ========== Profile Page ========== */
.view-profile { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 80px; }
.profile-container { display: flex; flex-direction: column; gap: 24px; }

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--card-glow);
  flex-wrap: wrap;
}
.profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}
.profile-avatar-wrapper {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.profile-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: var(--bg);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s var(--ease-spring);
}
.profile-avatar.avatar-img { background-color: var(--surface-3); }
.profile-avatar.avatar-number { font-weight: 800; font-size: 32px; }
.avatar-camera-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s var(--ease-smooth);
}
.profile-avatar-wrapper:hover .avatar-camera-overlay { opacity: 1; }
.profile-avatar-wrapper:hover .profile-avatar { transform: scale(1.03); }
.avatar-camera-overlay svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-info { flex: 1 1 auto; min-width: 0; }
.profile-nickname { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.profile-meta { font-size: 13px; color: var(--text-3); margin-top: 4px; }

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  flex: 0 1 auto;
}
.profile-actions .btn-secondary,
.profile-actions .btn-danger { padding: 9px 20px; font-size: 13px; }

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.profile-section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.profile-section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.profile-empty {
  padding: 36px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
}
.profile-empty a { color: var(--accent); text-decoration: none; }
.profile-empty a:hover { text-decoration: underline; }

.profile-section .history-item {
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.profile-section .history-item:last-child { margin-bottom: 0; }

/* ========== Growth Tracker ========== */
.growth-intro { font-size: 13px; color: var(--text-3); line-height: 1.65; margin-bottom: 16px; }
.growth-list { display: flex; flex-direction: column; gap: 8px; }
.growth-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.growth-item:hover { border-color: var(--border-light); transform: translateY(-1px); }
.growth-item:active { transform: scale(0.99); }
.growth-item.checked { border-color: var(--accent-dim); background: var(--accent-glow); }
.growth-checkbox {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--border-light);
  border-radius: 7px;
  margin-top: 1px;
  transition: all 0.25s var(--ease-spring);
  display: flex; align-items: center; justify-content: center;
}
.growth-item.checked .growth-checkbox { border-color: var(--accent); background: var(--accent); }
.growth-item.checked .growth-checkbox::after {
  content: '';
  width: 6px; height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.growth-text { font-size: 14px; color: var(--text-2); line-height: 1.65; transition: color 0.2s; }
.growth-item.checked .growth-text { color: var(--text-3); text-decoration: line-through; }
.growth-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.growth-progress-bar { flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.growth-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.5s var(--ease-out); }
.growth-progress-text { font-size: 13px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ========== Compare View ========== */
.compare-hint { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.compare-select-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.compare-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}
.compare-select-item:hover { border-color: var(--border-light); }
.compare-select-item.selected { border-color: var(--accent-dim); background: var(--accent-glow); }
.compare-checkbox {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--border-light);
  border-radius: 7px;
  transition: all 0.25s var(--ease-spring);
  display: flex; align-items: center; justify-content: center;
}
.compare-select-item.selected .compare-checkbox { border-color: var(--accent); background: var(--accent); }
.compare-select-item.selected .compare-checkbox::after {
  content: '';
  width: 6px; height: 10px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.compare-select-date { font-size: 14px; color: var(--text-2); }
.compare-select-type { font-size: 14px; font-weight: 500; }

.compare-charts { display: flex; gap: 20px; justify-content: center; margin-bottom: 24px; }
.compare-chart-item { text-align: center; flex: 1; max-width: 260px; }
.compare-chart-date { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.compare-chart-item canvas { width: 100% !important; max-width: 220px; height: auto !important; }
.compare-chart-type { font-size: 14px; font-weight: 600; margin-top: 8px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.compare-table th { padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--border); }
.compare-table td { padding: 10px 8px; text-align: center; color: var(--text-2); border-bottom: 1px solid var(--border); }
.compare-table tr.highlight td { background: var(--accent-glow); font-weight: 600; color: var(--text); }
.compare-table .up { color: var(--success); }
.compare-table .down { color: var(--danger); }
.compare-actions { display: flex; gap: 12px; justify-content: center; }

/* Nav avatar clickable */
.nav-avatar, .nav-nickname { cursor: pointer; transition: opacity 0.2s; }
.nav-avatar:hover, .nav-nickname:hover { opacity: 0.8; }

/* ========== 移动端响应式 ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 48px; }
  .hero-desc { font-size: 16px; }
  .hero-stats { gap: 32px; }
  .stat-num { font-size: 26px; }
  .nav-title { display: none; }
  .nav-inner { padding: 0 16px; }
  .view-quiz, .view-result, .view-profile { padding: 24px 16px 60px; }
  .quiz-item { padding: 16px 18px; gap: 12px; }
  .quiz-text { font-size: 14px; }
  .quiz-checkbox { width: 22px; height: 22px; }
  .result-hero { padding: 44px 24px; }
  .result-hero-num { font-size: 60px; }
  .result-hero-name { font-size: 24px; }
  .result-chart-section, .result-detail { padding: 24px 20px; }
  .detail-trio { grid-template-columns: 1fr; }
  .detail-growth { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .nav-nickname { display: none; }
  .login-prompt { flex-direction: column; text-align: center; gap: 12px; }
  .history-item { padding: 14px 18px; }
  .history-item-num { font-size: 20px; min-width: 36px; }
  .history-header { padding: 16px 18px; }
  .profile-card { padding: 24px 20px; gap: 16px; }
  .profile-left { gap: 16px; width: 100%; }
  .profile-avatar { width: 52px; height: 52px; font-size: 24px; }
  .profile-avatar.avatar-number { font-size: 26px; }
  .avatar-camera-overlay svg { width: 20px; height: 20px; }
  .profile-nickname { font-size: 20px; }
  .profile-section { padding: 20px 18px; }
  .profile-actions { flex: 1 1 100%; justify-content: center; gap: 8px; }
  .profile-actions .btn-secondary,
  .profile-actions .btn-danger { flex: 1 1 auto; min-width: 110px; padding: 9px 12px; font-size: 12px; }
  .compare-charts { flex-direction: column; align-items: center; gap: 16px; }
  .compare-chart-item { max-width: 200px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 4px; }
  .modal { padding: 32px 24px 28px; }
  .score-type { width: 88px; font-size: 12px; }
  .score-value { width: 26px; font-size: 13px; }
  .score-row.score-core .score-value { font-size: 14px; }
  .dev-level { padding: 14px 14px; }
  .dev-level-text { font-size: 13px; }
  .growth-suggestions li { padding: 12px 14px; }
  .suggestion-text { font-size: 13px; }
  .compatible-type { padding: 12px 14px; gap: 10px; }
  .compatible-type-badge { width: 38px; height: 38px; font-size: 13px; }
  .compatible-type-reason { font-size: 12px; }
  .famous-tag { padding: 6px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 22px; }
  .result-hero-num { font-size: 48px; }
  .result-hero-name { font-size: 20px; }
}

/* ===== 大屏优化 ===== */
@media (min-width: 1200px) {
  .hero-title { font-size: 80px; }
}

/* ===== 减少动画偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
