/* ============================================================
   羊小咩/便荔卡包 额度回收防坑指南 — 公共样式
   浅色科普风 · 响应式 · 移动优先
   ============================================================ */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #1f2733;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e9ef;
  --brand: #1d6fd6;
  --brand-d: #1556a8;
  --brand-l: #eaf2fc;
  --warn: #d9480f;
  --warn-bg: #fff4ec;
  --warn-line: #f4c9a8;
  --ok: #1a8a5a;
  --ok-bg: #eaf7f0;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(24, 48, 88, .06);
  --maxw: 900px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---------- 顶部警示条 ---------- */
.topbar {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-line);
  color: var(--warn);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.6;
}
.topbar strong { font-weight: 700; }

/* ---------- 导航 ---------- */
.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.logo { font-size: 17px; font-weight: 800; color: var(--brand-d); letter-spacing: -.3px; }
.logo span { color: var(--warn); }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  padding: 6px 12px; border-radius: 8px; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--brand-l); color: var(--brand-d); text-decoration: none;
}
.nav-toggle { display: none; }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px 18px 60px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

/* ---------- 卡片 / hero ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 30px; margin-bottom: 22px;
}
.hero {
  background: linear-gradient(135deg, #eaf2fc 0%, #f8fbff 100%);
  color: var(--ink); border: none;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 30px;
}
.hero .hero-txt { flex: 1 1 320px; min-width: 260px; }
.hero .hero-img { flex: 0 1 300px; min-width: 220px; }
.hero .hero-img img { width: 100%; border-radius: 12px; display: block; }
.hero h1 { color: var(--brand-d); font-size: 29px; line-height: 1.35; margin-bottom: 14px; }
.hero p { color: var(--ink-2); font-size: 16px; }
.hero .kicker {
  display: inline-block; font-size: 12px; letter-spacing: 1px;
  background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}

/* ---------- 文章配图 ---------- */
.article-img {
  width: 100%; max-width: 520px; display: block;
  margin: 6px auto 20px; border-radius: 12px;
}
.article-img.small { max-width: 360px; }

/* ---------- 排版 ---------- */
h1.page-title { font-size: 28px; line-height: 1.35; margin-bottom: 16px; color: var(--ink); }
h2 { font-size: 21px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); color: var(--ink); }
h3 { font-size: 17px; margin: 20px 0 8px; color: var(--brand-d); }
p { margin-bottom: 14px; color: var(--ink-2); }
.lead { font-size: 17px; color: var(--ink); }
ul, ol { margin: 0 0 16px 22px; color: var(--ink-2); }
li { margin-bottom: 8px; }
strong { color: var(--ink); }
.hl { background: #fff3cd; padding: 1px 4px; border-radius: 3px; }

/* ---------- 提示框 ---------- */
.note { border-radius: 10px; padding: 16px 18px; margin: 18px 0; font-size: 15px; }
.note.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #8a3408; }
.note.warn strong { color: var(--warn); }
.note.ok { background: var(--ok-bg); border: 1px solid #b7e3cd; color: #146b46; }
.note.ok strong { color: var(--ok); }
.note.info { background: var(--brand-l); border: 1px solid #cfe0f7; color: #1a4f8f; }

/* ---------- 套路卡片：识别/应对 ---------- */
.trick {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px; margin-bottom: 16px; background: #fff;
}
.trick h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.trick .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: 0 0 28px;
  background: var(--warn); color: #fff; border-radius: 50%; font-size: 14px; font-weight: 700;
}
.trick .row { margin-top: 10px; font-size: 15px; }
.trick .row b { display: inline-block; min-width: 62px; color: var(--ink-3); font-weight: 600; }
.trick .row.sign b { color: var(--warn); }
.trick .row.act b { color: var(--ok); }

/* ---------- 首页板块导览 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 20px 22px; transition: .18s;
}
.tile:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.tile .ic { font-size: 26px; margin-bottom: 8px; }
.tile h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.tile p { font-size: 14px; margin: 0; color: var(--ink-3); line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.faq-q::before { content: "Q "; color: var(--brand); font-weight: 800; }
.faq-a { color: var(--ink-2); font-size: 15px; }
.faq-a::before { content: "A "; color: var(--ok); font-weight: 800; }

/* ---------- 页脚 ---------- */
.site-foot {
  background: #1d2430; color: #aab3c0; font-size: 13px;
  padding: 30px 18px; text-align: center; line-height: 1.9;
}
.site-foot .foottitle { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.site-foot a { color: #9fc4ef; }

/* ---------- 返回顶部 ---------- */
.totop {
  position: fixed; right: 18px; bottom: 22px;
  background: var(--brand); color: #fff; width: 42px; height: 42px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 14px rgba(29,111,214,.35); z-index: 60;
}
.totop:hover { color: #fff; background: var(--brand-d); text-decoration: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 23px; }
  h1.page-title { font-size: 23px; }
  h2 { font-size: 19px; }
  .card { padding: 20px 18px; }
  .grid { grid-template-columns: 1fr; }
  .nav { padding: 10px 14px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: 13px; padding: 5px 9px; }
}
