/* =========================================================
   常州炎辉智能科技有限公司 官网样式
   零外部依赖 · 全内联 SVG 图标 · 系统字体栈
   ========================================================= */
:root {
  --primary: #0e4c8a;
  --primary-dark: #0a3560;
  --primary-light: #e8f1fa;
  --accent: #f08a1d;
  --accent-dark: #d97410;
  --text: #1f2d3d;
  --muted: #64748b;
  --bg: #f5f8fb;
  --card: #ffffff;
  --border: #e3ebf3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 76, 138, 0.08);
  --shadow-hover: 0 12px 32px rgba(14, 76, 138, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

img, video { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 18px rgba(15, 40, 70, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; letter-spacing: 2px; }
.brand-text em { font-style: normal; font-size: 10.5px; letter-spacing: 1.6px; color: var(--muted); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-width: 44px;
  min-height: 36px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--primary); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 26px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(240, 138, 29, 0.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.65); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-sm { min-height: 38px; padding: 6px 16px; font-size: 14px; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 35, 64, 0.88) 0%, rgba(10, 53, 96, 0.72) 45%, rgba(10, 53, 96, 0.45) 100%),
    url("../assets/img/hero-line.jpg") center 40% / cover no-repeat;
}
.hero-content { position: relative; color: #fff; max-width: 980px; }
.hero-eyebrow { font-size: 16px; letter-spacing: 3px; color: #bcd7f2; margin: 0 0 14px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.32; margin: 0 0 18px; }
.hero-sub { font-size: clamp(15px, 1.7vw, 18px); color: #d9e8f7; max-width: 720px; margin: 0 0 26px; }
.hero-values { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-values span {
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  letter-spacing: 2px;
}
.hero-values i { font-style: normal; font-size: 11px; color: #a9c8e8; letter-spacing: 0.5px; margin-left: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- 数据带 ---------------- */
.stats-band { margin-top: -58px; position: relative; z-index: 5; padding-bottom: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 26px 12px 20px;
  border-bottom: 3px solid var(--accent);
}
.stat strong { display: block; font-size: clamp(26px, 3.4vw, 38px); color: var(--primary); line-height: 1.15; }
.stat strong i { font-style: normal; font-size: 0.55em; color: var(--accent); margin-left: 2px; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------------- 通用 Section ---------------- */
.section { padding: 84px 0; }
.section-alt { background: #eef4fa; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 6px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; color: var(--primary-dark); }
.section-desc { color: var(--muted); margin: 0; }

/* ---------------- 公司概述 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; }
.about-text h3 { color: var(--primary-dark); margin: 4px 0 14px; font-size: 21px; }
.about-text p { color: #41546b; margin: 0 0 14px; text-align: justify; }
.team-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 3px 10px rgba(14, 76, 138, 0.05);
}
.chip strong { display: block; color: var(--primary); font-size: 20px; }
.chip span { font-size: 13px; color: var(--muted); }

.about-side { display: flex; flex-direction: column; gap: 18px; }
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.side-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 17px;
}
.side-card .ic { width: 20px; height: 20px; color: var(--accent); }
.side-addr { color: #41546b; margin: 0 0 12px; }
.dist-list { list-style: none; margin: 0; padding: 0; }
.dist-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: #41546b;
}
.dist-list li:last-child { border-bottom: none; }
.dist-list strong { color: var(--primary); }

.equip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.equip-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.equip-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.equip-item img { height: 320px; width: 100%; object-fit: cover; }
.equip-item figcaption { padding: 14px 18px; display: flex; flex-direction: column; }
.equip-item strong { color: var(--primary-dark); font-size: 15.5px; }
.equip-item span { color: var(--muted); font-size: 13px; }

/* ---------------- 业务范围 ---------------- */
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scope-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
  transition: transform 0.25s, box-shadow 0.25s;
}
.scope-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.scope-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.scope-icon svg { width: 28px; height: 28px; }
.scope-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary-dark); }
.scope-card p { margin: 0; font-size: 14px; color: #4a5c72; }

/* ---------------- 产品与技术 ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.prod-img { height: 210px; overflow: hidden; background: #dbe6f0; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary-dark); }
.prod-body p { margin: 0 0 14px; font-size: 14px; color: #4a5c72; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------------- 项目管理 ---------------- */
.flow { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 30px; }
.flow-step {
  background: var(--card);
  border-radius: 12px;
  text-align: center;
  padding: 16px 6px 14px;
  box-shadow: 0 3px 12px rgba(14, 76, 138, 0.07);
  position: relative;
}
.flow-step b { display: block; color: var(--accent); font-size: 15px; letter-spacing: 1px; }
.flow-step span { font-size: 13.5px; color: var(--primary-dark); font-weight: 600; display: block; line-height: 1.4; }
.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
.flow-step:last-child::after { display: none; }

.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pm-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.pm-card h3 { margin: 0 0 12px; color: var(--primary-dark); font-size: 18px; }
.pm-card ul { margin: 0; padding-left: 18px; color: #41546b; font-size: 14.5px; }
.pm-card li { margin-bottom: 8px; }
.pm-card li::marker { color: var(--accent); }

/* ---------------- 业绩与客户 ---------------- */
.cust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cust-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.cust-item strong { display: block; font-size: 20px; color: var(--primary-dark); letter-spacing: 1px; }
.cust-item span { font-size: 13.5px; color: var(--muted); }

/* ---------------- 视频展示 ---------------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.video-card {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #0a2239; }
.video-card figcaption { padding: 14px 18px; display: flex; flex-direction: column; }
.video-card strong { color: var(--primary-dark); font-size: 15.5px; }
.video-card span { color: var(--muted); font-size: 13px; }

/* ---------------- 联系我们 ---------------- */
.contact { background: linear-gradient(160deg, var(--primary-dark), var(--primary)); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-desc { color: #bcd7f2; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s, transform 0.2s;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-4px); }
.contact-card .ic { width: 30px; height: 30px; color: #ffb45e; margin-bottom: 10px; }
.contact-card strong { font-size: 17px; margin-bottom: 6px; }
.contact-card span { font-size: 14px; color: #d9e8f7; overflow-wrap: anywhere; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #082238; color: #9fb8d0; padding: 30px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; font-size: 16px; letter-spacing: 1px; }
.footer-brand span { font-size: 12px; }
.footer-copy { margin: 0; font-size: 13px; }

/* ---------------- 回到顶部 ---------------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 76, 138, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top svg { width: 22px; height: 22px; }

/* ---------------- 入场动画 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-step:nth-child(4n)::after { display: none; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 8px 10px; font-size: 14px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(15, 40, 70, 0.12);
    padding: 10px 18px 16px;
    gap: 2px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 12px 10px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .equip-item img { height: 240px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 76vh; padding: 110px 0 80px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .prod-grid, .scope-grid, .cust-grid, .contact-grid { grid-template-columns: 1fr; }
  .team-chips { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .section { padding: 60px 0; }
  .prod-img { height: 190px; }
  .hero-values span { padding: 6px 14px; font-size: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
