/* ============ 首页专属 ============ */

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 60px 0 0;
  overflow: hidden;
  min-height: 880px;
}
.hero-bg-rings {
  position: absolute;
  right: -300px; top: 40px;
  width: 1200px; height: 1200px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 30%, rgba(98,189,255,0.04) 30.5%, transparent 31%),
    radial-gradient(circle, transparent 40%, rgba(98,189,255,0.04) 40.5%, transparent 41%),
    radial-gradient(circle, transparent 50%, rgba(98,189,255,0.05) 50.5%, transparent 51%),
    radial-gradient(circle, transparent 60%, rgba(98,189,255,0.04) 60.5%, transparent 61%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 28px 100px;
  z-index: 1;
}

.hero-copy { max-width: 580px; }
.hero-title {
  font-size: clamp(48px, 5.4vw, 80px);
  margin: 22px 0 24px;
}
.hero-title-grad {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent-3) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 48px; }
.hero-trust { display: flex; flex-direction: column; gap: 10px; }
.hero-brands {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.hero-brands span {
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  transition: color .2s, border-color .2s;
}
.hero-brands span:hover { color: var(--text-mid); border-bottom-color: var(--line-bright); }

/* ===== 右侧 3D 舞台 ===== */
.hero-stage {
  position: relative;
  height: 620px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1500px;
}
.stage-rings {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  transform-style: preserve-3d;
}
.ring-1 {
  width: 460px; height: 460px;
  border-color: rgba(98,189,255,0.25);
  box-shadow: 0 0 60px rgba(98,189,255,0.08), inset 0 0 60px rgba(98,189,255,0.05);
  animation: rotate3d 30s linear infinite;
  transform: rotateX(75deg) rotateZ(0deg);
}
.ring-2 {
  width: 360px; height: 360px;
  border-color: rgba(179,136,255,0.2);
  border-style: dashed;
  animation: rotate3d 22s linear infinite reverse;
  transform: rotateX(70deg);
}
.ring-3 {
  width: 540px; height: 540px;
  border: 1px solid rgba(255,106,44,0.15);
  animation: rotate3d 40s linear infinite;
  transform: rotateX(78deg);
}
@keyframes rotate3d {
  to { transform: rotateX(75deg) rotateZ(360deg); }
}

/* 中央机械臂 */
.hero-robot {
  width: 430px; height: 430px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(98,189,255,0.15));
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.scan-line {
  animation: scanY 3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes scanY {
  0%,100% { transform: translateY(-100px); opacity: 0; }
  50% { transform: translateY(100px); opacity: .6; }
}

/* HUD 卡片 */
.hud {
  position: absolute;
  background: linear-gradient(180deg, rgba(20,28,42,0.85), rgba(13,18,28,0.75));
  border: 1px solid rgba(98,189,255,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  min-width: 150px;
  z-index: 3;
}
.hud::before {
  content: '';
  position: absolute;
  top: -1px; left: 10px;
  width: 30px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}
.hud-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.hud-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hud-value-sm {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 2px 0;
}
.hud-unit {
  font-size: 14px; color: var(--text-mid); font-weight: 400;
  margin-left: 2px;
}
.hud-meta { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.hud-foot { font-size: 11px; color: var(--text-mid); margin-top: 4px; }
.hud-bar {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
  margin-top: 6px;
  overflow: hidden;
}
.hud-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 8px var(--accent-2);
}
.hud-spark { width: 100%; height: 18px; margin-top: 4px; }

.hud-1 { top: 8%; left: 0;    animation: hudFloat 7s ease-in-out infinite; }
.hud-2 { top: 18%; right: 0;  animation: hudFloat 8s ease-in-out infinite -2s; }
.hud-3 { bottom: 22%; left: -10px; animation: hudFloat 9s ease-in-out infinite -4s; border-color: rgba(255,181,71,0.35); }
.hud-3::before { background: linear-gradient(90deg, transparent, var(--warn), transparent); }
.hud-4 { bottom: 8%; right: 10px; animation: hudFloat 7s ease-in-out infinite -3s; }

@keyframes hudFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 粒子 */
.particles {
  position: absolute; inset: 0; pointer-events: none;
}
.particles span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  opacity: .6;
}
.particles span:nth-child(1) { top: 20%; left: 30%; animation: p 6s linear infinite; }
.particles span:nth-child(2) { top: 60%; left: 70%; animation: p 8s linear infinite -2s; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.particles span:nth-child(3) { top: 40%; left: 80%; animation: p 7s linear infinite -1s; }
.particles span:nth-child(4) { top: 80%; left: 20%; animation: p 9s linear infinite -3s; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); }
.particles span:nth-child(5) { top: 30%; left: 60%; animation: p 10s linear infinite -4s; }
.particles span:nth-child(6) { top: 70%; left: 50%; animation: p 6s linear infinite -1.5s; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.particles span:nth-child(7) { top: 50%; left: 20%; animation: p 8s linear infinite -3.5s; }
.particles span:nth-child(8) { top: 15%; left: 70%; animation: p 9s linear infinite -5s; background: var(--accent-3); box-shadow: 0 0 8px var(--accent-3); }
@keyframes p {
  0% { transform: translate(0,0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .6; }
  100% { transform: translate(40px, -60px); opacity: 0; }
}

/* Hero 底部状态条 */
.hero-status {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11,15,23,0.5);
  backdrop-filter: blur(8px);
  margin-top: 20px;
}
.hero-status-inner {
  padding: 16px 28px;
  display: flex; gap: 36px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-mid);
}
.hero-status-inner b { color: var(--text); font-weight: 500; }

/* ===== 通用 section head ===== */
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-size: clamp(36px, 4vw, 56px);
  margin: 16px 0 18px;
}
.grad-text {
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0;
}

/* ===== 4 大模块 ===== */
.section-modules { padding-top: 80px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.module-card {
  position: relative;
  display: block;
  background: linear-gradient(180deg, rgba(26,33,45,0.6), rgba(13,18,28,0.5));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px 32px;
  text-decoration: none;
  color: var(--text);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
  min-height: 280px;
}
.module-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(98,189,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-glow);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px rgba(98,189,255,0.08);
}
.module-card:hover::before { opacity: 1; }

.module-card.highlight {
  background: linear-gradient(180deg, rgba(40,28,22,0.7), rgba(20,14,18,0.6));
  border-color: rgba(255,106,44,0.3);
}
.module-card.highlight:hover {
  border-color: rgba(255,106,44,0.6);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(255,106,44,0.15);
}
.module-card.highlight::before {
  background: radial-gradient(circle, rgba(255,106,44,0.18) 0%, transparent 60%);
}
.module-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(255,106,44,0.15);
  color: var(--accent);
  border: 1px solid rgba(255,106,44,0.3);
  border-radius: 999px;
}

