/* ========================================
   天翼云云电脑控制台 - 活力渐变设计系统 V4
   ======================================== */

/* CSS 变量系统 */
:root {
  /* 主色调 - 紫蓝渐变 */
  --primary: #667eea;
  --primary-hover: #5a67d8;
  --primary-light: #e0e7ff;
  --primary-bg: #f0f0ff;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* 功能色 */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #667eea;
  --info-light: #e0e7ff;
  
  /* 中性色 */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  --border: #e8ecf4;
  --border-light: #f7f8fc;
  --bg-page: #f5f7ff;
  --bg-card: #ffffff;
  --bg-hover: #f5f7ff;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.06);
  --shadow-md: 0 8px 24px rgba(102, 126, 234, 0.1);
  --shadow-lg: 0 16px 48px rgba(102, 126, 234, 0.12);
  --shadow-xl: 0 24px 64px rgba(102, 126, 234, 0.16);
  
  /* 过渡 */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ========================================
   登录/注册页面 - 活力渐变
   ======================================== */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.auth::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.auth::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.auth .brand {
  position: absolute;
  left: var(--space-2xl);
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
  max-width: 400px;
}

.auth .brand .logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.auth .brand .logo img {
  width: 48px;
  height: 48px;
}

.auth .brand h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.auth .brand p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.auth .form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 32px 80px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.3);
}

.auth .form {
  width: 100%;
}

.auth .form h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.auth .form .muted {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.auth-tabs {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border);
}

.auth-tabs button {
  padding: var(--space-md) 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -2px;
}

.auth-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth .form input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: var(--transition);
  background: white;
}

.auth .form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.auth .form .btn {
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient-primary);
  border: none;
  color: white;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.auth .form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35);
}

/* ========================================
   主控制台布局 - 活力渐变
   ======================================== */
.console {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */
.top {
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  gap: var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(102, 126, 234, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
}

.logo img {
  width: 36px;
  height: 36px;
}

.topnav {
  display: flex;
  gap: var(--space-xs);
  flex: 1;
}

.topnav a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.topnav a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.topnav a.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.account {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.account b {
  font-weight: 700;
  color: var(--text-primary);
}

.account em {
  font-style: normal;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.discount-progress-wrap {
  display: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
}

/* 主体布局 */
.body {
  display: flex;
  flex: 1;
}

/* 侧边栏 */
.side {
  width: 240px;
  background: white;
  border-right: 1px solid var(--border);
  padding: var(--space-lg) 0;
  overflow-y: auto;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
}

.side-title {
  padding: var(--space-sm) var(--space-lg);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-md);
}

.side-title:first-child {
  margin-top: 0;
}

.side button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px var(--space-lg);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.side button:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.side button.active {
  background: linear-gradient(90deg, rgba(102,126,234,0.1), transparent);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}

/* 工作区 */
.workspace {
  flex: 1;
  padding: var(--space-xl);
  min-width: 0;
  background: var(--bg-page);
}

.crumb {
  display: none;
}

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

.titlebar h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ========================================
   通用组件 - 活力渐变
   ======================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: white;
  transition: var(--transition);
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.btn.danger {
  color: var(--danger);
  border-color: var(--danger-light);
}

.btn.danger:hover {
  background: var(--danger-light);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-lg {
  height: 44px;
  padding: var(--space-sm) var(--space-lg);
  font-size: 15px;
}

.btn-sm {
  height: 30px;
  padding: var(--space-xs) var(--space-sm);
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* 卡片 */
.panel, .panel-v2 {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.panel:hover {
  box-shadow: var(--shadow-md);
}

.panel-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
}

.panel-header-v2 h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* 统计卡片 */
.stats-grid, .stats-row-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card, .mini-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition);
}

.stat-card:hover, .mini-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-total .stat-icon { background: var(--primary-bg); }
.stat-running .stat-icon { background: var(--success-light); }
.stat-stopped .stat-icon { background: var(--warning-light); }
.stat-queued .stat-icon { background: var(--info-light); }
.stat-expiring .stat-icon { background: var(--danger-light); }
.stat-balance .stat-icon { background: #f3e8ff; }

.stat-content small {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.stat-content strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-content .stat-trend {
  font-size: 12px;
  color: var(--text-muted);
}

.mini-stat {
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-md);
}

.mini-stat .mini-label {
  font-size: 13px;
  color: var(--text-muted);
}

.mini-stat strong {
  font-size: 24px;
  font-weight: 800;
}

.mini-stat.stat-running { border-left: 3px solid var(--success); }
.mini-stat.stat-stopped { border-left: 3px solid var(--warning); }
.mini-stat.stat-failed { border-left: 3px solid var(--danger); }
.mini-stat.stat-success { border-left: 3px solid var(--success); }

/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th {
  background: var(--bg-page);
  padding: var(--space-md);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}

.table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--success-light);
  color: var(--success);
}

/* 空状态 */
.empty, .empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.empty-state p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.empty-state small {
  font-size: 13px;
}

/* ========================================
   Dashboard 页面
   ======================================== */
.dashboard-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  color: white;
}

.dashboard-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.dashboard-subtitle {
  opacity: 0.9;
  font-size: 14px;
}

.dashboard-quick-actions {
  display: flex;
  gap: var(--space-md);
}

.dashboard-quick-actions .btn {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.dashboard-quick-actions .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-quick-actions .btn.primary {
  background: white;
  color: var(--primary);
}

.dashboard-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.dashboard-col-left, .dashboard-col-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* 云电脑卡片 */
.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.desktop-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
}

.desktop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.desktop-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.desktop-status-badge.running {
  background: var(--success-light);
  color: var(--success);
}

.desktop-status-badge.stopped {
  background: var(--warning-light);
  color: var(--warning);
}

.desktop-status-badge.queued {
  background: var(--info-light);
  color: var(--info);
}

.desktop-status-badge.failed {
  background: var(--danger-light);
  color: var(--danger);
}

.desktop-card-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.desktop-spec {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.desktop-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  font-size: 13px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

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

.desktop-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

/* 通知面板 */
.notification-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.notification-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-page);
}

