/* ═══════════════════════════════════════════════════════════════
   AQUA FLOW - 饮水追踪器
   设计理念：活力渐变 + 流体动态 + 未来科技感
   ═══════════════════════════════════════════════════════════════ */

/* ===== CSS 变量系统 ===== */
:root {
  /* 主色调 - 霓虹渐变 */
  --neon-cyan: #00fff2;
  --neon-mint: #06ffa5;
  --neon-purple: #7b61ff;
  --neon-pink: #ff61d8;
  --neon-orange: #ff9f43;

  /* 背景色系 */
  --bg-deep: #0a0e17;
  --bg-mid: #111827;
  --bg-surface: #1a2332;
  --bg-card: rgba(26, 35, 50, 0.8);

  /* 文字层级 */
  --text-bright: #ffffff;
  --text-normal: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* 玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );

  /* 渐变定义 */
  --gradient-primary: linear-gradient(
    135deg,
    #06ffa5 0%,
    #00d4ff 50%,
    #7b61ff 100%
  );
  --gradient-secondary: linear-gradient(135deg, #ff61d8 0%, #7b61ff 100%);
  --gradient-warm: linear-gradient(135deg, #ff9f43 0%, #ff61d8 100%);
  --gradient-glow: radial-gradient(
    circle at center,
    rgba(6, 255, 165, 0.3) 0%,
    transparent 70%
  );

  /* 阴影 */
  --shadow-glow-cyan: 0 0 30px rgba(0, 255, 242, 0.4);
  --shadow-glow-purple: 0 0 30px rgba(123, 97, 255, 0.4);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

  /* 动画曲线 */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* 字体 */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-normal);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   动态背景系统
   ═══════════════════════════════════════════════════════════════ */

/* 渐变光球 */
.gradient-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(6, 255, 165, 0.4) 0%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.4) 0%,
    transparent 70%
  );
  top: 30%;
  right: -150px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.orb-3 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(123, 97, 255, 0.3) 0%,
    transparent 70%
  );
  bottom: -300px;
  left: 20%;
  animation-delay: -10s;
  animation-duration: 30s;
}

.orb-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 97, 216, 0.3) 0%,
    transparent 70%
  );
  top: 60%;
  left: -100px;
  animation-delay: -15s;
  animation-duration: 22s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-30px, 50px) scale(0.95);
  }
  75% {
    transform: translate(-50px, -20px) scale(1.02);
  }
}

/* 网格叠加 */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* 流动线条 */
.flow-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.3;
}

.flow-1 {
  stroke: url(#arcGradient);
  stroke-dasharray: 20 10;
  animation: flow-dash 15s linear infinite;
}

.flow-2 {
  stroke: var(--neon-purple);
  stroke-dasharray: 30 15;
  animation: flow-dash 20s linear infinite reverse;
}

.flow-3 {
  stroke: var(--neon-cyan);
  stroke-dasharray: 15 20;
  animation: flow-dash 18s linear infinite;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* ═══════════════════════════════════════════════════════════════
   主应用容器
   ═══════════════════════════════════════════════════════════════ */

.app {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 100px;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   顶部状态栏
   ═══════════════════════════════════════════════════════════════ */

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  margin-bottom: 8px;
}

.date-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.day-name {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.date-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.month-year {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.streak-icon {
  font-size: 1.25rem;
  animation: flame-flicker 1s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0% {
    transform: scale(1) rotate(-5deg);
  }
  100% {
    transform: scale(1.1) rotate(5deg);
  }
}

.streak-count {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-orange);
}

.streak-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   主计数器区域 - 视觉焦点
   ═══════════════════════════════════════════════════════════════ */

.hero-counter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 30px;
  margin-bottom: 24px;
}

/* 装饰圆环系统 */
.counter-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-outer {
  inset: 0;
  border-color: rgba(0, 255, 242, 0.1);
  animation: ring-rotate 30s linear infinite;
}

.ring-middle {
  inset: 20px;
  border-color: rgba(123, 97, 255, 0.15);
  animation: ring-rotate 25s linear infinite reverse;
}

.ring-inner {
  inset: 40px;
  border-color: rgba(6, 255, 165, 0.1);
  animation: ring-rotate 20s linear infinite;
}

.ring-glow {
  inset: 30px;
  background: var(--gradient-glow);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes ring-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* 计数器核心 */
.counter-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.counter-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.counter-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.counter-value {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.2s var(--ease-out-back);
}

.counter-value.pulse {
  animation: value-pop 0.4s var(--ease-out-back);
}

@keyframes value-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.counter-unit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--neon-cyan);
}

.counter-ml {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-normal);
  margin-top: 4px;
}

