/* 站群首页模板：变量化配色，按 body 类切换主题/布局/圆角 */
:root, .zq-theme-0 {
    --accent: #1e88e5; --accent-light: #4fc3f7; --accent-dark: #1565c0;
    --hot: #ff5722; --hot-soft: rgba(255, 61, 0, 0.2); --accent-soft: rgba(33, 150, 243, 0.2);
    --glow: #1a237e;
    --bg: #0a0e17; --bg2: #0d111c; --panel: #111827; --panel2: #1a2332; --panel3: #1e2a3d; --line: #263238;
    --text: #f0f0f0; --muted: #b0bec5; --radius: 12px;
}
.zq-theme-1 {
    --accent: #26a69a; --accent-light: #80cbc4; --accent-dark: #00897b;
    --hot: #ff7043; --hot-soft: rgba(255, 112, 67, 0.2); --accent-soft: rgba(38, 166, 154, 0.2);
    --glow: #004d40;
    --bg: #07100e; --bg2: #0a1512; --panel: #0f1a17; --panel2: #16241f; --panel3: #1b2d26; --line: #22332c;
}
.zq-theme-2 {
    --accent: #7e57c2; --accent-light: #b39ddb; --accent-dark: #5e35b1;
    --hot: #ff5252; --hot-soft: rgba(255, 82, 82, 0.2); --accent-soft: rgba(126, 87, 194, 0.2);
    --glow: #311b92;
    --bg: #0d0a17; --bg2: #120d1c; --panel: #171127; --panel2: #221a33; --panel3: #2a2040; --line: #30263f;
}
.zq-theme-3 {
    --accent: #ef6c00; --accent-light: #ffb74d; --accent-dark: #e65100;
    --hot: #e53935; --hot-soft: rgba(229, 57, 53, 0.2); --accent-soft: rgba(239, 108, 0, 0.2);
    --glow: #bf360c;
    --bg: #120c07; --bg2: #170f08; --panel: #1d140c; --panel2: #291c10; --panel3: #332415; --line: #3a2c1c;
}
.zq-radius-1 { --radius: 4px; }

 * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

header { background: linear-gradient(to right, var(--bg), var(--panel2)); padding: 20px 0; border-bottom: 2px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo-icon { color: var(--accent); font-size: 2.5rem; }
.logo h1 { font-size: 2rem; background: linear-gradient(to right, var(--accent), var(--accent-light)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.user-actions { display: flex; gap: 15px; }
.btn { padding: 10px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s; }
.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover { background-color: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--muted); border: 2px solid var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.main-content { display: grid; grid-template-columns: 1fr 400px; gap: 25px; margin-top: 30px; }
.zq-layout-1 .main-content { grid-template-columns: 400px 1fr; }
.zq-layout-1 .main-content > .sidebar { order: -1; }
@media (max-width: 1024px) { .main-content { grid-template-columns: 1fr; } .zq-layout-1 .main-content > .sidebar { order: 0; } }

.live-player { background-color: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.player-header { background-color: var(--panel2); padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.live-badge { background-color: var(--hot); color: white; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.match-info { text-align: center; }
.teams { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 10px; }
.team { display: flex; flex-direction: column; align-items: center; width: 150px; }
.team-logo { width: 70px; height: 70px; background-color: var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 2rem; }
.team-name { font-weight: 700; font-size: 1.2rem; }
.vs { font-size: 1.5rem; color: var(--muted); font-weight: 700; }
.score { font-size: 2.5rem; font-weight: 800; color: var(--accent); display: flex; gap: 10px; }
.player-container { height: 500px; background-color: #000; display: flex; justify-content: center; align-items: center; position: relative; }
.video-placeholder { width: 100%; height: 100%; background: linear-gradient(to bottom right, var(--glow), #000); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; gap: 20px; }
.video-placeholder i { font-size: 5rem; color: var(--accent); opacity: 0.7; }
.player-controls { background-color: rgba(0, 0, 0, 0.8); padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 20px; }
.control-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; transition: color 0.3s; }
.control-btn:hover { color: var(--accent); }
.time-display { font-size: 0.9rem; color: var(--muted); }

.sidebar { display: flex; flex-direction: column; gap: 25px; }
.widget { background-color: var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.widget-title { font-size: 1.3rem; margin-bottom: 15px; color: var(--accent); display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.scoreboard { display: flex; flex-direction: column; gap: 15px; }
.match-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background-color: var(--panel2); border-radius: calc(var(--radius) - 4px); transition: transform 0.3s; }
.match-item:hover { transform: translateX(5px); background-color: var(--panel3); }
.match-teams { flex-grow: 1; }
.match-score { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
.match-status { font-size: 0.85rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status-live { background-color: var(--hot-soft); color: var(--hot); }
.status-upcoming { background-color: var(--accent-soft); color: var(--accent); }

.chat-container { height: 400px; display: flex; flex-direction: column; }
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 10px; background-color: var(--bg2); border-radius: calc(var(--radius) - 4px); margin-bottom: 15px; display: flex; flex-direction: column; gap: 15px; }
.message { display: flex; gap: 10px; }
.message-avatar { width: 35px; height: 35px; border-radius: 50%; background-color: var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.message-content { flex-grow: 1; }
.message-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.message-user { font-weight: 700; color: var(--accent); }
.message-time { font-size: 0.8rem; color: #78909c; }
.message-text { background-color: var(--panel2); padding: 10px; border-radius: calc(var(--radius) - 4px); border-top-left-radius: 0; }
.chat-input { display: flex; gap: 10px; }
.chat-input input { flex-grow: 1; padding: 12px 15px; background-color: var(--panel2); border: 1px solid var(--line); border-radius: 30px; color: white; outline: none; }
.chat-input button { background-color: var(--accent); color: white; border: none; border-radius: 50%; width: 45px; height: 45px; cursor: pointer; transition: background-color 0.3s; }
.chat-input button:hover { background-color: var(--accent-dark); }

.match-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-item { background-color: var(--panel2); padding: 15px; border-radius: calc(var(--radius) - 4px); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; color: var(--muted); }

footer { margin-top: 50px; background-color: var(--bg2); padding: 40px 0; border-top: 1px solid var(--line); }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 768px) { .footer-content { grid-template-columns: repeat(2, 1fr); } .header-container { flex-direction: column; gap: 20px; } .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; } }
.footer-column h3 { color: var(--accent); margin-bottom: 20px; font-size: 1.2rem; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a { color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-column ul li a:hover { color: var(--accent); }
.copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #78909c; font-size: 0.9rem; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
.pulse { animation: pulse 2s infinite; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--panel2); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }
