
/* Extracted from single-team_foot.php */

        /* 【核心修复】：删除了 :root 定义，直接继承 header.php 的 --theme-color (#8C6BE7) */
        .portal-team-wrap { width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; background-color: #f5f6f7; padding-bottom: 40px; }
        .portal-team-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
        .portal-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
        /* 顶部沉浸式看版 (继承主色调) */
        .hero-board { width: 100%; background-color: var(--theme-color); padding: 40px 0; margin-bottom: 20px; position: relative; }
        .hero-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
        .hero-left { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
        .team-logo-box { width: 120px; height: 120px; background: rgba(255,255,255,0.1); border-radius: 50%; padding: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border: 2px solid rgba(255,255,255,0.3); }
        .team-logo-box img { width: 100%; height: 100%; object-fit: contain; }
        .team-info-box { color: #fff; }
        .team-info-box h1 { font-size: 32px; font-weight: 900; margin-bottom: 5px; line-height: 1.2; text-shadow: 1px 1px 2px rgba(0,0,0,0.2);}
        .team-info-box p { font-size: 15px; color: rgba(255,255,255,0.8); margin: 0; font-weight: 500; letter-spacing: 1px;}
        /* 玻璃态球队简介框 */
        .hero-right { flex: 1; background: rgba(0,0,0,0.15); padding: 15px 20px; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.95); line-height: 1.6; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(4px); max-height: 120px; overflow-y: auto; text-shadow: 1px 1px 2px rgba(0,0,0,0.2);}
        .hero-right::-webkit-scrollbar { width: 4px; }
        .hero-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
        .portal-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.02);}
        h2.portal-sec-header { background: #fafafa; padding: 15px 20px; font-size: 18px; font-weight: bold; color: #333; border-bottom: 1px solid #eee; border-left: 4px solid var(--theme-color); margin: 0;}
        .portal-sec-body { padding: 20px; }
        /* 赛程列表 (严格防折行优化) */
        .match-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px dashed #eee; transition: 0.2s; text-decoration: none; color: #333; flex-wrap: nowrap;}
        .match-row:hover { background: #fdfdfd; }
        .match-row:last-child { border-bottom: none; }
        .m-time-box { flex: 0 0 100px; font-size: 14px; color: #666; }
        .m-time-box strong { display: block; color: #333; font-size: 15px; }
        .m-teams-box { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: bold; min-width: 0;}
        .m-team { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;}
        .m-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;}
        .m-team-h { justify-content: flex-end; text-align: right; }
        .m-team-a { justify-content: flex-start; text-align: left; }
        .m-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0;}
        .m-score-status { flex: 0 0 80px; text-align: center; }
        .m-score { font-size: 18px; font-weight: bold; color: var(--theme-color); background: #f8f6ff; padding: 2px 8px; border-radius: 4px; display: inline-block; white-space: nowrap;}
        .m-status { display: block; font-size: 12px; color: #888; margin-top: 4px; white-space: nowrap;}
        .m-action-btn { flex: 0 0 90px; text-align: right; color: var(--theme-color); font-weight: bold; font-size: 14px; white-space: nowrap;}
        /* 球员阵列 - 完美对齐 */
        .players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 20px; }
        .player-card { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #333; transition: 0.3s; padding: 10px; border-radius: 8px;}
        .player-card:hover { background: #f9f9f9; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        .player-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; background: #f5f5f5; border: 2px solid #eee; box-shadow: 0 2px 6px rgba(0,0,0,0.05);}
        .player-card .p-name { font-size: 14px; font-weight: bold; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%;}
        .player-card .p-pos { font-size: 12px; color: #888; }
        /* 移动端自适应 */
        @media (max-width: 768px) {
            .portal-inner { padding: 0; }
            .hero-board { padding: 25px 15px; }
            .hero-grid { flex-direction: column; align-items: flex-start; gap: 15px; }
            .hero-left { width: 100%; gap: 15px;}
            .team-logo-box { width: 70px; height: 70px; padding: 5px; }
            .team-info-box h1 { font-size: 20px; }
            .hero-right { width: 100%; max-height: none; font-size: 12px; padding: 10px 15px;}
            .portal-section { border-left: none; border-right: none; border-radius: 0; margin-bottom: 10px; box-shadow: none;}
            h2.portal-sec-header { font-size: 15px; padding: 10px 15px; }
            .portal-sec-body { padding: 15px; }
            .match-row { padding: 12px 10px; gap: 5px;}
            .m-time-box { flex: 0 0 45px; font-size: 11px; }
            .m-time-box strong { font-size: 12px; }
            .m-teams-box { gap: 5px; font-size: 13px; }
            .m-team { gap: 4px; }
            .m-logo { width: 20px; height: 20px; }
            .m-score-status { flex: 0 0 50px; }
            .m-score { font-size: 14px; padding: 2px 4px; }
            .m-status { font-size: 11px; }
            .m-action-btn { display: none; }
            .players-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
            .player-card { padding: 5px; }
            .player-card img { width: 60px; height: 60px; margin-bottom: 8px;}
            .player-card .p-name { font-size: 12px; }
        }
        @media (max-width: 360px) {
            .players-grid { grid-template-columns: repeat(3, 1fr); }
        }

/* Extracted from single-team_basket.php */

        .portal-team-wrap { width: 100%; font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; background-color: #f5f6f7; padding-bottom: 40px; }
        .portal-team-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
        .portal-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
        .hero-board { width: 100%; background-color: var(--theme-color); background-image: url('/wp-content/uploads/images/match_bg.png'); background-position: center; background-repeat: no-repeat; background-size: cover; padding: 40px 0; margin-bottom: 20px; position: relative; }
        .hero-grid { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
        .hero-left { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
        .team-logo-box { width: 120px; height: 120px; background: #fff; border-radius: 50%; padding: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.2); border: 4px solid rgba(255,255,255,0.8); }
        .team-logo-box img { width: 100%; height: 100%; object-fit: contain; }
        .team-info-box { color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }
        .team-info-box h1 { font-size: 32px; font-weight: 900; margin-bottom: 5px; line-height: 1.2; }
        .team-info-box p { font-size: 15px; color: rgba(255,255,255,0.8); margin: 0; font-weight: 500; letter-spacing: 1px;}
        .hero-right { flex: 1; background: rgba(0,0,0,0.15); padding: 15px 20px; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.95); line-height: 1.6; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(4px); max-height: 120px; overflow-y: auto; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);}
        .hero-right::-webkit-scrollbar { width: 4px; }
        .hero-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
        .portal-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; margin-bottom: 20px; overflow: hidden; }
        h2.portal-sec-header { background: #fafafa; padding: 15px 20px; font-size: 18px; font-weight: bold; color: #333; border-bottom: 1px solid #eee; border-left: 4px solid var(--theme-color); margin: 0;}
        .portal-sec-body { padding: 20px; }
        .match-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px dashed #eee; transition: 0.2s; text-decoration: none; color: #333; flex-wrap: nowrap;}
        .match-row:hover { background: #fafafa; }
        .match-row:last-child { border-bottom: none; }
        .m-time-box { flex: 0 0 100px; font-size: 14px; color: #666; }
        .m-time-box strong { display: block; color: #333; font-size: 15px; }
        .m-teams-box { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 500; min-width: 0;}
        .m-team { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;}
        .m-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;}
        .m-team-h { justify-content: flex-end; text-align: right; }
        .m-team-a { justify-content: flex-start; text-align: left; }
        .m-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0;}
        .m-score-status { flex: 0 0 80px; text-align: center; }
        .m-score { font-size: 18px; font-weight: bold; color: var(--theme-color); background: var(--theme-light-bg); padding: 2px 8px; border-radius: 4px; display: inline-block; white-space: nowrap;}
        .m-status { display: block; font-size: 12px; color: #888; margin-top: 4px; white-space: nowrap;}
        .m-action-btn { flex: 0 0 90px; text-align: right; color: var(--theme-color); font-weight: bold; font-size: 14px; white-space: nowrap;}
        .players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
        .player-card { text-align: center; text-decoration: none; color: #333; display: block; transition: 0.3s; padding: 10px; border-radius: 8px;}
        .player-card:hover { background: #f9f9f9; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
        .player-card img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: #eee; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1);}
        .player-card .p-name { font-size: 13px; font-weight: bold; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .player-card .p-pos { font-size: 11px; color: #888; }
        @media (max-width: 768px) {
            .portal-inner { padding: 0; }
            .hero-board { padding: 25px 15px; }
            .hero-grid { flex-direction: column; align-items: flex-start; gap: 15px; }
            .hero-left { width: 100%; gap: 15px;}
            .team-logo-box { width: 70px; height: 70px; padding: 5px; border-width: 2px; }
            .team-info-box h1 { font-size: 20px; }
            .hero-right { width: 100%; max-height: none; font-size: 12px; padding: 10px 15px;}
            .portal-section { border-left: none; border-right: none; border-radius: 0; margin-bottom: 10px; }
            h2.portal-sec-header { font-size: 15px; padding: 10px 15px; }
            .portal-sec-body { padding: 15px; }
            .match-row { padding: 12px 10px; gap: 5px;}
            .m-time-box { flex: 0 0 45px; font-size: 11px; }
            .m-time-box strong { font-size: 12px; }
            .m-teams-box { gap: 5px; font-size: 13px; }
            .m-team { gap: 4px; }
            .m-logo { width: 20px; height: 20px; }
            .m-score-status { flex: 0 0 50px; }
            .m-score { font-size: 14px; padding: 2px 4px; }
            .m-status { font-size: 11px; }
            .m-action-btn { display: none; }
            .players-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
            .player-card { padding: 5px; }
            .player-card img { width: 55px; height: 55px; }
            .player-card .p-name { font-size: 12px; }
        }
        @media (max-width: 360px) {
            .players-grid { grid-template-columns: repeat(3, 1fr); }
        }