/* ============================================================
   ICEARK · Base — 动态极光背景 (玻璃折射的底层内容)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: rgba(94, 234, 212, 0.35); color: #fff; }

/* ---------- 极光背景层 ---------- */
.aurora-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 12% 8%,  rgba(34, 211, 238, 0.20), transparent 55%),
    radial-gradient(ellipse 80% 70% at 88% 12%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(79, 140, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-base), var(--bg-deep));
  overflow: hidden;
}
.aurora-bg::before {
  content: ""; position: absolute; inset: -20%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.orb-1 { width: 46vw; height: 46vw; min-width: 380px; min-height: 380px; left: -8vw; top: -6vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%); animation: float1 26s ease-in-out infinite; }
.orb-2 { width: 40vw; height: 40vw; min-width: 340px; min-height: 340px; right: -6vw; top: 10vh;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.5), transparent 70%); animation: float2 32s ease-in-out infinite; }
.orb-3 { width: 52vw; height: 52vw; min-width: 400px; min-height: 400px; left: 30%; bottom: -24vh;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.42), transparent 70%); animation: float3 38s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 10vh) scale(1.15); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10vw, 14vh) scale(0.9); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, -12vh) scale(1.1); } }

/* 星空粒子 */
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; }

/* ---------- 通用动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.anim-up { animation: fadeUp var(--dur-slow) var(--ease-smooth) both; }
.anim-in { animation: fadeIn var(--dur) both; }
.stagger > * { animation: fadeUp var(--dur-slow) var(--ease-smooth) both; }
.stagger > *:nth-child(1){animation-delay:.04s} .stagger > *:nth-child(2){animation-delay:.09s}
.stagger > *:nth-child(3){animation-delay:.14s} .stagger > *:nth-child(4){animation-delay:.19s}
.stagger > *:nth-child(5){animation-delay:.24s} .stagger > *:nth-child(6){animation-delay:.29s}
.stagger > *:nth-child(7){animation-delay:.34s} .stagger > *:nth-child(8){animation-delay:.39s}
.stagger > *:nth-child(9){animation-delay:.44s} .stagger > *:nth-child(10){animation-delay:.49s}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); background-clip: padding-box; }

/* ---------- 工具类 ---------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.accent { color: var(--accent); }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.col { display: flex; flex-direction: column; gap: var(--sp-3); }
.wrap { flex-wrap: wrap; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.gap-sm { gap: 8px; } .gap-lg { gap: 24px; }
.mt-0{margin-top:0}.mt-2{margin-top:10px}.mt-4{margin-top:20px}.mt-6{margin-top:32px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:10px}.mb-4{margin-bottom:20px}.mb-6{margin-bottom:32px}
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.text-lg { font-size: 18px; } .text-xl { font-size: 24px; }
.bold { font-weight: 700; } .semi { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.section { padding-block: clamp(48px, 8vw, 96px); }
.section-head { margin-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-desc { color: var(--text-2); font-size: 16px; max-width: 640px; margin: 0; }

/* ---------- 骨架屏 / 加载 ---------- */
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,0.2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 80px 20px; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
