/* ============================================================
   附近赚赚 · 官方网站样式
   色板与小程序 app.wxss 保持一致
   ============================================================ */

:root {
  --ink: #17160F;
  --ink-soft: #6B665A;
  --ink-mute: #96907F;
  --paper: #FBF6E9;
  --card: #FFFFFF;
  --card-deep: #FAF3E2;
  --green: #1B5E3F;
  --green-deep: #123F2A;
  --green-soft: #E7F0EA;
  --gold: #E8A63C;
  --gold-deep: #B9791D;
  --coral: #FF5A3C;
  --line: #EFE6D2;
  --shadow-sm: 0 1px 2px rgba(23, 22, 15, .04), 0 4px 14px rgba(23, 22, 15, .05);
  --shadow-md: 0 2px 6px rgba(23, 22, 15, .05), 0 18px 44px rgba(23, 22, 15, .08);
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* ⚠️ 中文字体必须排在 -apple-system 前面。
     -apple-system 在 Windows Chrome 上会被解析成 system-ui（Segoe UI），
     而 Segoe UI 没有中文字形 → 走系统 CJK fallback，某些机器会落到繁体字库（微软正黑），
     整页简体字被渲染成繁体字形。把中文字族提前，等于把回退链掐死在第一跳：
       macOS → PingFang SC 命中；Windows → 前两个没有，命中 Microsoft YaHei（简体）。
     顺序不要动，改了会出现「同一段文字简繁混排」。 */
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* ⚠️ 用 clip 不用 hidden：hidden 会让 body 变成滚动容器，粘性顶栏会失效 */
  overflow-x: clip;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 233, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .name { font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.brand .sub { font-size: 12px; color: var(--ink-mute); margin-left: 2px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: 14.5px; }
.nav a:hover { color: var(--green); text-decoration: none; }

/* ---------- 通用区块 ---------- */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--gold-deep);
  background: #FDF3DF;
  border: 1px solid #F3E2BE;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1, h2, h3 { line-height: 1.28; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 46px; font-weight: 800; }
h2 { font-size: 30px; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }

.lead { font-size: 17px; color: var(--ink-soft); margin: 18px 0 0; max-width: 34em; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Hero ---------- */

.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(232, 166, 60, .18), rgba(232, 166, 60, 0) 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, rgba(27, 94, 63, .14), rgba(27, 94, 63, 0) 68%);
  pointer-events: none;
}

.hero .grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 0; }

.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(27, 94, 63, .22); }
.btn-primary:hover { background: var(--green-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: #DFD3B8; }
.btn-ghost:hover { background: #fff; }

.hero .meta { margin-top: 22px; font-size: 13.5px; color: var(--ink-mute); }

/* 产品预览（纯 CSS 堆叠卡片，不是截图） */
.preview { position: relative; height: 420px; }

.p-card {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
}

.p-card .row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.tag.gold { background: #FDF3DF; color: var(--gold-deep); }

.p-card .title { font-size: 15.5px; font-weight: 650; line-height: 1.45; }
.p-card .sub { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; letter-spacing: .01em; }

.p-card.a { top: 0; transform: rotate(-1.6deg); z-index: 3; }
.p-card.b { top: 132px; transform: rotate(1.2deg); z-index: 2; opacity: .97; }
.p-card.c { top: 264px; transform: rotate(-0.6deg); z-index: 1; opacity: .92; }

.p-badge {
  position: absolute;
  right: -6px;
  top: 108px;
  z-index: 4;
  background: var(--green-deep);
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(18, 63, 42, .3);
}

/* ---------- 能力卡片 ---------- */

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--card-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 流程 ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }

.step { position: relative; padding-right: 8px; }

.step .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- 安全 ---------- */

.safety { background: var(--card-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.safety .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }

.s-list { display: grid; gap: 14px; }

.s-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.s-item .dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.s-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.s-item span { font-size: 14px; color: var(--ink-soft); }

/* ---------- 关于 ---------- */

.about .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fact .k { flex: none; width: 92px; color: var(--ink-mute); font-size: 14px; }
.fact .v { font-size: 14.5px; word-break: break-all; }

.note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 页脚 ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 54px; background: var(--paper); }

.footer-top { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand .name { font-weight: 700; }

.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--ink-soft); }

.footer-legal { margin-top: 28px; font-size: 13px; color: var(--ink-mute); line-height: 1.9; }
.footer-legal a { color: var(--ink-mute); }
.footer-legal a:hover { color: var(--green); }

/* ---------- 内容页（隐私/协议/支持） ---------- */

.doc { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; }
.doc h1 { font-size: 34px; }
.doc .updated { color: var(--ink-mute); font-size: 13.5px; margin-top: 10px; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; margin: 26px 0 8px; }
.doc p, .doc li { color: #3A372E; font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 18px 0;
}
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--card-deep); font-weight: 650; }
.doc .back { display: inline-block; margin-bottom: 26px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .hero .grid, .safety .grid, .about .grid { grid-template-columns: 1fr; gap: 36px; }
  .preview { height: 380px; max-width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .brand .sub { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  h1 { font-size: 29px; }
  h2 { font-size: 22px; }
  .lead { font-size: 15.5px; }
  .steps { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
  .p-badge { display: none; }
  .doc { padding: 40px 18px 70px; }
  .doc h1 { font-size: 26px; }

  /* 窄屏把导航换到第二行，避免和品牌挤在一起把页面顶宽 */
  .site-header .inner { flex-wrap: wrap; row-gap: 2px; padding: 10px 18px; }
  .nav { margin-left: 0; width: 100%; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
