/* =========================================================
   陕西圣博莱电力工程有限公司 — 视觉系统
   主视觉：深空蓝 (#0B1B2E)  强调：香槟金 (#C8A45C)
   ========================================================= */

:root {
  /* —— 深色主视觉 —— */
  --navy-900: #071523;
  --navy-800: #0B1B2E;
  --navy-700: #14293F;
  --navy-600: #1E3A55;

  /* —— 强调色 —— */
  --gold: #C8A45C;
  --gold-light: #DFC48C;
  --gold-dark: #A9873F;
  --steel: #3B6EA5;

  /* —— 中性色 —— */
  --paper: #F5F7FA;
  --surface: #FFFFFF;
  --line: #E4E8ED;
  --line-strong: #CFD7E0;
  --text: #101F2E;
  --text-soft: #3D4E5E;
  --muted: #61717F;
  --muted-light: #8A98A6;

  /* —— 深色区域文字 —— */
  --on-dark: #EEF3F8;
  --on-dark-soft: rgba(233, 240, 247, 0.72);
  --on-dark-mute: rgba(233, 240, 247, 0.48);
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* —— 版式 —— */
  --max: 1200px;
  --radius: 2px;
  --gutter: 28px;

  /* —— 阴影：轻、分层 —— */
  --shadow-1: 0 1px 2px rgba(11, 27, 46, 0.04), 0 2px 10px rgba(11, 27, 46, 0.04);
  --shadow-2: 0 2px 6px rgba(11, 27, 46, 0.05), 0 16px 40px rgba(11, 27, 46, 0.10);
  --shadow-dark: 0 20px 60px rgba(4, 12, 22, 0.45);

  /* —— 字体 —— */
  --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Semibold", "Segoe UI", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { letter-spacing: 0.02em; }

::selection { background: var(--gold); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #EDF1F5; }
::-webkit-scrollbar-thumb { background: #B7C3D0; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

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

/* =========================================================
   顶部信息条
   ========================================================= */
.topbar {
  background: var(--navy-900);
  color: var(--on-dark-mute);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 40px;
}
.topbar-slogan {
  margin: 0;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 500;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-contact li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.topbar-contact svg { color: var(--gold); flex: none; }

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(11, 27, 46, 0.08);
  border-bottom-color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--navy-800);
  flex: none;
}
.logo { flex: none; }
.logo-frame { color: var(--navy-800); }
.logo-bolt { fill: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}
.brand-en {
  font-family: var(--font-display);
  font-size: 9.5px;
  letter-spacing: 0.19em;
  color: var(--muted-light);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--navy-800); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  color: #fff !important;
  background: var(--navy-800);
  padding: 11px 24px !important;
  font-weight: 600;
  border: 1px solid var(--navy-800);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--navy-800);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--on-dark);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, #16304A 0%, #0B1B2E 48%, #071523 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 22% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 22% 20%, #000 0%, transparent 72%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 88% 8%, rgba(200, 164, 92, 0.20), transparent 62%),
    radial-gradient(760px 480px at 4% 96%, rgba(59, 110, 165, 0.26), transparent 64%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 132px;
  padding-bottom: 104px;
}
.hero-inner > * { max-width: 800px; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
}
.kicker-rule {
  display: block;
  width: 52px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.hero h1 {
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.14;
  margin: 0 0 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-sub {
  color: var(--on-dark-soft);
  font-size: 16.5px;
  line-height: 1.9;
  margin: 0 0 42px;
  max-width: 620px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-arrow { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(200, 164, 92, 0.22);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 14px 38px rgba(200, 164, 92, 0.32);
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero 底部业务条 */
.hero-domains {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--on-dark-line);
  background: rgba(7, 21, 35, 0.35);
}
.hero-domains ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.hero-domains li {
  padding: 24px 10px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--on-dark-soft);
  border-left: 1px solid var(--on-dark-line);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.hero-domains li:first-child { border-left: 0; }
.hero-domains li:hover { color: var(--gold); background: rgba(255, 255, 255, 0.03); }

/* =========================================================
   通用区块 / 标题组件
   ========================================================= */
.section {
  position: relative;
  padding: 110px 0;
  background: var(--surface);
}
.section-alt { background: var(--paper); }

.section-head { margin-bottom: 56px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--navy-800);
  position: relative;
  padding-bottom: 20px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 2px;
  background: var(--gold);
}
.section-lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold-dark);
}
.kicker-num {
  font-size: 13px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.kicker-line {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}
.kicker-en { color: var(--muted-light); }

/* =========================================================
   公司介绍
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text .lead {
  font-size: 17.5px;
  line-height: 1.95;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 22px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}
.about-text p { color: var(--muted); margin: 0 0 18px; }

.values {
  list-style: none;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.values li { display: flex; flex-direction: column; gap: 6px; }
.values strong {
  font-size: 15.5px;
  color: var(--navy-800);
  letter-spacing: 0.08em;
  position: relative;
  padding-left: 14px;
}
.values strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--gold);
}
.values span { font-size: 13px; color: var(--muted-light); padding-left: 14px; }

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stats li {
  background: var(--surface);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s var(--ease);
}
.stats li:hover { background: var(--navy-800); }
.stats strong {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}
.stats strong span {
  font-size: 15px;
  color: var(--gold-dark);
  margin-left: 3px;
  transition: color 0.3s var(--ease);
}
.stat-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: color 0.3s var(--ease);
}
.stats li:hover strong { color: #fff; }
.stats li:hover strong span,
.stats li:hover .stat-label { color: var(--gold); }

/* =========================================================
   服务范围 — 细线网格
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  position: relative;
  background: var(--surface);
  padding: 42px 34px 44px;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service:hover { background: #FCFDFE; }

.service-no {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--line);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ease);
}
.service:hover .service-no { color: rgba(200, 164, 92, 0.34); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  margin-bottom: 26px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.service:hover .service-icon {
  color: var(--gold-dark);
  border-color: var(--gold);
  background: rgba(200, 164, 92, 0.07);
}
.service h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.05em;
}
.service p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* =========================================================
   项目介绍
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.project:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}
.project-media {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: transform 0.7s var(--ease);
}
.project:hover .project-media::before { transform: scale(1.12); }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 21, 35, 0.55) 100%);
}
.project-no {
  position: absolute;
  left: 26px;
  bottom: 20px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}
.project-no::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}
.thumb-a { background: linear-gradient(140deg, #1E3A55, #0B1B2E); }
.thumb-b { background: linear-gradient(140deg, #2C4A66, #102638); }
.thumb-c { background: linear-gradient(140deg, #3B6EA5, #14293F); }
.thumb-d { background: linear-gradient(140deg, #55432A, #0F1F2E); }

.project-body { padding: 30px 30px 32px; }
.project-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.project-body h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.04em;
}
.project-body p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}
.project-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy-800);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  transition: color 0.3s var(--ease);
}
.project-more i { font-style: normal; transition: transform 0.3s var(--ease); }
.project:hover .project-more { color: var(--gold-dark); }
.project:hover .project-more i { transform: translateX(5px); }

/* =========================================================
   资质证书 — 深色区块
   ========================================================= */
.section-dark {
  background: var(--navy-800);
  overflow: hidden;
}
.section-dark-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 90% at 78% 10%, #000, transparent 70%);
  mask-image: radial-gradient(110% 90% at 78% 10%, #000, transparent 70%);
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-lead { color: var(--on-dark-soft); }
.section-dark .kicker { color: var(--gold); }
.section-dark .kicker-en { color: var(--on-dark-mute); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--on-dark-line);
  border: 1px solid var(--on-dark-line);
}
.cert {
  background: var(--navy-800);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: background 0.35s var(--ease);
}
.cert:hover { background: var(--navy-700); }
.cert-badge {
  flex: none;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(200, 164, 92, 0.45);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cert:hover .cert-badge {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
}
.cert-info h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}
.cert-info p { margin: 0; color: var(--on-dark-mute); font-size: 12.5px; }

/* =========================================================
   经营范围
   ========================================================= */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.scope-col {
  background: var(--surface);
  padding: 34px 30px 38px;
  transition: background 0.3s var(--ease);
}
.scope-col:hover { background: #FCFDFE; }
.scope-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.scope-no {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.scope-col h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.scope-col h3 em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted-light);
  margin-top: 5px;
}
.scope-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.scope-col li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.scope-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 1px;
  background: var(--gold);
}
.scope-note {
  margin: 24px 0 0;
  color: var(--muted-light);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* =========================================================
   新闻动态
   ========================================================= */
.news-ticker {
  height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}
.news-track { will-change: transform; }

.news-item {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 22px 28px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background 0.3s var(--ease);
}
.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.news-item:hover { background: var(--paper); }
.news-item:hover::before { transform: scaleY(1); }

.news-date {
  flex: none;
  width: 66px;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 18px;
  font-family: var(--font-display);
}
.news-date strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}
.news-date span {
  font-size: 11.5px;
  color: var(--muted-light);
  letter-spacing: 0.08em;
}
.news-item:hover .news-date strong { color: var(--gold-dark); }

