:root {
  --brand: #6c5ce7;
  --brand-2: #fd79a8;
  --grad: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 55%, #fd79a8 100%);
}

body {
  background: #f6f7fb;
  color: #2d3436;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.brand { color: var(--brand) !important; }

.hero {
  background: var(--grad);
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: .85rem;
  letter-spacing: .5px;
  margin-bottom: 22px;
}

.hero-title {
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: 1px;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: .95;
}

.hero-cta .btn {
  margin: 0 6px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 40px;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-stat span {
  font-size: .85rem;
  opacity: .92;
}

.section-title {
  font-weight: 700;
}

.test-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.test-icon {
  font-size: 2.2rem;
  color: var(--brand);
  line-height: 1;
}

.test-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* 答题页 */
.option-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .15s ease;
  background: #fff;
  /* 移动端：消除 300ms 点按延迟，保证首击即响应（微信/iOS 内置浏览器首击失效的主因） */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.option-card:hover {
  border-color: var(--brand);
  background: #f4f2ff;
}

.option-card:has(.option-radio:checked) {
  border-color: var(--brand);
  background: #ece9ff;
  box-shadow: 0 0 0 1px var(--brand);
}

.option-radio {
  margin-right: 8px;
}

.option-text {
  font-size: .95rem;
}

/* 结果页 */
.result-header {
  background: linear-gradient(135deg, #f4f2ff, #fff);
}

.result-code {
  color: var(--brand);
}

.result-desc {
  line-height: 1.9;
}

.result-desc p {
  margin-bottom: .75rem;
}

.result-desc h3,
.result-desc h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}

.result-desc ul {
  padding-left: 1.2rem;
  margin-bottom: .25rem;
}

.result-desc li {
  margin-bottom: .45rem;
}

/* 结果页付费版推荐卡 */
.upsell-card {
  background: linear-gradient(135deg, #fff8ee, #fff);
  border: 1px solid #ffe0b2 !important;
  border-radius: 16px;
}

.upsell-icon {
  font-size: 2rem;
  color: #f39c12;
  line-height: 1;
}

/* 合盘分数环 */
.score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--brand-2) 0%, var(--brand) 100%);
}

.score-num {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
}

.score-num small {
  font-size: 1rem;
  font-weight: 400;
}

/* 移动端适配 */
@media (max-width: 576px) {
  .result-code { font-size: 2rem; }
  .hero { min-height: 440px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .hero-stat strong { font-size: 1.3rem; }
}

/* ---- 首页：为什么选我们 ---- */
.feature-card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.feature-icon {
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}

/* ---- 首页：板块间距与交替背景 ---- */
.home-section {
  padding: 3rem 0;
}
.home-section--alt {
  background: #fff;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
}

/* ---- 文章卡片 / 缩略图 ---- */
.article-card {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.article-thumb {
  height: 180px;
  overflow: hidden;
  background: #ece9ff;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 空封面回退：按文章 id 取随机渐变 + 标题文字 */
.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.thumb-fallback span {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.thumb-g0 { background: linear-gradient(135deg, #6c5ce7, #fd79a8); }
.thumb-g1 { background: linear-gradient(135deg, #00b894, #55efc4); }
.thumb-g2 { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.thumb-g3 { background: linear-gradient(135deg, #e17055, #fab1a0); }
.thumb-g4 { background: linear-gradient(135deg, #e84393, #fd79a8); }

/* ---- 文章正文排版 ---- */
.article-content {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #2d3436;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}

.article-content h3 { font-size: 1.2rem; }
.article-content h4 { font-size: 1.05rem; }

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.article-content blockquote {
  margin: 1.25rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--brand);
  background: #f4f2ff;
  color: #636e72;
  border-radius: 0 8px 8px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
