/* ===== 守夜鹰（内蒙古）消防有限公司 业务宣传站 · 样式 ===== */
/* 专业稳重消防风：深蓝 + 警示红 */

:root {
  --navy: #0B2E4F;
  --navy-2: #10395f;
  --navy-deep: #07203a;
  --red: #D7263D;
  --red-dark: #b31e30;
  --gold: #C9A227;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --ink: #1d2733;
  --ink-soft: #5a6675;
  --line: #e3e8ef;
  --shadow: 0 8px 24px rgba(11, 46, 79, 0.10);
  --shadow-sm: 0 4px 12px rgba(11, 46, 79, 0.08);
  --radius: 10px;
  --maxw: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 46, 79, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 2px solid var(--red);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  flex: none;
}
.brand .brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand .brand-sub { font-size: 11px; color: #b9c6d6; letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #d7e0ea; font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 3px;
  background: var(--red); border-radius: 2px;
}
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
}
.nav-phone:hover { background: var(--red-dark); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(215,38,61,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-2));
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .5;
}
.hero-inner { position: relative; padding: 84px 0 72px; }
.hero .eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 3px;
  font-size: 13px; border: 1px solid rgba(201,162,39,.5); padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.18; font-weight: 900; letter-spacing: 1px; }
.hl { color: var(--red); }
.hero p.lead { margin-top: 18px; font-size: 18px; color: #c8d4e2; max-width: 640px; }
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215,38,61,.35); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }

