
/* Extracted from front-page.php */

    :root { --main-red: #e63946; --main-purple: #8a73ff; --main-bg: #f5f6f7; --border-color: #eee; --hover-bg: #fdfdfd; }
    body { background-color: var(--main-bg); font-family: -apple-system, "Microsoft YaHei", sans-serif; }
    .portal-home-wrap { padding: 20px 0 50px; overflow-x: hidden; }
    .portal-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; box-sizing: border-box;}
    .home-grid { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; width: 100%;}
    .home-main { flex: 1; min-width: 0; }
    .home-side { width: 340px; flex-shrink: 0; }
    .mod-box { background: #fff; margin-bottom: 20px; border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
    .mod-hd { display: flex; background: #fafafa; border-bottom: 1px solid var(--border-color); align-items: center;}
    .schedule-tabs { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; background: #fafafa; -webkit-overflow-scrolling: touch; width: 100%;}
    .schedule-tabs::-webkit-scrollbar { display: none; }
    .schedule-tabs li { padding: 14px 22px; font-size: 15px; cursor: pointer; color: #444; transition: 0.2s; white-space: nowrap; font-weight: bold;}
    .schedule-tabs li.active { background: var(--main-purple); color: #fff;}
    .schedule-tabs li:hover:not(.active) { color: var(--main-purple); background: #fff;}
    .mod-bd { position: relative; }
    .match-row { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #f0f0f0; background: #fff; text-decoration: none; color: #333; font-size: 13px; transition: background 0.2s; }
    .match-row:hover { background-color: #f9f9fa; }
    .match-row:last-child { border-bottom: none; }
    .m-status-box { width: 60px; flex-shrink: 0; text-align: center; }
    .m-badge { display: inline-block; padding: 3px 6px; border-radius: 3px; font-size: 12px; color: #fff; }
    .m-badge.ns { background-color: #e6403c; } 
    .m-badge.live { background-color: #ff9800; animation: blink 1.5s infinite;}
    .m-badge.ft { background-color: #999; }
    .m-time { width: 90px; text-align: center; color: #555; font-family: Arial, sans-serif; flex-shrink: 0;}
    .m-league { width: 70px; color: #888; text-align: center; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .m-team { flex: 1; display: flex; align-items: center; min-width: 0; font-size: 14px; font-weight: bold; color:#333; }
    .m-team.h { justify-content: flex-end; text-align: right; }
    .m-team.a { justify-content: flex-start; text-align: left; }
    .m-team-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
    .m-logo { width: 26px; height: 26px; object-fit: contain; margin: 0 10px; }
    .m-score { width: 60px; text-align: center; font-weight: bold; font-size: 16px; color: #333; flex-shrink: 0; font-family: Tahoma, sans-serif;}
    .m-score.is-live { color: #e6403c; }
    .m-links { width: 160px; font-size: 12px; text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.2; justify-content: center; margin-left:15px;}
    .m-link-row1 { font-weight: bold; color: #333; font-size: 13px;}
    .m-link-row1 i { color: #f28b00; margin-right: 4px;}
    .m-link-row2 { color: #888; display: flex; justify-content: flex-end; gap: 8px;}
    .m-link-row2 span.highlight { color: #0052cc; }
    .m-link-row3 { color: #999; font-size: 12px; }
    @keyframes blink { 50% { opacity: 0.6; } }
    /* ====================================================
       侧边栏双 Tab：黑底白字激活
       ==================================================== */
    .side-tabs-hd { display: flex; background: #fafafa; border-bottom: 1px solid var(--border-color); margin: 0; padding: 0;}
    .side-tabs-hd li { flex: 1; text-align: center; padding: 14px 0; font-size: 15px; font-weight: bold; color: #444; cursor: pointer; list-style: none; transition: 0.2s;}
    .side-tabs-hd li.active { background: var(--main-purple); color: #fff;}
    .side-tabs-hd li:hover:not(.active) { color: var(--main-purple); background: #fff;}
    .side-pane { display: none; }
    .side-pane.active { display: block; animation: fadeIn 0.3s; }
    .side-news-list { list-style: none; padding: 15px 20px; margin: 0; }
    .side-news-list li { margin-bottom: 14px; padding-left: 12px; position: relative; line-height: 1.6; font-size: 14px; border-bottom: 1px dashed #f5f5f5; padding-bottom: 8px;}
    .side-news-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
    .side-news-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: #ccc; border-radius: 50%; }
    .side-news-list a { color: #444; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-news-list a:hover { color: var(--main-purple); }
    .side-video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px; }
    .v-card { text-decoration: none; display: block; position: relative; }
    .v-thumb { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; position: relative;}
    .v-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s;}
    .v-card:hover .v-thumb img { opacity: 1; transform: scale(1.05); }
    .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .play-icon::after { content: ''; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 4px; }
    .v-title { font-size: 12px; color: #333; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4;}
    /* 矩阵区样式 */
    .matrix-box { background: #fff; margin-bottom: 20px; width: 100%; box-sizing: border-box;}
    .matrix-tabs { display: flex; list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--main-purple); background: #fdfdfd; border-bottom: 1px solid var(--border-color); flex-wrap: wrap;}
    .matrix-tabs li { padding: 15px 25px; font-size: 15px; cursor: pointer; color: #333; transition: 0.2s; border-right: 1px solid #f0f0f0; }
    .matrix-tabs li:hover, .matrix-tabs li.active { background: var(--main-purple); color: #fff; }
    .matrix-bd { padding: 20px; background: #fff; border: 1px solid #eee; border-top: none;}
    .matrix-pane { display: none; }
    .matrix-pane.active { display: block; animation: fadeIn 0.3s; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .matrix-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
    .matrix-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: #333; padding: 15px 5px; background: #fff; border: 1px solid #eee; border-radius: 4px; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
    .matrix-item:hover { border-color: var(--main-purple); box-shadow: 0 4px 10px rgba(0,0,0,0.08); transform: translateY(-2px);}
    .matrix-item img { width: 45px; height: 45px; object-fit: contain; margin-bottom: 10px; border-radius: 4px; display: block; }
    .matrix-item.rounded img { border-radius: 50%; object-fit: cover;}
    .matrix-item span { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; width: 100%;}
    .partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
    .partner-item { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: #fdfdfd; border: 1px solid #eee; border-radius: 4px; text-decoration: none; color: #444; transition: 0.2s;}
    .partner-item:hover { border-color: var(--main-red); color: var(--main-red); background: #fffafb;}
    .partner-item img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0;}
    .partner-item span { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
    @media (max-width: 768px) {
        .portal-home-wrap { padding: 10px 0 30px; }
        .portal-inner { padding: 0 !important; overflow-x: hidden; } 
        .home-grid { flex-direction: column; gap: 10px; }
        .home-main, .home-side { width: 100%; max-width: 100%; }
        .mod-box { border-radius: 0; border-left: none; border-right: none; margin-bottom: 10px; width: 100%; box-sizing: border-box;}
        .mod-hd { flex-direction: column; align-items: flex-start; width: 100%;}
        .schedule-tabs { width: 100%; padding: 0; border-bottom: 1px solid #eee;}
        .match-row { padding: 10px; flex-wrap: wrap; position: relative;}
        .m-status-box { order: 1; width: auto; margin-right: 8px;}
        .m-badge { padding: 2px 4px; font-size: 11px;}
        .m-time { order: 2; width: auto; font-size: 12px; margin-right: 8px;}
        .m-league { order: 3; width: auto; font-size: 12px; text-align: left; flex: 1;}
        .m-team.h { order: 4; flex: 1; justify-content: flex-end; margin-top: 8px; border-top: 1px dashed #f0f0f0; padding-top: 8px;}
        .m-score { order: 5; margin-top: 8px; border-top: 1px dashed #f0f0f0; padding-top: 8px; width: 50px;}
        .m-team.a { order: 6; flex: 1; justify-content: flex-start; margin-top: 8px; border-top: 1px dashed #f0f0f0; padding-top: 8px;}
        .m-team-name { max-width: 80px; font-size: 13px;}
        .m-links { display: none; }
        .matrix-bd { padding: 15px; border: none; }
        .matrix-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
        .matrix-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; border-top: none;}
        .matrix-tabs::-webkit-scrollbar { display: none; }
        .matrix-tabs li { padding: 12px 15px; font-size: 14px; flex-shrink: 0; border-bottom: 2px solid transparent;}
        .matrix-tabs li.active { border-bottom-color: var(--main-purple); border-right: none;}
        .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 10px;}
    }