:root {
    --header: #1d1c29;
    --bg: #f3f3f3;
    --panel: #ffffff;
    --yellow: #ffc400;
    --text: #222222;
    --muted: #999999;
    --border: #ececec;
    --live: #e7353f;
    --footer: #24232f;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body.ref-theme {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #d69f00; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; }
main.wrap { padding-top: 16px; padding-bottom: 28px; }

.ref-site-header {
    position: relative;
    z-index: 20;
    min-height: 68px;
    color: #fff;
    background: var(--header);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.ref-header-inner { min-height: 68px; display: flex; align-items: stretch; gap: 26px; }
.ref-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; }
.ref-brand:hover { color: #fff; }
.ref-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #171620;
    background: var(--yellow);
    font-size: 19px;
    font-weight: 900;
}
.ref-brand-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.ref-main-nav { flex: 1; min-width: 0; }
.ref-main-nav ul { height: 68px; display: flex; align-items: stretch; }
.ref-main-nav li { display: flex; }
.ref-main-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 19px;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.ref-main-nav .nav-link:hover,
.ref-main-nav .nav-link.is-active { color: var(--yellow); background: rgba(255, 255, 255, .045); }
.ref-main-nav .nav-link.is-active:after {
    content: "";
    position: absolute;
    left: 19px;
    right: 19px;
    bottom: 0;
    height: 3px;
    background: var(--yellow);
}
.league-strip { background: #fff; border-bottom: 1px solid var(--border); }
.league-nav { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.league-nav a {
    flex: 0 0 auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    background: #fafafa;
    color: #666;
    font-size: 13px;
}
.league-nav a:hover,
.league-nav a.is-active { color: #171620; background: var(--yellow); border-color: var(--yellow); }

.section-panel,
.site-intro-section,
.ref-live-board {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .035);
}
.page-hero { margin: 0 0 14px; padding: 18px 20px; border-left: 4px solid var(--yellow); }
.page-hero h1, .site-intro-title { color: var(--text); font-size: 22px; line-height: 1.35; }
.site-intro-desc, .list-lead { margin-top: 8px; color: #777; font-size: 14px; line-height: 1.8; }
.list-lead { padding: 0 18px 12px; }
.ref-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.board-gap { margin-top: 16px; }
.ref-panel-heading {
    min-height: 66px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}
.ref-panel-heading h2, .sidebar-title, .section-title, .news-title, .video-title, .inter-title {
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
}
.ref-heading-kicker { display: block; margin-bottom: 2px; color: #c79800; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.ref-board-tabs, .day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.day-nav { margin: 0 0 14px; }
.ref-board-tabs a, .day-nav a, .more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    color: #666;
    background: #fafafa;
    font-size: 13px;
    font-weight: 400;
}
.ref-board-tabs a:hover, .ref-board-tabs a.is-active,
.day-nav a:hover, .day-nav a.is-active,
.more-link:hover { color: #171620; border-color: var(--yellow); background: var(--yellow); }
.date-header {
    margin: 0;
    padding: 8px 14px;
    color: #777;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
}
.ref-match-row {
    min-height: 67px;
    display: grid;
    grid-template-columns: 72px 116px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.ref-match-row:last-child { border-bottom: 0; }
.ref-match-row:hover { background: #fffdf4; }
.ref-match-time { display: flex; flex-direction: column; line-height: 1.2; }
.ref-match-time strong { color: #333; font-size: 16px; }
.ref-match-time span, .ref-match-league, .sl-time { color: var(--muted); font-size: 12px; }
.ref-match-league { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-match-teams {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.ref-match-teams b { color: #888; font-size: 13px; text-align: center; }
.ref-team { min-width: 0; display: flex; align-items: center; gap: 8px; }
.ref-team-home { justify-content: flex-end; text-align: right; }
.team-name { min-width: 0; color: #333; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-logo, .team-fallback {
    width: 30px;
    height: 30px;
    border: 1px solid #eee;
    border-radius: 50%;
    background: #fafafa;
    object-fit: cover;
    flex: 0 0 30px;
}
.team-fallback { display: inline-flex; align-items: center; justify-content: center; color: #171620; font-size: 13px; font-weight: 700; }
.ref-match-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 3px;
    color: #555;
    background: #efefef;
    font-size: 12px;
    white-space: nowrap;
}
.ref-match-action.is-live { color: #fff; background: var(--live); }
.ref-match-action.is-live:before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #fff;
}
.ref-match-action:hover { color: inherit; filter: brightness(.96); }
.empty { padding: 16px 18px; color: var(--muted); }

.ref-home-sidebar { display: grid; gap: 14px; }
.sidebar-title, .section-title, .news-title, .video-title, .inter-title {
    padding: 12px 14px;
    border-bottom: 2px solid var(--yellow);
}
.sidebar-live-list li, .sidebar-news-list li, .plain-list li { padding: 11px 13px; border-bottom: 1px solid var(--border); }
.sidebar-live-list li:last-child, .sidebar-news-list li:last-child, .plain-list li:last-child { border-bottom: 0; }
.sidebar-live-list a, .sidebar-news-list a, .plain-list a { color: #333; font-weight: 700; }
.sidebar-live-list a:hover, .sidebar-news-list a:hover, .plain-list a:hover { color: #b88900; }

.news-section, .video-section, .inter-section, .about, .faq, .detail-copy { margin-top: 16px; }
.news-title, .video-title { display: flex; align-items: center; justify-content: space-between; }
.news-title a { color: #777; font-size: 13px; font-weight: 400; }
.news-list li {
    display: flex;
    gap: 15px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.news-list li:hover { background: #fffdf4; }
.news-img { flex: 0 0 190px; width: 190px; height: 116px; overflow: hidden; border-radius: 3px; background: #eee; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-info { min-width: 0; display: flex; flex-direction: column; }
.news-info h3 { font-size: 16px; line-height: 1.5; }
.news-info p, .news-date, .article-meta { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.news-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inter-section ul { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px 18px; }
.inter-section a {
    display: inline-block;
    max-width: 260px;
    padding: 6px 14px;
    color: #555;
    background: #f6f6f6;
    border: 1px solid #ececec;
    border-radius: 3px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inter-section a:hover { color: #171620; background: var(--yellow); border-color: var(--yellow); }
.about, .faq, .detail-copy { padding: 18px 20px 20px; }
.about p, .detail-copy p, .article-content p { margin-top: 10px; color: #3f3f3f; font-size: 15px; line-height: 1.9; }
.about a, .detail-copy a, .article-content a { color: #b88900; }
.faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.video-list { padding: 8px 14px 14px; }
.video-list li { border-bottom: 1px solid var(--border); }
.video-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; color: #333; }
.video-list a span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.video-list a:hover strong { color: #b88900; }

.crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.crumb a { color: #666; }
.ref-match-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 5px;
    background:
        linear-gradient(90deg, rgba(12, 20, 23, .93), rgba(20, 45, 39, .72) 48%, rgba(12, 20, 23, .93)),
        repeating-linear-gradient(90deg, #254e42 0, #254e42 82px, #2c594a 82px, #2c594a 164px);
    box-shadow: 0 8px 26px rgba(20, 25, 31, .18);
}
.ref-match-hero:before {
    content: "";
    position: absolute;
    inset: 24px 7%;
    border: 1px solid rgba(255, 255, 255, .18);
    pointer-events: none;
}
.detail-title, .detail-teams { position: relative; z-index: 1; }
.detail-title { padding: 24px 24px 0; color: rgba(255, 255, 255, .84); text-align: center; }
.detail-title a { color: #fff; }
.hero-state { position: relative; z-index: 1; margin: -28px 0 22px; text-align: center; }
.detail-teams {
    margin: 0;
    padding: 28px 30px 42px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}
.side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.team-name-lg { color: #fff; font-size: 20px; text-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.ref-match-hero .team-logo, .ref-match-hero .team-fallback {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    padding: 7px;
    border: 2px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .94);
}
.mid, .vs-score { display: flex; flex-direction: column; align-items: center; text-align: center; }
.vs-score, .vs-score b { color: var(--yellow); font-size: 42px; line-height: 1; }
.vs-score .vs, .vs-score i { color: rgba(255, 255, 255, .7); font-style: normal; font-size: 22px; }
.state { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; }
.ref-detail-tabs {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow-x: auto;
}
.ref-detail-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 18px;
    color: #666;
    font-weight: 700;
    white-space: nowrap;
}
.ref-detail-tabs a:hover { color: var(--text); }
.signals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.signals a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 3px; background: var(--live); color: #fff; }
.signals a:hover { color: #fff; }
.article-title { color: var(--text); font-size: 28px; line-height: 1.45; }
.ref-article-panel { margin-top: 0; padding: 28px 32px; }
.article-content img, .article-cover-inline img { margin-top: 12px; border-radius: 3px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pager a, .pager .on {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
    color: #666;
}
.pager a:hover, .pager .on { color: #171620; background: var(--yellow); border-color: var(--yellow); }

.ref-site-footer {
    padding: 28px 0 30px;
    color: #999;
    background: var(--footer);
    border-top: 3px solid var(--yellow);
    text-align: center;
}
.footer-heading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-kicker { color: #fff; font-size: 16px; font-weight: 800; }
.footer-rule { width: 34px; height: 2px; background: var(--yellow); }
.footer-desc { max-width: 820px; margin: 14px auto 12px; color: #8f8e97; }
.footer-copy { color: #777680; }

@media (max-width: 900px) {
    .ref-content-grid { grid-template-columns: 1fr; }
    .ref-home-sidebar { display: none; }
    .news-img { flex-basis: 120px; width: 120px; height: 80px; }
}
@media (max-width: 768px) {
    .wrap { padding-left: 10px; padding-right: 10px; }
    main.wrap { padding-top: 10px; padding-bottom: 18px; }
    .ref-header-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 9px; }
    .ref-brand { height: 42px; }
    .ref-brand-mark { width: 34px; height: 34px; font-size: 17px; }
    .ref-brand-name { font-size: 17px; }
    .ref-main-nav { flex: 1 0 100%; margin-top: 7px; border-top: 1px solid rgba(255, 255, 255, .08); }
    .ref-main-nav ul { height: auto; flex-wrap: wrap; }
    .ref-main-nav li { flex: 1 1 20%; }
    .ref-main-nav .nav-link { width: 100%; min-height: 42px; justify-content: center; padding: 0 4px; font-size: 12px; }
    .ref-main-nav .nav-link.is-active:after { left: 12px; right: 12px; }
    .page-hero { padding: 14px; }
    .page-hero h1 { font-size: 20px; }
    .ref-panel-heading { min-height: 58px; padding: 10px 12px; align-items: flex-start; flex-direction: column; }
    .ref-match-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        padding: 12px;
    }
    .ref-match-time { flex-direction: row; align-items: center; gap: 7px; }
    .ref-match-league { text-align: right; }
    .ref-match-teams { grid-column: 1 / -1; }
    .team-name { white-space: normal; }
    .ref-match-action { grid-column: 1 / -1; width: 100%; }
    .news-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .news-img { width: 112px; height: 78px; flex-basis: 112px; }
    .news-info p { display: none; }
    .video-list a { flex-direction: column; gap: 4px; }
    .detail-teams { grid-template-columns: 1fr; padding: 26px 12px 30px; }
    .ref-match-hero:before { inset: 12px 6%; }
    .ref-match-hero .team-logo, .ref-match-hero .team-fallback { width: 72px; height: 72px; flex-basis: 72px; }
    .vs-score, .vs-score b { font-size: 30px; }
    .ref-article-panel { padding: 18px 14px; }
    .article-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
