/* ==================== 赛博霓虹暗色主题 — CSS 变量 ==================== */
:root {
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --secondary: #06B6D4;
  --accent: linear-gradient(135deg, #7C3AED, #06B6D4);
  --bg: linear-gradient(135deg, #0f0a1e 0%, #1a0a3e 25%, #2d1b69 50%, #1a0a3e 75%, #0f0a1e 100%);
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --card-hover: rgba(255,255,255,0.10);
  --glass-bg: rgba(15,10,30,0.82);
  --glass-border: rgba(255,255,255,0.08);
  --text: #ffffff;
  --text2: rgba(255,255,255,0.7);
  --text3: rgba(255,255,255,0.4);
  --stat-grad: linear-gradient(135deg, #7C3AED, #06B6D4);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --red: #e53e3e;
  --green: #48bb78;
  --body-bg: #0f0a1e;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: scroll;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  top: -200px; left: -100px;
}

body::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  bottom: -200px; right: -100px;
}

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

/* ==================== 导航栏 ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 9999;
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-logo:hover { opacity: 0.9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* 搜索框（带下拉菜单） */
.nav-search {
  display: flex;
  align-items: center;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  overflow: hidden;
  transition: all 0.2s;
  flex-shrink: 1;
  min-width: 260px;
}

.nav-search:focus-within {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}

.nav-search-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.08);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 12px;
  padding: 0 10px;
  height: 100%;
  cursor: pointer;
  outline: none;
  min-width: 56px;
  flex-shrink: 0;
}
.nav-search-select option { background: #1e1b2e; color: #fff; }

.nav-search-input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  height: 36px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  line-height: 36px;
}

.nav-search-input::placeholder {
  color: var(--text3);
}

.nav-search-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s;
}

.nav-search-btn:hover {
  color: var(--primary);
}

.nav-search-btn svg {
  width: 16px;
  height: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-login-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-login-btn:hover { opacity: 0.9; }

/* 主题切换按钮 */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.theme-toggle:hover { background: rgba(255,255,255,0.08); color: var(--text); }

/* 用户下拉菜单 */
.user-dropdown { position: relative; }

.user-avatar {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.user-avatar:hover { background: rgba(255,255,255,0.08); }

.user-avatar img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.user-avatar span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  display: none;
  z-index: 10001;
  box-shadow: var(--shadow);
}

.dropdown-menu.open { display: block; }

.dropdown-item {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* 资料卡切换子菜单 */
.dropdown-item.has-sub { position: relative; display: flex; align-items: center; justify-content: space-between; }
.sub-arrow { font-size: 10px; opacity: 0.4; margin-left: auto; }
.sub-menu {
  display: none;
  position: absolute;
  left: calc(100% + 6px);
  top: -6px;
  min-width: 210px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px;
  z-index: 10002;
}
.dropdown-item.has-sub:hover .sub-menu { display: block; }
.sub-menu-loading { padding: 14px; text-align: center; font-size: 13px; color: var(--text3); }
.sub-menu-empty { padding: 14px; text-align: center; font-size: 13px; color: var(--text3); }
.sub-menu-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sub-menu-item:hover { background: rgba(255,255,255,0.08); }
.sub-menu-item.active { background: rgba(124,58,237,0.15); }
.sub-menu-item-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sub-menu-item-info { flex: 1; min-width: 0; }
.sub-menu-item-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-menu-item-meta { font-size: 11px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-menu-item-check { color: var(--primary); font-size: 14px; font-weight: 700; margin-left: auto; }

/* 通知 */
.nav-icon {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-icon:hover { background: rgba(255,255,255,0.08); }

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

/* ==================== TAB 栏 ==================== */
.tab-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: 44px;
  background: rgba(15,10,30,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 9998;
}

.tab-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: visible;
  scrollbar-width: none;
}

.tab-inner::-webkit-scrollbar { display: none; }

.tab-item {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  border: none;
  background: none;
  flex-shrink: 0;
}

.tab-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.tab-item.active {
  color: #fff;
  background: linear-gradient(135deg,#7C3AED,#06B6D4);
}

.tab-dropdown {
  position: relative;
  flex-shrink: 0;
}

.tab-dd-toggle {
  padding: 6px 22px 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  border: none;
  background: none;
  position: relative;
}

.tab-dd-toggle::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  margin-top: -2px;
  border: 4px solid transparent;
  border-top-color: currentColor;
}

.tab-dd-toggle:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.tab-dd-menu {
  position: absolute;
  top: 36px; left: 0;
  min-width: 160px;
  background: rgba(20,15,35,.96);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 6px;
  display: none;
  z-index: 9999;
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
}

.tab-dropdown.open .tab-dd-menu { display: block; }

.tab-dd-item {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
  transition: all .1s;
}

.tab-dd-item:hover {
  color: #fff;
  background: rgba(124,58,237,.3);
}

.tab-dd-sep {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 4px 8px;
}

.tab-dd-loading {
  padding: 12px;
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}

/* 有 TAB 栏的页面容器间距 */
.page-container.tab-active {
  padding-top: 162px;
}

/* 页面占位符 */
.page-placeholder {
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}
.page-placeholder .placeholder-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.page-placeholder p {
  font-size: 14px;
  opacity: 0.5;
}

/* ==================== 反馈页面 ==================== */
.fb-panel { min-height: 200px; }

.fb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--card-bg);
}

.fb-table, .fb-list-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.fb-mine-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.fb-table th, .fb-list-table th, .fb-mine-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text3);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}

.fb-table td, .fb-list-table td, .fb-mine-table td {
  padding: 11px 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.fb-table tr:last-child td, .fb-list-table tr:last-child td, .fb-mine-table tr:last-child td { border-bottom: none; }

.fb-table tr:hover td, .fb-list-table tr:hover td, .fb-mine-table tr:hover td { background: rgba(255,255,255,.03); }

.fb-mine-table tbody tr, .mp-table tbody tr {
  animation: rowFadeIn .3s ease both;
}
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fb-title-cell {
  font-weight: 500;
  color: #fff;
}

.fb-loading {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: var(--text3);
}

.fb-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
  color: var(--text3);
}

/* 反馈弹窗 */
.fb-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn .2s ease;
}

.fb-modal-overlay.open { display: flex; }

.fb-modal {
  background: rgba(15,10,30,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  width: 480px;
  max-width: 90vw;
  padding: 0;
  box-shadow: 0 32px 64px rgba(0,0,0,.5);
  animation: scaleIn .25s ease;
}
.fb-modal-wide { width: 700px; }

.fb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid var(--glass-border);
}

.fb-modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.fb-modal-close:hover { background: rgba(255,255,255,.12); }

.fb-modal-body {
  padding: 20px 24px 24px;
}

.fb-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.fb-input:focus { border-color: var(--primary); }
.fb-input::placeholder { color: rgba(255,255,255,.2); }

.fb-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 14px;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.fb-textarea:focus { border-color: var(--primary); }
.fb-textarea::placeholder { color: rgba(255,255,255,.2); }

.fb-form-error {
  color: #e53e3e;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  text-align: center;
}

.fb-submit {
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}

.fb-submit:hover { opacity: .9; }
.fb-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ==================== 页面容器 ==================== */
.page-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px 72px;
  position: relative;
  z-index: 1;
}

/* ==================== 轮播海报 ==================== */
.banner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 40px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(124,58,237,0.12);
}

.banner-inner {
  width: 100%;
  aspect-ratio: 5 / 2;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.banner-inner:hover { border-color: var(--primary); }

/* 轮播轨道 */
.banner-slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
.banner-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 无图时的占位 */
.banner-slide-fallback {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  opacity: 0.3;
  pointer-events: none;
}
.banner-slide-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 32px 48px;
  background: linear-gradient(transparent, rgba(15,10,30,.85));
  color: #fff;
}
.banner-slide-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.banner-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.3;
  color: var(--text3);
}

.banner-preview svg { width: 48px; height: 48px; }