.counter-ml span:first-child {
  color: var(--neon-mint);
}

/* 进度弧线 SVG */
.progress-arc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
}

.arc-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 4;
}

.arc-progress {
  fill: none;
  stroke: url(#arcGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.8s var(--ease-out-expo);
}

.progress-percent {
  position: absolute;
  bottom: -15px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 目标指示器 */
.goal-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 40px;
}

.goal-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-purple);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.goal-indicator strong {
  color: var(--neon-cyan);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   目标达成庆祝动画
   ═══════════════════════════════════════════════════════════════ */

.celebration {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.celebration.show {
  opacity: 1;
  visibility: visible;
}

.celebration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(10px);
}

.celebration-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.celebration-particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: particle-burst 1s var(--ease-out-expo) forwards;
  opacity: 0;
}

.celebration.show .celebration-particles span {
  opacity: 1;
}

.celebration-particles span:nth-child(1) {
  left: 50%;
  top: 50%;
  animation-delay: 0s;
  --angle: 0deg;
}
.celebration-particles span:nth-child(2) {
  left: 50%;
  top: 50%;
  animation-delay: 0.05s;
  --angle: 36deg;
}
.celebration-particles span:nth-child(3) {
  left: 50%;
  top: 50%;
  animation-delay: 0.1s;
  --angle: 72deg;
}
.celebration-particles span:nth-child(4) {
  left: 50%;
  top: 50%;
  animation-delay: 0.15s;
  --angle: 108deg;
}
.celebration-particles span:nth-child(5) {
  left: 50%;
  top: 50%;
  animation-delay: 0.2s;
  --angle: 144deg;
}
.celebration-particles span:nth-child(6) {
  left: 50%;
  top: 50%;
  animation-delay: 0.25s;
  --angle: 180deg;
}
.celebration-particles span:nth-child(7) {
  left: 50%;
  top: 50%;
  animation-delay: 0.3s;
  --angle: 216deg;
}
.celebration-particles span:nth-child(8) {
  left: 50%;
  top: 50%;
  animation-delay: 0.35s;
  --angle: 252deg;
}
.celebration-particles span:nth-child(9) {
  left: 50%;
  top: 50%;
  animation-delay: 0.4s;
  --angle: 288deg;
}
.celebration-particles span:nth-child(10) {
  left: 50%;
  top: 50%;
  animation-delay: 0.45s;
  --angle: 324deg;
}

@keyframes particle-burst {
  0% {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-200px)
      scale(1);
    opacity: 0;
  }
}

.celebration-content {
  position: relative;
  text-align: center;
  animation: celebration-enter 0.5s var(--ease-out-back) 0.2s both;
}

@keyframes celebration-enter {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.celebration-emoji {
  font-size: 4rem;
  animation: celebration-bounce 0.6s ease infinite;
}

@keyframes celebration-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.celebration-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 16px 0 8px;
}

.celebration-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   操作按钮组
   ═══════════════════════════════════════════════════════════════ */

.action-pad {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-btn .btn-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-add {
  background: var(--gradient-primary);
  color: var(--bg-deep);
  box-shadow: var(--shadow-glow-cyan);
}

.action-add:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(6, 255, 165, 0.5);
}

.action-add:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.action-remove {
  background: var(--glass-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.action-remove:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}

.action-reset {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.action-reset:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-normal);
}

.btn-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1;
}

.btn-icon {
  width: 24px;
  height: 24px;
}

.btn-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.action-add .btn-text {
  font-size: 0.875rem;
}

/* 闪光效果 */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   快捷添加
   ═══════════════════════════════════════════════════════════════ */

.quick-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.quick-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-buttons {
  display: flex;
  gap: 8px;
}

.quick-btn {
  padding: 10px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-normal);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-btn:hover {
  background: rgba(6, 255, 165, 0.1);
  border-color: rgba(6, 255, 165, 0.3);
  color: var(--neon-mint);
}

.quick-btn.featured {
  background: rgba(6, 255, 165, 0.15);
  border-color: rgba(6, 255, 165, 0.3);
  color: var(--neon-mint);
}

/* ═══════════════════════════════════════════════════════════════
   玻璃面板
   ═══════════════════════════════════════════════════════════════ */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   底部导航
   ═══════════════════════════════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 8px;
  gap: 4px;
  z-index: 50;
  width: calc(100% - 48px);
  max-width: 600px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
}

