/* douyin-h5-landing — 移动优先单列；品牌绿 + 轻氛围（刀 1 视觉） */

:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --text: #1a1f1c;
  --text-muted: #5c6560;
  --text-soft: #8a938e;
  --brand: #2f6b4f;
  --brand-press: #255640;
  --brand-soft: #e8f2ec;
  --brand-mist: #eef5f0;
  --line: #e4e8e5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26, 31, 28, 0.04);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --sticky-h: calc(64px + var(--safe-bottom));
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -10%, #dceee4 0%, transparent 55%),
    var(--bg);
  padding-bottom: var(--sticky-h);
}

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

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

.page {
  max-width: 480px;
  margin: 0 auto;
}

/* —— Hero —— */
.hero {
  padding: 32px 20px 28px;
  background:
    linear-gradient(180deg, rgba(238, 245, 240, 0.95) 0%, var(--bg) 78%);
}

.brand {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  line-height: 1.2;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero-title span {
  display: block;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta:active {
  background: var(--brand-press);
  transform: scale(0.985);
}

.hero-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
}

/* —— Sections —— */
.section {
  padding: 8px 16px 4px;
}

.card {
  margin-bottom: 12px;
  padding: 20px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: -6px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Benefits */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.benefit-num {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  padding: 4px;
}

.benefit-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.benefit-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.benefit-extra {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Support / guarantees */
.soft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.soft-list li {
  padding-left: 14px;
  border-left: 3px solid var(--brand-soft);
}

.soft-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.soft-list p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.guarantee-grid {
  display: grid;
  gap: 12px;
}

.guarantee {
  padding: 14px;
  border-radius: 10px;
  background: var(--brand-mist);
}

.guarantee strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.guarantee p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 18px 40px;
  counter-increment: step;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.steps strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.steps p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.mid-cta {
  padding: 8px 16px 4px;
}

.mid-cta .card {
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, #f3faf6 0%, var(--surface) 100%);
}

.mid-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq details:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq details:first-of-type {
  padding-top: 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding-right: 20px;
  position: relative;
  outline: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--text-soft);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Footer — 刀 3：主体 + 信用代码 + 资质占位 */
.footer {
  padding: 20px 20px 28px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 14px !important;
}

.footer p {
  margin: 0 0 8px;
}

.footer .entity {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.entity-name {
  margin: 0 0 4px !important;
  font-weight: 600;
  color: var(--text-muted);
}

.entity-code {
  margin: 0 !important;
  font-size: 12px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.quals-note {
  margin: 0 0 12px !important;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.65;
}

.path-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.quals-grid {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.qual-slot {
  margin: 0;
}

.qual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 12px 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--brand-mist);
  text-align: center;
}

.qual-placeholder-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.qual-placeholder-hint {
  font-size: 10px;
  color: var(--text-soft);
}

.qual-caption {
  margin: 6px 0 0 !important;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

.qual-slot img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.footer-note {
  margin-top: 12px !important;
  font-size: 11px;
}

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sticky-cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 481px) {
  .hero {
    padding-top: 44px;
  }

  .hero-title {
    font-size: 28px;
  }

  .brand {
    font-size: 24px;
  }
}

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

  .cta {
    transition: none;
  }

  .cta:active {
    transform: none;
  }
}
