/* 空转动画已移除（2026-08-13）：这些动画名被引用但全文无 @keyframes 定义，
   浏览器仍逐帧参与合成却画不出任何东西 —— 全站每个 button 曾背 3 个，
   是手机持续发热的主因。同 2026-08-06 移除 cmaGradientBG 的原因。 */
/* ==== 块 1：通用样式 ==== */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        /* 优雅背景 - 参考 CAE Checkin 风格 */
        body {
            font-family: "Noto Serif SC", "Playfair Display", "Songti SC", Georgia, -apple-system, sans-serif;
            background: #ffffff;
            /* 原有 cmaGradientBG 20s infinite 已移除：背景是纯色，keyframes 只改
               background-position，纯色没有该属性的视觉表现 —— 动画零效果，却导致
               整个视口持续重绘，是评委端笔记本/手机发热的主因（2026-08-06） */
            min-height: 100vh;
            line-height: 1.5;
            position: relative;
            overflow-x: hidden;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding: 20px;
            letter-spacing: 0.3px;
        }

        @keyframes cmaGradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* 柔和背景光晕 */
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background:
                radial-gradient(circle 600px at 25% 35%, rgba(201,162,39,0.06) 0%, transparent 70%),
                radial-gradient(circle 500px at 75% 65%, rgba(180,140,30,0.04) 0%, transparent 65%);
            z-index: -1;
            pointer-events: none;
        }

        /* 基础动画 */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(40px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideInScale {
            from { opacity: 0; transform: translateY(20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-40px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* 苹果风格容器 */
        .container { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 20px;
            animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
        }
        
        /* 响应式容器 */
        @media (max-width: 768px) {
            .container { 
                padding: 16px; 
                max-width: 100%;
            }
        }
        
        /* 优雅Header - 无边框 */
        .header {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 40px 32px 20px;
            text-align: center;
            margin-bottom: 12px;
            box-shadow: none;
            animation: fadeInUp 0.8s ease-out;
            position: relative;
            overflow: hidden;
        }

        .header-logo {
            font-size: 3rem;
            margin-bottom: 12px;
            position: relative;
            z-index: 2;
        }

        .header h1 {
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            font-weight: 700;
            color: #2c2c2c;
            margin-bottom: 10px;
            letter-spacing: 0.02em;
            line-height: 1.2;
            position: relative;
            z-index: 2;
        }

        .header .subtitle {
            font-size: clamp(1rem, 2.5vw, 1.4rem);
            color: #c9a227;
            font-weight: 600;
            margin-bottom: 6px;
            letter-spacing: 0.05em;
            position: relative;
            z-index: 2;
        }

        .header .edition {
            font-size: clamp(0.85rem, 2vw, 1.05rem);
            color: #8a8a8a;
            font-weight: 400;
            margin-bottom: 12px;
            font-style: italic;
            letter-spacing: 0.02em;
            position: relative;
            z-index: 2;
        }

        .header .tagline {
            font-size: clamp(0.85rem, 2vw, 1rem);
            color: #999;
            font-weight: 400;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            margin-top: 8px;
        }
        
        /* 手机端Header优化 */
        @media (max-width: 768px) {
            .header {
                padding: 24px 16px 12px;
            }
            .header .tagline {
                letter-spacing: 0.2em;
            }
        }
        
        .main-content { 
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.4);
            padding: clamp(24px, 5vw, 40px); 
            border-radius: 12px; 
            box-shadow: 
                0 25px 50px rgba(0,0,0,0.15),
                0 0 0 1px rgba(255,255,255,0.1) inset;
            margin-bottom: 24px;
            animation: slideInScale 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
        }

        .main-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                45deg,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent
            );
            background-size: 200% 200%;
            animation: shimmer 12s linear infinite;
            z-index: 0;
            pointer-events: none;
        }

        .main-content > * {
            position: relative;
            z-index: 1;
        }
        
        .form-group { 
            margin-bottom: 24px; 
            animation: fadeInUp 0.4s ease-out;
        }
        
        .form-row { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
            gap: 20px; 
        }
        
        /* 手机端优化 */
        @media (max-width: 768px) {
            .form-row { 
                grid-template-columns: 1fr; 
                gap: 16px; 
            }
        }
        
        /* 苹果风格标签 */
        label { 
            display: block; 
            margin-bottom: 8px; 
            font-weight: 500; 
            color: #1d1d1f; 
            font-size: 1rem;
            letter-spacing: -0.01em;
        }
        
        /* 苹果风格输入框 */
        input, textarea, select { 
            width: 100%; 
            padding: 16px 20px; 
            border: 1.5px solid rgba(0, 0, 0, 0.1); 
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 400;
            transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
            backdrop-filter: blur(10px);
            color: #1d1d1f;
            font-family: inherit;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }
        
        input:focus, textarea:focus, select:focus {
            border-color: #007AFF;
            outline: none;
            box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }
        
        input:hover, textarea:hover, select:hover {
            border-color: rgba(0, 0, 0, 0.2);
        }
        
        /* 苹果风格按钮 */
        button { 
            background: linear-gradient(135deg, #007AFF 0%, #0056CC 50%, #4169E1 100%);
            background-size: 200% 200%;
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 
                0 4px 12px rgba(0, 122, 255, 0.25),
                0 2px 4px rgba(0, 122, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            position: relative;
            font-family: inherit;
            letter-spacing: -0.01em;
            min-height: 52px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            /* animation 已移除（空转） */
        }

        /* 按钮光效层 */
        button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255,255,255,0.2) 0%, transparent 50%),
                linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
            /* animation 已移除（空转） */
            transition: opacity 0.3s ease;
            opacity: 0.7;
        }

        button:hover::before {
            opacity: 1;
        }
        
        button:hover { 
            background-position: 100% 100%;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 6px 20px rgba(0, 122, 255, 0.4),
                0 4px 8px rgba(0, 122, 255, 0.2),
                0 0 30px rgba(65, 105, 225, 0.3);
        }
        
        button:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(0, 122, 255, 0.3);
        }
        
        button.secondary {
            background: linear-gradient(135deg, #8E8E93 0%, #6D6D70 50%, #5A5A5F 100%);
            background-size: 200% 200%;
            box-shadow: 
                0 4px 12px rgba(142, 142, 147, 0.25),
                0 2px 4px rgba(142, 142, 147, 0.15);
            /* animation 已移除（空转） */
        }
        
        button.secondary:hover {
            background-position: 100% 100%;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 6px 20px rgba(142, 142, 147, 0.4),
                0 4px 8px rgba(142, 142, 147, 0.2),
                0 0 25px rgba(109, 109, 112, 0.3);
        }
        
        button.success {
            background: linear-gradient(135deg, #34C759 0%, #28A745 50%, #20C997 100%);
            background-size: 200% 200%;
            box-shadow: 
                0 4px 12px rgba(52, 199, 89, 0.25),
                0 2px 4px rgba(52, 199, 89, 0.15);
            /* animation 已移除（空转） */
        }
        
        button.success:hover {
            background-position: 100% 100%;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 6px 20px rgba(52, 199, 89, 0.4),
                0 4px 8px rgba(52, 199, 89, 0.2),
                0 0 30px rgba(40, 167, 69, 0.3);
        }
        
        button.danger {
            background: linear-gradient(135deg, #FF3B30 0%, #D70015 50%, #FF6B6B 100%);
            background-size: 200% 200%;
            box-shadow: 
                0 4px 12px rgba(255, 59, 48, 0.25),
                0 2px 4px rgba(255, 59, 48, 0.15);
            /* animation 已移除（空转） */
        }
        
        button.danger:hover {
            background-position: 100% 100%;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 
                0 6px 20px rgba(255, 59, 48, 0.4),
                0 4px 8px rgba(255, 59, 48, 0.2),
                0 0 30px rgba(215, 0, 21, 0.3);
        }
        
        /* 内联小按钮重置：凡通过 style 指定了 background 的小按钮不需要全局的动画和阴影 */
        button[style*="background:#fff"],
        button[style*="background:white"],
        button[style*="background: white"],
        button[style*="background: #fff"],
        button[style*="background:#f0f0f0"],
        button[style*="background: #f0f0f0"],
        button[style*="background:#e8f5e9"],
        button[style*="background:#fff3e0"],
        button[style*="background:none"] {
            color: #333;
            box-shadow: none !important;
            min-height: auto !important;
            animation: none !important;
            padding: 4px 10px;
        }
        button[style*="background:#fff"]::before,
        button[style*="background:white"]::before,
        button[style*="background: white"]::before,
        button[style*="background: #fff"]::before,
        button[style*="background:#f0f0f0"]::before,
        button[style*="background: #f0f0f0"]::before,
        button[style*="background:#e8f5e9"]::before,
        button[style*="background:#fff3e0"]::before,
        button[style*="background:none"]::before {
            display: none !important;
        }
        button[style*="background:#fff"]:hover,
        button[style*="background:white"]:hover,
        button[style*="background: white"]:hover,
        button[style*="background: #fff"]:hover,
        button[style*="background:#f0f0f0"]:hover,
        button[style*="background: #f0f0f0"]:hover,
        button[style*="background:#e8f5e9"]:hover,
        button[style*="background:#fff3e0"]:hover,
        button[style*="background:none"]:hover {
            transform: none !important;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
        }

        /* 手机端按钮优化 */
        @media (max-width: 768px) {
            button {
                padding: 14px 24px;
                min-height: 48px;
                width: 100%;
                margin-bottom: 12px;
            }
        }
        
        .hidden { display: none !important; }
        
        /* 苹果风格导航 */
        .nav { 
            display: flex; 
            gap: 8px; 
            margin-bottom: 24px; 
            flex-wrap: wrap;
            animation: fadeInUp 0.6s ease-out;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
            backdrop-filter: blur(20px) saturate(180%);
            border-radius: 10px;
            padding: 8px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 
                0 4px 24px rgba(31, 38, 135, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            position: relative;
            overflow: hidden;
        }

        .nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.15),
                transparent
            );
            background-size: 200% 100%;
            animation: shimmer 14s linear infinite;
            z-index: 0;
            pointer-events: none;
        }
        
        .nav button {
            background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
            background-size: 200% 200%;
            color: #6e6e73;
            border: none;
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 500;
            font-size: 0.95rem;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            min-height: auto;
            box-shadow: none;
            z-index: 1;
            overflow: hidden;
            /* animation 已移除（空转） */
        }

        .nav button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .nav button:hover {
            background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
            color: #007AFF;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
        }

        .nav button:hover::before {
            opacity: 1;
        }
        
        .nav button.active {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.9) 100%);
            background-size: 200% 200%;
            color: #007AFF;
            font-weight: 600;
            box-shadow: 
                0 4px 12px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 122, 255, 0.15),
                0 0 20px rgba(0, 122, 255, 0.1);
            /* animation 已移除（空转） */
        }
        
        /* 手机端导航优化 */
        @media (max-width: 768px) {
            .nav {
                gap: 4px;
                padding: 6px;
                flex-wrap: wrap;
            }
            .nav button {
                flex: 1;
                min-width: 80px;
                padding: 12px 8px;
                font-size: 0.8rem;
                font-weight: 500;
                min-height: 44px;
                border-radius: 10px;
            }
        }

        @media (max-width: 480px) {
            .nav {
                gap: 3px;
                padding: 4px;
            }
            .nav button {
                min-width: 70px;
                padding: 10px 6px;
                font-size: 0.75rem;
                min-height: 40px;
                border-radius: 8px;
            }
        }
        
        /* 苹果风格统计卡片 */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
            animation: fadeInUp 0.8s ease-out;
        }
        
        .stat-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.4);
            padding: 24px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 
                0 4px 24px rgba(31, 38, 135, 0.1),
                0 1px 4px rgba(31, 38, 135, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.1);
            transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
        }
        
        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 8px 32px rgba(31, 38, 135, 0.15),
                0 2px 8px rgba(31, 38, 135, 0.1);
        }
        
        .stat-number {
            font-size: clamp(2rem, 5vw, 2.8rem);
            font-weight: 600;
            background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }
        
        .stat-label {
            color: #6e6e73;
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: -0.01em;
        }
        
        /* 手机端统计卡片优化 */
        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 12px;
            }
            .stat-card {
                padding: 20px 16px;
            }
        }
        
        /* 提醒框 */
        .alert {
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 15px;
            border-left: 5px solid;
            animation: slideInLeft 0.6s ease-out;
        }
        
        .alert-info {
            background: linear-gradient(135deg, rgba(209,236,241,0.9), rgba(190,229,235,0.9));
            border-left-color: #17a2b8;
            color: #0c5460;
            backdrop-filter: blur(10px);
        }
        
        /* 评分界面 */
        .judge-scoring-interface {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 25px;
            min-height: calc(100vh - 250px);
            animation: fadeInUp 0.8s ease-out;
        }
        
        .category-selection {
            background: rgba(255,255,255,0.95);
            border-radius: 12px;
            padding: 25px;
            overflow-y: auto;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .video-scoring-area {
            background: rgba(255,255,255,0.95);
            border-radius: 12px;
            padding: clamp(20px, 4vw, 30px);
            overflow-y: auto;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        /* 手机端评分界面优化 */
        @media (max-width: 768px) {
            .judge-scoring-interface {
                grid-template-columns: 1fr;
                gap: 15px;
                min-height: auto;
            }
            .category-selection {
                max-height: 300px;
            }
            .contestant-card {
                padding: 20px !important;
                margin-bottom: 25px !important;
            }
            .score-input {
                width: 150px !important;
                font-size: 1.5em !important;
                padding: 12px !important;
            }
        }
        
        /* 分组项目 */
        .group-item {
            padding: 18px;
            margin-bottom: 12px;
            background: rgba(255,255,255,0.9);
            border-radius: 15px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            backdrop-filter: blur(10px);
        }
        
        .group-item:hover {
            border-color: #cc785c;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(204,120,92, 0.2);
        }
        
        .group-item.selected {
            border-color: #cc785c;
            background: rgba(204,120,92, 0.1);
        }
        
        /* 表格样式 */
        table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(255,255,255,0.95);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            animation: fadeInUp 0.8s ease-out;
        }
        
        th, td {
            padding: 15px 12px;
            text-align: center;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            font-size: clamp(0.8rem, 2vw, 0.9rem);
        }
        
        th {
            background: linear-gradient(135deg, #cc785c, #b86848);
            color: white;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        tr:hover {
            background: rgba(204,120,92, 0.05);
        }
        
        /* 表格响应式容器 */
        .table-container {
            background: rgba(255,255,255,0.95);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            animation: fadeInUp 0.8s ease-out;
            margin-bottom: 24px;
        }

        /* 手机端表格优化 */
        @media (max-width: 768px) {
            .table-container {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                border-radius: 12px;
            }
            
            table {
                font-size: 0.8rem;
                min-width: 600px; /* 防止表格过度压缩 */
            }
            
            th, td {
                padding: 12px 8px;
                white-space: nowrap;
            }
            
            th {
                position: sticky;
                top: 0;
                z-index: 10;
            }
        }

        @media (max-width: 480px) {
            table {
                font-size: 0.75rem;
                min-width: 500px;
            }
            
            th, td {
                padding: 10px 6px;
            }
        }

        /* 视频管理折叠样式 */
        .video-tree {
            margin-top: 20px;
        }

        .category-section {
            transition: all 0.3s ease;
        }

        .category-header {
            user-select: none;
            transition: background-color 0.2s ease;
        }

        .category-header:hover {
            background: #e9ecef !important;
        }

        .subcategory-header {
            user-select: none;
            transition: background-color 0.2s ease;
        }

        .subcategory-header:hover {
            background: #f8f9fa !important;
        }

        .group-header {
            user-select: none;
            transition: background-color 0.2s ease;
        }

        .group-header:hover {
            background: #f1f3f4 !important;
        }

        .category-content, .subcategory-content, .group-content {
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        /* 参赛者卡片 */
        .contestant-list {
            animation: fadeInUp 0.8s ease-out;
        }
        
        .contestant-card {
            background: rgba(255,255,255,0.95);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            animation: slideInLeft 0.6s ease-out;
        }
        
        .contestant-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        /* 手机端参赛者卡片优化 */
        @media (max-width: 768px) {
            .contestant-card {
                padding: 20px;
                margin-bottom: 20px;
            }
            
            .contestant-card .scoring-area {
                margin-top: 20px !important;
                margin-left: 0 !important;
            }
            
            /* 评分区域在手机端堆叠显示 */
            .contestant-card > div {
                display: block !important;
                grid-template-columns: 1fr !important;
            }
        }
        
        /* 评分输入框样式 */
        .score-input {
            background: rgba(255,255,255,0.9) !important;
            border: 3px solid #e0e0e0 !important;
            border-radius: 15px !important;
            text-align: center !important;
            font-weight: 600 !important;
            font-size: 1.2em !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        
        .score-input:focus {
            border-color: #cc785c !important;
            box-shadow: 0 0 0 4px rgba(204,120,92, 0.1) !important;
            transform: scale(1.05) !important;
        }
        
        /* 视频播放器容器 */
        .video-player-container {
            border-radius: 15px !important;
            overflow: hidden !important;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        
        .video-player-container:hover {
            box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
            transform: translateY(-2px) !important;
        }
        
        /* 参赛者信息样式 */
        .contestant-info {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 20px;
            align-items: center;
        }
        
        .contestant-details h4 {
            color: #333;
            margin-bottom: 5px;
        }
        
        .contestant-details p {
            color: #666;
            margin-bottom: 3px;
        }
        
        /* 按组别管理评委界面 */
        .group-judge-management {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 20px;
            height: calc(100vh - 200px);
        }
        
        .judge-management-area {
            background: rgba(255,255,255,0.95);
            border-radius: 15px;
            padding: 30px;
            overflow-y: auto;
        }

        .judge-input-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr auto;
            gap: 15px;
            margin-bottom: 15px;
            align-items: end;
        }

        .judge-list {
            margin-top: 30px;
        }
        .judge-item {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border-left: 4px solid #cc785c;
        }

        /* 评委管理增强样式 */
        .judge-item-enhanced {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-left: 4px solid #cc785c;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .judge-item-enhanced:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }

        .judge-info {
            flex: 1;
        }

        .judge-name {
            font-size: 1.2em;
            font-weight: bold;
            color: #333;
            margin-bottom: 5px;
        }

        .judge-username {
            color: #666;
            font-size: 0.9em;
            margin-bottom: 8px;
        }

        .judge-groups {
            color: #cc785c;
            font-size: 0.85em;
            font-weight: 500;
        }

        .judge-actions {
            display: flex;
            gap: 8px;
        }

        .judge-actions button {
            padding: 6px 12px;
            font-size: 12px;
            border-radius: 6px;
        }

        /* 改进的用户顶部栏样式 */
        .user-header {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 10px;
            padding: 14px 24px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
            animation: fadeInUp 0.6s ease-out;
        }

        .user-header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .header-logo-small {
            height: 36px;
            width: auto;
            border-radius: 6px;
            object-fit: contain;
        }

        .header-brand-text h2 {
            color: #2c2c2c;
            font-size: 1.05rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: 0.02em;
            line-height: 1.3;
        }

        .header-brand-sub {
            color: #c9a227;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.05em;
        }

        .user-header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-greeting {
            color: #888;
            font-size: 0.85rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .competition-select {
            padding: 6px 12px;
            border-radius: 8px;
            border: 1.5px solid #e0e0e0;
            font-size: 13px;
            background: white;
            cursor: pointer;
            min-width: 120px;
        }

        .logout-btn-compact {
            padding: 7px 16px;
            min-height: auto;
            border-radius: 8px;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.2s;
            background: #f0f0f0;
            color: #666;
            border: 1px solid #e0e0e0;
            cursor: pointer;
        }

        .logout-btn-compact:hover {
            background: #e8e8e8;
            color: #333;
        }

        /* 手机端用户顶部栏优化 */
        @media (max-width: 768px) {
            .user-header {
                flex-direction: column;
                gap: 10px;
                padding: 12px 16px;
                align-items: stretch;
            }
            .user-header-left {
                justify-content: center;
            }
            .header-brand-text h2 {
                font-size: 0.9rem;
            }
            .user-header-right {
                justify-content: center;
                flex-wrap: wrap;
                gap: 8px;
            }
            .user-greeting {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .header-logo-small {
                height: 28px;
            }
            .header-brand-text h2 {
                font-size: 0.8rem;
            }
            .header-brand-sub {
                font-size: 0.65rem;
            }
            .competition-select {
                min-width: 90px;
                font-size: 12px;
            }
        }

        /* 获奖设置区域样式 */
        .award-settings {
            margin-top: 20px;
            background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.8) 100%);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.4);
            box-shadow: 0 4px 20px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
        }

        .award-settings h5 {
            margin-bottom: 20px;
            color: #495057;
            font-size: 1.2em;
        }

        .award-setting-item {
            margin-bottom: 15px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
        }

        .award-setting-item label {
            flex: 0 0 auto;
            min-width: 80px;
        }

        .award-setting-item input {
            flex: 1;
            min-width: 60px;
            max-width: 100px;
        }

        /* 按钮组样式 */
        .button-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        .button-group button {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        /* Toggle开关样式 */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            vertical-align: middle;
        }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 26px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px; width: 20px;
            left: 3px; bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }
        .toggle-switch input:checked + .toggle-slider { background-color: #28a745; }
        .toggle-switch input:checked + .toggle-slider:before { transform: translateX(24px); }

        /* 评委输入行样式 */
        .judge-input-container {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .judge-input-container h6 {
            margin-bottom: 10px;
        }

        .judge-input-row {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr auto;
            gap: 15px;
            margin-bottom: 15px;
            align-items: end;
        }

        .judge-input-row input {
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            min-width: 0; /* 允许输入框缩小 */
        }

        .judge-input-row button {
            padding: 12px 16px;
            font-size: 14px;
            white-space: nowrap;
        }

        @media (max-width: 768px) {
            .form-row { grid-template-columns: 1fr; }
            .stats-grid { grid-template-columns: 1fr; }
            .judge-scoring-interface, .group-judge-management { 
                grid-template-columns: 1fr; 
                height: auto; 
            }
            .contestant-info { grid-template-columns: 1fr; text-align: center; }
            .judge-item-enhanced { flex-direction: column; text-align: center; }
            .judge-actions { margin-top: 15px; justify-content: center; }

            /* 获奖设置手机端优化 */
            .award-settings {
                padding: 15px;
                margin-top: 15px;
            }

            .award-setting-item {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 12px;
            }

            .award-setting-item label {
                min-width: auto;
                font-weight: 600;
            }

            .award-setting-item input {
                max-width: none;
                width: 100%;
            }

            /* 按钮组手机端优化 */
            .button-group {
                flex-direction: column;
                gap: 8px;
            }

            .button-group button {
                width: 100%;
                flex: 1;
            }

            /* 评委输入行手机端优化 */
            .judge-input-row {
                grid-template-columns: 1fr;
                gap: 10px;
                align-items: stretch;
            }

            .judge-input-row input {
                width: 100%;
                min-width: auto;
                padding: 12px;
            }

            .judge-input-row button {
                width: 100%;
                padding: 14px;
                margin-top: 5px;
            }

            .judge-input-container {
                padding: 15px;
            }
        }

        @media (max-width: 480px) {
            .award-settings {
                padding: 12px;
            }

            .award-setting-item {
                padding: 10px;
            }

            .judge-input-container {
                padding: 12px;
            }
        }
        /* ========== CMA 优雅登录页样式 ========== */
        .cma-particles {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 0; overflow: hidden;
        }
        .cma-particle {
            position: absolute; width: 4px; height: 4px;
            background: #c9a227; border-radius: 50%; opacity: 0;
            animation: cmaFloat 20s infinite;
        }
        .cma-particle:nth-child(1) { left:8%; animation-delay:0s; animation-duration:22s; }
        .cma-particle:nth-child(2) { left:15%; animation-delay:2s; animation-duration:18s; }
        .cma-particle:nth-child(3) { left:25%; animation-delay:4s; animation-duration:25s; }
        .cma-particle:nth-child(4) { left:35%; animation-delay:1s; animation-duration:20s; }
        .cma-particle:nth-child(5) { left:45%; animation-delay:6s; animation-duration:23s; }
        .cma-particle:nth-child(6) { left:55%; animation-delay:3s; animation-duration:19s; }
        .cma-particle:nth-child(7) { left:65%; animation-delay:5s; animation-duration:21s; }
        .cma-particle:nth-child(8) { left:75%; animation-delay:7s; animation-duration:24s; }
        .cma-particle:nth-child(9) { left:85%; animation-delay:2s; animation-duration:26s; }
        .cma-particle:nth-child(10) { left:92%; animation-delay:4s; animation-duration:17s; }
        .cma-particle:nth-child(11) { left:50%; animation-delay:8s; animation-duration:28s; }
        .cma-particle:nth-child(12) { left:20%; animation-delay:9s; animation-duration:16s; }

        @keyframes cmaFloat {
            0%,100% { transform: translateY(100vh) scale(0.5); opacity: 0; }
            10% { opacity: 0.3; }
            50% { opacity: 0.15; transform: translateY(50vh) scale(1); }
            90% { opacity: 0.25; }
            100% { transform: translateY(-10vh) scale(0.3); opacity: 0; }
        }

        .cma-login-logo {
            width: 120px; height: auto; margin: 0 auto 14px;
            display: block;
            filter: drop-shadow(0 4px 12px rgba(201,162,39,0.2));
        }

        .cma-login-title {
            color: #2c2c2c !important;
            font-size: clamp(1.3rem, 3.5vw, 1.7rem) !important;
            font-weight: 700 !important;
            letter-spacing: 1px;
            text-shadow: none;
            background: none !important;
            -webkit-background-clip: unset !important;
            -webkit-text-fill-color: #2c2c2c !important;
            background-clip: unset !important;
            margin-bottom: 8px;
        }

        .cma-login-subtitle {
            color: #c9a227;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 2px;
            margin-bottom: 4px;
        }

        .cma-login-edition {
            color: #aaa;
            font-size: 12px;
            font-style: italic;
            letter-spacing: 1px;
        }

        .cma-login-card {
            max-width: 420px;
            margin: 0 auto 24px;
            text-align: center;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(201,162,39,0.15);
            border-radius: 12px;
            padding: 32px 28px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
        }

        .cma-login-card .form-group {
            text-align: left;
            margin-bottom: 18px;
        }

        .cma-login-card-title {
            color: #c9a227 !important;
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 24px;
            letter-spacing: 2px;
            background: none !important;
            -webkit-text-fill-color: #c9a227 !important;
        }

        .cma-login-input {
            width: 100%;
            padding: 13px 16px;
            border: 1.5px solid #e0dcd4 !important;
            border-radius: 10px;
            font-size: 15px;
            background: #faf9f7 !important;
            color: #333 !important;
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .cma-login-input::placeholder { color: #bbb; }
        .cma-login-input:focus {
            border-color: #c9a227 !important;
            box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
        }

        .cma-login-btn {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 3px;
            background: linear-gradient(135deg, #c9a227, #ddb832);
            color: #fff;
            box-shadow: 0 4px 16px rgba(201,162,39,0.25);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        .cma-login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 28px rgba(201,162,39,0.35);
        }
        .cma-login-btn:active { transform: translateY(0); }

        .cma-login-divider {
            margin: 22px 0 16px;
            position: relative;
            text-align: center;
        }
        .cma-login-divider::before {
            content: '';
            position: absolute; top: 50%; left: 0; right: 0;
            height: 1px;
            background: #e8e4dc;
        }
        .cma-login-divider span {
            position: relative;
            background: rgba(255,255,255,0.96);
            padding: 0 16px;
            color: #aaa;
            font-size: 13px;
        }

        .cma-register-btn {
            display: block;
            width: 100%;
            padding: 13px;
            background: transparent;
            color: #c9a227;
            text-decoration: none;
            border: 1.5px solid rgba(201,162,39,0.3);
            border-radius: 12px;
            font-size: 15px;
            font-weight: 600;
            letter-spacing: 1px;
            transition: all 0.3s;
            text-align: center;
        }
        .cma-register-btn:hover {
            background: rgba(201,162,39,0.06);
            border-color: #c9a227;
            transform: translateY(-1px);
        }

        /* === 评分表格样式 (CAE风格) === */
        .score-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .score-table thead {
            background: linear-gradient(135deg, #1a6b6b 0%, #145555 100%);
            color: white;
        }
        .score-table thead th {
            padding: 12px 8px;
            text-align: center;
            font-weight: 600;
            white-space: nowrap;
            border: none;
        }
        .score-table tbody tr {
            border-bottom: 1px solid #e8f0f0;
            transition: background 0.2s;
        }
        .score-table tbody tr:hover {
            background: #f0f7f7;
        }
        .score-table tbody tr:nth-child(even) {
            background: #fafbfc;
        }
        .score-table tbody tr:nth-child(even):hover {
            background: #f0f7f7;
        }
        .score-table td {
            padding: 10px 8px;
            text-align: center;
            vertical-align: middle;
            border: none;
        }
        .score-table .col-rank {
            width: 50px;
            font-weight: 700;
            color: #1a6b6b;
        }
        .score-table .col-number {
            width: 60px;
            font-weight: 600;
            color: #3a5a5a;
        }
        .score-table .col-name {
            width: 90px;
            font-weight: 500;
            text-align: left;
            padding-left: 12px;
        }
        .score-table .col-score {
            min-width: 70px;
        }
        .score-table .col-final {
            min-width: 70px;
            font-weight: 700;
            color: #e74c3c;
        }
        .score-table .col-award {
            min-width: 80px;
        }

        /* 分数输入框 */
        .score-input-cell {
            padding: 6px 4px !important;
        }
        .score-input-box {
            width: 64px;
            padding: 8px 4px;
            border: 1px solid #d0e0e0;
            border-radius: 6px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            background: #fff;
        }
        .score-input-box:focus {
            outline: none;
            border-color: #1a6b6b;
            box-shadow: 0 0 0 3px rgba(26, 107, 107, 0.15);
        }
        .score-input-box.saved {
            border-color: #48bb78;
            background: rgba(72, 187, 120, 0.08);
        }
        .score-input-box.error {
            border-color: #f56565;
            background: rgba(245, 101, 101, 0.08);
        }
        .score-input-box.empty {
            border-color: #ffc107;
            background: #fffde7;
        }

        /* 排名显示 */
        .rank-display {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            border-radius: 50%;
            font-weight: 700;
            font-size: 13px;
        }
        .rank-display.gold { background: linear-gradient(135deg, #FFD700, #FFA000); color: white; }
        .rank-display.silver { background: linear-gradient(135deg, #C0C0C0, #9E9E9E); color: white; }
        .rank-display.bronze { background: linear-gradient(135deg, #CD7F32, #8D6E63); color: white; }

        /* 去极值分数显示 */
        .score-display.removed-high {
            color: #c53030;
            text-decoration: line-through;
            background: rgba(245, 101, 101, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }
        .score-display.removed-low {
            color: #2b6cb0;
            text-decoration: line-through;
            background: rgba(66, 153, 225, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
        }

        /* 奖项标签 */
        .award-badge {
            padding: 4px 12px;
            border-radius: 12px;
            font-weight: bold;
            font-size: 12px;
            color: white;
            background: #8a8279;   /* 兜底底色：未知奖项名也不会白底白字 */
        }
        /* 特等奖：高于一等奖，用深红以示分量（一等奖已占金色）*/
        .award-badge.special { background: linear-gradient(135deg, #c0392b, #8e1f14); box-shadow: 0 1px 4px rgba(192,57,43,.35); }
        .award-badge.first { background: linear-gradient(135deg, #FFD700, #FFA000); }
        .award-badge.second { background: linear-gradient(135deg, #C0C0C0, #9E9E9E); }
        .award-badge.third { background: linear-gradient(135deg, #CD7F32, #8D6E63); }
        .award-badge.excellence { background: linear-gradient(135deg, #48bb78, #38a169); }

        /* 分数录入/排名容器 */
        .score-section-card {
            padding: 16px;
            border-radius: 10px;
            margin-bottom: 16px;
        }
        .score-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .score-section-title {
            font-weight: 600;
            color: #1a6b6b;
            font-size: 15px;
        }
        .score-section-info {
            color: #666;
            font-size: 13px;
        }
        .remove-info-legend {
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 12px;
            font-size: 12px;
        }

        /* === 改密 Modal === */
        .pwd-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            align-items: center;
            justify-content: center;
        }
        .pwd-modal-overlay.active {
            display: flex;
        }
        .pwd-modal {
            background: white;
            border-radius: 12px;
            padding: 36px;
            max-width: 420px;
            width: 90%;
            box-shadow: 0 25px 60px rgba(0,0,0,0.3);
            animation: slideInScale 0.3s ease-out;
        }
        .pwd-modal h3 {
            font-size: 1.3em;
            color: #2c2c2c;
            margin-bottom: 6px;
        }
        .pwd-modal .pwd-hint {
            color: #ed8936;
            font-size: 13px;
            margin-bottom: 20px;
        }
        .pwd-modal input {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid #e0e0e0;
            border-radius: 10px;
            font-size: 14px;
            margin-bottom: 12px;
            transition: border-color 0.3s;
        }
        .pwd-modal input:focus {
            outline: none;
            border-color: #c9a227;
        }
        .pwd-modal .pwd-error {
            background: #fff5f5;
            color: #c53030;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            margin-bottom: 12px;
            display: none;
        }
        .pwd-modal .pwd-actions {
            display: flex;
            gap: 10px;
            margin-top: 8px;
        }
        .pwd-modal .pwd-actions button {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
        }
        .pwd-modal .btn-confirm {
            background: linear-gradient(135deg, #c9a227, #b8941f);
            color: white;
        }
        .pwd-modal .btn-confirm:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(201,162,39,0.4);
        }
        .pwd-modal .btn-skip {
            background: #f5f5f5;
            color: #666;
        }
        .pwd-modal .btn-skip:hover {
            background: #eee;
        }

        /* === 选手页面 === */
        .player-card {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 24px;
            margin-bottom: 20px;
            border-left: 5px solid #c9a227;
        }
        .player-card h4 {
            color: #c9a227;
            margin-bottom: 16px;
            font-size: 1.1em;
        }
        .player-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
        }
        .player-field {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            background: white;
            border-radius: 10px;
            border: 1px solid #eee;
            transition: all 0.2s;
        }
        .player-field:hover {
            border-color: #c9a227;
        }
        .player-field-label {
            font-size: 12px;
            color: #999;
            font-weight: 600;
            min-width: 70px;
            flex-shrink: 0;
            padding-top: 2px;
        }
        .player-field-value {
            font-size: 14px;
            color: #333;
            flex: 1;
            word-break: break-all;
        }
        .player-field-value.empty {
            color: #ccc;
            font-style: italic;
        }
        .player-edit-btn {
            padding: 3px 10px;
            font-size: 12px;
            color: #c9a227;
            background: rgba(201,162,39,0.08);
            border: 1px solid rgba(201,162,39,0.2);
            border-radius: 6px;
            cursor: pointer;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        .player-edit-btn:hover {
            background: rgba(201,162,39,0.15);
            border-color: #c9a227;
        }
        .player-edit-input {
            flex: 1;
            padding: 6px 10px;
            border: 1.5px solid #c9a227;
            border-radius: 6px;
            font-size: 14px;
            outline: none;
        }
        .player-edit-actions {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }
        .player-edit-actions button {
            padding: 4px 10px;
            font-size: 12px;
            border-radius: 6px;
            cursor: pointer;
            border: none;
        }
        .player-edit-actions .save-btn {
            background: #c9a227;
            color: white;
        }
        .player-edit-actions .cancel-btn {
            background: #eee;
            color: #666;
        }
        .player-video-preview {
            margin-top: 16px;
            border-radius: 12px;
            overflow: hidden;
            background: #000;
        }
        .player-video-preview iframe {
            width: 100%;
            aspect-ratio: 16/9;
            border: none;
        }
        .player-score-card {
            text-align: center;
            padding: 30px;
        }
        .player-score-number {
            font-size: 3em;
            font-weight: 700;
            color: #c9a227;
            line-height: 1;
        }
        .player-score-rank {
            font-size: 1.2em;
            color: #666;
            margin-top: 8px;
        }
        .player-score-detail {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 16px;
            font-size: 13px;
            color: #888;
        }
        .player-score-pending {
            text-align: center;
            padding: 40px 20px;
            color: #999;
        }
        .player-score-pending .icon {
            font-size: 3em;
            margin-bottom: 12px;
        }

        /* ========== 手机端全面优化 ========== */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }

            /* 选手页面 - 信息卡片 */
            .player-card {
                padding: 16px;
                margin-bottom: 14px;
                border-radius: 12px;
            }
            .player-card h4 {
                font-size: 1em;
                margin-bottom: 12px;
            }
            .player-info-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .player-field {
                padding: 10px 12px;
                flex-wrap: wrap;
                gap: 6px;
            }
            .player-field-label {
                min-width: 60px;
                font-size: 11px;
            }
            .player-field-value {
                font-size: 13px;
            }
            .player-edit-btn {
                padding: 4px 10px;
                font-size: 11px;
            }
            .player-edit-input {
                width: 100% !important;
                flex: unset;
                padding: 8px 10px;
                font-size: 14px;
            }
            .player-edit-actions {
                width: 100%;
                justify-content: flex-end;
            }
            .player-edit-actions button {
                padding: 6px 14px;
                font-size: 12px;
            }

            /* 选手页面 - 成绩 */
            .player-score-card {
                padding: 20px;
            }
            .player-score-number {
                font-size: 2.2em;
            }
            .player-score-rank {
                font-size: 1em;
            }
            .player-score-detail {
                flex-direction: column;
                gap: 8px;
                align-items: center;
            }
            .player-score-pending {
                padding: 30px 16px;
            }

            /* 改密 Modal */
            .pwd-modal {
                padding: 24px 20px;
                border-radius: 10px;
                width: 94%;
                max-width: none;
            }
            .pwd-modal h3 {
                font-size: 1.15em;
            }
            .pwd-modal input {
                padding: 12px;
                font-size: 15px;
            }
            .pwd-modal .pwd-actions {
                flex-direction: column;
                gap: 8px;
            }
            .pwd-modal .pwd-actions button {
                padding: 13px;
                font-size: 15px;
            }

            /* 评分卡片 - 核心手机优化 */
            .contestant-card {
                padding: 16px !important;
                margin-bottom: 20px !important;
            }
            .contestant-card h3 {
                font-size: 1.1em !important;
            }
            .scoring-area {
                padding: 14px !important;
            }
            .scoring-area > div {
                flex-direction: column !important;
                gap: 10px !important;
            }
            .score-input {
                width: 100% !important;
                max-width: 200px;
                font-size: 1.6em !important;
                padding: 12px !important;
            }

            /* 视频播放区手机优化 */
            .contestant-card button.success {
                padding: 14px 28px !important;
                font-size: 1em !important;
            }

            /* 组别选择侧栏 - 手机全宽 */
            .category-selection {
                max-height: 250px;
                padding: 16px;
                border-radius: 14px;
            }
            .group-item {
                padding: 14px;
                margin-bottom: 8px;
                font-size: 0.9em;
            }

            /* 用户顶部栏 - 简洁紧凑 */
            .user-header {
                border-radius: 12px;
            }
            .competition-select {
                width: 100%;
                min-width: auto;
            }

            /* 登录页优化 */
            .cma-login-card {
                padding: 24px 20px;
                margin: 0 auto 16px;
            }
            .cma-login-logo {
                width: 90px;
            }

            /* 导航栏 - player/judge 只有一两个按钮时 */
            .nav {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 6px;
            }

            /* 选手页面更紧凑 */
            .player-card {
                padding: 12px;
                border-radius: 10px;
                border-left-width: 4px;
            }
            .player-info-grid {
                gap: 8px;
            }
            .player-field {
                padding: 8px 10px;
                border-radius: 8px;
            }
            .player-field-label {
                min-width: 55px;
                font-size: 10px;
            }
            .player-field-value {
                font-size: 12px;
            }
            .player-score-number {
                font-size: 1.8em;
            }

            /* 评分卡片更紧凑 */
            .contestant-card {
                padding: 12px !important;
                margin-bottom: 16px !important;
                border-radius: 10px !important;
            }
            .contestant-card h3 {
                font-size: 1em !important;
            }
            .score-input {
                font-size: 1.4em !important;
            }

            /* 改密 Modal 480 */
            .pwd-modal {
                padding: 20px 16px;
            }

            /* 序号圆圈缩小 */
            .contestant-card div[style*="width: 40px"] {
                width: 32px !important;
                height: 32px !important;
                font-size: 1em !important;
                margin-right: 10px !important;
            }

            /* 组别选择 */
            .category-selection {
                max-height: 200px;
                padding: 12px;
            }
            .group-item {
                padding: 12px;
                margin-bottom: 6px;
                border-radius: 10px;
            }

            /* 曲目文字溢出处理 */
            .contestant-card p {
                margin-left: 0 !important;
                font-size: 1em !important;
            }
        }
        /* Markdown渲染样式 */
        .md-content h2 { font-size:16px; font-weight:700; color:#333; margin:16px 0 8px; padding-bottom:4px; border-bottom:1px solid #eee; }
        .md-content h3 { font-size:14px; font-weight:700; color:#444; margin:12px 0 6px; }
        .md-content h4 { font-size:13px; font-weight:600; color:#555; margin:10px 0 4px; }
        .md-content p { margin:6px 0; }
        .md-content strong { color:#333; }
        .md-content table { width:100%; border-collapse:collapse; margin:10px 0; font-size:12px; }
        .md-content th { background:#f0f4f8; padding:6px 10px; border:1px solid #ddd; text-align:left; font-weight:600; color:#333; }
        .md-content td { padding:5px 10px; border:1px solid #e2e8f0; }
        .md-content tr:nth-child(even) { background:#f9fafb; }
        .md-content blockquote { border-left:3px solid #cc785c; padding:4px 12px; margin:8px 0; color:#666; background:#f8f9ff; border-radius:0 6px 6px 0; font-size:12px; }
        .md-content ul, .md-content ol { padding-left:20px; margin:6px 0; }
        .md-content li { margin:3px 0; }
        .md-content hr { border:none; border-top:1px solid #e2e8f0; margin:12px 0; }
        .md-content code { background:#f0f0f0; padding:1px 4px; border-radius:3px; font-size:12px; }

/* ==== 块 2：AI 聊天助手样式 ==== */
        .ai-chat-btn {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, #cc785c, #b86848);
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(204,120,92, 0.4);
            z-index: 9998;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .ai-chat-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 24px rgba(204,120,92, 0.6);
        }

        .ai-chat-panel {
            position: fixed;
            bottom: 0;
            right: 0;
            width: 420px;
            height: 70vh;
            max-height: 600px;
            background: white;
            border-radius: 10px 16px 0 0;
            box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            overflow: hidden;
        }
        .ai-chat-panel.active {
            transform: translateY(0);
        }

        .ai-chat-header {
            background: linear-gradient(135deg, #cc785c, #b86848);
            color: white;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        .ai-chat-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .ai-chat-header h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 600;
        }
        .ai-chat-header .close-btn {
            background: none !important;
            border: none;
            color: white;
            font-size: 22px;
            cursor: pointer;
            opacity: 0.8;
            padding: 8px 12px;
            line-height: 1;
            min-width: 40px !important;
            min-height: 40px !important;
            width: auto !important;
            margin-bottom: 0 !important;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ai-chat-header .close-btn:hover {
            opacity: 1;
        }

        .ai-model-select {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 6px;
            padding: 4px 8px;
            font-size: 12px;
            cursor: pointer;
        }
        .ai-model-select option {
            color: #333;
            background: white;
        }

        .ai-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .ai-message {
            max-width: 85%;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.5;
            word-break: break-word;
        }
        .ai-message.user {
            align-self: flex-end;
            background: linear-gradient(135deg, #cc785c, #b86848);
            color: white;
            border-bottom-right-radius: 4px;
        }
        .ai-message.assistant {
            align-self: flex-start;
            background: #f0f2f5;
            color: #333;
            border-bottom-left-radius: 4px;
        }
        .ai-message.assistant .ai-message-content {
            font-size: 14px;
            line-height: 1.6;
        }

        .ai-typing {
            display: flex;
            gap: 4px;
            padding: 4px 0;
        }
        .ai-typing span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #999;
            animation: typingBounce 1.4s infinite ease-in-out;
        }
        .ai-typing span:nth-child(2) { animation-delay: 0.2s; }
        .ai-typing span:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typingBounce {
            0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
            40% { transform: scale(1); opacity: 1; }
        }

        .ai-input-area {
            padding: 10px 12px;
            border-top: 1px solid #eee;
            display: flex;
            gap: 6px;
            align-items: flex-end;
            flex-shrink: 0;
            background: white;
        }
        .ai-input-area textarea {
            flex: 1;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 8px 10px;
            font-size: 14px;
            resize: none;
            outline: none;
            min-height: 38px;
            max-height: 100px;
            font-family: inherit;
            line-height: 1.4;
        }
        .ai-input-area textarea:focus {
            border-color: #cc785c;
        }
        .ai-input-area button {
            background: linear-gradient(135deg, #cc785c, #b86848) !important;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px !important;
            cursor: pointer;
            font-size: 14px;
            white-space: nowrap;
            flex-shrink: 0;
            width: auto !important;
            min-height: 40px !important;
            height: 40px;
            margin-bottom: 0 !important;
        }
        .ai-input-area button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .ai-welcome {
            text-align: center;
            color: #999;
            padding: 40px 20px;
        }
        .ai-welcome .icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .ai-welcome p {
            font-size: 13px;
            margin: 4px 0;
        }

        @media (max-width: 480px) {
            .ai-chat-btn {
                bottom: 16px;
                right: 16px;
                width: 48px;
                height: 48px;
            }
            .ai-chat-btn img {
                width: 36px !important;
                height: 36px !important;
            }
            .ai-chat-panel {
                width: 100%;
                max-width: 100%;
                height: 85vh;
                max-height: none;
                border-radius: 12px 12px 0 0;
            }
            .ai-chat-header {
                padding: 10px 14px;
            }
            .ai-chat-header h3 {
                font-size: 14px;
            }
            .ai-messages {
                padding: 12px;
            }
            .ai-input-area {
                padding: 10px 12px;
                padding-bottom: max(10px, env(safe-area-inset-bottom));
            }
            .ai-input-area textarea {
                font-size: 16px !important;
                min-height: 40px;
                padding: 10px 12px;
            }
            .ai-input-area button {
                width: auto !important;
                min-height: 40px !important;
                padding: 10px 16px !important;
                font-size: 14px !important;
                margin-bottom: 0 !important;
            }
            .ai-chat-header .close-btn {
                width: auto !important;
                min-height: 40px !important;
                margin-bottom: 0 !important;
            }
        }


/* ==== 性能与无障碍：系统开启「减弱动态效果」时停掉全部装饰动画 ==== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==== 页面切到后台时暂停所有循环动画（配合 js 给 <html> 加 .page-hidden） ==== */
html.page-hidden *, html.page-hidden *::before, html.page-hidden *::after {
    animation-play-state: paused !important;
}

/* ==== 打分页：评分矩阵单元格数量大，禁用装饰动画避免持续重绘 ==== */
body.scoring-active .btn-primary,
body.scoring-active .btn-secondary,
body.scoring-active .btn-success,
body.scoring-active .btn-danger,
body.scoring-active .nav-btn {
    animation: none !important;
}

        /* ===== 国际半决赛报送：手机适配（2026-08-10）=====
           作用域全部限定在 #semifinalPage / #intlSubBody / intl-* class，
           不影响其他页面。inline style 需覆盖处才用 !important。 */
        @media (max-width: 768px) {
            /* 全局 button{width:100%} 在本页太浪费：tab/操作按钮恢复自然宽 */
            #semifinalPage .intl-actions button,
            #semifinalPage .intl-tabs button {
                width: auto;
                min-height: 0;
                margin-bottom: 0;
                padding: 8px 14px;
            }
            #semifinalPage .intl-search {
                width: 100% !important;
                margin-left: 0 !important;
            }
            #intlSubSummary > div { gap: 12px !important; }

            /* 表格卡片化：td 纵向堆叠，杜绝横向溢出（td 的 min/max-width 是
               inline 写死的桌面值，必须 !important 归零；min-width/nowrap 则要
               压过上面全局的 table{min-width:600px} + th,td{white-space:nowrap}） */
            #intlSubBody table,
            #intlSubBody tbody { display: block; width: 100%; min-width: 0; }
            #intlSubBody tr { display: block; }
            #intlSubBody tr[hidden] { display: none; }
            #intlSubBody td {
                display: block;
                width: 100% !important;
                min-width: 0 !important;
                max-width: none !important;
                box-sizing: border-box;
                white-space: normal;
            }

            /* 卡片化后沿用桌面全局 th,td{text-align:center} 会让折行文本乱作一团 */
            #intlSubBody td { text-align: left; }

            /* 详情面板：照片改成独立一行（否则 84px 照片列占满整高，
               右侧内容被挤成窄条），两列信息改单列 */
            #intlSubBody .intl-detail-flex { flex-direction: column; gap: 10px; }
            #intlSubBody .intl-detail-grid { grid-template-columns: 1fr !important; }

            /* 曲目编辑行：曲名独占一行，作曲家+时长换到第二行，避免输入框被压扁
               （flex:3 写在 inline，basis 必须 !important 才盖得过） */
            #intlSubBody .ipe-row { flex-wrap: wrap; }
            #intlSubBody .ipe-row .ipe-title { flex-basis: calc(100% - 60px) !important; }
            #intlSubBody .ipe-row .ipe-composer { flex-basis: 55% !important; }

            /* 选手端报名/自助修改弹窗：全局 button{width:100%} 会让「+ 添加曲目」
               撑满一行压住旁边的时长合计文字，恢复自然宽（提交按钮 inline 已是 100%，不受影响） */
            #intlRegMask button,
            #intlEditMask button {
                width: auto;
                min-height: 0;
                margin-bottom: 0;
            }
            #intlRegMask h3 { font-size: 16px; }
        }
