/* ============================================
   Command Desk — 编辑指挥台式资讯系统
   深色指挥台 #0d1117 × 琥珀指示灯 × 模块化仪表盘 × 高信息密度
   ============================================ */

/* ===== 全局重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ===== Body — 深色指挥台 ===== */
.cd-body {
  font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #b1bac4;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 背景网格纹理 ===== */
.cd-body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(48,54,61,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cd-body::after {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(245,158,11,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(59,130,246,0.03) 0%, transparent 50%);
}

/* ===== 顶部指挥导航栏 ===== */
.cd-topnav {
  position: sticky; top: 0; z-index: 100; width: 100%; height: 56px;
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(48,54,61,0.6);
}
.cd-topnav-inner {
  max-width: 1600px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; padding: 0 20px; gap: 16px;
}

/* Logo */
.cd-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.cd-logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #0d1117;
  box-shadow: 0 0 12px rgba(245,158,11,0.3);
}
.cd-logo-text {
  font-size: 18px; font-weight: 600; color: #e6edf3;
  letter-spacing: 1px;
}
.cd-logo-dot {
  display: inline-block; width: 6px; height: 6px;
  background: #f59e0b; border-radius: 50%;
  margin-left: 2px; animation: cd-blink 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(245,158,11,0.6);
}
@keyframes cd-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Nav links */
.cd-nav-links {
  display: flex; gap: 4px; list-style: none; margin-left: 24px;
}
.cd-nav-links a {
  color: #7d8590; text-decoration: none; font-size: 13px;
  font-weight: 500; padding: 6px 14px; border-radius: 6px;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.cd-nav-links a:hover { color: #e6edf3; background: rgba(48,54,61,0.4); }
.cd-nav-links a.active { color: #f59e0b; background: rgba(245,158,11,0.1); }

/* Status indicators */
.cd-nav-status {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
.cd-status-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: #7d8590;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.cd-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.cd-status-dot.live { background: #3fb950; box-shadow: 0 0 6px rgba(63,185,80,0.5); }
.cd-status-dot.warn { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }

/* Search */
.cd-search-btn {
  width: 36px; height: 36px; background: transparent;
  border: 1px solid rgba(48,54,61,0.6); border-radius: 6px;
  color: #7d8590; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cd-search-btn:hover { color: #e6edf3; border-color: rgba(48,54,61,1); background: rgba(48,54,61,0.3); }
.cd-search-btn svg { width: 16px; height: 16px; }

/* Mobile menu */
.cd-mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: transparent;
  border: 1px solid rgba(48,54,61,0.6); border-radius: 6px;
  cursor: pointer; padding: 8px; flex-shrink: 0;
}
.cd-mobile-menu-btn span { display: block; width: 100%; height: 2px; background: #7d8590; border-radius: 1px; transition: all 0.3s; }

/* ===== 搜索覆盖层 ===== */
.cd-search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 120px;
}
.cd-search-overlay.active { display: flex; }
.cd-search-box {
  width: 90%; max-width: 640px;
  background: #161b22; border: 1px solid rgba(48,54,61,0.8);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.cd-search-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid rgba(48,54,61,0.4);
}
.cd-search-header svg { width: 18px; height: 18px; color: #7d8590; flex-shrink: 0; }
.cd-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e6edf3; font-size: 16px; font-family: inherit;
}
.cd-search-input::placeholder { color: #484f58; }
.cd-search-close {
  background: transparent; border: none; color: #7d8590;
  font-size: 20px; cursor: pointer; padding: 4px 8px;
}
.cd-search-results { max-height: 400px; overflow-y: auto; }
.cd-search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px; text-decoration: none; color: #b1bac4;
  border-bottom: 1px solid rgba(48,54,61,0.2); transition: background 0.15s;
}
.cd-search-result-item:hover { background: rgba(48,54,61,0.3); }
.cd-search-result-thumb { width: 64px; height: 40px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #21262d; }
.cd-search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cd-search-result-title { font-size: 14px; color: #e6edf3; }
.cd-search-result-cat { font-size: 11px; color: #f59e0b; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
.cd-search-empty { padding: 24px; text-align: center; color: #484f58; font-size: 14px; }

/* ===== 主仪表盘容器 ===== */
.cd-dashboard {
  position: relative; z-index: 1;
  max-width: 1600px; margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto;
  gap: 16px;
}

/* ===== 今日重点 — 置顶头条 ===== */
.cd-headline {
  grid-column: 1 / -1;
  background: #161b22;
  border: 1px solid rgba(48,54,61,0.6);
  border-radius: 12px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 320px;
  transition: border-color 0.3s;
}
.cd-headline:hover { border-color: rgba(245,158,11,0.3); }

.cd-headline-img {
  position: relative; overflow: hidden; min-height: 320px;
}
.cd-headline-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: absolute; top: 0; left: 0;
  transition: transform 0.5s;
}
.cd-headline:hover .cd-headline-img img { transform: scale(1.03); }
.cd-headline-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, #161b22 100%);
}

.cd-headline-content {
  padding: 32px 36px; display: flex; flex-direction: column; justify-content: center;
}
.cd-headline-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #f59e0b;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.cd-headline-badge::before {
  content: ''; width: 8px; height: 8px; background: #f59e0b;
  border-radius: 50%; animation: cd-blink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(245,158,11,0.6);
}
.cd-headline-title {
  font-size: 28px; font-weight: 700; color: #e6edf3;
  line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.5px;
}
.cd-headline-title a { color: inherit; text-decoration: none; }
.cd-headline-title a:hover { color: #f59e0b; }
.cd-headline-excerpt {
  font-size: 15px; color: #7d8590; line-height: 1.7; margin-bottom: 20px;
}
.cd-headline-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: #484f58;
}
.cd-headline-meta-tag {
  padding: 3px 10px; background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 4px; color: #f59e0b; font-weight: 600;
  font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ===== 左侧主面板区 ===== */
.cd-main-panels {
  display: flex; flex-direction: column; gap: 16px;
}

/* ===== 面板通用 ===== */
.cd-panel {
  background: #161b22;
  border: 1px solid rgba(48,54,61,0.6);
  border-radius: 12px; overflow: hidden;
}
.cd-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(48,54,61,0.3);
}
.cd-panel-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #e6edf3;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.cd-panel-icon {
  width: 20px; height: 20px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.cd-panel-icon.match { background: rgba(63,185,80,0.15); color: #3fb950; }
.cd-panel-icon.player { background: rgba(59,130,246,0.15); color: #3b82f6; }
.cd-panel-icon.record { background: rgba(167,139,250,0.15); color: #a78bfa; }
.cd-panel-icon.news { background: rgba(245,158,11,0.15); color: #f59e0b; }

.cd-panel-count {
  font-size: 11px; color: #484f58; font-weight: 500;
  padding: 2px 8px; background: rgba(48,54,61,0.3);
  border-radius: 10px;
}

/* ===== 面板内容列表 ===== */
.cd-panel-list { padding: 4px 0; }
.cd-panel-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(48,54,61,0.15);
  transition: background 0.15s;
  text-decoration: none; color: inherit;
}
.cd-panel-item:last-child { border-bottom: none; }
.cd-panel-item:hover { background: rgba(48,54,61,0.2); }

.cd-item-thumb {
  width: 96px; height: 60px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: #21262d;
}
.cd-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.cd-panel-item:hover .cd-item-thumb img { transform: scale(1.05); }

.cd-item-info { flex: 1; min-width: 0; }
.cd-item-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 4px;
}
.cd-item-tag.match { color: #3fb950; }
.cd-item-tag.player { color: #3b82f6; }
.cd-item-tag.record { color: #a78bfa; }
.cd-item-tag.news { color: #f59e0b; }

.cd-item-title {
  font-size: 14px; font-weight: 600; color: #e6edf3;
  line-height: 1.4; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cd-panel-item:hover .cd-item-title { color: #f59e0b; }

.cd-item-excerpt {
  font-size: 12px; color: #7d8590; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 大型特色面板项 ===== */
.cd-panel-item-featured {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 0; padding: 0;
  border-bottom: 1px solid rgba(48,54,61,0.15);
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.cd-panel-item-featured:hover { background: rgba(48,54,61,0.15); }
.cd-panel-item-featured .cd-item-thumb {
  width: 100%; height: 160px; border-radius: 0;
}
.cd-panel-item-featured .cd-item-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cd-panel-item-featured .cd-item-info {
  padding: 16px 20px; display: flex; flex-direction: column; justify-content: center;
}

/* ===== 右侧边栏 ===== */
.cd-sidebar {
  display: flex; flex-direction: column; gap: 16px;
}

/* ===== 趋势排行面板 ===== */
.cd-trend-panel {
  background: #161b22;
  border: 1px solid rgba(48,54,61,0.6);
  border-radius: 12px; overflow: hidden;
}
.cd-trend-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(48,54,61,0.3);
  display: flex; align-items: center; justify-content: space-between;
}
.cd-trend-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #e6edf3;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.cd-trend-fire { font-size: 16px; }

.cd-trend-list { padding: 8px 0; }
.cd-trend-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(48,54,61,0.1);
}
.cd-trend-item:last-child { border-bottom: none; }
.cd-trend-item:hover { background: rgba(48,54,61,0.2); }

.cd-trend-rank {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.cd-trend-rank.top { background: rgba(245,158,11,0.15); color: #f59e0b; }
.cd-trend-rank.normal { background: rgba(48,54,61,0.3); color: #7d8590; }

.cd-trend-info { flex: 1; min-width: 0; }
.cd-trend-item-title {
  font-size: 13px; font-weight: 500; color: #e6edf3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.cd-trend-item:hover .cd-trend-item-title { color: #f59e0b; }
.cd-trend-item-tag {
  font-size: 10px; color: #7d8590; letter-spacing: 0.5px;
  text-transform: uppercase; margin-top: 2px;
}

/* ===== 专题分析面板 ===== */
.cd-analysis-panel {
  background: #161b22;
  border: 1px solid rgba(48,54,61,0.6);
  border-radius: 12px; overflow: hidden;
}
.cd-analysis-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(48,54,61,0.3);
  display: flex; align-items: center; gap: 8px;
}
.cd-analysis-title {
  font-size: 14px; font-weight: 700; color: #e6edf3;
  letter-spacing: 0.5px; text-transform: uppercase;
}

.cd-analysis-list { padding: 8px 0; }
.cd-analysis-item {
  display: flex; gap: 12px;
  padding: 12px 20px;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(48,54,61,0.1);
}
.cd-analysis-item:last-child { border-bottom: none; }
.cd-analysis-item:hover { background: rgba(48,54,61,0.2); }

.cd-analysis-thumb {
  width: 80px; height: 50px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: #21262d;
}
.cd-analysis-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-analysis-info { flex: 1; min-width: 0; }
.cd-analysis-item-title {
  font-size: 13px; font-weight: 500; color: #e6edf3;
  line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cd-analysis-item:hover .cd-analysis-item-title { color: #f59e0b; }
.cd-analysis-item-tag {
  font-size: 10px; color: #a78bfa; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; margin-top: 3px;
}

/* ===== 快讯条 ===== */
.cd-ticker {
  grid-column: 1 / -1;
  background: #161b22;
  border: 1px solid rgba(48,54,61,0.6);
  border-radius: 10px; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px;
}
.cd-ticker-label {
  font-size: 11px; font-weight: 800; color: #0d1117;
  background: #f59e0b; padding: 3px 10px; border-radius: 4px;
  letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0;
  animation: cd-blink 2s ease-in-out infinite;
}
.cd-ticker-items {
  flex: 1; overflow: hidden; position: relative; height: 20px;
}
.cd-ticker-scroll {
  display: flex; gap: 48px; white-space: nowrap;
  animation: cd-ticker-scroll 40s linear infinite;
  position: absolute;
}
@keyframes cd-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cd-ticker-item {
  font-size: 13px; color: #7d8590; text-decoration: none;
  transition: color 0.2s;
}
.cd-ticker-item:hover { color: #f59e0b; }
.cd-ticker-sep { color: #484f58; margin: 0 4px; }

/* ===== 广告容器 ===== */
.cd-ad-slot {
  grid-column: 1 / -1;
  text-align: center; padding: 16px;
  display: flex; justify-content: center;
}

/* ===== Footer ===== */
.cd-footer {
  position: relative; z-index: 1;
  background: #0d1117;
  border-top: 1px solid rgba(48,54,61,0.6);
  margin-top: 40px;
}
.cd-footer-inner {
  max-width: 1600px; margin: 0 auto;
  padding: 40px 20px 24px;
}
.cd-footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.cd-footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.cd-footer-brand-mark {
  width: 28px; height: 28px; background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #0d1117;
}
.cd-footer-brand-text { font-size: 16px; font-weight: 600; color: #e6edf3; }
.cd-footer-desc { font-size: 13px; color: #7d8590; line-height: 1.7; max-width: 360px; }

.cd-footer-heading {
  font-size: 12px; font-weight: 700; color: #e6edf3;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
}
.cd-footer-links { list-style: none; }
.cd-footer-links li { margin-bottom: 8px; }
.cd-footer-links a {
  color: #7d8590; text-decoration: none; font-size: 13px;
  transition: color 0.2s;
}
.cd-footer-links a:hover { color: #f59e0b; }

.cd-footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(48,54,61,0.3);
  font-size: 12px; color: #484f58;
}

/* ===== 手机端底部导航 ===== */
.cd-mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 101;
  height: 60px; background: rgba(13,17,23,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(48,54,61,0.6);
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  justify-content: space-around; align-items: center;
}
.cd-bottom-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #7d8590; text-decoration: none; font-size: 10px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: color .3s;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.cd-bottom-link:hover, .cd-bottom-link.active { color: #f59e0b; }
.cd-bottom-icon { font-size: 18px; }

/* ===== 静态页面 ===== */
.cd-static-page { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }
.cd-static-back { margin-bottom: 20px; }
.cd-back-link {
  display: inline-flex; align-items: center; gap: 6px; color: #f59e0b;
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 8px;
  background: #161b22; border: 1px solid rgba(48,54,61,0.6);
  transition: all .3s; letter-spacing: 0.5px;
}
.cd-back-link:hover { border-color: rgba(245,158,11,0.3); box-shadow: 0 0 15px rgba(245,158,11,0.1); }
.cd-static-title {
  font-size: 26px; font-weight: 700; color: #e6edf3;
  letter-spacing: 1px; margin-bottom: 20px;
}
.cd-static-content {
  background: #161b22; border: 1px solid rgba(48,54,61,0.6);
  border-radius: 12px; padding: 32px; color: #b1bac4; line-height: 1.85; font-size: 14px;
}
.cd-static-content p { margin-bottom: 14px; }
.cd-static-content strong { color: #e6edf3; font-weight: 600; }
.cd-static-content ul, .cd-static-content ol { margin: 10px 0 10px 24px; }
.cd-static-content li { margin-bottom: 6px; }
.cd-static-content a { color: #f59e0b; text-decoration: underline; }
.cd-static-content h2, .cd-static-content h3, .cd-static-content h4 {
  color: #f59e0b; margin-top: 22px; margin-bottom: 10px;
  font-weight: 600; letter-spacing: 1px;
}

/* ===== 游戏详情页 ===== */
.cd-game-detail { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.cd-game-hero {
  display: flex; gap: 28px;
  background: #161b22; border: 1px solid rgba(48,54,61,0.6);
  border-radius: 12px; padding: 24px; margin-bottom: 24px;
}
.cd-game-thumb-wrap {
  flex-shrink: 0; width: 320px; border-radius: 10px;
  overflow: hidden; border: 1px solid rgba(48,54,61,0.4);
}
.cd-game-thumb-wrap img { width: 100%; display: block; }
.cd-game-info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cd-game-title {
  font-size: 26px; font-weight: 700; color: #e6edf3;
  letter-spacing: 1px; line-height: 1.2;
}
.cd-game-desc { color: #7d8590; font-size: 14px; line-height: 1.8; }
.cd-game-play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0d1117; border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: 1px; text-transform: uppercase;
  width: fit-content; transition: transform .3s, box-shadow .3s;
}
.cd-game-play-btn:hover { transform: scale(1.04); box-shadow: 0 0 24px rgba(245,158,11,0.4); }

.cd-game-iframe {
  width: 100%; height: 640px; border-radius: 12px; overflow: hidden;
  margin-bottom: 28px; background: #0d1117;
  border: 1px solid rgba(48,54,61,0.6);
}
.cd-game-iframe iframe { width: 100%; height: 100%; border: none; }

.cd-related-section { margin-top: 40px; }
.cd-related-title {
  font-size: 16px; font-weight: 700; color: #e6edf3;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.cd-related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media(min-width:768px){ .cd-related-grid { grid-template-columns: repeat(4, 1fr); } }

.cd-related-card {
  background: #161b22; border: 1px solid rgba(48,54,61,0.6);
  border-radius: 10px; overflow: hidden;
  transition: all 0.3s; text-decoration: none; color: inherit;
}
.cd-related-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.cd-related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.cd-related-card-title { padding: 8px 10px; font-size: 12px; color: #e6edf3; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .cd-dashboard { grid-template-columns: 1fr 280px; }
}

@media (max-width: 1024px) {
  .cd-dashboard { grid-template-columns: 1fr; }
  .cd-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cd-headline { grid-template-columns: 1fr 1fr; }
  .cd-nav-status { display: none; }
}

@media (max-width: 768px) {
  .cd-headline { grid-template-columns: 1fr; min-height: auto; }
  .cd-headline-img { height: 200px; }
  .cd-headline-img::after {
    background: linear-gradient(180deg, transparent 40%, #161b22 100%);
  }
  .cd-headline-content { padding: 20px 24px; }
  .cd-headline-title { font-size: 22px; }
  .cd-sidebar { grid-template-columns: 1fr; }
  .cd-nav-links { display: none; }
  .cd-mobile-menu-btn { display: flex; }
  .cd-panel-item-featured { grid-template-columns: 1fr; }
  .cd-panel-item-featured .cd-item-thumb { min-height: 160px; }
  .cd-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .cd-game-hero { flex-direction: column; }
  .cd-game-thumb-wrap { width: 100%; max-width: 400px; }
}

@media (max-width: 640px) {
  .cd-topnav { height: 50px; }
  .cd-logo-text { font-size: 15px; }
  .cd-mobile-bottom-nav { display: flex !important; }
  .cd-dashboard { padding: 12px; gap: 12px; }
  .cd-headline-title { font-size: 20px; }
  .cd-headline-excerpt { font-size: 13px; }
  .cd-game-iframe { height: 400px; }
  .cd-static-content { padding: 20px; }
}
