/* ===== 赛博朋克主题变量 ===== */
:root {
  --bg-primary: #000000;
  --bg-secondary: transparent;
  --bg-card: transparent;
  --bg-card-hover: rgba(255, 255, 255, 0.02);
  --bg-input: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  
  --neon-cyan: #00fff2;
  --neon-pink: #ff00ff;
  --neon-yellow: #ffcc00;
  --neon-blue: #00fff2;
  --neon-purple: #ff00ff;
  
  --success: #00ff88;
  --warning: #ffcc00;
  --danger: #ff3366;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 242, 0.2);
  --glass: rgba(255, 255, 255, 0.04);
  
  --glow-cyan: 0 0 20px rgba(0, 255, 242, 0.3), 0 0 40px rgba(0, 255, 242, 0.1);
  --glow-pink: 0 0 20px rgba(255, 0, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.1);
  --glow-yellow: 0 0 20px rgba(255, 204, 0, 0.3), 0 0 40px rgba(255, 204, 0, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 基础工具类 ===== */
.page {
  display: none;
}

.page.active {
  display: block;
}

.hidden {
  display: none !important;
}

/* ===== 认证页面 ===== */
#auth-page {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

#auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 242, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 0, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

#auth-page.active {
  display: flex !important;
}

.auth-container {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: transparent;
  border: none;
}

/* 品牌标识 - 几何皇冠 */
.logo {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.logo .crown {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 255, 242, 0.4));
  animation: crown-pulse 3s ease-in-out infinite;
}

@keyframes crown-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 242, 0.4)); }
  50% { filter: drop-shadow(0 0 30px rgba(0, 255, 242, 0.6)) drop-shadow(0 0 60px rgba(255, 0, 255, 0.2)); }
}

.logo .crown svg {
  width: 80px;
  height: 80px;
}

/* 3D容器 - Three.js */
#three-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  border-radius: 1px;
}

/* ===== 表单样式 ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

input, select {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(0, 255, 242, 0.15);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder {
  color: var(--text-muted);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.15);
  background: transparent;
}

/* ===== 按钮样式 ===== */
button {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  color: #000;
}

.btn-success {
  background: var(--success);
  color: #000;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-warning {
  background: var(--warning);
  color: #000;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

/* 小按钮 */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-logout {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
}

.btn-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
  transform: none;
}

.switch-form {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.switch-form a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.switch-form a:hover {
  text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
}

/* ===== 导航栏 ===== */
.navbar {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 255, 242, 0.08);
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .crown-icon {
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  font-size: 1.5rem;
  animation: crown-glow 2s ease-in-out infinite;
}

@keyframes crown-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.3)); }
}

.nav-brand .brand-text {
  background: linear-gradient(135deg, #00fff2, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#user-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

#user-info:hover {
  color: var(--neon-cyan);
}

/* ===== 用户头像 ===== */
.user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.user-avatar-small:hover {
  transform: scale(1.1);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.user-avatar-small span {
  color: #000;
  font-size: 0.875rem;
  font-weight: 800;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 头像预览 */
.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.avatar-preview span {
  color: #000;
  font-size: 3rem;
  font-weight: 800;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 主内容 ===== */
#main-page {
  position: relative;
  min-height: 100vh;
  background: var(--bg-primary);
}

#main-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 15% 30%, rgba(0, 255, 242, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 204, 0, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

#main-page > * {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ===== 卡片 ===== */
.card {
  background: transparent;
  border: 1px solid rgba(0, 255, 242, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: card-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(0, 255, 242, 0.2);
  background: transparent;
}

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

/* ===== 表单组 ===== */
.form-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-group input,
.form-group select {
  flex: 1;
  min-width: 150px;
}

.form-group button {
  flex-shrink: 0;
}

/* ===== 统计过滤器 ===== */
.stats-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.stats-filter button {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
}

.stats-filter button:hover,
.stats-filter button.active {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.1);
  transform: none;
  background: transparent;
}

/* ===== 徽章 ===== */
.badge {
  background: var(--danger);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 51, 102, 0.3); }
  50% { box-shadow: 0 0 15px rgba(255, 51, 102, 0.5); }
}

/* ===== 列表 ===== */
.list-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: all 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: rgba(0, 255, 242, 0.03);
}

