/**
 * SBTI 荒诞人格测试 - 全局样式
 * 配色方案源自原站 lingceu.com
 * 移动端优先响应式设计
 */

/* ═══════════════════════════════════════
   CSS 变量 / 主题色
   ═══════════════════════════════════════ */

:root {
  /* 品牌色 */
  --primary: #4D6A53;
  --primary-light: rgba(77, 106, 83, 0.08);
  --primary-border: rgba(77, 106, 83, 0.15);
  --primary-hover: #3d5a43;

  /* 文字色 */
  --text-primary: #343C4B;
  --text-heading: #1E2A22;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;

  /* 背景色 */
  --bg-page: linear-gradient(180deg, #F8FFF8 0%, #F0F7F1 50%, #E8F0EA 100%);
  --bg-card: #FFFFFF;
  --bg-section: #F8F9FA;
  --bg-warning: #FEF8F0;

  /* 边框色 */
  --border-light: #E5E7EB;
  --border-warning: #F5E6D3;

  /* 警告/强调色 */
  --warning-text: #9A3412;
  --warning-bg: rgba(194, 65, 12, 0.08);
  --danger: #DC2626;
  --success: #16A34A;
  --gold: #F59E0B;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(77, 106, 83, 0.1);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;

  /* 动画 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════
   页面进入/退出过渡（模拟 SPA）
   ═══════════════════════════════════════ */

body {
  animation: pageEnter 0.4s ease both;
}

body.page-exit {
  animation: pageExit 0.25s ease both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pageExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ═══════════════════════════════════════
   CSS Reset / 基础样式
   ═══════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ═══════════════════════════════════════
   布局工具类
   ═══════════════════════════════════════ */

.container {
  width: 100%;
  max-width: 672px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 40px 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.hidden { display: none !important; }

/* ═══════════════════════════════════════
   顶部导航栏 (Sticky)
   ═══════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-light);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-heading);
}

.navbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.navbar-subtitle {
  font-size: 11.78px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ═══════════════════════════════════════
   Hero 区域
   ═══════════════════════════════════════ */

.hero {
  padding: 40px 16px 32px;
  text-align: center;
}

.hero-subtitle-en {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 29.44px;
  font-weight: 900;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.hero-badge {
  position: absolute;
  top: -8px;
  right: -60px;
  background: var(--primary);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transform: rotate(12deg);
}

/* 人格卡片展示 */
.hero-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 32px 0 24px;
  perspective: 800px;
}

.hero-card {
  width: 100px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 8px;
  transition: var(--transition-normal);
}

.hero-card:nth-child(1) {
  transform: rotate(-8deg) translateY(8px);
}
.hero-card:nth-child(2) {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: var(--shadow-lg);
}
.hero-card:nth-child(3) {
  transform: rotate(8deg) translateY(8px);
}

.hero-card-avatar {
  width: 70px;
  height: 70px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.hero-card-code {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hero-card-quote {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
}

/* 标签药丸 */
.pill-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11.78px;
  color: var(--text-primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
}

/* Hero 文案 */
.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 16px 0 24px;
  padding: 0 16px;
}

/* ═══════════════════════════════════════
   CTA 按钮
   ═══════════════════════════════════════ */

.btn-primary {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 12px 36px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-white);
  background: var(--primary);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text-white);
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* 隐私协议提示 */
.privacy-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.privacy-hint a {
  text-decoration: underline;
}

.disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* ═══════════════════════════════════════
   产品对比区
   ═══════════════════════════════════════ */

.compare-section {
  padding: 40px 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.compare-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compare-item {
  text-align: center;
  flex: 1;
}

.compare-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.compare-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.compare-vs {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.compare-highlight {
  color: var(--primary);
}

.core-statement {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 16px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* 五大模型 */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.model-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.model-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.model-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.model-dims {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   痛点共鸣区
   ═══════════════════════════════════════ */

.pain-points {
  padding: 32px 16px;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.pain-check {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════
   报告预览卡片
   ═══════════════════════════════════════ */

.preview-cards {
  padding: 32px 16px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.preview-card {
  padding: 20px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
}

.preview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.preview-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.preview-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.preview-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   收尾文案
   ═══════════════════════════════════════ */

.closing-text {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 32px 24px;
  font-style: italic;
}

/* ═══════════════════════════════════════
   测试须知区
   ═══════════════════════════════════════ */

.notice-box {
  margin: 0 16px 32px;
  padding: 20px;
  background: var(--bg-warning);
  border: 1px solid var(--border-warning);
  border-radius: var(--radius-lg);
}

.notice-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--warning-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-item {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.notice-item::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 11px;
}

/* ═══════════════════════════════════════
   页脚
   ═══════════════════════════════════════ */

.footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 600;
  margin-top: 4px;
}

.footer-purpose {
  margin-top: 4px;
}

.footer-icp {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-icp:hover {
  color: var(--primary);
}

/* ═══════════════════════════════════════
   答题页面
   ═══════════════════════════════════════ */

/* 进度条 */
.progress-bar-container {
  position: sticky;
  top: 48px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-timer {
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
  min-width: 2%;
}

/* 题目卡片 */
.question-container {
  padding: 24px 16px 120px;
}

.question-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  animation: fadeInUp 0.4s ease;
}

.question-number {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 选项 */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-section);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.5;
  transition: var(--transition-fast);
  cursor: pointer;
}

.option-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.option-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.option-label {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.option-btn.selected .option-label {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* 答题导航 */
.question-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 90;
}

.question-nav .container {
  display: flex;
  gap: 12px;
  padding: 0;
}

.btn-nav {
  flex: 1;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  text-align: center;
}

.btn-prev {
  background: var(--bg-section);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-prev:hover {
  background: var(--border-light);
}

.btn-next {
  background: var(--primary);
  color: var(--text-white);
}

.btn-next:hover {
  background: var(--primary-hover);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-submit {
  background: var(--primary);
  color: var(--text-white);
  flex: 1;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════
   结果页面
   ═══════════════════════════════════════ */

/* 结果 Hero */
.result-hero {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, rgba(77,106,83,0.06) 0%, transparent 100%);
}

.result-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  background: var(--primary-light);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.result-avatar img {
  border-radius: var(--radius-lg);
}

.result-slogan {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
}

.result-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.result-tag {
  padding: 3px 10px;
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
}

.result-cta-text {
  font-size: 14px;
  color: var(--primary);
  margin-top: 16px;
}

/* 类型信息框 */
.type-box {
  margin: 0 16px 24px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.type-code {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}

.type-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 4px;
}

.type-match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

.type-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-style: italic;
}

.type-description {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-top: 16px;
  text-align: left;
}

/* ═══════════════════════════════════════
   雷达图
   ═══════════════════════════════════════ */

.radar-section {
  margin: 0 16px 24px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.radar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 16px;
}

.radar-canvas-container {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.radar-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.radar-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ═══════════════════════════════════════
   维度得分列表
   ═══════════════════════════════════════ */

.dimension-section {
  margin: 0 16px 24px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.dimension-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dimension-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dimension-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dimension-name {
  font-size: 12px;
  color: var(--text-secondary);
  width: 70px;
  flex-shrink: 0;
}

.dimension-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-section);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dimension-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.dimension-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.dimension-level {
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  padding: 1px 4px;
  border-radius: 4px;
}

.dimension-level.level-H {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
}

.dimension-level.level-M {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
}

.dimension-level.level-L {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

/* ═══════════════════════════════════════
   报告模块预览卡片（付费墙前）
   ═══════════════════════════════════════ */

.report-modules {
  padding: 0 16px 24px;
}

.report-module-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  position: relative;
}

.report-module-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.report-module-content {
  flex: 1;
}

.report-module-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.report-module-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.report-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
}

/* ═══════════════════════════════════════
   付费墙弹窗
   ═══════════════════════════════════════ */

.paywall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.paywall-sheet {
  width: 100%;
  max-width: 672px;
  max-height: 85vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.paywall-header {
  padding: 20px 16px 12px;
  text-align: center;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.paywall-timer {
  font-size: 16px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 4px;
}

.paywall-guarantee {
  font-size: 12px;
  color: var(--text-secondary);
}

.paywall-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* 定价卡片 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px;
}

.pricing-card {
  padding: 16px 8px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.pricing-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card.recommended {
  border-color: var(--gold);
}

.pricing-card.recommended.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--text-white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.pricing-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.pricing-price .currency {
  font-size: 13px;
}

.pricing-original {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 2px;
}

/* QR 码区 */
.qr-section {
  text-align: center;
  padding: 16px;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: var(--bg-section);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.qr-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.qr-hint .recommend {
  color: var(--success);
  font-weight: 600;
}

/* 权益清单 */
.benefits-list {
  padding: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}

.benefit-item.included {
  color: var(--text-primary);
}

.benefit-item.excluded {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.benefit-check {
  font-size: 14px;
}

/* 社会证明 */
.social-proof {
  padding: 16px;
  text-align: center;
}

.social-stat {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.social-stat strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* 信任徽章 */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--success);
}

.trust-icon {
  font-size: 16px;
}

/* 报告编号 */
.report-id {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 16px;
}

/* ═══════════════════════════════════════
   用户评价
   ═══════════════════════════════════════ */

.reviews-section {
  padding: 0 16px 24px;
}

.review-card {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  font-weight: 700;
}

.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
}

.review-stars {
  color: var(--gold);
  font-size: 12px;
  margin-left: auto;
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   分享海报
   ═══════════════════════════════════════ */

.share-section {
  margin: 0 16px 24px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.share-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.share-poster {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(77,106,83,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(77,106,83,0.08) 0%, transparent 50%),
    linear-gradient(160deg, #F0F9F1 0%, #E2EFE4 40%, #D6E8D9 100%);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  border: 2px solid rgba(77,106,83,0.15);
  position: relative;
}

.share-poster .poster-header-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.share-poster .poster-avatar-slot {
  margin: 0 auto 12px;
}

.share-poster .poster-avatar-slot img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.share-poster .poster-type-code {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 1px;
}

.share-poster .poster-type-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2px;
}

.share-poster .poster-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
  padding: 0 8px;
  line-height: 1.5;
}

.share-poster .poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed rgba(77,106,83,0.25);
}

.share-poster .poster-brand {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
}

.share-poster .poster-qr {
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ═══════════════════════════════════════
   隐私协议弹窗
   ═══════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: scaleIn 0.3s ease;
}

.modal-header {
  padding: 20px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
}

.modal-body {
  padding: 0 20px 20px;
  max-height: 50vh;
  overflow-y: auto;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-footer {
  padding: 12px 20px 20px;
}

/* ═══════════════════════════════════════
   加载状态
   ═══════════════════════════════════════ */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 255, 248, 0.95);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.loading-progress {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   动画
   ═══════════════════════════════════════ */

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════
   装饰线条
   ═══════════════════════════════════════ */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-border), transparent);
  margin: 32px 16px;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-border), transparent);
}

/* ═══════════════════════════════════════
   完整报告模块（解锁后展示）
   ═══════════════════════════════════════ */

.report-full-module {
  margin: 0 16px 20px;
  padding: 24px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  animation: fadeInUp 0.5s ease;
}

.report-full-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.report-full-icon {
  font-size: 24px;
}

.report-full-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.report-full-body {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.8;
  white-space: pre-line;
}

.report-full-body p {
  margin-bottom: 12px;
}

/* 维度解读卡片 */
.dim-interp-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dim-interp-item:last-child {
  border-bottom: none;
}

.dim-interp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
}

.dim-interp-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 搭子/对手卡片组 */
.compat-group {
  margin-top: 16px;
}

.compat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.compat-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.compat-card {
  flex-shrink: 0;
  width: 140px;
  padding: 12px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  text-align: center;
}

.compat-card-code {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
}

.compat-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 2px;
}

.compat-card-tag {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 第二人格卡片 */
.second-type-card {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(77,106,83,0.05), rgba(77,106,83,0.12));
  border-radius: var(--radius-lg);
  text-align: center;
}

.second-type-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.second-type-code {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.second-type-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

.second-type-match {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   增强动画
   ═══════════════════════════════════════ */

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.05); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes zoomInDown {
  from { opacity: 0; transform: scale(0.5) translateY(-40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.anim-slide-left  { animation: slideInLeft 0.4s ease; }
.anim-slide-right { animation: slideInRight 0.4s ease; }
.anim-bounce      { animation: bounceIn 0.6s ease; }
.anim-zoom-down   { animation: zoomInDown 0.5s ease; }

/* 答题页面题目切换方向 */
.question-card.slide-left  { animation: slideInLeft 0.35s ease; }
.question-card.slide-right { animation: slideInRight 0.35s ease; }

/* 结果页面渐入动画（交错） */
.result-hero     { animation: fadeInUp 0.5s ease 0.0s both; }
.type-box        { animation: fadeInUp 0.5s ease 0.1s both; }
.radar-section   { animation: fadeInUp 0.5s ease 0.2s both; }
.dimension-section { animation: fadeInUp 0.5s ease 0.3s both; }

/* 海报容器高亮 */
#sharePoster {
  position: relative;
  overflow: hidden;
}

#sharePoster::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

/* ═══════════════════════════════════════
   响应式 (桌面端适配)
   ═══════════════════════════════════════ */

@media (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-card {
    width: 130px;
    padding: 16px 12px;
  }

  .hero-card-avatar {
    width: 90px;
    height: 90px;
  }

  .question-text {
    font-size: 18px;
  }

  .option-btn {
    font-size: 15px;
    padding: 16px 20px;
  }

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

  .preview-grid {
    gap: 16px;
  }

  .pricing-grid {
    gap: 12px;
  }
}

/* ═══════════════════════════════════════
   暗色模式（可选）
   ═══════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  /* 暗色模式暂不启用，保持与原站一致的浅色主题 */
}

/* ═══════════════════════════════════════
   安全区适配 (iPhone 刘海)
   ═══════════════════════════════════════ */

@supports (padding: env(safe-area-inset-top)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }

  .question-nav {
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
}
