/* ============================================================
   具身智能导航 · Embodied AI Hub — 未来科技 / Cyber-future
   ============================================================ */

:root {
  --bg: #02040a;
  --bg-2: #050912;
  --panel: rgba(10, 18, 34, 0.5);
  --panel-brd: rgba(90, 200, 255, 0.18);
  --text: #eaf4ff;
  --text-dim: #8ba0c4;
  --text-faint: #4a5b80;
  --cyan: #22e0ff;
  --blue: #3b82ff;
  --violet: #9b5cff;
  --pink: #ff3d81;
  --accent: var(--cyan);
  --radius: 14px;
  --maxw: 1200px;
  --f-display: "Orbitron", sans-serif;
  --f-tech: "Rajdhani", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Sora", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   背景场景
   ============================================================ */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }

/* 3D 透视地板网格 —— 未来感核心 */
.perspective-grid {
  position: absolute; left: 50%; bottom: -10%;
  width: 260vw; height: 120vh;
  transform: translateX(-50%) perspective(420px) rotateX(66deg);
  transform-origin: 50% 100%;
  background-image:
    linear-gradient(rgba(34,224,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,224,255,0.30) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 35%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.5) 35%, transparent 72%);
  animation: gridflow 4.5s linear infinite;
  opacity: 0.55;
}
@keyframes gridflow { from { background-position: 0 0; } to { background-position: 0 62px; } }

/* 极光带 */
.aurora {
  position: absolute; top: -20%; left: -20%; width: 140%; height: 80%;
  background:
    radial-gradient(ellipse 40% 50% at 30% 40%, rgba(34,224,255,0.18), transparent 60%),
    radial-gradient(ellipse 45% 55% at 70% 30%, rgba(155,92,255,0.16), transparent 60%),
    radial-gradient(ellipse 40% 50% at 50% 60%, rgba(59,130,255,0.14), transparent 60%);
  filter: blur(30px);
  animation: auroraShift 16s ease-in-out infinite alternate;
}
@keyframes auroraShift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(4%,3%) scale(1.1); } }

/* 噪点颗粒 */
.noise {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow { position: absolute; border-radius: 50%; filter: blur(130px); }
.glow-1 { width: 560px; height: 560px; background: rgba(59,130,255,0.5);  top: -180px; left: -120px; opacity: 0.6; }
.glow-2 { width: 520px; height: 520px; background: rgba(155,92,255,0.45); top: 60px;   right: -160px; opacity: 0.55; }
.glow-3 { width: 620px; height: 620px; background: rgba(34,224,255,0.28); bottom: -260px; left: 40%; opacity: 0.5; }

/* CRT 扫描线 */
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: 0.5;
  animation: scanmove 8s linear infinite;
}
@keyframes scanmove { from { background-position: 0 0; } to { background-position: 0 100px; } }

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 40%, rgba(2,4,10,0.85) 100%);
}

/* ============================================================
   HUD 装饰
   ============================================================ */
.hud { position: fixed; inset: 0; z-index: 15; pointer-events: none; }
.hud-corner { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(34,224,255,0.5); }
.hud-corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; }
.hud-tick {
  position: fixed; bottom: 24px; font-family: var(--f-tech);
  font-size: 11px; letter-spacing: 2px; color: rgba(34,224,255,0.55);
  text-transform: uppercase;
}
.hud-tick::before { content: attr(data-hud); }
.hud-left { left: 54px; }
.hud-right { right: 54px; }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(2,4,10,0.9), rgba(2,4,10,0.1));
  border-bottom: 1px solid rgba(34,224,255,0.1);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 15px 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--cyan); filter: drop-shadow(0 0 10px var(--cyan)); font-size: 18px; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-name { font-family: var(--f-display); font-weight: 700; letter-spacing: 1px; font-size: 16px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-family: var(--f-tech);
  font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  position: relative; transition: color 0.25s;
}
.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(34,224,255,0.6); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 8px var(--cyan); transition: width 0.28s ease;
}
.nav-links a:hover::after { width: 100%; }
.lang-toggle {
  background: rgba(34,224,255,0.06); border: 1px solid var(--panel-brd);
  color: var(--cyan); font-family: var(--f-display); font-size: 12px; font-weight: 700;
  padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: all 0.25s; letter-spacing: 1px;
}
.lang-toggle:hover { background: rgba(34,224,255,0.16); border-color: var(--cyan); box-shadow: 0 0 20px rgba(34,224,255,0.35); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; z-index: 5; min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center;
  gap: 20px; max-width: var(--maxw); margin: 0 auto;
  padding: 120px 60px 60px;
}

