/* ============================================
   沐钲消防 全站公共样式表 v1.0
   设计语言：现代专业服务风
   红色点缀 + 浅灰主调 + 大留白
   ============================================ */

/* ---------- CSS变量（设计令牌）---------- */
:root {
  --primary:      #CC0000;
  --primary-dark:  #A30000;
  --primary-light: #FF4444;
  --primary-rgb:  204, 0, 0;
  --dark:         #1a1a1a;
  --text:         #333333;
  --text-light:   #666666;
  --text-lighter: #999999;
  --border:       #E5E7EB;
  --border-light: #F3F4F6;
  --bg-white:     #FFFFFF;
  --bg-gray:      #F7F8FA;
  --bg-dark:      #1a1a1a;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
  --shadow-red:   0 4px 20px rgba(204,0,0,0.25);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-full:  9999px;
  --section-py:   100px;
  --container:    1200px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text); line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 容器 */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Section通用 */
.section { padding: var(--section-py) 0; }
.section-gray { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.section-tag::before, .section-tag::after {
  content: ''; width: 30px; height: 2px; background: var(--primary); opacity: 0.3;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.section-desc { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* Header */
.header {
  background: var(--bg-white); box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: var(--container); margin: 0 auto; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 48px; height: 48px; background: var(--primary); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-red);
}
.logo-icon svg { width: 28px; height: 28px; fill: #fff; }
.logo-text { font-size: 20px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text); padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--primary); }
.header-contact { display: flex; align-items: center; gap: 16px; }
.header-phone { text-align: right; }
.header-phone strong { display: block; font-size: 16px; font-weight: 700; color: var(--primary); }
.header-phone span { font-size: 12px; color: var(--text-light); }
.header-btn {
  background: var(--primary); color: #fff; padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.header-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-red); }
.mobile-menu-btn { display: none; font-size: 28px; color: var(--text); padding: 8px; cursor: pointer; background: none; border: none; }

/* 移动端导航 */
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg-white); box-shadow: var(--shadow-lg); z-index: 999; padding: 20px 24px; flex-direction: column; gap: 4px; }
.mobile-nav.active { display: flex; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); padding-left: 8px; }
.mobile-nav-contact { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border); }
.mobile-nav-contact strong { display: block; font-size: 18px; color: var(--primary); margin-bottom: 8px; }

/* 卡片 */
.card { background: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); border: 1px solid var(--border-light); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

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

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(204,0,0,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg-gray); transform: translateY(-2px); }

/* Page Hero */
.page-hero {
  background: #CC0000;
  color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.page-hero p { font-size: 18px; opacity: 0.85; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* CTA */
.cta-section {
  background: #CC0000;
  padding: 100px 0; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }
.cta-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 20px; }
.cta-title .highlight { color: rgba(255,255,255,0.9); }
.cta-desc { font-size: 18px; opacity: 0.85; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-phone { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 36px; }
.cta-phone-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta-phone-icon svg { width: 26px; height: 26px; fill: #fff; }
.cta-phone-num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: 2px; font-family: 'Arial', sans-serif; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.65); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; max-width: var(--container); margin: 0 auto; padding: 0 24px 60px; }
.footer-brand h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; color: rgba(255,255,255,0.55); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--primary-light); margin-top: 3px; flex-shrink: 0; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(255,255,255,0.1); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px; text-align: center; font-size: 13px; max-width: var(--container); margin: 0 auto; }
.footer-bottom-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 13px; transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.page-btn { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); background: var(--bg-white); transition: var(--transition); padding: 0 12px; cursor: pointer; }
.page-btn:hover:not(.disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.disabled { color: var(--text-lighter); cursor: not-allowed; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.6); padding: 16px 0; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }

/* 表单 */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg-white);
  transition: var(--transition); outline: none; -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer; }

/* 工具类 */
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

/* 响应式 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .nav, .header-contact { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-hero, .cta-section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; }
  .footer { padding-top: 60px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .cta-phone { flex-direction: column; gap: 12px; }
  .cta-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- 卡片图片/内容区 ---------- */
.card-img {
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img {
  transform: scale(1.04);
}
.card-body {
  padding: 24px;
}
