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

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

.mls-hero{max-width:1080px;margin:0 auto;padding:52px 18px 18px}
.mls-hero h1{font-size:clamp(28px,5vw,46px);font-weight:800;line-height:1.15}
.mls-hero span{color:#2ec4b6}
.mls-panel{max-width:1080px;margin:0 auto 34px;padding:0 18px}
.mls-panel table{background:#ffffff;border:1px solid #e3e3ea;border-radius:18px;overflow:hidden}
.mls-panel th{background:#ffffff;padding:12px 10px}
.mls-panel td{padding:13px 10px}

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


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

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

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


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