:root {
    --bg: #08111a;
    --bg-2: #102433;
    --card: rgba(16, 36, 51, 0.88);
    --line: rgba(224, 197, 138, 0.22);
    --gold: #e0c58a;
    --gold-2: #8d6b34;
    --ink: #f6f1e7;
    --muted: #9aabB8;
    --live: #e15b5b;
    --ok: #8fceb0;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(224, 197, 138, 0.16), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(22, 74, 62, 0.45), transparent 55%),
        var(--bg);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f3e2bc; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 17, 26, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 26px; letter-spacing: 0.12em; }
.main-nav, .league-nav, .day-nav, .chip-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a, .league-nav a, .day-nav a, .chip-nav a {
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
}
.main-nav a[aria-current="page"], .league-nav a[aria-current="page"], .day-nav a[aria-current="page"] {
    color: #1a1408;
    background: linear-gradient(180deg, #f0d7a4, var(--gold));
}
.league-nav { padding-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; }
.league-nav a { flex: 0 0 auto; background: rgba(255,255,255,0.03); border-color: rgba(224,197,138,0.14); }
main { padding: 28px 0 56px; }
.hero { padding: 28px 0 10px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); letter-spacing: 0.18em; font-size: 13px; }
.hero-title, h1, h2 { font-family: "Songti SC", "STSong", "SimSun", serif; font-weight: 600; letter-spacing: 0.04em; }
.hero-title { margin: 0; font-size: 64px; line-height: 1.05; }
.hero-lead { max-width: 760px; color: #d5ddd4; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin: 18px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(180deg, #f0d7a4, #c6a15a); color: #1a1408; }
.btn.ghost { color: var(--ink); }
.block { margin-top: 34px; }
.block-head, .page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.block-head h2, .page-intro h1 { margin: 0 0 12px; font-size: 32px; }
.page-intro p { margin-top: 0; color: #d5ddd4; }
.league-grid, .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.league-card, .news-card, .match-row {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.league-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; color: var(--ink); min-height: 120px; }
.league-card strong { font-size: 18px; }
.league-card span, .news-card span, .news-card em, .card-kicker { color: #b7c3cc; font-style: normal; font-size: 13px; }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-row {
    display: grid;
    grid-template-columns: 76px minmax(72px, 120px) minmax(0, 1fr) 88px minmax(0, 1fr) 78px;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    color: var(--ink);
}
.m-time { display: flex; flex-direction: column; line-height: 1.2; }
.m-time b { font-size: 16px; font-variant-numeric: tabular-nums; }
.m-time small, .m-league { color: #b7c3cc; font-size: 12px; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-team.away { flex-direction: row-reverse; text-align: right; }
.m-team em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-logo, .team-fallback { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #1b3142; flex: 0 0 36px; }
.team-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--gold); font-size: 14px; }
.m-score { text-align: center; font-variant-numeric: tabular-nums; font-size: 18px; }
.m-score i { margin: 0 4px; color: var(--gold); font-style: normal; }
.vs { color: var(--gold); letter-spacing: 0.08em; }
.m-state { justify-self: end; font-size: 13px; color: var(--ok); }
.is-live .m-state { color: var(--live); }
.is-live .m-state::before, .state.is-live::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px; margin-right: 5px; border-radius: 50%;
    background: var(--live);
    animation: pulse 1.6s infinite;
}
.is-wait .m-state, .state.is-wait { color: #d7c39a; }
.is-done .m-state, .state.is-done { color: #8ea0ad; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 91, 91, 0.65); }
    100% { box-shadow: 0 0 0 8px rgba(225, 91, 91, 0); }
}
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; color: var(--ink); min-height: 140px; }
.news-card strong { font-size: 16px; line-height: 1.45; }
.cover, .article-cover { width: 100%; border-radius: 12px; object-fit: cover; background: #163044; }
.cover { height: 140px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: #b7c3cc; font-size: 13px; margin-bottom: 16px; }
.crumb a { color: var(--gold); }
.day-nav, .chip-nav { margin: 8px 0 16px; }
.day-nav a, .chip-nav a { background: rgba(255,255,255,0.03); border-color: rgba(224,197,138,0.16); }
.match-board, .article, .faq, .about {
    background: rgba(16, 36, 51, 0.72);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
}
.match-board h1, .article h1 { margin: 0 0 16px; font-size: 34px; line-height: 1.3; }
.board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.side .team-logo, .side .team-fallback { width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; }
.mid { text-align: center; }
.big-score { font-size: 36px; }
.signals { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.signals a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; background: linear-gradient(180deg, #f0d7a4, #c6a15a); color: #1a1408; }
.content p, .prose, .article p { font-size: 16px; line-height: 1.85; }
.content img { border-radius: 12px; margin: 8px 0; }
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plain-list a { color: var(--ink); }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-size: 17px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pager a, .pager .on { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.pager .on { background: var(--gold); color: #1a1408; }
.empty { color: #b7c3cc; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: #b7c3cc; }
.footer-name { margin: 0 0 6px; color: var(--ink); font-family: "Songti SC", "STSong", serif; letter-spacing: 0.12em; font-size: 20px; }
.copy { margin-bottom: 0; }
@media (max-width: 900px) {
    .league-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 46px; }
    .match-row { grid-template-columns: 64px minmax(56px, 88px) minmax(0, 1fr) 72px minmax(0, 1fr) 64px; padding: 10px; }
}
@media (max-width: 720px) {
    .wrap { width: min(1120px, calc(100% - 20px)); }
    .header-bar { min-height: 64px; align-items: flex-start; flex-direction: column; padding: 10px 0; }
    .main-nav { width: 100%; }
    .hero-title, .match-board h1, .article h1 { font-size: 32px; }
    .hero-lead { font-size: 16px; }
    .league-grid, .card-grid { grid-template-columns: 1fr; }
    .match-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "time state" "league league" "home home" "score score" "away away";
        align-items: start;
    }
    .m-time { grid-area: time; flex-direction: row; gap: 8px; align-items: baseline; }
    .m-state { grid-area: state; }
    .m-league { grid-area: league; }
    .m-team.home { grid-area: home; }
    .m-score { grid-area: score; justify-self: start; }
    .m-team.away { grid-area: away; flex-direction: row; text-align: left; }
    .m-team em { white-space: normal; }
    .board { grid-template-columns: 1fr; }
    .block-head { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
