/* OG-GAME 前端样式 v2.0 — 磨砂玻璃高端风格 */

:root {
  /* 深色基底 */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2234;
  --bg-hover: #243049;
  /* 文字 */
  --text-primary: #f0f2f5;
  --text-secondary: #94a3b8;
  --text-muted: #4b5563;
  /* 主色调 — 高端靛蓝 */
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99,102,241,0.25);
  --accent-subtle: rgba(99,102,241,0.08);
  /* 状态色 */
  --green: #22c55e;
  --green-glow: rgba(34,197,94,0.15);
  --red: #ef4444;
  --red-glow: rgba(239,68,68,0.15);
  --orange: #f59e0b;
  --orange-glow: rgba(245,158,11,0.15);
  /* 磨砂玻璃 */
  --glass-bg: rgba(17,24,39,0.85);
  --glass-border: rgba(255,255,255,0.06);
  --glass-blur: 20px;
  /* 圆角/阴影 */
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);
  /* 过渡 */
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
  --border: var(--glass-border);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

/* ==================== 顶部导航 ==================== */
.header {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  gap: 16px;
  position: relative;
  z-index: 100;
}

/* 导航底部装饰线 */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 3px;
  white-space: nowrap;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo.has-img {
  font-size: 0;
}

.logo-img {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-accent {
  color: var(--accent);
}

.header-center {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.search-box {
  width: 100%;
  height: 38px;
  padding: 0 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 19px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.search-box:focus {
  border-color: var(--accent);
  background: rgba(99,102,241,0.06);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box::placeholder {
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}



/* 用户状态（旧class，保留兼容） */
.user-status {
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.user-status.active {
  color: var(--green);
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #a78bfa);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

.btn-small {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.btn-large {
  height: 46px;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-large:hover {
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* ==================== 公告 ==================== */
.notice {
  padding: 8px 20px;
  background: var(--accent-subtle);
  border-bottom: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==================== 主体布局 ==================== */
.main {
  display: flex;
  height: calc(100vh - 58px);
}

/* ==================== 左侧栏 ==================== */
.sidebar {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  min-height: 0;
}

.sidebar-tabs {
  display: flex;
  padding: 8px 12px;
  gap: 4px;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  align-items: center;
}

.sidebar-tabs::-webkit-scrollbar {
  height: 3px;
}
.sidebar-tabs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.tab {
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 6px 6px 0 0;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-subtle);
}

.tab-divider {
  color: var(--text-muted);
  opacity: 0.3;
  margin: 0 4px;
  flex-shrink: 0;
  user-select: none;
}

.tag-tab {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
}

.tag-filter {
  padding: 8px 12px;
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.tag-filter::-webkit-scrollbar {
  height: 3px;
}
.tag-filter::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.tag-list {
  display: inline-flex;
  gap: 6px;
}

.tag-item {
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  flex-shrink: 0;
}

.tag-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.tag-item.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* ==================== 游戏列表 ==================== */
.game-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  padding-bottom: 20px;
}

.game-list::-webkit-scrollbar {
  width: 5px;
}

.game-list::-webkit-scrollbar-track {
  background: transparent;
}

.game-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.game-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

.game-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  align-items: center;
}

.game-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--glass-border);
}

.game-card.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-glow);
}

.game-card-cover {
  width: 140px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.game-card-info {
  flex: 1;
  min-width: 0;
}

.game-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.game-card-name-en {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.game-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
}

.game-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.game-card-tag {
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  color: var(--text-muted);
}


/* ==================== 无限滚动加载提示 ==================== */
.load-more-tip {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
}
.content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-primary);
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  padding: 40px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ==================== 欢迎页面 ==================== */
.welcome-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-logo.has-img {
  font-size: 0;
  letter-spacing: 0;
}

.welcome-logo .logo-img {
  height: 56px;
  max-width: 240px;
}

.welcome-logo-accent {
  color: var(--accent);
}

.welcome-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 40px;
}

.welcome-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.welcome-feature-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

.welcome-feature-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.welcome-feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-feature-text strong {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.welcome-feature-text span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.welcome-hint {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ==================== 游戏详情 ==================== */
.game-detail {
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.media-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.media-main img,
.media-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.media-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.media-main:hover .media-overlay.visible {
  background: rgba(0,0,0,0.4);
}

.play-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.thumb {
  width: 100px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumb:hover,
.thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.thumb-video {
  position: relative;
}

.thumb-video::after {
  content: '\25B6';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
}

/* ==================== 详情信息 ==================== */
.detail-info {
  margin-top: 20px;
}

.detail-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.game-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.game-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.game-tags .tag-item {
  font-size: 13px;
  padding: 4px 12px;
}

.game-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  white-space: pre-wrap;
}

/* ==================== 下载区 ==================== */
.download-area {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.no-sub-tip {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
}

.no-sub-tip p {
  margin-bottom: 12px;
  font-size: 15px;
}

.no-sub-tip .btn-primary {
  display: inline-flex;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 三网盘并排卡片 */
.pan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.pan-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px;
  transition: var(--transition);
}

.pan-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}

.pan-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pan-card-icon {
  font-size: 18px;
}

.pan-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.pan-card-link {
  font-size: 12px;
  padding: 4px 10px;
  text-decoration: none;
}

.pan-card-qr {
  text-align: center;
  margin-bottom: 10px;
}

.pan-card-qr img {
  height: 100px;
  width: auto;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
}

.pan-card-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pan-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pan-card-row label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 50px;
  flex-shrink: 0;
}

.pan-card-field {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.pan-card-field input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.pan-card-field input:focus {
  border-color: var(--accent);
}

.report-area {
  margin-top: 16px;
  text-align: center;
}

/* ==================== 弹窗系统 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none; /* JS控制 */
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show .modal-backdrop {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 内容区滚动条 */
.modal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.modal-small {
  width: 400px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.modal-body {
  padding: 20px;
}

/* ==================== 订阅弹窗 ==================== */
/* 价格+说明一行 */
.sub-price-row {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.sub-price-value {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-price-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.sub-price-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 10px;
}

/* 支付码折叠按钮 */
.sub-pay-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0;
  user-select: none;
}

.sub-pay-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
}

.pay-toggle-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.pay-toggle-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.pay-toggle-arrow.open {
  transform: rotate(90deg);
}

/* 支付码折叠区 */
.sub-pay-section {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}

.sub-pay-section.open {
  max-height: 300px;
}

.sub-pay-section .subscribe-qr-section {
  padding-top: 14px;
}

.pay-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 14px 0;
}

/* 已购用户提示 */
.sub-direct-hint {
  text-align: center;
  margin: 12px 0 0;
}

.sub-direct-hint p {
  font-size: 12px;
  color: var(--text-muted);
}

.sub-direct-hint.hidden {
  display: none;
}

/* 收款码区域 */
.subscribe-qr-section {
  text-align: center;
}

.qr-codes {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: #fff;
  padding: 6px;
  border: 1px solid var(--glass-border);
}

.qr-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* 收款码占位提示 */
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 120px;
  border: 2px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.qr-placeholder-icon {
  font-size: 28px;
  margin-bottom: 6px;
  opacity: 0.4;
}

.qr-placeholder p {
  font-size: 13px;
}

/* 表单区域 */
.sub-form {
  margin-top: 14px;
}

.sub-form .form-group {
  margin-bottom: 10px;
}

.sub-form .form-group input {
  height: 38px;
  padding: 0 14px;
}

.sub-form .btn-block {
  margin-top: 6px;
  height: 40px;
  font-size: 14px;
  border-radius: var(--radius);
}

/* 机器码一行 */
.sub-device-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.sub-device-label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sub-device-row code {
  flex: 1;
  font-size: 12px;
  font-family: 'Consolas', 'Courier New', monospace;
  color: var(--text-secondary);
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 订阅成功弹窗 */
.sub-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-glow);
  color: var(--green);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(34,197,94,0.2);
  box-shadow: 0 0 20px var(--green-glow);
}

/* ==================== 用户状态文字 ==================== */
.user-status-badge {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.user-status-badge.active {
  color: var(--green);
}

.user-status-badge.pending {
  color: var(--orange);
}

.user-status-badge.expired {
  color: var(--red);
}

.user-status-badge.banned {
  color: var(--red);
}

.user-status-badge.suspended {
  color: var(--orange);
}

/* 审核状态（兼容旧class） */
.user-status.pending {
  color: var(--orange);
}

.user-status.expired {
  color: var(--red);
  cursor: pointer;
}

.user-status.none {
  color: var(--text-muted);
}

/* ==================== 表单 ==================== */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-required {
  color: var(--red);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(0,0,0,0.35);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-tip {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 2000;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: var(--green);
  box-shadow: var(--shadow-md), 0 0 12px var(--green-glow);
}

.toast.error {
  border-color: var(--red);
  box-shadow: var(--shadow-md), 0 0 12px var(--red-glow);
}

/* ==================== 加载状态 ==================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-muted);
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 联系客服弹窗 ==================== */
.contact-content {
  font-size: 14px;
  line-height: 2;
  color: var(--text-primary);
  white-space: pre-wrap;
}

/* ==================== 用户状态样式 ==================== */
.user-status.suspended {
  color: var(--orange);
}

.user-status.banned {
  color: var(--red);
}

/* 禁用/暂停 横幅提示 */
.account-banner {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
}

.account-banner.banned {
  background: rgba(239,68,68,0.08);
  color: var(--red);
  border-color: rgba(239,68,68,0.2);
}

.account-banner.suspended {
  background: rgba(245,158,11,0.08);
  color: var(--orange);
  border-color: rgba(245,158,11,0.2);
}

.account-banner button {
  margin-left: 12px;
}

/* ==================== 设备信息 ==================== */
.device-info-box {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.device-id-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.device-id-display code {
  flex: 1;
  font-size: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  color: var(--accent);
  letter-spacing: 1px;
  user-select: all;
}

/* ==================== 版本更新横幅 ==================== */
.update-banner {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-subtle);
  color: var(--accent);
  border-bottom: 1px solid rgba(99,102,241,0.2);
  font-size: 14px;
}

.update-banner button {
  margin-left: 12px;
}

/* ==================== 设备迁移入口 ==================== */
.migrate-entry {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.migrate-entry p {
  font-size: 13px;
  color: var(--text-muted);
}

.migrate-entry a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.migrate-entry a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ==================== 动效辅助 ==================== */
/* 游戏卡片入场动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: fadeInUp 0.3s ease forwards;
}

/* 游戏卡片延迟入场 */
.game-card:nth-child(1) { animation-delay: 0ms; }
.game-card:nth-child(2) { animation-delay: 30ms; }
.game-card:nth-child(3) { animation-delay: 60ms; }
.game-card:nth-child(4) { animation-delay: 90ms; }
.game-card:nth-child(5) { animation-delay: 120ms; }
.game-card:nth-child(6) { animation-delay: 150ms; }
.game-card:nth-child(7) { animation-delay: 180ms; }
.game-card:nth-child(8) { animation-delay: 210ms; }
.game-card:nth-child(9) { animation-delay: 240ms; }
.game-card:nth-child(10) { animation-delay: 270ms; }

/* 详情区入场 */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-detail {
  animation: fadeSlideIn 0.4s ease;
}

/* ==================== EXE封装友好 ==================== */
/* 禁止文本选择（可选，EXE模式下更有app感） */
.header,
.sidebar-tabs,
.tag-filter,
.migrate-entry {
  user-select: none;
}

/* 窗口拖拽区域预留 */
.header {
  -webkit-app-region: drag;
}

.header button,
.header input,
.header .user-status-badge {
  -webkit-app-region: no-drag;
}

/* 滚动条全局统一 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

/* ==================== 设备调试栏（排查设备绑定） ==================== */
.debug-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  font-size: 12px;
  font-family: 'Consolas', 'Courier New', monospace;
  background: rgba(0,0,0,0.85);
  border-top: 1px solid rgba(99,102,241,0.3);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.debug-bar code {
  color: var(--accent);
  background: rgba(99,102,241,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