.list-item-info {
  flex: 1;
  min-width: 200px;
}

.list-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ===== 状态标签 ===== */
.status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: transparent;
}

.status-pending {
  color: var(--warning);
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.status-approved {
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-rejected {
  color: var(--danger);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.status-active {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 242, 0.3);
  animation: active-glow 2s ease-in-out infinite;
}

@keyframes active-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 242, 0.1); }
  50% { box-shadow: 0 0 15px rgba(0, 255, 242, 0.2); }
}

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: transparent;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(0, 255, 242, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 日历盈亏组件 ===== */
.calendar-container {
  background: transparent;
  border: 1px solid rgba(0, 255, 242, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin: 0;
  max-width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  min-width: 120px;
  text-align: left;
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  min-height: 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.calendar-nav button:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekday {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  min-height: 60px;
  position: relative;
}

.calendar-day:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 242, 0.05);
}

.calendar-day.today {
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 242, 0.1);
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day .day-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.calendar-day .day-profit {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-day .day-profit.positive {
  color: var(--success);
}

.calendar-day .day-profit.negative {
  color: var(--danger);
}

.calendar-day .day-profit.zero {
  color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 480px) {
  .calendar-day {
    min-height: 45px;
  }
  
  .calendar-day .day-number {
    font-size: 0.7rem;
  }
  
  .calendar-day .day-profit {
    font-size: 0.55rem;
  }
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card.clickable:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.stat-card.clickable:active {
  transform: translateY(0);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 700;
}

/* ===== 模态框 ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: modal-bg-enter 0.3s ease;
}

@keyframes modal-bg-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 255, 242, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 242, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* 弹窗中的日历样式 */
.modal-content .calendar-container {
  border: none;
  padding: 0.5rem;
}

.modal-content .calendar-grid {
  gap: 2px;
}

.modal-content .calendar-day {
  min-height: 50px;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem;
  min-height: auto;
  line-height: 1;
  transition: all 0.2s;
}

.btn-close:hover {
  color: var(--danger);
  box-shadow: none;
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
}

/* ===== 标签页切换 ===== */
.detail-tabs {
  display: flex;
  gap: 0;
  margin: 1rem 0;
  border-bottom: 2px solid var(--border);
}

.detail-tab {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.detail-tab:hover {
  color: var(--text-primary);
}

.detail-tab.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

.detail-tab-content {
  display: none;
}

.detail-tab-content.active {
  display: block;
}

/* 子标签页 */
.sub-tabs {
  display: flex;
  gap: 0;
  margin: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.sub-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.sub-tab:hover {
  color: var(--text-primary);
}

.sub-tab.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

/* 日期范围选择器 */
.date-range-picker {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.date-range-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date-range-item label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.date-picker-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.date-picker-btn:hover {
  border-color: var(--neon-cyan);
}

/* 日期时间选择器弹窗 */
.datetime-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.datetime-picker-content {
  background: #1a1a2e;
  border: 1px solid rgba(0,255,242,0.15);
  border-radius: 16px;
  padding: 1.5rem;
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 0 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,242,0.1);
}

.datetime-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.datetime-picker-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--neon-cyan);
}

.datetime-picker-nav {
  display: flex;
  gap: 0.5rem;
}

.datetime-picker-nav button {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  min-height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border-radius: 6px;
}

.datetime-picker-nav button:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.datetime-calendar {
  margin-bottom: 1rem;
}

.datetime-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.datetime-weekday {
  text-align: center;
  padding: 0.4rem 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.datetime-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.datetime-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  color: var(--text-primary);
}

.datetime-day:hover {
  background: rgba(0,255,242,0.1);
  border-color: var(--neon-cyan);
}

.datetime-day.today {
  border: 1px solid var(--neon-cyan);
}

.datetime-day.selected {
  background: var(--neon-cyan);
  color: #000;
  font-weight: bold;
}

.datetime-day.other-month {
  color: var(--text-secondary);
  opacity: 0.4;
}

.datetime-time-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
}

.datetime-time-picker label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.datetime-time-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.datetime-time-input input {
  width: 50px;
  padding: 0.4rem;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
}

.datetime-time-input span {
  color: var(--text-secondary);
}

.datetime-time-input input:focus {
  border-color: var(--neon-cyan);
  outline: none;
}

.datetime-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.datetime-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.datetime-actions .btn-confirm {
  background: var(--neon-cyan);
  color: #000;
  border: none;
  font-weight: 600;
}

.datetime-actions .btn-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

/* ===== 用户资料卡片 ===== */
.user-profile {
  background: transparent;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 255, 242, 0.08);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  border: 2px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.profile-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ===== 角色标签 ===== */
.role-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
}

.role-player {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 242, 0.3);
}

