/**
 * 灵极乌托邦 - 个人中心样式
 * 暗黑仪表盘风格 + Glassmorphism
 */

/* member.css 局部变量 — 基础变量继承自 design-system.css */
:root {
  --bg-deep: #050508;
  --bg-panel: rgba(10, 10, 15, 0.85);
  --bg-panel-hover: rgba(15, 15, 24, 0.95);
  --text-main: #f0f0f5;
  --text-dim: #888898;
  --border-color: var(--border-subtle);
  --border-hover: var(--border-brand);
  --shadow-panel: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  color: var(--text-main);
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  background: var(--bg-deep);
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 背景图 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(192, 38, 211, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(204, 255, 0, 0.08), transparent 50%);
  background-size: cover;
  z-index: -1;
}

.hidden {
  display: none !important;
}

/* ========== 登录区域 ========== */
.login-section {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.login-box {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-panel);
}

.login-title {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  color: var(--brand-primary);
}

.login-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.login-input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 16px;
  margin-bottom: 20px;
  transition: all 0.2s;
}

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

.login-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dim));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-login:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-brand);
}

.login-tip {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-error, #ef4444);
  min-height: 20px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--brand-primary);
}

.nav-logo img {
  height: 38px;
  width: auto;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
  max-width: 1100px;
}

.nav-links a {
  padding: 10px 16px;
  color: #ccc;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(204, 255, 0, 0.08);
}

.nav-links a.active {
  color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.1);
}

/* 星空3D 高亮样式 */
.nav-links a.nav-link-highlight {
  color: var(--color-error, #ef4444);
  background: rgba(239, 68, 68, 0.12);
  font-weight: 700;
}

.nav-links a.nav-link-highlight:hover {
  color: var(--color-error, #ef4444);
  background: rgba(239, 68, 68, 0.2);
}

/* 会员订阅 VIP 金色样式 */
.nav-links a.nav-link-vip {
  color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.1);
  font-weight: 700;
}

.nav-links a.nav-link-vip:hover {
  color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.18);
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: #fff !important;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow-brand);
  transition: all var(--transition-base);
}

.btn-contact:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.btn-contact svg {
  width: 18px;
  height: 18px;
}

.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.btn-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-brand);
}

.btn-contact-icon svg {
  width: 20px;
  height: 20px;
}

.nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: var(--border-subtle);
  color: #CCFF00;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-hamburger:hover {
  background: rgba(204, 255, 0, 0.12);
  border-color: var(--border-brand);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  max-width: 320px;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-default);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  padding: 80px 24px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-panel a {
  display: block;
  padding: 14px 16px;
  color: #ccc;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.mobile-menu-panel a:hover {
  color: #fff;
  background: rgba(204, 255, 0, 0.1);
}

.mobile-menu-panel a.nav-link-highlight {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
  font-weight: 700;
}

.mobile-menu-panel a.nav-link-highlight:hover {
  color: #ff5252;
  background: rgba(255, 107, 107, 0.25);
}

.mobile-menu-panel a.nav-link-vip {
  color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.1);
  font-weight: 700;
}

.mobile-menu-panel a.nav-link-vip:hover {
  color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.18);
}

.mobile-menu-panel .menu-section-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px 4px;
  margin-top: 8px;
}

.top-spacer {
  height: 72px;
}

/* ========== 主容器 ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

/* ========== 用户概览卡片 ========== */
.profile-card {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-panel);
  transition: all 0.3s ease;
}

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

.profile-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-tier {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--border-default);
}

.tier-badge.vip {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.15), rgba(168, 217, 0, 0.15));
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.tier-badge.svip {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.2), rgba(168, 217, 0, 0.15));
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.profile-right {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex: 1;
}

/* ========== 会员状态卡片 ========== */
.vip-status-card {
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(168, 217, 0, 0.04) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vip-status-card:hover {
  border-color: var(--border-brand);
  box-shadow: 0 4px 24px rgba(204, 255, 0, 0.15);
}

.vip-status-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
}

.vip-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.vip-status-icon {
  font-size: 36px;
  line-height: 1;
}

