
.theme-indigo{--primary:#4F46E5;--primary-hover:#4338CA;--primary-light:#EEF2FF;--primary-gradient:linear-gradient(135deg,#4F46E5,#818CF8);--bg-sidebar:#1E1B4B;--bg-sidebar-hover:#312E81;--info:#4F46E5;--info-light:#EEF2FF}
.theme-teal{--primary:#0D9488;--primary-hover:#0F766E;--primary-light:#F0FDFA;--primary-gradient:linear-gradient(135deg,#0D9488,#5EEAD4);--bg-sidebar:#042F2E;--bg-sidebar-hover:#115E59;--info:#0D9488;--info-light:#F0FDFA}
.theme-cyan{--primary:#06B6D4;--primary-hover:#0891B2;--primary-light:#ECFEFF;--primary-gradient:linear-gradient(135deg,#06B6D4,#67E8F9);--bg-sidebar:#083344;--bg-sidebar-hover:#164E63;--info:#06B6D4;--info-light:#ECFEFF}
/* ============================================
   ContestHub V2.0 - 全新现代样式
   ============================================ */

/* ===== 主题系统 ===== */
/* ===== 主题系统 ===== */
:root {
    --bg-primary: #F5F6FA;
    --bg-card: #FFFFFF;
    --bg-sidebar: #1E293B;
    --bg-sidebar-hover: #334155;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-on-dark: #F1F5F9;
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-light: #EEF2FF;
    --primary-gradient: linear-gradient(135deg, #6366F1, #818CF8);
    --success: #10B981;
    --success-hover: #059669;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-hover: #D97706;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --danger-light: #FEE2E2;
    --info: #6366F1;
    --info-light: #EEF2FF;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.04);
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
    --space-12: 48px; --space-16: 64px;
    --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-mono: "SF Mono", "DIN Alternate", "Cascadia Code", "Menlo", monospace;
    --text-xs: 0.75rem; --text-sm: 0.8125rem; --text-base: 0.875rem;
    --text-lg: 1rem; --text-xl: 1.125rem; --text-2xl: 1.25rem; --text-3xl: 1.5rem;
    --sidebar-width: 240px; --sidebar-collapsed-width: 64px;
    --screen-accent: #F94EA4; --screen-accent2: #FF7A45;
    --screen-gradient: linear-gradient(90deg, #F94EA4, #FF7A45);
    --screen-bg: #0F172A; --screen-card-bg: rgba(255,255,255,0.04);
    --screen-border: rgba(255,255,255,0.06);
    --transition-fast: 0.15s ease; --transition-base: 0.2s ease; --transition-slow: 0.3s ease;
}

/* ===== 70套主题 ===== */
.theme-aurora { --primary: #0dcaf0; --primary-hover: #0bb5d4; --primary-light: #E0F7FD; --primary-gradient: linear-gradient(135deg, #0dcaf0, #0d6efd); --bg-sidebar: #0A2640; --bg-sidebar-hover: #1a3a5c; --info: #0dcaf0; --info-light: #E0F7FD; }
.theme-sakura { --primary: #d63384; --primary-hover: #c02a74; --primary-light: #FDF2F8; --primary-gradient: linear-gradient(135deg, #d63384, #f472b6); --bg-sidebar: #2D0F1E; --bg-sidebar-hover: #4A1A32; --info: #d63384; --info-light: #FDF2F8; }
.theme-jade { --primary: #65E4A3; --primary-hover: #50d890; --primary-light: #E6FBF2; --primary-gradient: linear-gradient(135deg, #65E4A3, #20c997); --bg-sidebar: #0A2640; --bg-sidebar-hover: #153a2e; --info: #65E4A3; --info-light: #E6FBF2; }
/* 16-30 */
.theme-indigo { --primary: #4F46E5; --primary-hover: #4338CA; --primary-light: #EEF2FF; --primary-gradient: linear-gradient(135deg, #4F46E5, #818CF8); --bg-sidebar: #1E1B4B; --bg-sidebar-hover: #312E81; --info: #4F46E5; --info-light: #EEF2FF; }
.theme-teal { --primary: #0D9488; --primary-hover: #0F766E; --primary-light: #F0FDFA; --primary-gradient: linear-gradient(135deg, #0D9488, #5EEAD4); --bg-sidebar: #042F2E; --bg-sidebar-hover: #115E59; --info: #0D9488; --info-light: #F0FDFA; }
.theme-cyan { --primary: #06B6D4; --primary-hover: #0891B2; --primary-light: #ECFEFF; --primary-gradient: linear-gradient(135deg, #06B6D4, #67E8F9); --bg-sidebar: #083344; --bg-sidebar-hover: #164E63; --info: #06B6D4; --info-light: #ECFEFF; }
.theme-lime { --primary: #65A30D; --primary-hover: #4D7C0F; --primary-light: #F7FEE7; --primary-gradient: linear-gradient(135deg, #65A30D, #A3E635); --bg-sidebar: #1A2E05; --bg-sidebar-hover: #3F6212; --info: #65A30D; --info-light: #F7FEE7; }
.theme-fuchsia { --primary: #C026D3; --primary-hover: #A21CAF; --primary-light: #FDF4FF; --primary-gradient: linear-gradient(135deg, #C026D3, #F0ABFC); --bg-sidebar: #4A044E; --bg-sidebar-hover: #701A75; --info: #C026D3; --info-light: #FDF4FF; }
.theme-crimson { --primary: #DC2626; --primary-hover: #B91C1C; --primary-light: #FEF2F2; --primary-gradient: linear-gradient(135deg, #DC2626, #FCA5A5); --bg-sidebar: #3B0A0A; --bg-sidebar-hover: #581C1C; --info: #DC2626; --info-light: #FEF2F2; }
.theme-gold { --primary: #B45309; --primary-hover: #92400E; --primary-light: #FFFBEB; --primary-gradient: linear-gradient(135deg, #B45309, #FCD34D); --bg-sidebar: #3D2000; --bg-sidebar-hover: #5C3D0E; --info: #B45309; --info-light: #FFFBEB; }
.theme-plum { --primary: #7E22CE; --primary-hover: #6B21A8; --primary-light: #FAF5FF; --primary-gradient: linear-gradient(135deg, #7E22CE, #D8B4FE); --bg-sidebar: #2E1065; --bg-sidebar-hover: #4C1D95; --info: #7E22CE; --info-light: #FAF5FF; }
.theme-emerald { --primary: #047857; --primary-hover: #065F46; --primary-light: #ECFDF5; --primary-gradient: linear-gradient(135deg, #047857, #6EE7B7); --bg-sidebar: #022C22; --bg-sidebar-hover: #064E3B; --info: #047857; --info-light: #ECFDF5; }
.theme-caramel { --primary: #92400E; --primary-hover: #78350F; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #92400E, #FDBA74); --bg-sidebar: #2D1A04; --bg-sidebar-hover: #4A2C08; --info: #92400E; --info-light: #FFF7ED; }
.theme-azure { --primary: #2563EB; --primary-hover: #1D4ED8; --primary-light: #EFF6FF; --primary-gradient: linear-gradient(135deg, #2563EB, #93C5FD); --bg-sidebar: #0C1F4A; --bg-sidebar-hover: #1E3A8A; --info: #2563EB; --info-light: #EFF6FF; }
.theme-cherry { --primary: #BE185D; --primary-hover: #9D174D; --primary-light: #FFF1F2; --primary-gradient: linear-gradient(135deg, #BE185D, #FDA4AF); --bg-sidebar: #3D0A1E; --bg-sidebar-hover: #5C112D; --info: #BE185D; --info-light: #FFF1F2; }
.theme-sage { --primary: #4D7C0F; --primary-hover: #3F6212; --primary-light: #F7FEE7; --primary-gradient: linear-gradient(135deg, #4D7C0F, #BEF264); --bg-sidebar: #1A2E05; --bg-sidebar-hover: #365314; --info: #4D7C0F; --info-light: #F7FEE7; }
.theme-slate { --primary: #475569; --primary-hover: #334155; --primary-light: #F8FAFC; --primary-gradient: linear-gradient(135deg, #475569, #94A3B8); --bg-sidebar: #0F172A; --bg-sidebar-hover: #1E293B; --info: #475569; --info-light: #F8FAFC; }
.theme-tangerine { --primary: #EA580C; --primary-hover: #C2410C; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #EA580C, #FDBA74); --bg-sidebar: #3D1400; --bg-sidebar-hover: #5C1E00; --info: #EA580C; --info-light: #FFF7ED; }
/* 31-50 */
.theme-denim { --primary: #1D4ED8; --primary-hover: #1E40AF; --primary-light: #DBEAFE; --primary-gradient: linear-gradient(135deg, #1D4ED8, #60A5FA); --bg-sidebar: #0A1628; --bg-sidebar-hover: #1E3A5F; --info: #1D4ED8; --info-light: #DBEAFE; }
.theme-magenta { --primary: #A21CAF; --primary-hover: #86198F; --primary-light: #FDF4FF; --primary-gradient: linear-gradient(135deg, #A21CAF, #E879F9); --bg-sidebar: #2D0A3D; --bg-sidebar-hover: #4A1558; --info: #A21CAF; --info-light: #FDF4FF; }
.theme-olive { --primary: #3F6212; --primary-hover: #365314; --primary-light: #F7FEE7; --primary-gradient: linear-gradient(135deg, #3F6212, #A3E635); --bg-sidebar: #0F1A00; --bg-sidebar-hover: #1C2E05; --info: #3F6212; --info-light: #F7FEE7; }
.theme-berry { --primary: #831843; --primary-hover: #701A3F; --primary-light: #FFF1F2; --primary-gradient: linear-gradient(135deg, #831843, #F9A8D4); --bg-sidebar: #2D0A1A; --bg-sidebar-hover: #4A112B; --info: #831843; --info-light: #FFF1F2; }
.theme-marine { --primary: #1E40AF; --primary-hover: #1E3A8A; --primary-light: #DBEAFE; --primary-gradient: linear-gradient(135deg, #1E40AF, #60A5FA); --bg-sidebar: #0A122E; --bg-sidebar-hover: #16204A; --info: #1E40AF; --info-light: #DBEAFE; }
.theme-bronze { --primary: #78350F; --primary-hover: #5C2809; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #78350F, #D97706); --bg-sidebar: #2D1A04; --bg-sidebar-hover: #4A2808; --info: #78350F; --info-light: #FFF7ED; }
.theme-ice { --primary: #0369A1; --primary-hover: #075985; --primary-light: #F0F9FF; --primary-gradient: linear-gradient(135deg, #0369A1, #7DD3FC); --bg-sidebar: #082F49; --bg-sidebar-hover: #0C4A6E; --info: #0369A1; --info-light: #F0F9FF; }
.theme-mango { --primary: #C2410C; --primary-hover: #9A3412; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #C2410C, #FB923C); --bg-sidebar: #3D1400; --bg-sidebar-hover: #5C1E00; --info: #C2410C; --info-light: #FFF7ED; }
.theme-wisteria { --primary: #6B21A8; --primary-hover: #581C87; --primary-light: #FAF5FF; --primary-gradient: linear-gradient(135deg, #6B21A8, #C084FC); --bg-sidebar: #1E0A3D; --bg-sidebar-hover: #3B1F6E; --info: #6B21A8; --info-light: #FAF5FF; }
.theme-spruce { --primary: #065F46; --primary-hover: #064E3B; --primary-light: #ECFDF5; --primary-gradient: linear-gradient(135deg, #065F46, #34D399); --bg-sidebar: #022C22; --bg-sidebar-hover: #064E3B; --info: #065F46; --info-light: #ECFDF5; }
.theme-maroon { --primary: #7F1D1D; --primary-hover: #5C1414; --primary-light: #FEF2F2; --primary-gradient: linear-gradient(135deg, #7F1D1D, #FCA5A5); --bg-sidebar: #2D0A0A; --bg-sidebar-hover: #4A1515; --info: #7F1D1D; --info-light: #FEF2F2; }
.theme-copper { --primary: #9A3412; --primary-hover: #7C2D12; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #9A3412, #FB923C); --bg-sidebar: #2D0F04; --bg-sidebar-hover: #4A1808; --info: #9A3412; --info-light: #FFF7ED; }
.theme-moss { --primary: #365314; --primary-hover: #2D4410; --primary-light: #F7FEE7; --primary-gradient: linear-gradient(135deg, #365314, #84CC16); --bg-sidebar: #0D1A00; --bg-sidebar-hover: #1A2E05; --info: #365314; --info-light: #F7FEE7; }
.theme-lilac { --primary: #9333EA; --primary-hover: #7E22CE; --primary-light: #FAF5FF; --primary-gradient: linear-gradient(135deg, #9333EA, #C4B5FD); --bg-sidebar: #2E1065; --bg-sidebar-hover: #4C1D95; --info: #9333EA; --info-light: #FAF5FF; }
.theme-aqua { --primary: #0891B2; --primary-hover: #0E7490; --primary-light: #ECFEFF; --primary-gradient: linear-gradient(135deg, #0891B2, #67E8F9); --bg-sidebar: #083344; --bg-sidebar-hover: #164E63; --info: #0891B2; --info-light: #ECFEFF; }
.theme-ruby { --primary: #9D174D; --primary-hover: #831843; --primary-light: #FFF1F2; --primary-gradient: linear-gradient(135deg, #9D174D, #F9A8D4); --bg-sidebar: #2D0A1A; --bg-sidebar-hover: #4A112B; --info: #9D174D; --info-light: #FFF1F2; }
.theme-bark { --primary: #5C3D2E; --primary-hover: #4A2E20; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #5C3D2E, #A18072); --bg-sidebar: #1A0F08; --bg-sidebar-hover: #2D1A10; --info: #5C3D2E; --info-light: #FFF7ED; }
.theme-lagoon { --primary: #0E7490; --primary-hover: #155E75; --primary-light: #ECFEFF; --primary-gradient: linear-gradient(135deg, #0E7490, #22D3EE); --bg-sidebar: #042F2E; --bg-sidebar-hover: #0A4A4B; --info: #0E7490; --info-light: #ECFEFF; }
.theme-orchid { --primary: #86198F; --primary-hover: #701A75; --primary-light: #FDF4FF; --primary-gradient: linear-gradient(135deg, #86198F, #E879F9); --bg-sidebar: #2D0A3D; --bg-sidebar-hover: #4A1558; --info: #86198F; --info-light: #FDF4FF; }
.theme-pine { --primary: #064E3B; --primary-hover: #022C22; --primary-light: #ECFDF5; --primary-gradient: linear-gradient(135deg, #064E3B, #34D399); --bg-sidebar: #011A12; --bg-sidebar-hover: #022C22; --info: #064E3B; --info-light: #ECFDF5; }
/* 51-70 */
.theme-tomato { --primary: #DC2626; --primary-hover: #B91C1C; --primary-light: #FEF2F2; --primary-gradient: linear-gradient(135deg, #DC2626, #F87171); --bg-sidebar: #3B0A0A; --bg-sidebar-hover: #581C1C; --info: #DC2626; --info-light: #FEF2F2; }
.theme-saffron { --primary: #D97706; --primary-hover: #B45309; --primary-light: #FFFBEB; --primary-gradient: linear-gradient(135deg, #D97706, #FCD34D); --bg-sidebar: #3D2000; --bg-sidebar-hover: #5C3D0E; --info: #D97706; --info-light: #FFFBEB; }
.theme-midnight { --primary: #312E81; --primary-hover: #1E1B4B; --primary-light: #E0E7FF; --primary-gradient: linear-gradient(135deg, #312E81, #6366F1); --bg-sidebar: #0A0A23; --bg-sidebar-hover: #1A1A3E; --info: #312E81; --info-light: #E0E7FF; }
.theme-blush { --primary: #DB2777; --primary-hover: #BE185D; --primary-light: #FFF1F2; --primary-gradient: linear-gradient(135deg, #DB2777, #F9A8D4); --bg-sidebar: #3D0A1E; --bg-sidebar-hover: #5C112D; --info: #DB2777; --info-light: #FFF1F2; }
.theme-forest { --primary: #15803D; --primary-hover: #166534; --primary-light: #F0FDF4; --primary-gradient: linear-gradient(135deg, #15803D, #4ADE80); --bg-sidebar: #052E14; --bg-sidebar-hover: #14532D; --info: #15803D; --info-light: #F0FDF4; }
.theme-sepia { --primary: #8B5E3C; --primary-hover: #6B4226; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #8B5E3C, #D4A574); --bg-sidebar: #1A0F08; --bg-sidebar-hover: #2D1A10; --info: #8B5E3C; --info-light: #FFF7ED; }
.theme-cobalt { --primary: #1E3A8A; --primary-hover: #1E40AF; --primary-light: #DBEAFE; --primary-gradient: linear-gradient(135deg, #1E3A8A, #3B82F6); --bg-sidebar: #0A122E; --bg-sidebar-hover: #16204A; --info: #1E3A8A; --info-light: #DBEAFE; }
.theme-vermilion { --primary: #DC2626; --primary-hover: #B91C1C; --primary-light: #FEF2F2; --primary-gradient: linear-gradient(135deg, #DC2626, #F97316); --bg-sidebar: #3B0A0A; --bg-sidebar-hover: #581C1C; --info: #DC2626; --info-light: #FEF2F2; }
.theme-sea { --primary: #0284C7; --primary-hover: #0369A1; --primary-light: #F0F9FF; --primary-gradient: linear-gradient(135deg, #0284C7, #38BDF8); --bg-sidebar: #082F49; --bg-sidebar-hover: #0C4A6E; --info: #0284C7; --info-light: #F0F9FF; }
.theme-burgundy { --primary: #701A3F; --primary-hover: #5C0F30; --primary-light: #FFF1F2; --primary-gradient: linear-gradient(135deg, #701A3F, #DB2777); --bg-sidebar: #2D0A1A; --bg-sidebar-hover: #4A112B; --info: #701A3F; --info-light: #FFF1F2; }
.theme-juniper { --primary: #047857; --primary-hover: #065F46; --primary-light: #ECFDF5; --primary-gradient: linear-gradient(135deg, #047857, #10B981); --bg-sidebar: #022C22; --bg-sidebar-hover: #064E3B; --info: #047857; --info-light: #ECFDF5; }
.theme-autumn { --primary: #C2410C; --primary-hover: #9A3412; --primary-light: #FFF7ED; --primary-gradient: linear-gradient(135deg, #C2410C, #F59E0B); --bg-sidebar: #3D1400; --bg-sidebar-hover: #5C1E00; --info: #C2410C; --info-light: #FFF7ED; }
.theme-frost { --primary: #475569; --primary-hover: #334155; --primary-light: #F1F5F9; --primary-gradient: linear-gradient(135deg, #475569, #94A3B8); --bg-sidebar: #1E293B; --bg-sidebar-hover: #334155; --info: #475569; --info-light: #F1F5F9; }
.theme-sunflower { --primary: #CA8A04; --primary-hover: #A16207; --primary-light: #FEFCE8; --primary-gradient: linear-gradient(135deg, #CA8A04, #FDE047); --bg-sidebar: #3D2E00; --bg-sidebar-hover: #5C4500; --info: #CA8A04; --info-light: #FEFCE8; }
.theme-mahogany { --primary: #5C1414; --primary-hover: #450A0A; --primary-light: #FEF2F2; --primary-gradient: linear-gradient(135deg, #5C1414, #B91C1C); --bg-sidebar: #1F0505; --bg-sidebar-hover: #330A0A; --info: #5C1414; --info-light: #FEF2F2; }
.theme-citrus { --primary: #65A30D; --primary-hover: #4D7C0F; --primary-light: #F7FEE7; --primary-gradient: linear-gradient(135deg, #65A30D, #FBBF24); --bg-sidebar: #1A2E05; --bg-sidebar-hover: #3F6212; --info: #65A30D; --info-light: #F7FEE7; }
.theme-dusk { --primary: #6B21A8; --primary-hover: #581C87; --primary-light: #FAF5FF; --primary-gradient: linear-gradient(135deg, #6B21A8, #F59E0B); --bg-sidebar: #1E0A3D; --bg-sidebar-hover: #3B1F6E; --info: #6B21A8; --info-light: #FAF5FF; }
.theme-pearl { --primary: #8B5CF6; --primary-hover: #7C3AED; --primary-light: #F5F3FF; --primary-gradient: linear-gradient(135deg, #8B5CF6, #DDD6FE); --bg-sidebar: #1A0A3E; --bg-sidebar-hover: #2D1B5E; --info: #8B5CF6; --info-light: #F5F3FF; }
.theme-volcano { --primary: #B91C1C; --primary-hover: #991B1B; --primary-light: #FEF2F2; --primary-gradient: linear-gradient(135deg, #B91C1C, #F97316); --bg-sidebar: #3B0A0A; --bg-sidebar-hover: #581C1C; --info: #B91C1C; --info-light: #FEF2F2; }

/* ===== 基础重置 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ============================================
   登录页 - 全新设计
   ============================================ */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    position: relative; overflow: hidden;
}

.login-page::before {
    content: ''; position: absolute;
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    top: -300px; right: -200px;
}

.login-page::after {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    bottom: -200px; left: -150px;
}

.login-container { width: 100%; max-width: 420px; padding: 0 20px; z-index: 1; }

.login-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 44px 36px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.login-logo { text-align: center; margin-bottom: 32px; }

.logo-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; color: white;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.logo-icon.small {
    width: 34px; height: 34px; border-radius: 9px; margin: 0;
    box-shadow: none;
}

.login-logo h1 { font-size: 22px; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
.login-logo .version { color: var(--primary); }
.login-logo .subtitle { color: var(--text-secondary); font-size: 13px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group label {
    display: block; font-size: 13px; color: var(--text-primary);
    font-weight: 600; margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: #fff; color: var(--text-primary);
    font-size: 14px; outline: none; transition: all 0.2s;
}

.form-group textarea { height: auto; padding: 12px 14px; resize: vertical; }

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-group input::placeholder { color: var(--text-muted); }

.error-message {
    background: var(--danger-light); border: 1px solid #FECACA;
    color: #DC2626; padding: 12px 16px; border-radius: var(--radius);
    font-size: 13px; text-align: center;
}

.demo-hint {
    background: #F8FAFC; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
}

.demo-hint p { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.demo-accounts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.demo-accounts .badge { font-size: 10px; padding: 2px 8px; }
.pw-hint { font-size: 11px !important; color: var(--text-muted) !important; }
.pw-hint code {
    background: var(--info-light); color: #4F46E5; padding: 1px 6px;
    border-radius: 4px; font-size: 11px;
}

.btn-login {
    width: 100%; height: 48px; border: none; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: white; font-size: 15px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: all 0.2s;
}

.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
.btn-login:active { transform: translateY(0); }

/* ============================================
   管理后台布局 - 全新设计
   ============================================ */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 12px;
}

.logo-text { display: flex; flex-direction: column; gap: 2px; }
.app-name { font-size: 15px; font-weight: 700; color: #F1F5F9; }

.role-badge {
    font-size: 10px; padding: 2px 8px; border-radius: 4px;
    font-weight: 500; width: fit-content;
}

.role-badge.superadmin { background: rgba(99,102,241,0.2); color: #C7D2FE; }
.role-badge.admin { background: rgba(99,102,241,0.2); color: #C7D2FE; }

.sidebar-nav { flex: 1; padding: 16px 10px; overflow-y: auto; }

.nav-section { margin-bottom: 8px; }

.nav-section-title {
    font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 12px 4px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 8px;
    color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500;
    transition: all 0.15s; cursor: pointer; text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: rgba(255,255,255,0.9);
}

.nav-item.active {
    background: rgba(99,102,241,0.2);
    color: #C7D2FE;
}

.nav-item.disabled {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    color: rgba(255,255,255,0.25); font-size: 13px; font-weight: 500;
    cursor: not-allowed; text-decoration: none;
}

.module-badge-ext {
    font-size: 9px; padding: 1px 6px; border-radius: 4px;
    margin-left: auto; white-space: nowrap;
}

.module-badge-ext.off {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.3);
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
    padding: 16px; border-top: 1px solid rgba(255,255,255,0.06);
}

.user-info {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px;
    color: rgba(255,255,255,0.7); font-size: 13px;
}

.user-avatar {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}

.user-name { font-weight: 600; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.4); }

.logout-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 8px;
    color: rgba(255,255,255,0.4); font-size: 12px;
    margin-top: 4px; transition: all 0.15s;
}

.logout-btn:hover { color: #FCA5A5; background: rgba(239,68,68,0.1); }

/* 主内容区 */
.main-content {
    flex: 1; margin-left: var(--sidebar-width);
    display: flex; flex-direction: column; min-height: 100vh;
}

.top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 28px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}

.top-bar h2 { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.top-bar-right {
    display: flex; align-items: center; gap: 16px;
}

.timestamp { font-size: 12px; color: var(--text-muted); }

.menu-toggle {
    display: none; background: none; border: none;
    color: var(--text-primary); cursor: pointer; padding: 4px;
}

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 99;
}

.page-content {
    padding: 32px 36px; flex: 1;
}

/* ============================================
   通用组件 - 全新卡片设计
   ============================================ */
.section { margin-bottom: 32px; }

.section-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
}

.section-header .count {
    font-size: 12px; color: var(--text-muted);
    background: var(--border-light); padding: 2px 10px;
    border-radius: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
}

.card:hover { box-shadow: var(--shadow-md); }

/* 统计卡片 */
.stats-grid {
    display: grid; gap: 20px; margin-bottom: 28px;
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex; align-items: center; gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.stat-icon.pink { background: rgba(236,72,153,0.12); color: #EC4899; }
.stat-icon.cyan { background: rgba(6,182,212,0.12); color: #06B6D4; }
.stat-icon.green { background: rgba(16,185,129,0.12); color: #10B981; }
.stat-icon.orange { background: rgba(245,158,11,0.12); color: #F59E0B; }
.stat-icon.blue { background: rgba(99,102,241,0.12); color: #6366F1; }
.stat-icon.purple { background: rgba(139,92,246,0.12); color: #8B5CF6; }

.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--text-secondary); }

/* 按钮 */
.btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 20px; border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: white; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}

.btn-primary:hover { box-shadow: 0 4px 12px rgba(99,102,241,0.3); transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 20px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text-primary);
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: all 0.15s; white-space: nowrap;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-small {
    display: inline-flex; align-items: center; gap: 4px;
    height: 32px; padding: 0 12px; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg-card);
    color: var(--text-secondary); font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}

.btn-small:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger {
    color: var(--danger) !important; border-color: #FECACA !important;
}

.btn-danger:hover { background: var(--danger-light) !important; }

.btn-success {
    color: var(--success) !important; border-color: #A7F3D0 !important;
}

.btn-success:hover { background: var(--success-light) !important; }

.btn-warning {
    color: #D97706 !important; border-color: #FDE68A !important;
}

.btn-warning:hover { background: var(--warning-light) !important; }

/* 表单行 */
.form-inline {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: flex-end;
}

.form-group {
    display: flex; flex-direction: column; gap: 4px;
}

.form-group label {
    font-size: 12px; font-weight: 600; color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
    height: 42px; padding: 0 14px; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: var(--bg-card);
    color: var(--text-primary); font-size: 13px; outline: none;
    transition: all 0.2s;
}

.form-group textarea { height: auto; padding: 10px 12px; resize: vertical; }

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* 标签 */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}

.badge.green { background: var(--success-light); color: #059669; }
.badge.blue { background: var(--info-light); color: #4F46E5; }
.badge.orange { background: var(--warning-light); color: #D97706; }
.badge.gray { background: #F1F5F9; color: #64748B; }
.badge.red { background: var(--danger-light); color: #DC2626; }

/* 空状态 */
.empty-state {
    text-align: center; padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state p { font-size: 14px; }

/* 数据表格 */
.data-table {
    width: 100%; border-collapse: collapse;
}

.data-table th {
    text-align: left; padding: 14px 20px;
    font-size: 11px; font-weight: 600; color: var(--text-secondary);
    background: #F8FAFC; border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 20px; border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.data-table tbody tr:hover { background: #F8FAFC; }

/* 弹窗 */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 999;
    align-items: center; justify-content: center; padding: 20px;
}

.modal-content {
    background: var(--bg-card); border-radius: var(--radius-xl);
    padding: 28px; max-width: 480px; width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.modal-content h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
}

/* 主题选择器 */
.theme-selector {
    display: grid; grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.theme-option {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 10px 6px; border-radius: var(--radius);
    border: 2px solid var(--border); cursor: pointer;
    transition: all 0.15s;
}

.theme-option:hover { border-color: var(--primary); }
.theme-option.active { border-color: var(--primary); background: var(--primary-light); }

.color-dot {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.06);
}

.theme-label { font-size: 10px; color: var(--text-secondary); font-weight: 500; }

/* 开关 */
.toggle-switch {
    position: relative; display: inline-block;
    width: 40px; height: 22px; flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: #CBD5E1; border-radius: 22px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: ''; position: absolute; height: 18px; width: 18px;
    left: 2px; bottom: 2px; background: white; border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* 提示 */
.alert {
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 13px; border: 1px solid;
}

.alert.info { background: var(--info-light); border-color: #C7D2FE; color: #4F46E5; }
.alert.success { background: var(--success-light); border-color: #A7F3D0; color: #059669; }
.alert.warning { background: var(--warning-light); border-color: #FDE68A; color: #D97706; }
.alert.danger { background: var(--danger-light); border-color: #FECACA; color: #DC2626; }

/* ============================================
   大屏端 - 全新沉浸式设计
   ============================================ */
.screen-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: white; overflow: hidden;
    display: flex; flex-direction: column;
}

.screen-container {
    flex: 1; padding: 24px 32px;
    display: flex; flex-direction: column;
    position: relative;
}

.screen-header {
    text-align: center; margin-bottom: 24px;
    position: relative;
}

.screen-header h1 {
    font-size: 28px; font-weight: 700;
    background: linear-gradient(135deg, #818CF8, #34D399);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screen-sponsors { position: fixed; top: 16px; left: 24px; display: flex; align-items: center; gap: 12px; z-index: 20; } .screen-sponsors img { height: 36px; max-width: 120px; object-fit: contain; opacity: 0.5; transition: opacity 0.3s; } .screen-sponsors img:hover { opacity: 0.9; } .screen-watermark {
    position: fixed; bottom: 20px; right: 24px;
    font-size: 12px; color: rgba(255,255,255,0.15);
    letter-spacing: 1px; z-index: 10;
}

/* 排名大屏 */
.ranking-screen {
    flex: 1; display: flex; flex-direction: column;
    gap: 16px; max-width: 1000px; margin: 0 auto; width: 100%;
}

.ranking-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}

.ranking-item:nth-child(1) { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.3); }
.ranking-item:nth-child(2) { background: rgba(148,163,184,0.12); border-color: rgba(148,163,184,0.25); }
.ranking-item:nth-child(3) { background: rgba(180,83,9,0.12); border-color: rgba(180,83,9,0.25); }

.rank-number {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; flex-shrink: 0;
}

.rank-number.gold { background: linear-gradient(135deg, #F59E0B, #FBBF24); color: #1A1A1A; }
.rank-number.silver { background: linear-gradient(135deg, #94A3B8, #CBD5E1); color: #1A1A1A; }
.rank-number.bronze { background: linear-gradient(135deg, #92400E, #D97706); color: #FEF3C7; }
.rank-number.normal { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

.rank-name { flex: 1; font-size: 18px; font-weight: 600; }
.rank-score { font-size: 24px; font-weight: 800; color: #818CF8; }

/* PK大屏 */
.pk-screen {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 40px; max-width: 900px; margin: 0 auto; width: 100%;
}

.pk-contestant {
    flex: 1; text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.pk-contestant.winner {
    background: rgba(16,185,129,0.12);
    border-color: rgba(16,185,129,0.3);
}

.pk-contestant-name { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.pk-contestant-score { font-size: 56px; font-weight: 800; color: #818CF8; }

.pk-vs {
    font-size: 36px; font-weight: 800;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 抽签大屏 */
.draw-screen {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px;
}

.draw-number {
    font-size: 120px; font-weight: 800;
    background: linear-gradient(135deg, #818CF8, #34D399);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.draw-name { font-size: 36px; font-weight: 600; }

/* 风采大屏 */
.showcase-screen {
    flex: 1; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; max-width: 1000px; margin: 0 auto; width: 100%;
}

.showcase-card {
    background: rgba(255,255,255,0.06);
    border-radius: 14px; padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.showcase-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: white;
}

.showcase-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.showcase-info { font-size: 12px; color: rgba(255,255,255,0.5); }

/* 公告大屏 */
.announcement-screen {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    max-width: 800px; margin: 0 auto; width: 100%;
    text-align: center;
}

.announcement-title {
    font-size: 32px; font-weight: 700; margin-bottom: 16px;
}

.announcement-content {
    font-size: 20px; line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   评委/主持人端 - 全新设计
   ============================================ */
.judge-page, .host-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    color: white;
    display: flex; flex-direction: column;
}

.judge-header, .host-header {
    padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.judge-header h1, .host-header h1 {
    font-size: 18px; font-weight: 700;
}

.judge-body, .host-body {
    flex: 1; padding: 24px;
    max-width: 800px; margin: 0 auto; width: 100%;
}

.judge-contestant {
    background: rgba(255,255,255,0.06);
    border-radius: 16px; padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.judge-contestant h3 {
    font-size: 20px; font-weight: 600; margin-bottom: 16px;
}

.score-input-group {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}

.score-input-group label {
    font-size: 14px; color: rgba(255,255,255,0.7);
    min-width: 80px;
}

.score-input-group input {
    flex: 1; height: 44px; padding: 0 14px;
    border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: white; font-size: 16px; outline: none;
    transition: all 0.2s;
}

.score-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.btn-score {
    width: 100%; height: 48px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: white; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}

.btn-score:hover { box-shadow: 0 4px 16px rgba(99,102,241,0.3); }

/* ============================================
   响应式设计 - 手机/平板/桌面
   ============================================ */

/* 平板 */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .page-content { padding: 20px; }
    .top-bar { padding: 0 20px; }
    .pk-screen { flex-direction: column; gap: 20px; }
    .pk-contestant { padding: 24px 16px; }
    .pk-contestant-score { font-size: 40px; }
    .pk-vs { font-size: 28px; }
    .draw-number { font-size: 80px; }
    .theme-selector { grid-template-columns: repeat(4, 1fr); }
}

/* 手机 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.open {
        display: block;
    }
    .menu-toggle {
        display: flex;
    }
    .main-content {
        margin-left: 0;
    }
    .page-content { padding: 16px; }
    .top-bar { padding: 0 16px; height: 56px; }
    .top-bar h2 { font-size: 14px; }
    .timestamp { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 40px; height: 40px; }
    .form-inline { flex-direction: column; }
    .form-group { width: 100%; }
    .form-group input, .form-group select { width: 100%; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 12px; }
    .login-card { padding: 32px 24px; }
    .login-logo h1 { font-size: 20px; }
    .section-header { flex-wrap: wrap; }
    .theme-selector { grid-template-columns: repeat(3, 1fr); }
    .ranking-item { padding: 12px 16px; }
    .rank-number { width: 32px; height: 32px; font-size: 14px; }
    .rank-name { font-size: 15px; }
    .rank-score { font-size: 18px; }
    .showcase-screen { grid-template-columns: repeat(2, 1fr); }
    .showcase-avatar { width: 60px; height: 60px; font-size: 22px; }
    .screen-container { padding: 16px; }
    .screen-header h1 { font-size: 22px; }
    .judge-body, .host-body { padding: 16px; }
    .judge-contestant { padding: 16px; }
    .judge-contestant h3 { font-size: 17px; }
    .score-input-group { flex-direction: column; align-items: stretch; }
    .score-input-group label { min-width: auto; }
    .modal-content { padding: 20px; }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .stat-card { padding: 12px; gap: 10px; }
    .stat-value { font-size: 18px; }
    .stat-icon { width: 36px; height: 36px; }
    .stat-icon svg { width: 18px; height: 18px; }
    .page-content { padding: 12px; }
    .card { padding: 14px; }
    .login-card { padding: 24px 18px; }
    .showcase-screen { grid-template-columns: 1fr 1fr; gap: 10px; }
    .showcase-card { padding: 14px; }
    .showcase-avatar { width: 50px; height: 50px; font-size: 18px; }
    .theme-selector { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .theme-option { padding: 8px 4px; }
    .color-dot { width: 20px; height: 20px; }
    .data-table { display: block; overflow-x: auto; }
    .draw-number { font-size: 60px; }
    .draw-name { font-size: 24px; }
    .pk-contestant-score { font-size: 32px; }
    .pk-contestant-name { font-size: 20px; }
}

/* ============================================
   动画
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.section { animation: fadeIn 0.3s ease; }
.stat-card { animation: fadeIn 0.3s ease; }
.ranking-item { animation: slideIn 0.3s ease; }
.ranking-item:nth-child(1) { animation-delay: 0s; }
.ranking-item:nth-child(2) { animation-delay: 0.05s; }
.ranking-item:nth-child(3) { animation-delay: 0.1s; }
.ranking-item:nth-child(4) { animation-delay: 0.15s; }
.ranking-item:nth-child(5) { animation-delay: 0.2s; }

/* ============================================
   打印样式
   ============================================ */
@media print {
    .sidebar, .top-bar, .sidebar-overlay, .menu-toggle,
    .btn-primary, .btn-small, .btn-secondary, form { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: white !important; color: black !important; }
}

/* ============================================
   工具类
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================
   子管理员页面增强组件
   ============================================ */

/* 列表卡片行 */
.list-row {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.list-row-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: white; flex-shrink: 0;
}

.list-row-icon.small {
    width: 44px; height: 44px; font-size: 18px;
}

.list-row-icon.tiny {
    width: 32px; height: 32px; border-radius: 8px; font-size: 14px;
}

.list-row-body {
    flex: 1; min-width: 150px;
}

.list-row-body h4 {
    font-size: 15px; font-weight: 600; margin-bottom: 4px;
}

.list-row-body p {
    color: var(--text-secondary); font-size: 12px;
}

.list-row-actions {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

/* 弹窗 */
.modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999;
    align-items: center; justify-content: center; padding: 20px;
}

.modal.open { display: flex; }

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px; max-width: 500px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh; overflow-y: auto;
}

.modal-box h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-box .form-group { margin-bottom: 14px; }

.modal-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* 头像上传 */
.avatar-upload {
    position: relative; width: 64px; height: 64px;
    border-radius: 14px; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: var(--primary);
    border: 2px dashed #93C5FD; flex-shrink: 0; cursor: pointer;
    overflow: hidden;
}

.avatar-upload img { width: 100%; height: 100%; object-fit: cover; }

.avatar-upload.large {
    width: 100px; height: 100px; font-size: 36px;
}

/* 头像圆形 */
.avatar-circle {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}

.avatar-circle.primary { background: var(--primary); }
.avatar-circle.gradient { background: linear-gradient(135deg, var(--primary), #818CF8); }
.avatar-circle.gold { background: linear-gradient(135deg, #F59E0B, #F97316); }
.avatar-circle.host { background: linear-gradient(135deg, #FF7A45, #F59E0B); }

/* 在线状态网格 */
.online-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; text-align: center;
}

.online-grid .online-value {
    font-size: 28px; font-weight: 700;
}

.online-grid .online-label {
    font-size: 12px; color: var(--text-secondary);
}

/* 快捷链接网格 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.quick-link {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: inherit;
}

.quick-link-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.quick-link-text { font-weight: 600; display: block; }
.quick-link-desc { font-size: 12px; color: var(--text-secondary); }

/* 设置表单 */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-bottom: 20px;
}

.settings-section {
    border-top: 1px solid var(--border);
    margin-top: 20px; padding-top: 20px;
}

.settings-section h4 {
    font-size: 15px; font-weight: 600; margin-bottom: 16px;
    color: var(--text-primary);
}

.settings-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px; cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--primary);
}

.checkbox-label span { font-weight: 500; }

.checkbox-hint {
    font-size: 12px; color: var(--text-secondary);
    margin-left: 24px;
}

/* 模块标签列表 */
.module-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}

/* 赛事卡片 */
.event-card {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.event-card-body { flex: 1; min-width: 180px; }

.event-card-body h4 {
    font-size: 16px; font-weight: 600; margin-bottom: 4px;
}

.event-card-body p {
    color: var(--text-secondary); font-size: 12px;
}

.event-card-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

/* 轮次卡片 */
.round-card { padding: 16px; }

.round-card-header {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.round-card-footer {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.round-card-footer span {
    font-size: 11px; color: var(--text-muted);
}

/* ============================================
   子管理员卡片 - 全新设计
   ============================================ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-card.locked {
    opacity: 0.7;
    border-color: #FECACA;
    background: linear-gradient(135deg, var(--bg-card), #FEF2F2);
}

.admin-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 12px; right: 12px;
    font-size: 20px;
    opacity: 0.5;
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.admin-avatar {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: white;
    flex-shrink: 0; position: relative;
    box-shadow: 0 4px 12px rgba(167,139,250,0.3);
}
/* 特色版本卡片 */
.admin-card-featured {
    border: 2px solid var(--primary) !important;
    background: linear-gradient(135deg, var(--bg-card), var(--primary-light)) !important;
}

.admin-info { flex: 1; min-width: 0; }

.admin-info h4 {
    font-size: 16px; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.admin-id {
    font-size: 11px; color: var(--text-muted);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--border-light);
    border-radius: var(--radius);
}

.admin-stats .stat {
    text-align: center;
}

.admin-stats .stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.admin-stats .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-tag {
    font-size: 10px; padding: 2px 8px;
    border-radius: 4px; font-weight: 500;
}

.module-tag.on {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-actions .btn-small {
    font-size: 11px;
    padding: 0 10px;
    height: 30px;
}

/* 子管理员卡片响应式 */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-card-header {
        flex-wrap: wrap;
    }
    .admin-avatar {
        width: 40px; height: 40px;
        font-size: 16px;
    }
    .admin-info h4 { font-size: 14px; }
}

/* 响应式增强 */
@media (max-width: 768px) {
    .list-row-icon { width: 40px; height: 40px; font-size: 16px; }
    .list-row-icon.small { width: 36px; height: 36px; font-size: 14px; }
    .list-row-body { min-width: 120px; }
    .list-row-body h4 { font-size: 14px; }
    .event-card-body { min-width: 120px; }
    .event-card-body h4 { font-size: 14px; }
    .modal-box { padding: 20px; }
    .online-grid { gap: 12px; }
    .online-grid .online-value { font-size: 22px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-subgrid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .quick-grid { grid-template-columns: 1fr; }
    .event-card-actions .btn-small { font-size: 11px; padding: 0 8px; height: 28px; }
    .list-row-actions .btn-small { font-size: 11px; padding: 0 8px; height: 28px; }
}

/* ============================================
   增强按钮系统
   ============================================ */

/* 尺寸变体 */
.btn-xs {
    height: 24px; padding: 0 8px; font-size: 11px;
    border-radius: var(--radius-sm);
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-md { height: 40px; padding: 0 20px; font-size: 13px; border-radius: var(--radius); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-xl { height: 56px; padding: 0 32px; font-size: 16px; border-radius: var(--radius-lg); }

/* 颜色变体 */
.btn-danger-fill {
    background: var(--danger); color: white; border: none;
}
.btn-danger-fill:hover { background: var(--danger-hover); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.btn-success-fill {
    background: var(--success); color: white; border: none;
}
.btn-success-fill:hover { background: var(--success-hover); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-ghost {
    background: transparent; border: 1.5px solid transparent; color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--border-light); color: var(--text-primary); }
.btn-neutral {
    background: var(--border-light); color: var(--text-secondary); border: none;
}
.btn-neutral:hover { background: var(--border); color: var(--text-primary); }
.btn-muted {
    background: rgba(100,116,139,0.15); color: #94A3B8; border: 1px solid rgba(100,116,139,0.2);
}
.btn-muted:hover { background: rgba(100,116,139,0.25); color: #64748B; }

/* 图标按钮 */
.btn-icon {
    width: 40px; height: 40px; padding: 0; border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon.sm { width: 32px; height: 32px; border-radius: 8px; }
.btn-icon.lg { width: 48px; height: 48px; border-radius: var(--radius-lg); }

/* 按钮组 */
.btn-group { display: inline-flex; }
.btn-group .btn-sm,
.btn-group .btn-small { border-radius: 0; }
.btn-group .btn-sm:first-child,
.btn-group .btn-small:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.btn-group .btn-sm:last-child,
.btn-group .btn-small:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* 按钮loading */
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 16px; height: 16px; border: 2px solid transparent;
    border-top-color: currentColor; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 按钮通用微交互 */
.btn-primary:active, .btn-login:active,
.btn-danger-fill:active, .btn-success-fill:active {
    transform: translateY(0) scale(0.97);
}

/* ============================================
   增强卡片系统
   ============================================ */
.card-flat {
    box-shadow: none !important;
}
.card-raised {
    box-shadow: var(--shadow-lg);
}
.card-bordered {
    border: 2px solid var(--border);
}
.card-clickable {
    cursor: pointer;
}
.card-clickable:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.card-header {
    padding: 18px 20px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: 15px;
}
.card-body { padding: 20px; }
.card-footer {
    padding: 14px 20px; border-top: 1px solid var(--border-light);
    background: var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
}

/* 表格式卡片 */
.card-table {
    padding: 0; overflow: hidden;
}
.card-scroll {
    padding: 0; overflow-x: auto;
}

/* ============================================
   增强统计卡片
   ============================================ */
.stat-card-sm { padding: 14px; gap: 10px; }
.stat-card-sm .stat-icon { width: 40px; height: 40px; border-radius: 10px; }
.stat-card-sm .stat-value { font-size: 22px; }

.stat-trend { font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%; animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: var(--radius); }
.skeleton-card { height: 80px; border-radius: var(--radius-lg); }

/* ============================================
   增强表格
   ============================================ */
.data-table-striped tbody tr:nth-child(even) {
    background: var(--border-light);
}
.data-table-sticky thead th {
    position: sticky; top: 0; z-index: 10;
    background: #F8FAFC;
}
.data-table-sm th, .data-table-sm td { padding: 8px 12px; font-size: 12px; }
.data-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 单元格对齐 */
.td-center { text-align: center; }
.td-right { text-align: right; }
.td-nowrap { white-space: nowrap; }

/* 得分单元格 */
.score-cell {
    font-family: var(--font-mono); font-weight: 700;
    display: inline-block;
}
.score-cell.lg { font-size: 22px; color: var(--primary); }
.score-cell.md { font-size: 16px; color: #06B6D4; }
.score-cell.sm { font-size: 14px; }

/* 评分标签 */
.score-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600;
}
.score-tag.scored {
    background: rgba(16,185,129,0.1); color: #10B981;
}
.score-tag.pending {
    background: rgba(255,255,255,0.08); color: #475569;
}

/* 粘性列 */
.sticky-col {
    position: sticky; left: 0; background: var(--bg-card); z-index: 1;
}
.sticky-col-header {
    position: sticky; left: 0; background: #F8FAFC; z-index: 2;
}

/* 排序指示器 */
.sort-asc::after { content: ' ▲'; font-size: 0.6em; }
.sort-desc::after { content: ' ▼'; font-size: 0.6em; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--primary); }

/* 获奖者行高亮 */
tr.winner-row { background: linear-gradient(135deg, #FFFBEB, #FEF3C7) !important; }
tr.winner-row td:first-child { border-left: 3px solid var(--warning); }

/* ============================================
   增强表单
   ============================================ */
.input-sm { height: 32px !important; padding: 0 10px !important; font-size: 12px !important; }
.input-lg { height: 48px !important; padding: 0 16px !important; font-size: 16px !important; }

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
}

/* 验证状态 */
.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}
.is-valid {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1) !important;
}

/* 输入框带图标 */
.input-icon-wrap {
    position: relative; display: flex; align-items: center;
}
.input-icon-wrap .input-icon {
    position: absolute; left: 12px; color: var(--text-muted);
    pointer-events: none;
}
.input-icon-wrap input { padding-left: 36px !important; }

/* 数字输入框 */
.input-number-sm { width: 80px !important; }

/* 自定义 check */
.custom-check {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 13px; font-weight: 500;
}
.custom-check input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================
   增强徽章
   ============================================ */
.badge-sm { font-size: 10px; padding: 1px 6px; }
.badge-lg { font-size: 13px; padding: 5px 14px; }

.badge-purple { background: #F3E8FF; color: #7C3AED; }
.badge-teal { background: #CCFBF1; color: #0D9488; }
.badge-indigo { background: var(--primary-light); color: var(--primary); }
.badge-cyan { background: #CFFAFE; color: #0891B2; }
.badge-rose { background: #FFF1F2; color: #E11D48; }

/* 点状徽章 */
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%; padding: 0;
    display: inline-block; flex-shrink: 0;
}
.badge-dot.green { background: var(--success); }
.badge-dot.red { background: var(--danger); }
.badge-dot.orange { background: var(--warning); }
.badge-dot.gray { background: #94A3B8; }

/* 状态指示器 */
.status-indicator {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500;
}
.status-indicator::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
}
.status-indicator.online::before { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-indicator.offline::before { background: #94A3B8; }
.status-indicator.warning::before { background: var(--warning); box-shadow: 0 0 6px var(--warning); }

/* ============================================
   增强模态框
   ============================================ */
.modal-overlay.active {
    display: flex; align-items: center; justify-content: center;
}
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 999;
    align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.modal.open {
    display: flex; animation: fadeIn 0.2s ease;
}
.modal .modal-box {
    animation: scaleIn 0.25s ease;
}
.modal-box {
    max-width: 500px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    background: var(--bg-card); border-radius: var(--radius-xl);
    padding: 28px; box-shadow: var(--shadow-xl);
}

/* 模态框关闭按钮 */
.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    border: none; background: var(--border-light);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }

/* ============================================
   增强空状态
   ============================================ */
.empty-state-icon {
    margin-bottom: 16px; opacity: 0.25;
    width: 64px; height: 64px;
}
.empty-state-lg { padding: 64px 20px; }
.empty-state-lg p { font-size: 16px; margin-bottom: 8px; }
.empty-state-lg .empty-state-hint { font-size: 13px; color: var(--text-muted); }
.empty-state-actions { margin-top: 20px; display: flex; gap: 8px; justify-content: center; }

/* ============================================
   增强通知/提示
   ============================================ */
.toast {
    position: fixed; top: 80px; right: 24px; z-index: 1000;
    padding: 12px 20px; border-radius: var(--radius); font-size: 13px;
    font-weight: 500; box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 360px;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast.success { background: #059669; color: white; }
.toast.error { background: #DC2626; color: white; }
.toast.warning { background: #D97706; color: white; }
.toast.info { background: #4F46E5; color: white; }

.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tip); position: absolute;
    bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--text-primary); color: var(--bg-card);
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 11px; white-space: nowrap; opacity: 0;
    pointer-events: none; transition: opacity var(--transition-fast);
}
.tooltip:hover::after { opacity: 1; }

/* ============================================
   大屏页面统一样式
   ============================================ */
.screen-page {
    min-height: 100vh; height: 100vh;
    background: linear-gradient(135deg, var(--screen-bg) 0%, #1E293B 100%);
    color: white; font-family: var(--font-sans);
    overflow: hidden; display: flex; flex-direction: column;
}
.screen-container {
    flex: 1; padding: 24px 40px 16px; display: flex; flex-direction: column;
    position: relative; z-index: 1; min-height: 0;
}
.screen-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--screen-border);
    flex-shrink: 0;
}
.screen-header h1 {
    font-size: 28px; font-weight: 700;
    background: var(--screen-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 2px;
}
.screen-header .subtitle { font-size: 13px; color: #64748B; margin-top: 4px; }
.screen-header .screen-badge {
    font-size: 13px; padding: 8px 20px;
    background: var(--screen-card-bg); border-radius: 20px;
    color: #94A3B8; border: 1px solid var(--screen-border);
}
.screen-sponsors { position: fixed; top: 16px; left: 24px; display: flex; align-items: center; gap: 12px; z-index: 20; } .screen-sponsors img { height: 36px; max-width: 120px; object-fit: contain; opacity: 0.5; transition: opacity 0.3s; } .screen-sponsors img:hover { opacity: 0.9; } .screen-watermark {
    position: fixed; bottom: 20px; right: 24px;
    font-size: 12px; color: rgba(255,255,255,0.12);
    letter-spacing: 2px; z-index: 10; pointer-events: none;
}
.screen-loading {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    z-index: 100; background: var(--screen-bg);
    transition: opacity 0.4s ease;
}
.screen-loading.hidden { opacity: 0; pointer-events: none; }
.screen-loading p { color: #64748B; font-size: 18px; }

/* 大屏排名项 */
.screen-rank-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; background: var(--screen-card-bg);
    border: 1px solid var(--screen-border); border-radius: 12px;
    margin-bottom: 8px; transition: all var(--transition-slow);
}
.screen-rank-item:hover { background: rgba(255,255,255,0.06); }
.screen-rank-item.top { background: rgba(249,78,164,0.06); border-color: rgba(249,78,164,0.15); }
.screen-rank-num {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; font-family: var(--font-mono); flex-shrink: 0;
}
.screen-rank-num.gold { background: var(--screen-gradient); color: white; box-shadow: 0 4px 15px rgba(249,78,164,0.3); }
.screen-rank-num.silver { background: #475569; color: #CBD5E1; }
.screen-rank-num.bronze { background: #78350F; color: #FCD34D; }
.screen-rank-num.normal { background: rgba(255,255,255,0.06); color: #64748B; }
.screen-rank-avatar {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    background: #141418; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.2); overflow: hidden;
}
.screen-rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.screen-rank-info { flex: 1; min-width: 0; }
.screen-rank-name { font-size: 16px; font-weight: 600; }
.screen-rank-meta { font-size: 12px; color: #64748B; margin-top: 2px; }
.screen-rank-bar { height: 3px; background: rgba(255,255,255,0.05); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.screen-rank-fill { height: 100%; border-radius: 3px; background: var(--screen-gradient); transition: width 0.8s ease; }
.screen-rank-score { font-size: 28px; font-weight: 700; color: var(--screen-accent); font-family: var(--font-mono); text-align: right; min-width: 60px; }
.screen-score-detail { font-size: 11px; color: #475569; text-align: right; margin-top: 2px; }

/* 大屏侧面板 */
.screen-side-panel { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.screen-side-card {
    background: var(--screen-card-bg); border: 1px solid var(--screen-border);
    border-radius: 14px; padding: 20px;
}
.screen-side-card h3 {
    font-size: 12px; color: #64748B; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
}
.screen-stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 13px; }
.screen-stat-row:last-child { border-bottom: none; }
.screen-stat-label { color: #64748B; }
.screen-stat-value { color: white; font-weight: 600; }

/* 大屏领奖台 */
.screen-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 12px; height: 120px; padding-top: 20px;
}
.screen-podium-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.screen-podium-bar { width: 100%; border-radius: 8px 8px 0 0; transition: height 0.8s ease; min-height: 4px; }
.screen-podium-1st .screen-podium-bar { height: 80px; background: var(--screen-gradient); box-shadow: 0 -4px 20px rgba(249,78,164,0.2); }
.screen-podium-2nd .screen-podium-bar { height: 56px; background: linear-gradient(to top, #475569, #94A3B8); }
.screen-podium-3rd .screen-podium-bar { height: 40px; background: linear-gradient(to top, #78350F, #B45309); }
.screen-podium-name { font-size: 11px; color: #94A3B8; text-align: center; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80px; }
.screen-podium-score { font-size: 13px; font-weight: 700; color: var(--screen-accent); font-family: var(--font-mono); }

/* 大屏PK */
.screen-pk-container { flex: 1; display: flex; align-items: center; justify-content: center; gap: 40px; max-width: 900px; margin: 0 auto; width: 100%; }
.screen-pk-player { flex: 1; text-align: center; padding: 40px 20px; background: var(--screen-card-bg); border-radius: 20px; border: 1px solid var(--screen-border); transition: all 0.5s ease; }
.screen-pk-player.winner { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); box-shadow: 0 0 30px rgba(16,185,129,0.15); }
.screen-pk-player .player-name { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.screen-pk-player .player-score { font-size: 56px; font-weight: 800; color: var(--screen-accent); font-family: var(--font-mono); transition: all 0.5s ease; }
.screen-pk-vs { font-size: 36px; font-weight: 800; background: linear-gradient(135deg, #F59E0B, #EF4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; flex-shrink: 0; }

/* 大屏获奖动画 */
@keyframes winnerGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,0.2); }
    50% { box-shadow: 0 0 40px rgba(16,185,129,0.4), 0 0 80px rgba(16,185,129,0.1); }
}
.winner-glow { animation: winnerGlow 2s ease-in-out infinite; }

/* 大屏抽签 */
.screen-draw-container { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.screen-draw-number { font-size: clamp(60px, 10vw, 120px); font-weight: 800; background: var(--screen-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.screen-draw-name { font-size: clamp(24px, 4vw, 36px); font-weight: 600; }
.screen-draw-card {
    background: var(--screen-card-bg); border: 1px solid var(--screen-border);
    border-radius: 20px; padding: 24px 40px; text-align: center;
    animation: scaleIn 0.5s ease;
}

/* 大屏风采 */
.screen-showcase-grid {
    flex: 1; display: grid; overflow-y: auto;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; max-width: 1000px; margin: 0 auto; width: 100%;
    align-content: start;
}
.screen-showcase-card {
    background: var(--screen-card-bg); border-radius: 14px; padding: 20px;
    text-align: center; border: 1px solid var(--screen-border);
    transition: all var(--transition-base);
}
.screen-showcase-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.screen-showcase-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: white; overflow: hidden;
}
.screen-showcase-avatar img { width: 100%; height: 100%; object-fit: cover; }
.screen-showcase-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.screen-showcase-info { font-size: 12px; color: rgba(255,255,255,0.5); }

/* 大屏公告 */
.screen-announce-container {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    max-width: 800px; margin: 0 auto; width: 100%; text-align: center;
}
.screen-announce-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.screen-announce-content { font-size: 20px; line-height: 1.8; color: rgba(255,255,255,0.8); }

/* 大屏粒子背景 */
.screen-particles {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.screen-particle {
    position: absolute; border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============================================
   评委/主持人端增强
   ============================================ */
.judge-page, .host-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--screen-bg) 0%, #1E293B 50%, var(--screen-bg) 100%);
    color: white; display: flex; flex-direction: column;
}
.judge-header, .host-header {
    padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--screen-border);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
}
.judge-body, .host-body {
    flex: 1; padding: 24px; max-width: 900px; margin: 0 auto;
    width: 100%; overflow-y: auto;
}

/* 评委选手卡片网格 */
.judge-contestant-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.judge-contestant-card {
    background: var(--screen-card-bg); border: 1px solid var(--screen-border);
    border-radius: 16px; padding: 20px 16px; text-align: center;
    cursor: pointer; transition: all var(--transition-base);
}
.judge-contestant-card:hover {
    background: rgba(255,255,255,0.08); transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
}
.judge-contestant-card.scored {
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.08);
}
.judge-contestant-card .judge-card-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-gradient);
    margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: white;
}
.judge-contestant-card .judge-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.judge-contestant-card .judge-card-number { font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.judge-contestant-card .judge-card-status {
    font-size: 11px; padding: 3px 10px; border-radius: 10px;
    display: inline-block;
}
.judge-card-status.pending { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.judge-card-status.done { background: rgba(16,185,129,0.2); color: #6EE7B7; }

/* 主持人排名面板 */
.host-ranking-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--screen-card-bg);
    border-radius: 12px; margin-bottom: 8px;
    border: 1px solid var(--screen-border);
}
.host-ranking-score {
    font-size: 22px; font-weight: 800; font-family: var(--font-mono);
    color: #818CF8; flex-shrink: 0;
}
.host-score-tag {
    font-size: 11px; padding: 2px 8px; border-radius: 6px;
    background: rgba(99,102,241,0.15); color: #A5B4FC;
}

/* 信息栏header */
.judge-header-info, .host-header-info {
    display: flex; align-items: center; gap: 12px;
}
.judge-header-meta, .host-header-meta {
    display: flex; flex-direction: column;
}
.judge-header-meta .name, .host-header-meta .name {
    font-weight: 600; font-size: 15px;
}
.judge-header-meta .role, .host-header-meta .role {
    font-size: 11px; color: rgba(255,255,255,0.4);
}
.judge-header-actions, .host-header-actions {
    display: flex; align-items: center; gap: 10px;
}
.judge-header-actions .round-badge {
    background: rgba(99,102,241,0.2); color: #C7D2FE;
}
.judge-header-actions .mode-badge.scoring {
    background: rgba(16,185,129,0.2); color: #6EE7B7;
}
.judge-header-actions .mode-badge.pk {
    background: rgba(245,158,11,0.2); color: #FDE68A;
}
.btn-logout-dark {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: all var(--transition-fast); text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.btn-logout-dark:hover {
    background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.3);
    color: #FCA5A5;
}

/* 公告条目 */
.announce-item {
    padding: 12px 0; border-bottom: 1px solid var(--screen-border);
}
.announce-item:last-child { border-bottom: none; }
.announce-item .announce-title { font-weight: 600; margin-bottom: 4px; }
.announce-item .announce-body { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ============================================
   评委打分页面全新设计
   ============================================ */
.judge-header { padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--screen-border); background: rgba(255,255,255,0.02); flex-shrink: 0; }
.judge-header-info { display: flex; align-items: center; gap: 12px; }
.judge-header-avatar { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #818CF8); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: white; }
.judge-header-meta .name { font-weight: 600; font-size: 15px; color: white; }
.judge-header-meta .role { font-size: 11px; color: rgba(255,255,255,0.4); }
.judge-header-actions { display: flex; align-items: center; gap: 10px; }
.judge-round-badge { font-size: 13px; padding: 6px 14px; background: rgba(99,102,241,0.2); color: #C7D2FE; border-radius: 8px; font-weight: 500; }
.judge-mode-badge { font-size: 12px; padding: 6px 14px; border-radius: 8px; font-weight: 500; }
.judge-mode-badge.scoring { background: rgba(16,185,129,0.2); color: #6EE7B7; }
.judge-mode-badge.pk { background: rgba(245,158,11,0.2); color: #FDE68A; }
.judge-body { flex: 1; padding: 20px 24px; max-width: 900px; margin: 0 auto; width: 100%; overflow-y: auto; }

/* 评分进度条 */
.judge-progress { margin-bottom: 20px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.06); }
.judge-progress-text { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.judge-progress-track { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.judge-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #818CF8); transition: width 0.5s ease; width: 0%; }

/* 选手卡片列表 */
.judge-contestant-list { display: flex; flex-direction: column; gap: 8px; }
.judge-loading, .judge-empty { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.4); }
.judge-empty-icon { font-size: 48px; margin-bottom: 12px; }
.judge-empty p { font-size: 16px; margin-bottom: 4px; }
.judge-empty span { font-size: 13px; color: rgba(255,255,255,0.25); }

/* 单个选手卡片 */
.judge-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; cursor: pointer; transition: all 0.2s; }
.judge-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); transform: translateX(2px); }
.judge-card.scored { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.05); }
.judge-card.scored:hover { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.1); }
.judge-card-avatar { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #818CF8); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: white; flex-shrink: 0; overflow: hidden; }
.judge-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.judge-card-body { flex: 1; min-width: 0; }
.judge-card-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.judge-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.45); }
.judge-card-tag { padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); font-size: 11px; }
.judge-card-status { font-size: 22px; flex-shrink: 0; opacity: 0.5; }
.judge-card-status.done { opacity: 1; }

/* 评分弹窗 */
.judge-modal { max-width: 460px !important; padding: 0 !important; overflow: hidden !important; }
.modal-close-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px; border: none; background: rgba(0,0,0,0.05); cursor: pointer; font-size: 20px; color: var(--text-muted); z-index: 1; }
.modal-close-btn:hover { background: rgba(239,68,68,0.1); color: var(--danger); }
.judge-modal-header { display: flex; align-items: center; gap: 16px; padding: 24px 24px 16px; background: linear-gradient(135deg, var(--primary-light), #F5F3FF); }
.judge-modal-avatar { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--primary), #818CF8); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: white; flex-shrink: 0; }
.judge-modal-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.judge-modal-meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 10px; align-items: center; }
.judge-score-area { padding: 20px 24px; }
.judge-score-label { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 10px; }
.judge-score-label span { color: var(--text-muted); font-weight: 400; }
.judge-quick-scores { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.judge-quick-btn { padding: 8px 0; border-radius: 8px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-primary); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.15s; min-width: 52px; text-align: center; font-family: var(--font-mono); }
.judge-quick-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.judge-quick-btn.active { border-color: var(--primary); background: var(--primary); color: white; }
.judge-score-input { width: 100%; height: 52px; border-radius: 12px; border: 2px solid var(--border); text-align: center; font-size: 28px; font-weight: 700; font-family: var(--font-mono); outline: none; transition: all 0.2s; color: var(--text-primary); background: var(--bg-card); }
.judge-score-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,102,241,0.1); }
.judge-comment-input { width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 13px; resize: none; outline: none; color: var(--text-primary); background: var(--bg-card); }
.judge-comment-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }

@media (max-width: 480px) {
    .judge-header { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .judge-body { padding: 12px; }
    .judge-card { padding: 10px 14px; gap: 10px; }
    .judge-card-avatar { width: 42px; height: 42px; font-size: 16px; }
    .judge-card-name { font-size: 14px; }
    .judge-card-status { font-size: 18px; }
    .judge-modal-header { padding: 16px; }
    .judge-score-area { padding: 16px; }
    .judge-quick-btn { min-width: 44px; font-size: 13px; padding: 6px 0; }
    .judge-score-input { height: 44px; font-size: 24px; }
}

/* ============================================
   评委PK投票界面
   ============================================ */
.pk-judge-container { max-width: 600px; margin: 0 auto; text-align: center; }
.pk-judge-loading { padding: 60px; color: rgba(255,255,255,0.4); font-size: 16px; }
.pk-judge-header { margin-bottom: 24px; }
.pk-judge-status { display: inline-block; padding: 8px 24px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.pk-judge-status.live { background: rgba(34,197,94,0.15); color: #22C55E; border: 1px solid rgba(34,197,94,0.25); animation: pulse 2s infinite; }
.pk-judge-status.done { background: rgba(255,255,255,0.06); color: #64748B; border: 1px solid rgba(255,255,255,0.08); }
.pk-judge-vs { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; }
.pk-judge-player { flex: 1; padding: 32px 20px 24px; background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.08); border-radius: 20px; cursor: default; transition: all 0.3s; position: relative; }
.pk-judge-player[onclick]:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.pk-judge-player.winner { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.08); box-shadow: 0 0 30px rgba(16,185,129,0.1); }
.pk-judge-player.voted { border-color: rgba(99,102,241,0.3); }
.pk-judge-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #818CF8); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: white; margin: 0 auto 14px; }
.pk-judge-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pk-judge-score { font-size: 42px; font-weight: 900; font-family: var(--font-mono); color: var(--primary); margin-bottom: 4px; }
.pk-judge-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.pk-judge-vote-btn { display: inline-block; padding: 10px 28px; border-radius: 10px; border: 2px solid var(--primary); background: transparent; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; pointer-events: none; }
.pk-judge-player[onclick] .pk-judge-vote-btn { pointer-events: auto; }
.pk-judge-player[onclick] .pk-judge-vote-btn:hover { background: var(--primary); color: white; }
.pk-judge-vote-btn.active { background: var(--primary); color: white; }
.pk-judge-crown { margin-top: 10px; font-size: 16px; font-weight: 700; color: #F59E0B; }
.pk-judge-divider { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pk-judge-vs-text { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: rgba(255,255,255,0.2); }
.pk-judge-hint { font-size: 13px; color: rgba(255,255,255,0.35); margin-top: 8px; } .pk-judge-battle-group { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.06); } .pk-judge-battle-group:last-child { border-bottom: none; margin-bottom: 0; }

/* ============================================
   主持人控制台全新设计
   ============================================ */
.host-header { padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); gap: 16px; }
.host-header-info { display: flex; align-items: center; gap: 12px; }
.host-header-avatar { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #F59E0B, #FBBF24); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #1A1A1A; }
.host-header-meta .host-name { font-weight: 600; font-size: 15px; color: white; display: block; }
.host-header-meta .host-role { font-size: 11px; color: rgba(255,255,255,0.4); }
.host-header-center { display: flex; align-items: center; gap: 10px; }
.host-round-pill { font-size: 14px; padding: 7px 18px; background: rgba(99,102,241,0.15); color: #C7D2FE; border-radius: 20px; font-weight: 600; }
.host-mode-pill { font-size: 13px; padding: 7px 16px; border-radius: 20px; font-weight: 600; }
.host-mode-pill.scoring { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.host-mode-pill.pk { background: rgba(245,158,11,0.15); color: #FDE68A; }
.host-clock { font-size: 15px; font-family: var(--font-mono); color: rgba(255,255,255,0.5); font-weight: 600; }
.host-body { padding: 20px 24px; max-width: 1100px; margin: 0 auto; width: 100%; }
.host-panel { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 18px; background: rgba(255,255,255,0.04); border-radius: 14px; border: 1px solid rgba(255,255,255,0.06); }
.host-panel-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.host-panel-btns { display: flex; gap: 4px; }
.host-ctrl-btn { padding: 8px 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.1); background: transparent; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 12px; font-weight: 500; transition: all 0.15s; }
.host-ctrl-btn:hover { border-color: var(--primary); color: white; }
.host-ctrl-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.host-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; }
.host-card-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 12px; }
.host-loading { text-align: center; padding: 20px; color: rgba(255,255,255,0.4); font-size: 13px; }
.host-rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.02); border-radius: 10px; margin-bottom: 6px; }
.host-rank-row:nth-child(1) { background: rgba(245,158,11,0.08); }
.host-rank-row:nth-child(2) { background: rgba(148,163,184,0.06); }
.host-rank-row:nth-child(3) { background: rgba(180,83,9,0.06); }
.host-rank-num { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.host-rank-num.gold { background: linear-gradient(135deg,#F59E0B,#FBBF24); color: #1A1A1A; }
.host-rank-num.silver { background: linear-gradient(135deg,#94A3B8,#CBD5E1); color: #1A1A1A; }
.host-rank-num.bronze { background: linear-gradient(135deg,#92400E,#D97706); color: #FEF3C7; }
.host-rank-num.normal { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.host-rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.host-rank-info strong { font-size: 14px; }
.host-rank-info span { font-size: 11px; color: rgba(255,255,255,0.35); }
.host-rank-score { font-size: 20px; font-weight: 800; font-family: var(--font-mono); flex-shrink: 0; }
.host-rank-detail { font-size: 11px; color: rgba(255,255,255,0.35); flex-shrink: 0; }
.host-prog-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; }
.host-prog-row>span:first-child { width: 50px; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.host-prog-row>span:last-child { width: 35px; text-align: right; color: rgba(255,255,255,0.4); }
.host-prog-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.host-prog-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }
.host-announce-item { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.host-announce-item:last-child { border: none; }
.host-announce-item strong { font-size: 13px; display: block; margin-bottom: 2px; }
.host-announce-item span { font-size: 11px; color: rgba(255,255,255,0.4); }

@media(max-width:768px){
    .host-header{flex-wrap:wrap;padding:10px 14px}
    .host-body{padding:12px}
    .host-body>div:first-of-type+div{grid-template-columns:1fr!important}
    .host-panel{flex-direction:column;align-items:stretch}
    .host-round-pill{font-size:12px;padding:5px 12px}
}

/* 批量打分 */
#batchScoringTable table { background: rgba(255,255,255,0.02); border-radius: 12px; overflow: hidden; }
#batchScoringTable tbody tr { transition: background 0.15s; }
#batchScoringTable tbody tr:hover { background: rgba(255,255,255,0.04); }
#batchScoringTable td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.btn-small.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }

@media (max-width: 480px) {
    .pk-judge-vs { flex-direction: column; gap: 12px; }
    .pk-judge-player { padding: 20px 14px; }
    .pk-judge-avatar { width: 60px; height: 60px; font-size: 24px; }
    .pk-judge-name { font-size: 17px; }
    .pk-judge-score { font-size: 32px; }
    .pk-judge-divider { flex-direction: row; }
    .pk-judge-vs-text { width: 40px; height: 40px; font-size: 16px; }
}

/* ============================================
   PK对战卡片增强
   ============================================ */
.pk-battle-card {
    overflow: hidden; padding: 0;
}
.pk-battle-row {
    display: flex; align-items: stretch; flex-wrap: wrap;
}
.pk-player-col {
    flex: 1; padding: 24px; text-align: center; min-width: 150px;
    transition: background var(--transition-base);
}
.pk-player-col.winner-bg { background: rgba(16,185,129,0.08); }
.pk-player-avatar {
    width: 64px; height: 64px; border-radius: 50%; font-size: 28px;
    margin: 0 auto 12px;
}
.pk-player-name { font-size: 18px; font-weight: 700; }
.pk-player-score { font-size: 36px; font-weight: 900; color: var(--primary); margin-top: 8px; font-family: var(--font-mono); }
.pk-player-votes {
    margin-top: 8px; padding: 8px 14px; background: var(--warning-light);
    border-radius: 8px; display: inline-block;
    font-size: 13px; font-weight: 700; color: #92400E;
}
.pk-player-winner-badge {
    display: inline-block; margin-top: 8px;
    background: #FEF3C7; color: #92400E; padding: 4px 12px;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
}
.pk-vs-divider {
    display: flex; align-items: center; justify-content: center;
    width: 80px; background: var(--border-light);
}
.pk-vs-circle {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900; color: var(--primary);
}
.pk-battle-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-top: 1px solid var(--border-light);
    background: var(--border-light); flex-wrap: wrap; gap: 8px;
}

/* ============================================
   面包屑
   ============================================ */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
    padding: 4px 0; margin-bottom: 4px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: #CBD5E1; }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

/* ============================================
   评分输入特殊样式
   ============================================ */
.score-input-lg {
    font-size: 28px !important; font-weight: 700 !important;
    text-align: center !important; font-family: var(--font-mono) !important;
    height: 56px !important; letter-spacing: 4px;
}

/* ============================================
   标签组
   ============================================ */
.tag-group { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 500;
    background: rgba(255,255,255,0.05); color: #64748B;
}

/* ============================================
   新工具类
   ============================================ */
/* 间距 */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-6 { padding: var(--space-6) !important; }

/* 文本 */
.text-xs { font-size: var(--text-xs) !important; }
.text-lg { font-size: var(--text-lg) !important; }
.text-xl { font-size: var(--text-xl) !important; }
.text-2xl { font-size: var(--text-2xl) !important; }
.font-mono { font-family: var(--font-mono) !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }

/* 显示 */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }

/* 溢出 */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }

/* 圆角 */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* 光标 */
.cursor-pointer { cursor: pointer !important; }
.cursor-not-allowed { cursor: not-allowed !important; opacity: 0.6; }

/* 宽度 */
.w-auto { width: auto !important; }
.w-full { width: 100% !important; }

/* 文本对齐 */
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* 边框 */
.border-0 { border: none !important; }
.border-left-accent { border-left: 4px solid var(--primary) !important; }

/* 阴影 */
.shadow-none { box-shadow: none !important; }

/* ============================================
   倒计时增强
   ============================================ */
.countdown-timer {
    font-family: var(--font-mono); font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: var(--warning-light); color: #92400E;
    font-size: 13px; display: inline-flex; align-items: center; gap: 4px;
}
.countdown-timer.critical {
    background: var(--danger-light); color: #DC2626;
    animation: pulse 1s ease-in-out infinite;
}

/* ============================================
   可拖拽排序
   ============================================ */
.draggable-row { cursor: grab; }
.draggable-row:active { cursor: grabbing; }
.draggable-row.drag-over { background: var(--primary-light) !important; }
.drag-handle { color: #CBD5E1; font-size: 14px; cursor: grab; }

/* ============================================
   响应式大屏增强
   ============================================ */
@media (max-width: 768px) {
    .screen-container { padding: 12px 16px 8px; }
    .screen-header h1 { font-size: clamp(18px, 4vw, 24px); }
    .screen-side-panel { width: 180px; }
    .screen-rank-score { font-size: 20px; min-width: 45px; }
    .screen-rank-item { padding: 10px 14px; gap: 10px; }
    .screen-rank-avatar { width: 34px; height: 34px; font-size: 15px; }
    .screen-rank-num { width: 30px; height: 30px; font-size: 13px; }
    .screen-podium { height: 90px; }
    .screen-podium-1st .screen-podium-bar { height: 60px; }
    .screen-podium-2nd .screen-podium-bar { height: 42px; }
    .screen-podium-3rd .screen-podium-bar { height: 30px; }
    .screen-pk-container { flex-direction: column; gap: 20px; }
    .screen-pk-player { padding: 24px 16px; }
    .screen-pk-player .player-score { font-size: 40px; }
    .screen-pk-vs { font-size: 28px; }
    .judge-contestant-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .pk-battle-row { flex-direction: column; }
    .pk-vs-divider { width: 100%; height: 50px; }
    .pk-player-col { min-width: auto; }
}

@media (max-width: 480px) {
    .screen-container { padding: 8px 10px 4px; }
    .screen-header { margin-bottom: 10px; padding-bottom: 10px; }
    .screen-header .screen-badge { font-size: 11px; padding: 5px 12px; }
    .screen-rank-item { padding: 8px 10px; gap: 8px; }
    .screen-rank-num { width: 26px; height: 26px; font-size: 11px; border-radius: 8px; }
    .screen-rank-avatar { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
    .screen-rank-name { font-size: 13px; }
    .screen-rank-meta { font-size: 10px; }
    .screen-rank-score { font-size: 16px; min-width: 35px; }
    .screen-score-detail { font-size: 10px; }
    .screen-side-panel { width: 100%; flex-direction: column; gap: 8px; }
    .screen-side-card { padding: 10px; }
    .screen-podium { height: 70px; gap: 8px; padding-top: 10px; }
    .screen-podium-1st .screen-podium-bar { height: 50px; }
    .screen-podium-2nd .screen-podium-bar { height: 35px; }
    .screen-podium-3rd .screen-podium-bar { height: 25px; }
    .screen-podium-name { font-size: 9px; max-width: 50px; }
    .screen-podium-score { font-size: 10px; }
    .screen-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .screen-showcase-card { padding: 12px; }
    .screen-showcase-avatar { width: 50px; height: 50px; font-size: 18px; }
    .screen-pk-player { padding: 16px 10px; }
    .screen-pk-player .player-name { font-size: 20px; }
    .screen-pk-player .player-score { font-size: 32px; }
    .judge-contestant-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .judge-contestant-card { padding: 14px 10px; }
    .judge-header, .host-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .judge-body, .host-body { padding: 12px; }
    .pk-player-col { padding: 16px 12px; }
    .pk-player-avatar { width: 48px; height: 48px; font-size: 20px; }
    .pk-player-score { font-size: 28px; }
}

/* ============================================
   无障碍
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --border: #94A3B8;
        --text-muted: #64748B;
    }
    .text-muted { color: #475569 !important; }
    .screen-rank-meta, .screen-score-detail, .screen-stat-label { color: #94A3B8 !important; }
}

@media (prefers-color-scheme: dark) {
    /* 对未选择 night 主题的用户，小幅调整明暗度 */
    body:not(.theme-night) {
        --bg-primary: #F0F1F5;
        --bg-card: #FFFFFF;
    }
}

/* ============================================
   打印增强
   ============================================ */
@media print {
    @page { margin: 1.5cm; }
    body { font-size: 12px; }
    .sidebar, .top-bar, .sidebar-overlay, .menu-toggle,
    .btn-primary, .btn-small, .btn-secondary, .btn-sm,
    .btn-danger, .btn-success, .btn-warning, .btn-muted,
    form, .badge, .modal, .modal-overlay,
    .screen-watermark, .screen-loading { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
    .data-table { font-size: 11px; }
    .data-table th { background: #f5f5f5 !important; color: black !important; border-bottom: 1px solid #ccc !important; }
    .data-table td { border-bottom: 1px solid #eee !important; }
    body { background: white !important; color: black !important; }
    a { color: black !important; text-decoration: underline; }
}

/* ============================================
   公告卡片悬停
   ============================================ */
.announce-card-hover {
    transition: all var(--transition-base);
}
.announce-card-hover:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(249,78,164,0.2) !important;
}

