/* =========================================================
   深公照明 SHENGGONG LIGHTING — 全局样式
   移动优先 / 响应式 / 工程 LED 照明品牌站
   ========================================================= */

:root {
  /* 品牌色 */
  --c-navy: #0a2540;       /* 主色：深蓝（代表“深”） */
  --c-navy-2: #123a63;     /* 次级深蓝 */
  --c-blue: #1c6fd6;       /* 链接/交互蓝 */
  --c-gold: #f5a623;       /* 暖金强调（代表“光”） */
  --c-gold-2: #ffc24b;

  /* 中性色 */
  --c-bg: #f6f8fb;
  --c-surface: #ffffff;
  --c-line: #e4e9f0;
  --c-text: #1f2d3d;
  --c-muted: #5d6b7a;
  --c-dark: #06182b;

  /* 排版 */
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 布局 */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 37, 64, 0.16);
  --header-h: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-gold); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; color: var(--c-navy); }
p { margin: 0 0 1em; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--c-gold); color: #2a1800; }
.btn-primary:hover { background: var(--c-gold-2); color: #2a1800; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--c-navy); }
.btn-outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff; }
/* 深底环境下的描边按钮自动转浅色，避免文字与背景同色 */
.bg-navy .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.bg-navy .btn-outline:hover { background: #fff; color: var(--c-navy); }

/* ---------- 版块标题 ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--c-muted); margin: 0; }
.bg-soft { background: #eef3f9; }
.bg-navy { background: var(--c-navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: #c5d3e3; }

/* =========================================================
   顶部导航
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(10, 37, 64, .0);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(10, 37, 64, .96);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.nav {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-2));
  display: grid; place-items: center;
  color: #2a1800; font-size: 18px; font-weight: 900;
  box-shadow: 0 4px 14px rgba(245,166,35,.45);
}
.brand .brand-text { line-height: 1.1; }
.brand .brand-text b { font-size: 18px; letter-spacing: 1px; }
.brand .brand-text span { display: block; font-size: 11px; letter-spacing: 2px; color: var(--c-gold-2); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #eaf1f9;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-links a.active { color: var(--c-gold-2); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 9px;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  margin: 5px 0; transition: .3s;
}
.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); }

/* 移动端菜单面板 */
.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--c-navy);
  z-index: 999;
  transform: translateY(-130%);
  transition: transform .35s ease;
  padding: 10px 18px 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block;
  color: #eaf1f9;
  padding: 14px 6px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a.active { color: var(--c-gold-2); }
.mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: url("../assets/images/hero-home.png") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(6,24,43,.92) 0%, rgba(10,37,64,.62) 45%, rgba(10,37,64,.25) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 60px; }
.hero h1 { color: #fff; font-size: 44px; line-height: 1.15; margin-bottom: 18px; }
.hero h1 .hl { color: var(--c-gold-2); }
.hero p.lead { font-size: 18px; color: #d7e3f1; max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 42px; }
.hero-badges .b { display: flex; flex-direction: column; }
.hero-badges .b b { font-size: 26px; color: #fff; }
.hero-badges .b span { font-size: 13px; color: #aac0d8; }

/* 向下滚动提示 */
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #cdd; font-size: 12px; letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .8;
}
.scroll-cue .dot { width: 22px; height: 36px; border: 2px solid #fff; border-radius: 12px; position: relative; }
.scroll-cue .dot::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: cue 1.6s infinite;
}
@keyframes cue { 0%{opacity:0;top:7px} 40%{opacity:1} 100%{opacity:0;top:18px} }

/* =========================================================
   概览数据条
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.stat {
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px 14px;
}
.stat b { display: block; font-size: 34px; color: var(--c-navy); line-height: 1; }
.stat b .u { font-size: 18px; color: var(--c-gold); }
.stat span { color: var(--c-muted); font-size: 14px; }

/* =========================================================
   卡片栅格（产品 / 应用 / 优势）
   ========================================================= */
.grid { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e9eef5; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.06); }
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; }
.card .body p { color: var(--c-muted); font-size: 14px; flex: 1; }
.card .tag {
  display: inline-block; font-size: 12px; color: var(--c-blue);
  background: #eaf2fc; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; font-weight: 600;
}
.card .more { margin-top: 12px; font-weight: 700; color: var(--c-navy); display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }

/* 应用场所列表（图文交错） */
.app-row {
  display: grid; gap: 0; align-items: stretch;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.app-row .app-img { aspect-ratio: 16/10; overflow: hidden; }
.app-row .app-img img { width: 100%; height: 100%; object-fit: cover; }
.app-row .app-text { padding: 28px 24px; }
.app-row .app-text .num { font-size: 13px; color: var(--c-gold); font-weight: 800; letter-spacing: 2px; }
.app-row .app-text h3 { font-size: 22px; margin: 6px 0 12px; }
.app-row .app-text p { color: var(--c-muted); }
.app-row .app-text ul { margin: 0; padding-left: 18px; color: var(--c-muted); font-size: 14px; }
.app-row .app-text ul li { margin-bottom: 4px; }

/* 优势 */
.feature {
  text-align: center;
  padding: 30px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature .ico {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-navy), var(--c-navy-2)); color: var(--c-gold);
  font-size: 26px;
}
.feature h3 { font-size: 18px; }
.feature p { color: var(--c-muted); font-size: 14px; margin: 0; }

/* 时间轴（关于我们） */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.tl-item { position: relative; padding: 0 0 26px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--c-gold);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--c-line);
}
.tl-item .yr { font-weight: 800; color: var(--c-navy); }
.tl-item p { color: var(--c-muted); margin: 4px 0 0; font-size: 14px; }