.vip-status-plan {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.vip-status-expires {
  font-size: 13px;
  color: var(--text-dim);
}

.vip-status-right {
  flex: 1;
  min-width: 0;
}

.vip-days-remaining {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.vip-days-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  font-family: 'Impact', 'Arial Black', sans-serif;
}

.vip-days-number.warning {
  color: #f59e0b;
}

.vip-days-number.danger {
  color: #ef4444;
}

.vip-days-number.permanent {
  font-size: 20px;
  color: var(--brand-primary);
}

.vip-days-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.vip-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.vip-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-primary), #88CC00);
  transition: width 0.8s ease;
}

.vip-progress-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.vip-progress-fill.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.vip-status-actions {
  flex-shrink: 0;
}

.btn-renew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-primary), #88CC00);
  color: #000;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-renew:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(204, 255, 0, 0.4);
}

.btn-affiliate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, rgba(0,242,255,0.12), rgba(204,255,0,0.12));
  border: 1px solid rgba(0,242,255,0.25);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn-affiliate-link:hover {
  background: linear-gradient(135deg, rgba(0,242,255,0.22), rgba(204,255,0,0.22));
  border-color: rgba(0,242,255,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,242,255,0.2);
}

.vip-expire-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 13px;
  color: #f59e0b;
}

.vip-expire-warning.danger {
  background: rgba(239, 68, 68, 0.1);
  border-top-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.warning-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.warning-text {
  font-weight: 500;
}

/* 非会员 / 已过期状态 */
.vip-status-card.expired {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(220, 38, 38, 0.03) 100%);
}

.vip-status-card.visitor {
  border-color: var(--border-default);
  background: var(--bg-panel);
}

@media (max-width: 768px) {
  .vip-status-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 16px;
  }

  .vip-status-left {
    flex-direction: column;
  }

  .vip-days-remaining {
    justify-content: center;
  }

  .vip-status-right {
    width: 100%;
  }
}

.wallet-display,
.earnings-display {
  text-align: center;
}

.wallet-label,
.earnings-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.wallet-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--color-success, #22c55e);
  font-family: 'Impact', 'Arial Black', sans-serif;
  line-height: 1;
}

.earnings-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-primary);
  font-family: 'Impact', 'Arial Black', sans-serif;
  line-height: 1;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-secondary,
.btn-danger {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.1);
  color: var(--brand-primary);
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 45, 85, 0.3);
  color: var(--color-error, #ef4444);
}

.btn-danger:hover {
  background: rgba(255, 45, 85, 0.1);
  border-color: var(--color-error, #ef4444);
}

/* ========== 资产与充值区 ========== */
.wallet-station {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-panel);
}

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

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exchange-rate {
  font-size: 14px;
  color: var(--text-dim);
}

.exchange-rate strong {
  color: var(--color-success, #22c55e);
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.recharge-card {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.recharge-card:hover {
  border-color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.05);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.recharge-card.recommended {
  border-color: var(--brand-primary);
  background: rgba(255, 215, 0, 0.05);
}

.recharge-card.recommended::before {
  content: 'HOT';
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--brand-primary);
  color: #000;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 800;
}

.recharge-price {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  margin: 8px 0;
  font-family: 'Impact', sans-serif;
}

.recharge-coins {
  font-size: 14px;
  color: var(--color-success, #22c55e);
  margin-bottom: 16px;
}

.recharge-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.btn-recharge {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dim));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-recharge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-brand);
}

.recharge-card.recommended .btn-recharge {
  background: var(--gradient-brand);
}

