
:root {
  --bg: #080D14;
  --bg-panel: #0D1622;
  --bg-panel-2: #111C2B;
  --line: rgba(13, 95, 217, 0.28);
  --line-soft: rgba(143, 168, 194, 0.10);
  --text: #EAF1F8;
  --text-dim: #8FA8C2;
  --brand: #0D5FD9;
  --brand-bright: #2B7FFF;
  --brand-glow: rgba(13, 95, 217, 0.35);
  --steel: #6B9AC4;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(8, 13, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo img {
  height: 92px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--brand-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* ---------- 首屏（视频背景轮播） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 86vh, 940px);
  padding: clamp(96px, 14vw, 168px) clamp(20px, 5vw, 56px) clamp(56px, 8vw, 92px);
  display: flex;
  align-items: flex-end;
  text-align: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video.is-active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 13, 20, 0.60) 0%,
      rgba(8, 13, 20, 0.28) 32%,
      rgba(8, 13, 20, 0.74) 72%,
      rgba(8, 13, 20, 0.95) 100%),
    radial-gradient(900px 420px at 50% 100%, rgba(13, 95, 217, 0.22), transparent 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-title {
  max-width: 600px;
  margin: 0 auto 26px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-title .title-line1,
.hero-title .title-line2 { display: block; }
.hero-title .title-line1 { text-align: left; }
.hero-title .title-line2 { text-align: right; }

.hero-sub {
  max-width: 820px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: clamp(15px, 2vw, 18px);
}
.hero-sub p { margin: 0 0 14px; }
.hero-sub p:last-child { margin-bottom: 0; }
.hero-materials { text-align: center; letter-spacing: -0.4px; }

.hero-solution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
}
.hero-solution-text { min-width: 0; text-align: right; }
.hero-line {
  flex: 0 0 auto;
  width: 72px;
  height: 2px;
  background: var(--text-dim);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  color: #ffffff;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.10); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13, 95, 217, 0.35); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand-bright); color: var(--brand-bright); }
.btn-lg {
  padding: 20px 54px;
  font-size: 19px;
  letter-spacing: 2px;
  border-radius: 6px;
}

/* ---------- 实力数据条 ---------- */
.stats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) clamp(48px, 8vw, 88px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--brand);
  border-radius: 6px;
  padding: 26px 18px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--brand-bright);
  line-height: 1;
}
.stat-unit { font-size: 0.5em; color: var(--text-dim); margin-left: 2px; }
.stat-label { display: block; margin-top: 10px; color: var(--text-dim); font-size: 14px; }

/* ---------- 通用区块 ---------- */
.section-title {
  font-size: clamp(24px, 3.4vw, 38px);
  text-align: center;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.section-lead {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 44px;
  max-width: 560px;
}

/* ---------- 产品系列 ---------- */
.products {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 56px);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 30px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(13, 95, 217, 0.18);
}
.product-icon {
  width: 52px;
  height: 52px;
  color: var(--brand-bright);
  margin-bottom: 18px;
}
.product-icon svg { width: 100%; height: 100%; }
.product-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
}
.product-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 18px;
  min-height: 60px;
}
.card-link {
  color: var(--brand-bright);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.card-link:hover { color: var(--brand-bright); text-decoration: underline; }

/* ---------- 场景浮块（图片底 + 蒙版，混排错落） ---------- */
.scenes-float {
  padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 56px);
}
.float-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 13px 14px;
}
.float-block {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 104px;
  padding: 24px 34px;
  border-radius: 14px;
  border: 1px solid rgba(143, 168, 194, 0.16);
  background-size: cover;
  background-position: center;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  animation: floaty 6s ease-in-out infinite alternate;
  transition: scale 0.35s cubic-bezier(0.22, 0.9, 0.3, 1),
              translate 0.35s cubic-bezier(0.22, 0.9, 0.3, 1),
              border-color 0.3s, box-shadow 0.3s;
}
.float-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 13, 20, 0.74), rgba(13, 95, 217, 0.44));
  transition: opacity 0.3s;
}
.float-text { position: relative; z-index: 1; }
.fb-lg { min-width: 230px; min-height: 136px; padding: 30px 46px; font-size: 26px; }
.fb-sm { min-width: 132px; min-height: 84px; padding: 18px 26px; font-size: 17px; }

.float-block:nth-child(4n+1) { margin-top: 0;    animation-duration: 6.2s; animation-delay: -0.4s; }
.float-block:nth-child(4n+2) { margin-top: 20px; animation-duration: 7.6s; animation-delay: -2.6s; }
.float-block:nth-child(4n+3) { margin-top: 8px;  animation-duration: 5.6s; animation-delay: -1.5s; }
.float-block:nth-child(4n+4) { margin-top: 28px; animation-duration: 8.2s; animation-delay: -4.2s; }

.float-block:hover {
  border-color: var(--brand-bright);
  box-shadow: 0 18px 44px rgba(13, 95, 217, 0.38);
}
.float-block:hover::before { opacity: 0.58; }

.s1 { background-image: url('assets/src/1.jpg'); }
.s2 { background-image: url('assets/src/2.jpg'); }
.s3 { background-image: url('assets/src/3.jpg'); }
.s4 { background-image: url('assets/src/4.jpg'); }
.s5 { background-image: url('assets/src/5.jpg'); }
.s6 { background-image: url('assets/src/6.jpg'); }

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.scene-intro {
  max-width: 780px;
  margin: 0 auto clamp(38px, 5vw, 58px);
  text-align: center;
}
.scene-intro .section-title { margin: 0 0 26px; }

@media (max-width: 640px) {
  .float-grid { gap: 10px; }
  .float-block { min-width: 132px; min-height: 84px; padding: 18px 24px; font-size: 17px; }
  .fb-lg { min-width: 176px; min-height: 108px; padding: 22px 30px; font-size: 21px; }
  .fb-sm { min-width: 108px; min-height: 68px; padding: 14px 18px; font-size: 15px; }
  .float-block:nth-child(4n+2) { margin-top: 11px; }
  .float-block:nth-child(4n+4) { margin-top: 16px; }
  .btn-lg { padding: 16px 38px; font-size: 17px; }
}

/* ---------- CTA ---------- */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 100px) clamp(20px, 5vw, 56px);
  text-align: center;
  background: radial-gradient(900px 360px at 50% 120%, rgba(43, 127, 255, 0.14), transparent 60%);
}
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 14px; }
.cta p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px clamp(20px, 5vw, 56px);
  text-align: center;
}
.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a { color: var(--text-dim); font-size: 14px; }
.footer-nav a:hover { color: var(--brand-bright); }
.copyright { color: #54667A; font-size: 13px; margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px clamp(20px, 5vw, 56px); }
  .product-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product-card p { min-height: 0; }
  .brand-logo img { height: 64px; }
}

/* ---------- 进场与 banner 交互 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-title { animation: fadeUp 0.8s ease both; }
.hero-sub { animation: fadeUp 0.8s ease 0.15s both; }
.hero-actions { animation: fadeUp 0.8s ease 0.30s both; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* 卡片悬停增强（浮起 + 微光） */
.product-card { position: relative; overflow: hidden; }
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 50% -20%, rgba(43, 127, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover::after { opacity: 1; }
.product-card:hover { box-shadow: 0 18px 44px rgba(13, 95, 217, 0.28); }

/* 按钮流光 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
}
.btn-primary:hover::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .hero-title, .hero-sub, .hero-actions { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { transition: none; }
  .float-block { animation: none; }
  .btn-primary::after { display: none; }
}

