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

:root{--sc-bg:#f7f9fb;--sc-ink:#1c2733;--sc-orange:#f26b21;--sc-steel:#4a6480;--sc-line:#dfe6ee;--sc-mute:#7a8ba0;--sc-white:#fff}
*{box-sizing:border-box}
body{margin:0;background:var(--sc-bg);color:var(--sc-ink);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;line-height:1.6}
.sc-container{max-width:1060px;margin:0 auto;padding:0 16px}
.sc-topbar{background:var(--sc-white);border-bottom:1px solid var(--sc-line);position:sticky;top:0;z-index:9}
.sc-topbar .sc-container{display:flex;align-items:center;justify-content:space-between;height:58px}
.sc-brand{font-weight:800;font-size:19px;color:var(--sc-ink);text-decoration:none}
.sc-brand em{font-style:normal;color:var(--sc-orange)}
.sc-links a{font-size:14px;color:var(--sc-steel);text-decoration:none;margin-left:18px}
.sc-links a:hover{color:var(--sc-orange)}
.sc-intro{padding:30px 0 18px}
.sc-intro h1{font-size:27px;margin:0 0 10px}
.sc-intro p{margin:0;color:var(--sc-steel);max-width:700px}
.sc-week{display:flex;gap:8px;overflow-x:auto;padding:16px 0 20px}
.sc-day{flex:0 0 auto;min-width:74px;text-align:center;background:var(--sc-white);border:1px solid var(--sc-line);border-radius:10px;padding:9px 6px;text-decoration:none;color:var(--sc-steel)}
.sc-day b{display:block;font-size:17px;color:var(--sc-ink)}
.sc-day.sc-today{background:var(--sc-orange);border-color:var(--sc-orange);color:#ffe2d1}
.sc-day.sc-today b{color:#fff}
.sc-timeline{position:relative;padding-left:26px;margin-bottom:36px}
.sc-timeline::before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:var(--sc-line)}
.sc-slot{position:relative;margin-bottom:14px}
.sc-slot::before{content:"";position:absolute;left:-23px;top:20px;width:10px;height:10px;border-radius:50%;background:var(--sc-white);border:2px solid var(--sc-steel)}
.sc-slot.sc-next::before{background:var(--sc-orange);border-color:var(--sc-orange)}
.sc-item{background:var(--sc-white);border:1px solid var(--sc-line);border-radius:12px;padding:14px 16px;display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center}
.sc-clock{font-weight:800;font-variant-numeric:tabular-nums}
.sc-league{display:block;font-size:11px;color:var(--sc-mute);font-weight:400}
.sc-match{font-size:15px;font-weight:600}
.sc-venue{display:block;font-size:12px;color:var(--sc-mute);font-weight:400;margin-top:2px}
.sc-go{font-size:13px;color:var(--sc-orange);text-decoration:none;white-space:nowrap}
.sc-flag{display:inline-block;font-size:11px;background:#fff1e8;color:var(--sc-orange);border-radius:4px;padding:1px 6px;margin-left:6px}
.sc-two{display:grid;grid-template-columns:1fr 250px;gap:30px;margin-bottom:40px}
.sc-two h2{font-size:19px;margin:20px 0 8px}
.sc-two p{margin:0 0 10px;color:#3e5163}
.sc-box{background:var(--sc-white);border:1px solid var(--sc-line);border-radius:12px;padding:14px 16px;margin-bottom:14px}
.sc-box h3{margin:0 0 8px;font-size:15px}
.sc-box ul{list-style:none;margin:0;padding:0;font-size:14px}
.sc-box li{padding:6px 0;border-bottom:1px solid #f1f4f8}
.sc-box li:last-child{border:0}
.sc-box a{color:var(--sc-steel);text-decoration:none}
.sc-box a:hover{color:var(--sc-orange)}
.sc-qa{background:var(--sc-white);border:1px solid var(--sc-line);border-radius:12px;padding:6px 16px}
.sc-qa details{border-bottom:1px solid #f1f4f8;padding:12px 0}
.sc-qa details:last-child{border:0}
.sc-qa summary{cursor:pointer;font-weight:600;font-size:15px}
.sc-qa p{margin:6px 0 0;color:var(--sc-steel);font-size:14px}
.sc-meta{font-size:13px;color:var(--sc-mute);margin-top:16px}
.sc-footer{background:var(--sc-white);border-top:1px solid var(--sc-line);padding:22px 0;font-size:13px;color:var(--sc-mute)}
.sc-footer a{color:var(--sc-steel)}
@media(max-width:800px){.sc-two{grid-template-columns:1fr}.sc-links{display:none}}

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


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

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

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


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