/* Glass Purple 主题 - 保持当前紫蓝玻璃拟态外观 */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4a9eff;
  --accent-color: #ff6584;
  --success-color: #00cc99;
  --warning-color: #ffb23e;
  --danger-color: #ff4d6d;
  --bg-primary: #f0f4f8;
  --bg-secondary: #e2e8f0;
  --bg-tertiary: #cbd5e1;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --search-input-bg: rgba(255, 255, 255, 0.7);
  --panel-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: rgba(255, 255, 255, 0.75);
}

/* ─────────────────────────────────────────────────
   分类区块（neon-dark 侧边栏专用，glass-purple 隐藏）
   ───────────────────────────────────────────────── */
.glass-nav-categories,
.mobile-categories {
  display: none !important;
}

/* ================================================================
   游戏列表页（.ap-list-*） — 玻璃拟态浅色风格
   ================================================================ */
body.theme-glass-purple .ap-list-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

body.theme-glass-purple .ap-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 20px;
  border-bottom: 1px solid rgba(108, 99, 255, 0.2);
  margin-bottom: 0;
}

body.theme-glass-purple .ap-list-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  letter-spacing: -0.02em;
}

body.theme-glass-purple .ap-list-title-cat {
  background: linear-gradient(135deg, #6c63ff, #4a9eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: capitalize;
}

body.theme-glass-purple .ap-list-title-label {
  color: #1e293b;
  text-transform: capitalize;
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.55;
}

body.theme-glass-purple .ap-list-count {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 分类 pill 轨道 */
body.theme-glass-purple .ap-cat-track-wrap {
  background: transparent;
  border-bottom: 1px solid rgba(108, 99, 255, 0.12);
  padding: 0;
  margin: 0;
}

body.theme-glass-purple .ap-cat-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}

body.theme-glass-purple .ap-cat-track::-webkit-scrollbar { display: none; }

body.theme-glass-purple .ap-cat-pill {
  flex-shrink: 0;
  display: inline-block;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(108, 99, 255, 0.25);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

body.theme-glass-purple .ap-cat-pill:hover {
  border-color: rgba(108, 99, 255, 0.6);
  color: #6c63ff;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
  transform: translateY(-1px);
}

body.theme-glass-purple .ap-cat-pill.active {
  background: linear-gradient(135deg, #6c63ff, #4a9eff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(108, 99, 255, 0.35);
}

/* 游戏网格 */
body.theme-glass-purple .ap-list-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 24px;
}

body.theme-glass-purple .ap-game-card {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 24px rgba(31, 38, 135, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.theme-glass-purple .ap-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(108, 99, 255, 0.25);
  border-color: rgba(108, 99, 255, 0.4);
}

body.theme-glass-purple .ap-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

body.theme-glass-purple .ap-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

body.theme-glass-purple .ap-game-card:hover .ap-card-thumb img {
  transform: scale(1.06);
}

body.theme-glass-purple .ap-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ffb23e, #ff6584);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 3;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(255, 178, 62, 0.4);
}

body.theme-glass-purple .ap-card-badge.new {
  background: linear-gradient(135deg, #00cc99, #4a9eff);
  box-shadow: 0 2px 8px rgba(0, 204, 153, 0.4);
}

body.theme-glass-purple .ap-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

body.theme-glass-purple .ap-game-card:hover .ap-card-play {
  opacity: 1;
}

body.theme-glass-purple .ap-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #4a9eff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.5);
  transition: transform 0.15s ease;
}

body.theme-glass-purple .ap-game-card:hover .ap-play-btn {
  transform: scale(1.1);
}

body.theme-glass-purple .ap-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0) 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.theme-glass-purple .ap-card-cat {
  display: inline-block;
  align-self: flex-start;
  background: rgba(108, 99, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  line-height: 1.6;
}

body.theme-glass-purple .ap-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

body.theme-glass-purple .ap-card-rating {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
}

body.theme-glass-purple .ap-card-rating .fa-star {
  color: #ffb23e;
}

/* 分页 */
body.theme-glass-purple .ap-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

body.theme-glass-purple .ap-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

body.theme-glass-purple .ap-page-btn:hover {
  border-color: rgba(108, 99, 255, 0.6);
  color: #6c63ff;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.18);
}

body.theme-glass-purple .ap-page-btn.active {
  background: linear-gradient(135deg, #6c63ff, #4a9eff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(108, 99, 255, 0.4);
}

body.theme-glass-purple .ap-page-ellipsis {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0 4px;
  line-height: 38px;
}

/* 响应式 */
@media (max-width: 1200px) {
  body.theme-glass-purple .ap-list-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (max-width: 992px) {
  body.theme-glass-purple .ap-list-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  body.theme-glass-purple .ap-list-title { font-size: 1.6rem; }
}
@media (max-width: 768px) {
  body.theme-glass-purple .ap-list-wrap { padding: 0 16px 48px; }
  body.theme-glass-purple .ap-list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.theme-glass-purple .ap-list-title { font-size: 1.4rem; }
  body.theme-glass-purple .ap-play-btn { width: 42px; height: 42px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  body.theme-glass-purple .ap-list-grid { gap: 10px; }
  body.theme-glass-purple .ap-list-title { font-size: 1.2rem; }
  body.theme-glass-purple .ap-list-title-label { font-size: 1rem; }
  body.theme-glass-purple .ap-card-name { font-size: 0.78rem; }
  body.theme-glass-purple .ap-page-btn { min-width: 34px; height: 34px; font-size: 0.78rem; }
}

/* ================================================================
   游戏详情页（.ap-detail-*） — 玻璃拟态浅色风格
   ================================================================ */
body.theme-glass-purple .ap-detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

body.theme-glass-purple .ap-detail-hero {
  position: relative;
  margin: 24px 0 32px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.18);
}

body.theme-glass-purple .ap-detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(32px) brightness(0.85) saturate(1.2);
  transform: scale(1.15);
  z-index: 0;
  opacity: 0.6;
}

body.theme-glass-purple .ap-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(108, 99, 255, 0.18), rgba(74, 158, 255, 0.12)),
    linear-gradient(to top, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
  z-index: 1;
}

body.theme-glass-purple .ap-detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px;
  align-items: center;
}

body.theme-glass-purple .ap-detail-poster {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(31, 38, 135, 0.25);
  aspect-ratio: 1 / 1;
}

body.theme-glass-purple .ap-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.theme-glass-purple .ap-detail-play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  text-decoration: none;
}

