/* ============================================================
   MBTI 全站公共基础样式 — 吉卜力风格
   所有页面统一引用此文件，确保背景、导航、页脚一致
   配色：鼠尾草绿 #7cb9a8 / 奶油色 #f4e4bc / 珊瑚橙 #e8a87c
         天空蓝 #85cdca / 玫瑰粉 #c38d94
   文字：深棕 #3a3226 / 中棕 #5a4f42 / 浅棕 #8a7a6a
   ============================================================ */

/* ---------- 1. CSS 变量 ---------- */
:root {
  --accent: #7cb9a8;
  --accent-2: #85cdca;
  --accent-3: #e8a87c;
  --analyst: #c38d94;
  --diplomat: #85cdca;
  --sentinel: #7cb9a8;
  --explorer: #e8a87c;
  --bg: #f4e4bc;
  --bg-soft: #faf5eb;
  --text-primary: #3a3226;
  --text-secondary: #5a4f42;
  --border: rgba(124, 185, 168, 0.3);
  --border-light: #faf5eb;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(124, 185, 168, 0.15);
}

/* ---------- 2. 全局重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Noto Sans SC', sans-serif;
  background:
    radial-gradient(circle at 13% 16%, rgba(124, 185, 168, .12), transparent 40%),
    radial-gradient(circle at 86% 12%, rgba(133, 205, 202, .10), transparent 42%),
    radial-gradient(circle at 82% 84%, rgba(232, 168, 124, .08), transparent 44%),
    radial-gradient(circle at 16% 90%, rgba(195, 141, 148, .08), transparent 42%),
    linear-gradient(160deg, #f4e4bc 0%, #faf5eb 48%, #f4e4bc 100%) fixed;
  min-height: 100vh;
  color: #3a3226;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 185, 168, .25); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 3. 顶部导航 ---------- */
.top-nav {
  background: #f4e4bc;
  border-bottom: 1px solid rgba(124, 185, 168, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(124, 185, 168, 0.1);
}

.top-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: #5a4a3a;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #5a4f42;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.5s ease-in-out;
  border-radius: 12px;
  padding: 6px 12px;
}

.nav-links a:hover {
  color: #7cb9a8;
  background: rgba(124, 185, 168, 0.1);
}

.nav-links a.active {
  color: #7cb9a8;
  font-weight: 600;
  background: rgba(124, 185, 168, 0.15);
}