.nav-item:hover {
  color: var(--text-muted);
}

.nav-item.active {
  color: var(--neon-cyan);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 242, 0.1);
  border-radius: 14px;
  pointer-events: none;
}

.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.3s var(--ease-out-back);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   页面容器
   ═══════════════════════════════════════════════════════════════ */

.pages-container {
  padding-bottom: 20px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: page-enter 0.4s var(--ease-out-expo);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
}

.record-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 4px 12px;
  background: var(--glass-bg);
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   记录列表
   ═══════════════════════════════════════════════════════════════ */

.records-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.records-list::-webkit-scrollbar {
  width: 4px;
}

.records-list::-webkit-scrollbar-track {
  background: transparent;
}

.records-list::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 2px;
}

.record-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  animation: record-enter 0.3s var(--ease-out-expo);
}

@keyframes record-enter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.record-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 12px;
}

.record-icon.add {
  background: rgba(6, 255, 165, 0.15);
}

.record-icon.remove {
  background: rgba(239, 68, 68, 0.15);
}

.record-icon.reset {
  background: rgba(148, 163, 184, 0.15);
}

.record-info {
  flex: 1;
}

.record-action {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.9rem;
}

.record-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.record-amount {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.record-amount.add {
  color: var(--neon-mint);
}
.record-amount.remove {
  color: #ef4444;
}
.record-amount.reset {
  color: var(--text-dim);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-visual {
  margin-bottom: 20px;
}

.drop-animation {
  width: 60px;
  height: 80px;
  margin: 0 auto;
  position: relative;
}

.drop {
  width: 20px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation: drop-fall 2s ease-in-out infinite;
}

@keyframes drop-fall {
  0%,
  100% {
    top: 0;
    opacity: 1;
  }
  50% {
    top: 50px;
    opacity: 0;
  }
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-normal);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════
   统计页面
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 242, 0.2);
}

.stat-card.stat-highlight {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    rgba(6, 255, 165, 0.1) 0%,
    rgba(0, 212, 255, 0.1) 100%
  );
  border-color: rgba(6, 255, 165, 0.2);
}

.stat-icon {
  font-size: 1.75rem;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.stat-card.stat-highlight .stat-value {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 图表包装 */
.chart-wrapper {
  padding: 20px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.primary {
  background: var(--gradient-primary);
}

.legend-dot.secondary {
  background: #ef4444;
}

.chart-container {
  position: relative;
  height: 200px;
}

/* ═══════════════════════════════════════════════════════════════
   设置页面
   ═══════════════════════════════════════════════════════════════ */

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setting-card {
  padding: 20px;
}

.setting-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.setting-icon {
  font-size: 1.75rem;
}

.setting-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.setting-info p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.setting-input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.setting-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 242, 0.1);
}

.input-suffix {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.setting-save {
  padding: 12px 24px;
  background: rgba(0, 255, 242, 0.1);
  border: 1px solid rgba(0, 255, 242, 0.3);
  border-radius: 10px;
  color: var(--neon-cyan);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.setting-save:hover {
  background: rgba(0, 255, 242, 0.2);
  border-color: var(--neon-cyan);
}

/* 提示卡片 */
.tips-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 159, 67, 0.1) 0%,
    rgba(255, 97, 216, 0.05) 100%
  );
}

.tips-icon {
  font-size: 1.5rem;
}

.tips-content h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neon-orange);
  margin-bottom: 8px;
}

.tips-content ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tips-content li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.tips-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--neon-orange);
}

/* Toast 通知
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.toast {
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--neon-mint);
  border-radius: 12px;
  color: var(--text-bright);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    var(--shadow-glow-cyan);
}

/* Toast 过渡动画 */
.toast-enter-active {
  animation: toast-enter 0.4s var(--ease-out-back);
}

.toast-leave-active {
  animation: toast-leave 0.3s ease;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-leave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.9);
  }
}

/* ═══════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 400px) {
  .counter-value {
    font-size: 4rem;
  }

  .counter-rings {
    width: 240px;
    height: 240px;
  }

  .progress-arc {
    width: 190px;
    height: 190px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card.stat-highlight {
    grid-column: span 1;
  }

  .action-pad {
    grid-template-columns: 1fr 1fr;
  }

  .action-add {
    grid-column: span 2;
  }
}

/* ═══════════════════════════════════════════════════════════════
   减弱动画支持
   ═══════════════════════════════════════════════════════════════ */

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