/* ============================================================
   湖南盾建建设有限公司 - 全局样式 v3 · 消防红蓝
   火焰蓝 #003D7C  |  消防红 #CF0A2C  |  救援橙 #F97316
   字体: Noto Sans SC (SIL Open Font License 免费商用)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --bg-dark: #0B1A2E;
  --bg-deep: #060F1C;
  --blue: #003D7C;
  --blue-bright: #1A5CAB;
  --blue-glow: rgba(0,61,124,.25);
  --red: #CF0A2C;
  --red-bright: #E8183D;
  --red-glow: rgba(207,10,44,.25);
  --orange: #F97316;
  --orange-light: #FB923C;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --white: #FFFFFF;
  --grey-50: #F5F7FA;
  --grey-80: #EDF1F7;
  --grey-100: #E2E8F0;
  --grey-200: #CBD5E1;
  --grey-300: #94A3B8;
  --grey-500: #64748B;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1E293B;
  --grey-900: #0F172A;
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.12);
  --glass-hover: rgba(255,255,255,.1);
  --font-sans: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",system-ui,-apple-system,sans-serif;
  --font-mono: "JetBrains Mono","SF Mono","Cascadia Code","Consolas",monospace;
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--grey-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* === Background dot grid === */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .35;
}

a { color: var(--blue); text-decoration: none; transition: all .25s; }
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

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

/* ============ GLASS NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: -.01em; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--red); box-shadow: 0 0 12px var(--red-glow); }
/* If logo image is present, hide the abstract dot */
.nav-logo:has(img)::before { display: none; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 16px; color: var(--grey-600); font-weight: 500; padding: 6px 0; position: relative; letter-spacing: .02em; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transition: transform .3s; border-radius: 1px; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue); margin: 4px 0; transition: .3s; border-radius: 1px; }

/* ============ HERO · TECH ============ */
.hero {
  margin-top: var(--nav-height);
  background: var(--bg-dark);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
/* Animated gradient overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(0,61,124,.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(207,10,44,.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(249,115,22,.08) 0%, transparent 50%);
}
/* Grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
/* Corner tech accents */
.hero-content::before {
  content: ''; position: absolute; top: -16px; left: -16px;
  width: 32px; height: 32px;
  border-top: 2px solid rgba(255,255,255,.15);
  border-left: 2px solid rgba(255,255,255,.15);
}
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 3px; font-size: 12px; font-weight: 600; letter-spacing: .1em; background: rgba(207,10,44,.12); border: 1px solid rgba(207,10,44,.25); margin-bottom: 18px; color: var(--red); font-family: var(--font-mono); }
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { font-size: clamp(36px, 5.5vw, 58px); font-weight: 700; line-height: 1.12; margin-bottom: 16px; letter-spacing: -.02em; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--red), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: clamp(16px, 1.9vw, 19px); opacity: .65; margin-bottom: 24px; line-height: 1.7; color:rgba(255,255,255,.65); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 4px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s; text-align: center; border: none; letter-spacing: .04em;
  font-family: var(--font-mono); text-transform: uppercase;
}
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-bright)); color: #fff; box-shadow: 0 0 20px var(--red-glow), 0 4px 12px rgba(0,0,0,.2); position: relative; }
.btn-primary::after { content: ''; position: absolute; inset: -1px; border-radius: 5px; padding: 1px; background: linear-gradient(135deg, var(--red), var(--orange)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px var(--red-glow), 0 8px 20px rgba(0,0,0,.25); color: #fff; }
.btn-primary:hover::after { opacity: 1; }
.btn-outline { background: rgba(255,255,255,.04); color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.btn-outline:hover { border-color: var(--red); background: rgba(207,10,44,.08); box-shadow: 0 0 24px var(--red-glow), inset 0 0 24px rgba(207,10,44,.06); color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--grey-200); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(0,61,124,.04); box-shadow: 0 0 16px var(--blue-glow); }

/* ============ SECTIONS ============ */
.section { padding: 56px 0; position: relative; }
.section-dark { background: var(--bg-dark); color: var(--white); }
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,61,124,.06) 0%, transparent 70%);
  pointer-events: none;
}
.section-grey { background: var(--grey-50); }

.section-header { text-align: center; margin-bottom: 36px; }
.section-header .kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; padding: 4px 14px; border-radius: 3px; background: rgba(207,10,44,.08); border: 1px solid rgba(207,10,44,.15); font-family: var(--font-mono); }
.section-header h2 { font-size: clamp(30px, 3.8vw, 42px); color: var(--grey-900); margin-bottom: 8px; font-weight: 700; letter-spacing: -.02em; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 17px; color: var(--grey-500); max-width: 560px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,.55); }

/* ============ GLASS CARDS ============ */
.card-grid { display: grid; gap: 16px; }
.card-4 { grid-template-columns: repeat(4, 1fr); }
.card-3 { grid-template-columns: repeat(3, 1fr); }
.card-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: 6px;
  padding: 24px 20px;
  border: 1px solid var(--grey-100);
  transition: all .3s;
  position: relative; overflow: hidden;
}
/* Tech corner accent */
.card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 20px; height: 20px;
  border-top: 2px solid transparent;
  border-right: 2px solid transparent;
  transition: all .3s;
  border-radius: 0 6px 0 0;
}
.card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 20px; height: 20px;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: all .3s;
  border-radius: 0 0 0 6px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.08), 0 0 0 1px rgba(0,61,124,.12);
  border-color: rgba(0,61,124,.2);
}
.card:hover::before { border-color: var(--red); }
.card:hover::after { border-color: var(--blue); }

