/* ============================================================
   「救我」官网样式
   主题：红 + 深色，专业、可信、响应式
   ============================================================ */

:root {
  --primary: #E5484D;
  --primary-dark: #C93A3F;
  --primary-soft: #FDEBEC;
  --ink: #1A1D1F;
  --ink-2: #3A4147;
  --muted: #6B7178;
  --line: #E8EAED;
  --bg: #FFFFFF;
  --bg-soft: #F7F8F9;
  --bg-dark: #16181A;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 24px rgba(16, 24, 40, 0.08);
  --maxw: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(229, 72, 77, 0.3);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }
.nav-cta {
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(229, 72, 77, 0.28);
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; }

/* 移动端导航 */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, #2A1B1C 0%, var(--bg-dark) 55%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 20px 96px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.16);
  border: 1px solid rgba(229, 72, 77, 0.35);
  color: #FFB3B5;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero h1 .hl { color: var(--primary); }
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(229, 72, 77, 0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat b { font-size: 24px; font-weight: 800; display: block; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 20px; }
.section-alt { background: var(--bg-soft); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.3px; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* 特性卡片 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* 权限表格区 */
.perms-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.perms-table th, .perms-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.perms-table th { background: var(--bg-soft); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.perms-table tr:last-child td { border-bottom: none; }
.perms-table td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- 内容页（政策文档） ---------- */
.page-body { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.page-head { margin-bottom: 36px; }
.page-head .kicker { font-size: 13px; color: var(--primary); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.page-head h1 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; }
.page-head .meta { color: var(--muted); font-size: 14px; }
.doc {
  font-size: 15.5px;
  color: var(--ink-2);
}
.doc h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.doc h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.doc table th, .doc table td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.doc table th { background: var(--bg-soft); font-weight: 600; }
.doc .note {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-size: 14.5px;
  color: #7A2E31;
}
.doc .warn {
  background: #FFF7E6;
  border-left: 4px solid #F5A623;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  font-size: 14.5px;
  color: #7A5A1E;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.6); padding: 48px 20px 32px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-cols h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-cols a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 9px; }
.footer-cols a:hover { color: #fff; text-decoration: none; }
.footer-brand p { font-size: 14px; margin-top: 10px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 20px 72px; }
  .perms-table { font-size: 13px; }
  .perms-table th, .perms-table td { padding: 10px 12px; }
}
