/* ============================================
   Cosmos Nexus — 引力宇宙游戏探索系统样式
   深空黑蓝 × 引力核心 × 游戏星体 × 玻璃面板UI
   ============================================ */

/* ===== 全局重置 ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== Body — 深空 ===== */
.cosmos-body {
  font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #020409;
  color: #d1d5db;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== 星场画布 ===== */
.cosmos-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== 星云渐变叠加 ===== */
.cosmos-nebula {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(88,28,135,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(59,7,100,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(30,58,138,0.05) 0%, transparent 50%);
  animation: nebula-drift 20s ease-in-out infinite alternate;
}
@keyframes nebula-drift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(1%, -1%); }
}

/* ===== 顶部粘性导航栏 — 深空玻璃 ===== */
.cosmos-navbar {
  position: sticky; top: 0; z-index: 100; width: 100%; height: 72px;
  background: rgba(2, 4, 9, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167,139,250,0.08);
}
.cosmos-navbar-inner {
  max-width: 1600px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; padding: 0 24px; gap: 28px;
}
/* Logo 引力符号 */
.cosmos-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.cosmos-logo-icon {
  font-size: 28px; color: #5ac8fa;
  animation: orbit-pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(90,200,250,0.5));
}
@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}
.cosmos-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 26px; font-weight: 200;
  background: linear-gradient(90deg, #5ac8fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 6px; text-transform: uppercase;
}

/* 主导航链接 */
.cosmos-nav-links { display: flex; align-items: center; gap: 32px; }
.cosmos-nav-link {
  color: #6b7280; text-decoration: none; font-size: 13px; font-weight: 300;
  letter-spacing: 3px; position: relative; padding: 4px 0;
  transition: color 0.3s; white-space: nowrap; text-transform: uppercase;
}
/* 紫蓝下划线 */
.cosmos-nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px;
  background: linear-gradient(90deg, #5ac8fa, #a78bfa);
  border-radius: 1px; transition: all 0.3s; transform: translateX(-50%);
}
.cosmos-nav-link:hover { color: #a78bfa; }
.cosmos-nav-link:hover::after { width: 100%; }

/* 搜索框 — 宇宙扫描入口 */
.cosmos-search-wrap { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.cosmos-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.cosmos-search-input {
  width: 100%; padding: 10px 16px 10px 42px; height: 44px;
  background: rgba(10,10,20,0.8);
  border: 1px solid rgba(167,139,250,0.12); border-radius: 10px;
  color: #d1d5db; font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none; transition: all 0.3s;
}
.cosmos-search-input::placeholder { color: #4b5563; }
.cosmos-search-input:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 12px rgba(167,139,250,0.2);
}

/* 汉堡菜单按钮 */
.cosmos-mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: transparent;
  border: 1px solid rgba(167,139,250,0.1); border-radius: 8px;
  cursor: pointer; padding: 8px; flex-shrink: 0;
}
.cosmos-mobile-menu-btn span { display: block; width: 100%; height: 2px; background: #a78bfa; border-radius: 1px; transition: all 0.3s; }
.cosmos-mobile-menu-btn.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.cosmos-mobile-menu-btn.active span:nth-child(2){opacity:0;}
.cosmos-mobile-menu-btn.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px);}

