/* ============================================================
   TG号购买平台 · 暖橙信标 设计系统
   稳定供应 · 售后无忧
   暖奶油底 / 珊瑚橙 CTA / 墨绿文字 / 青绿·明黄·天蓝多彩色块
   ============================================================ */

:root {
  --bg: #fbf5ea;
  --paper: #fffdf6;
  --card: #ffffff;
  --ink: #14332c;
  --ink-2: #2a4a42;
  --muted: #5f746d;
  --coral: #ff5c35;
  --coral-2: #e8441f;
  --teal: #0e8a6d;
  --teal-soft: #e2f3ec;
  --yellow: #ffc83d;
  --yellow-soft: #fff3d1;
  --blue: #3f9bff;
  --blue-soft: #e4f0ff;
  --line: #eadfce;
  --shadow: 6px 6px 0 0 rgba(20, 51, 44, 0.16);
  --shadow-sm: 4px 4px 0 0 rgba(20, 51, 44, 0.14);
  --radius: 20px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(255, 200, 61, 0.16), transparent 60%),
    radial-gradient(900px 480px at -5% 10%, rgba(14, 138, 109, 0.10), transparent 55%),
    var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); box-shadow: 7px 10px 0 0 rgba(20,51,44,.16); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-2); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

.btn-ghost { background: var(--paper); color: var(--ink); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ink); color: var(--yellow);
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 0 rgba(20,51,44,.18);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { display: block; font-size: 18px; letter-spacing: .5px; line-height: 1.15; }
.brand-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--card);
  box-shadow: var(--shadow-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background .15s ease;
}
.nav-links a:hover { background: var(--yellow-soft); }
.nav-links a.active { background: var(--ink); color: #fff; }
.nav-cta { margin-left: 8px; }

/* ---------- Hero（居中大字 + 信号波纹） ---------- */
.hero { position: relative; padding: 84px 0 30px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(20, 51, 44, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.beacon {
  position: absolute; top: 70px; right: 8%; z-index: -1;
  width: 260px; height: 260px; pointer-events: none; opacity: .55;
}
.beacon span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--coral); opacity: 0;
  animation: pulse 4s ease-out infinite;
}
.beacon span:nth-child(2) { animation-delay: 1.3s; }
.beacon span:nth-child(3) { animation-delay: 2.6s; }
.beacon::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 18px; height: 18px; transform: translate(-50%, -50%);
  background: var(--coral); border-radius: 50%;
  border: 2px solid var(--ink);
}
@keyframes pulse {
  0% { transform: scale(.3); opacity: .85; }
  100% { transform: scale(1.3); opacity: 0; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-soft); color: var(--teal);
  font-weight: 700; font-size: 13px; letter-spacing: 1px;
  padding: 8px 16px; border-radius: 999px; border: 2px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; line-height: 1.12;
  letter-spacing: -1px; margin: 22px auto 16px; max-width: 18em;
}
.hero h1 .hl { color: var(--coral); }
.hero h1 .hl-teal { color: var(--teal); }
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto 28px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 22px; font-size: 14px; color: var(--muted);
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--teal); }

