[data-page="home"] {
  background:
    linear-gradient(180deg, #fbfcfe 0%, #f7f8fb 42%, #f7f8fb 100%);
}

[data-page="home"] .site-main {
  gap: 40px;
}

.home-hero,
.home-final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.home-hero-copy {
  display: grid;
  gap: 18px;
}

.home-hero-title {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.home-hero-intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.home-hero-actions,
.page-actions,
.home-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.home-hero-visual {
  min-height: 420px;
}

.hero-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  min-height: 420px;
  border-radius: 22px;
  padding: 24px;
  background:
    linear-gradient(145deg, #10233d, #173b71 58%, #1a63c7);
  color: #fff;
}

.hero-featured-copy {
  display: grid;
  gap: 12px;
}

.hero-featured-code {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-featured-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.hero-featured-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.hero-featured-image {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.12);
}

.hero-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-section {
  display: grid;
  gap: 20px;
  padding: 8px 0;
}

.home-benefit-grid,
.home-step-grid,
.personality-cloud {
  display: grid;
  gap: 16px;
}

.home-benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card,
.step-card,
.type-chip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.benefit-card,
.step-card {
  padding: 18px;
}

.benefit-card strong,
.step-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.benefit-card p,
.step-card p,
.type-chip-card p,
.spotlight-copy p,
.home-final-copy p {
  margin: 0;
  color: var(--muted);
}

.home-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-copy-section {
  max-width: 860px;
}

.seo-copy-section p {
  margin: 0;
  color: var(--muted);
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.comparison-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--surface);
}

.comparison-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.comparison-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.step-no {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-weight: 800;
}

.personality-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.personality-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--surface-soft);
}

.spotlight-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.home-faq-list {
  display: grid;
  gap: 10px;
}

.home-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.home-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 800;
}

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

.home-faq-item p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0 18px 16px;
  color: var(--muted);
}

.spotlight-copy h3,
.home-final-copy h2 {
  margin: 0 0 10px;
  line-height: 1.12;
}

.spotlight-copy h3 {
  font-size: 28px;
}

.spotlight-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.spotlight-labels span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.spotlight-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.spotlight-image {
  overflow: hidden;
  min-height: 190px;
  border-radius: 14px;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personality-cloud {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.type-chip-card {
  position: relative;
  padding: 18px;
}

.type-chip-code {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.type-chip-no {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--surface-strong);
  font-size: 24px;
  font-weight: 900;
}

.type-chip-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.type-chip-vibe {
  display: inline-block;
  margin-bottom: 10px;
  color: #8a95a3;
  font-size: 12px;
  font-weight: 700;
}

.home-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 32px;
  background: #10233d;
  color: #fff;
}

.home-final-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.home-final-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.home-final-cta .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.faq-list,
.type-list {
  display: grid;
  gap: 12px;
}

.type-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.types-hero,
.types-library-section,
.types-featured {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.types-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  padding: 32px;
}

.types-hero-stats {
  display: grid;
  gap: 12px;
}

.types-hero-stats article,
.result-stats-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface-soft);
}

.types-hero-stats span,
.result-stats-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.types-hero-stats strong,
.result-stats-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.types-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.type-feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.type-feature-image {
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

.type-feature-image img,
.type-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.type-feature-copy {
  padding: 18px;
}

.type-feature-copy h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.type-feature-copy p {
  margin: 0;
  color: var(--muted);
}

.types-library-section {
  display: grid;
  gap: 22px;
  padding: 32px;
}

.type-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.type-library-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.type-card-image {
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
}

.type-card-body {
  position: relative;
  padding: 18px;
}

.type-card-no {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--surface-strong);
  font-size: 24px;
  font-weight: 900;
}

