/* ============================================================
   智能充电宝 SmartCharger — 官网样式
   纯静态、无依赖，可直接部署到阿里云 ECS / OSS / 虚拟主机
   ============================================================ */

:root {
  --primary: #0e9f6e;          /* 品牌绿：能量 / 电池 */
  --primary-dark: #0a7a55;
  --primary-light: #e6f7f0;
  --ink: #1a2233;
  --ink-2: #5a6478;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 159, 110, .10);
}

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

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef1f0;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #19c37d);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
@media (max-width: 640px) { .nav-links { gap: 14px; font-size: 14px; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(25, 195, 125, .18), transparent),
    radial-gradient(500px 260px at 10% 110%, rgba(14, 159, 110, .12), transparent),
    var(--bg-alt);
  padding: 88px 0 72px;
  text-align: center;
}
.hero .badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; line-height: 1.25; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.sub { max-width: 640px; margin: 18px auto 30px; color: var(--ink-2); font-size: 17px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #dde3e0; }

@media (max-width: 640px) { .hero { padding: 60px 0 50px; } .hero h1 { font-size: 30px; } }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 10px; }
.section .lead { text-align: center; color: var(--ink-2); max-width: 640px; margin: 0 auto 44px; }
@media (max-width: 640px) { .section { padding: 52px 0; } .section h2 { font-size: 24px; } }

/* ---------- 功能卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid #edf0ee; border-radius: var(--radius);
  padding: 26px 22px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--ink-2); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid #edf0ee; border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid #edf0ee; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 20px; font-weight: 400; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ---------- 联系卡片 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid #edf0ee; border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.contact-card .ico {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--ink-2); word-break: break-all; }

/* ---------- 正文页（隐私政策等） ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 20px; text-align: left; margin: 34px 0 10px; }
.prose h3 { font-size: 16px; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 15px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 8px 0; }
.prose li { margin-bottom: 4px; }
.page-head { padding: 64px 0 12px; text-align: center; }
.page-head h1 { font-size: 32px; }
.page-head .updated { color: var(--ink-2); font-size: 13px; margin-top: 8px; }

/* ---------- 页脚 ---------- */
.footer { background: #101826; color: #9aa6b8; padding: 40px 0 30px; font-size: 14px; }
.footer a { color: #c3cdd9; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-bottom: 22px; border-bottom: 1px solid #1f2a3a; margin-bottom: 18px;
}
.footer .brand { color: #fff; }
.footer small { color: #6b7a8d; }
.footer .beian { margin-top: 10px; font-size: 13px; color: #6b7a8d; }
.footer .beian a { color: #6b7a8d; }
.footer .beian a:hover { color: #fff; }

/* ---------- 提示条 ---------- */
.note {
  background: #fff8e6; border: 1px solid #ffe1a8; color: #8a6100;
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 20px auto;
  max-width: 760px;
}
