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

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

.cj-hero{padding:40px 18px 20px;max-width:1120px;margin:0 auto}
.cj-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;max-width:1120px;margin:0 auto 30px;padding:0 18px}
.cj-item{background:#ffffff;border:1px solid #d5e0e6;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.cj-time{font-size:12px;color:#5f7683}
.cj-vs{font-size:16px;font-weight:600}
.cj-vs b{color:#0a8f8c;margin:0 6px}
.cj-lg{font-size:12px;color:#12657f}
.cj-links{max-width:1120px;margin:0 auto 20px;padding:0 18px}

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


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

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

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


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