.card-icon {
  width: 40px; height: 40px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 18px;
  position: relative;
}
.card-icon::after {
  content: ''; position: absolute; inset: -2px; border-radius: 6px;
  border: 1px solid rgba(0,61,124,.15);
}
.card h3 { font-size: 19px; color: var(--grey-900); margin-bottom: 6px; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--grey-500); line-height: 1.55; }

/* Glass variant for dark sections */
.card-glass {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.card-glass:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.card-glass::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); }
.card-glass h3 { color: var(--white); }
.card-glass p { color: rgba(255,255,255,.6); }

/* ============ STATS · TECH ============ */
.stats-row { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--blue) 20%, var(--red) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 14px; color: var(--grey-500); margin-top: 4px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-mono); }

/* ============ QUAL TABLE · TECH ============ */
.qual-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.04); }
.qual-table th, .qual-table td { padding: 16px 22px; text-align: left; }
.qual-table thead tr { background: linear-gradient(135deg, var(--bg-dark), var(--grey-900)); }
.qual-table th { color: var(--white); font-weight: 500; font-size: 16px; letter-spacing: .03em; }
.qual-table tbody tr { transition: background .2s; }
.qual-table tbody tr:nth-child(even) { background: var(--grey-50); }
.qual-table tbody tr:hover { background: rgba(0,61,124,.04); }
.qual-table td { font-size: 16px; color: var(--grey-700); border-bottom: 1px solid var(--grey-100); }
.qual-table td strong { color: var(--blue); font-family: var(--font-mono); font-size: 17px; }

/* ============ SERVICE BLOCK ============ */
.service-block { margin-bottom: 44px; }
.service-block:last-child { margin-bottom: 0; }
.service-block h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.service-block h3 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--red);
  background: rgba(207,10,44,.1);
  padding: 4px 10px; border-radius: 4px;
}
.service-block .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; }
.service-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-block ul li {
  padding-left: 22px; position: relative; font-size: 16px; color: var(--grey-600); line-height: 1.6;
}
.service-block ul li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info h3 { font-size: 28px; color: var(--grey-900); margin-bottom: 20px; font-weight: 700; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; font-size: 15px; }
.contact-info .info-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(0,61,124,.06), rgba(207,10,44,.06));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(0,61,124,.1);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-sans); margin-bottom: 14px;
  transition: all .25s; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,61,124,.1);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

/* ============ FOOTER · DARK ============ */
.footer {
  background: var(--bg-deep);
  color: var(--grey-500);
  padding: 40px 0 20px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), rgba(0,61,124,.3), rgba(255,255,255,.1), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { color: var(--white); font-size: 17px; margin-bottom: 16px; font-weight: 600; letter-spacing: .02em; }
.footer p, .footer a { font-size: 15px; color: var(--grey-500); line-height: 2; }
.footer a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; text-align: center; font-size: 13px; color: var(--grey-600); }

/* ============ PAGE BANNER ============ */
.page-banner {
  margin-top: var(--nav-height);
  background: var(--bg-dark);
  color: var(--white);
  padding: 44px 0; text-align: center;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -20%, rgba(0,61,124,.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(207,10,44,.1) 0%, transparent 60%);
}
.page-banner::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: .4;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 6px; letter-spacing: -.02em; }
.page-banner p { opacity: .5; font-size: 16px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ============ BREADCRUMB ============ */
.breadcrumb { font-size: 12px; color: var(--grey-300); margin-bottom: 28px; font-family: var(--font-mono); }
.breadcrumb a { color: var(--grey-400); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--blue); font-weight: 500; }

/* Tech divider */
.tech-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--red), var(--blue), transparent); opacity: .2; margin: 0 0 24px 0; }

/* ============ CASE CARDS · GLASS ============ */
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-100);
  transition: all .35s;
  background: var(--white);
}
.case-card:hover {
  box-shadow: 0 20px 48px rgba(0,0,0,.1), 0 0 0 1px rgba(0,61,124,.08);
  transform: translateY(-3px);
}
.case-img {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; letter-spacing: .06em;
  position: relative; overflow: hidden;
}
.case-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.08) 100%);
}
.case-body { padding: 16px 18px; }
.case-body h4 { font-size: 17px; color: var(--grey-900); margin-bottom: 4px; font-weight: 600; }
.case-body p { font-size: 14px; color: var(--grey-500); line-height: 1.55; margin: 6px 0 10px; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(207,10,44,.06);
  color: var(--red);
  font-size: 12px; border-radius: 3px;
  margin-right: 4px; margin-top: 3px;
  font-weight: 500; letter-spacing: .04em;
  font-family: var(--font-mono);
  border: 1px solid rgba(207,10,44,.1);
}

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 48px 0;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 40% 30%, rgba(0,61,124,.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(207,10,44,.1) 0%, transparent 50%);
}
.cta-strip .container { position: relative; z-index: 1; }

/* ============ ICON SQUARE ============ */
.icon-blue { background: linear-gradient(135deg, rgba(0,61,124,.12), rgba(0,61,124,.04)); color: var(--blue); }
.icon-red { background: linear-gradient(135deg, rgba(207,10,44,.12), rgba(249,115,22,.08)); color: var(--red); }

/* ============ ACCENT BLOCK ============ */
.accent-note {
  padding: 20px 24px;
  background: rgba(0,61,124,.03);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); flex-direction: column; padding: 20px 24px; gap: 12px; border-bottom: 1px solid var(--grey-100); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .card-4, .card-3, .card-2 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero-btns { flex-direction: column; }
  .service-block .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .stats-row { gap: 28px; }
  .qual-table { font-size: 13px; }
  .qual-table th, .qual-table td { padding: 10px 14px; }
  .page-banner { padding: 48px 0; }
}
