/* ============================================================
   四川壹保科技官网 样式表
   设计基调：专业、稳健、可信 —— 深蓝 + 亮蓝，卡片式布局
   ============================================================ */

:root {
  --navy: #0b2447;
  --navy-2: #12346b;
  --primary: #1e5eff;
  --primary-dark: #1748cc;
  --primary-soft: #e8efff;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --text: #22304a;
  --muted: #5c6b84;
  --line: #e3e9f2;
  --ok: #0e9f6e;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(11, 36, 71, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 36, 71, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 36, 71, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-name { font-size: 20px; color: var(--navy); letter-spacing: 0.5px; }
.logo-sub { font-size: 12px; color: var(--muted); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.nav a.active { color: var(--primary); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--navy); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(30, 94, 255, 0.28), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(14, 159, 110, 0.14), transparent 60%),
    linear-gradient(160deg, #0b2447 0%, #12346b 60%, #0d2c5c 100%);
  color: #fff;
  padding: 96px 0 88px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 14px;
  color: #cfe0ff;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.3;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 720px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #7cb0ff, #4ade80);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 17px;
  color: #b9c9e4;
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(30, 94, 255, 0.35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* 数据条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.hero-stats .stat {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.hero-stats .num { font-size: 28px; font-weight: 700; color: #fff; }
.hero-stats .num span { color: #7cb0ff; }
.hero-stats .label { font-size: 13px; color: #9db1d0; margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--navy); line-height: 1.35; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }

/* 服务卡片 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c8d6f0; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
}

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px; left: 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 5px 14px;
  border-radius: 999px;
}
.step h3 { font-size: 17px; color: var(--navy); margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* 优势双栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text .eyebrow { margin-bottom: 12px; }
.split-text h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--navy); line-height: 1.35; margin-bottom: 16px; }
.split-text p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; font-size: 15px; color: var(--text);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9f6e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, var(--primary-soft);
}
.split-visual {
  background: linear-gradient(150deg, #0b2447, #16418f);
  border-radius: 18px;
  padding: 40px 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.split-visual::after {
  content: "";
  position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 28px solid rgba(124, 176, 255, 0.15);
}
.split-visual h3 { font-size: 20px; margin-bottom: 18px; }
.split-visual ul li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
}
.split-visual ul li:last-child { border-bottom: none; }
.split-visual .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex: none; }

/* CTA 横幅 */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 18px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 { font-size: 24px; margin-bottom: 8px; }
.cta-band p { color: #b9c9e4; font-size: 15px; }

/* ---------- 内页头 ---------- */
.page-head {
  background: linear-gradient(160deg, #0b2447 0%, #12346b 70%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-head h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: 1px; margin-bottom: 10px; }
.page-head p { color: #b9c9e4; font-size: 15.5px; }

/* 服务详情 */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block h2 { font-size: 24px; color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.service-block h2 .card-icon { margin: 0; width: 44px; height: 44px; }
.service-block p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.deliver-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.deliver-box h4 { font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.deliver-box ul li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 14px;
  color: var(--text);
}
.deliver-box ul li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* 联系卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card .card-icon { margin: 0 auto 16px; }
.contact-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.contact-card p { font-size: 14.5px; color: var(--muted); }
.contact-card p a { color: var(--primary); font-weight: 600; }

.contact-note {
  margin-top: 40px;
  padding: 22px 26px;
  background: #fff8e6;
  border: 1px solid #f2e3b3;
  border-radius: var(--radius);
  font-size: 14.5px;
  color: #7a5c1e;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #9db1d0; padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-name { color: #fff; }
.footer-brand p { font-size: 13.5px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; font-size: 13.5px; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #9db1d0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .service-block { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 28px; }
}