/* 旋转线框环 */
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(34,224,255,0.25); }
.ring.r1 { width: 100%; height: 100%; margin: -50% 0 0 -50%; border-color: rgba(34,224,255,0.20); border-top-color: rgba(34,224,255,0.7); animation: spin 14s linear infinite; }
.ring.r2 { width: 78%; height: 78%; margin: -39% 0 0 -39%; border-color: rgba(155,92,255,0.18); border-left-color: rgba(155,92,255,0.7); animation: spin 10s linear infinite reverse; }
.ring.r3 { width: 54%; height: 54%; margin: -27% 0 0 -27%; border-color: rgba(59,130,255,0.18); border-bottom-color: rgba(59,130,255,0.7); animation: spin 7s linear infinite; }
/* ---- 全息能量人形 ---- */
.android-stage {
  position: relative; justify-self: center;
  width: min(560px, 46vw); aspect-ratio: 1 / 1; z-index: 1;
}
#figure-canvas {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%; z-index: 2;
  filter: drop-shadow(0 0 42px rgba(34,224,255,0.28));
  animation: figureFloat 8s ease-in-out infinite;
}
@keyframes figureFloat { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -53%); } }

.hero-content { animation: rise 1s ease both; position: relative; z-index: 3; text-align: left; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(2,4,10,0.6); border: 1px solid rgba(34,224,255,0.3);
  color: var(--cyan); font-family: var(--f-tech); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px;
  backdrop-filter: blur(6px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.6s infinite; }
.badge-sep { color: var(--text-faint); }
.badge-live { color: var(--pink); text-shadow: 0 0 10px rgba(255,61,129,0.6); }

.hero-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2.3rem, 6.5vw, 5rem); line-height: 1.05;
  letter-spacing: 1px; margin-bottom: 24px; position: relative;
  background: linear-gradient(115deg, #fff 15%, var(--cyan) 50%, var(--violet) 85%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(34,224,255,0.25);
}
/* Glitch 故障效果 */
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
  -webkit-background-clip: text; background-clip: text;
}
.glitch::before {
  color: var(--pink); -webkit-text-fill-color: var(--pink);
  animation: glitch1 3.5s infinite steps(2); clip-path: inset(0 0 55% 0); opacity: 0.55; z-index: -1;
}
.glitch::after {
  color: var(--cyan); -webkit-text-fill-color: var(--cyan);
  animation: glitch2 3.8s infinite steps(2); clip-path: inset(55% 0 0 0); opacity: 0.55; z-index: -1;
}
@keyframes glitch1 { 0%,92%,100% { transform: translate(0); } 93% { transform: translate(-4px,-2px); } 96% { transform: translate(3px,1px); } }
@keyframes glitch2 { 0%,90%,100% { transform: translate(0); } 91% { transform: translate(4px,2px); } 95% { transform: translate(-3px,-1px); } }

.hero-sub {
  font-family: var(--f-tech); font-size: clamp(1rem, 1.5vw, 1.3rem); color: var(--text-dim);
  max-width: 520px; margin: 0 0 42px; font-weight: 400; letter-spacing: 1px;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 34px; }
.cta {
  position: relative; display: inline-block; text-decoration: none;
  padding: 16px 46px; border-radius: 10px; font-family: var(--f-tech);
  font-weight: 700; font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  color: #02040a; background: linear-gradient(115deg, var(--cyan), var(--blue));
  box-shadow: 0 0 30px rgba(34,224,255,0.45), inset 0 0 20px rgba(255,255,255,0.2);
  transition: transform 0.25s, box-shadow 0.25s; overflow: hidden;
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(34,224,255,0.7); }
.cta::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: sheen 3s infinite;
}
@keyframes sheen { 0% { left: -100%; } 60%,100% { left: 160%; } }

.hero-stats { display: flex; align-items: center; gap: 26px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-family: var(--f-display); font-size: 26px; color: var(--cyan); text-shadow: 0 0 14px rgba(34,224,255,0.5); }
.stat small { font-family: var(--f-tech); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
.stat-div { width: 1px; height: 34px; background: linear-gradient(var(--panel-brd), transparent); }

.scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(34,224,255,0.4); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }

/* ============================================================
   区块
   ============================================================ */
.container { position: relative; z-index: 5; max-width: var(--maxw); margin: 0 auto; padding: 40px 60px 0; }
.section { padding: 80px 0 10px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 46px; }
.section-idx { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--cyan); border: 1px solid rgba(34,224,255,0.4); padding: 5px 10px; border-radius: 6px; box-shadow: 0 0 16px rgba(34,224,255,0.2) inset; }
.section-title {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem);
  white-space: nowrap; letter-spacing: 1px;
  background: linear-gradient(115deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(34,224,255,0.5), transparent); position: relative; }
