/* =========================================================
   鼎福卫 · 企业官网 全局样式
   风格：简约 · 大气 · 洁净科技
   ========================================================= */

:root {
  --blue-900: #0B2545;
  --blue-800: #102E54;
  --blue-700: #13315C;
  --blue-600: #1B4F8A;
  --blue-500: #2D6CB5;
  --blue-400: #4F8AD0;
  --accent: #15B5C4;
  --accent-soft: #E6F5F7;
  --ink: #16243A;
  --muted: #5C6B7E;
  --line: #E4EBF2;
  --bg: #FFFFFF;
  --bg-soft: #F4F8FB;
  --bg-dark: #0B2545;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(16, 46, 84, .06);
  --shadow-md: 0 14px 40px rgba(16, 46, 84, .10);
  --shadow-lg: 0 24px 60px rgba(16, 46, 84, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .25s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(21, 181, 196, .35);
}
.btn-primary:hover { background: #11a0ad; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(21, 181, 196, .42); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-dark {
  background: var(--blue-700);
  color: #fff;
}
.btn-dark:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-ghost {
  background: var(--accent-soft);
  color: var(--blue-700);
}
.btn-ghost:hover { background: #d7eef1; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--blue-900);
  letter-spacing: 1px;
}
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 6px;
  display: block;
  object-fit: contain;
  background: #fff;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-700);
  transition: all .2s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--blue-900); }
.nav-links a.active { background: var(--blue-700); color: #fff; }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--blue-900); border-radius: 2px; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 37, 69, .92) 0%, rgba(11, 37, 69, .72) 45%, rgba(11, 37, 69, .35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: 1px; margin-bottom: 22px;
}
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
  max-width: 760px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  max-width: 600px;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 26px;
}
.hero-stats .hs { padding-right: 40px; margin-right: 40px; border-right: 1px solid rgba(255,255,255,.18); }
.hero-stats .hs:last-child { border-right: none; margin-right: 0; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .num span { color: var(--accent); font-size: 18px; }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ---------------- Section ---------------- */
section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--blue-900);
  line-height: 1.25;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.section-dark .section-head p { color: rgba(255,255,255,.78); }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ico {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--blue-600);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800;
  margin-bottom: 20px;
}
.card h3 { font-size: 19px; font-weight: 700; color: var(--blue-900); margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }

/* 痛点→解法 对照 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .col { border-radius: var(--radius); padding: 30px; }
.compare .bad { background: #FFF3F1; border: 1px solid #FBD9D2; }
.compare .good { background: var(--accent-soft); border: 1px solid #BFE7EC; }
.compare h4 { font-size: 17px; margin-bottom: 8px; display:flex; align-items:center; gap:8px; }
.compare .bad h4 { color: #C24A36; }
.compare .good h4 { color: var(--blue-700); }
.compare ul li { position: relative; padding-left: 22px; margin: 10px 0; font-size: 15px; color: var(--ink); }
.compare .bad ul li::before { content: "✕"; position: absolute; left: 0; color: #D9694F; font-weight: 700; }
.compare .good ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------------- 数据带 ---------------- */
.stats-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--accent); line-height: 1; }
.stat .num small { font-size: 18px; color: #fff; font-weight: 600; }
.stat .lbl { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.82); letter-spacing: .5px; }