.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* 板块标签 */
.banner-type-badge {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.banner-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all 0.3s;
}
.banner-dot.active {
  width: 30px;
  border-radius: 5px;
  background: var(--primary);
}

/* ==================== 8 个模块 ==================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(124,58,237,0.15);
}

.module-card .icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  color: var(--primary);
}

.module-card .icon svg {
  width: 48px; height: 48px;
}

.module-card .title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.module-card .desc {
  font-size: 13px;
  color: var(--text3);
}

/* 引导高亮脉冲 */
.guide-pulse {
  animation: guidePulse 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes guidePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(124,58,237,0.1); }
}

.guide-tip {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  animation: tipBounce 1.5s ease-in-out infinite;
}

@keyframes tipBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ==================== 数据统计 ==================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color 0.3s;
}

.stat-card:hover { border-color: var(--primary); }

.stat-card .num {
  font-size: 36px;
  font-weight: 800;
  background: var(--stat-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-card .lbl {
  font-size: 13px;
  color: var(--text3);
}

/* ==================== 新游页面 ==================== */
.games-panel { min-height: 200px; }

.games-loading { text-align: center; padding: 40px; font-size: 14px; color: var(--text3); }
.games-empty { text-align: center; padding: 60px 20px; font-size: 14px; color: var(--text3); }

/* 市场商品卡片 */
.market-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.market-item:hover { border-color: var(--primary); }

.market-item-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,10,30,.8);
  flex-shrink: 0;
}

.market-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.market-item-img-fallback {
  font-size: 32px;
  opacity: .4;
}

.market-item-body {
  padding: 16px 16px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-item-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.market-item-left {
  flex: 1;
  min-width: 0;
}

.market-item-right {
  text-align: right;
  flex-shrink: 0;
}

.market-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-item-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: rgba(124,58,237,.15);
  padding: 1px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.market-item-meta {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.market-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin: 2px 0;
}

/* 卡片网格 — 匹配资料卡布局 */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.game-card:hover { border-color: var(--primary); }

/* 置顶按钮（超级管理员可见） */
.game-card-pin {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  z-index: 10;
  opacity: 0;
}
.game-card:hover .game-card-pin,
.market-item:hover .game-card-pin { opacity: 1; }
.game-card-pin:hover { background: rgba(124,58,237,0.6); color: #fff; }
.game-card-pin.pinned { opacity: 1; background: rgba(124,58,237,0.5); color: #7C3AED; }
.game-card-pin.pinned:hover { background: rgba(229,62,62,0.5); color: #e53e3e; }

.game-card-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,10,30,.8);
  flex-shrink: 0;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.game-card-cover-fallback { font-size: 40px; opacity: .4; }

.game-card-body {
  padding: 16px 16px 14px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-meta {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: flex-end;
}

.game-card-btn {
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: var(--text3);
  font-size: 11px;
  cursor: pointer;
  transition: all .15s;
}

/* 关注和修改未点状态完全一致 */
.game-card-btn-follow,
.game-card-btn-edit {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text3);
}

.game-card-btn-follow:hover,
.game-card-btn-edit:hover {
  border-color: rgba(255,255,255,.25);
  color: #fff;
}

.game-card-btn-follow.followed {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.5);
  color: #a78bfa;
}

/* 关注数 */
.game-card-follow-count {
  display: block;
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

.game-card-btn:disabled { cursor: default; }

.game-card-cover-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

/* 发布新游表单 */
.games-form {
  max-width: 820px;
}

.games-form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.games-form-row .games-input { flex: 1; }

.games-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.games-input:focus { border-color: var(--primary); }
.games-input::placeholder { color: rgba(255,255,255,.2); }

/* 表单 label（统一用在各页面） */
.form-label {
  display: block;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 4px;
}

.games-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.games-select option {
  background: rgba(20,15,35,.96);
  color: #fff;
}

/* 发布表单所属游戏显示 */
.games-publish-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
}
.games-publish-badge span {
  color: #fff;
  font-weight: 600;
}

.games-input-full { margin-bottom: 14px; }

.games-title-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  margin-bottom: 14px;
}
.games-title-input:focus { border-color: var(--primary); }
.games-title-input::placeholder { color: rgba(255,255,255,.2); font-weight: 400; font-size: 14px; }

/* 内容区 + 右侧固定按钮 */
.games-content-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.games-textarea-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.games-textarea {
  width: 100%;
  min-height: 260px;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  line-height: 1.7;
}
.games-textarea:focus { border-color: var(--primary); }
.games-textarea::placeholder { color: rgba(255,255,255,.2); }

/* 图片预览（textarea 下方） */
.games-preview-inline {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}

.preview-item {
  position: relative;
  width: 120px;
  height: 80px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  background: rgba(0,0,0,.2);
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-badge {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.7);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
}

.preview-badge-cover {
  top: 3px;
  left: 3px;
  bottom: auto;
  right: auto;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.preview-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.preview-item:hover .preview-del { opacity: 1; }
.preview-del:hover { background: rgba(229,62,62,.8); }

.games-sticky-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 52px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  z-index: 10;
}

.games-bar-btn {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(20,15,35,.92);
  backdrop-filter: blur(10px);
  color: var(--text3);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all .15s;
  line-height: 1.2;
}
.games-bar-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: var(--primary);
}
.games-bar-btn:disabled { opacity: .4; cursor: not-allowed; }