.section-line::before { content: ""; position: absolute; left: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ============================================================
   卡片
   ============================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.card {
  position: relative; display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--panel-brd);
  border-radius: var(--radius); padding: 26px 24px;
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden; opacity: 0; transform: translateY(28px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.card.in { opacity: 1; transform: translateY(0); }
/* 顶角切角高亮 */
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 16px; height: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(34,224,255,0.6) 50%);
}
/* 鼠标跟随光晕 */
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(34,224,255,0.16), transparent 42%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(34,224,255,0.55); box-shadow: 0 22px 60px rgba(0,0,0,0.6), 0 0 30px rgba(34,224,255,0.2); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; position: relative; z-index: 2; }
.card-logo {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 900; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 6px 20px rgba(34,224,255,0.35); position: relative;
}
.card-name { font-family: var(--f-tech); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; color: var(--text); }
.card-tag { font-family: var(--f-tech); font-size: 11px; color: var(--cyan); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.card-desc { color: var(--text-dim); font-size: 14px; position: relative; z-index: 2; font-weight: 300; }
.card-arrow { position: absolute; top: 22px; right: 24px; color: var(--text-faint); transition: transform 0.3s, color 0.3s; z-index: 2; font-size: 15px; }
.card:hover .card-arrow { color: var(--cyan); transform: translate(3px,-3px); }

/* ============================================================
   愿景叙事卡片
   ============================================================ */
.vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.vision {
  position: relative; padding: 34px 30px 38px;
  background: linear-gradient(160deg, rgba(12,24,46,0.6), rgba(5,10,22,0.4));
  border: 1px solid var(--panel-brd); border-radius: var(--radius);
  backdrop-filter: blur(12px); overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s, opacity 0.5s;
}
.vision.in { opacity: 1; transform: translateY(0); }
.vision::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(155,92,255,0.14), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.vision:hover { transform: translateY(-6px); border-color: rgba(155,92,255,0.5); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 30px rgba(155,92,255,0.15); }
.vision:hover::before { opacity: 1; }
.vision-no {
  position: absolute; top: 20px; right: 26px;
  font-family: var(--f-display); font-weight: 900; font-size: 46px;
  color: transparent; -webkit-text-stroke: 1px rgba(34,224,255,0.25); line-height: 1;
}
.vision-icon {
  font-size: 30px; color: var(--cyan); margin-bottom: 18px;
  filter: drop-shadow(0 0 12px rgba(34,224,255,0.6));
}
.vision-title {
  font-family: var(--f-tech); font-weight: 700; font-size: 22px; letter-spacing: 1px;
  margin-bottom: 14px; color: #fff;
}
.vision-desc { color: var(--text-dim); font-size: 14.5px; font-weight: 300; line-height: 1.75; position: relative; z-index: 2; }
.vision-edge {
  position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 14px var(--cyan);
  transition: height 0.5s ease;
}
.vision:hover .vision-edge { height: 100%; }

/* ============================================================
   联系区
   ============================================================ */
.contact { display: flex; justify-content: center; padding-top: 100px; }
.contact-card {
  position: relative; text-align: center; max-width: 640px; width: 100%;
  padding: 60px 40px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(12,24,46,0.7), rgba(5,10,22,0.5));
  border: 1px solid rgba(34,224,255,0.25); backdrop-filter: blur(14px); overflow: hidden;
}
.contact-glow {
  position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,224,255,0.35), transparent 65%); filter: blur(50px);
}
.contact .section-idx { position: relative; }
.contact-title {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  margin: 20px 0 14px; letter-spacing: 1px;
  background: linear-gradient(115deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-sub { color: var(--text-dim); font-weight: 300; margin-bottom: 32px; position: relative; }
.contact-mail {
  position: relative; display: inline-block; text-decoration: none;
  font-family: var(--f-tech); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 1px; padding: 16px 40px; border-radius: 12px;
  color: var(--cyan); border: 1px solid rgba(34,224,255,0.4);
  background: rgba(34,224,255,0.05); transition: all 0.3s;
}
.contact-mail:hover { color: #02040a; background: linear-gradient(115deg, var(--cyan), var(--blue)); box-shadow: 0 0 40px rgba(34,224,255,0.6); transform: translateY(-3px); }

/* ============================================================
   页脚
   ============================================================ */
.footer { position: relative; z-index: 5; margin-top: 110px; padding: 64px 24px; border-top: 1px solid rgba(34,224,255,0.1); text-align: center; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer .brand-mark { font-size: 26px; display: inline-block; margin-bottom: 14px; }
.footer-brand { font-family: var(--f-display); font-weight: 700; font-size: 18px; margin-bottom: 8px; letter-spacing: 1px; }
.footer-note { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; font-weight: 300; }
.footer-copy { font-family: var(--f-tech); color: var(--text-faint); font-size: 12px; letter-spacing: 1px; }

/* ============================================================
   动画 / 响应式
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 760px) {
  .nav-inner, .container { padding-left: 22px; padding-right: 22px; }
  .hud-tick { display: none; }
  .nav-links { display: none; }
  .grid, .vision-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; gap: 10px; }
  .hero-content { text-align: center; order: 2; }
  .hero-content .cta { display: inline-block; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .android-stage { order: 1; width: min(360px, 80vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
