﻿/* ========================================
   能源交易平台 - 风能科技主题 V51
   客户端全局样式 (Desktop + Mobile)
   ======================================== */

/* === CSS 变量 === */
:root {
  /* 风能主题色 */
  --primary: #00cc44;
  --primary-dark: #009933;
  --primary-light: #66ff99;
  --secondary: #0077cc;
  --accent: #6c5ce7;
  --energy: #fdcb6e;

  /* 背景 */
  --bg: #0a1628;
  --bg-card: rgba(15, 30, 55, 0.85);
  --bg-card-hover: rgba(20, 40, 70, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-overlay: rgba(10, 22, 40, 0.6);

  /* 边框与阴影 */
  --border: rgba(0, 200, 60, 0.15);
  --border-glow: rgba(0, 200, 60, 0.4);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(0, 200, 60, 0.15);

  /* 文字 */
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;

  /* 状态色 */
  --success: #009933;
  --warning: #fdcb6e;
  --danger: #e17055;
  --info: #74b9ff;

  /* 圆角 */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* 间距 */
  --gap: 16px;
  --gap-sm: 8px;
  --gap-lg: 24px;

  /* 过渡 */
  --transition: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === 背景层 - 风能主题 === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background:
    /* 风车剪影 - 右上 */
    radial-gradient(ellipse 200px 300px at 85% 30%, rgba(0, 200, 60, 0.06) 0%, transparent 100%),
    /* 风车剪影 - 左下 */
    radial-gradient(ellipse 250px 350px at 15% 75%, rgba(9, 132, 227, 0.05) 0%, transparent 100%),
    /* 能量光环 */
    radial-gradient(circle 600px at 50% 50%, rgba(0, 200, 60, 0.04) 0%, transparent 70%),
    /* 底部光晕 */
    radial-gradient(ellipse 800px 200px at 50% 100%, rgba(0, 184, 148, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, #0a1628 0%, #0c1d38 30%, #0d2240 60%, #0a1628 100%);
}

/* 风车图形装饰 */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* 大型风车剪影 - 右侧 */
    radial-gradient(circle 80px at 88% 28%, rgba(0,200,60,0.08) 0%, transparent 100%),
    radial-gradient(circle 15px at 88% 28%, rgba(0,200,60,0.05) 0%, transparent 100%),
    /* 风车叶片线条 */
    repeating-conic-gradient(
      rgba(0,200,60,0.03) 0deg 30deg,
      transparent 30deg 60deg
    ),
    /* 能量流动线条 */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(0,200,60,0.02) 40px,
      rgba(0,200,60,0.02) 42px
    );
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

/* 管理员自定义背景 */
body.bg-custom::before {
  background: var(--bg-image, url('')) center/cover no-repeat fixed;
  opacity: 0.35;
}

body.bg-custom::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,22,40,0.65) 0%, rgba(10,22,40,0.8) 100%);
  pointer-events: none;
  mask-image: none;
  -webkit-mask-image: none;
}

/* === 网格背景纹理 + 风能科技线条 === */
.grid-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* 科技网格 */
    linear-gradient(rgba(0, 200, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 60, 0.03) 1px, transparent 1px),
    /* 水平能量流 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 120px,
      rgba(0, 200, 60, 0.015) 120px,
      rgba(0, 200, 60, 0.015) 122px
    );
  background-size: 60px 60px, 60px 60px, 100% 100%;
}

/* 风能粒子 */
.wind-particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* === 链接 === */
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* === 滚动条 === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-glow); }

/* =============================================
   组件样式
   ============================================= */

/* === 头部导航 === */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gap);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  cursor: pointer;
  user-select: none;
}

/* 风车 LOGO */
.logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 32px;
  height: 32px;
  animation: wind-spin 4s linear infinite;
}

@keyframes wind-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
  background: var(--bg-glass);
}

.header-nav .nav-icon { font-size: 16px; }

/* 汉堡菜单 (移动端) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* === 容器 === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap-lg) var(--gap);
}

/* === 卡片 === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* === 能源余额卡片 === */
.balance-card {
  background: linear-gradient(135deg, rgba(0, 200, 60, 0.12), rgba(9, 132, 227, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0, 200, 60, 0.06) 0%, transparent 70%);
  animation: balance-glow 6s ease-in-out infinite;
}

@keyframes balance-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.balance-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(0, 200, 60, 0.3);
}

.balance-stats {
  display: flex;
  justify-content: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.balance-stat-item {
  text-align: center;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4); }

.btn-accent {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4); }