.notification-item.notification-warning {
  background: var(--warning-light);
}

.notification-item.notification-danger {
  background: var(--danger-light);
}

.notification-item.notification-info {
  background: var(--info-light);
}

.notification-icon {
  font-size: 20px;
}

.notification-content {
  flex: 1;
}

.notification-content strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.notification-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 快捷操作 */
.quick-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.quick-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.quick-grid button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.quick-grid button span {
  font-size: 24px;
}

/* ========================================
   Dashboard V3 - 重新设计的概览页
   ======================================== */

/* Hero 欢迎区域 */
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #7c3aed 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.greeting-emoji {
  font-size: 48px;
  line-height: 1;
}

.hero-greeting h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-date {
  font-size: 13px;
  opacity: 0.8;
}

.hero-balance-card {
  text-align: right;
  position: relative;
  z-index: 1;
}

.balance-label {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.balance-amount {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.balance-discount {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.hero-balance-card .btn {
  background: white;
  color: var(--primary);
  border: none;
  font-weight: 600;
}

.hero-balance-card .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* 统计条 */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.strip-item:hover {
  background: var(--bg-hover);
}

.strip-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.strip-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.strip-total .strip-num { color: var(--primary); }
.strip-running .strip-num { color: var(--success); }
.strip-stopped .strip-num { color: var(--warning); }
.strip-queued .strip-num { color: var(--info); }
.strip-warning .strip-num { color: var(--warning); }
.strip-danger .strip-num { color: var(--danger); }

/* Dashboard 主网格 */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
}

.main-col-left, .main-col-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* 云电脑表格 */
.desktop-table-wrap {
  overflow-x: auto;
}

.desktop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.desktop-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.desktop-table tr:last-child td {
  border-bottom: none;
}

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

.dt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.dt-status.running { background: var(--success-light); color: var(--success); }
.dt-status.stopped { background: var(--warning-light); color: var(--warning); }
.dt-status.queued { background: var(--info-light); color: var(--info); }
.dt-status.failed { background: var(--danger-light); color: var(--danger); }

.dt-name {
  font-size: 14px;
  font-weight: 600;
}

.dt-spec {
  font-size: 13px;
  color: var(--text-secondary);
}

.dt-expire {
  font-size: 13px;
  color: var(--text-secondary);
}

.dt-expired {
  color: var(--danger) !important;
  font-weight: 500;
}

.dt-actions {
  display: flex;
  gap: var(--space-xs);
}

.dt-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  background: white;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.dt-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.dt-btn-start:hover {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-light);
}

.dt-btn-stop:hover {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-light);
}

.dt-pending {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.view-more {
  text-align: center;
  padding: var(--space-md);
}

.empty-center {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.empty-icon-lg {
  font-size: 56px;
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.empty-center p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* 右侧栏通知条 */
.has-alert .panel-header-v2 {
  margin-top: var(--space-md);
}

.alert-strip {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 13px;
}

.alert-processing {
  background: var(--info-light);
  color: var(--info);
}

.alert-failed {
  background: var(--danger-light);
  color: var(--danger);
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.alert-strip .btn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.alert-processing .btn {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--info);
}

.alert-failed .btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* 快捷操作网格 V2 */
.quick-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.qg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  background: white;
}

.qg-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.qg-icon {
  font-size: 28px;
  line-height: 1;
}

.qg-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.qg-create:hover { border-color: var(--primary); background: var(--primary-bg); }
.qg-recharge:hover { border-color: #1677ff; background: #f0f7ff; }
.qg-cardopen:hover { border-color: #7c3aed; background: #f5f3ff; }
.qg-redeem:hover { border-color: var(--success); background: var(--success-light); }
.qg-tasks:hover { border-color: var(--info); background: var(--info-light); }
.qg-finance:hover { border-color: var(--warning); background: var(--warning-light); }

/* 动态 Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feed-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feed-item:hover {
  background: var(--bg-hover);
}

.feed-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-page);
  flex-shrink: 0;
}

.feed-income .feed-icon { background: var(--success-light); }
.feed-expense .feed-icon { background: var(--danger-light); }

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

.feed-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.feed-amount {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.fi-pos { color: var(--success); }
.fi-neg { color: var(--danger); }

.empty-small {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 13px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
  }
  
  .hero-balance-card {
    text-align: left;
  }
  
  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
  
  .main-col-right {
    order: -1;
  }
}

@media (max-width: 640px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .balance-amount {
    font-size: 28px;
  }
  
  .quick-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .desktop-table th:nth-child(3),
  .desktop-table td:nth-child(3) {
    display: none;
  }
}

/* ========================================
   创建桌面页面 - 活力渐变
   ======================================== */
.page-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.page-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header-v2 h2 {
  font-size: 24px;
  font-weight: 800;
}

.page-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: var(--space-xs);
}

.create-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
}

.create-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.create-section {
  padding: var(--space-lg);
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.section-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.create-select, .create-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
  background: white;
}

.create-select:focus, .create-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

/* 规格卡片 */
.spec-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.spec-card-v2 {
  padding: var(--space-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.spec-card-v2:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.spec-card-v2.chosen {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.04));
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

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

.spec-name {
  font-weight: 700;
  font-size: 15px;
}

.spec-mode {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
}

.spec-card-spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.spec-card-spec strong {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 800;
}

.spec-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.spec-card-price em {
  font-style: normal;
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-danger);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spec-card-price small {
  font-size: 12px;
  color: var(--text-muted);
}

/* 磁盘配置 */
.disk-config {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.disk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--bg-page);
  border-radius: var(--radius-md);
}

.disk-label {
  font-weight: 500;
}

.disk-value {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.disk-type {
  font-size: 13px;
  color: var(--text-muted);
}

.disk-size {
  font-weight: 600;
}

.disk-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.disk-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 16px;
  transition: var(--transition);
}

.disk-controls button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.disk-controls input {
  width: 80px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

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

/* 网络配置 */
.network-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.network-item label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.network-item select {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* 时长选项 */
.duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.duration-btn {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}

.duration-btn:hover {
  border-color: var(--primary);
}

.duration-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* 数量控制 */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.quantity-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 18px;
  transition: var(--transition);
}

.quantity-controls button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quantity-controls input {
  width: 80px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
}

.quantity-unit {
  color: var(--text-muted);
}

/* 订单摘要 */
.create-side {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.order-summary-card {
  padding: var(--space-lg);
}

.summary-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.summary-item span {
  color: var(--text-muted);
}

.summary-item strong {
  font-weight: 500;
}

.summary-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-lg);
}

.summary-price span {
  color: var(--text-muted);
}

.price-display {
  text-align: right;
}

.price-display small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.price-display strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--danger);
}