/* 移动端导航面板 */
.cosmos-mobile-nav-panel {
  display: none; background: rgba(2,4,9,0.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(167,139,250,0.08); overflow: hidden;
  max-height: 0; transition: max-height 0.4s;
}
.cosmos-mobile-nav-panel.open { max-height: 360px; }
.cosmos-mobile-nav-links { display: flex; flex-direction: column; padding: 12px 24px; gap: 4px; }
.cosmos-mobile-nav-links .cosmos-nav-link { padding: 12px 16px; border-radius: 10px; font-size: 15px; letter-spacing: 4px; color: #6b7280; transition: all .2s; }
.cosmos-mobile-nav-links .cosmos-nav-link:hover { background: rgba(167,139,250,0.08); color: #a78bfa; }

/* ===== Hero 宇宙精选星区 ===== */
.cosmos-hero-section {
  position: relative; max-width: 1600px; margin: 0 auto;
  padding: 24px 24px 0; min-height: 240px; overflow: hidden;
}
.cosmos-hero-track {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  height: 220px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0 24px;
  background: rgba(10,10,20,0.4);
  border-radius: 20px; border: 1px solid rgba(167,139,250,0.06);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.cosmos-hero-track::-webkit-scrollbar { display: none; }

/* Hero 单个星体 */
.cosmos-hero-star {
  flex-shrink: 0; width: 180px; height: 180px;
  position: relative; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.5s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* 星体发光 */
.cosmos-star-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100px; height: 100px; border-radius: 50%;
  opacity: 0; transition: opacity 0.5s, width 0.5s, height 0.5s;
  pointer-events: none;
}
.cosmos-hero-star.active .cosmos-star-glow { opacity: 0.4; width: 160px; height: 160px; }
.cosmos-hero-star.prev .cosmos-star-glow, .cosmos-hero-star.next .cosmos-star-glow { opacity: 0.15; width: 120px; height: 120px; }

/* 星体缩略图 */
.cosmos-star-thumb {
  width: 90px; height: 90px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.4s; position: relative; z-index: 2;
}
.cosmos-hero-star.active .cosmos-star-thumb {
  width: 120px; height: 120px;
  border-color: var(--star-color);
  box-shadow: 0 0 30px var(--star-color);
}
.cosmos-hero-star.prev .cosmos-star-thumb, .cosmos-hero-star.next .cosmos-star-thumb {
  width: 80px; height: 80px; opacity: 0.6;
}
.cosmos-star-link { display: block; text-decoration: none; position: relative; z-index: 2; }

/* 轨道环 */
.cosmos-star-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 140px; height: 140px; border-radius: 50%;
  border: 1px solid transparent; opacity: 0; transition: all 0.4s;
  pointer-events: none;
}
.cosmos-hero-star.active .cosmos-star-ring {
  width: 160px; height: 160px; opacity: 0.4;
  animation: orbit-rotate 8s linear infinite;
}
@keyframes orbit-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 星体名称 */
.cosmos-star-label {
  margin-top: 8px; color: #d1d5db; font-size: 12px; font-weight: 300;
  letter-spacing: 1px; white-space: nowrap; text-align: center;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
  text-shadow: 0 0 10px rgba(167,139,250,0.5);
  position: relative; z-index: 2;
}
.cosmos-hero-star.active .cosmos-star-label { opacity: 1; }

/* 粒子环 — 热门星体 */
.cosmos-star-particles {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 0; height: 0; pointer-events: none;
}
.cosmos-hero-star.active .cosmos-star-particles {
  width: 180px; height: 180px;
  background: radial-gradient(circle, transparent 60%, var(--star-color) 61%, transparent 62%);
  opacity: 0.2;
  animation: particles-orbit 4s linear infinite;
}
@keyframes particles-orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== 引力核心分类 ===== */
.cosmos-cores-section { padding: 20px 24px; max-width: 1600px; margin: 0 auto; }
.cosmos-cores-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: rgba(167,139,250,.3) transparent; padding: 4px 0;
}
.cosmos-cores-scroll::-webkit-scrollbar { height: 6px; }
.cosmos-cores-scroll::-webkit-scrollbar-track { background: transparent; }
.cosmos-cores-scroll::-webkit-scrollbar-thumb { background: rgba(167,139,250,.3); border-radius: 3px; }

.cosmos-gravity-core {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 8px; min-width: 130px; height: 90px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06); text-decoration: none;
  transition: all .3s; position: relative; overflow: hidden;
  background: rgba(10,10,20,0.6); cursor: pointer;
}
.cosmos-core-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  opacity: 0.15; filter: blur(15px); transition: all 0.3s;
}
.cosmos-gravity-core:hover .cosmos-core-glow {
  width: 80px; height: 80px; opacity: 0.3;
}
.cosmos-gravity-core:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.2);
}
.cosmos-core-emoji { font-size: 26px; position: relative; z-index: 1; }
.cosmos-core-label {
  font-size: 12px; font-weight: 300; color: #d1d5db; letter-spacing: 1px;
  text-transform: uppercase; position: relative; z-index: 1;
}

/* ===== 星区游戏列表 ===== */
.cosmos-main { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; padding: 0 0 40px; }
.cosmos-sector {
  margin: 0 24px; border-radius: 16px; overflow: hidden;
  background: rgba(10,10,20,0.5); border: 1px solid rgba(167,139,250,0.04);
  margin-bottom: 8px; position: relative;
}
.cosmos-sector-header {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 0 20px; height: 48px; cursor: pointer; transition: background 0.2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.cosmos-sector-header:hover { background: rgba(167,139,250,0.04); }
.cosmos-sector-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* 紫蓝指示条 */
.cosmos-sector-bar {
  width: 3px; height: 20px; border-radius: 2px; flex-shrink: 0;
  background: rgba(167,139,250,0.3); transition: all 0.3s;
}
.cosmos-sector-bar.active {
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167,139,250,0.6), 0 0 16px rgba(167,139,250,0.2);
}

.cosmos-sector-arrow {
  font-size: 14px; color: #6b7280; transition: transform 0.3s;
}
.cosmos-sector.open .cosmos-sector-arrow { transform: rotate(180deg); }