/* 充值倍率标签 */
.recharge-bonus {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #00ff88, #00ccff);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

.recharge-multiplier {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success, #22c55e);
  margin-bottom: 8px;
  padding: 4px 12px;
  background: rgba(0, 255, 136, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* 自定义充值区域 */
.custom-recharge-section {
  margin-top: 24px;
  text-align: center;
}

.custom-recharge-toggle {
  padding: 12px 32px;
  background: transparent;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-recharge-toggle:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(0, 242, 255, 0.05);
}

.custom-recharge-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin-top: 0;
}

.custom-recharge-panel.open {
  max-height: 400px;
  opacity: 1;
  margin-top: 20px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.custom-recharge-header {
  margin-bottom: 20px;
}

.custom-recharge-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.custom-recharge-rule {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.custom-recharge-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.input-prefix {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-primary);
}

.custom-amount-input {
  width: 200px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.custom-amount-input::-webkit-inner-spin-button,
.custom-amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-recharge-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(204, 255, 0, 0.05);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.custom-recharge-preview.invalid {
  opacity: 0.5;
  border-color: var(--border-color);
  background: rgba(0, 0, 0, 0.2);
}

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

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

.preview-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-primary);
}

.preview-value.coins {
  color: var(--color-success, #22c55e);
}

.preview-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.custom-recharge-examples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-dim);
}

.example-title {
  margin-right: 4px;
}

.example-item {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.btn-custom-recharge {
  width: 100%;
  max-width: 300px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-success, #22c55e), #00ccaa);
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-custom-recharge:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.redeem-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.redeem-input-group {
  display: flex;
  gap: 12px;
}

.redeem-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s;
}

.redeem-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.btn-primary {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dim));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-brand);
}

/* ========== 灵极币明细区 ========== */
.coin-transactions-zone {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-panel);
}

