/*
Theme Name: 好体育 - haotiyumatchstats.com
Theme URI: https://haotiyumatchstats.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: haotiyumatchstats-com
Tags: sports, football, news, custom-menu, translation-ready
*/

*{box-sizing:border-box}
body{margin:0;background:#f6f8fa;color:#101820;font-family:"PingFang SC","Noto Sans SC",sans-serif;line-height:1.62}
a{color:inherit}
img{max-width:100%;height:auto}
.ms-shell{max-width:1120px;margin:0 auto;padding:0 18px}
.ms-top{background:#101820;border-bottom:1px solid #dde2e8}
.ms-top .ms-shell{display:flex;align-items:center;justify-content:space-between;min-height:60px}
.ms-mark{font-size:19px;font-weight:800;text-decoration:none;color:#ffffff;letter-spacing:.3px}
.ms-mark i{font-style:normal;color:#5a4fcf}
.ms-lead h1{font-size:clamp(23px,3.4vw,34px);margin:0 0 10px;letter-spacing:-.4px}
.ms-lead p{margin:0;color:#5f6b7a;max-width:700px}
.ms-copy{max-width:780px;margin:0 auto 40px;padding:0 18px}
.ms-copy h2{font-size:19px;margin:26px 0 8px}
.ms-copy p{margin:0 0 10px;color:#5f6b7a}
.ms-copy details{border-bottom:1px solid #dde2e8;padding:11px 0}
.ms-copy summary{cursor:pointer;font-weight:600;color:#101820}
.ms-stamp{font-size:13px;color:#5f6b7a;border-top:1px solid #dde2e8;padding-top:10px;margin-top:18px}
.ms-chips{display:flex;flex-wrap:wrap;gap:8px;max-width:1120px;margin:0 auto 26px;padding:0 18px}
.ms-chips a{font-size:13px;padding:7px 13px;border:1px solid #dde2e8;border-radius:12px;text-decoration:none;background:#ffffff}
.ms-chips a:hover{border-color:#5a4fcf;color:#5a4fcf}
.ms-tb{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.ms-tb th{text-align:left;font-size:12px;color:#5f6b7a;font-weight:500;padding:10px 8px;border-bottom:1px solid #dde2e8}
.ms-tb td{padding:11px 8px;border-bottom:1px solid #dde2e8}
.ms-hl{font-weight:700;color:#5a4fcf}
.ms-end{background:#101820;color:#5f6b7a;font-size:13px;padding:24px 0;margin-top:36px;border-top:1px solid #dde2e8}
.ms-end a{color:#ffffff;opacity:.85}

.ms-lead{max-width:1060px;margin:0 auto;padding:36px 18px 10px}
.ms-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;max-width:1060px;margin:18px auto 22px;padding:0 18px}
.ms-tile{background:#ffffff;border:1px solid #dde2e8;border-radius:12px;padding:14px 16px}
.ms-tile span{display:block;font-size:12px;color:#5f6b7a}
.ms-tile b{display:block;font-size:26px;color:#5a4fcf;font-variant-numeric:tabular-nums;margin-top:4px}
.ms-box{max-width:1060px;margin:0 auto 30px;padding:0 18px;display:flex;flex-direction:column;gap:10px}
.ms-box h2{font-size:18px;margin:0 0 12px}


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


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

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

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


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