/* 官网帮助中心：与首页、移动端学习页一致的暖白与森林绿 */
:root {
  --green: #3d654b;
  --green-dark: #2e503b;
  --green-soft: #eaf1dc;
  --text: #2e4034;
  --text-muted: #6b7669;
  --border: #e2e6d8;
  --surface: #fffefa;
  --page-bg: #faf7ef;
  --shadow: 0 10px 40px rgba(46, 64, 52, .07);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page-bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: calc(64px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) clamp(16px, 4vw, 28px) 10px;
  background: rgba(250, 247, 239, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 44px;
  height: 44px;
  color: var(--text);
  text-decoration: none;
}
.topbar-back:hover { color: var(--green); }
.topbar-back-icon { display: block; width: 24px; height: 24px; }
.topbar-title {
  margin: 0;
  justify-self: center;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}
.topbar-spacer { min-height: 44px; }
.container {
  width: min(1040px, 100%);
  margin: 0 auto;
  flex: 1;
  padding: clamp(26px, 5vw, 54px) clamp(18px, 4vw, 28px) clamp(68px, 9vw, 100px);
}

/* 帮助首页 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 28px;
  padding: clamp(34px, 6vw, 62px);
  border: 1px solid #dbe5d2;
  border-radius: 30px;
  background: radial-gradient(circle at 85% 24%, #e2edcf 0, transparent 37%), #f1f5e9;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  right: -66px;
  bottom: -160px;
  border: 1px dashed #bfd3b3;
  border-radius: 50%;
}
.hero-icon {
  position: absolute;
  right: clamp(30px, 7vw, 92px);
  top: 50%;
  width: clamp(84px, 13vw, 140px);
  height: auto;
  border-radius: 26%;
  box-shadow: 0 14px 34px rgba(46, 64, 52, .13);
  transform: translateY(-50%) rotate(7deg);
}
.hero-kicker, .eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.hero h1 {
  max-width: 680px;
  margin: 16px 0 18px;
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.22;
}
.hero h1 span { color: var(--green); }
.hero > p {
  max-width: 620px;
  margin: 0;
  color: #526b56;
  font-size: 16px;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.btn-light { background: var(--green); color: #fff; }
.btn-light:hover { background: var(--green-dark); }
.btn-ghost { border: 1px solid #ccdac9; color: var(--text); background: rgba(255, 254, 250, .72); }
.btn-ghost:hover { background: #fffefa; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: help-category; }
.category {
  counter-increment: help-category;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(46, 64, 52, .035);
}
.category-head { position: relative; min-height: 68px; margin: 0 0 14px; padding-right: 54px; }
.category-head::after {
  content: counter(help-category, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.category-head h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.category-head p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.article-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.article-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--text);
  background: #f8f9f3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: background .15s ease, color .15s ease;
}
.article-list a:hover { color: var(--green); background: var(--green-soft); }
.article-list .arrow { flex: none; color: #8aa28a; font-size: 20px; line-height: 1; }
.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 26px;
  padding: 30px 34px;
  border: 1px solid #d7e2d1;
  border-radius: 22px;
  background: #eaf1dc;
}
.support h2 { margin: 0 0 6px; font-size: 21px; }
.support p { margin: 0; color: #526b56; font-size: 14px; line-height: 1.7; }
.support p:last-child { flex: none; }
.support a { color: var(--green-dark); text-decoration: none; font-weight: 800; }
.support a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 文章页 */
.article-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-card .eyebrow { margin: 0 0 14px; }
.article-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
  letter-spacing: -.035em;
}
.article-card .lead {
  margin: 0 0 32px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--border);
  color: #536857;
  font-size: 16px;
  line-height: 1.85;
}
.article-card section { margin: 0 0 30px; }
.article-card section:last-of-type { margin-bottom: 0; }
.article-card h2 { margin: 0 0 13px; color: var(--text); font-size: 20px; line-height: 1.4; }
.article-card p { margin: 0 0 11px; color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.article-card p:last-child { margin-bottom: 0; }
.article-card ol, .article-card ul { margin: 0; padding-left: 1.3em; color: var(--text-muted); }
.article-card li { margin: 0 0 10px; padding-left: 4px; font-size: 15px; line-height: 1.8; }
.article-card li:last-child { margin-bottom: 0; }
.article-card li::marker { color: var(--green); font-weight: 800; }
.tip {
  margin-top: 16px;
  padding: 17px 20px;
  border: 1px solid #d9e5cf;
  border-radius: 14px;
  background: #f1f5e8;
  color: #526b56;
  font-size: 14px;
  line-height: 1.75;
}
.related { padding-top: 25px; border-top: 1px solid var(--border); }
.related-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0 !important; list-style: none; }
.related-links li { margin: 0; padding: 0; }
.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8f9f3;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.related-links a:hover { background: var(--green-soft); }

/* 页脚 */
.footer-note {
  padding: 40px 16px 70px;
  border-top: 1px solid var(--border);
  background: #f4f2e8;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
}
.support-app-link { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 20px; padding: 10px 20px; border-radius: 999px; background: #3d654b; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.footer-service-qr { width: min(168px, 100%); margin: 0 auto 20px; }
.footer-service-qr img { display: block; width: 100%; height: auto; background: #fff; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin: 0 0 12px; }
.footer-links a, .footer-note a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-note a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--green); }
.footer-note p { margin: 0 0 6px; }
.footer-note p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .container { padding-top: 24px; }
  .hero { padding: 32px 26px; border-radius: 24px; }
  .hero-icon { width: 76px; right: 24px; top: 36px; transform: rotate(7deg); border-radius: 20px; }
  .hero h1 { padding-right: 20px; margin-top: 28px; }
  .hero > p { font-size: 14px; }
  .category-grid { grid-template-columns: 1fr; gap: 14px; }
  .category { padding: 24px; }
  .support { display: block; padding: 26px; }
  .support p:last-child { margin-top: 14px; }
  .article-card { border-radius: 22px; }
}
@media (max-width: 390px) {
  .hero-icon { width: 58px; right: 22px; top: 24px; }
  .hero h1 { font-size: 32px; }
  .hero-actions a { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .article-list a { transition: none; }
}
