/* ============================================================
   PULSE 每日训练 — 设计系统
   运动品牌风：深黑底 + 鲜橙主色 + 斜切几何 + 大字号
   ============================================================ */

:root {
  /* 背景层 */
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2a2a2a;
  --border: #2e2e2e;
  --border-strong: #3a3a3a;

  /* 品牌色 */
  --primary: #FF6B35;
  --primary-dark: #E8541C;
  --primary-soft: rgba(255, 107, 53, 0.15);
  --accent: #F7C548;
  --danger: #EF233C;
  --success: #06D6A0;

  /* 文字 */
  --text: #FAFAFA;
  --text-muted: #8A8A8A;
  --text-dim: #5a5a5a;

  /* 渐变 */
  --grad-energy: linear-gradient(135deg, #FF6B35 0%, #F7C548 100%);
  --grad-burn: linear-gradient(135deg, #EF233C 0%, #FF6B35 100%);
  --grad-deep: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 32px rgba(255, 107, 53, 0.35);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* 字体 */
  --font-display: 'Bebas Neue', 'Oswald', Impact, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;

  /* 布局 */
  --max-width: 1280px;
  --nav-h: 68px;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- 背景纹理：动感斜线 ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(247, 197, 72, 0.05), transparent 40%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 38px,
    rgba(255, 255, 255, 0.012) 38px,
    rgba(255, 255, 255, 0.012) 40px
  );
  pointer-events: none;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

/* ---------- 显示字体 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
}

/* ---------- 加载骨架 ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- 减动效偏好 ---------- */
@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;
  }
}

/* ---------- 通用动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes barGrow {
  from { width: 0; }
}

.fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