.btn-danger {
  background: linear-gradient(135deg, #d63031, var(--danger));
  color: #fff;
}

.btn-warning {
  background: linear-gradient(135deg, #e17055, var(--warning));
  color: #1a1a2e;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* === 操作按钮行 === */
.action-row {
  display: flex;
  gap: var(--gap);
  margin: var(--gap) 0;
}

.action-row .btn { flex: 1; }

/* === 区块标题 === */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin: var(--gap-lg) 0 var(--gap);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* === 产品网格 === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.product-img {
  height: 140px;
  background: linear-gradient(135deg, rgba(0, 200, 60, 0.2), rgba(9, 132, 227, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.product-info {
  padding: 14px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.product-daily,
.product-total {
  font-size: 12px;
  color: var(--text-muted);
}

/* === 表单 === */
.form-group { margin-bottom: var(--gap); }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-select,
textarea.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 200, 60, 0.1);
}

.form-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option { background: var(--bg); color: var(--text); }

/* === 设备列表 === */
.device-item {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--gap-sm);
}

.device-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 60, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.device-info { flex: 1; min-width: 0; }

.device-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.device-progress {
  height: 6px;
  background: var(--bg-glass);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.device-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.device-progress-bar.completed { background: var(--success); }

.device-profit {
  font-size: 12px;
  color: var(--text-muted);
}

.device-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.device-status.running {
  background: rgba(0, 200, 60, 0.15);
  color: var(--primary);
}

.device-status.completed {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
}

/* === 公告横幅 === */
.announcement-banner {
  padding: 10px 16px;
  background: rgba(253, 203, 110, 0.1);
  border: 1px solid rgba(253, 203, 110, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--energy);
  margin-bottom: var(--gap);
  text-align: center;
}

/* === 空状态 === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

.empty-state p { margin: 4px 0; }

/* === 加载 === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === Toast 提示 === */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(10px);
  animation: toast-in 0.3s ease;
  box-shadow: var(--shadow);
  max-width: 360px;
}

.toast-success { background: rgba(0, 184, 148, 0.9); }
.toast-error { background: rgba(225, 112, 85, 0.9); }
.toast-warning { background: rgba(253, 203, 110, 0.9); color: #1a1a2e; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === 数据表格 === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:hover td {
  background: var(--bg-glass);
}

.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }

/* === 标签页 Tabs === */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}

.tab:hover { color: var(--text); }
.tab.active { background: var(--primary-dark); color: #fff; }

/* === 模态弹窗 === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--gap-lg);
  backdrop-filter: blur(20px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap);
}

.modal-header h3 { font-size: 18px; color: var(--text-bright); }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover { color: var(--danger); }

/* === 认证页面 (Login/Register) === */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg);
}

.auth-logo {
  font-size: 64px;
  margin-bottom: var(--gap);
  animation: wind-spin 6s linear infinite;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--gap-lg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* === 页脚 === */
.footer {
  text-align: center;
  padding: var(--gap-lg);
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: var(--gap-lg);
}

/* =============================================
   响应式 - 平板 (768px ~ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .container { padding: var(--gap); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .balance-amount { font-size: 30px; }
}

/* =============================================
   响应式 - 手机 (< 768px)
   ============================================= */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .container { padding: var(--gap-sm); }

  /* 汉堡菜单 */
  .hamburger { display: block; }

  .header-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--gap);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .header-nav.open { display: flex; }

  .header-nav a {
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
  }

  /* 余额卡片 */
  .balance-card { padding: 20px 16px; }
  .balance-amount { font-size: 28px; }
  .balance-stats { gap: var(--gap); }
  .stat-num { font-size: 16px; }

  /* 产品网格 */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gap-sm); }
  .product-img { height: 100px; font-size: 36px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 16px; }

  /* 按钮 */
  .action-row { flex-direction: column; }

  /* 表单 */
  .form-input, .form-select { padding: 12px 14px; font-size: 16px; }

  /* 弹窗 */
  .modal-content { max-width: 95vw; padding: var(--gap); }
  .modal-overlay { padding: 10px; }

  /* 认证页面 */
  .auth-title { font-size: 24px; }
  .auth-card { padding: var(--gap); }

  /* Toast */
  .toast-container { right: 10px; left: 10px; }
  .toast { max-width: 100%; }
}

/* =============================================
   响应式 - 小手机 (< 480px)
   ============================================= */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 16px; }
  .balance-stats { flex-direction: column; gap: var(--gap-sm); }
}

/* === 工具类 === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mt-sm { margin-top: var(--gap-sm); }
.mt { margin-top: var(--gap); }
.mt-lg { margin-top: var(--gap-lg); }
.mb { margin-bottom: var(--gap); }
.hidden { display: none !important; }

/* === 特殊动画: 能量脉冲 === */
@keyframes energy-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 60, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(0, 200, 60, 0); }
}

.energy-pulse { animation: energy-pulse 2s infinite; }

/* === 风能粒子效果 (装饰) === */
.wind-particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.wind-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  animation: wind-float linear infinite;
  opacity: 0;
}

@keyframes wind-float {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.2; }
  100% { transform: translateX(100vw) translateY(-100px); opacity: 0; }
}

/* === 底部导航栏 (移动端) === */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 99;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: var(--transition);
}

.bottom-nav a .nav-icon { font-size: 20px; }
.bottom-nav a.active { color: var(--primary); }

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
  }
  body { padding-bottom: 70px; }
}

/* === 返回按钮 === */
.header-back {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-back:hover { background: var(--bg-glass); }