:root {
  --ink: #17202b;
  --ink-soft: #3c4856;
  --muted: #6d7784;
  --paper: #f3efe8;
  --paper-2: #e8e2d6;
  --deep: #1b2836;
  --deep-2: #243447;
  --accent: #9a7844;
  --accent-deep: #74582e;
  --line: rgba(23, 32, 43, 0.12);
  --gold: rgba(154, 120, 68, 0.55);
  --shadow: 0 28px 70px rgba(23, 32, 43, 0.16);
  --radius: 22px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --header: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(168, 188, 204, 0.35), transparent 60%),
    var(--paper);
  min-height: 100vh;
}

::selection {
  background: rgba(154, 120, 68, 0.28);
  color: var(--deep);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  backdrop-filter: blur(16px);
  background: rgba(243, 239, 232, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(243, 239, 232, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(23, 32, 43, 0.04);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.brand__mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8f1df, var(--accent) 42%, var(--deep) 100%);
  box-shadow: 0 0 0 5px rgba(154, 120, 68, 0.12);
}

.site-nav {
  margin-left: auto;
  display: none;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
  text-decoration: none;
  padding: 0.2rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.site-nav a:hover {
  color: var(--deep);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.85rem 1.45rem;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--deep);
  color: #f6f1e8;
  box-shadow: 0 12px 30px rgba(27, 40, 54, 0.22);
}

.btn--primary:hover {
  background: #121c28;
  box-shadow: 0 16px 36px rgba(27, 40, 54, 0.28);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--accent-deep);
}

.btn--text {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  padding-inline: 0.2rem;
}

.btn--text:hover {
  color: var(--accent-deep);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding: 2.2rem 0 3.5rem;
  overflow: hidden;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 420px at 78% 42%, rgba(154, 120, 68, 0.16), transparent 70%),
    radial-gradient(640px 480px at 70% 30%, rgba(154, 176, 194, 0.38), transparent 68%);
  animation: mist-drift 18s ease-in-out infinite alternate;
}

.hero__grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2.4rem;
  align-items: center;
  justify-items: center;
}

.hero__copy {
  max-width: 36rem;
  text-align: center;
  animation: rise-in 0.9s ease both;
}

.hero__eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  letter-spacing: 0.28em;
  font-size: 0.75rem;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 6.6rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.02;
  color: var(--deep);
}

.hero__lead {
  margin: 1.35rem auto 0;
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.3rem;
  margin-top: 2rem;
}

.hero__stage {
  animation: rise-in 1.1s ease 0.08s both;
}

.hero__card {
  margin: 0;
  animation: card-float 9s ease-in-out infinite alternate;
}

.hero__card img {
  width: min(46vw, 200px);
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(6deg);
  transition: transform 0.6s ease;
}

.hero__card:hover img {
  transform: rotate(1deg) translateY(-6px);
}

.section {
  padding: 5.5rem 0;
}

.section--muted {
  background: rgba(255, 255, 255, 0.38);
}

.section--cta {
  padding-top: 2rem;
}

.section--tight {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.section__head {
  margin-bottom: 2.6rem;
  max-width: 34rem;
}

.section__head h2,
.prose h2,
.cta h2,
.feature h3,
.face-card h3,
.faq summary,
.modal__panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.section__head h2,
.prose h2,
.cta h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.25;
  color: var(--deep);
}

.section__head p,
.page-updated {
  margin: 0;
  color: var(--muted);
}

.prose {
  max-width: 40rem;
}

.prose p,
.feature p,
.faq p,
.face-card p {
  color: var(--ink-soft);
}

.prose p + p,
.feature p + p,
.feature ul {
  margin-top: 1.15rem;
}

.prose h3 {
  margin: 2rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--deep);
}

.stats {
  list-style: none;
  margin: 3.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.stats li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--deep);
}

.stats span {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.compare-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 680px;
}

.compare-table th,
.compare-table td {
  padding: 1.15rem 1rem 1.15rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.65;
}

.compare-table thead th {
  color: var(--deep);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.compare-table tbody th {
  color: var(--deep);
  font-weight: 600;
  width: 6.5rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.6rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature__index {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  padding-top: 0.35rem;
}

.feature__body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--deep);
}