.summary-payment {
  margin-bottom: var(--space-lg);
}

.summary-payment label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.payment-select {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.summary-notice {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--info-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* ========================================
   任务中心 - 活力渐变
   ======================================== */
.task-list-v2 {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.task-item-v2 {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  background: white;
}

.task-item-v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.task-item-v2.pending { border-left: 3px solid var(--warning); }
.task-item-v2.processing { border-left: 3px solid var(--primary); }
.task-item-v2.success { border-left: 3px solid var(--success); }
.task-item-v2.danger { border-left: 3px solid var(--danger); }
.task-item-v2.warning { border-left: 3px solid var(--warning); }

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

.task-item-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.task-id {
  font-weight: 700;
  color: var(--text-muted);
}

.task-type-badge {
  padding: 2px 10px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.task-region {
  font-size: 13px;
  color: var(--text-muted);
}

.task-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.task-status-pill.pending { background: var(--warning-light); color: var(--warning); }
.task-status-pill.processing { background: var(--primary-bg); color: var(--primary); }
.task-status-pill.success { background: var(--success-light); color: var(--success); }
.task-status-pill.danger { background: var(--danger-light); color: var(--danger); }

.task-item-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.task-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.task-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-info-label {
  font-size: 12px;
  color: var(--text-muted);
}

.task-info-value {
  font-size: 14px;
  font-weight: 500;
}

.task-info-value.mono {
  font-family: monospace;
  font-size: 13px;
}

.task-reason {
  font-size: 13px;
  color: var(--text-secondary);
  padding: var(--space-md);
  background: var(--bg-page);
  border-radius: var(--radius-md);
}

.task-detail-toggle {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

/* ========================================
   充值页面 - 活力渐变
   ======================================== */
.recharge-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
}

.recharge-card {
  padding: var(--space-xl);
}

.recharge-amount-section {
  margin-bottom: var(--space-xl);
}

.recharge-amount-section label,
.recharge-methods label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.amount-input-wrap:focus-within {
  border-color: var(--primary);
}

.currency-symbol {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.amount-input {
  flex: 1;
  border: none;
  font-size: 32px;
  font-weight: 700;
  outline: none;
}

.currency-unit {
  font-size: 16px;
  color: var(--text-muted);
}

.amount-quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.amount-quick-select button {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}

.amount-quick-select button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.payment-method-btn:hover {
  border-color: var(--primary);
}

.payment-method-btn.alipay:hover {
  border-color: #1677ff;
  background: #f0f7ff;
}

.payment-method-btn.wechat:hover {
  border-color: #07c160;
  background: #f0fff4;
}

.payment-icon {
  font-size: 32px;
}

.payment-name {
  font-size: 16px;
  font-weight: 600;
}

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

.recharge-notice {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--info-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: var(--space-xl);
}

/* 账户信息卡片 */
.account-info-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-size: 14px;
}

.info-value {
  font-weight: 600;
  font-size: 15px;
}

.info-value.balance {
  font-size: 24px;
  color: var(--primary);
}

/* ========================================
   卡密兑换页面 - 活力渐变
   ======================================== */
.redeem-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
}

.redeem-card {
  padding: var(--space-xl);
  text-align: center;
}

.redeem-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.redeem-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.redeem-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.redeem-input-section {
  max-width: 480px;
  margin: 0 auto;
}

.redeem-input-wrap {
  display: flex;
  gap: var(--space-md);
}

.redeem-input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: var(--transition);
}

.redeem-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

/* 权益列表 */
.entitlement-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.entitlement-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.entitlement-item.available {
  border-color: var(--success);
  background: var(--success-light);
}

.entitlement-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.entitlement-info {
  flex: 1;
}

.entitlement-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.entitlement-spec {
  font-size: 13px;
  color: var(--text-secondary);
}

.entitlement-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.entitlement-status {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.entitlement-status.available {
  background: var(--success-light);
  color: var(--success);
}

/* 统计卡片 */
.stats-card-v2 {
  padding: var(--space-lg);
}

.stats-card-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.stats-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
}

.stat-value.success { color: var(--success); }
.stat-value.muted { color: var(--text-muted); }

/* 帮助内容 */
.help-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.help-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.help-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.help-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.help-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   资金明细页面
   ======================================== */
.ledger-list {
  display: flex;
  flex-direction: column;
}

.ledger-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.ledger-item:hover {
  background: var(--primary-bg);
}

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

.ledger-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg-page);
}

.ledger-item.income .ledger-icon {
  background: var(--success-light);
}

.ledger-item.expense .ledger-icon {
  background: var(--danger-light);
}

.ledger-info {
  flex: 1;
}

.ledger-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ledger-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.ledger-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.ledger-amount {
  text-align: right;
}