/* ---------------- 应用场景 ---------------- */
.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  border: 1px solid var(--line);
}
.app-card .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.app-card:hover .bg { transform: scale(1.08); }
.app-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,37,69,0) 30%, rgba(11,37,69,.9) 100%); }
.app-card .txt { position: relative; z-index: 2; padding: 26px; }
.app-card .txt h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.app-card .txt p { font-size: 14px; color: rgba(255,255,255,.82); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; min-width: 640px; }
table.spec th, table.spec td { padding: 15px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
table.spec thead th { background: var(--blue-700); color: #fff; font-weight: 600; letter-spacing: .5px; }
table.spec tbody tr:nth-child(even) { background: var(--bg-soft); }
table.spec tbody tr:last-child td { border-bottom: none; }
table.spec td:first-child { font-weight: 600; color: var(--blue-900); }
table.spec .val { color: var(--accent); font-weight: 700; }

/* 对比表（带胜负标记） */
.cmp-table { min-width: 760px; }
.cmp-table .win { color: var(--accent); font-weight: 800; }
.cmp-table td:nth-child(2), .cmp-table td:nth-child(3) { font-variant-numeric: tabular-nums; }

/* ---------------- 产品橱窗 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .ph {
  height: 220px; background-size: cover; background-position: center;
}
.product-card .body { padding: 24px 24px 28px; }
.product-card .body h3 { font-size: 18px; color: var(--blue-900); margin-bottom: 10px; font-weight: 700; }
.product-card .body p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.product-card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.product-card .tags span { font-size: 12px; background: var(--accent-soft); color: var(--blue-700); padding: 5px 12px; border-radius: 999px; }

/* ---------------- 时间线 / 服务流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-700); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.step h4 { margin-top: 8px; font-size: 17px; color: var(--blue-900); }
.step p { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------------- 资质认证 ---------------- */
.certs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cert {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 24px;
  display: flex; align-items: center; gap: 12px; min-width: 200px;
  transition: all .25s ease;
}
.cert:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cert .c-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--blue-600); display:grid; place-items:center; font-weight:800; }
.cert .c-txt b { display: block; font-size: 15px; color: var(--blue-900); }
.cert .c-txt span { font-size: 12px; color: var(--muted); }

/* ---------------- 关于我们 ---------------- */
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-hero .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 380px; background-size: cover; background-position: center; }
.about-hero h2 { font-size: clamp(26px, 3vw, 38px); color: var(--blue-900); font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.about-hero p { color: var(--muted); margin-bottom: 16px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.feature-list li .fi { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 14px; font-weight: 800; margin-top: 2px; }
.feature-list li b { color: var(--blue-900); }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .ci { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci:last-child { border-bottom: none; }
.contact-info .ci .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--blue-600); display: grid; place-items: center; font-size: 20px; }
.contact-info .ci b { display: block; color: var(--blue-900); font-size: 15px; }
.contact-info .ci span { color: var(--muted); font-size: 15px; }
/* 联系人卡片 */
.contact-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.person-card {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.person-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.person-avatar {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; letter-spacing: 1px;
}
.person-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-name { font-size: 16px; color: var(--blue-900); }
.person-role { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; line-height: 1.4; }
.person-line {
  font-size: 13.5px; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px;
  overflow-wrap: anywhere;
}
.person-line:hover { color: var(--accent); }
.person-line .em { font-size: 13px; line-height: 1; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 20px; color: var(--blue-900); margin-bottom: 6px; }
.form-card p.sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--blue-700); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea, .field select {
  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);
  transition: border-color .2s ease; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------------- CTA 区 ---------------- */
.cta {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
  border-radius: 24px;
  padding: 60px 50px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before { content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%; background: rgba(21,181,196,.25); }
.cta::after { content:""; position:absolute; left:-40px; bottom:-80px; width:200px; height:200px; border-radius:50%; background: rgba(21,181,196,.15); }
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; position: relative; z-index: 2; }
.cta p { margin: 14px auto 28px; max-width: 560px; color: rgba(255,255,255,.85); position: relative; z-index: 2; }
.cta .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.72); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,.7); margin: 9px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.5); display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
/* ICP 备案号（工信部要求：置于页脚并链接至 beian.miit.gov.cn） */
.footer-icp { margin-top: 12px; text-align: center; font-size: 13px; line-height: 1.6; }
.footer-icp a { color: rgba(255,255,255,.62); text-decoration: none; letter-spacing: .4px; transition: color .2s; }
.footer-icp a:hover { color: #fff; text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .nav-links {
    position: absolute; 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: 10px 16px 18px; display: none; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .grid-4, .grid-3, .product-grid, .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px 0; }
  .hero-stats .hs { padding-right: 22px; margin-right: 22px; }
  .cta { padding: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-people { grid-template-columns: 1fr; }
}