/* ---------- 数据条 ---------- */
.stats { padding: 26px 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--ink); border-radius: var(--radius);
  border: 2px solid var(--ink); box-shadow: var(--shadow);
  padding: 28px 22px;
}
.stat { text-align: center; color: #fff; }
.stat b {
  display: block; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1;
  letter-spacing: -1px;
}
.stat b em { font-style: normal; color: var(--yellow); }
.stat span { font-size: 13px; color: #cfe0d8; }

/* ---------- 区块通用 ---------- */
.section { padding: 54px 0 8px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--coral); text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.5px;
  margin: 10px 0 12px;
}
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 优势区（交替左右面板） ---------- */
.adv-list { display: flex; flex-direction: column; gap: 26px; }
.adv-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px;
}
.adv-row.flip .adv-media { order: 2; }
.adv-media {
  border-radius: 16px; height: 220px; position: relative; overflow: hidden;
  border: 2px solid var(--ink);
}
.adv-media .glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.adv-media .glyph svg { width: 92px; height: 92px; color: var(--ink); }
.adv-media.c1 { background: var(--teal-soft); }
.adv-media.c2 { background: var(--yellow-soft); }
.adv-media.c3 { background: var(--blue-soft); }
.adv-media.c4 { background: #ffe8de; }
.adv-copy .tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink);
  margin-bottom: 12px;
}
.adv-copy .tag.t1 { background: var(--teal-soft); color: var(--teal); }
.adv-copy .tag.t2 { background: var(--yellow-soft); color: #a97500; }
.adv-copy .tag.t3 { background: var(--blue-soft); color: var(--blue); }
.adv-copy .tag.t4 { background: #ffe8de; color: var(--coral); }
.adv-copy h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.adv-copy p { color: var(--muted); font-size: 15.5px; }

/* ---------- 套餐 / 规格 ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 26px; transition: transform .15s ease;
}
.pkg:hover { transform: translateY(-5px); }
.pkg.pop { background: var(--ink); color: #fff; }
.pkg.pop .pkg-desc, .pkg.pop .pkg-feat li { color: #cfe0d8; }
.pkg.pop .pkg-name { color: #fff; }
.pkg.pop .pkg-feat li::before { color: var(--yellow); }
.pkg.pop .pkg-price { color: var(--yellow); }
.pkg-flag {
  position: absolute; top: -14px; left: 26px;
  background: var(--coral); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink);
}
.pkg-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); margin-bottom: 16px; }
.pkg-icon svg { width: 24px; height: 24px; }
.pkg-icon.i1 { background: var(--blue-soft); color: var(--blue); }
.pkg-icon.i2 { background: var(--teal-soft); color: var(--teal); }
.pkg-icon.i3 { background: var(--yellow-soft); color: #a97500; }
.pkg-name { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.pkg-desc { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pkg-feat { margin-bottom: 20px; }
.pkg-feat li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 7px; }
.pkg-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.pkg-price { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.pkg-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.pkg .btn { margin-top: auto; width: 100%; }
.pkg.pop .btn { border-color: var(--yellow); }

/* ---------- 供应保障（竖排时间线） ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 6px; bottom: 6px;
  width: 3px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px);
}
.tl-item { position: relative; padding: 0 0 26px 78px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 9px; top: 2px; width: 40px; height: 40px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--card);
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
  font-weight: 800; color: var(--coral); z-index: 1;
}
.tl-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 18px 22px;
}
.tl-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.tl-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 购买流程（编号卡片） ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 24px 20px; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
}
.step:nth-child(1) .step-num { background: var(--coral); color: #fff; }
.step:nth-child(2) .step-num { background: var(--yellow); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--teal); color: #fff; }
.step:nth-child(4) .step-num { background: var(--blue); color: #fff; }
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- 文章区 ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px 26px; display: flex; flex-direction: column;
}
.article-cat {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--ink);
  margin-bottom: 14px;
}
.article-cat.a1 { background: var(--blue-soft); color: var(--blue); }
.article-cat.a2 { background: var(--teal-soft); color: var(--teal); }
.article-cat.a3 { background: var(--yellow-soft); color: #a97500; }
.article-card h3 { font-size: 19px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.article-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.article-card p:last-child { margin-bottom: 0; }

/* ---------- FAQ（双列网格） ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item {
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 800; color: var(--coral); line-height: 1;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); }

/* ---------- 售后保障（全宽 banner） ---------- */
.aftercare {
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 42px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.aftercare::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 200, 61, .35), transparent 70%);
}
.aftercare-copy { position: relative; z-index: 1; max-width: 560px; }
.aftercare-copy .kicker { color: var(--yellow); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.aftercare-copy h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 8px 0 12px; }
.aftercare-copy p { color: #cfe0d8; font-size: 15.5px; }
.aftercare-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.aftercare-actions .btn { min-width: 180px; }
.aftercare-actions .btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.aftercare-actions .btn-primary:hover { background: #f4bd26; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 54px; border-top: 2px solid var(--ink); background: var(--paper); }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
  padding: 40px 0 26px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong { font-size: 17px; }
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.footer-nav a:hover { color: var(--coral); }
.footer-bottom {
  text-align: center; font-size: 13px; color: var(--muted);
  padding: 16px 0 22px; border-top: 1px solid var(--line);
}

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- SVG 库隐藏 ---------- */
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; border-radius: 12px; }
  .nav-cta { margin: 8px 0 2px; }
  .nav-cta .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .adv-row { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .adv-row.flip .adv-media { order: 0; }
  .adv-media { height: 180px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .aftercare { flex-direction: column; align-items: flex-start; padding: 34px 28px; }
  .beacon { right: -40px; opacity: .35; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .hero { padding: 54px 0 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
