/*
Theme Name: 好体育今日足球 HTY Flow
Theme URI: https://haotiyuflow.com/
Author: 好体育
Description: 全部联赛数据站，覆盖赛程、比分、积分榜与射手榜。 核心词：好体育今日足球。内置 API-Football v3 数据层、自适应 TTL 缓存、JSON-LD 结构化数据与 IndexNow 推送，全站北京时间（UTC+8）。
Version: 1.5.2
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haotiyuflow-com
Tags: sports, football, news, custom-menu, translation-ready
*/

*{box-sizing:border-box}
body{margin:0;background:#fafafa;color:#232323;font-family:"PingFang SC","Microsoft YaHei",sans-serif;line-height:1.6}
a{color:inherit}
.fl-wrap{max-width:1120px;margin:0 auto;padding:0 18px}
.fl-bar{background:#232323;border-bottom:1px solid #e0e0e0}
.fl-bar .fl-wrap{display:flex;align-items:center;justify-content:space-between;min-height:62px}
.fl-logo{font-size:19px;font-weight:800;text-decoration:none;color:#ffffff;letter-spacing:.5px}
.fl-logo i{font-style:normal;color:#0057b8}
.fl-nav{display:flex;gap:20px}
.fl-nav a{font-size:14px;text-decoration:none;color:#ffffff;opacity:.85}
.fl-nav a:hover{opacity:1;color:#0057b8}
.fl-hero h1{font-size:clamp(24px,3.6vw,36px);margin:0 0 10px;letter-spacing:-.5px}
.fl-hero p{margin:0;color:#707070;max-width:680px}
.fl-prose{max-width:780px;margin:0 auto 40px;padding:0 18px}
.fl-prose h2{font-size:20px;margin:26px 0 8px}
.fl-prose p{margin:0 0 10px;color:#707070}
.fl-prose details{border-bottom:1px solid #e0e0e0;padding:11px 0}
.fl-prose summary{cursor:pointer;font-weight:600;color:#232323}
.fl-sign{font-size:13px;color:#707070;border-top:1px solid #e0e0e0;padding-top:10px;margin-top:18px}
.fl-links{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.fl-links a{font-size:13px;padding:7px 13px;border:1px solid #e0e0e0;border-radius:6px;text-decoration:none;background:#ffffff}
.fl-links a:hover{border-color:#0057b8;color:#0057b8}
.fl-tb{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.fl-tb th{text-align:left;font-size:12px;color:#707070;font-weight:500;padding:10px 8px;border-bottom:1px solid #e0e0e0}
.fl-tb td{padding:11px 8px;border-bottom:1px solid #e0e0e0}
.fl-sc,.fl-pt{font-weight:700;color:#0057b8}
.fl-foot{background:#232323;color:#707070;font-size:13px;padding:24px 0;margin-top:36px;border-top:1px solid #e0e0e0}
.fl-foot a{color:#ffffff;opacity:.85}

.fl-hero{max-width:1140px;margin:0 auto;padding:30px 18px 10px}
.fl-cols{display:grid;grid-template-columns:1fr 260px;gap:24px;max-width:1140px;margin:0 auto 34px;padding:0 18px}
.fl-tb td,.fl-tb th{padding:9px 6px;font-size:13px}
.fl-side{background:#ffffff;border:1px solid #e0e0e0;border-radius:6px;padding:14px 16px;align-self:start}
.fl-side h3{margin:0 0 10px;font-size:14px}
.fl-side a{display:block;padding:7px 0;font-size:13px;text-decoration:none;border-bottom:1px dashed #e0e0e0}
@media(max-width:800px){.fl-cols{grid-template-columns:1fr}}

/* ---------- 通用文章模块（列表 / 正文 / 搜索 / 404） ---------- */
.hfw-list,.hfw-single{max-width:820px;margin:0 auto;padding:26px 0 40px}
.hfw-title{font-size:clamp(22px,3vw,30px);line-height:1.35;margin:0 0 14px}
.hfw-card{padding:16px 0;border-bottom:1px solid rgba(128,128,128,.25)}
.hfw-h2{font-size:19px;margin:0 0 6px;line-height:1.4}
.hfw-h2 a{color:inherit;text-decoration:none}
.hfw-h2 a:hover{text-decoration:underline}
.hfw-meta{font-size:13px;opacity:.7;margin:0 0 8px}
.hfw-sum{font-size:15px;opacity:.85;margin:0}
.hfw-crumb{font-size:12px;opacity:.7;margin-bottom:10px}
.hfw-crumb a{color:inherit}
.hfw-thumb{margin:0 0 18px}
.hfw-thumb img{max-width:100%;height:auto;border-radius:8px}
.hfw-content{font-size:16px;line-height:1.8}
.hfw-content h2{font-size:21px;margin:26px 0 10px}
.hfw-content h3{font-size:18px;margin:20px 0 8px}
.hfw-content p{margin:0 0 12px}
.hfw-content img{max-width:100%;height:auto}
.hfw-content table{width:100%;border-collapse:collapse;margin:14px 0}
.hfw-content th,.hfw-content td{border:1px solid rgba(128,128,128,.3);padding:8px 10px}
.hfw-content blockquote{margin:16px 0;padding-left:14px;border-left:3px solid rgba(128,128,128,.45);opacity:.9}
.hfw-tags{font-size:13px;opacity:.75;margin-top:20px}
.hfw-adj{display:flex;justify-content:space-between;gap:16px;font-size:14px;padding:18px 0;border-top:1px solid rgba(128,128,128,.25)}
.hfw-adj a{color:inherit;text-decoration:none}
.hfw-pager{margin-top:20px;font-size:14px}
.hfw-pager a{color:inherit}
.hfw-search{display:flex;gap:8px;margin:14px 0}
.hfw-search input{flex:1;padding:9px 12px;border:1px solid rgba(128,128,128,.4);border-radius:6px;background:transparent;color:inherit;font-size:14px}
.hfw-search button{padding:9px 18px;border:0;border-radius:6px;cursor:pointer;font-size:14px}
.hfw-comments{max-width:820px;margin:0 auto;padding-bottom:40px}
.hfw-commentlist{list-style:none;padding:0}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
:focus-visible{outline:2px solid currentColor;outline-offset:2px}


/* ---------- 顶栏固定 ---------- */
.hfw-sticky{position:sticky;top:0;z-index:9000;background:#232323}

/* ---------- 主导航：桌面横排 / 手机汉堡 ---------- */
.hfw-navroot{position:relative;display:flex;align-items:center;}
.hfw-menu{display:flex;align-items:center;gap:20px}
.hfw-menu-nav{display:flex;align-items:center;gap:20px;flex-wrap:nowrap}
.hfw-menu-nav a.hfw-menu-link{font-size:14px;line-height:1;text-decoration:none;color:#ffffff !important;white-space:nowrap;padding:6px 0}
.hfw-menu-nav a.hfw-menu-link:hover,.hfw-menu-nav a.hfw-menu-link[aria-current]{color:#0057b8 !important}
.hfw-auth{display:flex;align-items:center;gap:8px;margin-left:14px}
/* 用 .auth a.btn 提高优先级，压过主题里 ".xxx a{color:...}" 这类 0-1-1 的规则 */
.hfw-auth a.hfw-btn{display:inline-block;font-size:13px;line-height:1;white-space:nowrap;padding:8px 14px;border-radius:6px;text-decoration:none;font-weight:500}
.hfw-auth a.hfw-btn-ghost{color:#ffffff !important;background:transparent;border:1px solid #e0e0e0}
.hfw-auth a.hfw-btn-solid{color:#ffffff !important;background:#c8102e;border:1px solid #c8102e}
.hfw-auth a.hfw-btn:hover{opacity:.86}
.hfw-burger{display:none;flex-direction:column;justify-content:center;gap:5px;width:42px;height:38px;padding:0 9px;border:1px solid #e0e0e0;border-radius:8px;background:transparent;cursor:pointer}
.hfw-burger-bar{display:block;height:2px;width:100%;background:#ffffff;border-radius:2px}

@media (max-width:800px){
	/* logo 一行、汉堡在右；登录注册单独一行、居中，不进汉堡菜单 */
	.fl-bar .fl-wrap{flex-wrap:wrap;height:auto;row-gap:0;padding-top:10px;padding-bottom:10px}
	.hfw-navroot{order:2;margin-left:auto}
	.hfw-auth{order:3;flex-basis:100%;justify-content:center;margin:10px 0 2px;gap:12px}
	.hfw-auth .hfw-btn{min-width:120px;text-align:center;padding:11px 0;font-size:15px}
	.hfw-burger{display:inline-flex}
	.hfw-menu{display:none;position:absolute;right:0;top:calc(100% + 10px);z-index:9500;flex-direction:column;align-items:stretch;gap:0;min-width:min(80vw,260px);padding:6px 8px;border:1px solid #e0e0e0;border-radius:12px;background:#ffffff;box-shadow:0 12px 30px rgba(0,0,0,.22)}
	.hfw-menu.is-open{display:flex}
	.hfw-menu.is-open .hfw-menu-nav{display:flex}
	.hfw-menu-nav{flex-direction:column;align-items:stretch;gap:0}
	.hfw-menu-link{padding:12px;border-bottom:1px solid #e0e0e0;font-size:15px}
	.hfw-menu-nav .hfw-menu-link:last-child{border-bottom:0}
}


/* ---------- 栏目页 ---------- */
.hfw-rt{max-width:980px;margin:0 auto;padding:26px 0 44px}
.hfw-rt-crumb{font-size:12px;opacity:.7;margin-bottom:10px}
.hfw-rt-crumb a{color:inherit}
.hfw-rt-h1{font-size:clamp(22px,3vw,30px);line-height:1.35;margin:0 0 10px}
.hfw-rt-h2{font-size:19px;margin:28px 0 10px}
.hfw-rt-lede{font-size:15px;opacity:.85;margin:0 0 18px;max-width:760px}
.hfw-rt-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums;margin:0 0 18px}
.hfw-rt-table th,.hfw-rt-table td{padding:10px 8px;border-bottom:1px solid #e0e0e0;text-align:left}
.hfw-rt-table thead th{font-size:12px;opacity:.7;font-weight:500}
.hfw-rt-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.hfw-rt-chips a{display:inline-block;font-size:13px;padding:7px 13px;border:1px solid #e0e0e0;border-radius:8px;text-decoration:none;color:inherit}
.hfw-rt-chips a:hover{border-color:#0057b8;color:#0057b8}
.hfw-rt-item{padding:14px 0;border-bottom:1px solid #e0e0e0}
.hfw-rt-item h2{font-size:18px;margin:0 0 6px}
.hfw-rt-item h2 a{color:inherit;text-decoration:none}
.hfw-rt-item h2 a:hover{text-decoration:underline}
.hfw-rt-text{font-size:15px;line-height:1.85;max-width:760px}
.hfw-rt-meta{font-size:13px;opacity:.7;margin-top:18px}
@media (max-width:640px){
	.hfw-rt-table{font-size:13px}
	.hfw-rt-table th,.hfw-rt-table td{padding:8px 5px}
}
