* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Microsoft YaHei", sans-serif; color: #1f2937; background: #f7f8fa; line-height: 1.6; }
a { color: #2563eb; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 16px; flex-wrap: wrap; }
.brand { font-size: 20px; font-weight: 700; color: #111827; }
.site-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: #374151; font-size: 14px; }
.site-nav a:hover { color: #2563eb; }
.search { margin-left: auto; display: flex; }
.search input { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 8px; width: 180px; }
.search button { padding: 8px 14px; border: none; background: #2563eb; color: #fff; border-radius: 8px; cursor: pointer; }

/* Hero */
.hero { padding: 32px 0; }
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero-desc { color: #6b7280; }

/* 标题与面包屑 */
.section-title { font-size: 20px; margin: 24px 0 16px; }
.breadcrumb { font-size: 13px; color: #6b7280; padding: 16px 0; }

/* 标签 chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.chip { padding: 8px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 14px; color: #374151; }
.chip:hover { border-color: #2563eb; color: #2563eb; }

/* 游戏卡片网格 */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.card-cover img { width: 100%; height: 140px; object-fit: cover; display: block; }
.card-cover-bg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e3a8a, #7c3aed); }
.card-cover-bg .card-icon { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.card-body { padding: 12px; flex: 1; }
.card-body h3 { font-size: 15px; margin-bottom: 6px; }
.brief { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #6b7280; }
.score { color: #f59e0b; font-weight: 600; }
.tag { padding: 2px 8px; background: #eff6ff; border-radius: 6px; color: #2563eb; }

/* 排行榜 */
.rank-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rank-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.rank-no { font-weight: 700; color: #9ca3af; width: 28px; }
.rank-icon { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.rank-info { flex: 1; }
.rank-info h3 { font-size: 15px; margin-bottom: 4px; }
.rank-info p { font-size: 13px; color: #6b7280; }

/* 详情 */
.detail { background: #fff; border-radius: 12px; padding: 24px; margin: 16px 0; }
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.detail-icon { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.detail-brief { color: #4b5563; margin-bottom: 16px; }
.detail-content { font-size: 15px; line-height: 1.8; }
.detail-content h2 { font-size: 17px; margin: 18px 0 10px; }
.detail-content p { margin-bottom: 12px; }
.detail-tags { margin-top: 16px; }

/* 链接列表 */
.link-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.link-list a { color: #374151; }
.link-list a:hover { color: #2563eb; }

/* 状态/提示 */
.empty { color: #6b7280; padding: 20px 0; }
.empty-page { text-align: center; padding: 60px 0; }
.empty-page h1 { font-size: 40px; margin-bottom: 12px; }
.empty-page .btn { margin-top: 16px; display: inline-block; }

/* 分页 */
.pagination { margin: 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; background: #fff; }
.pagination a.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.pagination .disabled { color: #9ca3af; }

/* 底部 */
.site-footer { margin-top: 40px; padding: 24px 0; background: #1f2937; color: #9ca3af; font-size: 13px; }
.site-footer p { margin: 4px 0; }

/* 响应式 */
@media (max-width: 992px) {
    .game-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { gap: 10px; }
    .search { margin-left: 0; width: 100%; }
    .search input { flex: 1; width: auto; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
    .link-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .game-grid { grid-template-columns: 1fr; }
}

/* 无图标占位 */
.cover-placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    background: linear(135deg, #2563eb, #7c3aed);
}
.rank-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear(135deg, #2563eb, #7c3aed);
}
.card-action { margin-top: 10px; }
.chip.active { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.detail-cover { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin: 12px 0; }

/* 底部导航 */
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.footer-nav a { color: #cbd5e1; font-size: 13px; }
.footer-nav a:hover { color: #fff; }
