:root {
    --ink: #13241c;
    --paper: #f4f0e6;
    --card: #fffdf8;
    --gold: #a67c32;
    --gold-2: #e6d3a1;
    --red: #c4322d;
    --line: #e6dccb;
    --muted: #6f685c;
    --live: #c4322d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    background: var(--ink);
    color: #f7f3ea;
}
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
.today-label { margin: 0; color: var(--gold-2); font-size: 13px; }
.main-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.main-nav a {
    flex: 0 0 auto;
    color: #efe7d6;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
}
.main-nav a.on { color: #fff; border-color: var(--gold-2); }
main { padding: 28px 0 48px; }
h1, h2, .section-title {
    font-family: "Songti SC", "STSong", "SimSun", serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}
h1 { font-size: 40px; }
h2, .section-title { font-size: 26px; }
.sub { color: var(--muted); margin-top: 0; }
.hero {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    align-items: center;
    background: var(--ink);
    color: #f7f3ea;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 18px;
}
.hero-mark { width: 120px; height: 120px; border-radius: 16px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold-2); letter-spacing: 0.14em; font-size: 13px; margin: 0 0 6px; }
.eyebrow img { width: 16px; height: 16px; }
.hero h1 { color: #fff; margin-bottom: 8px; }
.lead { margin: 0; color: #e7decc; max-width: 640px; }
.league-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}
.league-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 700;
}
.league-card img { width: 18px; height: 18px; }
.block { margin: 28px 0; }
.block-head, .day-switch {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.block-head a, .day-switch a { color: var(--gold); font-weight: 700; }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-row {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) 86px minmax(0, 1fr) 72px;
    gap: 8px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.match-row.live { box-shadow: inset 3px 0 0 var(--live); }
.m-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.m-league { color: var(--gold); font-size: 13px; }
.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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-score { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-score i { margin: 0 4px; color: var(--muted); font-style: normal; }
.m-state { text-align: right; font-size: 13px; color: var(--muted); }
.match-row.live .m-state { color: var(--live); font-weight: 700; }
.crest { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #efe6d4; flex: 0 0 auto; }
.crest-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.card-grid, .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.text-card, .news-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}
.text-card img { width: 22px; height: 22px; }
.news-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.news-card strong, .text-card strong { line-height: 1.45; }
.news-card span, .text-card span, .news-card p { color: var(--muted); margin: 0; font-size: 13px; }
.about-block, .faq-block, .article, .match-detail {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    margin-top: 18px;
}
.faq-block details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq-block summary { cursor: pointer; font-weight: 700; }
.empty { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pager a, .pager span {
    min-width: 40px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--line);
}
.pager .on { background: var(--ink); color: #fff; }
.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}
.scoreboard > div:first-child, .scoreboard > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.scoreboard .crest, .scoreboard .crest-text { width: 54px; height: 54px; font-size: 20px; }
.big-score { font-size: 36px; font-weight: 800; }
.big-score i { margin: 0 8px; font-style: normal; color: var(--muted); }
.state-line { text-align: center; color: var(--gold); font-weight: 700; }
.signal-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.signal-row a {
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    min-height: 44px;
}
.article-body p { margin: 0 0 14px; }
.article-body img { display: block; margin: 12px auto; border-radius: 10px; }
.cover img { width: 100%; border-radius: 12px; }
.meta { color: var(--muted); }
.plain-list { padding-left: 18px; }
.plain-list li { margin: 8px 0; }
.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 0 32px;
    color: var(--muted);
    text-align: center;
}
.site-footer p { margin: 4px 0; }
@media (max-width: 900px) {
    .league-row, .card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 32px; }
}
@media (max-width: 720px) {
    .wrap { width: min(1120px, calc(100% - 20px)); }
    .hero { grid-template-columns: 72px 1fr; padding: 18px; }
    .hero-mark { width: 72px; height: 72px; }
    .league-row { grid-template-columns: repeat(3, 1fr); }
    .card-grid, .news-grid { grid-template-columns: 1fr; }
    .match-row {
        grid-template-columns: 52px 1fr auto;
        grid-template-areas:
            "time league state"
            "home score away";
    }
    .m-time { grid-area: time; }
    .m-league { grid-area: league; }
    .m-state { grid-area: state; }
    .m-team.home { grid-area: home; }
    .m-score { grid-area: score; }
    .m-team.away { grid-area: away; }
    .news-card img { height: 180px; }
    .header-bar { min-height: 60px; }
}