body.theme-glass-purple .ap-detail-play-cover:hover {
  opacity: 1;
}

body.theme-glass-purple .ap-detail-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #4a9eff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 28px rgba(108, 99, 255, 0.5);
  transition: transform 0.15s ease;
}

body.theme-glass-purple .ap-detail-play-cover:hover .ap-detail-play-icon {
  transform: scale(1.1);
}

body.theme-glass-purple .ap-detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.theme-glass-purple .ap-detail-cat {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.85), rgba(74, 158, 255, 0.85));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

body.theme-glass-purple .ap-detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

body.theme-glass-purple .ap-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-glass-purple .ap-detail-stars .fa-star {
  color: #ffb23e;
  font-size: 1rem;
}

body.theme-glass-purple .ap-detail-score {
  color: #1e293b;
  font-weight: 700;
  font-size: 0.95rem;
}

body.theme-glass-purple .ap-detail-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

body.theme-glass-purple .ap-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

body.theme-glass-purple .ap-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #6c63ff, #4a9eff);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(108, 99, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-glass-purple .ap-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(108, 99, 255, 0.55);
}

body.theme-glass-purple .ap-btn-cat {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: #6c63ff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.theme-glass-purple .ap-btn-cat:hover {
  background: rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.6);
  color: #4a9eff;
}

body.theme-glass-purple .ap-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

body.theme-glass-purple .ap-detail-main,
body.theme-glass-purple .ap-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.theme-glass-purple .ap-detail-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: 0 6px 20px rgba(31, 38, 135, 0.08);
}

body.theme-glass-purple .ap-detail-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

body.theme-glass-purple .ap-detail-card-accent {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #6c63ff, #4a9eff);
  border-radius: 2px;
}

body.theme-glass-purple .ap-detail-card-text {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

body.theme-glass-purple .ap-detail-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.theme-glass-purple .ap-detail-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(108, 99, 255, 0.12);
  font-size: 0.88rem;
}

body.theme-glass-purple .ap-detail-info-list li:last-child {
  border-bottom: none;
}

body.theme-glass-purple .ap-info-label {
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
}

body.theme-glass-purple .ap-info-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

body.theme-glass-purple .ap-info-rating {
  color: #ffb23e;
}

/* 推荐 */
body.theme-glass-purple .ap-rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.theme-glass-purple .ap-rec-item {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(108, 99, 255, 0.12);
  text-decoration: none;
  transition: all 0.25s ease;
}

body.theme-glass-purple .ap-rec-item:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 6px 16px rgba(108, 99, 255, 0.15);
  transform: translateX(2px);
}

body.theme-glass-purple .ap-rec-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

body.theme-glass-purple .ap-rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.theme-glass-purple .ap-rec-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.45);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 0.85rem;
}

body.theme-glass-purple .ap-rec-item:hover .ap-rec-play {
  opacity: 1;
}

body.theme-glass-purple .ap-rec-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

body.theme-glass-purple .ap-rec-name {
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

body.theme-glass-purple .ap-rec-cat {
  color: #6c63ff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* 详情响应式 */
@media (max-width: 992px) {
  body.theme-glass-purple .ap-detail-body { grid-template-columns: 1fr; }
  body.theme-glass-purple .ap-detail-hero-inner { grid-template-columns: 220px 1fr; gap: 24px; padding: 24px; }
  body.theme-glass-purple .ap-detail-title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
  body.theme-glass-purple .ap-detail-wrap { padding: 0 16px 48px; }
  body.theme-glass-purple .ap-detail-hero-inner { grid-template-columns: 1fr; text-align: center; padding: 20px; }
  body.theme-glass-purple .ap-detail-poster { max-width: 240px; margin: 0 auto; }
  body.theme-glass-purple .ap-detail-info { align-items: center; }
  body.theme-glass-purple .ap-detail-title { font-size: 1.5rem; }
  body.theme-glass-purple .ap-detail-card { padding: 18px; }
}
