:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef2f7;
  --ink: #1a2233;
  --ink-soft: #5a6577;
  --line: #e3e8ef;
  --primary: #2f6df6;
  --primary-dark: #1f4fc4;
  --primary-soft: #e8f0ff;
  --accent: #16b58a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 79, 196, 0.08);
  --shadow-lg: 0 18px 50px rgba(31, 79, 196, 0.14);
  --maxw: 1140px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #5b8bff);
  box-shadow: var(--shadow);
}
.brand-name { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { color: #fff !important; padding: 9px 20px; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(47, 109, 246, 0.12), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(22, 181, 138, 0.12), transparent 60%),
    linear-gradient(180deg, #f7faff, #ffffff);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-eyebrow { letter-spacing: 4px; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.hero-title { font-size: clamp(32px, 6vw, 54px); line-height: 1.15; font-weight: 800; letter-spacing: 1px; }
.hero-sub { margin: 20px auto 32px; font-size: clamp(15px, 2.2vw, 19px); color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--primary); }
.stat span { font-size: 14px; color: var(--ink-soft); }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--primary); background: var(--primary-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.section-desc { margin-top: 14px; color: var(--ink-soft); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.about-text p { color: var(--ink-soft); font-size: 16px; }
.about-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 28px; color: var(--ink); }
.about-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--primary-soft); color: var(--primary); border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.mini-card .mini-icon { font-size: 26px; }
.mini-card h4 { margin: 10px 0 6px; font-size: 16px; }
.mini-card p { font-size: 13px; color: var(--ink-soft); }

/* ---------- 经营范围 ---------- */
.scope-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.scope-badge {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 15px;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 18px;
}
.scope-badge.license { background: #fff1e6; color: #d9760a; border: 1px solid #ffd9b3; }
.scope-badge.general { background: var(--primary-soft); color: var(--primary); border: 1px solid #cfe0ff; }
.scope-items { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5;
}
.chip small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.chip-license { background: #fff7ef; border-color: #ffd9b3; color: #b35e00; flex: 1 1 100%; }

/* ---------- 核心服务 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--primary-soft); margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.contact-form .field { } /* keep simple single column */
.contact-form label { font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form button { width: 100%; margin-top: 4px; }
.form-hint { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-hint.ok { color: var(--accent); }
.form-hint.err { color: #e04545; }

.contact-info { display: grid; gap: 16px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.info-ico { font-size: 22px; }
.info-row strong { display: block; font-size: 14px; color: var(--ink-soft); }
.info-row p { font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #131a2a; color: #c7cfde; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 36px 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { box-shadow: none; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand p { font-size: 13px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #c7cfde; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: #9aa6b8; }
.footer-note { margin-top: 6px; font-size: 12px; color: #7e8aa0; }

/* ---------- H5 自适应（≤768px） ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .28s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }

  .hero { padding: 64px 0 56px; }
  .hero-stats { gap: 26px; margin-top: 40px; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-cards { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .scope-block { padding: 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .about-cards { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .stat strong { font-size: 24px; }
  .brand-name { font-size: 15px; }
}
