:root {
  --paper: #F7F3EC;
  --ink: #2F3E3A;
  --leaf: #5B7A67;
  --leaf-deep: #67876F;
  --sage: #7A9B8A;
  --art: #EAF0E8;
  --white: #FFFFFF;
  --cream: #FDFBF6;
  --soft: #EDF2EC;
  --muted: #F0EEE6;
  --line: #D9D5C8;
  --border: #E2DED0;
  --progress: #EDE9DD;
  --vermilion: #C65D3B;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.04);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

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

::selection {
  background: #DCE7DD;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.siteHeader {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: Fraunces, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span {
  font-family: "Ma Shan Zheng", serif;
  font-weight: 400;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

nav a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 1;
}

.headerAction {
  flex: 0 0 auto;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 30px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.heroKicker {
  font-family: "Ma Shan Zheng", serif;
  font-size: 22px;
  color: var(--leaf);
}

.hero h1 {
  font-family: Fraunces, serif;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 600;
}

.hero h1 em {
  font-style: normal;
  color: var(--leaf);
}

.hero p.sub {
  margin: 18px 0 22px;
  font-size: 17px;
  opacity: 0.85;
  max-width: 520px;
}

.btn {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--leaf-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn.ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: var(--muted);
}

.small {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 12px;
}

.heroNotes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.heroNotes .card {
  flex: 1 1 150px;
}

.heroArt {
  background: var(--art);
  border-radius: 24px;
  padding: 28px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.heroArt .cn {
  font-family: "Ma Shan Zheng", serif;
  font-size: 56px;
  line-height: 1;
}

.heroArtTitle {
  margin-top: 10px;
  font-family: Fraunces, serif;
  font-size: 22px;
}

.heroArtCopy {
  font-size: 14px;
  opacity: 0.75;
  margin-top: 10px;
  max-width: 280px;
}

.heroArt .mount {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 110px;
  opacity: 0.18;
}

.heroArt .tag {
  position: absolute;
  left: 28px;
  bottom: 24px;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section h2 {
  font-family: Fraunces, serif;
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1.15;
}

.section p.lead {
  opacity: 0.8;
  margin-bottom: 20px;
}

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

.grid5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.card .plant {
  font-size: 28px;
}

.card h3 {
  font-family: Fraunces, serif;
  font-size: 19px;
  margin: 8px 0 4px;
  line-height: 1.25;
}

.card .cn2 {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--leaf);
}

.card p {
  font-size: 13px;
  opacity: 0.8;
}

.card button {
  margin-top: 12px;
  background: var(--muted);
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  max-width: 100%;
  transition: background-color 0.2s ease;
}

.card button:hover {
  background: var(--soft);
}

.cardTitleLink {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cardTitleLink:hover {
  color: var(--leaf);
  text-decoration-color: var(--leaf);
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}

.dot--wood { background: #4B7A6F; }
.dot--water { background: #3B627A; }
.dot--fire { background: #B83B2A; }
.dot--metal { background: #D8D3C8; }
.dot--earth { background: #A67C46; }

.quizWrap {
  display: none;
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.quizWrap.active {
  display: block;
}

.quizStep {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.quizTitle {
  margin: 10px 0;
}

.path {
  height: 6px;
  background: var(--progress);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 20px;
}

.path div {
  height: 100%;
  background: var(--sage);
  width: 0%;
  transition: width 0.4s ease;
}

.opt {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 10px 0;
  cursor: pointer;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.opt:hover,
.opt.sel {
  border-color: var(--sage);
  background: var(--soft);
}

.quizControls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.resultWrap {
  display: none;
}

.resultWrap.active {
  display: block;
}

.poster {
  background: var(--cream);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.poster .bigCn {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 84px;
  line-height: 1;
}

.resultKicker {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.resultName {
  font-family: Fraunces, serif;
  font-size: 34px;
  margin: 8px 0;
  line-height: 1.15;
}

.resultTag {
  color: var(--leaf);
  font-weight: 600;
}

.resultDesc {
  margin: 12px 0;
}

.resultFacts {
  line-height: 1.8;
}

.elementBalance {
  margin-top: 16px;
}

.elementBalanceLabel {
  font-size: 13px;
}

.resultElems {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.resultElem {
  min-width: 43px;
  text-align: center;
}

.resultElemName,
.resultElemValue {
  font-size: 11px;
}

.resultElemText {
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.8;
}

.posterRight {
  text-align: center;
}

.resultPinyin {
  font-weight: 600;
}

.resultNameMean {
  font-size: 14px;
  opacity: 0.8;
}

.traitBox {
  margin-top: 16px;
  background: var(--white);
  padding: 14px;
  border-radius: 14px;
  text-align: left;
}

.traitBox p {
  font-size: 14px;
  margin-top: 4px;
}

.downloadBtn {
  margin-top: 16px;
  width: 100%;
}

.resultCard {
  margin-top: 16px;
}

.resultCardCopy {
  font-size: 14px;
  opacity: 0.85;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 10px 0;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 155, 138, 0.14);
}

.unlockActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.unlockActions .btn {
  flex: 1 1 180px;
}

.formMessage {
  min-height: 21px;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.85;
}

.extraNames {
  margin-top: 14px;
}

.extraNameItem {
  background: var(--white);
  padding: 12px;
  border-radius: 12px;
  margin-top: 8px;
}

.extraNameItem p {
  font-size: 13px;
}

.pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.payCard {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.payCard.pop {
  border: 2px solid var(--sage);
}

.badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--vermilion);
  color: var(--white);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.payPrice {
  font-size: 28px;
  font-family: Fraunces, serif;
  margin-top: 4px;
}

.payCopy {
  font-size: 14px;
}

.payButton {
  margin-top: 12px;
  width: 100%;
}

.shopText {
  font-size: 14px;
}

.shopDisclosure {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 8px;
}

.siteFooter {
  max-width: 1120px;
  margin: 30px auto;
  padding: 20px;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.7;
}

.footerIndex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 12px;
}

.footerIndex span {
  font-weight: 600;
}

.footerIndex a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footerIndex a:hover {
  color: var(--leaf);
  text-decoration-color: var(--leaf);
}

.footerFine {
  margin-top: 10px;
}

.noscript {
  max-width: 1120px;
  margin: 0 auto 30px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 14px;
}

/* ---------- Static archetype and element pages ---------- */

.breadcrumbs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 8px;
  font-size: 12px;
  opacity: 0.7;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detailHero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 36px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: center;
}

.detailKicker {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detailTitle {
  font-family: Fraunces, serif;
  font-size: 48px;
  line-height: 1.08;
  margin-top: 10px;
}

.detailTitle span {
  display: inline-block;
  font-family: "Noto Serif SC", serif;
  font-size: 0.7em;
  font-weight: 500;
  color: var(--leaf);
  vertical-align: middle;
}

.detailLead {
  font-size: 16px;
  opacity: 0.85;
  margin-top: 16px;
  max-width: 620px;
}

.detailActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detailArt {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--art);
  padding: 28px;
}

.detailArt__plant {
  font-size: 54px;
  line-height: 1;
}

.detailArt__cn {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 76px;
  line-height: 1;
  color: var(--ink);
  margin-top: 26px;
}

.detailArt__label {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.detailBody {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.articleCard {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.articleCard h2 {
  font-family: Fraunces, serif;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.articleCard h3 {
  font-family: Fraunces, serif;
  font-size: 21px;
  margin: 24px 0 8px;
}

.articleCard p {
  font-size: 15px;
  opacity: 0.85;
  margin-top: 10px;
}

.articleCard blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--sage);
  background: var(--art);
  border-radius: 0 14px 14px 0;
  font-family: Fraunces, serif;
  font-size: 20px;
  line-height: 1.45;
}

.snapshotCard {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.snapshotCard h2 {
  font-family: Fraunces, serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.snapshotList {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.snapshotList div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--muted);
}

.snapshotList dt {
  opacity: 0.65;
}

.snapshotList dd {
  text-align: right;
  font-weight: 600;
}

.snapshotCard .btn {
  width: 100%;
  margin-top: 18px;
}

.relatedSection {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 36px;
}

.relatedSection h2 {
  font-family: Fraunces, serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.relatedLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relatedLinks a {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.relatedLinks a:hover {
  border-color: var(--sage);
  background: var(--soft);
}

.elementBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  margin-top: 18px;
}

.elementBadge .dot {
  width: 12px;
  height: 12px;
}

.errorPage {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 20px 60px;
}

.errorPage .card {
  padding: 32px;
}

@media (max-width: 980px) {
  .detailHero {
    grid-template-columns: 1fr;
  }

  .detailBody {
    grid-template-columns: 1fr;
  }

  .snapshotCard {
    order: 2;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

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

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

  .poster,
  .pay {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .detailTitle {
    font-size: 40px;
  }

  .detailArt {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .siteHeader {
    padding: 16px;
    gap: 12px;
  }

  .logo {
    font-size: 20px;
  }

  .headerAction .btn {
    padding: 11px 17px;
    font-size: 13px;
  }

  .hero {
    padding: 28px 16px 24px;
    gap: 22px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .heroKicker {
    font-size: 19px;
  }

  .hero p.sub {
    font-size: 15px;
  }

  .heroNotes {
    gap: 10px;
  }

  .heroNotes .card {
    flex: 1 1 140px;
    padding: 15px;
  }

  .heroArt {
    min-height: 300px;
    padding: 24px;
  }

  .heroArt .tag {
    left: 24px;
    bottom: 20px;
    max-width: calc(100% - 48px);
  }

  .section {
    padding: 30px 16px;
  }

  .section h2 {
    font-size: 27px;
  }

  .grid {
    gap: 10px;
  }

  .card {
    padding: 15px;
  }

  .card button {
    width: 100%;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
  }

  .grid5 {
    gap: 10px;
  }

  .quizWrap,
  .poster {
    padding: 20px;
    border-radius: 20px;
  }

  .quizControls {
    gap: 8px;
  }

  .quizControls .btn {
    flex: 1 1 0;
    padding: 12px 14px;
  }

  .poster .bigCn {
    font-size: 70px;
  }

  .resultName {
    font-size: 29px;
  }

  .unlockActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .unlockActions .btn {
    width: 100%;
  }

  .payCard {
    padding: 20px;
  }

  .siteFooter {
    padding: 16px;
    margin-top: 20px;
  }

  .footerIndex {
    gap: 5px 10px;
  }

  .detailHero {
    padding: 24px 16px 30px;
    gap: 22px;
  }

  .detailTitle {
    font-size: 36px;
  }

  .detailLead {
    font-size: 15px;
  }

  .detailArt {
    min-height: 240px;
    padding: 24px;
  }

  .detailArt__cn {
    font-size: 64px;
    margin-top: 20px;
  }

  .detailArt__label {
    left: 24px;
    right: 24px;
    bottom: 20px;
  }

  .detailBody,
  .relatedSection {
    padding-left: 16px;
    padding-right: 16px;
  }

  .articleCard {
    padding: 22px 18px;
  }

  .articleCard h2 {
    font-size: 25px;
  }

  .snapshotCard {
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .headerAction .btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .logo {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .heroNotes .card {
    flex-basis: 100%;
  }

  .grid,
  .grid5 {
    grid-template-columns: 1fr;
  }

  .opt {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Result personalization, funnel, resonance */
.poster {
  position: relative;
  overflow: hidden;
}

.poster.is-watermarked::after {
  content: "WATERMARK";
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-28deg);
  color: rgba(47, 62, 58, 0.14);
  font-family: Inter, sans-serif;
  font-size: clamp(44px, 8.6vw, 96px);
  font-weight: 600;
  letter-spacing: 0.18em;
  white-space: nowrap;
  pointer-events: none;
}

.modeSwitch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 999px;
  background: var(--muted);
}

.modeBtn {
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modeBtn:hover {
  background: var(--soft);
}

.modeBtn.is-active {
  background: var(--sage);
  color: var(--white);
}

.resultTitleCn {
  font-family: "Noto Serif SC", serif;
  color: var(--leaf);
  font-size: 16px;
  line-height: 1.7;
  margin: 2px 0 8px;
}

.resultNameLabel {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.audioBtn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.resultActions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.resultActions .btn {
  flex: 1 1 210px;
}

.sharedNote {
  margin-top: 12px;
  color: var(--leaf);
  font-size: 13px;
}

.altName {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.altName p {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.82;
}

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

.paidNameCard {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
}

.paidNameCard strong {
  display: block;
  margin-top: 5px;
  font-family: Fraunces, serif;
  font-size: 18px;
}

.paidNameCard p {
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.82;
}

.paidNameMode {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
}

.assetGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.assetButton {
  width: 100%;
  padding: 11px 12px;
  font-size: 13px;
}

.deepReadingCard h4 {
  margin: 18px 0 6px;
  font-family: Fraunces, serif;
  font-size: 20px;
  font-weight: 600;
}

.deepReadingCard p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.85;
}

.resonanceOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(47, 62, 58, 0.48);
}

.resonancePanel {
  position: relative;
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.resonancePanel h2 {
  margin: 2px 0 8px;
  font-family: Fraunces, serif;
  font-size: 30px;
  line-height: 1.15;
}

.resonanceIntro {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.82;
}

.resonanceClose {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fieldLabel {
  display: block;
  margin-top: 12px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.resonancePanel select {
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.resonanceGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.resonanceResult {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.resonanceScore {
  font-family: Fraunces, serif;
  font-size: 58px;
  line-height: 1;
  color: var(--leaf);
}

.resonanceSentence {
  margin: 10px auto 16px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.75;
}

.cardButton {
  display: inline-block;
  max-width: 100%;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.cardButton:hover {
  background: var(--soft);
}

@media (max-width: 820px) {
  .paidNames {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .modeSwitch {
    display: flex;
    width: 100%;
  }

  .modeBtn {
    flex: 1 1 0;
    padding: 8px 9px;
  }

  .resultTitleCn {
    font-size: 14px;
  }

  .resultName {
    font-size: 29px;
  }

  .resultActions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resultActions .btn {
    width: 100%;
  }

  .assetGrid {
    grid-template-columns: 1fr;
  }

  .resonancePanel {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .resonancePanel h2 {
    font-size: 26px;
  }

  .resonanceGrid {
    grid-template-columns: 1fr;
  }

  .resonanceScore {
    font-size: 48px;
  }
}


.inkVisual {
  margin-bottom: 14px;
  padding: 7px;
  border-radius: 16px;
  background: var(--art);
  overflow: hidden;
}

.inkVisual svg {
  display: block;
  width: 100%;
  height: auto;
}


.poster.is-watermarked::before {
  content: "ChineseSoulQuiz.com";
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 9;
  color: rgba(47, 62, 58, 0.55);
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.giftBanner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--art);
  color: var(--leaf);
  font-size: 14px;
  text-align: center;
}

.deliveryBox,
.giftMaker {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.deliveryBox h4,
.giftMaker h4 {
  margin-bottom: 6px;
  font-family: Fraunces, serif;
  font-size: 20px;
  font-weight: 600;
}

.giftLinkRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.giftLinkRow input {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 600px) {
  .giftLinkRow {
    grid-template-columns: 1fr;
  }

  .giftBanner {
    padding: 9px 16px;
    font-size: 13px;
  }
}


/* Archetype cards: keep the CTA on the bottom edge of every equal-height card. */
#archGrid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#archGrid .card p {
  flex: 1 1 auto;
}

#archGrid .card .cardButton {
  margin-top: auto;
  align-self: flex-start;
}


#archGrid .card .plant {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}


.cardPlant {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
}

.cardPlant__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.cardPlant__icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.cardPlant__name {
  color: var(--leaf);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 430px) {
  #archGrid .card h3 {
    font-size: 17.5px;
    letter-spacing: -0.01em;
  }
}


.detailArt__ink {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.detailArt__ink svg {
  display: block;
  width: 100%;
  height: 100%;
}

.detailArt__cn {
  position: relative;
  z-index: 2;
}

.detailArt__label {
  z-index: 2;
}


.nameH1Meaning {
  display: block;
  margin-top: 10px;
  color: var(--leaf);
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .nameH1Meaning {
    margin-top: 8px;
    font-size: 16px;
  }
}


.librarySection {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 30px;
}

.librarySection h2 {
  font-family: Fraunces, serif;
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.libraryIntro {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.8;
}

.libraryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.libraryGroup {
  min-width: 0;
}

.libraryGroup h3 {
  font-family: Fraunces, serif;
  font-size: 19px;
  margin: 0 0 4px;
}

.libraryGroup p {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 10px;
}

.libraryLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  line-height: 1.7;
}

.libraryLinks a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.libraryCta {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--art);
  text-align: center;
}

.libraryCta p {
  margin: 0 auto;
}

.libraryCta .btn {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .libraryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .librarySection {
    padding: 8px 16px 24px;
  }

  .librarySection h2 {
    font-size: 25px;
  }

  .libraryGrid {
    grid-template-columns: 1fr;
  }

  .libraryCta {
    padding: 22px 18px;
  }
}


.soulShare {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 0 8px;
}

.soulShare input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.resonancePanel.resonanceReport {
  width: min(980px, 100%);
}

.resonancePair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 18px 0 14px;
}

.resonancePerson {
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.resonanceLetter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 600;
}

.resonancePerson h3 {
  margin: 8px 0 2px;
  font-family: Fraunces, serif;
  font-size: 22px;
  line-height: 1.2;
}

.resonanceName {
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
}

.resonanceElement {
  margin-top: 6px;
  color: var(--leaf);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resonanceSeal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--vermilion);
  color: var(--white);
  text-align: center;
  box-shadow: 0 12px 30px rgba(198, 93, 59, 0.24);
}

.resonanceRelation {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resonanceSeal strong {
  margin: 8px 0 4px;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.05;
}

.resonanceSeal small {
  font-size: 11px;
  line-height: 1.35;
}

.resonancePoetic {
  margin: 12px 0 4px;
  text-align: center;
  font-family: Fraunces, serif;
  font-size: 23px;
  line-height: 1.3;
}

.resonanceSentence {
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
}

.resonanceScript {
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--sage);
  border-radius: 0 14px 14px 0;
  background: var(--art);
  font-family: Fraunces, serif;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.resonanceActions {
  margin: 8px 0 18px;
  text-align: center;
}

.resonanceCommerce {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.resonanceCommerce h3 {
  margin-bottom: 6px;
  font-family: Fraunces, serif;
  font-size: 24px;
}

.resonanceCommerce p {
  font-size: 14px;
}

.resonanceCommerce .assetGrid {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .resonancePair {
    grid-template-columns: 1fr;
  }

  .resonanceSeal {
    min-height: 150px;
  }

  .soulShare {
    flex-direction: column;
    align-items: stretch;
  }
}


#archGrid .cardArt {
  width: 100%;
  aspect-ratio: 9 / 16;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: #F7F3EC;
}

#archGrid .cardArt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F7F3EC;
}

.detailArt--image {
  min-height: 0;
  padding: 0;
  background: #F7F3EC;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
}

.detailArt--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F7F3EC;
}


.personHeader {
  border-bottom: 1px solid var(--border);
}

.personHero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 62px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.personText {
  min-width: 0;
}

.personTag {
  color: var(--leaf);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.personCn {
  margin: 12px 0 6px;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.08;
}

.personPinyin {
  color: rgba(47, 62, 58, 0.58);
  font-size: 20px;
  letter-spacing: 0.03em;
}

.personPoem {
  margin: 22px 0 16px;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.65;
}

.personLead {
  max-width: 520px;
  color: rgba(47, 62, 58, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.personInfo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 22px;
}

.personInfoCard {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
}

.personInfoCard span {
  display: block;
  color: var(--leaf);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.personInfoCard strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.personCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--vermilion);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.personCta:hover {
  background: #AD4A2F;
  transform: translateY(-1px);
}

.personVisual {
  min-width: 0;
}

.personImage {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #F7F3EC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.personImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F7F3EC;
}

.personCaption {
  margin-top: 9px;
  color: rgba(47, 62, 58, 0.55);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.personSection {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px 32px;
}

.personSection h2 {
  margin-bottom: 12px;
  font-family: Fraunces, serif;
  font-size: 30px;
  line-height: 1.2;
}

.personMeaning p {
  margin-bottom: 16px;
  color: rgba(47, 62, 58, 0.84);
  font-size: 16px;
  line-height: 1.8;
}

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

.personBullets li {
  position: relative;
  padding-left: 22px;
  color: rgba(47, 62, 58, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

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

.personRelatedGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.personRelatedCard {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.personRelatedCard img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 14px;
  background: #F7F3EC;
}

.personRelatedCard h3 {
  margin: 8px 0 2px;
  font-family: Fraunces, serif;
  font-size: 18px;
  line-height: 1.25;
}

.personRelatedCard p {
  margin: 0;
  color: var(--leaf);
  font-size: 13px;
  line-height: 1.45;
}

.personRelatedPinyin {
  opacity: 0.7;
}

.personBottomCta {
  max-width: 960px;
  margin: 18px auto 48px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  text-align: center;
}

.personBottomCta h2 {
  margin-bottom: 8px;
  font-family: Fraunces, serif;
  font-size: 30px;
}

.personBottomCta p {
  max-width: 560px;
  margin: 0 auto 18px;
  color: rgba(47, 62, 58, 0.8);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .personHero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 36px;
  }

  .personVisual {
    grid-row: 1;
  }

  .personText {
    grid-row: 2;
  }

  .personCn {
    font-size: 40px;
  }

  .personPoem {
    font-size: 22px;
  }

  .personInfo {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .personRelatedGrid {
    grid-template-columns: 1fr;
  }

  .personSection {
    padding: 14px 16px 26px;
  }

  .personSection h2 {
    font-size: 26px;
  }

  .personBottomCta {
    margin: 12px 16px 36px;
    padding: 24px 18px;
  }
}


.heroArt--image {
  min-height: 520px;
}

.heroArtBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F7F3EC;
  opacity: 0.72;
  z-index: 0;
}

.heroArt--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 243, 236, 0.58), rgba(247, 243, 236, 0.82));
  z-index: 1;
  pointer-events: none;
}

.heroArtContent {
  position: relative;
  z-index: 2;
}

.heroArt--image .tag {
  z-index: 2;
}

@media (max-width: 600px) {
  .heroArt--image {
    min-height: 470px;
  }
}
