/*
Theme Name: 好体育主题
Theme URI: https://haotiyuguanwang.com
Author: HaoTiyu
Description: 专业体育资讯网站主题 - SEO优化版，支持Google/Bing搜索引擎优化
Version: 2.0
Text Domain: haotiyu
*/

/* ============================================
   CSS变量
   ============================================ */
:root {
    --primary: #e10600;
    --primary-dark: #b80500;
    --bg-dark: #0b1320;
    --bg-card: #0f172a;
    --bg-light: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --live: #22c55e;
    --radius: 8px;
}

/* ============================================
   重置 & 基础
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg-dark); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================
   头部
   ============================================ */
.site-header { background: var(--bg-card); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; height: 70px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 50px; gap: 8px; }
.site-logo .logo-icon { height: 36px; width: auto; }
.site-logo .logo-text { font-size: 1.5rem; font-weight: 700; color: #fff; white-space: nowrap; }

.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; gap: 0; }
.nav-menu li a { display: block; padding: 10px 18px; color: var(--text-muted); font-size: 0.9375rem; font-weight: 500; transition: color 0.2s, border-color 0.2s; border-bottom: 2px solid transparent; }
.nav-menu li a:hover,
.nav-menu li.current a { color: #fff; border-bottom-color: var(--primary); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

.reg-btn-wrap { margin-left: auto; }

/* 注册按钮 */
.haotiyu-reg-btn { display: inline-flex; align-items: center; padding: 9px 22px; border: none; border-radius: 20px; font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 0.5px; white-space: nowrap; transition: opacity 0.2s, transform 0.1s; line-height: 1.4; animation: regBtnFlash 1.5s ease-in-out infinite; }
.haotiyu-reg-btn:hover { opacity: 0.88; transform: scale(1.04); animation: none; }
.haotiyu-reg-btn:active { transform: scale(0.97); }

@keyframes regBtnFlash {
    0%, 100% { box-shadow: 0 0 4px rgba(245,166,35,0.3); }
    50% { box-shadow: 0 0 16px rgba(245,166,35,0.8), 0 0 30px rgba(245,166,35,0.4); filter: brightness(1.25); }
}

/* 注册弹窗 */
.haotiyu-reg-modal { position: fixed; inset: 0; z-index: 99999; display: flex !important; align-items: center; justify-content: center; }
.haotiyu-reg-modal[style*="display:none"],
.haotiyu-reg-modal[style*="display: none"] { display: none !important; }
.haotiyu-reg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(3px); }
.haotiyu-reg-dialog { position: relative; z-index: 1; width: 92%; max-width: 480px; height: 80vh; max-height: 680px; background: #1a2332; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,0.6); animation: regDialogIn 0.22s ease; }
@keyframes regDialogIn { from { transform: scale(0.92) translateY(24px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.haotiyu-reg-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #0f1a2b; flex-shrink: 0; }
.haotiyu-reg-title { font-size: 16px; font-weight: 700; color: #fff; }
.haotiyu-reg-close { background: none; border: none; color: #aaa; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; line-height: 1; transition: color 0.15s, background 0.15s; }
.haotiyu-reg-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.haotiyu-reg-body { flex: 1; position: relative; overflow: hidden; }
#haotiyu-reg-iframe { width: 100%; height: 100%; border: none; display: none; }
.haotiyu-reg-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #aaa; gap: 12px; font-size: 14px; }
.haotiyu-reg-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ============================================
   焦点区域
   ============================================ */
.focus-section { padding: 20px 0; }
.focus-grid { display: grid; grid-template-columns: 1fr 350px; gap: 15px; }
.focus-main { position: relative; border-radius: var(--radius); overflow: hidden; height: 380px; }
.focus-main .focus-link { display: block; height: 100%; }
.focus-main img { width: 100%; height: 100%; object-fit: cover; }
.focus-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.focus-info h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.focus-info p { color: var(--text-muted); font-size: 0.8125rem; }

.focus-side { display: flex; flex-direction: column; gap: 10px; }
.focus-side-item { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border-radius: var(--radius); padding: 12px; transition: background 0.2s; }
.focus-side-item:hover { background: var(--bg-light); }
.focus-side-thumb { flex-shrink: 0; width: 80px; height: 60px; border-radius: 4px; overflow: hidden; }
.focus-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.focus-side-item h3 { font-size: 0.875rem; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================
   主体布局
   ============================================ */
.main-section { padding: 20px 0 40px; }
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.main-left { display: flex; flex-direction: column; gap: 25px; }

/* 区块头部 */
.block-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 15px; }
.block-header h2 { font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.block-header h2 .icon { font-size: 1.25rem; }
.block-header a { color: var(--primary); font-size: 0.8125rem; }
.block-header a:hover { text-decoration: underline; }

/* 新闻列表 */
.news-block { background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
.news-list { display: flex; flex-direction: column; }
.news-row { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.news-row:first-child { padding-top: 0; }
.news-row:last-child { border-bottom: none; padding-bottom: 0; }
.news-row-thumb { flex-shrink: 0; width: 120px; height: 80px; border-radius: 4px; overflow: hidden; }
.news-row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-row:hover .news-row-thumb img { transform: scale(1.05); }
.news-row-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.news-row-info h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-info h3 a:hover { color: var(--primary); }
.news-row-meta { display: flex; gap: 15px; font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   右侧边栏
   ============================================ */
.main-right { display: flex; flex-direction: column; gap: 20px; }
.sidebar-block { background: var(--bg-card); border-radius: var(--radius); padding: 15px; }

/* 实时比分 */
.score-list { display: flex; flex-direction: column; }
.score-item { display: grid; grid-template-columns: 40px 1fr 50px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.score-item:last-child { border-bottom: none; }
.score-league { font-size: 0.625rem; color: var(--text-muted); text-align: center; line-height: 1.2; word-break: break-all; }
.score-teams { display: flex; flex-direction: column; gap: 4px; }
.score-team { display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; }
.score-team .team-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-team .team-score { font-size: 0.9375rem; font-weight: 700; min-width: 20px; text-align: right; margin-left: 8px; }
.score-status { font-size: 0.6875rem; font-weight: 600; padding: 4px 6px; border-radius: 3px; text-align: center; white-space: nowrap; }
.score-status.live { background: var(--live); color: #fff; }
.score-status.end { background: var(--border); color: var(--text-muted); }
.score-status.soon { background: #1e40af; color: #fff; }
.score-status.ht { background: #f59e0b; color: #000; }

.live-dot { display: inline-block; width: 8px; height: 8px; background: var(--live); border-radius: 50%; margin-right: 6px; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.refresh-btn { font-size: 1rem; opacity: 0.6; transition: all 0.3s; }
.refresh-btn:hover { opacity: 1; transform: rotate(180deg); }

.score-loading, .score-empty { text-align: center; padding: 20px 10px; color: var(--text-muted); }
.score-loading p, .score-empty p { font-size: 0.75rem; margin: 0; }
.loading-spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 热门文章 */
.hot-list { display: flex; flex-direction: column; }
.hot-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hot-item:last-child { border-bottom: none; }
.hot-rank { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); color: var(--text-muted); font-size: 0.75rem; font-weight: 700; border-radius: 4px; }
.hot-rank.top { background: var(--primary); color: #fff; }
.hot-item a { font-size: 0.8125rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item a:hover { color: var(--primary); }

/* 联赛标签 */
.league-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.league-tags a { display: inline-block; padding: 6px 12px; background: var(--bg-light); color: var(--text-muted); font-size: 0.75rem; border-radius: 4px; transition: all 0.2s; }
.league-tags a:hover { background: var(--primary); color: #fff; }

/* 图文推荐 */
.pic-recommend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pic-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.pic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pic-item:hover img { transform: scale(1.05); }
.pic-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); font-size: 0.75rem; color: #fff; line-height: 1.3; }

/* 热门标签 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { padding: 5px 12px; background: var(--bg-light); border-radius: 15px; font-size: 0.75rem; color: var(--text-muted); transition: all 0.3s; }
.tag-item:hover { background: var(--primary); color: #fff; }

/* 快捷入口 */
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-link { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px 10px; background: var(--bg-light); border-radius: var(--radius); transition: all 0.3s; text-align: center; }
.quick-link:hover { background: var(--primary); transform: translateY(-2px); }
.quick-icon { font-size: 1.5rem; margin-bottom: 6px; }
.quick-text { font-size: 0.8125rem; font-weight: 500; }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-links a { padding: 6px 12px; background: var(--bg-light); border-radius: var(--radius); font-size: 0.8125rem; color: var(--text-muted); transition: all 0.3s; }
.friend-links a:hover { background: var(--primary); color: #fff; }

/* 最新文章列表 */
.latest-list { display: flex; flex-direction: column; }
.latest-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bg-light); }
.latest-item:last-child { border-bottom: none; }
.latest-cat { flex-shrink: 0; padding: 2px 8px; background: var(--primary); color: #fff; font-size: 0.6875rem; border-radius: 3px; }
.latest-title { font-size: 0.8125rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-item:hover .latest-title { color: var(--primary); }

/* ============================================
   分类页头部
   ============================================ */
.category-header { background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%); padding: 50px 0; text-align: center; }
.category-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.category-name { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.category-count { color: rgba(255,255,255,0.8); font-size: 0.9375rem; }
.category-desc { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-top: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }
.sort-tabs { display: flex; gap: 8px; }
.tab-btn { padding: 6px 14px; background: var(--bg-light); color: var(--text-muted); font-size: 0.8125rem; font-weight: 600; border-radius: 4px; transition: 0.2s; }
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: #fff; }

/* ============================================
   分页
   ============================================ */
.pagination { margin-top: 25px; display: flex; justify-content: center; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: var(--bg-light); color: var(--text); border-radius: 4px; font-size: 0.875rem; font-weight: 600; transition: 0.2s; }
.page-numbers:hover, .page-numbers.current { background: var(--primary); }

/* ============================================
   文章详情页
   ============================================ */
.single-wrap { max-width: 850px; margin: 0 auto; padding: 30px 15px; }
.single-article { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.article-header { padding: 25px; border-bottom: 1px solid var(--border); }
.article-breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 12px; }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb .separator { margin: 0 6px; }
.article-title { font-size: 1.5rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.article-meta { display: flex; gap: 15px; color: var(--text-muted); font-size: 0.8125rem; }
.article-body { padding: 25px; }
.article-body p { margin-bottom: 1.25em; }
.article-body h2, .article-body h3 { margin: 1.5em 0 0.75em; font-weight: 700; }
.article-body img { border-radius: var(--radius); margin: 1.25em 0; }
.article-body a { color: var(--primary); }
.article-tags { padding: 15px 25px; border-top: 1px solid var(--border); }
.article-tags a { display: inline-block; padding: 4px 10px; background: var(--bg-light); border-radius: 15px; font-size: 0.75rem; margin-right: 6px; margin-bottom: 6px; }
.article-tags a:hover { background: var(--primary); }
.related-section { margin-top: 25px; }
.related-section h3 { font-size: 1.125rem; margin-bottom: 15px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.related-item { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; display: block; }
.related-item img { aspect-ratio: 16/10; object-fit: cover; }
.related-item h4 { padding: 12px; font-size: 0.875rem; font-weight: 600; }

/* ============================================
   404页面
   ============================================ */
.error-404 { text-align: center; padding: 60px 0; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 20px; }
.error-404 h1 { font-size: 2rem; margin-bottom: 15px; }
.error-desc { color: var(--text-muted); font-size: 1.125rem; max-width: 500px; margin: 0 auto 30px; }
.error-404 .search-form { max-width: 500px; margin: 0 auto 30px; display: flex; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.error-404 .search-input { flex: 1; padding: 12px 15px; background: transparent; border: none; color: var(--text); font-size: 1rem; }
.error-404 .search-btn { padding: 12px 20px; background: var(--primary); color: #fff; display: flex; align-items: center; gap: 6px; }
.error-404 .search-btn svg { width: 18px; height: 18px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.error-popular { margin-top: 40px; }
.error-popular h2 { margin-bottom: 20px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* 无结果 */
.no-results-inner { text-align: center; padding: 60px 20px; }
.no-results-inner svg { width: 64px; height: 64px; color: var(--text-muted); margin-bottom: 15px; }
.no-results-inner h2 { margin-bottom: 10px; }
.no-results-inner p { color: var(--text-muted); margin-bottom: 20px; }
.no-results-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================
   搜索页
   ============================================ */
.search-form-inline { display: flex; max-width: 450px; margin: 15px auto 0; background: rgba(255,255,255,0.1); border-radius: var(--radius); overflow: hidden; }
.search-form-inline input { flex: 1; padding: 10px 15px; background: transparent; border: none; color: #fff; font-size: 0.9375rem; }
.search-form-inline input::placeholder { color: rgba(255,255,255,0.5); }
.search-form-inline button { padding: 10px 20px; background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; font-size: 0.875rem; }
.no-posts { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty { text-align: center; padding: 30px; color: var(--text-muted); }

/* ============================================
   评论
   ============================================ */
.comments-area { margin-top: 25px; background: var(--bg-card); border-radius: var(--radius); padding: 25px; }
.comments-count { font-size: 1.125rem; margin-bottom: 20px; }
.comments-list { margin-bottom: 20px; }
.comment-textarea { width: 100%; padding: 12px; background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); resize: vertical; }
.comment-notes { font-size: 0.8125rem; color: var(--text-muted); margin-top: 10px; }
.no-comments { text-align: center; color: var(--text-muted); padding: 20px; }

/* ============================================
   页脚
   ============================================ */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 0 25px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo .logo-icon { height: 32px; width: auto; }
.footer-logo .logo-text { font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-desc { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.7; }
.footer-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 12px; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.8125rem; padding: 4px 0; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.75rem; }

/* 返回顶部 */
#back-to-top { position: fixed; bottom: 25px; right: 25px; width: 45px; height: 45px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999; }
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--primary-dark); }

/* ============================================
   页面头部（直播/数据）
   ============================================ */
.page-header { background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-light) 100%); padding: 40px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 15px; }
.breadcrumb a:hover { color: var(--primary); }
.page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 10px; }
.page-desc { color: var(--text-muted); font-size: 0.9375rem; }
.page-content { padding: 30px 0; }

/* ============================================
   直播页面
   ============================================ */
.live-block { background: var(--bg-card); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.live-card { background: var(--bg-light); border-radius: var(--radius); padding: 20px; text-align: center; position: relative; transition: transform 0.3s; }
.live-card:hover { transform: translateY(-5px); }
.live-card.live-now { border: 1px solid var(--live); }
.live-badge { position: absolute; top: 10px; right: 10px; background: var(--primary); color: #fff; font-size: 0.6875rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; animation: blink 1s infinite; }
.live-league { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 15px; }
.live-teams { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 15px; }
.live-team .team-name { display: block; font-size: 0.875rem; margin-bottom: 5px; }
.live-team .team-score { display: block; font-size: 1.5rem; font-weight: 700; }
.live-vs { color: var(--text-muted); font-size: 0.75rem; }
.live-time { font-size: 0.75rem; color: var(--live); margin-bottom: 15px; }
.btn-watch { display: inline-block; padding: 8px 20px; background: var(--primary); color: #fff; font-size: 0.8125rem; font-weight: 600; border-radius: 20px; transition: background 0.3s; }
.btn-watch:hover { background: var(--primary-dark); }

/* 赛程表 */
.schedule-table { display: flex; flex-direction: column; }
.schedule-row { display: grid; grid-template-columns: 80px 80px 1fr 80px; gap: 15px; align-items: center; padding: 15px; border-bottom: 1px solid var(--border); }
.schedule-row:last-child { border-bottom: none; }
.sch-time { font-size: 0.9375rem; font-weight: 600; color: var(--primary); }
.sch-league { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-light); padding: 4px 10px; border-radius: 4px; text-align: center; }
.sch-match { font-size: 0.9375rem; }
.sch-btn { padding: 6px 15px; background: var(--bg-light); color: var(--text-muted); font-size: 0.75rem; border-radius: 4px; text-align: center; transition: all 0.3s; }
.sch-btn:hover { background: var(--primary); color: #fff; }

/* 频道 */
.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.channel-card { background: var(--bg-light); border-radius: var(--radius); padding: 25px; text-align: center; transition: all 0.3s; }
.channel-card:hover { background: var(--primary); }
.channel-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.channel-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.channel-card p { font-size: 0.75rem; color: var(--text-muted); }
.channel-card:hover p { color: rgba(255,255,255,0.8); }

/* ============================================
   数据页面
   ============================================ */
.sport-tabs-wrap { margin-bottom: 20px; }
.sport-tabs { display: flex; gap: 10px; }
.sport-tab { padding: 12px 24px; background: var(--bg-card); color: var(--text-muted); border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.sport-tab:hover { border-color: var(--primary); }
.sport-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sport-section { margin-bottom: 30px; }
.league-tabs-wrap { margin-bottom: 25px; }
.league-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.league-tab { padding: 10px 20px; background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.league-tab:hover { border-color: var(--primary); color: #fff; }
.league-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.data-main-grid { display: grid; grid-template-columns: 1fr 350px; gap: 20px; }
.data-block { background: var(--bg-card); border-radius: var(--radius); padding: 20px; }
.data-loading, .data-error { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.data-loading .loading-spinner { margin: 0 auto 15px; }
.data-error { color: #f59e0b; }

/* 积分榜 */
.standings-table { overflow-x: auto; }
.standings-table table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.standings-table th, .standings-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--border); }
.standings-table th { background: var(--bg-light); font-weight: 600; color: var(--text-muted); font-size: 0.75rem; position: sticky; top: 0; }
.standings-table .team-cell { text-align: left; display: flex; align-items: center; gap: 8px; }
.standings-table .team-logo { width: 20px; height: 20px; object-fit: contain; }
.standings-table tr.top td:first-child { color: var(--live); font-weight: 700; }
.standings-table tr.bottom td:first-child { color: var(--primary); font-weight: 700; }
.standings-table tr:hover { background: rgba(255,255,255,0.03); }

/* 射手榜 */
.scorers-list { display: flex; flex-direction: column; }
.scorer-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.scorer-item:last-child { border-bottom: none; }
.scorer-rank { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--bg-light); color: var(--text-muted); font-size: 0.75rem; font-weight: 700; border-radius: 4px; flex-shrink: 0; }
.scorer-rank.top { background: var(--primary); color: #fff; }
.scorer-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.scorer-info { flex: 1; min-width: 0; }
.scorer-name { display: block; font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer-team { display: block; font-size: 0.75rem; color: var(--text-muted); }
.scorer-goals { font-size: 0.875rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }

/* 篮球东西部 */
.conference-wrap { display: flex; gap: 20px; }
.conference { flex: 1; }
.conference h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.basketball-standings table { font-size: 0.8125rem; }
.bb-stats-info { display: grid; grid-template-columns: 1fr; gap: 15px; }
.stats-card { background: var(--bg-light); border-radius: var(--radius); padding: 15px; }
.stats-card h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 10px; }
.stats-card p { font-size: 0.8125rem; color: var(--text-muted); margin: 5px 0; }

/* ============================================
   底部广告
   ============================================ */
#bottom-ad.bottom-ad { position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; z-index: 99999 !important; text-align: center; background: transparent; margin: 0 !important; padding: 0 !important; pointer-events: none; }
#bottom-ad.bottom-ad.ad-hidden { display: none !important; }
#bottom-ad.bottom-ad a { display: inline-block; line-height: 0; pointer-events: auto; }
#bottom-ad.bottom-ad img { max-width: 728px; width: 100%; height: auto; display: block; margin: 0 auto; pointer-events: auto; }
.ad-toggle { pointer-events: auto; position: absolute !important; top: -24px !important; left: 50% !important; transform: translateX(-50%) !important; padding: 4px 16px !important; background: transparent !important; color: #fff !important; font-size: 12px !important; border: none !important; border-radius: 3px 3px 0 0 !important; z-index: 100000 !important; }
.ad-toggle:hover { opacity: 0.7; }
#ad-show-btn.ad-show-btn { position: fixed !important; bottom: 0 !important; left: 50% !important; transform: translateX(-50%) !important; padding: 4px 16px !important; background: transparent !important; color: #fff !important; font-size: 12px !important; border: none !important; border-radius: 3px 3px 0 0 !important; z-index: 99998 !important; display: none !important; }
#ad-show-btn.ad-show-btn.visible { display: block !important; }
#ad-show-btn.ad-show-btn:hover { opacity: 0.7; }

/* ============================================
   响应式 - 1024px
   ============================================ */
@media (max-width: 1024px) {
    .header-inner { height: 60px; }
    .site-logo { margin-right: 30px; }
    .site-logo .logo-icon { height: 32px; }
    .site-logo .logo-text { font-size: 1.25rem; }
    .nav-menu li a { padding: 8px 12px; font-size: 0.8125rem; }
    .focus-grid { grid-template-columns: 1fr; }
    .focus-main { height: 320px; }
    .focus-side { flex-direction: row; flex-wrap: wrap; }
    .focus-side-item { flex: 1 1 calc(50% - 5px); }
    .main-grid { grid-template-columns: 1fr; }
    .main-right { order: -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .live-grid { grid-template-columns: repeat(2, 1fr); }
    .channel-grid { grid-template-columns: repeat(2, 1fr); }
    .data-main-grid { grid-template-columns: 1fr; }
    .conference-wrap { flex-direction: column; }
}

/* ============================================
   响应式 - 768px
   ============================================ */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 12px; }

    /* 头部 */
    .header-inner { height: 55px; justify-content: space-between; }
    .site-logo { margin-right: 0; flex: 1; }
    .site-logo .logo-icon { height: 28px; }
    .site-logo .logo-text { font-size: 1.1rem; }

    /* 导航 */
    .main-nav { display: none; position: fixed; top: 55px; left: 0; right: 0; bottom: 0; background: var(--bg-card); border-top: 1px solid var(--border); z-index: 1000; overflow-y: auto; }
    .main-nav.active { display: block; }
    .nav-menu { flex-direction: column; padding: 15px; }
    .nav-menu li a { padding: 14px 15px; border-bottom: none; font-size: 1rem; border-radius: 6px; }
    .nav-menu li a:hover, .nav-menu li.current a { background: var(--bg-light); }
    .mobile-menu-btn { display: flex; }
    .reg-btn-wrap { margin-left: 0; margin-right: 8px; }
    .reg-btn-wrap .haotiyu-reg-btn { font-size: 14px; padding: 7px 16px; }

    /* 焦点图 */
    .focus-section { padding: 12px 0; }
    .focus-main { height: 200px; }
    .focus-info { padding: 12px; }
    .focus-info h2 { font-size: 1rem; }
    .focus-info p { font-size: 0.75rem; }
    .focus-side { display: none; }

    /* 主内容 */
    .main-section { padding: 12px 0; }
    .main-grid { gap: 12px; }
    .main-right { order: -1; margin-bottom: 10px; }
    .main-right .sidebar-block { padding: 12px; }
    .main-right .sidebar-block:not(:first-child) { display: none; }

    /* 比分手机端 */
    .score-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .score-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--bg-light); border-radius: var(--radius); border-bottom: none; }
    .score-league { font-size: 0.625rem; align-self: flex-start; }
    .score-teams { gap: 3px; }
    .score-team { font-size: 0.75rem; }
    .score-team .team-score { font-size: 0.875rem; }
    .score-status { align-self: flex-end; font-size: 0.625rem; padding: 2px 6px; }

    /* 新闻 */
    .news-block { padding: 12px; border-radius: var(--radius); }
    .block-header { margin-bottom: 10px; }
    .block-header h2 { font-size: 0.9375rem; }
    .block-header a { font-size: 0.75rem; }
    .news-row { padding: 10px 0; gap: 10px; }
    .news-row-thumb { width: 90px; height: 65px; }
    .news-row-info h3 { font-size: 0.8125rem; line-height: 1.4; }
    .news-row-meta { font-size: 0.6875rem; }

    /* 相关 */
    .related-grid { grid-template-columns: 1fr; gap: 10px; }
    .related-item h4 { font-size: 0.8125rem; padding: 10px; }

    /* 页脚 */
    .site-footer { padding: 20px 0 15px; margin-top: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 0; }
    .footer-brand { margin-bottom: 15px; }
    .footer-brand .footer-desc { font-size: 0.75rem; }
    .footer-nav { display: none; }
    .footer-bottom { padding-top: 15px; font-size: 0.6875rem; }

    /* 分类页 */
    .category-header { padding: 20px 0; }
    .category-icon { font-size: 1.75rem; margin-bottom: 8px; }
    .category-name { font-size: 1.25rem; }
    .category-count { font-size: 0.8125rem; }

    /* 文章页 */
    .single-wrap { padding: 12px; }
    .article-header { padding: 15px; }
    .article-title { font-size: 1.125rem; line-height: 1.4; }
    .article-meta { font-size: 0.75rem; gap: 10px; }
    .article-body { padding: 15px; }
    .article-body p { font-size: 0.9375rem; line-height: 1.7; }

    /* 404 */
    .error-404 { padding: 40px 0; }
    .error-code { font-size: 5rem; }
    .error-404 h1 { font-size: 1.5rem; }

    /* 直播 */
    .live-grid { grid-template-columns: 1fr; }
    .channel-grid { grid-template-columns: 1fr; }
    .schedule-row { grid-template-columns: 60px 60px 1fr 60px; gap: 10px; font-size: 0.8125rem; }
    .league-tabs { gap: 8px; }
    .league-tab { padding: 8px 14px; font-size: 0.8125rem; }

    /* 侧边栏模块 */
    .sidebar-block { padding: 12px; }
    .pic-recommend { gap: 8px; }
    .pic-title { padding: 6px; font-size: 0.6875rem; }
    .tag-cloud { gap: 6px; }
    .tag-item { padding: 4px 10px; font-size: 0.6875rem; }
    .hot-item { padding: 8px 0; }
    .hot-rank { width: 20px; height: 20px; font-size: 0.6875rem; }
    .hot-item a { font-size: 0.75rem; }
    .league-tags { gap: 6px; }
    .league-tags a { padding: 5px 10px; font-size: 0.6875rem; }

    /* 弹窗手机端 */
    .haotiyu-reg-dialog { width: 100%; height: 92vh; max-height: none; border-radius: 16px 16px 0 0; position: fixed; bottom: 0; left: 0; right: 0; margin: 0; animation: regSlideUp 0.25s ease; }
    @keyframes regSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

    /* 广告手机端 */
    #bottom-ad.bottom-ad img { max-width: 100%; }
    .ad-toggle { top: -20px !important; padding: 2px 10px !important; font-size: 10px !important; }
    #ad-show-btn.ad-show-btn { padding: 2px 10px !important; font-size: 10px !important; }
}

/* ============================================
   响应式 - 480px
   ============================================ */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 10px; }
    .header-inner { height: 50px; }
    .site-logo .logo-icon { height: 24px; }
    .site-logo .logo-text { font-size: 1rem; }
    .main-nav { top: 50px; }
    .focus-main { height: 160px; }
    .focus-info { padding: 10px; }
    .focus-info h2 { font-size: 0.9375rem; }
    .score-list { grid-template-columns: 1fr; }
    .score-item { flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 10px; }
    .score-league { min-width: 35px; }
    .score-teams { flex: 1; margin: 0 10px; }
    .news-row-thumb { width: 80px; height: 55px; }
    .news-row-info h3 { font-size: 0.8125rem; }
    .article-title { font-size: 1rem; }
    .article-meta { flex-wrap: wrap; }
    .reg-btn-wrap .haotiyu-reg-btn { font-size: 12px; padding: 6px 12px; }
    .reg-btn-wrap { margin-right: 4px; }
}
