/* base.css — 官网 reset + 变量 */
:root {
  --bg: #04060a;
  --bg-2: #0a0e16;
  --surface: #0f131c;
  --surface-2: #141925;
  --line: #1f2433;
  --text: #f5f6f8;
  --text-2: #a4acbd;
  --text-3: #5d6378;
  --accent: #00d4ff;
  --accent-2: #0099b8;
  --ok: #3ddc97;
  --warn: #ffb84d;
  --danger: #f87171;
  --grad: linear-gradient(90deg, #00d4ff 0%, #a78bfa 100%);
  --grad-2: linear-gradient(135deg, #00d4ff, #3ddc97);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
h2 { font-size: 38px; }
h3 { font-size: 19px; }
p { margin: 0; color: var(--text-2); }

em { font-style: normal; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* 动画 keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes dashFlow {
  to { stroke-dashoffset: -100; }
}