/* ============================================================
   舒心伴官网 - 共享样式（App 品牌风格）
   品牌蓝 #2ca1fb → #5bb6ed | 四川舒心伴生活服务有限公司 | 1p3.cn
   ============================================================ */

@font-face {
  font-family: "AlimamaShuHeiTi";
  src: url("../fonts/AlimamaShuHeiTi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #2ca1fb;
  --blue-2: #5bb6ed;
  --blue-deep: #1f8fe8;
  --grad: linear-gradient(135deg, #5bb6ed 0%, #2ca1fb 100%);
  --grad-btn: linear-gradient(0deg, #2ca1fb, #5bb6ed);
  --blue-bg: #eaf6ff;
  --text: #191919;
  --muted: #88969f;
  --bg: #f5fafe;
  --border: #e6eef5;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(44, 161, 251, 0.10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; vertical-align: middle; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 38px; height: 38px; border-radius: 9px; }
.logo .logo-name {
  font-family: "AlimamaShuHeiTi", "PingFang SC", sans-serif;
  font-size: 21px; color: var(--text); letter-spacing: 1px;
}
.site-nav { display: flex; gap: 30px; font-size: 15px; }
.site-nav a { color: var(--muted); padding: 6px 2px; transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); font-weight: 600; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; line-height: 0; color: var(--text);
}

/* ---------------- 首屏 Banner ---------------- */
.hero { background: linear-gradient(180deg, #d9f0fe 0%, #f3fbff 70%, #fff 100%); padding: 34px 0 26px; }
.hero-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-banner img { width: 100%; display: block; }
.hero-title {
  text-align: center; margin-top: 26px;
  font-family: "AlimamaShuHeiTi", "PingFang SC", sans-serif;
  font-size: 30px; letter-spacing: 2px;
}
.hero-title .hl { color: var(--blue); }
.hero-slogan { text-align: center; color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-badges span {
  background: #fff; border: 1px solid #cfe8fc; color: var(--blue-deep);
  padding: 5px 16px; border-radius: 999px; font-size: 13.5px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 11px 32px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; transition: all 0.2s; cursor: pointer;
}
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 6px 16px rgba(44, 161, 251, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(44, 161, 251, 0.45); }
.btn-ghost { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: var(--blue-bg); }

/* ---------------- 子页面 Banner ---------------- */
.page-banner {
  background:
    url("../img/safety-bg.png") right -60px top -70px / 340px no-repeat,
    linear-gradient(115deg, #d9f0fe 0%, #eaf6ff 55%, #f3fbff 100%);
  text-align: left; padding: 48px 0;
}
.page-banner h1 {
  font-family: "AlimamaShuHeiTi", "PingFang SC", sans-serif;
  font-size: 30px; letter-spacing: 2px;
}
.page-banner h1 .hl { color: var(--blue); }
.page-banner p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------------- 通用 Section ---------------- */
.section { padding: 60px 0; }
.section.alt { background: var(--bg); }
.section-title { text-align: center; font-size: 26px; margin-bottom: 10px; }
.section-title .hl { color: var(--blue); }
.section-desc { text-align: center; color: var(--muted); margin-bottom: 40px; font-size: 15px; }

/* ---------------- 金刚区（分类入口） ---------------- */
.kingkong {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 12px;
}
.kk-item { text-align: center; transition: transform 0.2s; }
.kk-item:hover { transform: translateY(-3px); }
.kk-item img { width: 62px; height: 62px; border-radius: 15px; }
.kk-item p { font-size: 14px; margin-top: 8px; color: var(--text); }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 17.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .icon-img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: var(--blue-bg); color: var(--blue);
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- 服务流程 ---------------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.step { text-align: center; padding: 8px 6px; }
.step-num {
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(44, 161, 251, 0.35);
}
.step h3 { font-size: 15.5px; margin-bottom: 5px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------------- 列表 ---------------- */
.check-list { list-style: none; }
.check-list li {
  padding-left: 30px; position: relative; margin-bottom: 12px; color: #334155;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ca1fb' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ---------------- 安全反诈 ---------------- */
.safety-box {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 26px; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px; border: 1px solid var(--border);
}
.safety-box img { border-radius: 14px; }

/* ---------------- 文档页（协议/隐私政策） ---------------- */
.doc { max-width: 820px; margin: 0 auto; padding: 44px 20px 72px; }
.doc h1 { font-size: 26px; text-align: center; margin-bottom: 10px; }
.doc .doc-meta {
  text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 36px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.doc h2 {
  font-size: 19px; margin: 30px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--blue);
}
.doc h3 { font-size: 16px; margin: 18px 0 8px; }
.doc p { margin-bottom: 12px; color: #334155; font-size: 15px; }
.doc ul, .doc ol { margin: 0 0 14px 24px; color: #334155; font-size: 15px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc .doc-contact { color: var(--blue-deep); font-weight: 600; }

/* ---------------- 联系页 ---------------- */
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); text-align: center;
}
.contact-card h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.contact-card .value { font-size: 19px; font-weight: 700; color: var(--blue-deep); }
.contact-card .tip { font-size: 13px; color: var(--muted); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq-item h3 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14.5px; }

/* ---------------- CTA ---------------- */
.cta-box { text-align: center; }
.cta-box p { color: var(--muted); margin-bottom: 22px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0c3350; color: #9db8cc; padding: 40px 0 28px; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; }
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-links a { color: #cfe2f0; margin: 0 14px; }
.footer-links a:hover, .site-footer a:hover { color: #fff; }
.footer-line { line-height: 1.9; }
.footer-beian a { color: #7d9cb5; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 6px 20px 14px; border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(44, 161, 251, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: none; }

  .hero { padding: 18px 0 20px; }
  .hero-title { font-size: 23px; }
  .kingkong { grid-template-columns: repeat(4, 1fr); gap: 16px 6px; padding: 20px 8px; }
  .kk-item img { width: 50px; height: 50px; border-radius: 12px; }
  .kk-item p { font-size: 12.5px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .page-banner { padding: 36px 0; background-size: 240px; background-position: right -50px top -50px; }
  .page-banner h1 { font-size: 24px; }
  .safety-box { grid-template-columns: 1fr; padding: 24px; }
}