/* ---------- 4. 页脚 ---------- */
.footer {
  margin-top: 60px;
  background: linear-gradient(135deg, #7cb9a8 0%, #85cdca 100%);
  color: #3a3226;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 0;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(58, 50, 38, 0.15);
}
.footer-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #3a3226;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #5a4f42;
  margin-bottom: 24px;
  max-width: 300px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none; transition: all 0.5s ease-in-out;
}
.footer-social a:hover { background: rgba(255,255,255,0.4); transform: scale(1.05); }
.footer-col-title {
  font-size: 15px; font-weight: 700; color: #3a3226;
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links li a {
  font-size: 14px; color: #5a4f42; text-decoration: none;
  transition: all 0.5s ease-in-out; display: inline-flex; align-items: center; gap: 6px;
}
.footer-links li a:hover { color: #3a3226; transform: translateX(4px); }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #5a4f42;
}
.footer-bottom a { color: #5a4f42; text-decoration: none; transition: color 0.5s ease-in-out; }
.footer-bottom a:hover { color: #3a3226; }
.footer-bottom-links { display: flex; gap: 24px; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- 5. 气质分组色 ---------- */
.temperament-analyst  { --temperament-color: #c38d94; }
.temperament-diplomat { --temperament-color: #85cdca; }
.temperament-sentinel { --temperament-color: #7cb9a8; }
.temperament-explorer { --temperament-color: #e8a87c; }

/* ---------- 6. 头部标题 ---------- */
.header h1,
.stat-value { color: #3a3226; }
.header::before {
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.15) 0%, transparent 60%);
}

/* ---------- 7. 按钮 ---------- */
.start-btn,
.action-btn.primary,
.option-item.selected,
.start-icon,
.nav-btn.next,
.side-left .side-letter,
.q-dot.answered,
.btn-cta,
.btn-start,
.share-btn.primary,
.btn-result.primary,
.plan-card.active,
.type-btn.active {
  background: linear-gradient(135deg, #7cb9a8, #85cdca);
  border-color: transparent;
  color: #fff;
}
.start-btn:hover,
.action-btn.primary:hover,
.nav-btn.next:hover,
.btn-cta:hover, .btn-start:hover,
.share-btn.primary:hover, .btn-result.primary:hover {
  box-shadow: 0 8px 24px rgba(124, 185, 168, .35);
}
.btn-cta, .btn-start, .share-btn.primary, .btn-result.primary, .plan-card.active, .type-btn.active {
  border: none;
  box-shadow: 0 4px 16px rgba(124, 185, 168, .3);
  border-radius: 24px;
  transition: transform .5s ease-in-out, box-shadow .5s ease-in-out;
}
.btn-cta:hover, .btn-start:hover, .action-btn.primary:hover,
.share-btn.primary:hover, .btn-result.primary:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(124, 185, 168, .4);
}
.btn-nav.primary, .plan-card.active {
  background: linear-gradient(135deg, #7cb9a8, #85cdca);
  color: #fff; border: none;
}

.action-btn.secondary,
.share-btn, .btn-result.secondary {
  background: #faf5eb;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 24px;
}
.btn-nav:hover, .action-btn.secondary:hover, .share-btn:hover, .btn-result.secondary:hover {
  border-color: #7cb9a8;
  transform: scale(1.02);
}

.nav-link:hover {
  background: #7cb9a8;
  color: #fff;
  border-color: #7cb9a8;
}

/* ---------- 8. 进度条 ---------- */
.progress-fill {
  background: linear-gradient(90deg, #7cb9a8, #85cdca, #e8a87c);
}
.progress { background: rgba(244, 228, 188, .9); backdrop-filter: blur(8px); }

/* ---------- 9. 卡片 / 分区 ---------- */
.detail-section, .report-section, .growth-section, .selector-card, .test-intro,
.question-card, .quote-section, .share-section, .growth-cta, .detail-cta,
.result-hero, .detail-hero, .growth-hero {
  background: #f4e4bc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(124, 185, 168, .15);
}
.section-icon {
  background: linear-gradient(135deg, rgba(124, 185, 168, .2), rgba(133, 205, 202, .15));
  color: #7cb9a8;
}
.type-card:hover { box-shadow: 0 8px 24px rgba(124, 185, 168, .25); }

/* ---------- 10. 选项卡片 ---------- */
.option-btn {
  background: #faf5eb;
  border: 2px solid var(--border);
  border-radius: 16px;
}
.option-btn:hover { border-color: #7cb9a8; transform: scale(1.02); }
.option-btn.selected {
  border-color: #7cb9a8;
  background: linear-gradient(180deg, rgba(124,185,168,.2), rgba(133,205,202,.15));
  box-shadow: 0 0 0 2px rgba(124,185,168,.3) inset;
}
.option-letter {
  background: rgba(124,185,168,.2);
  color: #7cb9a8;
  border: 1px solid rgba(124,185,168,.3);
}
.option-btn.selected .option-letter { background: #7cb9a8; color: #fff; border-color: transparent; }

/* ---------- 11. 维度条 / 类型代码 ---------- */
.dim-bar-fill { transition: width 1s ease; }
.result-type, .detail-code, .result-code, .growth-hero h1 .gradient-text, .test-intro h1 .gradient-text {
  background: linear-gradient(135deg, #7cb9a8, #85cdca);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 12. 类型徽章 / 标签 ---------- */
.type-badge, .result-badge, .hero-badge, .badge {
  background: #faf5eb;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.detail-code, .result-code { color: #7cb9a8; -webkit-text-fill-color: initial; }

/* ---------- 13. 关系标签 ---------- */
.rel-tag.best { background: rgba(133,205,202,.2); color: #5a9e9a; }
.rel-tag.good { background: rgba(124,185,168,.2); color: #5a9e7a; }
.rel-tag.challenge { background: rgba(232,168,124,.2); color: #b8845a; }

/* ---------- 14. Toast ---------- */
.toast {
  background: #f4e4bc;
  color: var(--text-primary);
  border: 1px solid #7cb9a8;
  box-shadow: var(--shadow);
}

/* ---------- 15. 题页胶囊导航 ---------- */
nav.nav {
  background: #faf5eb;
  border-bottom: 1px solid rgba(124, 185, 168, .2);
  padding: 14px 20px;
  border-radius: 24px;
  margin-bottom: 30px;
}
.nav a {
  color: #5a4f42;
  border: 1px solid transparent;
  border-radius: 20px;
}
.nav a:hover {
  background: linear-gradient(135deg, #7cb9a8, #85cdca);
  color: #fff;
  border-color: transparent;
}
