/* 安护家官网 · 共享样式（P1）
   视觉基线参考 D:/develop/bazi/www-site：米绿底 / 松绿主色 / 暖金点缀 / 深绿页脚 */

:root {
  --bg: #f6f8f4;
  --panel: #ffffff;
  --panel-soft: #edf5ef;
  --text: #26332c;
  --muted: #657269;
  --line: #dce7df;
  --primary: #2f6f5e;
  --primary-dark: #214f43;
  --accent: #d89a4a;
  --shadow: 0 14px 38px rgba(35, 57, 45, 0.09);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.28; margin: 0; letter-spacing: 0; }
p { margin: 0; }
svg { display: block; }
section[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 12px; }

/* ---------- 导航 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: block; width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; font-weight: 800; color: var(--primary-dark); letter-spacing: 1px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.is-active { color: var(--primary-dark); font-weight: 700; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 24px; color: var(--primary-dark); line-height: 1; cursor: pointer; padding: 4px 8px; }
.nav-links .nav-menu-cta { display: none; }
.nav-cta { min-height: 38px; padding: 8px 16px; font-size: 14px; flex-shrink: 0; }

/* ---------- 通用组件 ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border: 1px solid var(--primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background .15s ease, border-color .15s ease;
}
.button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.button.secondary { background: #fff; color: var(--primary); }
.button.secondary:hover { background: var(--panel-soft); border-color: var(--primary); }
.button.small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.button:disabled:hover { background: var(--primary); border-color: var(--primary); }
.button.secondary:disabled:hover { background: #fff; }
.eyebrow { color: var(--primary); font-size: 14px; font-weight: 700; margin-bottom: 12px; }

.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card, .notice, .about-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(35, 57, 45, 0.05);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--panel-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.card-link:hover { color: var(--primary-dark); text-decoration: underline; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { border: 1px solid var(--line); background: #f9fbf9; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 13px; }

/* ---------- 首屏 ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 24px 68px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 48px; }
.hero p.hero-lead { font-size: 18px; color: var(--muted); margin: 22px 0 0; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.card-badge {
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  background: var(--panel-soft);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.card-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.field-list { margin: 0; }
.field { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.field dt { font-size: 13px; color: var(--muted); }
.field dd { margin: 0; font-size: 14px; }
.status-ok { color: var(--primary-dark); font-weight: 700; }
.status-ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: middle; }
.card-note { font-size: 12px; color: var(--muted); margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- 流程 / 把关 ---------- */
.process { counter-reset: step; }
.process .card::before {
  counter-increment: step;
  content: counter(step);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}
.check-list, .boundary-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li, .boundary-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.check-list li::before { content: "✓"; color: var(--primary); font-weight: 800; margin-right: 8px; }
.boundary-list li::before { content: "·"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.about-grid h2 { font-size: 32px; margin-bottom: 18px; }
.about-grid p { color: var(--muted); margin-top: 12px; }
.about-panel h3 { font-size: 18px; }

/* ---------- 资讯 ---------- */
.article-list { display: grid; gap: 16px; }
.article-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.article-meta { color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.article-item h3 { font-size: 18px; }
.article-item p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.article-footnote { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ---------- 服务边界 ---------- */
.notice { background: #fffdf7; border-color: #ead9b6; padding: 30px; }
.notice h2 { font-size: 26px; }
.notice > p { color: var(--text); margin-top: 14px; font-size: 15px; }
.notice .boundary-list li { border-top-color: #efe3c8; }

/* ---------- 底部 CTA ---------- */
.cta { background: var(--primary); color: #fff; }
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.cta .eyebrow { color: #cfe6d9; }
.cta h2 { font-size: 30px; }
.cta p { color: rgba(255, 255, 255, .86); margin-top: 12px; }
.contact-lines { margin-top: 20px; display: grid; gap: 4px; }
.contact-lines p { margin: 0; font-size: 14px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta .button { width: 100%; background: #fff; color: var(--primary-dark); border-color: #fff; }
.cta .button:hover { background: var(--panel-soft); border-color: var(--panel-soft); }
.cta .button.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta .button.secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.cta-hint { font-size: 12px; color: rgba(255, 255, 255, .72); text-align: center; margin-top: 2px; }

/* ---------- 页脚 ---------- */
.footer { background: #20342b; color: rgba(255, 255, 255, .82); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer p { margin: 6px 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.footer strong { color: #fff; font-size: 15px; display: block; margin-bottom: 10px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; margin: 0; }

/* ---------- 系统升级中提示层 ---------- */
.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 40, 32, .55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.notice-dialog {
  position: relative;
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  padding: 28px;
}
.notice-dialog h2 { font-size: 22px; }
.notice-dialog p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.dialog-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--panel-soft);
  color: var(--primary);
  font-size: 22px; font-weight: 800;
  margin-bottom: 16px;
}
.dialog-meta {
  margin-top: 18px;
  padding: 14px;
  background: var(--panel-soft);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.notice-close {
  position: absolute;
  top: 10px; right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.notice-close:hover { color: var(--primary-dark); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .cta-inner, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { gap: 14px; font-size: 13px; }
}
@media (max-width: 860px) {
  .nav-inner { align-items: flex-start; }
  .nav-toggle { display: block; }
  .navbar .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    left: 24px; right: 24px; top: 64px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    font-size: 15px;
  }
  .navbar.open .nav-links { display: flex; }
  .nav-links a { padding: 8px 4px; }
  .nav-links .nav-menu-cta { display: inline-flex; margin-top: 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; gap: 36px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 56px 24px; }
  .section-head h2, .about-grid h2 { font-size: 26px; }
  .grid.three, .grid.four { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .cta h2 { font-size: 24px; }
  .footer-bottom-inner { flex-direction: column; }
}
