/* ==========================================================================
   whatsapp网页版 - 站点样式表
   纯本地样式，不引用任何第三方资源
   ========================================================================== */

:root {
  --brand: #128c7e;
  --brand-dark: #075e54;
  --brand-light: #25d366;
  --brand-soft: #e7f6f2;
  --ink: #14201f;
  --ink-2: #3c4a48;
  --ink-3: #6b7a78;
  --line: #e3e9e8;
  --bg: #ffffff;
  --bg-2: #f6f9f8;
  --bg-3: #eef4f3;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 37, .06), 0 1px 3px rgba(16, 40, 37, .04);
  --shadow: 0 8px 24px -12px rgba(16, 40, 37, .18), 0 2px 6px rgba(16, 40, 37, .04);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, 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: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; vertical-align: middle; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1rem + 1.3vw, 1.9rem); }

/* 标题换行更均衡，避免末行只剩一两个字 */
h1, h2 { text-wrap: balance; }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.35em; margin: 0 0 1.1em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 600; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .4em;
  color: var(--brand-dark);
}

/* ---------- 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-3); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 14px;
}

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

/* ---------- 顶部导航 ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }
.logo svg { flex: none; }

.nav { margin-left: auto; }

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li { margin: 0; }

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: .935rem;
  font-weight: 500;
  transition: background .16s, color .16s;
}
.nav a:hover { background: var(--bg-3); color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .16s, background .16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(18, 140, 126, .8); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--sm { padding: 8px 15px; font-size: .875rem; }

/* ---------- 面包屑 ---------- */
.crumbs {
  font-size: .82rem;
  color: var(--ink-3);
  padding: 16px 0 0;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; color: #b9c4c2; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 60px;
  background:
    radial-gradient(900px 420px at 82% -10%, #d9f5ec 0%, rgba(217, 245, 236, 0) 62%),
    linear-gradient(180deg, #fbfdfc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: .5em; }
.hero .lede {
  font-size: 1.075rem;
  color: var(--ink-2);
  max-width: 33em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .9rem;
  color: var(--ink-3);
}
.hero-points li { display: flex; align-items: center; gap: 6px; margin: 0; }
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-light);
  flex: none;
}

/* 首屏视觉卡片 */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #d7dedd; }
.mock-url {
  margin-left: 8px;
  flex: 1;
  font-size: .74rem;
  color: var(--ink-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-body { display: grid; grid-template-columns: 62px 1fr; min-height: 258px; }
.mock-side {
  background: var(--brand-dark);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mock-side i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  display: block;
}
.mock-side i:first-child { background: var(--brand-light); }
.mock-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  max-width: 82%;
  font-size: .8rem;
  line-height: 1.5;
  padding: 8px 11px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.bubble.in { background: #fff; border: 1px solid var(--line); border-top-left-radius: 3px; }
.bubble.out { background: #d9fdd3; margin-left: auto; border-top-right-radius: 3px; color: #1d2b26; }
.bubble small { display: block; font-size: .64rem; color: #7b8a87; margin-top: 3px; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .18s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfe0dc; }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .94rem; color: var(--ink-3); }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  flex: none;
}
.icon-badge svg { width: 22px; height: 22px; }

.card-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  font-size: .88rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 14px;
}
.card-link::after { content: "→"; transition: transform .16s; }
.card-link:hover::after { transform: translateX(3px); }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: .3em; }
.step p { font-size: .93rem; color: var(--ink-3); margin: 0; }

/* ---------- 表格 ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
caption { text-align: left; font-size: .84rem; color: var(--ink-3); padding: 12px 16px 0; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-2); font-weight: 700; color: var(--ink); font-size: .86rem; letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
td strong { color: var(--brand-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s;
}
.faq details[open] { border-color: #c6ded9; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
  padding: 16px 30px 16px 0;
  position: relative;
  font-size: .97rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 17px; font-size: .94rem; color: var(--ink-3); }
.faq .answer p { margin-bottom: .7em; }

/* ---------- 提示框 ---------- */
.note {
  border-left: 3px solid var(--brand-light);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px;
  font-size: .93rem;
  color: var(--ink-2);
  margin: 22px 0;
}
.note--warn { border-left-color: #f59e0b; background: var(--warn-soft); color: #7c2d12; }
.note strong { color: inherit; }

/* ---------- 正文排版 ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li, .prose ol li { color: var(--ink-2); }

/* ---------- 双栏内容 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
/* 侧栏内的指标卡改为两列，避免过窄挤压文字 */
.split .stats { grid-template-columns: repeat(2, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; }
.stat b { display: block; font-size: 1.6rem; color: var(--brand-dark); letter-spacing: -.02em; }
.stat span { font-size: .84rem; color: var(--ink-3); }

/* ---------- CTA 区 ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--brand-dark), #0d6b60 55%, var(--brand));
  color: #d8f3ec;
  border-radius: 18px;
  padding: 46px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #d9f3ec; max-width: 620px; margin: 0 auto 24px; }
.cta-box .btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: #fff; }
.cta-box .btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.cta-box .btn--primary { background: #fff; color: var(--brand-dark); }
.cta-box .btn--primary:hover { background: #eafaf4; color: var(--brand-dark); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0c1f1c;
  color: #a8bdb9;
  padding: 54px 0 26px;
  font-size: .9rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer h4 {
  color: #fff;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #9fb3af; }
.site-footer a:hover { color: #6ee7b7; }
.footer-about p { color: #9db2ae; font-size: .88rem; margin: 12px 0 0; max-width: 30em; }
.footer-logo { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 1.02rem; }
.footer-logo:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: .82rem;
  color: #93a8a4;
}
.footer-bottom p { margin: 0; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  cursor: pointer;
  z-index: 90;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .mock { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; min-height: 60px; }
  .nav-toggle { display: flex; }
  .nav {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    display: none;
    border-top: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 10px 12px; }
  .header-cta { display: none; }
  .section { padding: 46px 0; }
  .hero { padding: 40px 0 42px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cta-box { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .crumbs { font-size: .78rem; }
  table { font-size: .86rem; }
  th, td { padding: 10px 12px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  body { font-size: 15.5px; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .to-top, .cta-box, .hero-actions { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