.coin-rule-notice {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coin-rule-notice .rule-icon {
  font-size: 18px;
}

.coin-rule-notice .rule-text {
  font-size: 14px;
  color: var(--brand-primary);
  font-weight: 500;
}

.coin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.coin-stat-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.coin-stat-card:hover {
  border-color: var(--border-hover);
  background: rgba(204, 255, 0, 0.05);
  transform: translateY(-2px);
}

.coin-stat-card.balance {
  border-color: rgba(0, 255, 136, 0.3);
}

.coin-stat-card.balance:hover {
  border-color: var(--color-success, #22c55e);
  box-shadow: var(--shadow-md);
}

.coin-stat-card.recharge {
  border-color: rgba(168, 217, 0, 0.3);
}

.coin-stat-card.recharge:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.coin-stat-card.spend {
  border-color: rgba(255, 45, 85, 0.3);
}

.coin-stat-card.spend:hover {
  border-color: var(--color-error, #ef4444);
  box-shadow: var(--shadow-md);
}

.coin-stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

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

.coin-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.coin-stat-value {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Impact', 'Arial Black', sans-serif;
}

.coin-stat-card.balance .coin-stat-value {
  color: var(--color-success, #22c55e);
}

.coin-stat-card.recharge .coin-stat-value {
  color: var(--brand-primary);
}

.coin-stat-card.spend .coin-stat-value {
  color: var(--color-error, #ef4444);
}

.coin-transactions-list-wrapper {
  margin-top: 8px;
}

.transactions-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.coin-transactions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.coin-transactions-list::-webkit-scrollbar {
  width: 6px;
}

.coin-transactions-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.coin-transactions-list::-webkit-scrollbar-thumb {
  background: rgba(204, 255, 0, 0.3);
  border-radius: 3px;
}

.coin-transactions-list::-webkit-scrollbar-thumb:hover {
  background: rgba(204, 255, 0, 0.5);
}

.coin-tx-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.coin-tx-item:hover {
  border-color: var(--border-hover);
  background: rgba(204, 255, 0, 0.03);
}

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

.coin-tx-reason {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coin-tx-time {
  font-size: 12px;
  color: var(--text-dim);
}

.coin-tx-amount-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: 16px;
}

.coin-tx-amount {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.coin-tx-balance {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.coin-tx-amount.recharge {
  color: var(--color-success, #22c55e);
}

.coin-tx-amount.spend {
  color: var(--color-error, #ef4444);
}

.coin-tx-type-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.coin-tx-type-badge.recharge {
  background: rgba(0, 255, 136, 0.15);
  color: var(--color-success, #22c55e);
}

.coin-tx-type-badge.spend {
  background: rgba(255, 45, 85, 0.15);
  color: var(--color-error, #ef4444);
}

/* 灵极币区响应式 */
@media (max-width: 768px) {
  .coin-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .coin-stat-card {
    padding: 16px;
  }

  .coin-stat-icon {
    font-size: 28px;
  }

  .coin-stat-value {
    font-size: 24px;
  }

  .coin-rule-notice {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .coin-transactions-list {
    max-height: 300px;
  }
}

/* ========== 任务与记录 ========== */
.history-tasks {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-panel);
}

.tabs-container {
  margin-top: 24px;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text-main);
}

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

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
}

.tab-content {
  display: none;
}

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

/* 我的创作 - 网格布局 */
.creations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

/* 分类筛选栏 */
.creations-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.creations-filter .filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s;
}
.creations-filter .filter-btn:hover {
  border-color: rgba(0,242,255,0.3);
  color: var(--text-primary);
  background: rgba(0,242,255,0.05);
}
.creations-filter .filter-btn.active {
  background: rgba(0,242,255,0.1);
  border-color: rgba(0,242,255,0.3);
  color: var(--brand-primary);
  font-weight: 600;
}
.creations-filter .filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* "查看全部"按钮 */
.creations-view-all {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan, #CCFF00);
  background: rgba(204, 255, 0, 0.06);
  border: 1px solid var(--border-brand);
  text-decoration: none;
  transition: all 0.25s;
}
.btn-view-all:hover {
  background: rgba(204, 255, 0, 0.12);
  border-color: var(--border-brand);
  transform: translateY(-1px);
}

/* ========== 创作卡片（深度重写） ========== */
.creation-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
}
.creation-item:hover {
  border-color: rgba(0,242,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,242,255,0.1);
}

/* 缩略图 */
.creation-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: rgba(0,0,0,0.4);
}
.creation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.creation-thumb:hover img {
  transform: scale(1.05);
}

/* 视频/音频类型缩略图 — 不加载视频，用图标代替 */
.creation-thumb--video,
.creation-thumb--audio,
.creation-thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 失败任务样式 */
.creation-item--failed { opacity: 0.7; }
.creation-thumb--failed {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,60,60,0.08), rgba(255,100,100,0.04));
}
.creation-thumb--failed .creation-thumb-icon { color: var(--color-error); }
.creation-failed-badge {
  font-size: 11px;
  color: #ff6b6b;
  background: rgba(255,80,80,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.creation-thumb--video {
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(20,20,40,0.8));
}
.creation-thumb--audio {
  background: linear-gradient(135deg, rgba(0,242,255,0.06), rgba(204,255,0,0.04));
}
.creation-thumb-icon {
  color: var(--text-muted);
  transition: color 0.3s;
}
.creation-thumb:hover .creation-thumb-icon {
  color: var(--text-secondary);
}

/* 视频播放角标 */
.creation-badge-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  pointer-events: none;
}
.creation-badge-play svg {
  width: 12px;
  height: 12px;
}

/* 悬浮遮罩 */
.creation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.creation-thumb:hover .creation-overlay {
  opacity: 1;
}
.overlay-icon {
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.overlay-icon svg {
  width: 28px;
  height: 28px;
}

/* 信息区 */
.creation-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.creation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.creation-type-tag {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.creation-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 操作按钮 */
.creation-actions {
  display: flex;
  gap: 6px;
}
.btn-creation-action {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-creation-action svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.btn-creation-action:hover svg {
  opacity: 1;
}
.btn-creation-action.preview:hover {
  background: rgba(0,242,255,0.1);
  border-color: rgba(0,242,255,0.3);
  color: var(--brand-primary);
}
.btn-creation-action.download:hover {
  background: rgba(204,255,0,0.1);
  border-color: var(--border-brand);
  color: #CCFF00;
}

/* ========== 创作预览弹窗 ========== */
.creation-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.creation-preview-box {
  background: rgba(16,16,28,0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.preview-type-label {
  font-size: 15px;
  color: var(--brand-primary);
  font-weight: 600;
}
.preview-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-preview-action {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-preview-action:hover {
  border-color: var(--border-brand);
  color: #CCFF00;
  background: rgba(204,255,0,0.08);
}
.btn-preview-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.btn-preview-close:hover {
  background: rgba(255,71,87,0.15);
  border-color: rgba(255,71,87,0.4);
  color: #ff4757;
}
.preview-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  min-height: 200px;
}
.preview-body img,
.preview-body video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
}
.preview-audio-wrap {
  text-align: center;
  padding: 40px 20px;
}
.preview-audio-icon {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.preview-audio-icon svg {
  width: 64px;
  height: 64px;
}
.preview-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.preview-date {
  font-size: 12px;
  color: var(--text-muted);
}

.creation-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 消费记录 - 列表布局 */
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.transaction-item:hover {
  border-color: var(--border-hover);
  background: rgba(204, 255, 0, 0.05);
}

.transaction-info {
  flex: 1;
}

.transaction-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.transaction-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-success, #22c55e);
}

.transaction-amount.negative {
  color: var(--color-error, #ef4444);
}

/* 任务中心 */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.task-item:hover {
  border-color: var(--border-hover);
  background: rgba(204, 255, 0, 0.05);
}

.task-info {
  flex: 1;
}

.task-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.task-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.task-reward {
  font-size: 14px;
  color: var(--brand-primary);
  font-weight: 600;
}

.task-action {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dim));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.task-action:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.task-action.completed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  cursor: not-allowed;
}

/* 加载态与空状态 */
.member-loading-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.member-loading-state--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.member-loading-card,
.member-loading-line {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
}

.member-loading-card::after,
.member-loading-line::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
  animation: memberSkeletonShimmer 1.25s ease-in-out infinite;
}

.member-loading-card {
  min-height: 248px;
}

.member-loading-line {
  height: 78px;
}

@keyframes memberSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-hint {
  font-size: 14px;
  color: var(--text-dim);
}

/* ========== 弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: linear-gradient(145deg, #141414, #0a0a0a);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-primary);
  text-align: center;
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.25s;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  z-index: 1;
}

.close-btn:hover {
  color: var(--brand-primary);
  background: rgba(204, 255, 0, 0.1);
  transform: rotate(90deg);
}

/* ========== 支付模态框 ========== */
.payment-modal-box {
  max-width: 600px;
  width: 95%;
}

.payment-title {
  color: var(--brand-primary);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px 0;
}

.payment-qr-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

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

.payment-qr-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.payment-qr-image-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.payment-tip {
  background: rgba(204, 255, 0, 0.05);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.payment-tip p {
  margin: 0;
}

.payment-actions {
  display: flex;
  gap: 12px;
}

.payment-actions .btn-cancel {
  flex: 1;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-actions .btn-cancel:hover {
  border-color: var(--border-hover);
  background: rgba(204, 255, 0, 0.1);
}

.btn-payment-confirm {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dim));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-payment-confirm:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-brand);
}

.btn-payment-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* 移动端：二维码上下排列 */
@media (max-width: 768px) {
  .payment-modal-box {
    max-width: 100%;
    width: 95%;
    padding: 24px 20px;
    max-height: 95vh;
  }

  .payment-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .payment-qr-container {
    flex-direction: column;
    gap: 20px;
  }

  .payment-qr-item {
    width: 100%;
  }

  .payment-qr-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .payment-tip {
    font-size: 15px;
    padding: 14px;
  }

  .payment-actions {
    flex-direction: column;
  }

  .payment-actions .btn-cancel,
  .btn-payment-confirm {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .payment-modal-box {
    padding: 20px 16px;
  }

  .payment-title {
    font-size: 18px;
  }

  .payment-qr-image-wrapper {
    max-width: 240px;
  }
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 300;
  max-width: 400px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
  .container {
    padding: 20px 16px 40px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .profile-left {
    flex-direction: column;
  }

  .profile-right {
    flex-direction: column;
    gap: 24px;
  }

  .profile-actions {
    flex-direction: row;
    justify-content: center;
  }

  .recharge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .creations-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  /* 自定义充值移动端样式 */
  .custom-recharge-panel.open {
    padding: 16px;
  }

  .custom-amount-input {
    width: 150px;
    font-size: 20px;
    padding: 12px 14px;
  }

  .input-prefix {
    font-size: 20px;
  }

  .custom-recharge-preview {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .preview-divider {
    width: 80%;
    height: 1px;
  }

  .custom-recharge-examples {
    font-size: 15px;
    gap: 6px;
  }

  .example-item {
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {
  body::before {
    background:
      radial-gradient(circle at 20% 30%, rgba(204, 255, 0, 0.1), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 255, 136, 0.08), transparent 50%),
      linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
      url('https://cdn.wutuobangai.com/assets/bg/bg-member.m.webp') no-repeat center center;
    background-size: cover;
  }

  .navbar-inner {
    padding: 0 16px;
  }

  .nav-logo {
    font-size: 15px;
  }

  .nav-logo img {
    height: 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-actions {
    display: flex;
  }

  .navbar {
    height: 60px;
  }

  .top-spacer {
    height: 60px;
  }

  .login-box {
    width: 90%;
    max-width: 90%;
    padding: 32px 24px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-input,
  .btn-login {
    min-height: 44px;
    font-size: 16px;
  }

  .profile-card {
    padding: 24px;
  }

  .wallet-amount {
    font-size: 36px;
  }

  .earnings-amount {
    font-size: 24px;
  }

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

  .redeem-input-group {
    flex-direction: column;
  }

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

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 16px;
    min-height: 44px;
  }

  /* 会员卡片内推广链接 */
  .vip-status-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }
  .btn-affiliate-link {
    text-align: center;
    font-size: 15px;
    padding: 10px 16px;
  }

  /* 创作卡片手机适配 */
  .creation-info {
    padding: 8px 10px 10px;
  }
  .creation-type-tag {
    font-size: 15px;
  }
  .btn-creation-action {
    padding: 8px 0;
    font-size: 15px;
    min-height: 36px;
  }

  /* 预览弹窗手机适配 */
  .creation-preview-modal {
    padding: 10px;
  }
  .creation-preview-box {
    max-width: 100%;
    border-radius: var(--radius-lg);
    max-height: 95vh;
  }
  .preview-header {
    padding: 12px 16px;
  }
  .preview-body {
    padding: 16px;
  }
  .preview-body img,
  .preview-body video {
    max-height: 60vh;
  }

  /* 筛选栏手机适配 */
  .creations-filter .filter-btn {
    padding: 6px 12px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px 12px 30px;
  }

  .profile-card,
  .wallet-station,
  .history-tasks {
    padding: 20px;
  }

  .wallet-amount {
    font-size: 32px;
  }

  .creations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .creation-thumb {
    aspect-ratio: 1;
  }
  .creation-preview-box {
    max-width: 100%;
    border-radius: var(--radius-md);
  }
  .creation-info {
    padding: 6px 8px 8px;
    gap: 6px;
  }
  .creation-meta {
    gap: 4px;
  }
  .creation-type-tag {
    font-size: 15px;
  }
  .creation-date {
    font-size: 15px;
  }
  .btn-creation-action {
    padding: 6px 0;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }
  .btn-creation-action span {
    display: none;
  }
  .btn-creation-action svg {
    width: 16px;
    height: 16px;
  }
  .preview-body img,
  .preview-body video {
    max-height: 55vh;
    border-radius: var(--radius-sm);
  }
  .preview-header {
    padding: 10px 14px;
  }
  .preview-type-label {
    font-size: 15px;
  }
  .btn-preview-action {
    padding: 5px 12px;
    font-size: 15px;
  }
  .creations-filter {
    gap: 6px;
    margin-bottom: 12px;
  }
  .creations-filter .filter-btn {
    padding: 5px 10px;
    font-size: 15px;
  }

  /* 自定义充值小屏幕样式 */
  .recharge-grid {
    grid-template-columns: 1fr;
  }

  .recharge-card {
    padding: 16px;
  }

  .recharge-price {
    font-size: 28px;
  }

  .custom-recharge-toggle {
    width: 100%;
    padding: 14px;
  }

  .custom-amount-input {
    width: 130px;
    font-size: 18px;
    padding: 10px 12px;
  }

  .custom-recharge-header h3 {
    font-size: 16px;
  }

  .custom-recharge-rule {
    font-size: 15px;
  }

  .preview-value {
    font-size: 18px;
  }

  .btn-custom-recharge {
    font-size: 15px;
    padding: 12px 24px;
  }
}

/* ========== 超小屏 (iPhone SE / 375px以下) ========== */
@media (max-width: 375px) {
  .creations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .creation-item {
    border-radius: var(--radius-md);
  }
  .creation-info {
    padding: 5px 6px 6px;
    gap: 4px;
  }
  .creation-type-tag {
    font-size: 15px;
  }
  .creation-actions {
    gap: 4px;
  }
  .btn-creation-action {
    padding: 5px 0;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }
  .history-tasks {
    padding: 16px 12px;
    border-radius: var(--radius-lg);
  }
  .tabs {
    gap: 4px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 15px;
  }
  .creations-filter .filter-btn {
    padding: 4px 8px;
    font-size: 15px;
  }
  .vip-status-inner {
    padding: 14px;
    gap: 12px;
  }
  .vip-status-plan {
    font-size: 15px;
  }
  .btn-affiliate-link {
    font-size: 15px;
    padding: 8px 12px;
  }
  .creation-preview-modal {
    padding: 6px;
  }
  .creation-preview-box {
    border-radius: var(--radius-md);
  }
  .preview-body {
    padding: 12px;
  }
  .preview-body img,
  .preview-body video {
    max-height: 50vh;
  }
}

/* ========== 账号注销按钮 ========== */
.btn-danger-outline {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 71, 87, 0.5);
  color: #ff4757;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-danger-outline:hover {
  background: rgba(255, 71, 87, 0.1);
  border-color: #ff4757;
}

/* 注销确认模态框 */
.delete-account-modal {
  max-width: 440px;
}

/* ========== 编辑资料弹窗 ========== */
.edit-profile-modal {
  max-width: 480px;
  width: 92%;
}
.edit-profile-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}
.edit-field {
  margin-bottom: 18px;
}
.edit-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.edit-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.edit-input:focus {
  border-color: var(--border-brand);
}
.edit-input::placeholder {
  color: var(--text-muted);
}
.edit-hint {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.member-captcha-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-captcha-input {
  flex: 1;
  min-width: 0;
}

.member-captcha-image-box {
  width: 116px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  cursor: pointer;
}

.member-captcha-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-captcha-refresh {
  height: 42px;
  padding: 0 12px;
  flex-shrink: 0;
}

.member-code-wrap {
  display: flex;
  gap: 8px;
}

.member-code-btn {
  min-width: 110px;
  flex-shrink: 0;
}

/* 头像网格 */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.avatar-option {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.avatar-option:hover {
  border-color: var(--border-brand);
  transform: scale(1.08);
}
.avatar-option.selected {
  border-color: #CCFF00;
  box-shadow: 0 0 12px rgba(204,255,0,0.3);
}
.avatar-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #CCFF00;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s;
}
.avatar-option.selected .avatar-check {
  opacity: 1;
}

/* 预览区 */
.edit-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin: 16px 0;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
}
.edit-preview-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #666, #444);
  flex-shrink: 0;
  overflow: hidden;
}
.edit-preview-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* 保存按钮 */
.edit-save-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #CCFF00, #a8d900);
  color: #000;
  transition: all 0.2s;
}
.edit-save-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.edit-save-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* 手机端头像网格 4 列 */
@media (max-width: 480px) {
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .edit-profile-modal {
    max-width: 95%;
    padding: 20px 16px;
  }
  .member-captcha-wrap {
    flex-wrap: wrap;
  }
  .member-captcha-image-box {
    width: 100px;
    height: 40px;
  }
  .member-captcha-refresh,
  .member-code-btn {
    min-width: 92px;
    padding: 0 10px;
    font-size: 15px;
  }
}

/* ========== 消息通知侧边栏 ========== */
.notification-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(15, 15, 25, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-default);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.notification-sidebar.open {
  right: 0;
}

.notification-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.notification-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-text:hover {
  opacity: 0.8;
}

.btn-close-sidebar {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-close-sidebar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-default);
}

.notification-item.unread {
  background: rgba(204, 255, 0, 0.05);
  border-color: var(--border-brand);
}

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

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

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

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.notification-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.loading-state {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

/* ========== 通知铃铛徽章 ========== */
.notification-bell {
  position: relative;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff4757;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}