/* ============================================================
   体育单首页模板样式（复刻 dsjzx.cn 结构，体育化）
   配色通过 CSS 变量实现多主题，由模板头部 :root 注入
   ============================================================ */

:root {
    --primary: #1a7f37;
    --primary-dark: #116530;
    --accent: #f5c518;
    --bg: #f4f7f4;
    --text: var(--text);
    --muted: #6b6b7a;
    --border: var(--muted);
    --card: var(--bg-card);
    --soft: var(--bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.logo-wrap span {
    background: var(--primary);
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
}
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
}
.nav-list a {
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.nav-list a:hover {
    border-bottom-color: var(--primary);
}
.nav-list a.active {
    border-bottom-color: var(--primary);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 14px 0 10px;
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------- Layout ---------- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 50px;
}
@media (max-width: 992px) {
    .grid-layout { grid-template-columns: 1fr; gap: 30px; }
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ---------- Section title ---------- */
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title small {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-left: auto;
}

/* ---------- Banner ---------- */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--border);
    margin-bottom: 40px;
    aspect-ratio: 16/7;
    min-height: 180px;
}
.banner-slider .slide-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.banner-slider .slide-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    background: var(--bg-card);
}
.banner-slider .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}
.banner-slider .slide-caption h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.banner-slider .slide-caption p { font-size: 14px; opacity: 0.9; max-width: 70%; }
.banner-dots {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 5;
}
.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.banner-dots button.active { background: var(--bg-card); border-color: #fff; }

/* ---------- Match cards ---------- */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 480px) {
    .match-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.match-card {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    position: relative;
}
.match-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.match-card .card-img {
    aspect-ratio: 2/3;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}
.match-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.match-card:hover .card-img img { transform: scale(1.03); }
.match-card .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.match-card .card-badge.update { background: var(--accent); color: var(--text); }
.match-card .card-body { padding: 14px 14px 12px; }
.match-card .card-body h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.match-card .card-body .meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.match-card .card-body .desc {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.match-card .card-footer-btn {
    padding: 6px 14px 14px;
    border-top: 1px solid var(--soft);
    display: flex;
    justify-content: flex-end;
}
.match-card .card-footer-btn button {
    background: var(--soft);
    border: none;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.match-card .card-footer-btn button:hover { background: var(--bg-card); }

/* ---------- 深度分析 / 影评 ---------- */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}
.review-item {
    background: var(--card);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--primary);
}
.review-item .review-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.review-item .review-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.review-item .review-excerpt {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}
.review-item .review-excerpt .keyword-highlight {
    color: var(--primary);
    font-weight: 500;
}

/* 问答块 */
.qa-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.qa-item {
    background: var(--card);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.qa-item .qa-q { font-weight: 600; color: var(--primary); margin-bottom: 6px; font-size: 15px; }
.qa-item .qa-a { font-size: 14px; color: var(--text); line-height: 1.7; }

/* 数据盘点块 */
.analysis-data {
    background: var(--card);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--accent);
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

/* ---------- Sidebar ---------- */
.sidebar .side-block {
    background: var(--card);
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.sidebar .side-block h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--soft);
    color: var(--text);
}
.side-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.side-list li {
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px dashed var(--soft);
}
.side-list li:last-child { border-bottom: none; }
.side-list li a {
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.side-list li a:hover { color: var(--primary); }
.side-list li .tag {
    background: var(--soft);
    font-size: 11px;
    padding: 1px 10px;
    border-radius: 12px;
    color: var(--muted);
}

/* ---------- Guestbook ---------- */
.guestbook-area {
    background: var(--card);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
}
.guestbook-area .gb-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--soft);
    display: flex;
    gap: 14px;
}
.guestbook-area .gb-item:last-child { border-bottom: none; }
.guestbook-area .gb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    flex-shrink: 0;
    overflow: hidden;
}
.guestbook-area .gb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.guestbook-area .gb-content { flex: 1; }
.guestbook-area .gb-name { font-weight: 600; font-size: 15px; color: var(--text); }
.guestbook-area .gb-time { font-size: 12px; color: var(--muted); margin-left: 10px; }
.guestbook-area .gb-text { font-size: 14px; color: var(--text); margin-top: 2px; line-height: 1.5; }
.guestbook-area .gb-text .kw { color: var(--primary); font-weight: 500; }

/* ---------- Footer ---------- */
.footer-wrap {
    background: var(--primary-dark);
    color: var(--muted);
    padding: 32px 0 20px;
    margin-top: 30px;
}
.footer-wrap .footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-wrap .footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-wrap .footer-links a { color: var(--muted); font-size: 14px; }
.footer-wrap .footer-links a:hover { color: #fff; }
.footer-wrap .copy { font-size: 13px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box .close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 0 6px;
    transition: color 0.2s;
}
.modal-box .close-btn:hover { color: var(--text); }
.modal-box .modal-poster {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.modal-box .modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-box .modal-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-box .modal-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.modal-box .modal-desc { font-size: 15px; color: var(--text); line-height: 1.8; }
.modal-box .modal-desc .kw { color: var(--primary); font-weight: 500; }

/* ---------- Utilities ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-cloud a {
    background: var(--soft);
    padding: 2px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; }
.inline-kw { color: var(--primary); font-weight: 500; }
.keyword-tag {
    display: inline-block;
    background: var(--soft);
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--text);
    margin: 2px 4px 2px 0;
    transition: background 0.2s;
}
.keyword-tag:hover { background: var(--bg-card); }
.anchor-offset { scroll-margin-top: 90px; }
.btn-play-sim {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
    cursor: default;
}
.btn-play-sim:hover { background: var(--primary-dark); }
.float-hover-glow { transition: box-shadow 0.3s, transform 0.3s; }
.float-hover-glow:hover { box-shadow: 0 0 20px rgba(0, 0, 0, 0.12); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: stretch; gap: 8px; }
    .logo-wrap { justify-content: center; }
    .nav-list { justify-content: center; gap: 4px 12px; font-size: 14px; }
    .banner-slider { aspect-ratio: 16/9; min-height: 140px; }
    .banner-slider .slide-caption h2 { font-size: 17px; }
    .banner-slider .slide-caption p { max-width: 100%; font-size: 13px; }
    .section-title { font-size: 21px; }
    .match-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .match-card .card-body h3 { font-size: 14px; }
    .modal-box { padding: 24px 18px; max-width: 100%; margin: 10px; }
    .footer-wrap .footer-inner { flex-direction: column; text-align: center; }
    .footer-wrap .footer-links { justify-content: center; }
    .sidebar .side-block { padding: 16px; }
    .grid-layout { gap: 20px; }
    .guestbook-area { padding: 16px; }
    .review-item { padding: 14px 16px; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .match-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .match-card .card-body { padding: 10px 10px 8px; }
    .match-card .card-body h3 { font-size: 13px; }
    .match-card .card-body .meta { font-size: 11px; gap: 6px; }
    .match-card .card-body .desc { font-size: 12px; -webkit-line-clamp: 1; }
    .match-card .card-footer-btn { padding: 4px 10px 10px; }
    .match-card .card-footer-btn button { font-size: 12px; padding: 2px 12px; }
    .banner-slider .slide-caption { padding: 16px 14px 12px; }
    .banner-slider .slide-caption h2 { font-size: 15px; }
    .banner-slider .slide-caption p { font-size: 12px; }
    .banner-dots { bottom: 8px; right: 12px; }
    .banner-dots button { width: 10px; height: 10px; }
    .section-title { font-size: 18px; }
    .modal-box .modal-title { font-size: 20px; }
}