.module-icon {
  width: 64px; height: 64px;
  margin-bottom: 24px;
  color: var(--text-mid);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  padding: 10px;
  position: relative;
  z-index: 1;
}
.module-tag {
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.module-card.highlight .module-tag { color: var(--accent); }
.module-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.module-desc {
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 15px;
  margin: 0 0 18px;
  max-width: 480px;
}
.module-meta {
  display: flex; gap: 18px;
  font-size: 13px;
  color: var(--text-mid);
}
.module-arrow {
  position: absolute;
  right: 28px; bottom: 28px;
  font-size: 22px;
  color: var(--text-dim);
  transition: transform .25s, color .25s;
}
.module-card:hover .module-arrow {
  color: var(--accent-2);
  transform: translateX(6px);
}
.module-card.highlight:hover .module-arrow { color: var(--accent); }

/* ===== AI 故障流 4 步 ===== */
.section-flow {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,106,44,0.06), transparent 70%),
    transparent;
}
.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
}
.flow-line {
  position: absolute;
  top: 36px; left: 5%; right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--bad) 0%, var(--bad) 12%,
    var(--accent-2) 25%, var(--accent-2) 37%,
    var(--warn) 50%, var(--warn) 62%,
    var(--ok) 75%, var(--ok) 100%);
  opacity: .4;
  z-index: 0;
}
.flow-step { position: relative; }
.flow-node {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  border: 2px solid;
  background: var(--bg-base);
}
.flow-node::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid;
  opacity: .4;
}
.flow-node.bad  { color: var(--bad); border-color: var(--bad); box-shadow: 0 0 24px rgba(255,93,108,0.4); }
.flow-node.bad::after { border-color: var(--bad); }
.flow-node.info { color: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 24px rgba(98,189,255,0.4); }
.flow-node.info::after { border-color: var(--accent-2); }
.flow-node.warn { color: var(--warn); border-color: var(--warn); box-shadow: 0 0 24px rgba(255,181,71,0.4); }
.flow-node.warn::after { border-color: var(--warn); }
.flow-node.ok   { color: var(--ok); border-color: var(--ok); box-shadow: 0 0 24px rgba(61,220,151,0.4); }
.flow-node.ok::after { border-color: var(--ok); }

