/* GameHub v3 - 完整样式 */
/* ========== 基础 ========== */
:root {
  --primary: #5b8def;
  --secondary: #8b5cf6;
  --bg: #f7f8fa;
  --bg-2: #ffffff;
  --bg-3: #fafbfc;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
}

html.dark {
  --bg: #0f1419;
  --bg-2: #1a1f2e;
  --bg-3: #141925;
  --text: #e5e7eb;
  --text-2: #9ca3af;
  --text-muted: #6b7280;
  --border: #2d3748;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ========== 顶部导航 ========== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
}
.logo {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.nav-menu { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-2);
  transition: all 0.2s;
}
.nav-link:hover { background: var(--bg-3); color: var(--text); }
.nav-link.active { color: var(--primary); background: rgba(91,141,239,0.1); font-weight: 600; }

.search-wrap { position: relative; flex: 0 1 280px; }
#search-input {
  width: 100%; padding: 8px 14px 8px 36px;
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--bg-3); color: var(--text); font-size: 14px;
  outline: none; transition: all 0.2s;
}
#search-input:focus { border-color: var(--primary); background: var(--bg-2); box-shadow: 0 0 0 3px rgba(91,141,239,0.1); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
#search-suggest {
  position: absolute; top: 110%; left: 0; right: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 100; display: none; max-height: 400px; overflow: auto;
}
.suggest-item { padding: 10px 14px; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.suggest-item:hover { background: var(--bg-3); color: var(--primary); }
.suggest-item.suggest-all { color: var(--primary); font-weight: 600; border-top: 1px solid var(--border); }

#dark-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 18px; transition: background 0.2s;
}
#dark-toggle:hover { background: var(--bg-3); }

.user-area { display: flex; align-items: center; gap: 8px; }
.user-menu { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; }
.user-menu:hover { background: var(--bg-3); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.user-name { font-size: 13px; font-weight: 600; }
.btn-publish, .btn-login {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; transition: all 0.2s;
}
.btn-publish:hover, .btn-login:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-logout { padding: 4px 8px; border-radius: 6px; color: var(--text-muted); font-size: 16px; }
.btn-logout:hover { color: var(--danger); }

.nav-mobile-toggle { display: none; padding: 8px 12px; font-size: 18px; }

/* ========== 主区 ========== */
main { min-height: calc(100vh - 200px); }
.section { max-width: 1280px; margin: 0 auto; padding: 40px 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-title-bar { width: 4px; height: 22px; background: linear-gradient(180deg, var(--primary), var(--secondary)); border-radius: 2px; }
.sub-title { font-size: 16px; font-weight: 600; margin: 24px 0 12px; color: var(--text-2); }
.more-link { color: var(--primary); font-size: 14px; }
.more-link:hover { text-decoration: underline; }

/* ========== Hero ========== */
.hero {
  height: 380px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 40px;
}
.hero-content { text-align: center; color: white; max-width: 720px; padding: 0 20px; }
.hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-tag {
  padding: 4px 12px; background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px); border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg-3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }
.btn-large { padding: 14px 28px; font-size: 16px; }

/* ========== 卡片网格 ========== */
.games-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.game-card {
  position: relative; height: 180px; border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s;
}
.game-card:hover { transform: translateY(-4px); }
.game-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(0); transition: transform 0.5s;
}
.game-card:hover .game-card-bg { transform: scale(1.1); }
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}
.game-card-content {
  position: relative; padding: 16px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white;
}
.game-card-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.game-card-desc { font-size: 13px; opacity: 0.85; margin-bottom: 8px; }
.game-card-meta { display: flex; gap: 12px; font-size: 12px; }

.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.card-cover {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: white;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
}
.card-badge.diff-新手 { background: rgba(16,185,129,0.8); }
.card-badge.diff-进阶 { background: rgba(245,158,11,0.8); }
.card-badge.diff-大神 { background: rgba(239,68,68,0.8); }
.card-info { padding: 12px; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { font-size: 12px; color: var(--text-2); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-muted); }
.card-meta span:nth-child(2) { margin-left: auto; }

.video-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.video-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.video-cover {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #1a1a1a;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-duration {
  position: absolute; bottom: 6px; right: 6px;
  padding: 2px 6px; background: rgba(0,0,0,0.8);
  color: white; border-radius: 4px; font-size: 11px; font-weight: 600;
}
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: white; opacity: 0;
  background: rgba(0,0,0,0.3); transition: opacity 0.3s;
}
.video-card:hover .video-play { opacity: 1; }
.video-info { padding: 12px; }
.video-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 8px; font-size: 12px; color: var(--text-muted); }
.video-meta span:last-child { margin-left: auto; }

