:root {
  --bg-dark: #080d1a;
  --bg-card: rgba(16, 24, 45, 0.75);
  --bg-card-hover: rgba(22, 34, 64, 0.85);
  --bg-panel: rgba(13, 20, 38, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --rose: #f43f5e;
  --cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Outfit', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 布局结构 */
.app-layout {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 毛玻璃容器 */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 顶部导航栏 */
.top-nav {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 全局统计胶囊 */
.global-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-pill .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-pill .stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.stat-pill.highlight-emerald .stat-value { color: var(--emerald); }
.stat-pill.highlight-gold .stat-value { color: var(--amber); }
.stat-pill.highlight-purple .stat-value { color: var(--purple); }

/* 按钮与交互控件 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #7073f4, #5a52e8);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: white;
  box-shadow: 0 4px 14px var(--purple-glow);
}
.btn-purple:hover {
  background: linear-gradient(135deg, #b36bf9, #9d40f2);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: white;
  box-shadow: 0 4px 14px var(--emerald-glow);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* 主体容器 */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.section-title-wrap h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 多账号卡片网格 */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 1.25rem;
}

/* 单个账号卡片 */
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.account-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.account-card.running {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}

/* 卡片顶部头像与身份 */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.avatar-wrapper {
  position: relative;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

.status-indicator.online {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.status-indicator.offline {
  background: var(--text-dim);
}

.status-indicator.reconnecting {
  background: var(--amber);
  animation: pulse 1.5s infinite;
}

.user-meta .nickname {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-meta .sub-info {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.copy-id-btn {
  cursor: pointer;
  color: var(--cyan);
  margin-left: 4px;
  font-size: 0.75rem;
}
.copy-id-btn:hover { text-decoration: underline; }

.vip-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.vip-badge.vip {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.vip-badge.normal {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

/* 卡片核心指标行 */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric-title {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-val.green { color: var(--emerald); }
.metric-val.gold { color: var(--amber); }

/* 卡片保活状态条 */
.keepalive-status-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.keepalive-status-box.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

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

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.pulse-dot.green {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

.pulse-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 1.2s infinite;
}

.pulse-dot.gray {
  background: var(--text-dim);
}

.status-title-text {
  font-size: 0.82rem;
  font-weight: 600;
}

.status-sub-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* 卡片操作按钮行 */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  margin-top: auto;
}

/* 终端日志流部分 */
.terminal-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.terminal-header {
  padding: 0.75rem 1.25rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 15, 28, 0.9);
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-title h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-left: 0.4rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.styled-select-sm {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  outline: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.terminal-body {
  height: 380px;
  overflow-y: auto;
  padding: 0.9rem 1.25rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(8, 12, 22, 0.95);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
  word-break: break-all;
}

.log-time {
  color: var(--text-dim);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.log-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.log-tag.account {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}

.log-tag.system {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.log-msg {
  color: #cbd5e1;
}

.log-entry.success .log-msg { color: #34d399; }
.log-entry.warn .log-msg { color: #fbbf24; }
.log-entry.error .log-msg { color: #f87171; font-weight: 600; }

.log-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 3rem 0;
}

/* 模态弹窗 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 480px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.close-btn:hover { color: #fff; }

.modal-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.65rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.tab-content.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.styled-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: white;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.styled-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.readonly-input {
  opacity: 0.8;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.25) !important;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.label-badge-amber {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.keepalive-hint-box {
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.keepalive-hint-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.keepalive-hint-box.warning .hint-header {
  color: #fbbf24;
}

.keepalive-hint-box.normal {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.keepalive-hint-box.normal .hint-header {
  color: #818cf8;
}

.keepalive-hint-box .hint-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.keepalive-hint-box .hint-content {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.keepalive-hint-box .hint-content strong {
  color: #f8fafc;
}

.tip-text {
  font-size: 0.78rem;
  color: var(--cyan);
  line-height: 1.4;
}

/* 商城商品卡片 */
.commodity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
}

.commodity-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.commodity-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.commodity-price {
  font-size: 0.8rem;
  color: var(--amber);
  font-family: var(--font-mono);
}

.exchange-account-header {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.exchange-account-header span {
  color: var(--cyan);
  font-weight: 700;
}

/* 动效 */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto 1rem;
}

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

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

/* 💖 赞赏按钮专属高质感样式 */
.btn-sponsor {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #8b5cf6 100%);
  color: white;
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-sponsor:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f472b6 50%, #a855f7 100%);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.55);
  transform: translateY(-1px);
}

.btn-sponsor::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-sponsor:hover::after {
  opacity: 1;
}

/* ==========================================================================
   使用指南与核心说明区域 (Guide Section)
   ========================================================================== */
.guide-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.guide-step-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.guide-step-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.2), transparent);
}
.guide-step-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--primary), rgba(99, 102, 241, 0.2), transparent);
}
.guide-step-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--emerald), rgba(16, 185, 129, 0.2), transparent);
}

.guide-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.guide-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.guide-step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-step-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.guide-step-tag.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.guide-step-tag.primary {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.guide-step-tag.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.guide-step-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.guide-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.guide-step-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.guide-step-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.guide-highlight {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid var(--primary);
  color: #e2e8f0;
}

.guide-highlight.warning {
  border-left-color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.guide-highlight.primary {
  border-left-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.guide-highlight.emerald {
  border-left-color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
}

.guide-highlight strong {
  color: #fff;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0;
}

.guide-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #94a3b8;
}

.guide-list li::before {
  content: '•';
  position: absolute;
  left: 0.2rem;
  color: var(--primary);
  font-weight: bold;
}

.guide-step-card:nth-child(1) .guide-list li::before {
  color: var(--amber);
}

.guide-step-card:nth-child(3) .guide-list li::before {
  color: var(--emerald);
}

.guide-list li strong {
  color: #f1f5f9;
}

/* 进阶说明 2x2 网格 */
.guide-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.guide-tip-card {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 20, 38, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-tip-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.tip-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tip-card-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.tip-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.guide-tip-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

.guide-tip-card p strong {
  color: #e2e8f0;
}

/* 底部 Footer 容器 */
.dashboard-footer {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.disclaimer-badge {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

.footer-disclaimer-text {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 0.15rem;
}

.footer-disclaimer-text strong {
  color: #fbbf24;
}

/* 底部赞赏卡片 */
.footer-sponsor-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 1rem;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-sponsor-card:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.25);
}

.sponsor-mini-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.6));
}

.sponsor-mini-text {
  display: flex;
  flex-direction: column;
}

.sponsor-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.sponsor-mini-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sponsor-mini-tag {
  font-size: 0.7rem;
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

/* 赞赏模态弹窗样式 */
.sponsor-modal-card {
  max-width: 440px;
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(244, 63, 94, 0.15);
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sponsor-heart-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.8));
}

.sponsor-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem 1.75rem;
  gap: 1.25rem;
  text-align: center;
}

.sponsor-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.sponsor-desc strong {
  color: #f43f5e;
  font-weight: 700;
}

/* 二维码展示卡片 */
.qrcode-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.qrcode-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.qrcode-card {
  width: 240px;
  height: 240px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 63, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease;
}

.qrcode-card:hover {
  transform: scale(1.02);
}

.sponsor-qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.qrcode-footer-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qrcode-footer-tip .tip-icon {
  color: #f59e0b;
}

.sponsor-actions {
  width: 100%;
  margin-top: 0.25rem;
}

/* =================================================== */
/* 版本徽章与编译元信息样式 */
/* =================================================== */

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.app-version-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
  user-select: none;
}

.app-version-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.8);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.45);
}

/* 底部编译元信息栏 */
.footer-build-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  cursor: pointer;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.73rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.footer-build-meta:hover .meta-chip {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.meta-chip .meta-label {
  color: var(--text-muted);
}

.meta-chip .meta-value {
  color: #f1f5f9;
  font-weight: 600;
}

/* 版本与编译信息弹窗 */
.version-modal-card {
  max-width: 580px;
}

.version-hero-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}

.version-hero-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--primary-glow);
}

.version-hero-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.version-hero-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.version-hero-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
  flex-shrink: 0;
}

.version-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.version-info-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.version-info-item .info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.version-info-item .info-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  word-break: break-all;
}

@media (max-width: 640px) {
  .version-info-grid {
    grid-template-columns: 1fr;
  }
  .version-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .version-hero-tag {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