.feature ul,
.audience-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.feature li + li,
.audience-list li + li {
  margin-top: 0.6rem;
}

.face-grid {
  display: grid;
  gap: 2.2rem;
}

.face-card img {
  width: min(100%, 200px);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(23, 32, 43, 0.14);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.face-card:hover img {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(23, 32, 43, 0.18);
}

.face-card h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.3rem;
  color: var(--deep);
}

.face-card p {
  margin: 0;
  max-width: 22rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  color: var(--deep);
  padding: 0.95rem 2rem 0.95rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.2rem;
  top: 1.35rem;
  width: 0.7rem;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 -0.32rem 0 var(--accent), 0 0.32rem 0 transparent;
  transform: rotate(0deg);
  transition: transform 0.35s ease;
}

.faq summary::before {
  content: "";
  position: absolute;
  right: 0.52rem;
  top: 1.02rem;
  width: 1px;
  height: 0.7rem;
  background: var(--accent);
  transition: opacity 0.3s ease;
}

.faq details[open] summary::before {
  opacity: 0;
}

.faq summary:hover {
  color: var(--accent-deep);
}

.faq p {
  margin: 0 0 1.1rem;
  max-width: 40rem;
}

.audience-list {
  max-width: 38rem;
  padding-left: 1.2rem;
}

.cta {
  text-align: center;
  padding: 4.2rem 1.4rem;
  border-block: 1px solid var(--line);
}

.cta p {
  margin: 0 auto 1.6rem;
  max-width: 26rem;
  color: var(--ink-soft);
}

.site-footer {
  padding: 3.2rem 0 6.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer__top {
  margin-bottom: 1.8rem;
}

.site-footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  color: var(--deep);
  letter-spacing: 0.2em;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer__legal {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.site-footer__icp {
  margin-top: 0.7rem !important;
  font-size: 0.98rem;
}

.site-footer__icp a,
.site-footer__entity a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__icp a:hover,
.site-footer__entity a:hover,
.site-footer__meta a:hover {
  color: var(--accent-deep);
}

.site-footer__meta {
  margin-top: 1.4rem !important;
  font-size: 0.8rem;
}

.site-footer__meta a {
  color: var(--muted);
  text-decoration: none;
}

.modal__wx-open {
  margin-bottom: 1rem;
}

.fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  background: var(--deep);
  color: #f6f1e8;
  box-shadow: 0 14px 36px rgba(23, 32, 43, 0.28);
  font: inherit;
  letter-spacing: 0.06em;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.fab:hover {
  transform: translateY(-3px);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 43, 0.46);
}

.modal__panel {
  position: relative;
  width: min(100%, 440px);
  margin: 0;
  padding: 1.7rem 1.4rem 1.5rem;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
  animation: sheet-up 0.32s ease;
}

.modal__close {
  position: absolute;
  right: 0.8rem;
  top: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal__panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  color: var(--deep);
}

.modal__desc,
.modal__hint,
.modal__note {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.modal__search {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.modal__name {
  flex: 1;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-align: center;
}

.modal__qr {
  text-align: center;
  margin: 0.8rem 0 1rem;
}

.modal__qr img {
  width: 180px;
  margin: 0 auto 0.5rem;
  border-radius: 12px;
}

.modal__link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.modal__note {
  margin-bottom: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

@keyframes mist-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(0, -1.5%, 0); }
}

@keyframes card-float {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .face-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .modal {
    place-items: center;
  }

  .modal__panel {
    border-radius: 18px;
    margin: 1rem;
  }
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    justify-items: stretch;
    gap: 4vw;
  }

  .hero__copy {
    text-align: left;
    justify-self: start;
  }

  .hero__lead {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__card {
    justify-self: end;
  }

  .hero__card img {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__wash,
  .hero__card,
  .hero__copy,
  .hero__stage,
  .modal__panel {
    animation: none;
  }
  .btn:hover,
  .fab:hover,
  .face-card:hover img,
  .hero__card:hover img {
    transform: none;
  }
}
