/*
Theme Name: 消邦消防 - 挡烟垂壁
Theme URI: https://025119.com
Description: 消邦消防工程（南京）有限公司官网主题。挡烟垂壁专业供应商。
Version: 1.0.0
Author: Xiaobang Fire Protection
Author URI: https://025119.com
License: GPL v2 or later
Text Domain: xiaobang
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: #DC2626; color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e2e8f0; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #DC2626; }
html { scroll-behavior: smooth; }
body {
  /*background: #dbe7f0;*/淡蓝色
background: #fff;
  color: #1f2937;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grid bg - 纯白版本 */
.grid-bg {
  background-image: none;
}

/* Tech pattern overlay */
body::before {
  display: none;
}
body::after {
  display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes scan { 0%{transform:translateY(-100%)} 100%{transform:translateY(100%)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pulse-glow { 0%,100%{box-shadow:0 0 8px rgba(220,38,38,0.3)} 50%{box-shadow:0 0 20px rgba(220,38,38,0.6)} }
.cursor-blink { animation: blink 1s step-end infinite; color: #DC2626 !important; -webkit-text-fill-color: #DC2626 !important; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.panel {
  background: #ffffff;
  backdrop-filter: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 300ms ease;
}
.panel::before {
  display: none;
}
.mono-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}
.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #1a1a1a;
}
@media(max-width: 768px) {
  .section-heading { font-size: 2rem; }
}
.stat-value {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: #DC2626;
  line-height: 1;
}
.font-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Colors */
.text-flux-text { color: #333333; }
.text-flux-muted { color: #666666; }
.bg-flux-bg { background: #ffffff; }
.bg-flux-panel { background: #ffffff; }
.border-flux-border { border-color: #e0e0e0; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background: #DC2626;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 300ms;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(220,38,38,0.2);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateY(100%);
  transition: transform 300ms;
}
.btn-primary:hover::after { transform: translateY(0); }
.btn-primary:hover {
  background: #B91C1C;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #DC2626;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  padding: 14px 28px;
  border: 2px solid #DC2626;
  border-radius: 4px;
  cursor: pointer;
  transition: all 150ms;
  text-decoration: none;
}
.btn-secondary:hover { 
  background: rgba(220,38,38,0.08);
  border-color: #B91C1C;
  color: #B91C1C;
}
.btn-secondary:active { transform: scale(0.98); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #DC2626;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media(min-width:768px){ .nav-inner { padding: 0 24px; } }
@media(min-width:1024px){ .nav-inner { padding: 0 32px; } }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}
@media(max-width: 768px) {
  .nav-logo-img {
    max-height: 32px;
  }
}
.nav-logo-dot {
  width: 12px;
  height: 12px;
  background: #DC2626;
  box-shadow: 0 0 10px rgba(220,38,38,0.5);
}
.nav-logo-text {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
}
@media(min-width:768px){ .nav-links { display: flex; } }

.nav-links a {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #666;
  text-decoration: none;
  transition: color 150ms;
}
.nav-links a:hover,
.nav-links a.active { color: #000000; }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-cta {
  display: none;
}
@media(min-width:640px){ .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  transition: color 150ms;
}
.nav-toggle:hover { color: #DC2626; }
@media(min-width:768px){ .nav-toggle { display: none; } }

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  position: absolute;
  top: auto;
  left: 0; right: 0;
  background: rgba(245,247,250,0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu-inner a {
  font-size: 1rem;
  color: #666;
  text-decoration: none;
  transition: color 150ms;
  padding: 4px 0;
}
.mobile-menu-inner a:hover { color: #DC2626; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}
@media(min-width:768px){ .container { padding: 0 24px; } }
@media(min-width:1024px){ .container { padding: 0 32px; } }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media(min-width:768px){ .hero-inner { flex-direction: row; } }

.hero-content { width: 100%; }
@media(min-width:768px){
  .hero-content { width: 66.666%; padding-right: 48px; }
}

.hero-badge {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #DC2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media(min-width:768px){ .hero-title { font-size: 4rem; } }

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.625;
  margin-bottom: 32px;
  max-width: 676px;
}
@media(min-width:768px){ .hero-desc { font-size: 1.25rem; } }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

/* Hero image */
.hero-visual {
  width: 100%;
  margin-top: 48px;
  position: relative;
}
@media(min-width:768px){
  .hero-visual { width: 33.333%; margin-top: 0; }
}

.hero-img-wrap {
  animation: float 4s ease-in-out infinite;
}
.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.hero-img-overlay {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  padding: 12px;
  background: rgba(245,247,250,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.2);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 24px 0; background: transparent; }
@media(min-width:768px){ .section { padding: 32px 0; } }

.section .container {
  background: #f0f0f0;
  padding: 32px 24px;
  border-radius: 8px;
}
@media(min-width:768px){ .section .container { padding: 40px 32px; } }

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:768px){ .about-grid { grid-template-columns: 2fr 1fr; } }

/* Capabilities grid */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:768px){ .cap-grid { grid-template-columns: repeat(3, 1fr); } }

/* Industries grid */
.ind-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:768px){ .ind-grid { grid-template-columns: repeat(3, 1fr); } }

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px){ .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .product-grid { grid-template-columns: repeat(3, 1fr); } }

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:768px){ .process-grid { grid-template-columns: repeat(6, 1fr); } }

/* Cases grid */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px){ .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .case-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media(min-width:768px){ .contact-grid { grid-template-columns: 1fr 1fr; } }

/* FAQ layout */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media(min-width:768px){ .faq-layout { grid-template-columns: 1fr 2fr; } }

/* Qualifications grid */
.qual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px){ .qual-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .qual-grid { grid-template-columns: repeat(3, 1fr); } }

/* Why choose us grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px){ .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* Why card */
.why-card {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #DC2626;
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px){ .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px){ .news-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   PRODUCT PAGES
   ============================================ */
/* Product archive layout */
.product-archive-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media(min-width: 768px) {
  .product-archive-layout {
    grid-template-columns: 280px 1fr;
  }
}

.product-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}
@media(max-width: 767px) {
  .product-sidebar {
    position: static;
  }
}

.product-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-cat-list li {
  margin-bottom: 8px;
}

.product-cat-list a {
  display: block;
  padding: 10px 12px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 150ms;
  font-size: 14px;
}

.product-cat-list a:hover,
.product-cat-list a.active {
  background: rgba(220,38,38,0.08);
  color: #DC2626;
  font-weight: 600;
}

.product-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.product-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 150ms;
}

.product-pagination .page-numbers:hover,
.product-pagination .page-numbers.current {
  background: #DC2626;
  border-color: #DC2626;
  color: #fff;
}

/* Product detail page */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media(min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail-gallery img {
  transition: opacity 150ms;
}

.product-detail-gallery img:hover {
  opacity: 0.95;
}

.product-detail-gallery .panel:hover {
  border-color: #DC2626;
}

.product-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
}

.product-tab {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
  font-size: 14px;
}

.product-tab:hover {
  background: rgba(220,38,38,0.05);
}

.product-tab.active {
  border-bottom-color: #DC2626;
  color: #DC2626;
}

.product-tab-content {
  padding: 32px;
}

.tab-panel {
  animation: fadeIn 300ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product image modal */
#productImageModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#productImageModal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

#productImageModal button {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: color 150ms;
}

#productImageModal button:hover {
  color: #DC2626;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Product card */
.product-card {
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: #DC2626;
}
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-link:hover {
  text-decoration: none;
  color: inherit;
}
.product-card-img {
  position: relative;
  height: 208px;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}
.product-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.product-card-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #DC2626;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
}
.product-card-body { padding: 20px; }
.product-card-title { 
  font-size: 1.125rem; 
  font-weight: 600; 
  margin-bottom: 8px; 
  color: #1a1a1a;
  line-height: 1.4;
}
.product-card-link .product-card-title {
  color: #1a1a1a;
}
.product-card-desc { 
  font-size: 0.9375rem; 
  color: #6b7280;
  line-height: 1.6;
}

