/* FourAxis 共享样式表
   设计方向：安静的编辑部风格，米白底、近黑字、单一深绿强调色。
   约束：不使用外部字体、图片或 CDN；阴影强度不超过 0 1px 2px。 */

:root {
  --bg: #faf9f6;
  --card: #fffefb;
  --ink: #141414;
  --muted: #5d5b55;
  --line: #e5e2db;
  --accent: #2f5d50;
  --accent-dark: #24483e;
  --accent-soft: #e9f0ed;
  --radius: 12px;
  --max: 720px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.45rem, 3.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 页头 ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.86rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- 通用区块 ---------- */

.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section--tight {
  padding-top: 36px;
  padding-bottom: 36px;
}

.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}

.section-head {
  margin-bottom: 28px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn:disabled {
  cursor: not-allowed;
  background: #d8d5cc;
  color: #6d6a63;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #f2efe8;
  border-color: #d6d2c8;
  color: var(--ink);
}

.btn-ghost:disabled {
  background: transparent;
  border-color: var(--line);
  color: #b0ada4;
}

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.btn-quiet:hover {
  background: transparent;
  color: var(--accent-dark);
}

/* ---------- 首页 ---------- */

.hero {
  padding-top: 60px;
  padding-bottom: 44px;
}

.hero h1 {
  max-width: 12.5em;
}

.hero .lede {
  margin-top: 18px;
  font-size: 1.1rem;
  max-width: 30em;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--line);
  vertical-align: middle;
}

.hero-meta span:first-child::before {
  display: none;
}

.steps {
  display: grid;
  gap: 26px;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.step-num {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.compare {
  display: grid;
  gap: 18px;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04);
}

.compare-card--accent {
  background: var(--accent-soft);
  border-color: #cfded8;
}

.compare-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.price-note {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.compare-card .small {
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.checklist li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.checklist--muted li::before {
  background: #b9b6ac;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin-top: 10px;
  padding-right: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- 测试页 ---------- */

.quiz {
  padding-top: 40px;
  padding-bottom: 64px;
}

.quiz-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.quiz-count {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.quiz-dim {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.progress {
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.32s ease;
}

.question-card {
  margin-top: 34px;
}

.question {
  font-size: clamp(1.3rem, 4.4vw, 1.62rem);
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 500;
  min-height: 3.6em;
}

.options {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.option:hover {
  border-color: #cfcbc1;
}

.option-dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c6c2b8;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.option[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option[aria-checked="true"] .option-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.quiz-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quiz-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* 短测试页顶部的角度说明 */
.quiz-intro {
  margin: 0 0 22px;
  font-size: 0.92rem;
  max-width: 40em;
}

/* 分析中的遮罩 */
.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(250, 249, 246, 0.97);
  text-align: center;
}

.loader[hidden] {
  display: none;
}

.loader-inner {
  padding: 24px;
}

.loader p {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.loader-bars {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.loader-bars span {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  animation: pulse 0.9s ease-in-out infinite alternate;
}

.loader-bars span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-bars span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  from {
    opacity: 0.25;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-bars span {
    animation: none;
  }
  .progress-fill {
    transition: none;
  }
}

/* ---------- 结果页 ---------- */

.result-head {
  padding: 44px 0 30px;
}

.profile-name {
  margin: 6px 0 10px;
}

.profile-tagline {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 32em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary {
  margin-top: 22px;
  font-size: 1.02rem;
  max-width: 38em;
}

.bars {
  display: grid;
  gap: 26px;
}

.dimension-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.dimension-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.dimension-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: #ece9e1;
}

.track-mid {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1px;
  height: 12px;
  background: #cdc9bf;
}

.track-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.track-fill--right {
  left: 50%;
}

.track-fill--left {
  right: 50%;
}

.dimension-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 0.75rem;
  color: #6d6a63;
  letter-spacing: 0.02em;
}

.strengths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: strength;
}

.strengths li {
  position: relative;
  padding-left: 42px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.strengths li::before {
  counter-increment: strength;
  content: "0" counter(strength);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* 锁定区 */
.locked {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 470px;
}

.locked-preview {
  padding: 30px;
  filter: blur(5px);
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}

.locked-preview h3 {
  margin-bottom: 12px;
}

.locked-preview p {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.paywall-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 254, 251, 0.55);
}

.paywall {
  width: 100%;
  max-width: 430px;
  padding: 26px;
  border: 1px solid #ddd9cf;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.05);
}

.paywall-title {
  margin: 6px 0 6px;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.paywall .checklist {
  margin: 16px 0 20px;
}

.paywall .checklist li {
  font-size: 0.86rem;
  padding-left: 18px;
  line-height: 1.45;
}

.paywall .btn {
  width: 100%;
}

.paywall-fine {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 支付成功 / 完整报告 ---------- */

.report-head {
  padding: 44px 0 26px;
}

.report-note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #294a41;
}

.report-note strong {
  font-weight: 600;
}

.report-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.report-section h2 {
  margin-bottom: 16px;
}

.section-index {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.prose p {
  margin-bottom: 14px;
  max-width: 40em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.action-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.action-num {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-top: 0.2em;
}

.action-item p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.report-foot {
  padding: 30px 0 10px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

/* ---------- 缺失参数提示 ---------- */

.empty-state {
  padding: 56px 0 72px;
  max-width: 34em;
}

.empty-state h1 {
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  margin-bottom: 14px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---------- 政策页 ---------- */

.doc-head {
  padding: 44px 0 8px;
}

.doc-meta {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.doc {
  padding-bottom: 40px;
  max-width: 40em;
}

.doc section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.doc section:first-of-type {
  margin-top: 18px;
}

.doc h2 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.doc p {
  font-size: 0.96rem;
  margin-bottom: 10px;
  color: #2c2b28;
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  font-size: 0.96rem;
}

.doc li {
  margin-bottom: 6px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.copyright {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #6d6a63;
  letter-spacing: 0.02em;
}

/* ---------- 宽屏 ---------- */

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero {
    padding-top: 78px;
    padding-bottom: 54px;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .quiz {
    padding-top: 52px;
    padding-bottom: 80px;
  }
}

/* ---------- 小屏 ---------- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 18px;
  }

  .site-header .wrap {
    min-height: 58px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero .lede {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 26px;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-quiet {
    width: auto;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .compare-card {
    padding: 22px;
  }

  .quiz {
    padding-top: 30px;
    padding-bottom: 48px;
  }

  .quiz-top {
    margin-bottom: 12px;
  }

  .question {
    margin-top: 24px;
  }

  .question-card {
    margin-top: 26px;
  }

  .option {
    padding: 13px 15px;
  }

  .quiz-actions {
    margin-top: 26px;
  }

  .quiz-actions .btn {
    flex: 1 1 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .locked {
    min-height: 0;
  }

  .locked-preview {
    max-height: 190px;
    overflow: hidden;
    padding: 22px;
  }

  .paywall-wrap {
    position: static;
    background: transparent;
    padding: 0;
    display: block;
  }

  .paywall {
    max-width: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 24px 22px 26px;
  }

  .result-head,
  .report-head {
    padding: 32px 0 20px;
  }

  .report-section {
    padding: 28px 0;
  }

  .action-item {
    padding: 16px;
    gap: 12px;
  }

  .doc-head {
    padding: 32px 0 4px;
  }

  .empty-state {
    padding: 44px 0 56px;
  }
}

@media (max-width: 380px) {
  .site-nav a:first-child {
    display: none;
  }
}