.cosmos-section-title {
  font-family: 'Inter', 'Helvetica Neue', sans-serif; font-size: 18px; font-weight: 200;
  color: #d1d5db; letter-spacing: 6px; text-transform: uppercase;
}
.cosmos-sector-more {
  color: #6b7280; text-decoration: none; font-size: 12px; font-weight: 300;
  letter-spacing: 2px; transition: all .3s; text-transform: uppercase;
}
.cosmos-sector-more:hover { color: #5ac8fa; letter-spacing: 3px; }

/* 星区内容展开 */
.cosmos-sector-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.33,1,0.68,1);
}
.cosmos-sector.open .cosmos-sector-content {
  max-height: 2000px;
}

/* ===== 游戏网格（响应式）===== */
.cosmos-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px 16px; }
@media (min-width: 640px) { .cosmos-games-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .cosmos-games-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
@media (min-width: 1440px) { .cosmos-games-grid { grid-template-columns: repeat(7, 1fr); } }

/* ===== 游戏星体节点卡片 ===== */
.cosmos-game-node {
  background: rgba(10,10,20,0.85);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s, border-color 0.3s;
  position: relative; border: 1px solid rgba(167,139,250,0.06);
  opacity: 0; transform: translateY(20px);
}
.cosmos-game-node.visible { opacity: 1; transform: translateY(0); transition: opacity 0.5s, transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.3s, border-color 0.3s; }
.cosmos-game-node:hover {
  transform: translateY(-4px);
  border-color: var(--node-color);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 16px var(--node-color);
}
.cosmos-game-node.scan-hit {
  animation: scan-flash 0.6s ease;
}
@keyframes scan-flash {
  0% { box-shadow: 0 0 0 rgba(90,200,250,0); }
  50% { box-shadow: 0 0 30px rgba(90,200,250,0.5); }
  100% { box-shadow: 0 0 0 rgba(90,200,250,0); }
}
.cosmos-node-link { display: block; text-decoration: none; color: inherit; }

/* 卡片图片区域 — 4:3 */
.cosmos-node-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #0a0a14; }
.cosmos-node-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cosmos-game-node:hover .cosmos-node-image img { transform: scale(1.05); }
/* 轨道覆盖层 */
.cosmos-node-orbit {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(2,4,9,0.3) 100%);
}

/* 星体指示点 */
.cosmos-node-star {
  border-radius: 50%; flex-shrink: 0;
  animation: star-twinkle 2s ease-in-out infinite alternate;
}
@keyframes star-twinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* 卡片信息区 */
.cosmos-node-info { padding: 10px 10px 12px; display: flex; align-items: center; gap: 8px; }
.cosmos-node-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 400; letter-spacing: 0.5px;
  color: #d1d5db;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.cosmos-game-node:hover .cosmos-node-title { color: #a78bfa; }
.cosmos-node-tags { display: none; }

