/* Shared landing page styles for both language versions. */
:root {
  --bg: #f7faf7;
  --bg-muted: #eff5f0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: #f6faf6;
  --text: #162118;
  --muted: #5b6b5f;
  --line: #d9e4db;
  --line-strong: #cbd7ce;
  --brand: #58735f;
  --brand-deep: #27432f;
  --brand-soft: #e5efe7;
  --shadow-sm: 0 10px 28px rgba(31, 49, 36, 0.05);
  --shadow-md: 0 16px 40px rgba(31, 49, 36, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(234, 244, 236, 0.9), rgba(247, 250, 247, 0) 34%),
    radial-gradient(circle at bottom right, rgba(228, 238, 230, 0.74), rgba(247, 250, 247, 0) 28%),
    var(--bg);
  line-height: 1.68;
}

body[data-menu-open="true"] {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, backdrop-filter 0.18s ease;
  border-bottom: 1px solid transparent;
}

body[data-header-scrolled="true"] .site-header,
body[data-menu-open="true"] .site-header {
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 247, 0.8);
  border-bottom-color: rgba(217, 228, 219, 0.92);
  box-shadow: 0 10px 24px rgba(31, 49, 36, 0.04);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #6e8d74, #294832);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 26px rgba(41, 72, 50, 0.14);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-deep);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.menu-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle-line::before,
.menu-toggle-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}

.menu-toggle-line::before {
  top: -6px;
}

.menu-toggle-line::after {
  top: 6px;
}

body[data-menu-open="true"] .menu-toggle-line {
  opacity: 0;
}

body[data-menu-open="true"] .menu-toggle-line::before {
  top: 0;
  transform: rotate(45deg);
  opacity: 1;
}

body[data-menu-open="true"] .menu-toggle-line::after {
  top: 0;
  transform: rotate(-45deg);
  opacity: 1;
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--brand-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Desktop: nav centered in the bar (not hugging the logo) */
@media (min-width: 961px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
  }

  .brand {
    grid-column: 1;
    justify-self: start;
  }

  .header-panel {
    display: contents;
  }

  .nav {
    grid-column: 2;
    justify-self: center;
    gap: clamp(20px, 2.6vw, 36px);
  }

  .header-actions {
    grid-column: 3;
    justify-self: end;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.lang-switch a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
}

.lang-switch .is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.button:hover,
.button:focus-visible,
summary.button:hover,
summary.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 14px 30px rgba(39, 67, 47, 0.16);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  color: var(--brand-deep);
}