.role-dealer {
  color: var(--neon-pink);
  border: 1px solid rgba(255, 0, 255, 0.3);
}

.role-insurance {
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.role-admin {
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.role-super-admin {
  color: var(--danger);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

/* ===== 角色选择器 ===== */
.role-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(0, 255, 242, 0.15);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.role-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 242, 0.15);
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.empty-state p {
  margin-bottom: 1rem;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== 数字滚动动画 ===== */
.stat-value[data-animate="true"] {
  transition: all 0.05s linear;
}

/* ===== 渐显入场动画 ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .nav-user {
    width: 100%;
    justify-content: center;
  }
  
  .form-group {
    flex-direction: column;
  }
  
  .form-group input,
  .form-group select {
    min-width: 100%;
  }
  
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .list-item-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .profile-meta {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-width: 100%;
    margin: 0.5rem;
  }
}

@media (max-width: 480px) {
  .auth-form {
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
}

/* ===== 减少动效模式 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .card, .list-item, .stat-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== 加载动画 ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== 主页3D背景 ===== */
#main-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== 主页欢迎区域 ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 1rem;
}

#hero-cards-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 0 0 30px rgba(0, 255, 242, 0.5), 0 0 60px rgba(255, 0, 255, 0.3);
}

.float-text {
  display: inline-block;
  background: linear-gradient(135deg, #00fff2, #ff00ff, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float-up 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes float-up {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    text-shadow: 0 0 30px rgba(0, 255, 242, 0.5);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
    text-shadow: 0 0 50px rgba(0, 255, 242, 0.8), 0 0 80px rgba(255, 0, 255, 0.4);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 180px;
  }
  .hero-text {
    font-size: 1.8rem;
    gap: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-text {
    animation: none;
  }
}

/* ===== 流星效果 ===== */
.meteor-shower {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.meteor {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0, 255, 242, 0.8), transparent);
  transform: rotate(-45deg);
  animation: meteor-fall linear infinite;
  opacity: 0;
}

.meteor:nth-child(1) {
  left: 10%;
  top: -100px;
  animation-duration: 2s;
  animation-delay: 0s;
}

.meteor:nth-child(2) {
  left: 30%;
  top: -100px;
  animation-duration: 1.5s;
  animation-delay: 0.5s;
  background: linear-gradient(to bottom, rgba(255, 0, 255, 0.8), transparent);
}

.meteor:nth-child(3) {
  left: 55%;
  top: -100px;
  animation-duration: 2.5s;
  animation-delay: 1s;
}

.meteor:nth-child(4) {
  left: 75%;
  top: -100px;
  animation-duration: 1.8s;
  animation-delay: 0.3s;
  background: linear-gradient(to bottom, rgba(255, 204, 0, 0.8), transparent);
}

.meteor:nth-child(5) {
  left: 90%;
  top: -100px;
  animation-duration: 2.2s;
  animation-delay: 0.8s;
  background: linear-gradient(to bottom, rgba(255, 0, 255, 0.8), transparent);
}

@keyframes meteor-fall {
  0% {
    transform: rotate(-45deg) translateY(0) translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(-45deg) translateY(100vh) translateX(-100vh);
    opacity: 0;
  }
}

/* ===== 全局边缘渐隐遮罩 ===== */
.page-mask-top,
.page-mask-bottom {
  position: fixed;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 50;
  pointer-events: none;
}

.page-mask-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.page-mask-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* ===== 减少动效模式 ===== */
@media (prefers-reduced-motion: reduce) {
  .meteor {
    animation: none;
    display: none;
  }
}