.news-body { flex: 1; min-width: 0; }
.news-body h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.03em;
  line-height: 1.6;
}
.news-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  transition: color 0.3s var(--ease);
}
.news-item:hover .news-more { color: var(--gold-dark); }

/* 新闻详情弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 35, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  z-index: 100;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  background: var(--surface);
  border-top: 3px solid var(--gold);
  max-width: 580px;
  width: 100%;
  padding: 40px 38px 36px;
  box-shadow: var(--shadow-dark);
  transform: translateY(16px);
  transition: transform 0.3s var(--ease);
}
.modal-backdrop.show .modal-card { transform: none; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--muted-light);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.modal-close:hover { background: var(--paper); color: var(--navy-800); }
.modal-date {
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}
.modal-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy-800);
}
.modal-desc {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.95;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  background: var(--navy-800);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-link i { font-style: normal; transition: transform 0.3s var(--ease); }
.modal-link:hover { background: var(--gold); color: var(--navy-900); }
.modal-link:hover i { transform: translateX(4px); }

/* =========================================================
   联系我们
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: stretch;
}
.contact-info {
  background: var(--navy-800);
  padding: 12px 32px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.contact-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "ico key"
    "ico val";
  column-gap: 16px;
  row-gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--on-dark-line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-ico {
  grid-area: ico;
  align-self: center;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 164, 92, 0.4);
  color: var(--gold);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-list li:hover .contact-ico { background: var(--gold); color: var(--navy-900); }
.contact-k {
  grid-area: key;
  font-family: var(--font-display);
  color: var(--on-dark-mute);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.contact-v {
  grid-area: val;
  color: var(--on-dark);
  font-size: 14.5px;
  line-height: 1.65;
  word-break: break-word;
}
.contact-list a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 164, 92, 0.4);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-list a:hover { color: var(--gold); border-color: var(--gold); }

/* 地图 */
.contact-map { display: flex; flex-direction: column; }
.amap-box {
  flex: 1;
  min-height: 420px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.amap-empty { display: flex; align-items: center; justify-content: center; }
.amap-placeholder { text-align: center; color: var(--muted); padding: 36px; }
.amap-placeholder-icon { font-size: 38px; margin-bottom: 10px; opacity: 0.7; }
.amap-placeholder p {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: 0.06em;
}
.amap-placeholder span { font-size: 13px; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-soft);
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 56px;
  padding-top: 68px;
  padding-bottom: 56px;
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo .logo-frame { color: rgba(255, 255, 255, 0.55); }
.footer-logo span { display: flex; flex-direction: column; }
.footer-logo strong {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}
.footer-logo em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--on-dark-mute);
  margin-top: 4px;
}
.footer-brand p {
  margin: 22px 0 0;
  color: var(--on-dark-mute);
  font-size: 13.5px;
  line-height: 1.95;
  max-width: 380px;
}