.button-ghost {
  color: var(--brand-deep);
  background: transparent;
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.hero {
  padding: 30px 0 12px;
}

.hero-shell {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.hero-main,
.surface-card,
.feature-card,
.compare-card,
.result-card,
.type-card,
.audience-card,
.faq-shell,
.cta-band,
.footer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-main {
  padding: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(circle at top right, rgba(224, 236, 226, 0.92), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 249, 0.98));
}

.hero h1 {
  margin: 18px 0 0;
  max-width: min(22ch, 100%);
  font-size: clamp(2.55rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.lead {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.03rem;
}

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

.trust-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.trust-list li,
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Hero main: full-width copy + symmetric trust row */
.hero-main h1 {
  max-width: 100%;
}

/* Chinese hero title: larger, centered (may wrap on narrow screens) */
html[lang="zh-CN"] .hero .hero-main h1 {
  max-width: 100%;
  width: 100%;
  font-size: clamp(1.35rem, 3.5vw + 0.55rem, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}

.hero-main .lead {
  max-width: 100%;
}

.hero-main .hero-meta {
  margin: 20px 0 0;
  max-width: 100%;
  width: 100%;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.hero-main .button-row,
.hero-main .hero-actions {
  width: 100%;
  justify-content: center;
}

.hero-main .trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: 0;
}

.hero-main .trust-list li {
  flex: 0 0 auto;
  justify-content: center;
}

.section {
  padding: 40px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(240, 245, 241, 0.72), rgba(247, 250, 247, 0));
}

.section-border {
  border-top: 1px solid rgba(217, 228, 219, 0.72);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

/* Homepage: section title above body copy, centered */
main .section-head {
  text-align: center;
  justify-items: center;
}

main .section-head h2 {
  text-wrap: balance;
}

main .section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

main .section .prose {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.01rem;
}

.surface-card {
  padding: 20px;
}

.surface-card summary {
  list-style: none;
  cursor: pointer;
}

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

.surface-card h3,
.feature-card h3,
.compare-card h3,
.result-card h3,
.type-card h3,
.audience-card h3,
.footer-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

main .feature-card h3,
main .compare-card h3,
main .result-card h3,
main .type-card h3,
main .audience-card h3,
main .cta-inline-copy h3 {
  text-align: center;
}

.surface-card p,
.feature-card p,
.compare-card p,
.result-card p,
.type-card p,
.audience-card p,
.footer-card p {
  margin: 0;
  color: var(--muted);
}

.prose {
  display: grid;
  gap: 16px;
}

.prose p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid,
.result-grid,
.type-grid,
.audience-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.result-card,
.type-card,
.audience-card {
  padding: 22px;
}

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

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

.compare-card {
  padding: 24px;
}

.compare-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

main .compare-card,
main .type-card {
  text-align: center;
}

.compare-quote {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(246, 250, 246, 0.96), rgba(255, 255, 255, 0.96));
  color: var(--brand-deep);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.result-grid,
.type-grid,
.audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-card code {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.cta-inline {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(229, 239, 231, 0.95), rgba(255, 255, 255, 0) 34%),
    rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.cta-inline .button-row {
  justify-content: center;
}

.cta-inline-copy h3,
.cta-band h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.cta-inline-copy p {
  margin: 8px 0 0;
  color: var(--muted);
}

.chip-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-shell {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(228, 238, 230, 0.92), rgba(255, 255, 255, 0) 30%),
    rgba(255, 255, 255, 0.92);
}

.faq-shell .section-head {
  margin-bottom: 0;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-weight: 800;
}

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

.faq-item summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(31, 49, 36, 0.05);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--brand-soft);
}

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

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

.cta-band {
  padding: clamp(28px, 4vw, 42px);
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(226, 238, 228, 0.95), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 246, 0.96));
}

.cta-band p {
  margin: 10px auto 0;
  max-width: 62ch;
  color: var(--muted);
}

.cta-band .button-row {
  justify-content: center;
}

.footer {
  padding: 18px 0 44px;
}

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

.footer-card {
  padding: 24px;
}

.footer-card h3 {
  font-size: 1.02rem;
  text-align: center;
}

.footer-card p {
  text-align: center;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-link {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

@media (max-width: 1120px) {
  .compare-grid,
  .feature-grid,
  .result-grid,
  .type-grid,
  .audience-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    min-height: 74px;
  }

  .header-panel {
    position: fixed;
    inset: 74px 12px auto;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  body[data-menu-open="true"] .header-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav,
  .header-actions {
    width: 100%;
  }

  .nav {
    display: grid;
    gap: 10px;
  }

  .nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(246, 250, 246, 0.9);
  }

  .header-actions {
    display: grid;
    gap: 12px;
  }

  .lang-switch {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .hero,
  .section {
    padding: 28px 0;
  }

  .hero-main,
  .feature-card,
  .compare-card,
  .result-card,
  .type-card,
  .audience-card,
  .faq-shell,
  .cta-band,
  .footer-card,
  .surface-card,
  .cta-inline {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .feature-grid,
  .result-grid,
  .type-grid,
  .audience-grid,
  .footer-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .cta-inline {
    align-items: center;
  }
}

@media (max-width: 560px) {
  .button-row,
  .header-actions {
    display: grid;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .trust-list,
  .chip-list {
    display: grid;
  }
}