.type-card-code,
.result-kicker,
.result-badge,
.test-progress-meta,
.question-index,
.question-dim {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.type-card h3,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.type-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.type-card-intro {
  margin-bottom: 8px !important;
  color: var(--text) !important;
}

.test-stage,
.result-stage {
  padding: 24px;
}

.test-stage,
.legal-hero,
.legal-card,
.legal-actions {
  box-shadow: var(--shadow-sm);
}

.result-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.test-stage-top,
.question-meta-row,
.test-actions-row,
.test-actions-right,
.result-hero-card,
.dimension-item-top {
  display: flex;
  gap: 12px;
}

.test-stage-top,
.test-actions-row,
.result-hero-card,
.dimension-item-top {
  justify-content: space-between;
}

.test-stage-top,
.test-actions-row {
  align-items: center;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  margin: 20px 0 22px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--surface);
}

.question-title {
  margin: 14px 0 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.45;
}

.question-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.option-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  background: var(--surface);
}

.option-item.is-selected {
  border-color: rgba(23, 92, 211, 0.45);
  background: var(--accent-soft);
}

.option-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.test-actions-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.result-layout {
  display: grid;
  gap: 20px;
}

.result-hero-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--surface-soft);
}

.result-poster {
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.result-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.result-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.result-copy-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--surface);
}

.result-narrative {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.result-narrative h2,
.result-section-head h2 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.15;
}

.result-description {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.result-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.result-section-head > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.dimension-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dimension-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface);
}

.dimension-item-top {
  flex-wrap: wrap;
  align-items: center;
}

.dimension-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.result-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.empty-result {
  padding: 20px;
}

.error-note {
  margin-top: 12px;
  border: 1px solid rgba(196, 59, 59, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(196, 59, 59, 0.08);
  color: #9d2f2f;
}

.result-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
}

.faq-page-list,
.legal-stack {
  display: grid;
  gap: 14px;
}

.faq-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 16px;
  font-weight: 700;
}

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

.faq-question {
  font-size: 17px;
}

.faq-toggle {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: transparent;
  font-size: 13px;
}

.faq-accordion[open] .faq-toggle::before {
  content: "收起";
}

.faq-accordion:not([open]) .faq-toggle::before {
  content: "展开";
}

.faq-toggle::before {
  color: var(--accent-strong);
}

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

.faq-answer p {
  margin: 14px 0 0;
  color: var(--muted);
}

.legal-card h2,
.legal-actions h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.legal-card p,
.legal-actions p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .home-hero,
  .personality-showcase,
  .home-final-cta,
  .types-hero,
  .result-hero-card,
  .result-narrative {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 24px;
  }

  .home-hero-visual {
    min-height: auto;
  }

  .types-hero {
    align-items: start;
  }

  .types-featured,
  .dimension-list {
    grid-template-columns: 1fr 1fr;
  }

  .result-poster {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  [data-page="home"] .site-main {
    gap: 24px;
  }

  .home-hero,
  .home-final-cta {
    padding: 20px;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .home-hero-intro {
    font-size: 16px;
  }

  .hero-featured-card,
  .home-benefit-grid,
  .home-step-grid,
  .comparison-grid,
  .personality-spotlight,
  .personality-cloud,
  .type-library-grid,
  .types-featured,
  .types-hero-stats,
  .result-stats-grid,
  .dimension-list {
    grid-template-columns: 1fr;
  }

  .types-hero,
  .types-library-section,
  .result-stage {
    padding: 20px;
  }

  .hero-featured-card {
    min-height: auto;
  }

  .hero-featured-image {
    max-width: 220px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .test-stage-top,
  .test-actions-row,
  .result-actions-row,
  .dimension-item-top {
    flex-direction: column;
    align-items: stretch;
  }

  .result-section-head {
    flex-direction: column;
    gap: 10px;
  }

  .result-poster {
    min-height: 260px;
  }

  .test-actions-right {
    flex-direction: column;
    width: 100%;
  }

  .test-actions-right .button-link,
  .test-actions-right button,
  .test-actions-row > button,
  .result-actions-row > button {
    width: 100%;
  }
}