.games-bar-btn-primary {
  color: var(--primary);
  border-color: rgba(124,58,237,.3);
}
.games-bar-btn-primary:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* 图片预览 */
.games-img-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.games-img-item {
  position: relative;
  width: 140px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.games-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.games-img-cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.games-img-index {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.7);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
}

.games-img-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.games-img-item:hover .games-img-del { opacity: 1; }
.games-img-del:hover { background: rgba(229,62,62,.8); }

.games-form-err {
  color: #e53e3e;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
  text-align: center;
}

.games-submit {
  width: 100%;
  padding: 12px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.games-submit:hover { opacity: .9; }
.games-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ==================== 发布表单容器（统一居中） ==================== */
.market-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 0;
}
.market-form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text1);
  margin: 0 0 20px 0;
}

/* ==================== 我的发布页 ==================== */
.my-panel { min-height: 200px; }
.mp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--card-bg);
}
.mp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mp-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text3);
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
.mp-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text2);
}
.mp-table tr:last-child td { border-bottom: none; }
.mp-table tr:hover td { background: rgba(255,255,255,.02); }
.mp-title-cell {
  color: var(--text1) !important;
  font-weight: 500;
}
.mp-del-btn {
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid rgba(229,62,62,.3);
  background: transparent;
  color: #e53e3e;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.mp-del-btn:hover {
  background: rgba(229,62,62,.12);
  border-color: #e53e3e;
}
.card-del-area {
  padding: 6px 16px 10px;
  text-align: right;
  border-top: 1px solid var(--glass-border);
}
.mp-loading { text-align: center; padding: 40px; font-size: 14px; color: var(--text3); }
.mp-empty { text-align: center; padding: 60px 20px; font-size: 14px; color: var(--text3); }

/* ==================== 翻页 ==================== */
.pag-container {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}
.pag-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pag-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pag-btn:hover { border-color: rgba(255,255,255,.18); color: #fff; }
.pag-btn.pag-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pag-btn:disabled,
.pag-btn.pag-disabled { opacity: .3; cursor: default; }
.pag-dots {
  padding: 0 2px;
  color: var(--text3);
  font-size: 13px;
  letter-spacing: 2px;
}

/* ==================== 详情弹窗 ==================== */
.dm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.dm-overlay.open { display: flex; }
.dm-modal {
  background: rgba(18,12,35,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  width: 100%;
  max-width: 660px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 32px 64px rgba(0,0,0,.5);
  animation: scaleIn .25s ease;
}
.dm-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.5);
  color: #fff; font-size: 16px;
  cursor: pointer; z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.dm-close:hover { background: rgba(229,62,62,.7); }
.dm-scroll {
  overflow-y: auto;
  border-radius: 16px;
}
.dm-scroll::-webkit-scrollbar { width: 4px; }
.dm-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

/* 封面 */
.dm-cover-wrap { width: 100%; }
.dm-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,10,30,.8);
}
.dm-cover-img {
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity .15s;
}
.dm-cover-img:hover { opacity: .85; }

