/* ============================================================
   Personality Decoded · 人格测试站点样式
   低饱和玫瑰粉 × 鼠尾草绿 · 暖豆沙深底
   ============================================================ */

:root {
  --accent: #e3aebc;        /* 主色 低饱和玫瑰粉 */
  --accent-deep: #c9859b;   /* 深一档粉 */
  --accent-soft: #f9e8ee;   /* 浅粉 */
  --rose: #d49bad;          /* 豆沙粉（渐变/品牌/圆环） */
  --rose-deep: #b8748d;
  --rose-soft: #f7e1e9;
  --ink-rose: #9c5670;      /* 浅底可读深粉字 WCAG AA */
  --mint: #a9c9b8;          /* 辅助低饱和绿（点缀） */
  --mint-deep: #8bb09c;
  --mint-soft: #e0efe7;
  --black: #292328;         /* 暖豆沙深底 */
  --dark: #342b31;
  --dark-2: #3f353c;
  --dark-3: #4d4149;
  --gray: #9b8f96;
  --gray-2: #cec2c8;
  --line: #eee7ea;
  --paper: #fbf6f8;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 16px 40px rgba(227, 174, 188, 0.5);
  --shadow-rose: 0 16px 40px rgba(212, 155, 173, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--black); box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--accent-soft); box-shadow: 0 20px 46px rgba(227, 174, 188, .45); }