/* Industry card */
.ind-card { overflow: hidden; }
.ind-card-img {
  position: relative;
  height: 192px;
  overflow: hidden;
}
.ind-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 500ms;
}
.ind-card:hover .ind-card-img img { transform: scale(1.08); }
.ind-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.ind-card-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  padding: 4px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #DC2626;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.2);
}
.ind-card-body { padding: 24px; }
.ind-card-title { font-size: 0.875rem; font-weight: 500; margin-bottom: 12px; color: #1a1a1a; }
.ind-card-list { list-style: none; }
.ind-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
}
.ind-card-list li svg { width: 12px; height: 12px; color: #DC2626; margin-top: 2px; flex-shrink: 0; }
.ind-card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #666;
}

/* Case card */
.case-card { overflow: hidden; }
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: #DC2626;
}
.case-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}
.case-card:hover .case-card-img img { transform: scale(1.08); }
.case-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.case-card-body { padding: 16px; }
.case-card-project { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.case-card-products { font-size: 12px; color: #666; }

/* Capability card */
.cap-card {
  padding: 24px;
  transition: border-color 300ms;
}
.cap-card:hover { 
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.cap-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
}
.cap-card-icon svg { width: 20px; height: 20px; color: #DC2626; }
.cap-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: #1a1a1a; }
.cap-card-rows { }
.cap-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.cap-card-row span:last-child { color: #333; font-family: 'JetBrains Mono', monospace; }

/* Process step */
.process-step {
  padding: 20px;
  text-align: center;
  position: relative;
}
.process-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: rgba(220,38,38,0.3);
  margin-bottom: 12px;
}
.process-step-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
}
.process-step-icon svg { width: 16px; height: 16px; color: #DC2626; }
.process-step-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.process-step-desc { font-size: 12px;  }
.process-arrow {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(50%);
  color: #e0e0e0;
  z-index: 2;
}
@media(min-width:768px){ .process-arrow { display: block; } }

/* Table */
.data-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  font-weight: 500;
  border-bottom: 1px solid #e0e0e0;
}
.data-table td {
  padding: 14px 18px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.data-table tr:hover td { background: rgba(0, 0, 0, 0.02); }
.data-table td:first-child { color: #333; font-weight: 500; }

/* FAQ */
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-item:first-child .faq-summary { padding-top: 0; }
.faq-item:last-child .faq-answer p { padding-bottom: 0; }
.faq-details {
  width: 100%;
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 200ms;
}
.faq-details[open] .faq-summary::after {
  transform: rotate(180deg);
}
.faq-btn-title { font-size: 15px; font-weight: 600; padding-right: 16px; color: #1a1a1a; }
.faq-answer {
  padding-bottom: 16px;
}
.faq-answer p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}
.faq-answer strong { color: #333; }

/* News card */
.news-card {
  overflow: hidden;
  transition: all 300ms;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #DC2626;
}
.news-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #ffffff;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms;
}
.news-card:hover .news-card-img img {
  transform: scale(1.05);
}
.news-card-body {
  padding: 20px;
}

/* ============================================
   KNOWLEDGE BASE (消防知识库)
   ============================================ */
.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.knowledge-item {
  display: block;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: background 0.2s;
}

.knowledge-item:hover {
  background: #fafafa;
}

.knowledge-item-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.knowledge-item-dot {
  width: 6px;
  height: 6px;
  background: #DC2626;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.knowledge-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  transition: color 0.2s;
}

.knowledge-item:hover .knowledge-item-title {
  color: #DC2626;
}

.knowledge-item-date {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
  margin-top: 4px;
}

.knowledge-item-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 0 16px;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
}
.contact-item-icon svg { width: 20px; height: 20px; color: #DC2626; }
.contact-item-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: #1a1a1a; }
.contact-item-text { font-size: 15px; color: #666; line-height: 1.6; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #333;
  transition: border-color 150ms;
  outline: none;
  border-radius: 4px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { 
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media(min-width:640px){ .form-row { grid-template-columns: 1fr 1fr; } }

/* Milestones */
.milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(min-width:640px){ .milestone-grid { grid-template-columns: repeat(4, 1fr); } }
.milestone-item {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
.milestone-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #DC2626;
  font-weight: 600;
}
.milestone-desc {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Spec list */
.spec-list { }
.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  padding: 6px 0;
}
.spec-row span:last-child { color: #333; font-family: 'JetBrains Mono', monospace; font-weight: 500; }

/* Cert tags */
.cert-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-tag {
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #DC2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 4px;
}

/* Sidebar about */
.about-sidebar { }
.about-sidebar-label { margin-bottom: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 48px 0;
  background: #000000;
  color: #9ca3af;
  border-top: 3px solid #DC2626;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media(min-width:768px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-desc { font-size: 13px; color: #9ca3af; line-height: 1.6; }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media(min-width:480px){
  .footer-brand {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-brand-left { flex: 0 0 auto; max-width: 200px; }
  .footer-brand-right { flex-shrink: 0; }
}
.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 150ms;
}
.footer-links a:hover { color: #DC2626; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #2d2d2d;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media(min-width:768px){ .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy {
  font-size: 12px;
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  transition: color 150ms;
}
.footer-legal a:hover { color: #DC2626; }

/* ============================================
   SCAN LINE ON HERO
   ============================================ */
.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-scan::after {
  content: '';
  position: absolute;
  inset: 0;
  left: 0; right: 0;
  height: 80px;
  opacity: 0.05;
  background: linear-gradient(transparent, #DC2626, transparent);
  animation: scan 4s linear infinite;
}

/* ============================================
   ADDITIONAL IMPROVEMENTS
   ============================================ */
/* Smooth hover effects */
.product-card,
.ind-card,
.case-card,
.cap-card {
  transition: all 0.3s ease;
}

.product-card:hover,
.ind-card:hover,
.case-card:hover,
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: #DC2626;
}



/* Better button hover */
.btn-primary:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

.btn-secondary:hover {
  background: rgba(220,38,38,0.08);
  border-color: #DC2626;
  color: #DC2626;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width: 1024px) {
  .container { padding: 0 24px; }
}

@media(max-width: 768px) {
  .container { padding: 0 20px; }
  
  .section { padding: 48px 0; }
  
  .hero-title { font-size: 2.25rem; }
  
  .hero-desc { font-size: 1rem; }
  
  .hero-stats { gap: 24px; }
  
  .stat-value { font-size: 2rem; }
  
  .btn-primary,
  .btn-secondary {
    font-size: 0.875rem;
    padding: 12px 20px;
  }
  
  /* 移动端字体优化 */
  body {
    font-size: 16px;
  }
  
  .section-heading {
    font-size: 1.75rem;
  }
  
  .product-card-title,
  .case-card-project {
    font-size: 1rem;
  }
  
  .faq-btn-title,
  .faq-answer p {
    font-size: 14px;
  }
  
  .product-grid,
  .case-grid,
  .qual-grid,
  .why-grid,
  .news-grid {
    gap: 16px;
  }
}

@media(max-width: 640px) {
  .container { padding: 0 16px; }
  
  .section { padding: 40px 0; }
  
  .section-heading { font-size: 1.5rem; }
  
  .hero-title { font-size: 1.75rem; }
  
  .hero-desc { font-size: 0.875rem; }
  
  .nav-links { display: none; }
  
  .nav-toggle { display: flex; }
}

/* ============================================
   UTILITY CLASSES FOR FRONT-PAGE
   ============================================ */

/* Section heading margins */
.section-heading { margin-bottom: 24px; }
.section-heading-sm { margin-bottom: 16px; }
.section-heading-lg { margin-bottom: 48px; }

/* Section description text */
.section-desc {
  color: #666;
  font-size: 14px;
  max-width: 672px;
  margin-bottom: 48px;
}
.section-desc-sm {
  color: #666;
  font-size: 14px;
  margin-bottom: 32px;
}

/* Panel padding */
.panel-pad { padding: 24px; }
.panel-pad-sm { padding: 16px; }
.panel-pad-xs { padding: 4px; }

/* Hero image */
.hero-img-wrap { padding: 4px; }

/* Mono label */
.mono-label-mb-xs { margin-bottom: 4px; }
.mono-label-mb-sm { margin-bottom: 12px; }
.mono-label-mb-md { margin-bottom: 16px; }
.mono-label-mt-sm { margin-top: 4px; }

/* About section */
.about-text { line-height: 1.7; }
.about-text p { margin-bottom: 16px; }
.about-text strong { color: #1a1a1a; }
.about-text strong.text-brand { color: #DC2626; }

.about-sidebar { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e0e0e0; }

/* Product comparison table */
.product-table-wrap { overflow-x: auto; }
.table-highlight { 
  color: #DC2626 !important; 
  font-weight: 600;
}
.table-economy { 
  color: #22C55E !important; 
  font-weight: 600;
}
}

/* Service promise items */
.service-promise { margin-top: 32px; }
.service-promise-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.service-promise-item:last-child { margin-bottom: 0; }
.service-promise-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,38,38,0.08);
  border-radius: 4px;
  flex-shrink: 0;
}
.service-promise-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.service-promise-desc { font-size: 13px; color: #666; line-height: 1.5; }

/* Why choose cards */
.why-card-header { display: flex; align-items: center; margin-bottom: 16px; }
.why-card-num { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; color: rgba(220,38,38,0.2); margin-right: 12px; }
.why-card-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.why-card-desc { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.why-card-stats { padding-top: 16px; border-top: 1px solid #e0e0e0; }
.why-card-stats-text { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #DC2626; font-weight: 600; }

/* Qualification cards */
.qual-card { padding: 24px; text-align: center; }
.qual-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: 50%;
}
.qual-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.qual-desc { font-size: 12px; color: #666; line-height: 1.5; }

/* Process steps */
.process-step-header { display: flex; align-items: center; margin-bottom: 16px; }
.process-step-num-lg { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 700; color: rgba(220,38,38,0.2); margin-right: 12px; }
.process-step-title-lg { font-size: 16px; font-weight: 600; color: #1a1a1a; }

/* FAQ */
.faq-service-promise { margin-top: 32px; }
.faq-service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.faq-service-item:last-child { margin-bottom: 0; }
.faq-service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220,38,38,0.08);
  border-radius: 4px;
  flex-shrink: 0;
}
.faq-service-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.faq-service-desc { font-size: 13px; color: #666; line-height: 1.5; }

/* News cards */
.news-card-img-plain {
  background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(0,0,0,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-meta { display: flex; align-items: center; margin-bottom: 12px; }
.news-card-cat {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #DC2626;
  background: rgba(220,38,38,0.08);
  padding: 2px 6px;
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 2px;
}
.news-card-date { font-size: 11px; color: #999; margin-left: auto; }
.news-card-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-card-title a { color: #1a1a1a; text-decoration: none; }
.news-card-excerpt { font-size: 12px; color: #666; line-height: 1.6; }
.news-card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #DC2626; text-decoration: none; margin-top: 12px; font-weight: 500; }

/* Case card */
.case-card-desc { margin-top: 12px; font-size: 13px; color: #666; line-height: 1.6; }
.case-card-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #DC2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 3px;
}
.case-products { display: flex; flex-wrap: wrap; gap: 4px; }
.case-product-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #DC2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
}

/* Contact section */
.contact-desc strong { color: #1a1a1a; }

/* Form */
.btn-full { width: 100%; justify-content: center; }

/* News more link */
.news-more { text-align: center; margin-top: 40px; }
.section-cta { text-align: center; margin-top: 40px; }

/* Hero current project */
.hero-current-label { font-size: 12px; }