/* 内容 */
.dm-body { padding: 20px 24px 28px; }
.dm-title {
  font-size: 20px; font-weight: 700;
  color: #fff; line-height: 1.4;
  margin-bottom: 8px;
}
.dm-meta {
  font-size: 13px; color: var(--text3);
  line-height: 1.6; margin-bottom: 2px;
}
.dm-meta.dm-user { margin-top: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 14px; }
.dm-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.dm-stock { font-size: 12px; color: var(--text3); }
.dm-body-text {
  font-size: 14px; color: var(--text2);
  line-height: 1.8; white-space: pre-wrap; word-break: break-word;
}
.dm-body-html img { max-width: 100%; border-radius: 8px; margin: 8px 0; cursor: zoom-in; }
.dm-body-html img:hover { opacity: .85; }

/* ==================== 图片放大 lightbox ==================== */
.dm-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn .2s ease;
}
.dm-lightbox.open { display: flex; }
.dm-lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 64px rgba(0,0,0,.6);
  animation: scaleIn .25s ease;
}
.dm-lb-close {
  position: fixed; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.5);
  color: #fff; font-size: 20px;
  cursor: pointer; z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.dm-lb-close:hover { background: rgba(229,62,62,.7); }

/* ==================== 通用弹窗 ==================== */
.form-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
}
.form-overlay.open { display: flex; }
.form-modal {
  background: rgba(15,10,30,.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  width: 440px;
  max-width: 90vw;
  padding: 32px;
  box-shadow: 0 32px 64px rgba(0,0,0,.5);
  position: relative;
  animation: scaleIn .25s ease;
}
.form-modal h3 { font-size: 19px; margin-bottom: 22px; text-align: center; }
.form-modal .form-group { margin-bottom: 16px; }
.form-modal .form-group label { display: block; font-size: 13px; color: var(--text3); margin-bottom: 5px; }
.form-modal .form-group input[type="text"],
.form-modal .form-group input[type="number"],
.form-modal .form-group select {
  width: 100%; padding: 10px 14px; border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s; box-sizing: border-box;
}
.form-modal .form-group input:focus,
.form-modal .form-group select:focus { border-color: var(--primary); }
.form-modal .form-submit {
  width: 100%; padding: 11px; border-radius: 9px; border: none;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .15s; margin-top: 4px;
}
.form-modal .form-submit:hover { opacity: .9; }
.form-modal .form-submit:disabled { opacity: .5; cursor: not-allowed; }
.form-modal .form-error { color: var(--red); font-size: 13px; margin-bottom: 12px; display: none; text-align: center; }
.form-modal .form-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ==================== 页脚 ==================== */
.footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 12px;
  color: var(--text3);
  border-top: 1px solid var(--glass-border);
  background: rgba(15,10,30,0.92);
  backdrop-filter: blur(12px);
}

.footer a {
  color: var(--text3);
  text-decoration: none;
}

.footer a:hover { color: var(--primary); }

/* ==================== Toast ==================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  animation: slideInRight 0.3s ease;
  max-width: 360px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  pointer-events: auto;
}

.toast-success { background: linear-gradient(135deg, #48bb78, #38a169); }
.toast-error { background: linear-gradient(135deg, #e53e3e, #c53030); }
.toast-info { background: linear-gradient(135deg, #7C3AED, #06B6D4); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .module-card { padding: 28px 16px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .banner-inner { aspect-ratio: 3 / 2; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .page-container { padding: 72px 16px 24px; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .module-card { padding: 22px 10px; border-radius: 12px; }
  .module-card .icon { width: 36px; height: 36px; }
  .module-card .icon svg { width: 36px; height: 36px; }
  .module-card .title { font-size: 15px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 18px 10px; }
  .stat-card .num { font-size: 24px; }
  .banner-inner { aspect-ratio: 16 / 9; }
}