/* 天天无忧性格测试｜官网样式
   设计令牌与小程序、UI 原型保持一致（V2 editorial premium） */

:root {
  --brand: #123E35;
  --brand-dark: #0B2D27;
  --brand-soft: #DDE8E1;
  --brand-pale: #F0F4F1;
  --coral: #CDAA72;
  --coral-soft: #F1E7D8;
  --lavender: #E8E5EE;
  --ink: #132A25;
  --text: #4B5D58;
  --muted: #84918D;
  --line: #DFE5E1;
  --paper: #F8F7F3;
  --danger: #C95D51;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 247, 243, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.brand:hover { text-decoration: none; }

.brand-symbol {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 4px 10px 10px 10px;
}

.brand-symbol::after {
  content: "";
  width: 10px;
  height: 14px;
  background: #B9DDCD;
  border-radius: 10px 10px 2px 10px;
}

.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--text); }
.site-nav a.active { color: var(--brand); font-weight: 700; }

.nav-toggle { display: none; }

/* 主视觉 */
.hero {
  position: relative;
  padding: 92px 0 78px;
  overflow: hidden;
}

.hero::before {
  content: "01";
  position: absolute;
  right: 2%;
  top: -40px;
  color: rgba(18, 62, 53, 0.05);
  font-family: Georgia, serif;
  font-size: 260px;
  line-height: 1;
  pointer-events: none;
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 26px 0 18px;
  max-width: 760px;
  font-size: 62px;
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.hero h1 em {
  font-style: normal;
  border-bottom: 4px solid var(--coral);
}

.hero p {
  max-width: 560px;
  color: #61706B;
  font-size: 18px;
}

.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--brand);
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-secondary { background: #fff; color: var(--brand); }

/* 分区 */
.section { padding: 66px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.section-head .extra { color: var(--muted); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(18, 62, 53, 0.08); }

.card-art {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px 28px 28px 28px;
  font-size: 40px;
  font-family: Georgia, "Songti SC", serif;
}

.tone-mint { background: var(--brand-soft); color: var(--brand); }
.tone-lavender { background: var(--lavender); color: #5B4F86; }
.tone-peach { background: var(--coral-soft); color: #8A6A38; }
.tone-coral { background: #EFE3CF; color: #8A6A38; }

.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 650; line-height: 1.4; }
.card p { margin: 0 0 14px; color: var(--text); font-size: 14px; line-height: 1.65; }
.card-meta { color: var(--brand); font-size: 12px; letter-spacing: 0.04em; }

/* 特色卡片（深色） */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 44px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 40px 70px rgba(11, 45, 39, 0.18);
}

.featured h2 { margin: 20px 0 14px; font-size: 40px; line-height: 1.28; font-weight: 600; }
.featured p { color: rgba(255, 255, 255, 0.66); font-size: 15px; max-width: 460px; }
.featured .meta { margin: 26px 0 30px; display: flex; gap: 26px; color: #D8C69F; font-size: 12px; letter-spacing: 0.16em; }
.featured-visual { position: relative; min-height: 260px; }

.featured-visual .portrait {
  position: absolute;
  right: 10%;
  top: 30px;
  width: 190px;
  height: 236px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px 100px 8px 100px;
  background: linear-gradient(160deg, #D4B47C, #A77C49);
  color: #E7D1AA;
  font-size: 40px;
}

.featured-visual .ring {
  position: absolute;
  right: 24%;
  top: 10px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(205, 170, 114, 0.5);
  border-radius: 50%;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pill-light { background: transparent; border: 1px solid rgba(231, 209, 170, 0.45); color: #E7D1AA; }

/* 小程序引导 */
.wx-guide {
  margin-top: 46px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.wx-guide h3 { margin: 0 0 10px; font-size: 22px; }
.wx-guide p { margin: 0; color: var(--text); font-size: 14px; }
.wx-guide .steps { margin: 14px 0 0; padding-left: 20px; color: var(--text); font-size: 14px; }
.wx-actions { display: flex; flex-direction: column; gap: 10px; }

.qrcode-slot {
  width: 148px;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9CAFAA;
  border-radius: 8px;
  background: var(--brand-pale);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* 文档页 */
.doc { padding: 64px 0 90px; max-width: 780px; }
.doc h1 { margin: 0 0 8px; font-size: 40px; letter-spacing: -0.03em; }
.doc .updated { color: var(--muted); font-size: 13px; }
.doc h2 { margin: 40px 0 12px; font-size: 20px; }
.doc p { color: var(--text); font-size: 15px; }
.doc .note { margin-top: 46px; padding: 18px 20px; border-radius: 10px; background: #EFE9DE; color: #79654D; font-size: 13px; }

/* 详情头部 */
.detail-head { padding: 58px 0 34px; }
.detail-head h1 { margin: 18px 0 14px; font-size: 46px; line-height: 1.25; letter-spacing: -0.04em; }
.detail-head p { max-width: 680px; color: #61706B; font-size: 17px; }
.facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.fact { padding: 14px 20px; border-radius: 10px; background: #ECEFEA; font-size: 14px; }
.fact b { color: var(--brand); }

.breadcrumb { padding: 20px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); }

/* 底部 */
.site-footer {
  margin-top: 60px;
  padding: 44px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; }

.disclaimer-box {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #EFE9DE;
  color: #79654D;
  font-size: 13px;
}

/* 响应式 */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-visual { display: none; }
  .hero h1 { font-size: 44px; }
  .wx-guide { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; padding: 16px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 36px; }
  .detail-head h1 { font-size: 32px; }
  .section { padding: 44px 0; }
}

@media print {
  .site-header, .site-footer, .wx-actions { display: none; }
}
