/* ===== CSS Variables ===== */
:root {
  --primary: #2b92d8;
  --primary-dark: #1f7ab8;
  --primary-light: #4aa8e8;
  --primary-bg: #e8f4fc;
  --text: #333;
  --text-light: #888;
  --text-muted: #bbb;
  --border: #eee;
  --bg: #f5f5f5;
  --white: #fff;
  --radius: 4px;
  --wrap: 1200px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
ul, ol { list-style: none; }
a { text-decoration: none; color: var(--text); transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== Container ===== */
.wrap { width: var(--wrap); margin: 0 auto; padding: 0 15px; }

/* ===== Top Bar ===== */
.top-bar { background: var(--white); border-bottom: 1px solid var(--border); height: 36px; line-height: 36px; font-size: 12px; color: #999; }
.top-bar .wrap { display: flex; justify-content: space-between; }
.top-bar a { color: #999; margin-left: 15px; }
.top-bar a:hover { color: var(--primary); }

/* ===== Header ===== */
/* ===== Navigation ===== */
/* Mobile menu toggle */
/* ===== Section Title ===== */
.section-title { display: flex; align-items: center; height: 44px; font-size: 18px; font-weight: bold; }
.section-title .fire { color: #e74c3c; margin-right: 8px; font-size: 20px; }
.section-title .title-text { color: var(--text); }
.section-title .more { margin-left: auto; font-size: 12px; color: #999; font-weight: normal; }

/* ===== Hot Games ===== */
.hot-games { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.game-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 12px; margin-bottom: 15px; }
.game-item { text-align: center; cursor: pointer; }
.game-item a { display: block; text-decoration: none; color: inherit; }
.game-item:hover .game-img { transform: scale(1.05); }
.game-img { width: 80px; height: 80px; border-radius: 14px; margin: 0 auto 6px; overflow: hidden; background: #eee; transition: transform .2s; }
.game-img img { width: 100%; height: 100%; object-fit: cover; }
.game-name { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Tags ===== */
.tags-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag-item { display: flex; align-items: center; height: 32px; border-radius: var(--radius); font-size: 12px; }
.tag-item .tag-label { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 22px; color: var(--white); border-radius: 4px 0 0 4px; font-size: 12px; font-weight: bold; }
.tag-item.hot .tag-label { background: var(--primary); }
.tag-item.soft .tag-label { background: #4db8ff; }
.tag-item .tag-links { display: flex; align-items: center; height: 32px; background: #f9f9f9; border-radius: 0 4px 4px 0; padding: 0 10px; flex-wrap: wrap; gap: 8px; }
.tag-item .tag-links a { color: #666; font-size: 12px; white-space: nowrap; display: inline-block; padding: 4px 12px; background: #fff; border: 1px solid #e0e0e0; border-radius: 3px; transition: all .2s; }
.tag-item .tag-links a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-bg); }

/* ===== Main Content ===== */
.main-content { display: flex; gap: 20px; margin-top: 15px; }
.content-left { flex: 1; min-width: 0; }
.content-right { width: 340px; flex-shrink: 0; }

/* ===== Featured Article ===== */
.featured { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.featured-inner { display: flex; padding: 20px; }
.featured-img { width: 480px; height: 280px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; margin-right: 20px; background: #eee; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0; }
.featured-info h2 { font-size: 18px; font-weight: bold; line-height: 1.4; margin-top: 8px; }
.featured-info h2 a:hover { color: var(--primary); }
.featured-info p { font-size: 15px; color: var(--text-light); line-height: 1.8; }
.featured-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

/* ===== New Games Sidebar ===== */
.new-games { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.new-games-header { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: var(--white); text-align: center; height: 44px; line-height: 44px; font-size: 18px; font-weight: bold; letter-spacing: 2px; }
.new-game-item { display: flex; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.new-game-item:last-child { border-bottom: none; }
.new-game-num { color: var(--primary); margin-right: 15px; display: flex; align-items: center; flex: 0 0 auto; }
.new-game-content { flex: 1; min-width: 0; }
.new-game-content h3 { font-size: 14px; font-weight: bold; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.new-game-content h3 a:hover { color: var(--primary); }
.new-game-content p { font-size: 12px; color: #999; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Hot Categories ===== */
.hot-categories { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-item { height: 90px; border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; background-size: cover; background-position: center; }
.category-item:hover { opacity: .9; }
.category-item::before { content: ""; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(0,0,0,.5), rgba(0,0,0,.1)); }
.category-item .cat-info { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--white); }
.category-item .cat-name { font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.category-item .cat-count { font-size: 12px; opacity: .8; }

/* ===== Strategy & News List ===== */
.strategy-section { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.strategy-featured { font-size: 18px; font-weight: bold; color: var(--primary); margin-bottom: 15px; }
.strategy-featured a { color: var(--primary); }
.strategy-featured a:hover { text-decoration: underline; }
.strategy-desc { font-size: 13px; color: var(--text-light); margin-bottom: 15px; line-height: 1.6; }
.strategy-list { columns: 2; column-gap: 30px; }
.strategy-item { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); break-inside: avoid; }
.strategy-item .st-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; margin-right: 10px; flex-shrink: 0; color: var(--white); }
.strategy-item .st-tag-攻略 { background: var(--primary); }
.strategy-item .st-tag-资讯 { background: #4db8ff; }
.strategy-item a { font-size: 13px; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strategy-item a:hover { color: var(--primary); }
.strategy-item .st-date { font-size: 12px; color: var(--text-muted); margin-left: 10px; flex-shrink: 0; }

/* ===== Hot Software ===== */
.hot-software { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.software-item { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.software-item:last-child { border-bottom: none; }
.software-icon { width: 56px; height: 56px; border-radius: 12px; margin-right: 15px; flex-shrink: 0; overflow: hidden; background: #eee; display: flex; align-items: center; justify-content: center; }
.software-icon img { width: 100%; height: 100%; object-fit: cover; }
.software-icon .icon-placeholder { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 22px; font-weight: bold; }
.software-info { flex: 1; min-width: 0; }
.software-info h3 { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.software-info h3 a:hover { color: var(--primary); }
.software-info .sw-meta { font-size: 12px; color: #999; }
.download-btn { display: inline-block; padding: 6px 20px; border: 1px solid var(--primary); color: var(--primary); border-radius: 20px; font-size: 13px; cursor: pointer; transition: all .2s; flex-shrink: 0; }
.download-btn:hover { background: var(--primary); color: var(--white); }

/* ===== Recommended Games Table ===== */
.recommend-section { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.recommend-table { width: 100%; border-collapse: collapse; }
.recommend-table th { background: #f9f9f9; padding: 10px 15px; text-align: left; font-size: 13px; font-weight: bold; color: #666; border-bottom: 2px solid var(--primary); }
.recommend-table td { padding: 10px 15px; font-size: 13px; border-bottom: 1px solid var(--border); }
.recommend-table tr:hover td { background: #fafafa; }
.recommend-table .rating { color: var(--primary); font-weight: bold; font-size: 14px; }
.recommend-table .rating-unit { font-size: 12px; color: #999; margin-left: 2px; }

/* ===== Video Section ===== */
.video-section { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-item a { display: block; text-decoration: none; color: inherit; }
.video-item:hover .video-img img { transform: scale(1.05); }
.video-img { position: relative; width: 100%; padding-top: 56%; border-radius: 6px; overflow: hidden; background: #eee; }
.video-img img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video-tag { position: absolute; left: 10px; top: 10px; background: var(--primary); color: var(--white); font-size: 11px; padding: 2px 8px; border-radius: 3px; }
.video-info { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 0; }
.video-title { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-right: 8px; }
.video-more { font-size: 13px; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
.video-more:hover { text-decoration: underline; }

/* ===== Placeholder ===== */
.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #999; background: linear-gradient(135deg, #e8e8e8, #f5f5f5); }

/* ===== Download Content ===== */
.download-content { display: flex; gap: 20px; margin-top: 15px; }
.download-left { flex: 1; min-width: 0; background: var(--white); padding: 20px; border-radius: var(--radius); }
.download-right { width: 340px; flex-shrink: 0; background: var(--white); padding: 20px; border-radius: var(--radius); }
.download-left .section-title,
.download-right .section-title { margin-bottom: 15px; }

/* Download Grid — 4 columns */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.download-item a { display: flex; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 6px; transition: background .2s; }
.download-item a:hover { background: #f9f9f9; }
.download-item .dl-icon { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; flex-shrink: 0; margin-right: 10px; background: #eee; }
.download-item .dl-icon img { width: 100%; height: 100%; object-fit: cover; }
.download-item .dl-info { flex: 1; min-width: 0; }
.download-item .dl-name { font-size: 13px; font-weight: bold; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.download-item .dl-type { font-size: 11px; color: #999; margin-bottom: 2px; }
.download-item .dl-stars { font-size: 11px; color: #f5a623; letter-spacing: 1px; }

/* Hot Download List */
.hot-download-list { display: flex; flex-direction: column; }
.hot-dl-item { border-bottom: 1px solid var(--border); }
.hot-dl-item:last-child { border-bottom: none; }
.hot-dl-item a { display: flex; align-items: center; text-decoration: none; color: inherit; padding: 14px 0; }
.hot-dl-item a:hover { opacity: .85; }
.hot-dl-icon { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; margin-right: 12px; background: #eee; }
.hot-dl-icon img { width: 100%; height: 100%; object-fit: cover; }
.hot-dl-info { flex: 1; min-width: 0; }
.hot-dl-name { font-size: 14px; font-weight: bold; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.hot-dl-platform { font-size: 12px; color: #999; }
.hot-dl-platform .android-icon { color: #4CAF50; }
.hot-dl-btn { display: inline-block; padding: 5px 18px; border: 1px solid var(--primary); color: var(--primary); border-radius: 4px; font-size: 13px; flex-shrink: 0; transition: all .2s; }
.hot-dl-item a:hover .hot-dl-btn { background: var(--primary); color: var(--white); }

/* ===== Album Section ===== */
.album-section { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.album-content { display: flex; gap: 20px; }
.album-left { flex: 1; min-width: 0; }
.album-right { width: 280px; flex-shrink: 0; }

/* Album Featured Card */
.album-featured { display: flex; background: #f0f8ff; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.album-featured-img { width: 260px; flex-shrink: 0; background: #d0e8ff; }
.album-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.album-featured-info { flex: 1; padding: 20px; display: flex; flex-direction: column; }
.album-featured-info h3 { font-size: 18px; font-weight: bold; color: var(--text); margin-bottom: 10px; }
.album-enter-btn { display: inline-block; padding: 5px 16px; border: 1px solid var(--primary); color: var(--primary); border-radius: 4px; font-size: 13px; align-self: flex-start; margin-bottom: 12px; transition: all .2s; }
.album-enter-btn:hover { background: var(--primary); color: var(--white); }
.album-featured-info p { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* Album Apps Row */
.album-apps { display: flex; align-items: center; gap: 10px; }
.album-arrow { width: 30px; height: 30px; border: 1px solid #ddd; background: var(--white); border-radius: 50%; cursor: pointer; font-size: 14px; color: #999; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.album-arrow:hover { border-color: var(--primary); color: var(--primary); }
.album-app-list { display: flex; gap: 15px; flex: 1; overflow: hidden; }
.album-app-item { text-align: center; flex-shrink: 0; width: 80px; }
.album-app-item a { display: block; text-decoration: none; color: inherit; }
.album-app-item a:hover .album-app-icon { transform: scale(1.05); }
.album-app-icon { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; margin: 0 auto 6px; background: #eee; transition: transform .2s; }
.album-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.album-app-name { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Album Right — 应用专辑 */
.album-right-title { text-align: center; font-size: 16px; font-weight: bold; color: var(--text); padding: 12px 0; border-bottom: 2px solid var(--primary); margin-bottom: 10px; }
.album-right-title .diamond { color: var(--primary); font-size: 12px; }
.album-list { list-style: none; }
.album-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.album-list li a { color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }
.album-list li a:hover { color: var(--primary); }
.album-list li span { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* ===== Soft + Game Content ===== */
.soft-game-content { display: flex; gap: 20px; margin-top: 15px; }
.soft-left { flex: 1; min-width: 0; background: var(--white); padding: 20px; border-radius: var(--radius); }
.soft-right { width: 340px; flex-shrink: 0; background: var(--white); padding: 20px; border-radius: var(--radius); }

/* Soft Grid — 4 columns */
.soft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.soft-item a { display: flex; align-items: center; text-decoration: none; color: inherit; padding: 8px; border-radius: 6px; transition: background .2s; }
.soft-item a:hover { background: #f9f9f9; }
.soft-item .soft-icon { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; flex-shrink: 0; margin-right: 10px; background: #eee; }
.soft-item .soft-icon img { width: 100%; height: 100%; object-fit: cover; }
.soft-item .soft-info { flex: 1; min-width: 0; }
.soft-item .soft-name { font-size: 13px; font-weight: bold; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.soft-item .soft-type { font-size: 11px; color: #999; margin-bottom: 2px; }
.soft-item .soft-stars { font-size: 11px; color: #f5a623; letter-spacing: 1px; }

/* Hot Rank List */
.hot-rank-list { display: flex; flex-direction: column; }
.hot-rank-item { border-bottom: 1px solid var(--border); }
.hot-rank-item:last-child { border-bottom: none; }
.hot-rank-item a { display: flex; align-items: center; text-decoration: none; color: inherit; padding: 13px 0; }
.hot-rank-item a:hover .rank-title { color: var(--primary); }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; font-size: 16px; font-weight: bold; margin-right: 12px; flex-shrink: 0; color: var(--white); }
.rank-high { background: #e74c3c; }
.rank-mid { background: #f39c12; }
.rank-low { background: #3498db; }
.rank-title { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Three Column Section ===== */
.three-col-section { display: flex; gap: 20px; margin-top: 15px; }
.three-col-section > div { background: var(--white); padding: 20px; border-radius: var(--radius); }
.update-col { flex: 1; min-width: 0; }
.news-col { flex: 1; min-width: 0; }
.guide-col { width: 280px; flex-shrink: 0; }

/* Update List */
.update-list { display: flex; flex-direction: column; }
.update-item { border-bottom: 1px dashed var(--border); }
.update-item:last-child { border-bottom: none; }
.update-item a { display: flex; align-items: center; text-decoration: none; color: inherit; padding: 14px 0; }
.update-item a:hover .update-title { color: var(--primary); }
.update-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 5px; background: var(--primary); color: var(--white); font-size: 14px; font-weight: bold; margin-right: 12px; flex-shrink: 0; }
.update-img { width: 90px; height: 60px; border-radius: 4px; overflow: hidden; flex-shrink: 0; margin-right: 12px; background: #eee; }
.update-img img { width: 100%; height: 100%; object-fit: cover; }
.update-info { flex: 1; min-width: 0; }
.update-title { font-size: 14px; font-weight: bold; color: var(--text); line-height: 1.5; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.update-date { font-size: 12px; color: var(--text-muted); }

/* News Column */
.news-featured { margin-bottom: 15px; }
.news-lead { font-size: 14px; font-weight: bold; color: var(--text); margin-bottom: 10px; line-height: 1.6; }
.news-featured-inner { display: flex; gap: 12px; }
.news-featured-img { width: 140px; height: 90px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #eee; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-text { flex: 1; }
.news-featured-text p { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.news-list { list-style: none; }
.news-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.news-list li::before { content: "·"; color: var(--primary); font-weight: bold; margin-right: 8px; }
.news-list li a { color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }
.news-list li a:hover { color: var(--primary); }
.news-list li span { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Guide Column */
.guide-banner { width: 100%; height: 120px; border-radius: 6px; overflow: hidden; margin-bottom: 15px; background: #eee; }
.guide-banner img { width: 100%; height: 100%; object-fit: cover; }
.guide-list { list-style: none; }
.guide-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.guide-list li:last-child { border-bottom: none; }
.guide-list li a { display: flex; align-items: center; font-size: 13px; color: var(--text); text-decoration: none; }
.guide-list li a:hover { color: var(--primary); }
.guide-tag { display: inline-block; padding: 1px 6px; border: 1px solid var(--primary); color: var(--primary); border-radius: 3px; font-size: 11px; margin-right: 8px; flex-shrink: 0; }

/* ===== Game Images Section ===== */
.game-images-section { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.game-images-grid { display: flex; gap: 12px; }
.game-img-large { flex: 2; min-width: 0; height: 360px; }
.game-img-large a { display: block; position: relative; border-radius: 6px; overflow: hidden; text-decoration: none; height: 100%; }
.game-img-large img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-img-large .game-img-title { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: var(--white); padding: 30px 15px 12px; font-size: 15px; font-weight: bold; }
.game-img-small-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; height: 360px; }
.game-img-small { min-height: 0; }
.game-img-small a { display: block; position: relative; border-radius: 6px; overflow: hidden; text-decoration: none; height: 100%; }
.game-img-small img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-img-small .game-img-title { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: var(--white); padding: 20px 10px 8px; font-size: 13px; font-weight: bold; }

/* ===== Ranking Section ===== */
.ranking-section { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.ranking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Ranking Column Title */
.ranking-col-title { text-align: center; padding: 10px 0; border-bottom: 2px solid var(--border); margin-bottom: 12px; }
.diamond-line { font-size: 15px; font-weight: bold; color: var(--text); }
.diamond { color: var(--primary); font-size: 12px; }

/* Ranking List */
.ranking-list { display: flex; flex-direction: column; }
.ranking-item { border-bottom: 1px dashed var(--border); }
.ranking-item:last-child { border-bottom: none; }
.ranking-item > a { display: flex; align-items: center; text-decoration: none; color: inherit; padding: 9px 0; }
.ranking-item > a:hover .rank-name { color: var(--primary); }

/* Rank Numbers */
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; font-size: 12px; font-weight: bold; margin-right: 8px; flex-shrink: 0; color: var(--white); }
.rank-red { background: #e74c3c; }
.rank-green { background: #27ae60; }
.rank-purple { background: #9b59b6; }

/* Rank Name/Type/Size */
.rank-name { flex: 1; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-type { font-size: 12px; color: #999; margin: 0 8px; flex-shrink: 0; }
.rank-size { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Featured Ranking Card */
.ranking-featured > a { padding: 8px 0; }
.rank-featured-card { display: flex; align-items: center; flex: 1; min-width: 0; }
.rank-featured-img { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; margin-right: 10px; background: #eee; }
.rank-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-featured-info { flex: 1; min-width: 0; }
.rank-featured-name { font-size: 14px; font-weight: bold; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.rank-featured-meta { font-size: 12px; color: #999; }
.rank-dl-btn { display: inline-block; padding: 4px 14px; border: 1px solid var(--primary); color: var(--primary); border-radius: 4px; font-size: 12px; flex-shrink: 0; transition: all .2s; margin-left: 8px; }
.rank-dl-btn:hover { background: var(--primary); color: var(--white); }

/* ===== Friend Links ===== */
.friend-links { background: var(--white); padding: 20px; margin-top: 15px; border-radius: var(--radius); }
.friend-link-list { display: flex; flex-wrap: wrap; gap: 0; padding: 10px 0 0; }
.friend-link-list a { font-size: 13px; color: #666; padding: 0 15px; border-right: 1px solid #ddd; line-height: 1; }
.friend-link-list a:last-child { border-right: none; }
.friend-link-list a:first-child { padding-left: 0; }
.friend-link-list a:hover { color: var(--primary); }

/* ===== Footer ===== */
/* ===================================================================
   RESPONSIVE — Tablet (≤ 1024px)
   =================================================================== */
@media (max-width: 1024px) {
  .wrap { width: 100%; }
  .game-grid { grid-template-columns: repeat(5, 1fr); }
  .main-content { flex-direction: column; }
  .content-right { width: 100%; }
  .featured-inner { flex-direction: column; }
  .featured-img { width: 100%; height: 220px; margin-right: 0; margin-bottom: 15px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .strategy-list { columns: 2; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .download-content { flex-direction: column; }
  .download-right { width: 100%; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .album-content { flex-direction: column; }
  .album-right { width: 100%; }
  .soft-game-content { flex-direction: column; }
  .soft-right { width: 100%; }
  .soft-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col-section { flex-direction: column; }
  .guide-col { width: 100%; }
  .game-images-grid { flex-direction: column; }
  .game-img-large, .game-img-small-grid { height: 300px; }
  .game-img-large img { height: 220px; }
  .ranking-grid { grid-template-columns: 1fr; gap: 15px; }
  .friend-link-list a { border-right: none; padding: 4px 0; }
}

/* ===================================================================
   RESPONSIVE — Mobile landscape / small tablet (≤ 768px)
   =================================================================== */
@media (max-width: 768px) {
  .top-bar .wrap { flex-direction: column; height: auto; padding: 6px 0; text-align: center; }
  .top-bar { height: auto; line-height: normal; }
  .top-bar a { margin: 0 8px; }
.header-banner { width: 100%; max-width: 460px; height: 50px; font-size: 14px; }

  /* Nav becomes hamburger */
.nav .wrap { flex-wrap: wrap; }
.nav-list { display: none; width: 100%; flex-direction: column; background: var(--primary); }
.nav-list li a { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 15px; }
.nav-search input { flex: 1; width: auto; }

  .game-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .game-img { width: 60px; height: 60px; border-radius: 12px; }

  .tag-item { flex-wrap: wrap; height: auto; }
  .tag-item .tag-links { flex-wrap: wrap; height: auto; padding: 5px 10px; }
  .tag-item .tag-links a { margin: 3px 5px; }

  .strategy-list { columns: 1; }
  .featured-img { height: 200px; }
  .featured-info h2 { font-size: 16px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-item { height: 70px; }

  .new-game-item { padding: 12px 15px; }

  .recommend-table th:nth-child(3),
  .recommend-table td:nth-child(3) { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .download-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .album-featured { flex-direction: column; }
  .album-featured-img { width: 100%; height: 180px; }
  .album-app-list { gap: 10px; }
  .album-app-item { width: 65px; }
  .album-app-icon { width: 50px; height: 50px; }
  .soft-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .update-img { width: 70px; height: 50px; }
  .news-featured-img { width: 110px; height: 70px; }
  .game-img-large, .game-img-small-grid { height: 240px; }
  .game-img-large img { height: 180px; }
  .game-img-small-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rank-featured-img { width: 46px; height: 46px; }
  .rank-featured-name { font-size: 13px; }
}

/* ===================================================================
   RESPONSIVE — Mobile (≤ 480px)
   =================================================================== */
@media (max-width: 480px) {
  body { font-size: 13px; }
.logo-text span { font-size: 16px; }
.header-banner { height: 44px; font-size: 13px; }
.section-title { font-size: 16px; height: 38px; }

  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hot-games .game-grid .game-item:nth-child(n+9) { display: none; }
  .tags-row { display: none; }
  .strategy-list .strategy-item:nth-child(n+9) { display: none; }
  .game-img { width: 50px; height: 50px; border-radius: 10px; }
  .game-name { font-size: 11px; }

  .hot-games, .hot-categories, .strategy-section, .hot-software, .recommend-section { padding: 15px; }

  .featured-inner { padding: 15px; }
  .featured-img { height: 160px; }
  .featured-info h2 { font-size: 15px; }
  .featured-info p { font-size: 12px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-item { height: 60px; }
  .category-item .cat-name { font-size: 14px; }

  .strategy-featured { font-size: 16px; }
  .strategy-item a { font-size: 12px; }

  .software-item { flex-wrap: wrap; gap: 10px; }
  .software-icon { width: 48px; height: 48px; }
  .software-icon .icon-placeholder { width: 48px; height: 48px; font-size: 18px; }
  .software-info { width: calc(100% - 63px); }
  .download-btn { width: 100%; text-align: center; margin-top: 5px; }

  .new-game-content h3 { font-size: 13px; }

  .recommend-table th:nth-child(4),
  .recommend-table td:nth-child(4) { display: none; }
  .recommend-table th, .recommend-table td { padding: 8px 10px; font-size: 12px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-title { font-size: 13px; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid .download-item:nth-child(n+11) { display: none; }
  .download-item .dl-icon { width: 44px; height: 44px; }
  .hot-dl-icon { width: 38px; height: 38px; }
  .album-featured-img { width: 100%; height: 150px; }
  .album-featured-info h3 { font-size: 16px; }
  .album-app-list { gap: 8px; }
  .album-app-item { width: 55px; }
  .album-app-icon { width: 44px; height: 44px; }
  .album-app-name { font-size: 11px; }
  .album-right { width: 100%; }
  .soft-grid { grid-template-columns: repeat(2, 1fr); }
  .soft-grid .soft-item:nth-child(n+9) { display: none; }
  .update-item a { padding: 10px 0; }
  .update-img { width: 60px; height: 42px; }
  .update-title { font-size: 13px; }
  .news-featured-inner { flex-direction: column; }
  .news-featured-img { width: 100%; height: 100px; }
  .guide-banner { height: 90px; }
  .game-img-large, .game-img-small-grid { height: 200px; }
  .game-img-large img { height: 150px; }
  .game-img-large .game-img-title { font-size: 13px; padding: 15px 10px 8px; }
  .game-img-small .game-img-title { font-size: 11px; padding: 12px 6px 6px; }
  .rank-featured-img { width: 40px; height: 40px; }
  .rank-featured-name { font-size: 12px; }
  .rank-featured-meta { font-size: 11px; }
  .rank-dl-btn { padding: 3px 10px; font-size: 11px; }
  .rank-type { display: none; }
  .rank-size { font-size: 11px; }
.footer-nav a { padding: 0 6px; font-size: 11px; }
.soft-item .soft-icon { width: 44px; height: 44px; }
}