.flow-time {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.flow-card {
  padding: 20px 22px;
  min-height: 260px;
}
.flow-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.flow-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 14px;
}
.flow-card-body { font-size: 13px; }
.kv {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text-mid);
}
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--text); font-weight: 500; }
.flow-card-visual {
  margin-top: 14px;
  height: 60px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.bad-bg { background: rgba(255,93,108,0.08); border: 1px solid rgba(255,93,108,0.2); }
.bad-bg svg { width: 100%; height: 100%; padding: 4px; }
.ok-bg { background: rgba(61,220,151,0.08); border: 1px solid rgba(61,220,151,0.2); }
.ok-tick { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-family: var(--font-mono); font-size: 13px; }
.ok-tick svg { width: 28px; height: 28px; }

.diag-row {
  margin-bottom: 10px;
}
.diag-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.diag-bar > div {
  height: 100%;
  border-radius: 2px;
  box-shadow: 0 0 6px currentColor;
}
.diag-label {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 4px;
}
.diag-label .mono { color: var(--text); font-weight: 500; }

.ticket-row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
}
.ticket-doc {
  font-size: 12px;
  color: var(--text-mid);
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}

.flow-cta {
  margin-top: 56px;
  display: flex; gap: 12px; justify-content: center;
}

/* ===== 拓扑图 ===== */
.section-topology { padding-top: 60px; }
.topology-wrap {
  padding: 0;
  overflow: hidden;
}
.topo-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,15,23,0.4);
}
.topo-tabs { display: flex; gap: 6px; }
.topo-tab {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-mid);
  border: 1px solid transparent;
  cursor: pointer;
}
.topo-tab.active {
  color: var(--text);
  background: rgba(98,189,255,0.1);
  border-color: rgba(98,189,255,0.3);
}
.topo-status {
  display: flex; gap: 16px;
  font-size: 12px;
  color: var(--text-mid);
}
.topo-canvas {
  background:
    radial-gradient(ellipse at center, rgba(98,189,255,0.04), transparent 70%),
    linear-gradient(180deg, rgba(11,15,23,0.5), rgba(6,8,13,0.7));
  padding: 16px;
}
.topo-canvas svg { width: 100%; height: auto; display: block; }
.topo-legend {
  display: flex; gap: 24px;
  padding: 12px 22px;
  font-size: 12px;
  color: var(--text-mid);
  border-top: 1px solid var(--line);
  background: rgba(11,15,23,0.4);
}

/* ===== 数字背书 ===== */
.section-metrics {
  padding: 60px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,106,44,0.06), transparent 70%);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.metric {
  text-align: left;
  padding: 18px 8px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.metric:first-child { border-left: 0; padding-left: 0; }
.metric-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-suffix {
  font-size: 30px;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  margin-left: 4px;
}
.metric-label {
  font-family: var(--font-display);
  font-size: 16px;
  margin-top: 10px;
  color: var(--text);
}
.metric-foot {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* ===== 行业卡 ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.industry-card {
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(26,33,45,0.4), rgba(13,18,28,0.4));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  transition: transform .3s, border-color .3s;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-glow);
}
.industry-icon {
  font-size: 40px;
  margin-bottom: 14px;
  filter: grayscale(0.1);
}
.industry-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
}
.industry-card p {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

/* ===== 终极 CTA ===== */
.section-final-cta {
  position: relative;
  padding: 0;
  margin: 60px 28px 0;
}
.cta-wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px 60px;
  background:
    radial-gradient(ellipse at center, rgba(255,106,44,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #14191f 0%, #0a0e16 100%);
  border: 1px solid var(--line-bright);
  border-radius: 32px;
  overflow: hidden;
}
.cta-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,106,44,0.18);
}
.cta-ring:nth-child(1) { width: 600px; height: 600px; }
.cta-ring:nth-child(2) { width: 800px; height: 800px; border-color: rgba(98,189,255,0.12); }
.cta-ring:nth-child(3) { width: 1000px; height: 1000px; border-color: rgba(179,136,255,0.08); }
.cta-content { position: relative; max-width: 720px; }
.cta-title {
  font-size: clamp(40px, 5vw, 64px);
  margin: 18px 0 14px;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-mid);
  margin: 0 0 36px;
}
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}
.cta-form input {
  background: rgba(11,15,23,0.6);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.cta-form input:focus { border-color: var(--accent-2); }
.cta-form input::placeholder { color: var(--text-dim); }
.cta-foot { font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { height: 500px; }
  .module-grid { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: 1fr 1fr; gap: 32px; }
  .flow-line { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-menu { display: none; }
  .flow-track { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-left: 0; padding-left: 0; }
  .industry-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 400px; transform: scale(0.85); }
  .cta-wrap { padding: 60px 24px; }
}
