:root {
  color-scheme: light;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --bg: #f4f1e8;
  --paper: #fffdf8;
  --ink: #1f2a1f;
  --muted: #5b6458;
  --line: #d8d1c0;
  --accent: #205c45;
  --accent-soft: #e6f0ea;
  --accent-strong: #163d2f;
  --shadow: 0 20px 50px rgba(38, 52, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(180deg, #f8f4ea 0%, #efe8d7 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.container,
.faq-shell,
.footer {
  width: 100%;
}

.site-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.brand-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.locale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(32, 92, 69, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.locale-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 242, 0.92)),
    linear-gradient(135deg, #fdf7ed, #eef3ea);
  box-shadow: var(--shadow);
  padding: 52px 42px;
  margin: 8px auto 24px;
  border: 1px solid rgba(216, 209, 192, 0.8);
}

.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(32, 92, 69, 0.18), rgba(32, 92, 69, 0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(32, 92, 69, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-link,
.primary {
  padding: 0 22px;
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(32, 92, 69, 0.18);
}

.secondary-link {
  padding: 0 20px;
  border: 1px solid rgba(32, 92, 69, 0.18);
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent-strong);
}

.primary-link:hover,
.secondary-link:hover,
.primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.feature-strip,
.bullet-list,
.ordered-list {
  margin: 0;
  padding: 0;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 28px;
}

.feature-strip li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 209, 192, 0.9);
  color: var(--accent-strong);
  font-size: 14px;
}

.container,
.faq-shell,
.stats-shell {
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 0 auto 24px;
  border: 1px solid rgba(216, 209, 192, 0.9);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 28px;
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-note {
  font-weight: 700;
  color: var(--accent-strong);
}

.stats-head {
  margin-bottom: 18px;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 18px;
}

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

.trend-card,
.stat-card {
  background: linear-gradient(180deg, rgba(250, 252, 249, 0.96), rgba(238, 244, 239, 0.96));
  border: 1px solid rgba(32, 92, 69, 0.1);
  border-radius: 18px;
}

.trend-card {
  padding: 20px;
}

.stat-card {
  padding: 18px;
}

.stat-card-compact {
  min-height: 132px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.trend-title {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.trend-summary {
  min-width: 112px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 92, 69, 0.08);
}

.trend-summary-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trend-summary-value {
  display: block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 28px;
  line-height: 1;
}

.stats-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 252px;
  margin-top: 22px;
}

.chart-bar-wrap {
  display: grid;
  gap: 8px;
  align-items: end;
}

.chart-bar-track {
  position: relative;
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(32, 92, 69, 0.06), rgba(32, 92, 69, 0.14));
  overflow: hidden;
}

.chart-bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #4d8a71 0%, #205c45 100%);
}

.chart-bar-value {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.chart-bar-label,
.stats-chart-empty {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.stats-chart-empty {
  margin-top: 20px;
  font-size: 14px;
}

.stats-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #edf1ea;
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 18px;
}

.tab {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(35, 48, 42, 0.08);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.upload-box {
  border: 2px dashed #9eb4a8;
  border-radius: 18px;
  display: block;
  text-align: center;
  padding: 34px 24px;
  cursor: pointer;
  color: #39463e;
  background: linear-gradient(180deg, rgba(246, 251, 248, 0.95), rgba(236, 244, 239, 0.95));
}

.upload-box input {
  display: none;
}

.download-limit-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.download-limit-row input,
.download-row input {
  border: 1px solid #c7cfca;
  background: #fff;
  color: var(--ink);
}

.download-limit-row input {
  width: 110px;
  border-radius: 12px;
  padding: 10px 12px;
}

.primary {
  margin-top: 14px;
}

.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5ece6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-bar > div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #205c45, #4d8a71);
  transition: width 0.2s;
}

.code-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.code-box span {
  display: inline-block;
  margin-left: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 24px;
}

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

.download-row input {
  flex: 1 1 260px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
}

.muted {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

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

.intent-shell {
  margin-bottom: 24px;
}

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

.intent-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(216, 209, 192, 0.92);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 24px;
}

.intent-kicker {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intent-card h3 {
  margin: 10px 0 12px;
  line-height: 1.25;
}

.intent-card p {
  color: var(--muted);
  line-height: 1.8;
}

.landing-shell {
  display: grid;
  gap: 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  text-decoration: none;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.landing-sidebar {
  display: grid;
  gap: 16px;
}

.side-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(216, 209, 192, 0.92);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 22px;
}

.side-card h3 {
  margin-bottom: 10px;
}

.side-card p,
.side-card li {
  color: var(--muted);
  line-height: 1.8;
}

.side-card ul {
  margin: 0;
  padding-left: 20px;
}

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

.section-stack {
  display: grid;
  gap: 18px;
}

.related-links {
  display: grid;
  gap: 12px;
}

.related-links a {
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 700;
}

.content-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(216, 209, 192, 0.92);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 28px;
}

.content-card h2,
.faq-item h3 {
  margin-bottom: 12px;
  line-height: 1.25;
}

.content-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.8;
}

.content-card p + p {
  margin-top: 12px;
}

.bullet-list,
.ordered-list {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.9;
}

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

.faq-item {
  padding: 22px;
  border-radius: 18px;
  background: #fbf8f1;
  border: 1px solid rgba(216, 209, 192, 0.9);
}

.footer {
  padding: 8px 4px 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.hidden {
  display: none;
}

@media (max-width: 780px) {
  .page {
    width: min(100vw - 20px, 1120px);
    padding: 12px 0 28px;
  }

  .hero,
  .container,
  .faq-shell,
  .stats-shell,
  .content-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .site-topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

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

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

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

  .stats-layout {
    grid-template-columns: 1fr;
  }

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

  .trend-head {
    flex-direction: column;
  }

  .stats-chart {
    gap: 8px;
    min-height: 212px;
  }

  .chart-bar-track {
    height: 120px;
  }

  .download-row {
    flex-direction: column;
  }

  .download-row input,
  .primary {
    width: 100%;
  }

  .section-head h2 {
    font-size: 24px;
  }
}
