/* =========================================================
   山西康众科技有限公司 · 官网（单页精简版）
   纯静态 · 无外部依赖 · PC 优先（兼顾平板）
   ========================================================= */

/* ---------- 设计令牌 ---------- */
:root {
  --c-primary: #0a5eb5;
  --c-primary-dark: #073e78;
  --c-primary-light: #e7f1fb;
  --c-accent: #00a39b;
  --c-accent-dark: #007a74;
  --c-warn: #c27600;
  --c-warn-bg: #fff6e6;
  --c-ink: #16222e;
  --c-ink-2: #4a5a6a;
  --c-ink-3: #7c8a99;
  --c-line: #e3e9f0;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f8fc;
  --c-bg-dark: #0c2c4d;

  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 2px 8px rgba(10, 94, 181, 0.06);
  --shadow-2: 0 12px 30px rgba(10, 94, 181, 0.10);

  --maxw: 1080px;
  --nav-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--c-bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: 2px; color: var(--c-accent); margin-bottom: 12px;
}
.section__title { font-size: 32px; }
.section__sub { margin-top: 14px; color: var(--c-ink-2); font-size: 17px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-2); }
.btn--primary:hover { background: #0a6fcf; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- 顶栏（仅品牌，无菜单） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 44, 77, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; color: #fff; }
.brand__name { font-size: 18px; font-weight: 700; line-height: 1.1; }
.brand__name small { display: block; font-size: 11px; font-weight: 500; color: #9fc0e0; letter-spacing: 1px; }
.nav__beian {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: #bfe3ff;
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 999px;
}
.nav__beian svg { width: 15px; height: 15px; color: var(--c-accent); flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(0,163,155,.38), transparent 60%),
    linear-gradient(120deg, #073e78 0%, #0a5eb5 60%, #0a7fcf 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 72% 30%, #000, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; padding: 84px 0 64px; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 7px 16px; border-radius: 999px; font-size: 14px; margin-bottom: 22px;
}
.hero h1 { font-size: 44px; color: #fff; }
.hero__lead { margin: 18px auto 0; max-width: 56ch; font-size: 19px; color: #d9eafb; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__stats {
  margin-top: 52px; display: flex; gap: 30px; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 30px;
}
.hero__stat b { font-size: 30px; display: block; color: #fff; }
.hero__stat span { color: #a9c8e8; font-size: 14px; }

/* ---------- 信息卡 ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-md); padding: 28px 26px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #cfe0f2; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c-primary-light); color: var(--c-primary); margin-bottom: 16px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--c-ink-2); font-size: 15px; }
.card p strong { color: var(--c-ink); font-weight: 600; }

/* ---------- 经营范围标签云 ---------- */
.biz-panel {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 34px 34px 26px;
  box-shadow: var(--shadow-1);
}
.biz-panel + .biz-panel { margin-top: 26px; }
.biz-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.biz-panel__head svg { width: 26px; height: 26px; flex: none; }
.biz-panel__head h3 { font-size: 20px; }
.biz-panel__head small {
  font-size: 13px; color: var(--c-ink-3); margin-left: auto;
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 15px; border: 1px solid transparent;
}
.tag svg { width: 15px; height: 15px; flex: none; }
.tag--normal { background: var(--c-primary-light); color: var(--c-primary-dark); }
.tag--normal svg { color: var(--c-primary); }
.tag--license { background: var(--c-warn-bg); color: #8a5a00; border-color: #ffe1a8; }
.tag--license svg { color: var(--c-warn); }

/* ---------- 联系卡 ---------- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.contact-card__icon {
  width: 50px; height: 50px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c-primary-light); color: var(--c-primary);
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { color: var(--c-ink-2); font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--c-bg-dark); color: #c6d8ec; padding: 46px 0 0; font-size: 15px; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer__about p { color: #9fb6d0; font-size: 14px; margin-top: 12px; }
.footer__contact li { display: flex; gap: 10px; padding: 5px 0; color: #b9cde2; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--c-accent); }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center;
  color: #8aa2bd; font-size: 13px; line-height: 1.9;
}
.footer__bar .beian { color: #a9c8e8; }

/* ---------- 返回顶部 ---------- */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-primary); color: #fff; border: 0;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .2s;
}
.totop.show { opacity: 1; visibility: visible; }
.totop:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid--3, .contact-cards { grid-template-columns: 1fr 1fr; }
  .footer__main { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero__inner { padding: 60px 0 48px; }
}
@media (max-width: 640px) {
  .grid--3, .contact-cards { grid-template-columns: 1fr; }
  .nav__beian { display: none; }
  .section { padding: 52px 0; }
  .section__title { font-size: 26px; }
  .hero h1 { font-size: 28px; }
  .hero__stats { gap: 20px; }
  .biz-panel { padding: 24px 20px 18px; }
}
