:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-soft: #f4efe8;
  --border: #e6dfd5;
  --ink: #1e1c1a;
  --ink-muted: #615b53;
  --accent: #d96b43;
  --accent-hover: #c25731;
  --accent-soft: #fdf0ea;
  --safe: #1a7a56;
  --safe-soft: #eaf6f0;
  --danger: #b83b3b;
  --danger-soft: #fbeeee;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 28, 26, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
}
.brand-badge {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #e0764e, #c4542d);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem;
}
.nav-links { display: flex; gap: 22px; font-size: 0.94rem; color: var(--ink-muted); }
.nav-links a:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 0.94rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-hover);
  padding: 6px 14px; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.22; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; color: var(--ink-muted); margin-bottom: 26px; max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: var(--ink-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero Terminal Card */
.terminal-card {
  background: #1b1a18; color: #f1ece4; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(30, 28, 26, 0.18);
  border: 1px solid #302d29; overflow: hidden;
}
.terminal-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #252320; border-bottom: 1px solid #33302c;
  font-size: 0.8rem; color: #a79f95;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ef6b5e; }
.dots i:nth-child(2) { background: #f2be4f; }
.dots i:nth-child(3) { background: #5cc46d; }
.terminal-body {
  padding: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem; line-height: 1.75;
}
.t-dim { color: #8c857c; }
.t-orange { color: #eb8258; }
.t-green { color: #67d18c; }
.t-badge {
  display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 8px;
  background: rgba(103, 209, 140, 0.12); color: #7ce3a0; border: 1px solid rgba(103, 209, 140, 0.25);
  font-size: 0.8rem;
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-muted); font-size: 0.98rem; }

/* Comparison Table */
.compare-wrap {
  overflow-x: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 660px; }
.compare-table th, .compare-table td {
  padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.94rem;
}
.compare-table th { background: var(--surface-soft); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.col-good { background: #fcfaf7; }
.tag-bad { color: var(--danger); font-weight: 600; }
.tag-good { color: var(--safe); font-weight: 600; }

/* Pricing */
.kyc-toggle-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.toggle-pill {
  display: inline-flex; background: var(--surface-soft); padding: 5px;
  border-radius: 12px; border: 1px solid var(--border);
}
.toggle-btn {
  padding: 9px 18px; border-radius: 9px; border: none; background: transparent;
  font-weight: 600; font-size: 0.9rem; color: var(--ink-muted); cursor: pointer;
}
.toggle-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow);
}
.plan-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 14px 36px rgba(217, 107, 67, 0.14);
}
.plan-ribbon {
  position: absolute; top: -12px; right: 18px;
  background: var(--accent); color: #fff; font-size: 0.76rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.plan-tag { font-size: 0.8rem; color: var(--ink-muted); font-weight: 600; margin-bottom: 4px; }
.plan-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price .num { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.plan-price .unit { font-size: 0.85rem; color: var(--ink-muted); }
.plan-renew { font-size: 0.84rem; color: var(--safe); font-weight: 600; margin-bottom: 16px; }
.plan-list { list-style: none; margin-bottom: 22px; flex: 1; }
.plan-list li {
  font-size: 0.88rem; color: var(--ink-muted); padding: 6px 0;
  border-bottom: 1px dashed #ece6dd; display: flex; gap: 8px;
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before { content: "✓"; color: var(--safe); font-weight: 800; }

.kyc-banner {
  margin-top: 26px; background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.kyc-banner h3 { font-size: 1.05rem; margin-bottom: 4px; }
.kyc-banner p { font-size: 0.9rem; color: var(--ink-muted); }

/* Steps & Checklist */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px;
}
.step-card h3 { font-size: 1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.88rem; color: var(--ink-muted); }

.checklist-box {
  margin-top: 28px; background: var(--safe-soft); border: 1px solid #c9e7d8;
  border-radius: var(--radius); padding: 22px 24px;
}
.checklist-box h3 { color: var(--safe); font-size: 1.02rem; margin-bottom: 10px; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; font-size: 0.9rem; }

/* Articles */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; transition: border-color 0.18s, transform 0.18s;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.article-cat {
  font-size: 0.78rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); align-self: flex-start;
  padding: 3px 9px; border-radius: 6px; margin-bottom: 10px;
}
.article-card h3 { font-size: 1.03rem; line-height: 1.4; margin-bottom: 8px; }
.article-card p { font-size: 0.88rem; color: var(--ink-muted); flex: 1; margin-bottom: 14px; }
.article-more { font-size: 0.86rem; font-weight: 700; color: var(--accent); }

/* FAQ & Policy */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; padding: 17px 20px; background: none; border: none;
  font-size: 0.98rem; font-weight: 700; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-a {
  padding: 0 20px 18px; font-size: 0.92rem; color: var(--ink-muted); display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

.policy-box {
  margin-top: 32px; background: #fffbf6; border: 1px solid #edd9c4;
  border-radius: var(--radius); padding: 22px 24px; font-size: 0.88rem; color: var(--ink-muted);
}
.policy-box h3 { color: var(--ink); font-size: 0.98rem; margin-bottom: 10px; }
.policy-box ul { padding-left: 18px; display: grid; gap: 6px; }

/* Footer */
.site-footer {
  padding: 40px 0 48px; border-top: 1px solid var(--border);
  font-size: 0.88rem; color: var(--ink-muted);
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

/* Modal & Toast */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 18, 16, 0.55);
  display: none; place-items: center; z-index: 999; padding: 20px;
}
.modal-backdrop.show { display: grid; }
.modal-card {
  background: var(--surface); border-radius: 16px; max-width: 440px; width: 100%;
  padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,0.22); text-align: center;
}
.wechat-box {
  margin: 16px 0; padding: 14px; background: var(--surface-soft);
  border: 1px dashed var(--accent); border-radius: 12px;
  font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: 0.02em;
}
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e1c1a; color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 1000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Article Page */
.article-wrap { max-width: 780px; margin: 44px auto 64px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 38px 34px; }
.article-wrap h1 { font-size: 1.85rem; line-height: 1.3; margin: 12px 0 14px; }
.article-meta { font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article-body h2 { font-size: 1.22rem; margin: 24px 0 10px; }
.article-body p, .article-body li { font-size: 0.97rem; color: #36332e; margin-bottom: 12px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px; }
.article-cta { margin-top: 30px; padding: 20px; background: var(--accent-soft); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* GEO Answer-First & Meta Badges */
.updated-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--ink-muted); background: var(--surface);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.answer-first {
  background: var(--surface); border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin-bottom: 20px;
  font-size: 0.94rem; color: var(--ink);
}
.answer-first strong { color: var(--accent-hover); }

/* Trust Showcase: Receipt Preview & 0-Chargeback Flow */
.trust-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: stretch; }
.receipt-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.receipt-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px dashed var(--border); margin-bottom: 14px;
}
.receipt-badge {
  font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: var(--safe-soft); color: var(--safe);
}
.receipt-rows { display: grid; gap: 10px; font-size: 0.88rem; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-muted); }
.receipt-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.receipt-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--ink-muted);
}

.guard-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.guard-step {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border);
}
.guard-step-num {
  flex: 0 0 26px; height: 26px; border-radius: 7px; background: var(--accent);
  color: #fff; font-weight: 800; font-size: 0.82rem; display: grid; place-items: center;
}
.guard-step h4 { font-size: 0.94rem; margin-bottom: 3px; }
.guard-step p { font-size: 0.84rem; color: var(--ink-muted); }

/* Interactive Diagnostic / Calculator (shared across sites) */
.diag-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow);
}
.diag-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.diag-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.diag-btn {
  text-align: left; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--ink); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.16s ease;
}
.diag-btn:hover { border-color: var(--accent); }
.diag-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.diag-result {
  padding: 14px 16px; border-radius: 10px; font-size: 0.88rem; line-height: 1.6;
  background: var(--safe-soft); border: 1px solid #c9e7d8; color: #165e43;
}
.diag-result.warn {
  background: var(--danger-soft); border-color: #ebc8c8; color: var(--danger);
}

/* Modal QR Dual-Channel */
.modal-qr-box {
  margin: 14px auto; width: 196px; min-height: 196px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  display: grid; place-items: center;
}
.modal-qr-box img { width: 176px; height: 176px; object-fit: contain; border-radius: 8px; display: block; }
.qr-fallback {
  width: 176px; height: 176px; border-radius: 10px; background: var(--surface-soft);
  border: 1px dashed var(--accent); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 12px;
  font-size: 0.8rem; color: var(--ink-muted);
}

/* Mobile Sticky CTA Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 10px 16px;
  align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 24px rgba(30, 28, 26, 0.08);
}
.mobile-sticky-info { font-size: 0.82rem; line-height: 1.3; }
.mobile-sticky-info strong { display: block; font-size: 0.9rem; color: var(--ink); }
.mobile-sticky-info span { color: var(--ink-muted); }

@media (max-width: 980px) {
  .hero-grid, .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { padding-bottom: 72px; }
  .nav-links { display: none; }
  .pricing-grid, .steps-grid, .articles-grid, .checklist-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 24px 18px; }
  .mobile-sticky-bar { display: flex; }
}
