/* ============ 长辈用药提醒 · 备案官网 ============
   设计基调：暖色、明亮、大对比、适用各年龄段
   ================================================ */

:root {
  --brand: #f2713b;
  --brand-dark: #d1562a;
  --brand-soft: #fff1e8;
  --accent: #ffb454;
  --ink: #2b2b2b;
  --ink-2: #5a5a5a;
  --ink-3: #8a8a8a;
  --line: #ece7e1;
  --bg: #fffdfa;
  --bg-2: #fbf6f1;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(160, 90, 50, 0.08);
  --shadow-lg: 0 18px 50px rgba(160, 90, 50, 0.14);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

img, svg { max-width: 100%; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--bg { background: var(--bg-2); }
.section--tight { padding: 52px 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: .02em; }
.logo:hover { color: var(--brand-dark); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  object-fit: cover; display: block;
  box-shadow: 0 6px 14px rgba(255, 123, 123, .35);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); font-size: 15px; position: relative; }
.nav a:hover { color: var(--brand-dark); }
.nav a.active { color: var(--brand-dark); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -20px; width: 18px; height: 3px; border-radius: 3px; background: var(--brand);
}

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: 5px 14px;
}
.h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.25; margin: 0 0 18px; font-weight: 800; letter-spacing: -.01em; }
.h2 { font-size: clamp(24px, 3vw, 33px); line-height: 1.35; margin: 0 0 14px; font-weight: 800; }
.h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--ink-3); font-size: 14px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); margin: 0 auto; max-width: 620px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(242, 113, 59, .28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-dark); border-color: #f0d9cd; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 84px; background:
    radial-gradient(1000px 420px at 12% -10%, #ffe6d5 0%, rgba(255,230,213,0) 60%),
    radial-gradient(800px 400px at 100% 0%, #fff5e3 0%, rgba(255,245,227,0) 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px;
}
.chip b { color: var(--brand-dark); }

.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.tick { flex: 0 0 auto; margin-top: 5px; color: var(--brand); font-weight: 700; }

/* ---------- 手机模型 ---------- */
.phone {
  width: 292px; margin: 0 auto; background: #fff; border-radius: 40px; padding: 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative;
}
.phone::before {
  content: ""; position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  width: 84px; height: 22px; background: #f2ede7; border-radius: 999px;
}
.phone-screen {
  margin-top: 14px; border-radius: 30px; background: linear-gradient(180deg, #fff6f0 0%, #ffffff 40%);
  padding: 18px 14px 20px; min-height: 430px;
}
.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; margin-bottom: 11px; }
.ui-title { font-size: 13px; color: var(--ink-3); }
.ui-row { display: flex; align-items: center; gap: 10px; }
.ui-dot { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; font-size: 18px; }
.ui-name { font-weight: 700; font-size: 14px; }
.ui-sub { font-size: 12px; color: var(--ink-3); }
.ui-big { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.ui-pill {
  display: inline-block; background: var(--brand); color: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 12px; font-weight: 700; margin-top: 9px;
}
.ui-bar { height: 6px; border-radius: 6px; background: #f0eae4; overflow: hidden; margin-top: 8px; }
.ui-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.ui-voice {
  margin-top: 12px; background: #2f2f2f; color: #fff; border-radius: 14px; padding: 11px 13px;
  font-size: 12px; display: flex; gap: 9px; align-items: center;
}
.ui-voice b { color: var(--accent); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 2px 10px rgba(160, 90, 50, .04); transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f6ded1; }
.card-icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 24px; margin-bottom: 16px;
}
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 步骤流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -14px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.step h3 { margin: 10px 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 表格 ---------- */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-2); font-size: 14px; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fffaf6; }
td code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- 提示条 ---------- */
.note {
  border-left: 4px solid var(--accent); background: #fffaf1; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; color: var(--ink-2); font-size: 15px; margin: 24px 0;
}
.note b { color: var(--ink); }

/* ---------- 反馈表单 ---------- */
.fb-input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
#fb-name { margin-bottom: 14px; }
#fb-msg { margin-bottom: 16px; resize: vertical; }
#fb .btn { width: 100%; }

/* ---------- 文章页 ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h2 { font-size: 24px; margin: 46px 0 12px; padding-top: 8px; }
.article h3 { font-size: 19px; margin: 30px 0 8px; }
.article p { color: var(--ink-2); }
.article ul, .article ol { color: var(--ink-2); padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .article-head { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article .article-meta { color: var(--ink-3); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #2f2a26; color: #cfc6bf; padding: 54px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 38px; }
.footer-logo { color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer p { margin: 0 0 10px; font-size: 14px; color: #b6aca4; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .04em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: #cfc6bf; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #443d37; padding: 20px 0 26px; font-size: 13px; color: #9d948d;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.beian { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.beian a { color: #cfc6bf; }
.beian a:hover { color: #ffb454; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 110px 0 120px; }
.error-code { font-size: 96px; font-weight: 800; color: var(--brand); line-height: 1; }

/* ---------- 应用卡片 ---------- */
.app-card { display: flex; flex-direction: column; }
.app-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.app-logo {
  width: 64px; height: 64px; border-radius: 18px; flex: 0 0 auto;
  object-fit: cover; box-shadow: 0 8px 20px rgba(255, 123, 123, .30);
}
.app-logo--ph {
  display: grid; place-items: center; background: var(--brand-soft);
  font-size: 30px; box-shadow: none;
}
.app-name { font-size: 20px; font-weight: 800; margin: 0; }
.app-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.app-card p { margin: 0 0 16px; }
.app-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.app-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.app-feats .tick { margin-top: 4px; }
.app-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.app-soon { border-style: dashed; background: #fffdfa; box-shadow: none; }
.app-soon:hover { transform: none; box-shadow: 0 2px 10px rgba(160, 90, 50, .04); border-color: #f0d9cd; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone { width: 268px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px; display: none; box-shadow: 0 16px 30px rgba(0,0,0,.06);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a.active::after { display: none; }
  .header-inner { position: relative; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 60px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .article h2 { font-size: 21px; }
}
