/*
Theme Name: 好体育 - haotiyumatchhub.com
Theme URI: https://haotiyumatchhub.com/
Author: 好体育
Description: 当日聚合主题。核心词：好体育比赛聚合。内置 API-Football v3 数据层、联赛白名单、DeepSeek 数据中文化、虚拟栏目路由、JSON-LD 与 IndexNow，全站北京时间（UTC+8）。
Version: 1.6.3
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: haotiyumatchhub-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.62}
a{color:inherit}
img{max-width:100%;height:auto}
.mh-shell{max-width:1120px;margin:0 auto;padding:0 18px}
.mh-top{background:#232323;border-bottom:1px solid #e0e0e0}
.mh-top .mh-shell{display:flex;align-items:center;justify-content:space-between;min-height:60px}
.mh-mark{font-size:19px;font-weight:800;text-decoration:none;color:#ffffff;letter-spacing:.3px}
.mh-mark i{font-style:normal;color:#0057b8}
.mh-lead h1{font-size:clamp(23px,3.4vw,34px);margin:0 0 10px;letter-spacing:-.4px}
.mh-lead p{margin:0;color:#707070;max-width:700px}
.mh-copy{max-width:780px;margin:0 auto 40px;padding:0 18px}
.mh-copy h2{font-size:19px;margin:26px 0 8px}
.mh-copy p{margin:0 0 10px;color:#707070}
.mh-copy details{border-bottom:1px solid #e0e0e0;padding:11px 0}
.mh-copy summary{cursor:pointer;font-weight:600;color:#232323}
.mh-stamp{font-size:13px;color:#707070;border-top:1px solid #e0e0e0;padding-top:10px;margin-top:18px}
.mh-chips{display:flex;flex-wrap:wrap;gap:8px;max-width:1120px;margin:0 auto 26px;padding:0 18px}
.mh-chips a{font-size:13px;padding:7px 13px;border:1px solid #e0e0e0;border-radius:6px;text-decoration:none;background:#ffffff}
.mh-chips a:hover{border-color:#0057b8;color:#0057b8}
.mh-tb{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.mh-tb th{text-align:left;font-size:12px;color:#707070;font-weight:500;padding:10px 8px;border-bottom:1px solid #e0e0e0}
.mh-tb td{padding:11px 8px;border-bottom:1px solid #e0e0e0}
.mh-hl{font-weight:700;color:#0057b8}
.mh-end{background:#232323;color:#707070;font-size:13px;padding:24px 0;margin-top:36px;border-top:1px solid #e0e0e0}
.mh-end a{color:#ffffff;opacity:.85}

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


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


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

/* ---------- 主导航：桌面横排 / 手机汉堡 ---------- */
.hmh-navroot{position:relative;display:flex;align-items:center}
.hmh-menu{display:flex;align-items:center;gap:18px}
.hmh-menu-nav{display:flex;align-items:center;gap:18px;flex-wrap:nowrap}
.hmh-menu-nav a.hmh-menu-link{font-size:14px;line-height:1;text-decoration:none;color:#ffffff !important;white-space:nowrap;padding:6px 0}
.hmh-menu-nav a.hmh-menu-link:hover,.hmh-menu-nav a.hmh-menu-link[aria-current]{color:#0057b8 !important}
.hmh-auth{display:flex;align-items:center;gap:8px;margin-left:14px}
/* 用 .auth a.btn 提高优先级，压过主题里 ".xxx a{color:...}" 这类 0-1-1 的规则 */
.hmh-auth a.hmh-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}
.hmh-auth a.hmh-btn-ghost{color:#ffffff !important;background:transparent;border:1px solid #e0e0e0}
.hmh-auth a.hmh-btn-solid{color:#ffffff !important;background:#0057b8;border:1px solid #0057b8}
.hmh-auth a.hmh-btn:hover{opacity:.86}
.hmh-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}
.hmh-burger-bar{display:block;height:2px;width:100%;background:#ffffff;border-radius:2px}

@media (max-width:800px){
	/* logo 一行、汉堡在右；登录注册单独一行、居中，不进汉堡菜单 */
	.mh-top .mh-shell{flex-wrap:wrap;min-height:0;padding-top:10px;padding-bottom:10px}
	.hmh-navroot{order:2;margin-left:auto}
	.hmh-auth{order:3;flex-basis:100%;justify-content:center;margin:10px 0 2px;gap:12px}
	.hmh-auth a.hmh-btn{min-width:104px;text-align:center;padding:10px 0;font-size:14px}
	.hmh-burger{display:inline-flex}
	.hmh-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)}
	.hmh-menu.is-open{display:flex}
	.hmh-menu.is-open .hmh-menu-nav{display:flex}
	.hmh-menu-nav{flex-direction:column;align-items:stretch;gap:0}
	.hmh-menu-nav a.hmh-menu-link{padding:12px;border-bottom:1px solid #e0e0e0;font-size:15px}
	.hmh-menu-nav a.hmh-menu-link:last-child{border-bottom:0}
}


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