:root {
    --bg: #0c1016;
    --bg-2: #141a24;
    --card: #18202c;
    --line: #2d384c;
    --text: #f4f7fb;
    --muted: #a8b3c7;
    --gold: #f0b429;
    --gold-2: #c48a12;
    --live: #ff5a5f;
    --done: #3dcc8e;
    --wait: #8ea0bd;
    --ink: #1b1712;
    --paper: #f7f3ea;
    --shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffd36a; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    background: #10151d;
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { width: 44px; height: 44px; border-radius: 10px; background: #0c1016; }
.brand small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.brand b { font-size: 20px; line-height: 1.2; }
.nav-toggle {
    display: none;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 15px;
}
.main-nav, .sub-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.main-nav { padding-bottom: 12px; }
.main-nav a, .sub-nav a, .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
}
.main-nav a.on, .sub-nav a.on, .chip.on { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.sub-nav { padding-bottom: 14px; }
.sub-nav a { color: var(--muted); background: var(--bg-2); border-color: var(--line); }
.sub-nav img, .league-title img, .sec-title img { width: 16px; height: 16px; object-fit: contain; }
.site-main { padding: 28px 0 48px; }
.hero, .page-head, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: var(--shadow);
}
.hero h1, .page-head h1, .article h1, .match-detail h1 { margin: 6px 0 8px; font-size: 34px; line-height: 1.25; }
.kicker { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: .04em; }
.lead, .page-head p, .foot-desc { color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; }
.chip { border: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.sec { margin-top: 22px; }
.sec-title, .league-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 20px;
}
.sec-title small, .league-title small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.league-title a { color: var(--text); }
.league-block { margin-bottom: 18px; }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) 72px minmax(0, 1fr) 88px;
    gap: 8px;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text);
}
.match-card:hover { border-color: #4a5b78; color: var(--text); }
.mc-time b { display: block; font-size: 13px; font-weight: 650; }
.mc-time em { color: var(--wait); font-style: normal; font-size: 12px; }
.is-live .mc-time em { color: var(--live); }
.is-done .mc-time em { color: var(--done); }
.mc-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-team.away { justify-content: flex-end; text-align: right; }
.mc-team img { width: 32px; height: 32px; object-fit: contain; background: #0e131b; border-radius: 50%; flex: none; }
.mc-team strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mc-score { text-align: center; font-weight: 750; letter-spacing: .04em; }
.mc-btn {
    justify-self: end;
    background: #243044;
    color: var(--text);
    border-radius: 8px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 13px;
}
.is-live .mc-btn { background: var(--live); color: #fff; }
.vlist { display: flex; flex-direction: column; gap: 8px; }
.vrow {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
}
.vrow span { min-width: 0; }
.vrow time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.news-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    color: var(--text);
}
.news-card img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; background: #0e131b; }
.news-card strong { display: block; font-size: 15px; line-height: 1.45; }
.news-card time { color: var(--muted); font-size: 12px; }
.panel { margin-top: 22px; }
.panel h2, .panel h3 { margin: 14px 0 8px; }
.panel h2 { font-size: 24px; }
.panel p { margin: 0 0 8px; color: #d5dceb; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 650; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumb a { color: var(--muted); }
.date-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.date-item {
    min-width: 92px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    text-align: center;
    padding: 8px 6px;
}
.date-item b, .date-item span { display: block; }
.date-item span { color: var(--muted); font-size: 12px; }
.date-item.on { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.date-item.on span { color: #5c4310; }
.empty {
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 18px;
    color: var(--muted);
}
.md-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    margin: 12px 0;
}
.side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.side img { width: 72px; height: 72px; object-fit: contain; background: #0e131b; border-radius: 50%; }
.mid { text-align: center; }
.mid b { display: block; font-size: 32px; }
.badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #243044; font-size: 12px; }
.badge.live { background: var(--live); }
.badge.done { background: #1d6b49; }
.mid time { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.signals { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sig {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--gold);
    color: #1a1406;
    font-weight: 700;
}
.tip { color: var(--muted); }
.article .cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }
.prose {
    background: var(--paper);
    color: var(--ink);
    border-radius: 14px;
    padding: 18px 18px 8px;
    margin-top: 12px;
}
.prose p, .prose li { color: var(--ink); }
.prose a { color: #8a5a00; }
.prose img { border-radius: 8px; margin: 8px 0; }
.meta-box { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.pn { display: grid; gap: 8px; margin-top: 16px; }
.pn a, .pn span {
    display: block;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
}
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pager a, .pager span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    padding: 0 10px;
}
.pager .on { background: var(--gold); color: #1a1406; border-color: var(--gold); }
.site-footer { background: #10151d; border-top: 1px solid var(--line); padding: 22px 0 32px; }
.site-footer p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.friends { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.friends span { color: var(--text); }
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; padding-bottom: 12px; }
    .main-nav.open { display: flex; flex-direction: column; }
    .main-nav a { width: 100%; border: 1px solid var(--line); background: var(--bg-2); }
    .hero h1, .page-head h1, .article h1, .match-detail h1 { font-size: 26px; }
    .match-card {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas:
            "time time time"
            "home score away"
            "btn btn btn";
    }
    .mc-time { grid-area: time; }
    .mc-team.home { grid-area: home; }
    .mc-score { grid-area: score; }
    .mc-team.away { grid-area: away; }
    .mc-btn { grid-area: btn; justify-self: stretch; justify-content: center; }
    .news-grid { grid-template-columns: 1fr; }
    .vrow { flex-direction: column; align-items: flex-start; }
    .md-board { grid-template-columns: 1fr; }
    .wrap { width: min(1120px, calc(100% - 20px)); }
}
