/* HEXAVIA 官网 · 深色科技主题 */
:root {
  --bg: #050d16;
  --bg-2: #081423;
  --panel: rgba(255,255,255,.045);
  --line: rgba(124,195,238,.16);
  --primary: #0f3a5f;
  --accent: #2ea3e0;
  --accent-soft: #7cc3ee;
  --ink: #e8f2fa;
  --muted: #8fa9bd;
  --ok: #43d17c;
  --radius: 12px;
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  background: var(--bg);
}
a { color: var(--accent-soft); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,13,22,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: 2px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-lockup img { height: 34px; width: auto; display: block; }
.brand-word { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: 5px; line-height: 1; }
.brand small { font-size: 11px; color: var(--accent-soft); letter-spacing: 1px; font-weight: 400; display: block; line-height: 1.5; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a.nl { color: #b9d2e6; font-size: 15.5px; }
.nav-links a.nl:hover { color: #fff; }
.lang-toggle {
  background: rgba(46,163,224,.1); color: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.lang-toggle:hover { background: rgba(46,163,224,.22); color: #fff; }

.btn {
  display: inline-block; padding: 10px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #2ea3e0, #1a6fa8); color: #fff;
  box-shadow: 0 6px 24px rgba(46,163,224,.4);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 30px rgba(46,163,224,.55); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.05); }
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-datacenter.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,13,22,.94) 20%, rgba(5,13,22,.72) 55%, rgba(5,13,22,.35) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(124,195,238,.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px 84px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.kicker { color: var(--accent-soft); letter-spacing: 5px; font-size: 13px; margin-bottom: 16px; text-shadow: 0 0 12px rgba(46,163,224,.6); }
.hero h1 { font-size: 42px; line-height: 1.45; margin: 0 0 18px; font-weight: 800; color: #fff; }
.hero h1 .hl {
  background: linear-gradient(90deg, #7cc3ee, #2ea3e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: #b9d2e6; font-size: 16px; max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(10,25,40,.62);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(124,195,238,.18); font-size: 13.5px; }
.hero-card .row:last-child { border-bottom: none; }
.hero-card .row b { color: var(--accent-soft); font-size: 16px; }
.hero-card .row span { color: #b9d2e6; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #9fe6a0; margin-bottom: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 24px; position: relative; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.sec-title { text-align: center; margin-bottom: 12px; }
.sec-title .en { color: var(--accent); font-size: 12px; letter-spacing: 5px; text-transform: uppercase; }
.sec-title h2 { font-size: 31px; margin: 10px 0 0; color: #fff; }
.sec-title h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}
.sec-sub { text-align: center; color: var(--muted); max-width: 740px; margin: 0 auto 46px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  backdrop-filter: blur(6px);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(46,163,224,.5);
  box-shadow: 0 16px 44px rgba(46,163,224,.14);
}
.card .icon { font-size: 30px; margin-bottom: 12px; filter: drop-shadow(0 0 8px rgba(46,163,224,.5)); }
.card .thumb { margin: -28px -24px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card .thumb img { width: 100%; height: 150px; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.05); }
/* 网关产品通栏展示卡 */
.card.feature {
  display: grid; grid-template-columns: 1.25fr .75fr;
  padding: 0; overflow: hidden; align-items: stretch;
}
.feature-img { min-height: 320px; background: #000; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 38px 36px; align-self: center; }
.feature-body h3 { font-size: 21px; }
.feature-body p { font-size: 14px; }
.feature-body ul { font-size: 13.5px; }
.card h3 { margin: 0 0 10px; font-size: 17px; color: #fff; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.card ul li { margin-bottom: 5px; }
.card ul li::marker { color: var(--accent); }

.stats { background: linear-gradient(180deg, #081426, #0a1a30); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { max-width: var(--maxw); margin: 0 auto; padding: 46px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 36px; color: var(--accent-soft); text-shadow: 0 0 22px rgba(46,163,224,.55); }
.stats span { font-size: 13.5px; color: var(--muted); }

/* ---------- 架构图 ---------- */
.arch {
  background: rgba(10,25,40,.55); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px; backdrop-filter: blur(8px);
}
.arch svg { width: 100%; height: auto; display: block; }
.banner { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.banner img { width: 100%; height: 300px; object-fit: cover; }
.banner .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 20px;
  background: linear-gradient(transparent, rgba(5,13,22,.92));
  color: #dbe9f5; font-size: 14px;
}
.banner .cap b { color: #fff; display: block; font-size: 17px; margin-bottom: 4px; }

/* ---------- 场景 ---------- */
.scn {
  display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; align-items: flex-start;
  transition: border-color .18s, transform .18s;
}
.scn:hover { border-color: rgba(46,163,224,.5); transform: translateY(-3px); }
.scn .n {
  flex: 0 0 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(46,163,224,.25), rgba(46,163,224,.08));
  border: 1px solid rgba(46,163,224,.35);
  color: var(--accent-soft); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.scn h3 { margin: 0 0 6px; font-size: 15.5px; color: #fff; }
.scn p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 合作模式 ---------- */
.mode { text-align: center; }
.mode .tag {
  display: inline-block; background: linear-gradient(135deg, #2ea3e0, #1a6fa8); color: #fff;
  font-size: 12px; padding: 3px 14px; border-radius: 999px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(46,163,224,.35);
}

/* ---------- 联系 ---------- */
.contact-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.contact-bg { position: absolute; inset: 0; background: url("../img/control-room.jpg") center/cover no-repeat; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(5,13,22,.94) 30%, rgba(5,13,22,.68) 70%, rgba(5,13,22,.5) 100%); }
.contact {
  position: relative; z-index: 1;
  padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center;
}
.contact h2 { margin: 0 0 12px; font-size: 29px; color: #fff; }
.contact p { color: #b9d2e6; margin: 0 0 8px; }
.contact .info {
  background: rgba(10,25,40,.66); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px; backdrop-filter: blur(10px);
}
.contact .info div { padding: 10px 0; border-bottom: 1px dashed rgba(124,195,238,.2); font-size: 14px; color: #dbe9f5; }
.contact .info div:last-child { border: none; }
.contact .info b { color: var(--accent-soft); display: inline-block; width: 88px; }
.contact .info a { color: #fff; }
.contact .info a:hover { color: var(--accent-soft); }

footer { background: #040a12; border-top: 1px solid var(--line); color: #6d8aa3; font-size: 13px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- 首屏 v2：留白 + 大动画 ---------- */
.hero-v2 { min-height: 94vh; display: flex; align-items: center; }
.hero-v2 .hero-inner {
  display: block; max-width: 920px; text-align: center;
  padding: 130px 24px 110px; margin: 0 auto;
}
#particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-center { text-align: center; max-width: 900px; }
.hero-center .hero-cta-center { justify-content: center; }
h1.mega {
  font-size: 64px; line-height: 1.35; font-weight: 800; color: #fff;
  margin: 0 0 26px; letter-spacing: 2px;
  text-shadow: 0 4px 40px rgba(46,163,224,.35);
}
.hero-center .lead { margin-left: auto; margin-right: auto; text-align: center; }
.btn-lg { padding: 14px 38px; font-size: 16px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px;
  border: 2px solid rgba(124,195,238,.5); border-radius: 14px;
}
.scroll-hint span {
  display: block; width: 4px; height: 8px; margin: 8px auto 0;
  background: var(--accent-soft); border-radius: 2px;
  animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 快准全 ---------- */
.fqa-num {
  font-size: 44px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #2ea3e0, #0f3a5f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.fqa-card h3 { font-size: 22px; }
.fqa-card h3 em { font-size: 12px; color: var(--accent); letter-spacing: 3px; margin-left: 10px; font-style: normal; font-weight: 600; }

/* ---------- 对比表 ---------- */
.compare {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; backdrop-filter: blur(8px);
}
.compare-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.compare-table th {
  background: rgba(15,58,95,.85); color: #fff; padding: 16px 20px;
  font-size: 15px; text-align: left;
}
.compare-table th.hl-col { color: var(--accent-soft); }
.compare-table td { padding: 16px 20px; border-bottom: 1px solid rgba(124,195,238,.1); color: #c9deee; vertical-align: top; }
.compare-table td:first-child { color: #fff; font-weight: 700; white-space: nowrap; width: 130px; }
.compare-table td.hl-col {
  background: rgba(46,163,224,.08); color: #fff; font-weight: 600;
  border-left: 1px solid rgba(46,163,224,.3); border-right: 1px solid rgba(46,163,224,.3);
}
.compare-table tr:last-child td { border-bottom: none; }

/* ---------- 设备实拍 ---------- */
.dev-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.dev-photo {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #0a1626; transition: transform .18s, border-color .18s;
}
.dev-photo:hover { transform: translateY(-3px); border-color: rgba(46,163,224,.5); }
.dev-photo img { width: 100%; height: 110px; object-fit: cover; }
.dev-photo span { display: block; text-align: center; padding: 10px; font-size: 13px; color: #dbe9f5; }

/* ---------- 场景 Tab ---------- */
.tabs { max-width: 860px; margin: 0 auto; }
.tab-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.tab-btn {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 10px 26px; font-size: 14.5px; cursor: pointer;
  transition: all .18s;
}
.tab-btn:hover { color: #fff; border-color: rgba(46,163,224,.5); }
.tab-btn.active {
  background: linear-gradient(135deg, #2ea3e0, #1a6fa8); color: #fff; border-color: transparent;
  box-shadow: 0 6px 20px rgba(46,163,224,.4);
}
.tab-panel { display: none; }
.tab-panel.active { display: grid; gap: 16px; }
.tab-panel .scn { opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }
.tab-panel.revealed .scn, .tab-panel.active .scn { opacity: 1; transform: none; }
.tab-panel.active .scn:nth-child(2) { transition-delay: .08s; }
.tab-panel.active .scn:nth-child(3) { transition-delay: .16s; }

/* ---------- 交付流程 ---------- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 8px; flex-wrap: wrap; }
.step {
  flex: 1 1 150px; max-width: 190px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px; transition: transform .18s, border-color .18s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(46,163,224,.5); }
.step-n {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #2ea3e0, #0f3a5f);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff;
  box-shadow: 0 0 20px rgba(46,163,224,.45);
}
.step h4 { margin: 0 0 6px; font-size: 15.5px; color: #fff; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); }
.step-arrow { align-self: center; color: var(--accent); font-size: 22px; font-weight: 700; }

/* ---------- 滚动显现 & 3D ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.tilt { transition: transform .25s ease; will-change: transform; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 56px; }
  .hero h1 { font-size: 31px; }
  h1.mega { font-size: 38px; }
  .grid4, .grid3 { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 0; }
  .feature-img img { height: 220px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .dev-photos { grid-template-columns: 1fr 1fr; }
  .compare { overflow-x: auto; }
  .compare-table { min-width: 560px; }
  .compare-table td:first-child { white-space: normal; }
  .step-arrow { display: none; }
  .nav-links a.nl { display: none; }
  .contact { grid-template-columns: 1fr; padding: 38px 26px; }
  .nav-links a.nl { display: none; }
  .banner img { height: 200px; }
}
@media (max-width: 600px) {
  .grid4, .grid3 { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .brand-word { font-size: 17px; letter-spacing: 3px; }
  .brand-lockup img { height: 28px; }
}