/* ========== 资讯列表 ========== */
.news-list { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.news-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--bg-3); }
.news-tag {
  flex-shrink: 0; padding: 2px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600; color: white;
  background: var(--primary); min-width: 70px; text-align: center;
}
.news-tag.tag-活动 { background: #f59e0b; }
.news-tag.tag-版本更新 { background: #ef4444; }
.news-tag.tag-赛事 { background: #8b5cf6; }
.news-tag.tag-公告 { background: #10b981; }
.news-content { flex: 1; min-width: 0; }
.news-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.news-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }

/* ========== 攻略详情 ========== */
.guide-detail { max-width: 1280px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.guide-detail .breadcrumb { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.guide-detail .breadcrumb a { color: var(--primary); }
.guide-detail-cover { grid-column: 1 / -1; aspect-ratio: 21/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.guide-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.guide-detail-header { grid-column: 1 / -1; padding: 16px 0; }
.guide-detail-title { font-size: 28px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.guide-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.guide-detail-meta .badge { padding: 2px 8px; background: var(--bg-3); border-radius: 4px; }
.badge.diff-新手 { background: rgba(16,185,129,0.2) !important; color: var(--success) !important; }
.badge.diff-进阶 { background: rgba(245,158,11,0.2) !important; color: var(--warning) !important; }
.badge.diff-大神 { background: rgba(239,68,68,0.2) !important; color: var(--danger) !important; }
.guide-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.btn-action:hover { background: var(--bg-2); border-color: var(--primary); }
.btn-action.active { background: var(--primary); color: white; border-color: var(--primary); }

.markdown-body {
  grid-column: 1;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  font-size: 15px; line-height: 1.8;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  margin: 24px 0 12px; font-weight: 700; line-height: 1.4;
}
.markdown-body h1 { font-size: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.markdown-body h2 { font-size: 20px; padding-left: 12px; border-left: 4px solid var(--primary); }
.markdown-body h3 { font-size: 17px; }
.markdown-body p { margin: 12px 0; }
.markdown-body strong { color: var(--primary); font-weight: 700; }
.markdown-body ul, .markdown-body ol { margin: 12px 0; padding-left: 24px; }
.markdown-body li { margin: 6px 0; }
.markdown-body blockquote { padding: 12px 16px; background: var(--bg-3); border-left: 4px solid var(--warning); border-radius: 4px; color: var(--text-2); margin: 12px 0; }
.markdown-body code { padding: 2px 6px; background: var(--bg-3); border-radius: 3px; font-size: 13px; color: var(--danger); }
.markdown-body pre { background: #1a1a1a; color: #e5e7eb; padding: 16px; border-radius: 6px; overflow-x: auto; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.markdown-body th, .markdown-body td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.markdown-body th { background: var(--bg-3); font-weight: 600; }

.guide-sidebar { grid-column: 2; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.sidebar-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover .sidebar-item-title { color: var(--primary); }
.sidebar-rank {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px;
  background: var(--bg-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.sidebar-rank.top { background: var(--danger); color: white; }
.sidebar-item-title { line-height: 1.4; flex: 1; }
.sidebar-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.author-card .author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.author-name { font-weight: 600; margin-bottom: 4px; }
.author-bio { font-size: 12px; color: var(--text-2); }

/* ========== 评论区 ========== */
.comments-section { max-width: calc(1280px - 320px - 32px); margin: 0 auto; padding: 24px 20px; }
.comment-form { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.comment-form textarea {
  width: 100%; min-height: 80px; padding: 12px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px;
  resize: vertical; outline: none;
  transition: border 0.2s;
}
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.comment-tip { font-size: 12px; color: var(--text-muted); }
.comment-item {
  display: flex; gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-name { font-weight: 600; font-size: 13px; }
.comment-time { font-size: 11px; color: var(--text-muted); }
.comment-pin { font-size: 11px; color: var(--warning); }
.comment-content { font-size: 14px; line-height: 1.6; margin-bottom: 6px; white-space: pre-wrap; }
.comment-actions { display: flex; gap: 12px; }
.comment-action { font-size: 12px; color: var(--text-2); padding: 2px 6px; border-radius: 4px; }
.comment-action:hover { color: var(--primary); background: var(--bg-3); }
.comment-action.active { color: var(--primary); }
.comment-replies { margin-top: 12px; padding-left: 20px; border-left: 2px solid var(--border); }

/* ========== 热门榜 ========== */
.hot-list { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hot-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: var(--bg-3); }
.hot-rank {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.hot-rank.top { background: linear-gradient(135deg, #ef4444, #f59e0b); color: white; }
.hot-cover { flex-shrink: 0; width: 80px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.hot-cover img { width: 100%; height: 100%; object-fit: cover; }
.hot-info { flex: 1; min-width: 0; }
.hot-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-meta { font-size: 12px; color: var(--text-2); }

/* ========== 过滤栏 ========== */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 16px 20px 0; }
.filter-select {
  padding: 8px 14px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text);
  border-radius: 8px; font-size: 13px; cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--primary); }

/* ========== 分页 ========== */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination button {
  padding: 8px 14px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text);
  border-radius: 6px; font-size: 13px;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) { background: var(--bg-3); border-color: var(--primary); }
.pagination button.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
.modal {
  position: relative;
  background: var(--bg-2); border-radius: var(--radius);
  padding: 32px; width: 90%; max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; color: var(--text-muted);
}
.modal-close:hover { background: var(--bg-3); color: var(--text); }
.modal h2 { font-size: 22px; margin-bottom: 20px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-size: 13px; font-weight: 600; }
.auth-form input {
  padding: 10px 14px; border: 1px solid var(--border);
  background: var(--bg-3); color: var(--text);
  border-radius: 8px; font-size: 14px;
  outline: none; transition: border 0.2s;
}
.auth-form input:focus { border-color: var(--primary); }
.auth-toggle { font-size: 13px; color: var(--text-2); text-align: center; margin-top: 8px; }
.auth-toggle a { color: var(--primary); font-weight: 600; }
.auth-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }

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

/* ========== Toast ========== */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px; background: var(--bg-2);
  color: var(--text); border-radius: 8px;
  box-shadow: var(--shadow-lg); z-index: 9999;
  font-size: 14px; font-weight: 500;
  opacity: 0; transition: all 0.3s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--primary); }

/* ========== 游戏 Hero ========== */
.game-hero {
  height: 320px; background-size: cover; background-position: center;
  display: flex; align-items: center;
  margin-bottom: 40px;
}
.game-hero-content { max-width: 1280px; margin: 0 auto; padding: 0 20px; color: white; }
.game-hero-platform { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.game-hero-content h1 { font-size: 48px; font-weight: 800; margin: 8px 0; }
.game-hero-content h1 small { font-size: 18px; opacity: 0.7; font-weight: 400; }
.game-hero-content p { font-size: 15px; opacity: 0.9; max-width: 600px; margin-bottom: 16px; }
.game-hero-meta { display: flex; gap: 12px; margin-bottom: 16px; }
.game-hero-meta .badge { padding: 4px 12px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 20px; font-size: 13px; }
.game-hero-actions { display: flex; gap: 12px; }

/* ========== 表单（发布攻略）========== */
.publish-page, .profile-page, .about-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.publish-page h1 { font-size: 28px; margin-bottom: 8px; }
.publish-tip { color: var(--text-2); margin-bottom: 24px; }
.publish-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 600; }
.form-row input, .form-row textarea, .form-row select {
  padding: 10px 14px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text);
  border-radius: 8px; font-size: 14px; outline: none;
  transition: border 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--primary); }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ========== Profile ========== */
.profile-header {
  display: flex; align-items: center; gap: 24px; padding: 32px;
  background: linear-gradient(135deg, rgba(91,141,239,0.1), rgba(139,92,246,0.1));
  border-radius: var(--radius); margin-bottom: 24px;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
}
.profile-info h1 { font-size: 28px; margin-bottom: 4px; }
.profile-username { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.profile-bio { font-size: 14px; color: var(--text-2); }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-num { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* ========== About ========== */
.about-page h1 { font-size: 32px; margin-bottom: 8px; }
.about-lead { font-size: 16px; color: var(--text-2); margin-bottom: 24px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 32px; }
.about-page h2 { font-size: 20px; margin: 24px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.about-page ul { padding-left: 20px; line-height: 2; }
.about-page ul li { color: var(--text-2); }
.about-page ul li b { color: var(--text); }

/* ========== Empty / Error ========== */
.empty, .empty-state, .error-page { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-state h2, .error-page h2 { font-size: 24px; margin-bottom: 8px; color: var(--text); }
.error-page h2 { font-size: 64px; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ========== 骨架屏 ========== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--border) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 220px; }
.skeleton-h1 { height: 32px; margin: 16px 0; }
.skeleton-h2 { height: 24px; width: 200px; margin-bottom: 16px; }
.skeleton-meta { height: 20px; }
.skeleton-text { height: 16px; margin: 8px 0; }
.skeleton-row { height: 60px; margin: 8px 0; }
.skeleton-cover { height: 200px; margin: 16px 0; }
.skeleton-comment { height: 80px; margin: 12px 0; border-radius: 8px; }

/* ========== Footer ========== */
footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 20px; }
.footer-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col p { font-size: 12px; color: var(--text-2); margin: 4px 0; }
.footer-col a { font-size: 12px; color: var(--text-2); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { max-width: 1280px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .beian-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.footer-bottom .beian-icon { width: 14px; height: 14px; opacity: 0.8; }
.footer-bottom .footer-disclaimer { display: block; margin-top: 8px; color: var(--text-muted); }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .search-wrap { flex: 1; }
  .hero h1 { font-size: 28px; }
  .hero { height: 320px; }
  .guide-detail { grid-template-columns: 1fr; }
  .markdown-body, .guide-sidebar { grid-column: 1; }
  .comments-section { max-width: 100%; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .game-hero-content h1 { font-size: 32px; }
  .game-hero { height: 280px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid, .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-container { grid-template-columns: 1fr; }
  .nav-container { padding: 8px 12px; gap: 8px; }
  .section { padding: 24px 12px; }
  .section-title { font-size: 18px; }
  .user-name { display: none; }
}