/* 进入动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* =========================================================
   资质证书 / 工程案例 新增样式
   ========================================================= */

/* 内页 Hero */
.page-hero { background: var(--bg-dark); color: #fff; padding: 120px 0 90px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: .5px; margin-bottom: 16px; max-width: 820px; line-height: 1.2; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 640px; font-size: 17px; }

/* 筛选条 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 46px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--blue-700);
  cursor: pointer; transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--blue-900); }
.filter-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

/* 证书卡片墙 */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cert-card .ch { display: flex; align-items: center; gap: 14px; }
.cert-card .c-ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--accent-soft); color: var(--blue-600);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.cert-card h3 { font-size: 17px; color: var(--blue-900); line-height: 1.4; }
.cert-card .tag { align-self: flex-start; font-size: 12px; background: var(--accent-soft); color: var(--blue-700); padding: 4px 12px; border-radius: 999px; }
.cert-card .desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.cert-card .acts { margin-top: auto; display: flex; gap: 10px; }
.cert-card .acts a, .cert-card .acts button {
  flex: 1; text-align: center; padding: 10px 0; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--line);
  background: #fff; color: var(--blue-700); transition: all .2s ease; text-decoration: none;
}
.cert-card .acts .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cert-card .acts a:hover, .cert-card .acts button:hover { border-color: var(--accent); color: var(--blue-900); }
.cert-card .acts .primary:hover { background: #11a0ad; color: #fff; }

/* 工程案例画廊 */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, .86) 100%);
  color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.gallery-item:hover .cap { opacity: 1; transform: none; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  background: rgba(8, 20, 38, .82); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox .lb-inner {
  background: #fff; border-radius: 16px; overflow: hidden; max-width: 1000px; width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.lightbox .lb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.lightbox .lb-head h4 { font-size: 16px; color: var(--blue-900); margin: 0; }
.lightbox .lb-head .lb-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.lightbox .lb-body { flex: 1; overflow: auto; }
.lightbox .lb-body img { width: 100%; display: block; }
.lightbox .lb-body iframe { width: 100%; height: 76vh; border: 0; }
.lightbox .lb-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 14px; justify-content: flex-end; }
.lightbox .lb-foot a { font-size: 14px; font-weight: 600; color: var(--blue-700); text-decoration: none; }
.lightbox .lb-foot a:hover { color: var(--accent); }

/* =========================================================
   安装视频区
   ========================================================= */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.video-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #0B2545; padding: 0; display: block;
  width: 100%; text-align: left; font: inherit; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.video-card img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .5s ease; }
.video-card:hover img { transform: scale(1.05); }

/* 播放按钮 */
.video-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--blue-700);
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .28); transition: all .3s ease;
}
.video-card .play::after {
  content: ""; margin-left: 4px;
  border-left: 16px solid currentColor;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.video-card:hover .play { background: var(--accent); color: #fff; transform: translate(-50%, -50%) scale(1.08); }

/* 右上角时长 */
.video-card .dur {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(8, 20, 38, .72); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  letter-spacing: .3px; backdrop-filter: blur(3px);
}

/* 底部信息 */
.video-card .vbody {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, .92) 72%);
}
.video-card .vtitle { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.video-card .vdesc { color: rgba(255, 255, 255, .76); font-size: 13px; line-height: 1.5; }

/* 灯箱内视频 */
.lightbox .lb-body video { width: 100%; display: block; background: #000; max-height: 76vh; }

/* 证书墙收尾：索取资料包卡片 */
.cert-card--cta {
  border: 1.5px dashed var(--accent);
  background: linear-gradient(160deg, #F4FCFD 0%, #EFF8FC 100%);
}
.cert-card--cta .c-ico { background: var(--accent); color: #fff; }
.cert-card--cta .acts .primary { display: inline-block; width: 100%; }

@media (max-width: 980px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-card img { height: 220px; }
}
@media (max-width: 680px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* 响应式补充 */
@media (max-width: 980px) {
  .cert-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .cert-grid, .gallery-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 96px 0 64px; }
}