.btn-mint { background: var(--mint); color: var(--black); box-shadow: 0 16px 40px rgba(169, 201, 184, .45); }
.btn-mint:hover { background: var(--mint-soft); box-shadow: 0 20px 46px rgba(169, 201, 184, .5); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { border: 1.5px solid var(--black); color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-lg { padding: 18px 38px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(41, 35, 40, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark {
  width: 34px; height: 34px;
  background: var(--mint);
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--black);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -2px;
  transform: rotate(-6deg);
}
.logo-text { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.logo-text span { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 11px 22px; font-size: 13px; }
.menu-toggle { display: none; color: var(--white); font-size: 26px; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  top: -280px; right: -160px;
  background: radial-gradient(circle, rgba(227,174,188,.28) 0%, rgba(227,174,188,0) 68%);
  border-radius: 50%;
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  bottom: -260px; left: -160px;
  background: radial-gradient(circle, rgba(212,155,173,.18) 0%, rgba(212,155,173,0) 70%);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227,174,188,.12);
  border: 1px solid rgba(227,174,188,.35);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(227,174,188,.2); }
.hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -3px;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.85);
}
.hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-2);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 56px; }
.hero-meta .item .num { font-size: 30px; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.hero-meta .item .num i { color: var(--accent); font-style: normal; font-size: 18px; }
.hero-meta .item .label { font-size: 12px; color: var(--gray); margin-top: 4px; letter-spacing: .5px; }

/* Hero visual card stack */
.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.orbit {
  position: absolute;
  width: 440px; height: 440px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}
.orbit.two { width: 340px; height: 340px; border-color: rgba(212,155,173,.3); animation-direction: reverse; animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  animation: float 5s ease-in-out infinite;
}
.float-chip.b { animation-delay: -2.5s; }
.float-chip.c { animation-delay: -1.2s; }
.float-chip .em { color: var(--accent); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.persona-card {
  position: relative;
  width: 300px;
  background: linear-gradient(160deg, #443640 0%, #292328 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  transform: rotate(-4deg);
  animation: tilt 7s ease-in-out infinite;
}
@keyframes tilt { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-10px); } }
.persona-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.persona-card .brand { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.persona-card .type { font-size: 56px; font-weight: 900; letter-spacing: -3px; line-height: 1; margin: 18px 0 6px; }
.persona-card .type span { color: var(--accent); }
.persona-card .name { font-size: 15px; color: var(--white); font-weight: 700; }
.persona-card .desc { font-size: 12px; color: var(--gray); line-height: 1.7; margin-top: 12px; }
.bars { margin-top: 22px; display: grid; gap: 12px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--gray-2); }
.bar-row .track { flex: 1; height: 5px; background: rgba(255,255,255,.14); border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--accent); border-radius: 4px; }
.persona-card .stamp {
  position: absolute; right: 22px; bottom: 18px;
  font-size: 9px; color: rgba(255,255,255,.3); letter-spacing: 1px;
}

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); overflow: hidden; padding: 14px 0; transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 24s linear infinite; }
.marquee-track span { font-size: 15px; font-weight: 900; letter-spacing: 1px; color: var(--black); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 44px; color: rgba(0,0,0,.4); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section base ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-paper { background: var(--paper); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ink-rose);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.section-head h2 .hl { position: relative; z-index: 0; white-space: nowrap; }
.section-head h2 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(212,155,173,.55); z-index: -1;
}
.section-head p { font-size: 16px; line-height: 1.8; color: #736c72; }
.section-dark .section-head p { color: var(--gray-2); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.head-row .section-head { margin-bottom: 0; }

/* ---------- Test cards ---------- */
.tests-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.test-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.test-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: transparent; }
.test-card::before {
  content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px;
  background: var(--card-accent, rgba(227,174,188,.18)); border-radius: 50%; filter: blur(30px); opacity: 0;
  transition: opacity .35s;
}
.test-card:hover::before { opacity: 1; }
.test-card .icon {
  width: 60px; height: 60px; border-radius: 17px;
  background: var(--icon-bg, #eef6f1); color: var(--black);
  display: grid; place-items: center; font-size: 28px;
  margin-bottom: 26px; position: relative;
}
.test-card .tag {
  position: absolute; top: 30px; right: 26px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  background: var(--black); color: var(--accent);
  padding: 5px 10px; border-radius: 100px;
}
.test-card h3 { font-size: 24px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 10px; }
.test-card .sub { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 22px; flex: 1; }
.test-card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.test-card .meta { font-size: 12px; color: var(--gray); display: flex; gap: 16px; }
.test-card .meta b { color: var(--black); }
.test-card .go {
  width: 40px; height: 40px; background: var(--black); color: var(--accent);
  border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  transition: transform .3s, background .3s;
}
.test-card:hover .go { transform: rotate(-45deg) scale(1.1); background: var(--accent); color: var(--black); }
.test-card.featured { background: var(--black); border-color: var(--black); color: var(--white); }
.test-card.featured .sub, .test-card.featured .meta { color: var(--gray-2); }
.test-card.featured .meta b { color: var(--white); }
.test-card.featured .foot { border-color: rgba(255,255,255,.14); }
.test-card.featured .icon { background: var(--accent); }
.test-card.featured .tag { background: var(--accent); color: var(--black); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.step { position: relative; padding: 0 12px; }
.step .num {
  font-size: 64px; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.step h4 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 13px; line-height: 1.8; color: var(--gray-2); }
.step::after {
  content: "→"; position: absolute; right: -8px; top: 34px; color: rgba(255,255,255,.25); font-size: 22px;
}
.step:last-child::after { display: none; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 34px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 48px; font-weight: 900; letter-spacing: -2px; color: var(--black); }
.stat .num i { font-style: normal; color: var(--ink-rose); font-size: 26px; }
.stat .label { font-size: 13px; color: var(--gray); margin-top: 8px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 18px;
}
.quote .stars { color: var(--ink-rose); font-size: 16px; letter-spacing: 3px; }
.quote p { font-size: 14px; line-height: 1.85; color: #523f4b; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 900; }
.quote .who .n { font-size: 13px; font-weight: 800; }
.quote .who .t { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--accent);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border: 2px solid rgba(0,0,0,.08); border-radius: 50%;
}
.cta::before { width: 400px; height: 400px; left: -140px; top: -200px; }
.cta::after { width: 300px; height: 300px; right: -100px; bottom: -180px; }
.cta h2 { font-size: clamp(36px, 4.5vw, 60px); font-weight: 900; letter-spacing: -2px; line-height: 1.1; margin-bottom: 18px; }
.cta p { font-size: 16px; color: rgba(0,0,0,.7); margin-bottom: 32px; }
.cta .btn-dark { box-shadow: 0 16px 40px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.8; max-width: 280px; }
.footer-col h5 { font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: var(--gray); margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12px; color: #8b7f86; }
.footer-bottom .disclaimer { max-width: 620px; line-height: 1.7; }

/* ============================================================
   MBTI TEST PAGE
   ============================================================ */
.test-page { background: var(--black); color: var(--white); min-height: 100vh; }
.test-page .site-header { background: rgba(41,35,40,.92); }

.test-shell { padding: 56px 0 100px; }
.test-intro { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.test-intro .chip {
  display: inline-block; background: var(--accent); color: var(--black);
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; padding: 7px 14px; border-radius: 100px; margin-bottom: 20px;
}
.test-intro h1 { font-size: clamp(40px, 5vw, 66px); font-weight: 900; letter-spacing: -2px; line-height: 1.06; }
.test-intro h1 span { color: var(--accent); }
.test-intro p { color: var(--gray-2); font-size: 15px; line-height: 1.8; margin-top: 18px; }

.quiz-card {
  max-width: 820px; margin: 0 auto;
  background: linear-gradient(160deg, #3d313a, #292328);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 13px; color: var(--gray); }
.quiz-top .q-count b { color: var(--accent); font-size: 18px; }
.progress { height: 7px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; margin-bottom: 44px; }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--mint-deep), var(--rose)); border-radius: 6px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.question-text { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.5; margin-bottom: 34px; letter-spacing: -.5px; }
.question-hint { font-size: 12px; color: var(--gray); margin-top: -22px; margin-bottom: 28px; }
.answers { display: grid; gap: 14px; }
.answer {
  display: flex; align-items: center; gap: 18px;
  width: 100%; text-align: left;
  padding: 20px 24px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: var(--white); font-size: 15px; font-weight: 600;
  transition: all .22s ease;
}
.answer:hover { border-color: rgba(227,174,188,.6); background: rgba(227,174,188,.06); transform: translateX(5px); }
.answer.selected { border-color: var(--accent); background: rgba(227,174,188,.12); }
.answer .bullet {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center;
  font-size: 11px; color: transparent; transition: all .22s;
}
.answer.selected .bullet { background: var(--accent); border-color: var(--accent); color: var(--black); }
.answer.selected .bullet::after { content: "✓"; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.quiz-nav .btn-ghost { padding: 12px 22px; font-size: 13px; }
.quiz-nav .tip { font-size: 12px; color: var(--gray); }

/* Result */
.result-wrap { max-width: 940px; margin: 0 auto; }
.result-hero {
  background: linear-gradient(120deg, var(--accent) 0%, var(--mint) 100%); color: var(--black);
  border-radius: var(--radius-lg); padding: 50px 48px; text-align: center; position: relative; overflow: hidden;
}
.result-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 2px solid rgba(0,0,0,.1); border-radius: 50%; right: -80px; top: -120px; }
.result-hero .label { font-size: 12px; font-weight: 800; letter-spacing: 2px; opacity: .65; }
.result-hero .code { font-size: clamp(72px, 10vw, 120px); font-weight: 900; letter-spacing: -6px; line-height: 1; margin: 14px 0; }
.result-hero .code span { opacity: .35; }
.result-hero .nickname { font-size: 26px; font-weight: 900; letter-spacing: -1px; }
.result-hero .oneword { font-size: 14px; margin-top: 8px; opacity: .75; }
.result-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-top: 22px; }
.panel { background: #382e36; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 34px; }
.panel h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h3::before { content: ""; width: 4px; height: 18px; background: var(--accent); border-radius: 3px; }
.panel p { font-size: 14px; line-height: 1.95; color: var(--gray-2); }
.dim-list { display: grid; gap: 20px; }
.dim-item .dim-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--gray-2); }
.dim-item .dim-label b { color: var(--accent); }
.dim-track { height: 8px; background: rgba(255,255,255,.1); border-radius: 6px; position: relative; overflow: hidden; }
.dim-track .dim-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--mint-deep), var(--rose)); border-radius: 6px; transition: width 1s ease; }
.dim-item small { display: flex; justify-content: space-between; font-size: 10px; color: var(--gray); margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tags span { background: rgba(227,174,188,.12); border: 1px solid rgba(227,174,188,.3); color: var(--accent); padding: 7px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.result-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.match-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.match-pill { flex: 1; min-width: 120px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 14px; text-align: center; }
.match-pill .m-code { color: var(--accent); font-size: 18px; font-weight: 900; }
.match-pill .m-name { font-size: 11px; color: var(--gray); margin-top: 3px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 420px; }
  .tests-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, 1200px); }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .hero { padding: 70px 0 90px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .section { padding: 76px 0; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .tests-grid, .quotes, .stats { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-note { white-space: normal; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .quiz-card { padding: 28px 22px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-hero { padding: 36px 22px; }
  .panel { padding: 24px; }
}

/* ============================================================
   DELIVERY PAGE (小红书虚拟资料发货样式)
   ============================================================ */
.delivery-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #eff3f0 0%, #e9e9e6 100%);
  padding: 30px 16px 60px;
}
.delivery-wrap { width: min(480px, 100%); margin: 0 auto; }

.shop-head { display: flex; align-items: center; gap: 12px; padding: 6px 4px 20px; }
.shop-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
  background: var(--black); color: var(--accent);
  display: grid; place-items: center; font-weight: 900; font-size: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.shop-head-info { flex: 1; }
.shop-name { font-size: 15px; font-weight: 800; color: var(--black); }
.shop-sub { font-size: 11px; color: #8fa096; margin-top: 3px; }
.shop-badge { font-size: 11px; font-weight: 700; color: #4e8b6c; background: #dceee3; padding: 5px 10px; border-radius: 100px; }

.delivery-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 24px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.08);
}
.ship-status { font-size: 16px; font-weight: 800; margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.ship-status .tick { width: 22px; height: 22px; background: var(--accent); color: var(--black); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }

.product-switch { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.pchip {
  padding: 9px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  background: #eff3f0; color: #6f8176; border: 1px solid transparent; transition: all .2s;
}
.pchip:hover { background: #e4ebe6; }
.pchip.active { background: var(--black); color: var(--accent); }

.field { margin-bottom: 22px; }
.field-label { font-size: 12px; color: #8fa096; margin-bottom: 9px; }
.link-row { display: flex; align-items: flex-start; gap: 8px; }
.link-row a {
  flex: 1; font-size: 13px; color: #4e8b6c; word-break: break-all; line-height: 1.6;
  text-decoration: underline; text-underline-offset: 3px;
}
.copy-btn {
  flex: 0 0 32px; height: 32px; border-radius: 8px; background: #eff3f0; color: #6f8176;
  font-size: 15px; display: grid; place-items: center; transition: background .2s, color .2s;
}
.copy-btn:hover { background: var(--accent); color: var(--black); }

.code-row { display: flex; align-items: center; gap: 12px; background: #f7f5f2; border: 1px dashed #e4ddd2; border-radius: 12px; padding: 12px 14px; }
.code-label { font-size: 12px; color: #8fa096; }
.code-value { font-size: 26px; font-weight: 900; letter-spacing: 4px; color: var(--black); flex: 1; }
.instructions { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.instructions li { font-size: 13px; color: #56685d; line-height: 1.6; padding-left: 14px; position: relative; }
.instructions li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-deep); }

.product-mini { display: flex; align-items: center; gap: 12px; background: #f2f6f3; border-radius: 12px; padding: 12px; margin-bottom: 20px; }
.product-thumb { width: 52px; height: 52px; border-radius: 9px; flex: 0 0 52px; background: var(--accent); color: var(--black); display: grid; place-items: center; font-size: 24px; }
.product-mini-name { font-size: 13px; font-weight: 700; color: var(--black); }
.product-mini-sub { font-size: 11px; color: #8fa096; margin-top: 5px; }

.delivery-foot { text-align: center; margin-top: 30px; }
.foot-brand { font-size: 13px; font-weight: 900; letter-spacing: 1px; color: #7f9086; }
.foot-line { font-size: 11px; color: #9dac9f; margin-top: 6px; }

/* ============================================================
   PASSWORD GATE (测试站解锁)
   ============================================================ */
.gate-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(41,35,40,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; padding: 20px;
}
.gate-card {
  width: min(420px, 100%);
  background: linear-gradient(160deg, #3d313a, #292328);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; padding: 40px 32px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.gate-logo { width: 46px; height: 46px; margin: 0 auto 18px; background: var(--mint); color: var(--black); border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 24px; transform: rotate(-6deg); }
.gate-brand { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--accent); margin-bottom: 26px; }
.gate-card h2 { font-size: 26px; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.gate-card .gate-desc { font-size: 13px; color: var(--gray); line-height: 1.8; margin-bottom: 26px; }
.gate-input {
  width: 100%; padding: 16px 18px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.16);
  color: var(--white); font-size: 22px; font-weight: 800; letter-spacing: 8px; text-align: center;
  outline: none; transition: border-color .2s;
}
.gate-input:focus { border-color: var(--accent); }
.gate-input::placeholder { font-size: 13px; letter-spacing: 1px; color: var(--gray); font-weight: 500; }
.gate-error { min-height: 20px; font-size: 12px; color: #df8d9b; margin: 10px 0 4px; }
.gate-hint { font-size: 11px; color: var(--gray); margin-top: 18px; line-height: 1.7; }

/* ============================================================
   HISTORY PERSONA RESULT
   ============================================================ */
/* ============================================================
   HOME: CATEGORIES
   ============================================================ */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 52px; }
.category-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 24px 20px 20px; min-height: 150px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .28s ease, border-color .28s, box-shadow .28s, background .28s;
}
.category-card::before {
  content: ""; position: absolute; left: 20px; top: 0; width: 0; height: 3px;
  background: var(--black); transition: width .28s ease; border-radius: 0 0 3px 3px;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.category-card.active { border-color: var(--black); background: #fbeef3; }
.category-card.active::before { width: calc(100% - 40px); }
.cat-icon { font-size: 26px; color: var(--black); margin-bottom: 8px; }
.cat-name { font-size: 16px; font-weight: 800; color: var(--black); }
.cat-count { font-size: 11px; color: var(--gray); margin-top: auto; }
.filter-note { font-size: 13px; font-weight: 700; color: #8a7f85; white-space: nowrap; }
.test-card.coming { opacity: .72; cursor: default; }
.test-card.coming:hover { transform: none; box-shadow: none; border-color: var(--line); }
.test-card.coming .foot { justify-content: flex-start; }
.coming-tag { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #8fa096; background: #eff3f0; padding: 6px 12px; border-radius: 100px; }

.history-quiz .answer .bullet { border-color: rgba(255,255,255,.28); color: var(--gray-2); font-size: 12px; font-weight: 800; }
.history-quiz .answer.selected .bullet { background: var(--accent); border-color: var(--accent); color: var(--black); font-size: 0; }
.history-quiz .answer.selected .bullet::after { content: "✓"; font-size: 12px; }

.history-hero { text-align: center; position: relative; overflow: hidden; padding: 46px 34px; }
.history-hero .era { font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--gray); }
.history-hero .figure-name { font-size: clamp(60px, 9vw, 100px); font-weight: 900; letter-spacing: -5px; line-height: 1.1; margin: 10px 0; }
.history-hero .figure-name span { color: var(--rose); }
.history-hero .figure-title { font-size: 18px; font-weight: 800; }
.history-hero .figure-quote { font-size: 13px; color: var(--gray-2); margin-top: 16px; line-height: 1.8; font-style: italic; }
.score-ring { display: flex; align-items: center; gap: 20px; }
.ring { width: 96px; height: 96px; border-radius: 50%; flex: 0 0 96px; display: grid; place-items: center; position: relative; background: conic-gradient(var(--rose) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.ring::after { content: ""; position: absolute; inset: 8px; background: #382e36; border-radius: 50%; }
.ring b { position: relative; z-index: 1; font-size: 24px; }
.ring-info h4 { font-size: 14px; margin-bottom: 8px; }
.ring-info p { font-size: 12px; color: var(--gray); line-height: 1.7; }

@media (max-width: 760px) {
  .delivery-page { padding: 20px 12px 40px; }
  .delivery-card { padding: 22px 18px; }
  .gate-card { padding: 32px 22px; }
}
