/* ============ 绿水芯冷 | 全局自定义样式 ============ */

:root {
  --abyss: #050b14;
  --deep: #0a1628;
  --deep-2: #0d1f33;
  --aqua: #22d3ee;
  --aqua-2: #06b6d4;
  --teal: #2dd4bf;
  --frost: #e0f7fa;
  --glow: rgba(34, 211, 238, 0.45);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--abyss);
  color: #cbd5e1;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

/* ============ 字体 ============ */
.font-display {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  letter-spacing: -0.01em;
}
.font-mono-tech {
  font-family: "JetBrains Mono", "Courier New", monospace;
}

/* ============ 背景层：液态光网 ============ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(800px 700px at 88% 22%, rgba(45, 212, 191, 0.14), transparent 60%),
    radial-gradient(700px 700px at 50% 100%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(180deg, #050b14 0%, #0a1628 50%, #050b14 100%);
}
.aurora-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}
.aurora-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.83 0 0 0 0 0.93 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* 流动液态光带 */
.liquid-flow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.15); }
  66% { transform: translate(-50px, 30px) scale(0.9); }
}

/* ============ 玻璃质感卡片 ============ */
.glass {
  background: linear-gradient(135deg, rgba(13, 31, 51, 0.7) 0%, rgba(10, 22, 40, 0.55) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.glass:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(34, 211, 238, 0.15);
}

/* 霜冻磨砂 */
.frost {
  background: linear-gradient(135deg, rgba(224, 247, 250, 0.06), rgba(34, 211, 238, 0.03));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(224, 247, 250, 0.12);
}

/* ============ 文字渐变 ============ */
.text-aqua-gradient {
  background: linear-gradient(120deg, #67e8f9 0%, #22d3ee 40%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-frost-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ 发光描边按钮 ============ */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #06b6d4, #2dd4bf);
  color: #021018;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 8px 30px rgba(6, 182, 212, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.7), 0 14px 40px rgba(6, 182, 212, 0.55);
}
.btn-ghost {
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.05);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.8);
  color: #a5f3fc;
}

/* ============ 导航栏 ============ */
.nav-blur {
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.14);
}
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============ 水滴 Logo 动画 ============ */
.logo-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-drop::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0.3; }
}

/* ============ Hero 液态波纹 ============ */
.ripple {
  position: absolute;
  border: 2px solid rgba(34, 211, 238, 0.25);
  border-radius: 50%;
  animation: ripple 6s linear infinite;
}
@keyframes ripple {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* 芯片网格 */
.chip-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* 数据流竖线 */
.data-stream {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--aqua), transparent);
  animation: stream 4s linear infinite;
}
@keyframes stream {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ============ 滚动揭示 ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============ 服务卡片光扫 ============ */
.svc-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(34, 211, 238, 0.18), transparent);
  transition: left 0.7s ease;
}
.svc-card:hover::before {
  left: 120%;
}
.svc-card:hover {
  transform: translateY(-6px);
}

/* ============ 数字计数 ============ */
.stat-num {
  font-variant-numeric: tabular-nums;
}

/* ============ 芯片图标盒 ============ */
.icon-box {
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(45, 212, 191, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.1);
}

/* ============ 温度计/散热条 ============ */
.heat-bar {
  height: 6px;
  background: linear-gradient(90deg, #2dd4bf, #22d3ee, #38bdf8, #818cf8);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.heat-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: scan 2.5s linear infinite;
}
@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============ 时间线 ============ */
.timeline-dot {
  position: relative;
}
.timeline-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background: var(--aqua);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2), 0 0 20px var(--glow);
}

/* ============ 输入框 ============ */
.input-field {
  background: rgba(13, 31, 51, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: #e2e8f0;
  transition: all 0.25s ease;
}
.input-field:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

/* ============ 滚动条 ============ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050b14;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #2dd4bf);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #22d3ee, #5eead4);
}

/* ============ 文本选中 ============ */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

/* ============ 移动端菜单 ============ */
.mobile-menu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* ============ 浮动粒子 ============ */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--aqua);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--glow);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* ============ 标题装饰线 ============ */
.title-deco::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), transparent);
  margin-right: 16px;
  vertical-align: middle;
}