.ledger-amount .amount {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.ledger-amount .amount.positive {
  color: var(--success);
}

.ledger-amount .amount.negative {
  color: var(--danger);
}

.ledger-amount .balance-after {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   修改密码页面 - 活力渐变
   ======================================== */
.password-form {
  max-width: 480px;
}

.password-form label {
  display: block;
  margin-bottom: var(--space-lg);
}

.password-form label > span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.password-form input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.password-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

/* ========================================
   公告页面 - 活力渐变
   ======================================== */
.ann-article {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.ann-article:hover {
  background: var(--primary-bg);
}

.ann-article:last-child {
  border-bottom: none;
}

.ann-article-header {
  margin-bottom: var(--space-lg);
}

.ann-article-meta-top {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.ann-type-badge {
  padding: 4px 12px;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.ann-top-badge {
  padding: 4px 10px;
  background: var(--warning-light);
  color: var(--warning);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.ann-article-meta-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
}

.ann-article-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.ann-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.ann-tag {
  padding: 4px 10px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
}

.ann-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.ann-article-footer {
  margin-top: var(--space-lg);
}

/* ========================================
   提示横幅 - 活力渐变
   ======================================== */
.alert-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-banner.alert-info {
  background: linear-gradient(90deg, rgba(102,126,234,0.1), rgba(102,126,234,0.04));
  color: var(--primary);
  border-color: rgba(102,126,234,0.2);
}

.alert-banner.alert-warning {
  background: linear-gradient(90deg, rgba(245,158,11,0.1), rgba(245,158,11,0.04));
  color: var(--warning);
  border-color: rgba(245,158,11,0.2);
}

.alert-banner.alert-danger {
  background: linear-gradient(90deg, rgba(239,68,68,0.1), rgba(239,68,68,0.04));
  color: var(--danger);
  border-color: rgba(239,68,68,0.2);
}

.alert-icon {
  font-size: 18px;
}

/* ========================================
   移动端适配
   ======================================== */
.mobile-tabbar, .mobile-more, .mobile-more-mask, .mobile-more-trigger {
  display: none;
}

@media (max-width: 1024px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
  
  .create-layout {
    grid-template-columns: 1fr;
  }
  
  .create-side {
    position: static;
  }
  
  .recharge-layout, .redeem-layout {
    grid-template-columns: 1fr;
  }
  
  /* 移动端底部导航 */
  .mobile-tabbar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0;
    z-index: 100;
  }
  
  .mobile-tabbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
  }
  
  .mobile-tabbar button.active {
    color: var(--primary);
    font-weight: 600;
  }
  
  /* 移动端铃铛 */
  .mobile-bell {
    display: flex !important;
    position: fixed;
    left: var(--space-md);
    bottom: 72px;
    z-index: 99;
  }
  .mobile-bell .notification-bell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: var(--shadow-lg);
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
  }
  .mobile-bell .bell-icon {
    font-size: 20px;
    margin: 0;
    padding: 0;
  }
  .mobile-bell .bell-badge {
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
  
  .mobile-more-trigger {
    display: block !important;
    position: fixed;
    right: var(--space-md);
    bottom: 72px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  
  .mobile-more {
    display: grid !important;
    position: fixed;
    bottom: 80px;
    left: var(--space-md);
    right: var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-xl);
    z-index: 100;
    gap: var(--space-sm);
  }
  
  .mobile-more h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
  }
  
  .mobile-more button {
    padding: var(--space-md);
    text-align: left;
    border-radius: var(--radius-md);
  }
  
  .mobile-more button.active {
    background: var(--primary-bg);
    color: var(--primary);
  }
  
  .mobile-more-mask {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
  }
  
  .console {
    padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 20px;
    --space-lg: 16px;
  }
  
  /* 登录页 */
  .auth .brand {
    display: none;
  }
  
  .auth .form-wrap {
    padding: var(--space-xl);
  }
  
  /* 顶部导航 */
  .top {
    height: 56px;
    padding: 0 var(--space-md);
  }
  
  .topnav {
    display: none;
  }
  
  .account b {
    display: none;
  }
  
  /* 侧边栏 */
  .side {
    display: none;
  }
  
  /* 工作区 */
  .workspace {
    padding: var(--space-md);
  }
  
  .titlebar h2 {
    font-size: 20px;
  }
  
  /* 统计卡片 */
  .stats-grid, .stats-row-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 云电脑卡片 */
  .desktop-grid {
    grid-template-columns: 1fr;
  }
  
  /* 规格卡片 */
  .spec-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 网络配置 */
  .network-config {
    grid-template-columns: 1fr;
  }
  
  /* 支付方式 */
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
  
  /* 卡密兑换 */
  .redeem-input-wrap {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-grid, .stats-row-v2 {
    grid-template-columns: 1fr;
  }
  
  .spec-grid-v2 {
    grid-template-columns: 1fr;
  }
  
  .duration-options {
    flex-wrap: wrap;
  }
  
  .duration-btn {
    flex: 1;
    min-width: calc(50% - var(--space-sm));
  }
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel, .panel-v2, .stat-card, .mini-stat, .desktop-card, .task-item-v2 {
  animation: fadeIn 0.3s ease;
}

/* 加载动画 */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 视图所有 */
.view-all-link {
  text-align: center;
  padding: var(--space-md);
}

/* 文本工具类 */
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.mono { font-family: monospace; }

/* 行操作按钮 */
.row-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* 错误提示 */
.err {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

.desktop-error {
  font-size: 12px;
  color: var(--danger);
  padding: var(--space-sm);
  background: var(--danger-light);
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

/* 已过期标记 */
.desktop-expired-badge {
  padding: 2px 6px;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

/* 支付列表迷你版 */
.payment-list-mini {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.payment-item-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-page);
  border-radius: var(--radius-md);
}

.payment-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-channel {
  font-weight: 500;
}

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

.payment-item-amount {
  text-align: right;
}

.payment-status-mini {
  display: block;
  font-size: 12px;
}

.payment-status-mini.paid { color: var(--success); }
.payment-status-mini.pending { color: var(--warning); }
.payment-status-mini.failed { color: var(--danger); }

/* ========================================
   全局增强 - 所有页面通用优化
   ======================================== */

/* 渐变背景装饰 */
.page-decoration {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 页面容器增强 */
.page-container {
  position: relative;
  z-index: 1;
}

/* 卡片悬浮增强 */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* 骨架屏加载动画 */
.skeleton {
  background: linear-gradient(90deg, var(--bg-page) 25%, var(--border-light) 50%, var(--bg-page) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* 玻璃态效果 */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 脉冲动画 */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-ring 2s infinite;
  opacity: 0;
}

/* 数字滚动动画 */
.counter-animate {
  display: inline-block;
  transition: transform 0.3s ease;
}

.counter-animate.pop {
  animation: counter-pop 0.3s ease;
}

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

/* 进度条增强 */
.progress-bar {
  height: 6px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
}

/* 标签切换器 */
.tab-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  gap: 4px;
}

.tab-switch button {
  padding: 6px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tab-switch button.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 空状态增强 */
.empty-state-lg {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-state-lg .empty-icon-xl {
  font-size: 72px;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.empty-state-lg p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.empty-state-lg small {
  font-size: 13px;
  color: var(--text-muted);
}

/* 步骤指示器 */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: var(--space-xl) 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-item.active .step-circle {
  background: var(--primary);
  color: white;
}

.step-item.completed .step-circle {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 500;
}

.step-line {
  position: absolute;
  top: 16px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-item:last-child .step-line {
  display: none;
}

.step-item.completed .step-line {
  background: var(--success);
}

/* 工具提示 */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--text-primary);
  color: white;
  font-size: 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
  z-index: 10;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* 分隔线 */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* 徽章计数 */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--danger);
  color: white;
}

.badge-count.warning {
  background: var(--warning);
}

.badge-count.success {
  background: var(--success);
}

/* 列表项 hover 效果 */
.list-item-hover {
  transition: var(--transition);
}

.list-item-hover:hover {
  background: var(--bg-hover);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 大间距变量 */
:root {
  --space-3xl: 64px;
}

/* ========================================
   登录/注册页增强
   ======================================== */

.auth-enhanced .brand {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
  max-width: 420px;
}

.auth-enhanced .brand h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.auth-enhanced .brand p {
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.7;
}

.auth-enhanced .brand .logo img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.auth-enhanced .form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.auth-enhanced .form h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-enhanced .form .muted {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

.auth-enhanced .form input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: white;
}

.auth-enhanced .form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-enhanced .form .btn {
  width: 100%;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  margin-top: 8px;
}

/* ========================================
   云电脑管理页增强 - 活力渐变
   ======================================== */

.desktop-card-enhanced {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.desktop-card-enhanced:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.desktop-card-header-enhanced {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.desktop-card-body-enhanced {
  padding: var(--space-md) var(--space-lg);
}

.desktop-card-footer-enhanced {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-page);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* 云电脑网格布局 */
.desktop-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* ========================================
   创建桌面页增强 - 活力渐变
   ======================================== */

.create-layout-enhanced {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

.spec-card-enhanced {
  padding: var(--space-lg);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.spec-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.spec-card-enhanced:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.spec-card-enhanced:hover::before {
  transform: scaleX(1);
}

.spec-card-enhanced.chosen {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-bg), #f5f3ff);
}

.spec-card-enhanced.chosen::before {
  transform: scaleX(1);
}

.summary-card-enhanced {
  position: sticky;
  top: 88px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   任务中心页增强
   ======================================== */

.task-timeline {
  position: relative;
  padding-left: 32px;
}

.task-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.task-timeline-item {
  position: relative;
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: var(--transition);
}

.task-timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--border);
}

.task-timeline-item.status-pending::before { background: var(--warning); box-shadow: 0 0 0 2px var(--warning); }
.task-timeline-item.status-processing::before { background: var(--info); box-shadow: 0 0 0 2px var(--info); }
.task-timeline-item.status-success::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.task-timeline-item.status-failed::before { background: var(--danger); box-shadow: 0 0 0 2px var(--danger); }

.task-timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

/* ========================================
   充值页增强 - 活力渐变
   ======================================== */

.recharge-layout-enhanced {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.amount-display-enhanced {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.04));
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
}

.amount-display-enhanced .currency {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.amount-display-enhanced .value {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.amount-display-enhanced .unit {
  font-size: 18px;
  color: var(--text-muted);
}

.quick-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quick-amount-btn {
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  background: white;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.quick-amount-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
  transform: translateY(-2px);
}

.quick-amount-btn.selected {
  border-color: var(--primary);
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* ========================================
   资金明细页增强 - 活力渐变
   ======================================== */

.finance-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.finance-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition);
}

.finance-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.finance-stat-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.finance-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   公告页增强
   ======================================== */

.announcements-grid {
  display: grid;
  gap: var(--space-lg);
}

.announcement-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  cursor: pointer;
}

.announcement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.announcement-card.is-unread {
  border-left: 4px solid var(--primary);
  background: var(--primary-bg);
}

/* ========================================
   移动端适配增强
   ======================================== */

@media (max-width: 1200px) {
  .create-layout-enhanced,
  .recharge-layout-enhanced {
    grid-template-columns: 1fr;
  }
  
  .summary-card-enhanced {
    position: static;
  }
  
  .finance-summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-grid-enhanced {
    grid-template-columns: 1fr;
  }
  
  .quick-amount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .finance-summary-cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .auth-enhanced .brand {
    display: none;
  }
  
  .auth-enhanced .form-wrap {
    max-width: 100%;
    margin: var(--space-lg);
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .finance-summary-cards {
    grid-template-columns: 1fr;
  }
  
  .quick-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Dashboard V4 - 活力渐变设计
   ======================================== */

.modern-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero 区域 - 动态渐变 */
.dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 28px 32px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(102, 126, 234, 0.5);
}

.dash-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

.dash-hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -80px;
  left: 20%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-left {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-emoji {
  font-size: 48px;
  line-height: 1;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.hero-welcome h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-date {
  font-size: 14px;
  opacity: 0.9;
}

.hero-right {
  position: relative;
  z-index: 1;
}

.balance-widget {
  text-align: right;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.balance-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.balance-rate {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.balance-widget .btn {
  background: white;
  color: #667eea;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.balance-widget .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

/* 统计卡片行 - 渐变边框 */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-modern {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--stat-color1), var(--stat-color2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-modern:hover::before {
  opacity: 1;
}

.stat-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.15);
}

.stat-total { --stat-color1: #667eea; --stat-color2: #764ba2; }
.stat-running { --stat-color1: #11998e; --stat-color2: #38ef7d; }
.stat-stopped { --stat-color1: #f093fb; --stat-color2: #f5576c; }
.stat-tasks { --stat-color1: #4facfe; --stat-color2: #00f2fe; }
.stat-expiring { --stat-color1: #ffecd2; --stat-color2: #fcb69f; }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--stat-color1), var(--stat-color2));
  box-shadow: 0 8px 20px -6px var(--stat-color1);
}

.stat-info {
  flex: 1;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

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

/* 主内容区 - 现代简洁布局 */
.dash-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 底部三列区域 */
.dash-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

/* 统计卡片 - 简洁设计 */
.stat-modern {
  background: white;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.stat-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.12);
}

.stat-modern .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--stat-color1), var(--stat-color2));
  box-shadow: 0 6px 16px -4px var(--stat-color1);
}

.stat-modern .stat-info {
  flex: 1;
}

.stat-modern .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

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

/* 通知中心 - 整合面板 */
.notif-center {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.notif-center-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-center-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-center-item:hover {
  background: var(--bg-page);
}

.notif-center-item.active {
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.05));
}

.notif-center-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notif-center-icon.sys { background: linear-gradient(135deg, #667eea20, #764ba220); }
.notif-center-icon.exp { background: linear-gradient(135deg, #f5576c20, #fcb69f20); }
.notif-center-icon.ann { background: linear-gradient(135deg, #11998e20, #38ef7d20); }

.notif-center-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.notif-center-badge {
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--text-secondary);
}

.notif-center-item.active .notif-center-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.notif-center-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  max-height: 280px;
  overflow-y: auto;
}

/* 环形图 */
.donut-chart-panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.donut-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
}

.donut-chart {
  position: relative;
  width: 120px;
  height: 120px;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-chart circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.donut-center-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.donut-legend-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.donut-legend-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: auto;
}

/* 快捷操作 */
.quick-actions-panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 12px;
  background: var(--bg-page);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(102, 126, 234, 0.5);
}

.quick-action-btn .qa-icon {
  font-size: 24px;
}

.quick-action-btn .qa-text {
  font-size: 12px;
  font-weight: 600;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.donut-center-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donut-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.donut-legend-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.donut-legend-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: auto;
}

/* 底部快捷操作 */
.dash-quick-bar {
  background: white;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-quick-bar .quick-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 8px;
}

.dash-quick-bar .qg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-page);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-quick-bar .qg-item:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(102, 126, 234, 0.5);
}

.dash-quick-bar .qg-icon {
  font-size: 18px;
}

/* 资源图表 - 彩色进度条 */
.modern-chart-panel {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.modern-chart {
  padding: 16px 0;
}

.chart-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.chart-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chart-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.chart-bar-wrap {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-fill-running { background: linear-gradient(90deg, #11998e, #38ef7d); }
.chart-fill-stopped { background: linear-gradient(90deg, #f093fb, #f5576c); }
.chart-fill-queued { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.chart-fill-failed { background: linear-gradient(90deg, #fa709a, #fee140); }

.chart-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

/* 到期提醒 */
.expiry-panel {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.expiry-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expiry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.expiry-item:hover {
  transform: translateX(4px);
}

.expiry-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.expiry-content {
  flex: 1;
  min-width: 0;
}

.expiry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expiry-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.expiry-expired {
  background: linear-gradient(90deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
  border-left: 3px solid var(--danger);
}

.expiry-warning {
  background: linear-gradient(90deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
  border-left: 3px solid var(--warning);
}

.expiry-expired .expiry-title { color: var(--danger); }
.expiry-warning .expiry-title { color: var(--warning); }

/* 系统通知 */
.notif-panel {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.urgent-notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.notif-item:hover {
  transform: translateX(4px);
}

.notif-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.notif-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.notif-danger {
  background: linear-gradient(90deg, rgba(239,68,68,0.08), rgba(239,68,68,0.02));
}

.notif-danger .notif-title { color: var(--danger); }

.notif-warning {
  background: linear-gradient(90deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02));
}

.notif-warning .notif-title { color: var(--warning); }

/* 公告预览 */
.ann-panel {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.announcement-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ann-preview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.ann-preview-item:hover {
  background: var(--bg-page);
  transform: translateX(4px);
}

.ann-unread {
  background: linear-gradient(90deg, rgba(102,126,234,0.08), rgba(118,75,162,0.02));
}

.ann-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ann-type-badge-small {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.ann-preview-date {
  font-size: 11px;
  color: var(--text-muted);
}

.ann-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-new-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  animation: pulse 2s infinite;
}

/* 响应式 */
@media (max-width: 1200px) {
  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dash-content {
    grid-template-columns: 1fr;
  }
  
  .dash-bottom-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .chart-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .donut-chart-wrap {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
  
  .balance-widget {
    text-align: left;
    width: 100%;
  }
  
  .dash-stats {
    grid-template-columns: 1fr;
  }
  
  .dash-bottom-row {
    grid-template-columns: 1fr;
  }
  
  .chart-row {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   全局页面统一优化
   ======================================== */

/* 页面头部优化 */
.page-v2 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header-v2 h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.page-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 面板卡片统一优化 */
.panel-v2 {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-v2:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.panel-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.panel-header-v2 h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* 统计卡片优化 */
.stats-row-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mini-stat {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mini-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mini-stat:hover::before {
  opacity: 1;
}

.mini-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.12);
}

.mini-stat .mini-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.mini-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.mini-stat.stat-running::before { background: linear-gradient(90deg, #11998e, #38ef7d); }
.mini-stat.stat-stopped::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
.mini-stat.stat-success::before { background: linear-gradient(90deg, #11998e, #38ef7d); }
.mini-stat.stat-failed::before { background: linear-gradient(90deg, #fa709a, #fee140); }
.mini-stat.stat-processing::before { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.mini-stat.stat-other::before { background: linear-gradient(90deg, #667eea, #764ba2); }

/* 云电脑卡片优化 */
.desktop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.desktop-card {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.desktop-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.desktop-card:hover::after {
  opacity: 1;
}

.desktop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.12);
}

.desktop-card.running { border-left: 3px solid #11998e; }
.desktop-card.stopped { border-left: 3px solid #f5576c; }
.desktop-card.queued { border-left: 3px solid #4facfe; }
.desktop-card.failed { border-left: 3px solid #fa709a; }

.desktop-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.desktop-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 8px;
}

.desktop-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.desktop-card-actions .btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 600;
}

.desktop-expired-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--danger-light);
  color: var(--danger);
}

/* 任务列表优化 */
.task-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item-v2 {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.task-item-v2:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateX(4px);
}

.task-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.task-status-pill.pending { background: #fef3c7; color: #d97706; }
.task-status-pill.processing { background: #dbeafe; color: #2563eb; }
.task-status-pill.success { background: #d1fae5; color: #059669; }
.task-status-pill.danger { background: #fee2e2; color: #dc2626; }
.task-status-pill.warning { background: #fef3c7; color: #d97706; }

/* 创建桌面页优化 */
.create-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.create-section {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.section-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: 10px;
  flex-shrink: 0;
}

.spec-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.spec-card-v2 {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.spec-card-v2:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.spec-card-v2.chosen {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(124,58,237,0.05));
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

/* 充值页优化 */
.recharge-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.amount-quick-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.amount-quick-select button {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-quick-select button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.payment-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.payment-method-btn.alipay:hover { border-color: #1677ff; }
.payment-method-btn.wechat:hover { border-color: #07c160; }

.payment-icon { font-size: 32px; }
.payment-name { font-size: 14px; font-weight: 600; }
.payment-desc { font-size: 12px; color: var(--text-muted); }

/* 兑换页优化 */
.redeem-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.redeem-input-wrap {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.redeem-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.redeem-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.entitlement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entitlement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.entitlement-item.available {
  background: linear-gradient(135deg, rgba(17,153,142,0.05), rgba(56,239,125,0.05));
  border: 1px solid rgba(17,153,142,0.2);
}

.entitlement-item:hover {
  transform: translateX(4px);
}

/* 资金明细优化 */
.ledger-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ledger-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ledger-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
}

.ledger-item.income { border-left: 3px solid #11998e; }
.ledger-item.expense { border-left: 3px solid #f5576c; }

.ledger-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
  flex-shrink: 0;
}

.ledger-amount .amount.positive { color: #11998e; font-weight: 700; }
.ledger-amount .amount.negative { color: #f5576c; font-weight: 700; }

/* 公告页优化 */
.ann-article {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.ann-article:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.ann-article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0;
}

.ann-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.ann-top-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #f5576c, #fa709a);
  color: white;
  margin-left: 8px;
}

/* 密码页优化 */
.password-form {
  max-width: 480px;
}

.password-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.password-form input {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.password-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 通知面板优化 */
.notification-panel {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.notification-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.notification-item:hover {
  transform: translateX(4px);
}

/* 快捷操作优化 */
.quick-panel {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.quick-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: none;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-grid button:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(102, 126, 234, 0.5);
}

.quick-grid button span {
  font-size: 24px;
}

/* 空状态优化 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state small {
  font-size: 13px;
  color: var(--text-muted);
}

/* 警告横幅优化 */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-banner.alert-info {
  background: linear-gradient(90deg, rgba(79,172,254,0.1), rgba(0,242,254,0.05));
  border: 1px solid rgba(79,172,254,0.2);
  color: #2563eb;
}

.alert-banner.alert-danger {
  background: linear-gradient(90deg, rgba(239,68,68,0.1), rgba(245,87,108,0.05));
  border: 1px solid rgba(239,68,68,0.2);
  color: #dc2626;
}

.alert-banner.alert-info {
  background: linear-gradient(90deg, rgba(79,172,254,0.1), rgba(0,242,254,0.05));
  border: 1px solid rgba(79,172,254,0.2);
  color: #2563eb;
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* 响应式优化 */
@media (max-width: 1200px) {
  .create-layout,
  .recharge-layout,
  .redeem-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-header-v2 {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stats-row-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .desktop-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-row-v2 {
    grid-template-columns: 1fr;
  }
  
  .quick-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   公告弹窗样式
   ======================================== */

.ann-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

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

.ann-modal {
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.ann-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1;
}

.ann-modal-close:hover {
  background: #e2e8f0;
  color: #1f2937;
}

.ann-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 24px 0;
  flex-wrap: wrap;
}

.ann-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 12px 24px 0;
  margin: 0;
  line-height: 1.4;
}

.ann-modal-meta {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 24px 0;
}

.ann-modal-body {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.ann-modal-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

.ann-modal-body a {
  color: var(--primary);
  text-decoration: none;
}

.ann-modal-body a:hover {
  text-decoration: underline;
}

.ann-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
}

/* 公告文章样式 */
.ann-article {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.ann-article:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.ann-article-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ann-article-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ann-article-meta-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.ann-article-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0;
  line-height: 1.4;
}

.ann-article-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ann-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: #f1f5f9;
  color: var(--text-secondary);
}

.ann-article-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.ann-article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

.ann-article-body a {
  color: var(--primary);
  text-decoration: none;
}

/* ========================================
   通知铃铛样式
   ======================================== */

.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-right: 12px;
}

.notification-bell:hover {
  background: rgba(102, 126, 234, 0.1);
}

.bell-icon {
  font-size: 20px;
  display: block;
}

.bell-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: bellBadgePulse 2s infinite;
}

@keyframes bellBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   通知下拉面板
   ======================================== */

.notification-panel-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: notifPanelSlide 0.2s ease;
}

@keyframes notifPanelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.notif-panel-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-close-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.notif-close-btn:hover {
  background: #e2e8f0;
  color: #1f2937;
}

.notif-unread-badge {
  padding: 3px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(124, 58, 237, 0.1));
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.notif-panel-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #f8fafc;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(124, 58, 237, 0.03));
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.notif-type-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 11px;
}

.notif-top-badge {
  font-size: 14px;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.notif-panel-footer {
  padding: 12px 20px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.notif-panel-footer button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.notif-panel-footer button:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* ========================================
   公告优先级标签
   ======================================== */

.ann-priority-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.ann-priority-badge.urgent {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
}

.ann-priority-badge.important {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
}

/* 未读标记 */
.ann-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: pulse 2s infinite;
}

.ann-article.unread {
  border-left: 3px solid var(--primary);
}

.ann-article-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.ann-read-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

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

/* ========================================
   手机端适配
   ======================================== */

@media (max-width: 768px) {
  /* 通知面板移动端适配 */
  .notification-panel-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(0);
    animation: notifPanelSlideUp 0.3s ease;
  }

  @keyframes notifPanelSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .notif-panel-header {
    padding: 20px 20px 16px;
    position: relative;
  }

  .notif-panel-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
  }

  .notif-panel-list {
    max-height: calc(70vh - 140px);
  }

  .notif-item {
    padding: 16px 20px;
  }

  .notif-item-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .notif-item-title {
    font-size: 15px;
  }

  .notif-panel-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  /* 公告弹窗移动端适配 */
  .ann-modal-mask {
    padding: 0;
    align-items: flex-end;
  }

  .ann-modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    animation: annModalSlideUp 0.3s ease;
  }

  @keyframes annModalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .ann-modal-header {
    padding: 20px 20px 12px;
  }

  .ann-modal-title {
    font-size: 18px;
    padding: 8px 20px 0;
  }

  .ann-modal-meta {
    padding: 8px 20px 0;
    font-size: 12px;
  }

  .ann-modal-body {
    padding: 16px 20px;
    font-size: 15px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
  }

  .ann-modal-footer {
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .ann-modal-close {
    top: 16px;
    right: 16px;
  }

  /* 公告文章移动端适配 */
  .ann-article {
    padding: 20px 16px;
  }

  .ann-article-title {
    font-size: 16px;
  }

  .ann-article-body {
    font-size: 14px;
  }

  /* 铃铛移动端 */
  .notification-bell {
    padding: 10px;
    margin-right: 8px;
  }

  .bell-icon {
    font-size: 22px;
  }

  .bell-badge {
    min-width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
  .notification-panel-dropdown {
    max-height: 80vh;
  }

  .notif-panel-list {
    max-height: calc(80vh - 140px);
  }

  .ann-modal {
    max-height: 95vh;
  }

  .ann-modal-body {
    max-height: calc(95vh - 200px);
  }

  .notif-item {
    padding: 14px 16px;
  }

  .notif-item-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .notif-item-title {
    font-size: 14px;
  }

  .notif-item-meta {
    font-size: 11px;
  }
}

/* 充值页手机端适配 */
@media (max-width: 768px) {
  .recharge-card {
    padding: var(--space-md);
  }
  
  .recharge-amount-section {
    margin-bottom: var(--space-md);
  }
  
  .amount-input-wrap {
    padding: var(--space-sm);
    justify-content: center;
  }
  
  .currency-symbol {
    font-size: 24px;
    margin-right: 4px;
  }
  
  .amount-input {
    width: 160px !important;
    max-width: 60% !important;
    font-size: 28px !important;
    text-align: center;
    padding: 8px 4px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
  }
  
  .amount-input:focus {
    background: #fff !important;
    border-color: var(--primary) !important;
  }
  
  .currency-unit {
    font-size: 20px;
    margin-left: 4px;
  }
  
  .amount-quick-select button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .payment-method-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-method-btn {
    padding: var(--space-md);
  }
  
  .payment-icon {
    font-size: 28px;
  }
  
  .payment-name {
    font-size: 14px;
  }
  
  .payment-desc {
    font-size: 12px;
  }
  
  .recharge-notice {
    padding: 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .amount-input-wrap {
    gap: 6px;
  }
  
  .currency-symbol {
    font-size: 22px;
  }
  
  .amount-input {
    width: 140px !important;
    font-size: 24px !important;
    height: 56px !important;
  }
  
  .currency-unit {
    font-size: 18px;
  }
  
  .amount-quick-select {
    gap: 8px;
  }
  
  .amount-quick-select button {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 13px;
    border-radius: 8px;
  }
  
  .account-info-card .info-row {
    padding: 10px 0;
    font-size: 14px;
  }
  
  .info-value.balance {
    font-size: 20px;
  }
}
