/* ========================================================================
 * 阿里淘科技 — 基础样式 (Design Tokens + Reset + Typography)
 * ========================================================================
 * 设计语言：Cyberpunk / Glassmorphism / Generative UI
 * 配色：深空底色 + 高饱和霓虹强调色
 * 字体：Orbitron(标题) / Inter(正文) / JetBrains Mono(数字) / Noto Sans SC(中文)
 * ====================================================================== */

/* ------------------------------ 设计 Token ------------------------------ */
:root {
  /* 背景层级 */
  --bg-primary:   #05060f;
  --bg-secondary: #0b0d24;
  --bg-tertiary:  #131638;

  /* 强调色 */
  --accent-cyan:    #00f5ff;
  --accent-magenta: #ff006e;
  --accent-purple:  #b026ff;
  --accent-lime:    #a3ff12;
  --accent-yellow:  #ffd166;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #b026ff 50%, #ff006e 100%);
  --gradient-hero:    linear-gradient(180deg, #05060f 0%, #0b0d24 100%);
  --gradient-card:    linear-gradient(135deg, rgba(0,245,255,.08) 0%, rgba(176,38,255,.08) 100%);

  /* 文字 */
  --text-primary:   #e8ecff;
  --text-secondary: rgba(232, 236, 255, 0.72);
  --text-muted:     rgba(232, 236, 255, 0.48);
  --text-disabled:  rgba(232, 236, 255, 0.28);

  /* 玻璃态 */
  --glass-bg:      rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border:  rgba(255, 255, 255, 0.12);
  --glass-blur:    20px;

  /* 光晕 */
  --neon-glow-cyan:    0 0 24px rgba(0, 245, 255, 0.55);
  --neon-glow-magenta: 0 0 24px rgba(255, 0, 110, 0.55);
  --neon-glow-purple:  0 0 24px rgba(176, 38, 255, 0.55);
  --neon-glow-lime:    0 0 24px rgba(163, 255, 18, 0.45);

  /* 间距 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* 字体 */
  --font-display: 'Orbitron', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body:    'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  --font-cn:      'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 字号 */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  36px;
  --fs-3xl:  48px;
  --fs-4xl:  64px;
  --fs-5xl:  96px;

  /* 动效 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 800ms;

  /* z-index 层级 */
  --z-bg:        0;
  --z-content:   10;
  --z-nav:       100;
  --z-overlay:   1000;
  --z-loader:    9999;
  --z-cursor:    99999;
}

/* ------------------------------ CSS 重置 ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* ------------------------------ 排版 ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(36px, 6vw, var(--fs-5xl)); }
h2 { font-size: clamp(28px, 4.5vw, var(--fs-4xl)); }
h3 { font-size: clamp(22px, 3vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.mono-block {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-cyan);
  overflow-x: auto;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.cn {
  font-family: var(--font-cn);
}

/* ------------------------------ 滚动条 ------------------------------ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-magenta), var(--accent-cyan));
}

/* ------------------------------ 焦点态 ------------------------------ */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ------------------------------ 全局工具类 ------------------------------ */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-cyan    { color: var(--accent-cyan); }
.text-magenta { color: var(--accent-magenta); }
.text-purple  { color: var(--accent-purple); }
.text-lime    { color: var(--accent-lime); }

.glow-cyan    { text-shadow: var(--neon-glow-cyan); }
.glow-magenta { text-shadow: var(--neon-glow-magenta); }
.glow-purple  { text-shadow: var(--neon-glow-purple); }

.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0;
  z-index: var(--z-content);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(0, 245, 255, 0.05);
}

.section-title {
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* ------------------------------ 数据属性驱动的入场动画 ------------------------------ */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-anim="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="fade-left"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-anim="fade-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-anim="fade-right"] {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-anim="fade-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-anim="scale-in"] {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-anim="scale-in"].is-visible {
  opacity: 1;
  transform: scale(1);
}

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

  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}