/* ===== 广告容器 ===== */
.cosmos-ad-container {
  text-align: center; padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 1600px; margin: 8px auto 0;
  background: rgba(10,10,20,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167,139,250,0.04); border-radius: 12px;
}
.cosmos-ad-label { color: #4b5563; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }

/* ===== 详情页 ===== */
.cosmos-detail-page { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; }
.cosmos-detail-back { margin-bottom: 24px; }
.cosmos-back-btn {
  display: inline-flex; align-items: center; gap: 6px; color: #5ac8fa;
  text-decoration: none; font-size: 14px; font-weight: 300;
  padding: 10px 20px; border-radius: 10px;
  background: rgba(10,10,20,0.9); border: 1px solid rgba(167,139,250,0.1);
  transition: all .3s; letter-spacing: 2px; text-transform: uppercase;
}
.cosmos-back-btn:hover { background: rgba(10,10,20,1); border-color: rgba(167,139,250,0.3); box-shadow: 0 0 15px rgba(167,139,250,0.15); }

.cosmos-detail-hero {
  display: flex; gap: 32px;
  background: rgba(10,10,20,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(167,139,250,0.06); border-radius: 20px; padding: 28px; margin-bottom: 28px;
}
.cosmos-detail-thumb {
  flex-shrink: 0; width: 340px; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(167,139,250,0.08); position: relative;
}
.cosmos-detail-thumb img { width: 100%; height: auto; display: block; }
.cosmos-detail-glow {
  position: absolute; inset: -20px; pointer-events: none; z-index: -1;
}
.cosmos-detail-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.cosmos-detail-title {
  font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 200;
  color: #d1d5db; line-height: 1.2; letter-spacing: 4px; text-transform: uppercase;
}
.cosmos-detail-desc { color: #6b7280; font-size: 15px; line-height: 1.8; }
.cosmos-play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 42px;
  background: linear-gradient(90deg, #5ac8fa, #a78bfa);
  color: #020409; border: none; border-radius: 12px; font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 400; cursor: pointer; letter-spacing: 3px; text-transform: uppercase;
  width: fit-content; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.cosmos-play-btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transition: left .5s;
}
.cosmos-play-btn:hover::before { left: 100%; }
.cosmos-play-btn:hover { transform: scale(1.04); box-shadow: 0 0 30px rgba(167,139,250,0.5); }
.cosmos-play-btn:active { transform: scale(0.98); }

.cosmos-game-iframe {
  width: 100%; height: 650px; border-radius: 16px; overflow: hidden;
  margin-bottom: 28px; background: #020409; border: 1px solid rgba(167,139,250,0.06);
  box-shadow: 0 0 20px rgba(167,139,250,0.05);
}
.cosmos-game-iframe iframe { width: 100%; height: 100%; border: none; }

.cosmos-related-section { margin-top: 48px; }
.cosmos-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .cosmos-related-grid { grid-template-columns: repeat(4, 1fr); } }
.cosmos-related-node .cosmos-node-info { padding: 8px 10px 10px; }
.cosmos-related-node .cosmos-node-title { font-size: 12px; }

/* ===== 静态页面 ===== */
.cosmos-static-page { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 28px 24px 48px; }
.cosmos-static-back { margin-bottom: 24px; }
.cosmos-static-title {
  font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 200;
  color: #d1d5db; margin-bottom: 24px; letter-spacing: 6px; text-transform: uppercase;
}
.cosmos-static-content {
  background: rgba(10,10,20,0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(167,139,250,0.06); border-radius: 16px; padding: 36px;
  color: #d1d5db; line-height: 1.85; font-size: 15px;
}
.cosmos-static-content p { margin-bottom: 16px; }
.cosmos-static-content strong { color: #e5e7eb; font-weight: 500; }
.cosmos-static-content ul, .cosmos-static-content ol { margin: 12px 0 12px 24px; }
.cosmos-static-content li { margin-bottom: 8px; }
.cosmos-static-content a { color: #5ac8fa; text-decoration: underline; }
.cosmos-static-content h2, .cosmos-static-content h3, .cosmos-static-content h4 {
  font-family: 'Inter', sans-serif; color: #a78bfa;
  margin-top: 24px; margin-bottom: 12px; font-weight: 300; letter-spacing: 4px; text-transform: uppercase;
}

/* ===== 手机端底部导航栏 ===== */
.cosmos-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  height: 64px; background: rgba(2,4,9,0.93); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(167,139,250,0.06); box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  justify-content: space-around; align-items: center;
}
.cosmos-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #6b7280; text-decoration: none; font-size: 10px; font-weight: 300;
  padding: 6px 12px; border-radius: 8px; transition: color .3s;
  letter-spacing: 1px; text-transform: uppercase;
}
.cosmos-bottom-nav a:hover, .cosmos-bottom-nav .cosmos-bottom-nav-active { color: #a78bfa; }
.cosmos-bottom-nav-icon { font-size: 20px; }

/* ===== 响应式调整 ===== */
@media (max-width: 1024px) {
  .cosmos-nav-links { display: none; }
  .cosmos-search-wrap { display: none; }
  .cosmos-mobile-menu-btn { display: flex; }
  .cosmos-mobile-nav-panel { display: block; }
  .cosmos-detail-hero { flex-direction: column; }
  .cosmos-detail-thumb { width: 100%; max-width: 420px; }
}

@media (max-width: 640px) {
  .cosmos-navbar { height: 58px; }
  .cosmos-logo-text { font-size: 20px; letter-spacing: 3px; }
  .cosmos-cores-section { display: none; }
  .cosmos-bottom-nav { display: flex !important; }
  .cosmos-main { padding-bottom: 80px; }
  .cosmos-detail-page { padding-bottom: 80px; }
  .cosmos-static-page { padding-bottom: 80px; }
  .cosmos-hero-section { padding: 16px 16px 0; }
  .cosmos-hero-track { height: 180px; gap: 20px; }
  .cosmos-hero-star { width: 140px; height: 160px; }
  .cosmos-sector { margin: 0 16px; }
  .cosmos-section-title { font-size: 15px; letter-spacing: 3px; }
  .cosmos-detail-page { padding: 16px; }
  .cosmos-detail-hero { padding: 16px; }
  .cosmos-detail-title { font-size: 22px; letter-spacing: 2px; }
  .cosmos-game-iframe { height: 450px; }
  .cosmos-static-page { padding: 16px; }
  .cosmos-static-content { padding: 20px; }
  .cosmos-games-grid { gap: 12px; }
  .cosmos-footer .cosmos-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #020409; }
::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167,139,250,0.4); }
::selection { background: rgba(167,139,250,0.2); color: #d1d5db; }
a { color: inherit; }