/* Hero 数据条 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 22px 20px;
}
.stat .num { font-size: 34px; font-weight: 900; color: var(--gold); line-height: 1; }
.stat .num small { font-size: 18px; }
.stat .label { margin-top: 8px; color: #c2cedd; font-size: 14px; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .tag { color: var(--red); font-weight: 800; letter-spacing: 2px; font-size: 13px; }
.section-head h2 { font-size: 32px; font-weight: 900; margin-top: 10px; color: var(--navy); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

/* ===== 业务卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .18s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red); }
.card .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(11,46,79,.07); color: var(--navy); margin-bottom: 16px;
}
.card:hover .ic { background: var(--red); color: #fff; }
.card h3 { font-size: 18px; color: var(--navy); font-weight: 800; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--red); font-weight: 700; font-size: 14px; }

/* 业务页分节 */
.biz-block {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.biz-block:last-child { border-bottom: 0; }
.biz-block .biz-no {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 18px; margin-bottom: 14px;
}
.biz-block h3 { font-size: 24px; color: var(--navy); font-weight: 900; }
.biz-block .desc { margin-top: 12px; color: var(--ink-soft); }
.biz-block .meta { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.biz-block .meta h4 { color: var(--red); font-size: 14px; letter-spacing: 1px; margin-bottom: 10px; }
.biz-block .meta li { padding: 7px 0 7px 20px; position: relative; font-size: 14px; color: var(--ink); }
.biz-block .meta li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }

/* ===== 公司简介 ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; }
.about h2 { font-size: 30px; color: var(--navy); font-weight: 900; }
.about p { margin-top: 16px; color: var(--ink-soft); }
.about .hl-red { color: var(--red); font-weight: 700; }
.about-photo {
  aspect-ratio: 4/3; border-radius: var(--radius); background:
    linear-gradient(135deg, var(--navy), var(--navy-2));
  display: grid; place-items: center; color: rgba(255,255,255,.5); text-align: center;
  border: 1px dashed rgba(255,255,255,.25); font-size: 14px; padding: 20px;
}

/* ===== 资质荣誉墙 ===== */
.honors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.honor {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 22px 16px; text-align: center;
}
.honor .h-ic { color: var(--gold); margin-bottom: 10px; }
.honor .h-title { font-weight: 800; color: var(--navy); font-size: 15px; }
.honor .h-sub { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

/* ===== 客户名录 ===== */
.clients { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.client-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; color: var(--navy); font-size: 15px;
  transition: border-color .2s, color .2s;
}
.client-chip:hover { border-color: var(--red); color: var(--red); }

/* ===== 新闻动态 ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-2), var(--navy)); display: grid; place-items: center; color: rgba(255,255,255,.45); font-size: 13px; }
.news-body { padding: 18px 20px 22px; }
.news-body .date { color: var(--red); font-size: 13px; font-weight: 700; }
.news-body h4 { margin-top: 8px; font-size: 17px; color: var(--navy); font-weight: 800; }
.news-body p { margin-top: 8px; color: var(--ink-soft); font-size: 14px; }

/* ===== CTA 条 ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff; border-radius: 16px; padding: 48px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(215,38,61,.4), transparent 70%); }
.cta-band h2 { font-size: 30px; font-weight: 900; }
.cta-band p { margin-top: 12px; color: #c8d4e2; }
.cta-band .cta-row { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 页脚 ===== */
.footer { background: var(--navy-deep); color: #aebbcb; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.footer .f-brand { color: #fff; font-weight: 800; font-size: 19px; display: flex; gap: 10px; align-items: center; }
.footer p { margin-top: 12px; font-size: 14px; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul li { font-size: 14px; padding: 5px 0; }
.footer ul li a:hover { color: #fff; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact .ic { color: var(--gold); flex: none; margin-top: 3px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; color: #7e8 da0; }
.footer-bottom { color: #7e8da0; }

/* ===== 联系页 ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.info-card h3 { color: var(--navy); font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(11,46,79,.07); color: var(--navy); display: grid; place-items: center; flex: none; }
.info-row .k { font-size: 13px; color: var(--ink-soft); }
.info-row .v { font-size: 16px; color: var(--ink); font-weight: 600; }
.info-row .v a:hover { color: var(--red); }

.map-box {
  aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #e8eef5, #d7e0ea);
  display: grid; place-items: center; color: var(--ink-soft); text-align: center;
  border: 1px dashed var(--line); font-size: 14px; padding: 20px;
  cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; text-decoration: none;
}
.map-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); border-style: solid; }
.map-box .map-ic { font-size: 34px; }
.map-box .map-t { font-size: 18px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.map-box .map-s { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.qr-box {
  margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.qr-placeholder {
  width: 168px; height: 168px; margin: 0 auto 12px; border-radius: 10px;
  background: repeating-linear-gradient(45deg, #fff, #fff 8px, #eef2f7 8px, #eef2f7 16px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; text-align: center;
}
.qr-box .qr-cap { font-weight: 700; color: var(--navy); }
.qr-box .qr-tip { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ===== 回到顶部 ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  border-radius: 12px; background: var(--red); color: #fff; border: 0; cursor: pointer;
  display: none; place-items: center; box-shadow: 0 8px 20px rgba(215,38,61,.4); z-index: 60;
}
.to-top.show { display: grid; }

/* ===== 图文 Hero（宣传册版） ===== */
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.brand-lines { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }
.brand-lines span { font-size: 22px; font-weight: 800; letter-spacing: 6px; color: #dfe7f0; }
.brand-lines span b { color: var(--red); }
.hero-photo {
  border-radius: 14px; overflow: hidden; box-shadow: 0 18px 46px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }

/* 导航 Logo 图 */
.brand .logo-img { height: 46px; width: auto; display: block; }

/* ===== 资质徽章 ===== */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; transition: transform .18s, box-shadow .2s;
}
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert .c-ic { font-size: 30px; margin-bottom: 10px; }
.cert .c-title { font-weight: 800; color: var(--navy); font-size: 15px; }
.cert .c-sub { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

/* ===== 业绩案例 ===== */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.case-item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 8px; padding: 16px 18px; font-size: 14px;
}
.case-item b { color: var(--navy); display: block; font-size: 15px; }
.case-item span { color: var(--ink-soft); }

/* ===== 企业理念 ===== */
.philo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.philo .p-item { background: #fff; border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 24px 22px; }
.philo .p-item:nth-child(2) { border-top-color: var(--red); }
.philo .p-item:nth-child(3) { border-top-color: var(--gold); }
.philo .p-item h4 { color: var(--navy); font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.philo .p-item p { color: var(--ink-soft); font-size: 14px; }

@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .stats-4 { grid-template-columns: 1fr 1fr; }
  .certs { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .philo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand .logo-img { height: 38px; }
  .brand-lines span { font-size: 17px; letter-spacing: 4px; }
}

/* ===== 施工资质证书墙 ===== */
.cert-gallery-title { margin: 40px 0 18px; font-size: 20px; color: var(--navy); }
.cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-gallery figure {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.cert-gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.cert-gallery figcaption { padding: 13px 15px; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); border-top: 1px solid var(--line); }
.cert-gallery figcaption b { color: var(--navy); }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .cert-gallery { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .honors { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .biz-block { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-deep);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 20px 20px;
    transform: translateY(-130%); transition: transform .25s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links a.active::after { display: none; }
  .nav-phone { margin-top: 12px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .honors { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .cta-band h2 { font-size: 24px; }
}