/* 关于介绍两栏 */
.split { display: grid; gap: 30px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* 证书/资质标签 */
.badges-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.chip { background: #fff; border: 1px solid var(--c-line); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--c-navy); font-weight: 600; }

/* 面包屑 */
.breadcrumb { background: #eef3f9; padding: 14px 0; font-size: 13px; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb span { color: var(--c-navy); font-weight: 600; }

/* 内页头图 */
.page-hero {
  position: relative; padding: 120px 0 70px; color: #fff;
  background: linear-gradient(120deg, rgba(6,24,43,.92), rgba(10,37,64,.7)), var(--ph, url("../assets/images/about-factory.png")) center/cover no-repeat;
}
.page-hero h1 { color: #fff; font-size: 38px; margin-bottom: 10px; }
.page-hero p { color: #d7e3f1; max-width: 640px; margin: 0; }

/* CTA 横幅 */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: #c5d3e3; max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; }

/* =========================================================
   页脚
   ========================================================= */
.site-footer { background: var(--c-dark); color: #b9c6d6; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.footer-grid h4::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--c-gold); border-radius: 2px; }
.footer-grid a { color: #b9c6d6; display: block; padding: 5px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--c-gold-2); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: #93a3b6; }
.footer-contact li { list-style: none; padding: 5px 0; font-size: 14px; color: #b9c6d6; }
.footer-contact ul { margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; text-align: center; font-size: 13px; color: #7e8ea0;
}
.footer-bottom a { color: #9fb0c4; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-gold); color: #2a1800; border: none; cursor: pointer;
  font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s;
  display: grid; place-items: center;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--c-gold-2); transform: translateY(-3px); }

/* 滚动揭示动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   响应式：平板
   ========================================================= */
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   响应式：桌面
   ========================================================= */
@media (min-width: 992px) {
  .section { padding: 88px 0; }
  .section-head h2 { font-size: 36px; }
  .hero h1 { font-size: 58px; }
  .nav-toggle { display: none; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-img { order: 2; }
  .app-row { grid-template-columns: 1fr 1fr; }
  .app-row.reverse .app-img { order: 2; }
  .app-row .app-img { aspect-ratio: auto; }
  .app-row .app-text { padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; }
}

@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 599px) {
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .section-head h2 { font-size: 26px; }
  .page-hero h1 { font-size: 30px; }
  .hero-badges { gap: 18px; }
  .hero-badges .b b { font-size: 22px; }
}

/* 可访问性：减少动画 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   微信二维码弹层（产品中心“了解更多 / 获取报价”）
   ========================================================= */
#contact { scroll-margin-top: calc(var(--header-h) + 8px); }
.card .more { cursor: pointer; user-select: none; }

.qr-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.qr-modal.open { display: flex; }
.qr-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 24, 43, .62);
  backdrop-filter: blur(3px);
}
.qr-modal__box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px;
  padding: 30px 26px 26px; width: 100%; max-width: 340px;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: qrpop .28s ease;
}
@keyframes qrpop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.qr-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; border: none; background: #eef3f9;
  border-radius: 50%; font-size: 22px; line-height: 1; color: var(--c-navy); cursor: pointer;
}
.qr-modal__close:hover { background: #e2e9f2; }
.qr-modal__mark { margin: 0 auto 12px; }
.qr-modal__box h3 { font-size: 20px; margin-bottom: 6px; }
.qr-modal__sub { color: var(--c-muted); font-size: 13px; margin: 0 0 18px; }
.qr-modal__img {
  width: 220px; height: 220px; margin: 0 auto 16px;
  border: 1px solid var(--c-line); border-radius: 12px; padding: 10px; background: #fff;
}
.qr-modal__img img { width: 100%; height: 100%; }
.qr-modal__hint { font-size: 13px; color: var(--c-muted); margin: 0; }
.qr-modal__hint b { color: var(--c-navy); }