.footer-col h4 {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.14em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--on-dark-line);
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 30px;
  height: 1px;
  background: var(--gold);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a {
  color: var(--on-dark-mute);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer-col a:hover { color: var(--gold); padding-left: 5px; }

.footer-contact li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--on-dark-soft);
  line-height: 1.8;
}
.footer-contact li > span {
  color: var(--on-dark-mute);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.footer-contact a:hover { padding-left: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--on-dark-mute);
}
.footer-values { letter-spacing: 0.22em; color: var(--gold); }

/* =========================================================
   滚动入场
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1100px) {
  .about-grid { gap: 44px; }
  .contact-grid { grid-template-columns: 360px 1fr; }
}

@media (max-width: 980px) {
  :root { --gutter: 22px; }
  .section { padding: 84px 0; }
  .service-grid,
  .cert-grid,
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-domains ul { grid-template-columns: repeat(3, 1fr); }
  .hero-domains li:nth-child(4) { border-left: 0; }
  .hero-domains li:nth-child(n + 4) { border-top: 1px solid var(--on-dark-line); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .topbar-slogan { display: none; }
  .topbar-inner { justify-content: center; }
  .nav { height: 68px; }
  .nav-toggle { display: flex; }
  .brand-en { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin-top: 18px;
    text-align: center;
    border-bottom: 1px solid var(--navy-800);
  }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .amap-box { min-height: 320px; }
  .hero-inner { padding-top: 96px; padding-bottom: 76px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .topbar-contact { gap: 16px; font-size: 12px; }
  .service-grid,
  .cert-grid,
  .scope-grid { grid-template-columns: 1fr; }
  .hero-domains ul { grid-template-columns: repeat(2, 1fr); }
  .hero-domains li { border-left: 0; border-top: 1px solid var(--on-dark-line); padding: 18px 8px; }
  .hero-domains li:nth-child(odd) { border-right: 1px solid var(--on-dark-line); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .values { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats strong { font-size: 34px; }
  .service { padding: 34px 26px 36px; }
  .contact-info { padding: 8px 22px; }
  .news-item { padding: 20px 20px; gap: 18px; }
  .news-date { width: 56px; padding-right: 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .modal-card { padding: 34px 24px 30px; }
}
