/* ==========================================
   GameNet 攻略增强样式
   新增：图片卡片、进度条、星级评分、技能树、术语表等
   ========================================== */

/* === 攻略内容容器 === */
.guide-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === 三语切换标签 === */
.lang-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.lang-tab {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.lang-tab:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.lang-tab.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

.lang-tab .tab-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}

.lang-tab.active .tab-badge {
  background: rgba(0,0,0,0.2);
}

/* === 语言版本容器 === */
.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 信息卡片 === */
.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === 图片卡片 === */
.image-card {
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
}

.image-card-img {
  width: 100%;
  height: auto;
  display: block;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  min-height: 200px;
  object-fit: cover;
}

.image-card-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.image-card-caption .caption-source {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  opacity: 0.7;
}

/* === 视频嵌入 === */
.video-embed {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}

.video-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 0.75rem;
}

.video-placeholder .play-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.video-placeholder .video-title {
  color: var(--text-secondary);
  font-weight: 500;
}

/* === 星级评分 === */
.star-rating {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}

.star {
  color: #f59e0b;
  font-size: 1.1rem;
}

.star.empty {
  color: rgba(255,255,255,0.15);
}

.star.half {
  position: relative;
  color: rgba(255,255,255,0.15);
}

.star.half::before {
  content: "★";
  position: absolute;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: #f59e0b;
}

.rating-value {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === 进度条 === */
.stat-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.stat-bar-label {
  width: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.stat-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-gradient);
  transition: width 1s ease;
}

.stat-bar-value {
  width: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

/* === 标签徽章 === */
.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.15rem;
}

.badge-tag.tier-s { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.badge-tag.tier-a { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; }
.badge-tag.tier-b { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; }
.badge-tag.tier-c { background: linear-gradient(135deg, #22c55e, #10b981); color: #fff; }
.badge-tag.tier-d { background: var(--bg-hover); color: var(--text-muted); }

/* === 等级/难度标签 === */
.difficulty-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.difficulty-easy { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.difficulty-medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.difficulty-hard { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.difficulty-expert { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }

/* === 术语表表格 === */
.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.term-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.term-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.term-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.term-table .term-zh { font-weight: 500; }
.term-table .term-en { color: var(--text-secondary); }
.term-table .term-note { color: var(--text-muted); font-size: 0.85rem; }

/* === 提示框 === */
.tip-box {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1.25rem 0;
  border-left: 4px solid;
}

.tip-box.tip { background: rgba(59, 130, 246, 0.08); border-color: #3b82f6; }
.tip-box.warning { background: rgba(245, 158, 11, 0.08); border-color: #f59e0b; }
.tip-box.success { background: rgba(34, 197, 94, 0.08); border-color: #22c55e; }
.tip-box.danger { background: rgba(239, 68, 68, 0.08); border-color: #ef4444; }

.tip-box .tip-icon { font-size: 1.2rem; margin-right: 0.5rem; }
.tip-box .tip-title { font-weight: 600; margin-bottom: 0.25rem; }
.tip-box.tip .tip-title { color: #3b82f6; }
.tip-box.warning .tip-title { color: #f59e0b; }
.tip-box.success .tip-title { color: #22c55e; }
.tip-box.danger .tip-title { color: #ef4444; }

/* === 特色语言版块 === */
.feature-lang-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.feature-lang-section h3 {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === 技能树/流程图 === */
.skill-tree {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.skill-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.skill-node:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.skill-node .node-level {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.skill-node .node-level.locked { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.skill-node .node-level.unlocked { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.skill-node .node-level.key { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.skill-node .node-info { flex: 1; }
.skill-node .node-name { font-weight: 500; color: var(--text-primary); }
.skill-node .node-desc { font-size: 0.85rem; color: var(--text-muted); }

.skill-connector {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  margin-left: 13px;
}

/* === 比较表格 === */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.compare-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.compare-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.compare-table .best { background: rgba(34, 197, 94, 0.05); }
.compare-table .best-indicator { color: #22c55e; font-size: 0.8rem; }

/* === 攻略目录导航 === */
.guide-toc {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.guide-toc h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-toc ol {
  padding-left: 1.25rem;
}

.guide-toc li {
  margin: 0.5rem 0;
}

.guide-toc a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.guide-toc a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

/* === 游戏特色背景 === */
.game-bg3 .guide-header { 
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1b69 50%, #1a0a2e 100%);
  border-bottom: 3px solid #c9a84c;
}

.game-er .guide-header {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #2a0a0a 100%);
  border-bottom: 3px solid #8b0000;
}

.game-eft .guide-header {
  background: linear-gradient(135deg, #0a1a0a 0%, #1a2a1a 50%, #0d0d0d 100%);
  border-bottom: 3px solid #4a7c3f;
}

.game-bmw .guide-header {
  background: linear-gradient(135deg, #1a0505 0%, #3a1010 50%, #2a0a0a 100%);
  border-bottom: 3px solid #c9a84c;
}

.game-ff7r .guide-header {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0a1628 100%);
  border-bottom: 3px solid #c9a84c;
}

.game-hsr .guide-header {
  background: linear-gradient(135deg, #0a0520 0%, #1a1040 50%, #0a0a2a 100%);
  border-bottom: 3px solid #8b5cf6;
}

.game-vic3 .guide-header {
  background: linear-gradient(135deg, #1a0a05 0%, #3a1a0a 50%, #1a0505 100%);
  border-bottom: 3px solid #c9a84c;
}

.game-hoi4 .guide-header {
  background: linear-gradient(135deg, #050a15 0%, #0a1530 50%, #050a15 100%);
  border-bottom: 3px solid #4a6fa5;
}

/* === 攻略头部 === */
.guide-header {
  padding: 3rem 2rem;
  margin: -1.5rem -1.5rem 2rem -1.5rem;
  text-align: center;
}

.guide-header h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.guide-header .guide-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 1rem;
}

.guide-header .guide-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .guide-header { padding: 2rem 1rem; }
  .guide-header h1 { font-size: 1.6rem; }
  .guide-content { padding: 0 1rem; }
  .stat-bar { flex-direction: column; align-items: flex-start; }
  .stat-bar-label { width: auto; }
  .lang-tabs { flex-wrap: wrap; }
}