:root {
            --primary: #4a6baf;
            --secondary: #ff6b6b;
            --accent: #4ecdc4;
            --light: #f7f9fc;
            --dark: #2d3748;
            --level1: #4a6baf;
            --level2: #4ecdc4;
            --level3: #ff6b6b;

            --glass-bg: #ffffff;
            --glass-bg-strong: #ffffff;
            --glass-bg-light: #f5f5f5;
            --glass-border: rgba(255, 255, 255, 0.35);
            --glass-border-strong: rgba(255, 255, 255, 0.5);
            --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
            --glass-shadow-hover: 0 12px 42px rgba(0, 0, 0, 0.10);
        }

        .glass {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
        }
        .glass-strong {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
        }
        .glass-light {
            background: var(--glass-bg-light);
            border: 1px solid var(--glass-border);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            overflow-x: hidden;
            color: var(--dark);
            position: relative;
        }

        /* 背景装饰光晕 */
        body::before {
            content: '';
            position: fixed;
            top: -20%;
            left: -8%;
            width: 55%;
            height: 55%;
            background: radial-gradient(circle, rgba(74, 107, 175, 0.18) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
            animation: blobFloat 25s ease-in-out infinite alternate;
        }
        body::after {
            content: '';
            position: fixed;
            bottom: -15%;
            right: -10%;
            width: 50%;
            height: 50%;
            background: radial-gradient(circle, rgba(78, 205, 196, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
            animation: blobFloat 30s ease-in-out infinite alternate-reverse;
        }

        @keyframes blobFloat {
            0% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(5%, 8%) scale(1.05); }
            66% { transform: translate(-3%, -5%) scale(0.95); }
            100% { transform: translate(4%, -3%) scale(1.02); }
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 30px;
        }

        /* 头部样式 */
        header {
            text-align: center;
            padding: 40px 0;
            background: var(--glass-bg-strong);
            border-radius: 20px;
            box-shadow: var(--glass-shadow);
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
            animation: fadeInDown 0.5s ease-out;
            border: 1px solid var(--glass-border-strong);
            transform: translateZ(0);
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
        }

        .class-name {
            font-size: 4.2rem;
            color: var(--primary);
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .class-motto {
            font-size: 1.4rem;
            color: var(--dark);
            font-weight: bold;
            margin-top: 20px;
        }

        /* 高考倒计时样式 */
        .countdown-timer {
            font-size: 1.1rem;
            color: #c0392b;
            margin-top: 12px;
        }

        /* 天气组件样式 */
        .weather-widget {
            margin-top: 20px;
            padding: 12px 25px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50px;
            display: inline-block;
            color: white;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            position: relative;
            overflow: hidden;
        }

        .weather-widget::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: weatherShine 3s infinite;
        }

        @keyframes weatherShine {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }

        .weather-widget:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }

        .weather-widget .weather-icon {
            margin-right: 8px;
            font-size: 1.2rem;
        }

        .weather-widget .weather-temp {
            font-weight: bold;
            font-size: 1.1rem;
            margin-right: 10px;
        }

        .weather-widget .weather-desc {
            font-size: 0.9rem;
            opacity: 0.95;
        }

        .weather-widget .weather-hint {
            font-size: 0.75rem;
            opacity: 0.7;
            margin-left: 8px;
            font-style: italic;
        }

        /* 天气弹窗样式 */
        .weather-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.35);
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }

        .weather-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .weather-modal-content {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 20px;
            padding: 40px;
            max-width: 800px; /* 增加最大宽度 */
            width: 95%;       /* 增加宽度百分比 */
            max-height: 90vh; /* 增加高度 */
            height: 600px;    /* 设置固定高度，让弹窗更长 */
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            position: relative;
        }

        @keyframes slideUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .weather-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }

        .weather-modal-title {
            font-size: 1.8rem;
            color: var(--primary);
            font-weight: bold;
        }

        .weather-modal-close {
            background: #f0f0f0;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s;
            color: var(--dark);
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .weather-modal-close:hover {
            background: var(--secondary);
            color: white;
            transform: rotate(90deg);
        }

        .weather-modal-body {
            display: grid;
            gap: 20px;
        }

        .weather-current {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .weather-current-info {
            flex: 1;
        }

        .weather-current-temp {
            font-size: 3.5rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .weather-current-desc {
            font-size: 1.3rem;
            opacity: 0.95;
        }

        .weather-current-icon {
            font-size: 5rem;
            margin-left: 30px;
        }

        .weather-forecast {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .weather-forecast-item {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            padding: 20px 15px;
            text-align: center;
            transition: all 0.3s;
        }

        .weather-forecast-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
            color: white;
        }

        .weather-forecast-date {
            font-size: 0.9rem;
            color: var(--dark);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .weather-forecast-item:hover .weather-forecast-date {
            color: white;
        }

        .weather-forecast-icon {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .weather-forecast-temp {
            font-size: 1.1rem;
            font-weight: bold;
        }

        .weather-forecast-item:hover .weather-forecast-temp {
            color: white;
        }

        .weather-loading {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px;
            color: var(--dark);
            height: 100%; /* 让加载提示占据整个弹窗高度 */
            min-height: 400px; /* 设置最小高度确保垂直居中效果 */
        }

        .weather-loading i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--primary);
        }

        /* 导航样式 */
        nav {
            display: flex;
            justify-content: center;
            gap: 25px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .nav-btn {
            padding: 18px 35px;
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark);
            box-shadow: var(--glass-shadow);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 220px;
            justify-content: center;
        }

        .nav-btn:hover {
            transform: translateY(-5px);
            box-shadow: var(--glass-shadow-hover);
            background: rgba(255, 255, 255, 0.78);
        }

        .nav-btn.active {
            background: rgba(74, 107, 175, 0.7);
            color: white;
            border-color: rgba(74, 107, 175, 0.4);
            box-shadow: 0 8px 25px rgba(74, 107, 175, 0.25);
        }

        /* 内容区域样式 */
        .content-section {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 20px;
            padding: 40px;
            box-shadow: var(--glass-shadow);
            margin-bottom: 40px;
            min-height: 450px;
            display: none;
            animation: fadeIn 0.4s ease-out;
        }

        .content-section.active {
            display: block;
        }

        .section-title {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light);
        }

        /* 首页缩略图样式 */
        .random-photo {
            width: 240px;
            height: 180px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: opacity 0.4s ease;
            background: #f0f2f5;
            margin: 0 auto 20px;
            display: block;
        }

        /* 星级排行表格样式 */
        .ranking-container {
            margin-top: 25px;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        }

        .ranking-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--glass-bg-strong);
        }

        .ranking-table th {
            background: var(--primary);
            color: white;
            padding: 18px 25px;
            text-align: left;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            position: relative;
        }

        .ranking-table th:hover {
            background: #3a5a9f;
        }

        .ranking-table th i {
            margin-left: 5px;
            font-size: 0.9rem;
        }

        .ranking-table td {
            padding: 18px 25px;
            border-bottom: 1px solid #eee;
        }

        .ranking-table tr:last-child td {
            border-bottom: none;
        }

        .ranking-table tr:hover {
            background: rgba(74, 107, 175, 0.05);
        }

        .ranking-table tr.top-three {
            background: rgba(255, 215, 0, 0.1);
        }

        .ranking-table tr.top-three:nth-child(2) {
            background: rgba(192, 192, 192, 0.1);
        }

        .ranking-table tr.top-three:nth-child(3) {
            background: rgba(205, 127, 50, 0.1);
        }

        .rank {
            font-weight: bold;
            font-size: 1.3rem;
            text-align: center;
            width: 70px;
        }

        .rank-1 {
            color: gold;
        }

        .rank-2 {
            color: silver;
        }

        .rank-3 {
            color: #cd7f32; /* 青铜色 */
        }

        .student-name {
            font-weight: 600;
        }

        /* 班委标记样式 */
        .committee-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            margin-left: 6px;
            font-size: 0.8rem;
            color: #999;
            font-weight: 500;
        }

        .committee-badge i {
            color: #d4a056;
            font-size: 0.75rem;
        }

        .committee-hint {
            text-align: left;
            margin-top: 8px;
            margin-bottom: 20px;
            color: #999;
            font-size: 1.1rem;
            font-style: italic;
            font-weight: 700;
        }

        /* 历史查询控件样式 */
        .history-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            background: linear-gradient(135deg, rgba(74, 107, 175, 0.08) 0%, rgba(108, 150, 180, 0.08) 100%);
            padding: 14px 20px;
            border-radius: 16px;
            border: 2px solid rgba(108, 150, 180, 0.3);
            box-shadow: 0 4px 12px rgba(108, 150, 180, 0.15);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .history-controls:hover {
            background: linear-gradient(135deg, rgba(74, 107, 175, 0.12) 0%, rgba(108, 150, 180, 0.12) 100%);
            border-color: rgba(108, 150, 180, 0.5);
            box-shadow: 0 6px 20px rgba(108, 150, 180, 0.25);
            transform: translateY(-2px);
        }

        .history-controls i {
            color: #6c96b4;
            font-size: 1.2rem;
            filter: drop-shadow(0 2px 4px rgba(108, 150, 180, 0.3));
        }

        .history-controls select {
            border: none;
            outline: none;
            background: transparent;
            font-size: 1rem;
            font-weight: 500;
            color: #2c3e50;
            cursor: pointer;
            padding: 6px 12px;
            min-width: 180px;
            transition: all 0.3s ease;
        }

        .history-controls select:hover {
            color: #6c96b4;
        }

        .history-controls select:focus {
            outline: none;
        }

        .history-controls select option {
            padding: 8px 12px;
            background: white;
            color: #2c3e50;
        }

        .reset-history-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #6c96b4 0%, #8ba4c4 100%);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(108, 150, 180, 0.35);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .reset-history-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .reset-history-btn:hover::before {
            left: 100%;
        }

        .reset-history-btn:hover {
            background: linear-gradient(135deg, #5a7e99 0%, #7a94b4 100%);
            box-shadow: 0 6px 25px rgba(108, 150, 180, 0.45);
            transform: translateY(-2px) scale(1.02);
        }

        .reset-history-btn:active {
            transform: translateY(0) scale(0.98);
        }

        /* 唐浩宸特殊效果 */
        .student-name.legendary {
            font-weight: 900;
            font-size: 1.4rem !important;
            background: linear-gradient(45deg, #FF1744, #FF9800, #FFEB3B, #4CAF50, #2196F3, #9C27B0, #E91E63);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: legendary-glow 2s ease-in-out infinite alternate;
            text-shadow: 0 0 10px rgba(255,23,68,0.8);
            position: relative;
        }

        /* 无限星级显示 */
        .infinite-stars {
            font-weight: 900;
            font-size: 1.2rem;
            background: linear-gradient(45deg, #FF1744, #FF9800, #FFEB3B, #4CAF50, #2196F3, #9C27B0, #E91E63);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: infinite-text 3s linear infinite;
            text-shadow: 0 0 8px rgba(255,23,68,0.8);
            letter-spacing: 2px;
        }

        @keyframes legendary-glow {
            0% {
                filter: brightness(1) hue-rotate(0deg);
                text-shadow: 0 0 10px rgba(255,23,68,0.8);
            }
            25% {
                filter: brightness(1.3) hue-rotate(90deg);
                text-shadow: 0 0 15px rgba(255,152,0,0.9);
            }
            50% {
                filter: brightness(1.2) hue-rotate(180deg);
                text-shadow: 0 0 12px rgba(255,235,59,0.9);
            }
            75% {
                filter: brightness(1.4) hue-rotate(270deg);
                text-shadow: 0 0 18px rgba(76,175,80,0.9);
            }
            100% {
                filter: brightness(1) hue-rotate(360deg);
                text-shadow: 0 0 10px rgba(255,23,68,0.8);
            }
        }

        @keyframes crown-bounce {
            0% { transform: translateY(-50%) translateY(0px); }
            100% { transform: translateY(-50%) translateY(-3px); }
        }

        @keyframes infinite-text {
            0% {
                background-position: 0% 50%;
                transform: scale(1);
            }
            50% {
                background-position: 100% 50%;
                transform: scale(1.05);
            }
            100% {
                background-position: 0% 50%;
                transform: scale(1);
            }
        }

        .stars-container {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .star {
            color: gold;
            font-size: 1.3rem;
        }

        .star.small {
            font-size: 1.05rem;
        }

        /* 合成星（每10颗普通星合成一颗更显眼的星） */
        .star.star-ten {
            color: #ffda6a;
            font-size: 2.5rem;
            transform: translateY(-3px);
            text-shadow: 0 8px 25px rgba(255,215,0,0.3), 0 0 10px rgba(255,240,150,0.7);
            transition: transform 0.18s;
        }
        .star.star-ten:hover { transform: translateY(-4px) scale(1.06); }

        /* 破裂星（负星）样式 */
        .star.broken {
            color: #ff6b6b;
            font-size: 1.3rem;
        }

        /* 负星版本的10星合成星 */
        .star.star-ten.broken {
            font-size: 2.5rem !important;
            transform: translateY(-3px) !important;
            color: #ff6b6b !important;
            -webkit-text-fill-color: #ff6b6b !important;
            animation: none !important;
        }

        .star-ten-more {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 6px;
            background: linear-gradient(90deg,#ffd166,#ff9a66);
            color: #5a2b00;
            padding: 2px 8px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: 0 8px 18px rgba(255,160,60,0.12);
        }

        /* 超级合成星（每50颗星合成一颗独特的超级星） */
        .star.star-fifty {
            font-size: 3rem !important;
            transform: translateY(-5px) !important;
            background: linear-gradient(124deg,
                #FF6B6B 0%,
                #4ECDC4 12%,
                #45B7D1 24%,
                #96CEB4 36%,
                #FFEAA7 48%,
                #DDA5E9 60%,
                #FF8CC8 72%,
                #82D8D8 84%,
                #FFD93D 96%,
                #FF6B6B 100%);
            background-size: 600% 600%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: elegant-rainbow 8s ease-in-out infinite !important;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            position: relative;
            filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.3));
            z-index: 2;
        }

        .star.star-fifty:hover {
            transform: translateY(-8px) scale(1.12) !important;
            filter: drop-shadow(0 0 35px rgba(147, 51, 234, 0.6));
        }

        /* 负星版本的50星超级星 */
        .star.star-fifty.broken {
            font-size: 3rem !important;
            transform: translateY(-5px) !important;
            color: #ff6b6b !important;
            -webkit-text-fill-color: #ff6b6b !important;
            animation: none !important;
            background: none !important;
            filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.5)) !important;
        }

        /* 50星以上的更多显示 */
        .star-fifty-more {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 18px;
            background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA5E9);
            background-size: 300% 300%;
            color: #fff;
            padding: 6px 14px;
            border-radius: 20px;
            font-weight: 800;
            font-size: 1.1rem;
            box-shadow: 0 10px 30px rgba(255,107,107,0.3),
                        0 0 20px rgba(78,205,196,0.4);
            animation: rainbow-bg 4s ease-in-out infinite;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            z-index: 10;
            position: relative;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .star-fifty-more:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 12px 35px rgba(255,107,107,0.4),
                        0 0 25px rgba(78,205,196,0.5);
        }

        /* 动画定义 */
        @keyframes rainbow-pulse {
            0%,100% { background:linear-gradient(45deg,#FFD700,#FFA500,#FF69B4,#00CED1,#32CD32); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
            25% { background:linear-gradient(45deg,#FFA500,#FF69B4,#00CED1,#32CD32,#FFD700); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
            50% { background:linear-gradient(45deg,#FF69B4,#00CED1,#32CD32,#FFD700,#FFA500); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
            75% { background:linear-gradient(45deg,#00CED1,#32CD32,#FFD700,#FFA500,#FF69B4); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
        }

        @keyframes rainbow-border {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes elegant-rainbow {
            0% { background-position:0% 50%; filter:drop-shadow(0 0 20px rgba(147,51,234,.3)); }
            25% { background-position:100% 25%; filter:drop-shadow(0 0 25px rgba(236,72,153,.4)); }
            50% { background-position:100% 75%; filter:drop-shadow(0 0 30px rgba(59,130,246,.5)); }
            75% { background-position:0% 100%; filter:drop-shadow(0 0 25px rgba(16,185,129,.4)); }
            100% { background-position:0% 50%; filter:drop-shadow(0 0 20px rgba(147,51,234,.3)); }
        }

        @keyframes rainbow-bg {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .progress-bar {
            height: 12px;
            background: #f0f0f0;
            border-radius: 6px;
            overflow: hidden;
            margin-top: 8px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ffd700, #ffec8b);
            border-radius: 6px;
        }

        /* 搜索和筛选 */
        .ranking-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 50px;
            padding: 12px 25px;
            box-shadow: var(--glass-shadow);
            flex: 1;
            max-width: 450px;
        }

        .search-box input {
            border: none;
            outline: none;
            padding: 10px 20px;
            font-size: 1.1rem;
            width: 100%;
            background: transparent;
        }

        .search-box i {
            color: #666;
        }

        /* 历史星级查询控件样式 */
        .history-controls-wrapper {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .history-controls {
            display: flex;
            align-items: center;
            background: var(--glass-bg-strong);
            border: 2px solid rgba(108, 150, 180, 0.3);
            border-radius: 50px;
            padding: 10px 20px;
            box-shadow: var(--glass-shadow);
            transition: all 0.3s ease;
            gap: 10px;
        }

        .history-controls:hover {
            border-color: rgba(108, 150, 180, 0.6);
            box-shadow: 0 6px 20px rgba(108, 150, 180, 0.25);
            transform: translateY(-2px);
        }

        .history-controls i {
            color: #6c96b4;
            font-size: 1.1rem;
        }

        .history-controls select {
            border: none;
            outline: none;
            background: transparent;
            font-size: 1rem;
            color: #333;
            cursor: pointer;
            padding: 5px 10px;
            min-width: 150px;
        }

        .history-controls select:focus {
            outline: none;
        }

        .reset-history-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #6c96b4 0%, #8ba4c4 100%);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 10px 20px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(108, 150, 180, 0.3);
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        .reset-history-btn:hover {
            background: linear-gradient(135deg, #5a7e99 0%, #7a94b4 100%);
            box-shadow: 0 6px 20px rgba(108, 150, 180, 0.4);
            transform: translateY(-2px);
        }

        .reset-history-btn:active {
            transform: translateY(0);
        }

        .reset-history-btn i {
            font-size: 1rem;
        }

        /* 理想大学样式 */
        .university-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }

        .university-card {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--glass-shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            overflow: hidden;
        }

        .university-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--glass-shadow-hover);
        }

        .university-student-name {
            font-weight: bold;
            font-size: 1.3rem;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .university-name {
            font-size: 1.2rem;
            color: var(--dark);
        }

        /* 管理员登录样式 */
        .admin-login {
            position: fixed;
            top: 25px;
            right: 25px;
            z-index: 1000;
        }

        .admin-btn {
            background: var(--secondary);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 25px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            min-width: 140px;
        }

        .admin-btn:hover {
            transform: scale(1.05);
        }

        .login-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.35);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s;
        }

        .login-form {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            padding: 35px;
            border-radius: 20px;
            box-shadow: var(--glass-shadow);
            width: 90%;
            max-width: 450px;
            animation: slideInUp 0.5s;
            position: relative;
        }

        .login-form::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .form-group input {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-size: 1.1rem;
        }

        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }

        .form-btn {
            padding: 12px 25px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .form-btn.primary {
            background: var(--primary);
            color: white;
        }

        /* 管理员级别指示器 */
        .admin-level {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: bold;
            color: white;
        }

        .level-1 {
            background: var(--level1);
        }

        .level-2 {
            background: var(--level2);
        }

        .level-3 {
            background: var(--level3);
        }

        /* 星级管理样式 */
        .star-management {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 30px;
            margin-top: 25px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 25px;
        }

        .star-category {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--glass-shadow);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .category-title {
            font-size: 1.4rem;
            color: var(--primary);
            margin-bottom: 20px;
            text-align: center;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(0,0,0,0.1);
        }

        .student-list {
            flex: 1;
            max-height: 350px;
            overflow-y: auto;
            margin-bottom: 20px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 10px;
        }

        .student-item {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .student-item:hover {
            background: rgba(74, 107, 175, 0.05);
        }

        .student-item.selected {
            background: rgba(74, 107, 175, 0.15);
            border-left: 4px solid var(--primary);
        }

        .student-name-container {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .student-info {
            font-weight: 600;
            color: var(--dark);
            font-size: 1.1rem;
            color: #333 !important;
        }

        .student-count {
            font-size: 0.9rem;
            color: #666;
            background: #f0f0f0;
            padding: 4px 10px;
            border-radius: 10px;
        }

        .selected-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 25px;
            height: 25px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            font-size: 0.9rem;
            margin-right: 10px;
        }

        .action-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 15px 20px;
            cursor: pointer;
            font-weight: 600;
            width: 100%;
            transition: background 0.3s;
            font-size: 1.1rem;
        }

        .action-btn:hover {
            background: #3a5a9f;
        }

        .deduct-btn {
            background: var(--secondary);
        }

        .deduct-btn:hover {
            background: #e55a5a;
        }

        .selection-info {
            font-size: 1rem;
            color: #666;
            margin-bottom: 15px;
            text-align: center;
        }

        /* 班级事件样式 */
        .events-container {
            margin-top: 25px;
        }

        .events-filter {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .events-filter select {
            padding: 12px 18px;
            border: 1px solid #ddd;
            border-radius: 10px;
            background: white;
            font-size: 1.1rem;
            min-width: 180px;
        }

        .events-content {
            background: var(--light);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            max-height: 600px;
            overflow-y: auto;
        }

        .event-entry {
            margin-bottom: 30px;
            padding-bottom: 25px;
            border-bottom: 1px solid #e0e0e0;
        }

        .event-entry:last-child {
            margin-bottom: 0;
            border-bottom: none;
        }

        .event-date {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .event-date::before {
            content: '';
            display: block;
            width: 10px;
            height: 10px;
            background: var(--primary);
            border-radius: 50%;
        }

        .event-text {
            line-height: 1.6;
            color: var(--dark);
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--glass-shadow);
        }

        .event-actions {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 15px;
        }

        .event-action-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 18px;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.3s;
        }

        .event-action-btn:hover {
            background: #3a5a9f;
        }

        .event-action-btn.delete {
            background: var(--secondary);
        }

        .event-action-btn.delete:hover {
            background: #e55a5a;
        }

        .event-add-btn {
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 15px 25px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 25px;
        }

        .event-add-btn:hover {
            background: #3db8af;
        }

        .event-editor {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 25px;
            box-shadow: var(--glass-shadow);
            margin-top: 25px;
            display: none;
        }

        .event-editor.active {
            display: block;
        }

        .editor-actions {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
            margin-top: 20px;
        }

        .editor-textarea {
            width: 100%;
            min-height: 180px;
            padding: 18px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-size: 1.1rem;
            line-height: 1.5;
            resize: vertical;
            font-family: inherit;
        }

        .no-events, .no-logs {
            text-align: center;
            padding: 50px 25px;
            color: #666;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
        }

        .no-events i {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: #ccc;
        }

        .events-admin-only {
            display: none;
        }

        /* ===== 评优惩过 ===== */
        .honor-modal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 6000;
            justify-content: center;
            align-items: center;
            padding: 25px;
        }
        .honor-modal.active { display: flex; }
        .honor-modal-content {
            background: white;
            border-radius: 20px;
            width: 100%;
            max-width: 500px;
            box-shadow: 0 25px 60px rgba(0,0,0,0.3);
            overflow: hidden;
            animation: slideInUp 0.3s ease;
        }
        .honor-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 1px solid #eee;
        }
        .honor-modal-header h3 { margin: 0; font-size: 1.3rem; color: var(--dark); }
        .honor-modal-body {
            padding: 25px;
            max-height: 60vh;
            overflow-y: auto;
        }
        .honor-modal-footer {
            padding: 18px 25px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }
        .upload-img-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: linear-gradient(135deg, #6366f1, #818cf8);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 14px rgba(99,102,241,0.3);
        }
        .upload-img-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(99,102,241,0.4);
        }
        .honor-content {
            min-height: 200px;
        }
        .honor-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        .honor-card {
            background: rgba(255,255,255,0.96);
            border: 1px solid rgba(74,107,175,0.10);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 12px 35px rgba(40,70,130,0.06);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
        }
        .honor-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 50px rgba(40,70,130,0.12);
        }
        .honor-image {
            width: 100%;
            max-height: 220px;
            overflow: hidden;
            background: #f0f2f5;
            border-radius: 12px;
            margin-bottom: 16px;
            position: relative;
            min-height: 160px;
        }
        .honor-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: opacity 0.4s ease;
        }
        .honor-image img.honor-lazy-img {
            opacity: 0;
        }
        .honor-img-placeholder {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c0c8d4;
            font-size: 2rem;
            pointer-events: none;
            z-index: 0;
        }
        /* 灯箱加载状态 */
        #honorLbImg {
            transition: opacity 0.3s ease;
        }
        .honor-body {
            padding: 20px 22px;
        }
        .honor-caption {
            font-size: 1.15rem;
            color: var(--dark);
            line-height: 1.8;
            word-break: break-all;
            font-weight: 500;
        }
        .honor-date {
            font-size: 0.9rem;
            color: #8896ab;
            margin-top: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .honor-del {
            position: absolute;
            top: 10px;
            right: 10px;
        }
        .honor-del button {
            width: 30px; height: 30px;
            border-radius: 50%;
            border: none;
            background: rgba(255,255,255,0.9);
            color: #cc3333;
            cursor: pointer;
            font-size: 0.85rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            transition: all 0.2s;
        }
        .honor-del button:hover { background: #ff4444; color: white; }
        .honor-empty {
            text-align: center;
            padding: 60px 20px;
            color: #b0bcc8;
        }
        .honor-empty i { font-size: 3.5rem; color: #d0d8e0; margin-bottom: 18px; display: block; }
        .honor-empty h3 { color: #8a96a6; margin-bottom: 8px; }
        .honor-empty p { color: #a8b4c4; font-size: 0.95rem; }

        /* 评优惩过 全屏查看 */
        #honorLightbox {
            display: none;
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 10000;
            justify-content: center; align-items: center;
        }
        #honorLightbox.active { display: flex; }
        #honorLbImg {
            max-width: 95vw; max-height: 95vh;
            object-fit: contain;
            cursor: zoom-in;
            transition: transform 0.3s;
        }
        #honorLbImg.zoomed { transform: scale(2); cursor: zoom-out; }
        #honorLbClose {
            position: absolute; top: 20px; right: 30px;
            background: none; border: none; color: white; font-size: 2.5rem;
            cursor: pointer; z-index: 10001;
        }

        /* 相册样式 */
        .gallery-container {
            margin-top: 15px;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
        }

        .gallery-item {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--glass-shadow);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .gallery-item img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease, opacity 0.4s ease;
            position: relative;
            z-index: 1;
        }
        .gallery-item img.gallery-lazy-img {
            opacity: 0;
        }
        .gallery-placeholder {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c0c8d4;
            font-size: 1.5rem;
            z-index: 0;
        }

        .gallery-item:hover img {
            transform: scale(1.03);
        }

        /* Lightbox */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            padding: 25px;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-content {
            max-width: 95%;
            max-height: 95%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lightbox img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 8px;
            box-shadow: 0 12px 45px rgba(0,0,0,0.5);
            transition: opacity 0.3s ease;
        }

        .lightbox .btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.1);
            color: #fff;
            border: none;
            font-size: 1.8rem;
            padding: 12px 16px;
            border-radius: 8px;
            cursor: pointer;
        }

        .lightbox .prev { left: 15px; }
        .lightbox .next { right: 15px; }

        .lightbox .close {
            top: 15px;
            right: 15px;
            transform: none;
            font-size: 1.4rem;
        }

        /* 挑战目标样式 */
        .challenge-container {
            margin-top: 25px;
        }

        .section-header {
            display: grid;
            grid-template-columns: 1.5fr 0.8fr;
            gap: 24px;
            align-items: start;
            margin-bottom: 20px;
        }

        .challenge-header {
            padding: 24px;
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.78);
            box-shadow: 0 20px 50px rgba(33, 56, 110, 0.08);
        }

        .section-desc {
            max-width: 680px;
            color: #55647b;
            font-size: 1rem;
            line-height: 1.8;
            margin-top: 12px;
        }

        .challenge-summary {
            min-height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 12px;
            padding: 28px 24px;
            border-radius: 24px;
            background: linear-gradient(180deg, rgba(236, 243, 255, 0.95), #ffffff);
            border: 1px solid rgba(74, 107, 175, 0.14);
            box-shadow: 0 20px 40px rgba(74, 107, 175, 0.08);
        }

        .summary-top {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--primary);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .summary-stat {
            font-size: 0.95rem;
            color: #42506c;
            font-weight: 600;
        }

        .summary-value {
            font-size: 2.4rem;
            color: var(--dark);
            font-weight: 800;
            letter-spacing: -0.03em;
        }

        .summary-tips {
            color: #677a98;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .challenge-search-wrap {
            margin: 30px 0 10px;
        }

        .challenge-grid {
            margin-top: 25px;
        }

        /* ===== PK 目标总览卡片 ===== */
        .pk-overview {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }
        .pk-overview-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,250,255,0.96) 100%);
            border: 1px solid rgba(74,107,175,0.10);
            border-radius: 20px;
            padding: 24px 28px;
            display: flex;
            align-items: center;
            gap: 18px;
            box-shadow: 0 12px 35px rgba(40,70,130,0.06);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .pk-overview-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 50px rgba(40,70,130,0.12);
        }
        .pk-overview-icon {
            width: 56px; height: 56px;
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.4rem;
            color: white;
            flex-shrink: 0;
        }
        .pk-overview-total .pk-overview-icon { background: linear-gradient(135deg, #4a6baf, #6b8fd4); }
        .pk-overview-set .pk-overview-icon { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
        .pk-overview-pending .pk-overview-icon { background: linear-gradient(135deg, #f7b733, #fc9c34); }
        .pk-overview-info { display: flex; flex-direction: column; }
        .pk-overview-value { font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; letter-spacing: -0.02em; }
        .pk-overview-label { font-size: 0.88rem; color: #677a98; font-weight: 600; margin-top: 6px; }

        /* ===== PK 表格容器 ===== */
        .pk-table-wrapper {
            background: rgba(255,255,255,0.96);
            border: 1px solid rgba(74,107,175,0.10);
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 18px 45px rgba(40,70,130,0.06);
        }
        .pk-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
        }

        /* 表头 */
        .pk-table thead th {
            background: linear-gradient(180deg, #f0f4fb 0%, #e8eef8 100%);
            padding: 18px 14px;
            font-weight: 700;
            font-size: 0.92rem;
            color: var(--primary);
            text-align: center;
            white-space: nowrap;
            position: sticky;
            top: 0;
            z-index: 2;
            letter-spacing: 0.03em;
            border-bottom: 2px solid rgba(74,107,175,0.15);
        }
        .pk-table thead th.pk-th-name {
            text-align: left;
            padding-left: 28px;
            min-width: 120px;
        }
        .pk-th-total { min-width: 90px; background: linear-gradient(180deg, #fff5e6 0%, #ffefcc 100%) !important; color: #c47f00 !important; }
        .pk-th-goal { min-width: 220px; background: linear-gradient(180deg, #e6f7f5 0%, #ccf0ec 100%) !important; color: #0891a0 !important; }

        /* 数据行 */
        .pk-table tbody tr {
            transition: all 0.25s ease;
            animation: pkRowFadeIn 0.4s ease backwards;
            animation-delay: calc(var(--row-idx) * 0.02s);
        }
        @keyframes pkRowFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .pk-table tbody tr:hover {
            background: linear-gradient(90deg, rgba(74,107,175,0.04), rgba(78,205,196,0.04));
            box-shadow: inset 0 0 0 2px rgba(74,107,175,0.08);
        }
        .pk-row-has-goal { border-bottom: 1px solid rgba(240,244,251,0.8); }
        .pk-row-empty { border-bottom: 1px solid rgba(245,245,247,0.8); background: rgba(250,250,252,0.3); }

        /* 姓名列 */
        .pk-td-name {
            padding: 14px 20px 14px 28px;
            text-align: left;
            vertical-align: middle;
        }
        .pk-name-avatar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 38px; height: 38px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            font-weight: 800;
            font-size: 1rem;
            margin-right: 12px;
            vertical-align: middle;
            box-shadow: 0 4px 12px rgba(74,107,175,0.25);
        }
        .pk-name-text {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--dark);
            vertical-align: middle;
        }

        /* 分数列 */
        .pk-td-score {
            text-align: center;
            padding: 14px 8px;
            font-size: 0.95rem;
            color: #8896ab;
            font-weight: 500;
            vertical-align: middle;
            transition: all 0.2s ease;
        }
        .pk-score-set {
            color: var(--dark);
            font-weight: 700;
            background: radial-gradient(circle at center, rgba(74,107,175,0.06), transparent 70%);
            border-radius: 8px;
        }
        /* 总分列 */
        .pk-td-total {
            text-align: center;
            padding: 14px 8px;
            font-size: 1.05rem;
            color: #b8860b;
            font-weight: 500;
            vertical-align: middle;
        }
        .pk-total-set strong {
            color: #d4940a;
            font-size: 1.15rem;
        }
        /* 目标列 */
        .pk-td-goal {
            text-align: center;
            padding: 14px 12px;
            vertical-align: middle;
        }
        .pk-goal-tag {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(78,205,196,0.12), rgba(68,160,141,0.10));
            color: #0891a0;
            font-size: 0.85rem;
            font-weight: 700;
            white-space: normal;
            word-break: break-all;
            line-height: 1.4;
        }
        .pk-goal-empty {
            color: #c0c8d4;
            font-style: italic;
            font-size: 0.88rem;
        }

        /* 空状态 */
        .pk-empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #b0bcc8;
        }
        .pk-empty-state i {
            font-size: 3.5rem;
            color: #d0d8e0;
            margin-bottom: 18px;
            display: block;
        }
        .pk-empty-state h3 { color: #8a96a6; margin-bottom: 8px; }
        .pk-empty-state p { color: #a8b4c4; font-size: 0.95rem; }

        /* 响应式 - 小屏时表格横向滚动 */
        @media (max-width: 1100px) {
            .pk-table-wrapper { overflow-x: auto; }
            .pk-table { min-width: 1100px; }
        }

        /* 挑战目标卡片选择器样式 */
        .challenge-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.35);
            z-index: 5000;
            justify-content: center;
            align-items: center;
            padding: 25px;
            animation: fadeIn 0.3s;
        }

        .challenge-modal.active {
            display: flex;
        }

        .challenge-modal-content {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 20px;
            width: 100%;
            max-width: 950px;
            height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: var(--glass-shadow);
            animation: slideInUp 0.4s;
            overflow: hidden;
        }

        .challenge-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .challenge-modal-header h3 {
            margin: 0;
            font-size: 1.5rem;
            color: var(--primary);
        }

        .challenge-modal-close {
            background: none;
            border: none;
            font-size: 2.2rem;
            color: #666;
            cursor: pointer;
            line-height: 1;
            padding: 0 6px;
        }

        .challenge-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            background: var(--glass-bg);
        }

        .challenge-search-container {
            margin-bottom: 25px;
        }

        .challenge-selection-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
        }

        .challenge-target-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 35px rgba(0,0,0,0.1),
                       inset 0 0 10px rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .challenge-target-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
        }

        .challenge-target-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 45px rgba(0,0,0,0.15);
        }

        .challenge-target-card.selected {
            border-color: var(--primary);
            background: rgba(74, 107, 175, 0.05);
        }

        .challenge-target-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .challenge-target-name {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 15px;
        }

        .challenge-target-info {
            font-size: 1rem;
            color: #666;
            line-height: 1.4;
        }

        .challenge-modal-footer {
            padding: 20px 30px;
            border-top: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--glass-bg-strong);
        }

        #challengeSelectionInfo {
            font-weight: 600;
            color: var(--primary);
            background: white;
            padding: 10px 18px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        /* 自定义消息提示窗口样式 */
        .custom-alert {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s;
        }

        .custom-alert.active {
            display: flex;
        }

        .alert-content {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: 20px;
            padding: 35px;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 450px;
            text-align: center;
            animation: slideInUp 0.4s;
            position: relative;
        }

        .alert-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 20px 20px 0 0;
        }

        .alert-icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }

        .alert-icon.success {
            color: #4ecdc4;
        }

        .alert-icon.warning {
            color: #ff6b6b;
        }

        .alert-icon.info {
            color: #4a6baf;
        }

        .alert-message {
            font-size: 1.2rem;
            margin-bottom: 30px;
            line-height: 1.8;
            color: var(--dark);
            white-space: pre-wrap;
            word-break: break-all;
            max-height: 50vh;
            overflow-y: auto;
        }

        .alert-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
        }

        .alert-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            min-width: 120px;
        }

        .alert-btn.confirm {
            background: var(--primary);
            color: white;
        }

        .alert-btn.confirm:hover {
            background: #3a5a9f;
            transform: translateY(-2px);
        }

        .alert-btn.cancel {
            background: #e0e0e0;
            color: var(--dark);
        }

        .alert-btn.cancel:hover {
            background: #d0d0d0;
            transform: translateY(-2px);
        }

        /* 单按钮情况下的样式 */
        .alert-buttons.single {
            justify-content: center;
        }

        .alert-buttons.single .alert-btn {
            min-width: 140px;
        }

        /* 自定义输入弹窗样式 */
        .alert-input-container {
            width: 100%;
            margin-bottom: 25px;
        }

        .alert-input-container input {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid #e8ecf1;
            border-radius: 12px;
            font-size: 1rem;
            color: var(--dark);
            background: #f7f9fc;
            transition: all 0.3s ease;
            outline: none;
            box-sizing: border-box;
        }

        .alert-input-container input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(74, 107, 175, 0.15);
        }

        .alert-input-container input::placeholder {
            color: #aab4c2;
        }

        .alert-content.has-input .alert-icon {
            font-size: 2.8rem;
            margin-bottom: 15px;
        }

        .alert-content.has-input .alert-message {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        /* 加载提示样式 */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            font-size: 1.6rem;
            color: var(--primary);
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 6px solid #f3f3f3;
            border-top: 6px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 25px;
        }

        /* 日志查看模态框样式 */
        .log-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.35);
            z-index: 4000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s;
            padding: 25px;
        }

        .log-modal.active {
            display: flex;
        }

        .log-content {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 20px;
            width: 95%;
            max-width: 950px;
            height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
            animation: slideInUp 0.4s;
            overflow: hidden;
        }

        .log-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px 30px;
            background: linear-gradient(90deg, var(--primary), #3a5a9f);
            color: white;
        }

        .log-header h2 {
            margin: 0;
            font-size: 1.6rem;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .log-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }

        .log-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .log-controls {
            display: flex;
            padding: 20px 30px;
            gap: 20px;
            align-items: center;
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            flex-wrap: wrap;
        }

        .log-controls .search-box {
            flex: 1;
            max-width: 350px;
            margin: 0;
        }

        .log-action-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 18px;
            cursor: pointer;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.3s;
        }

        .log-action-btn:hover {
            background: #3a5a9f;
        }

        .log-action-btn.delete {
            background: var(--secondary);
        }

        .log-action-btn.delete:hover {
            background: #e55a5a;
        }

        .log-info {
            padding: 12px 30px;
            background: #e9f7fe;
            border-bottom: 1px solid #bee5eb;
            color: #0c5460;
            font-size: 1rem;
        }

        .log-container {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .log-entries {
            flex: 1;
            overflow-y: auto;
            padding: 0;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.4;
            height: 100%;
            position: relative;
        }

        .log-entry {
            padding: 12px 30px;
            border-bottom: 1px solid #f1f1f1;
            transition: background 0.2s;
            display: flex;
            flex-direction: column;
        }

        .log-entry:hover {
            background: #f8f9fa;
        }

        .log-entry.highlight {
            background: #fff3cd;
        }

        .log-time {
            color: #6c757d;
            font-size: 0.85rem;
            margin-bottom: 4px;
        }

        .log-message {
            color: #212529;
        }

        .log-entry.info .log-message {
            color: #0c5460;
        }

        .log-entry.warning .log-message {
            color: #856404;
        }

        .log-entry.error .log-message {
            color: #721c24;
        }

        .log-entry.success .log-message {
            color: #155724;
        }

        .no-logs {
            text-align: center;
            padding: 50px 25px;
            color: #6c757d;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .no-logs i {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: #dee2e6;
        }

        /* 日志分页样式 */
        .log-pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 30px;
            border-top: 1px solid #f1f1f1;
            background: #f8f9fa;
            font-size: 0.9rem;
            color: #6c757d;
        }

        .pagination-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .pagination-btn {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 15px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .pagination-btn:hover:not(:disabled) {
            background: #3a5a9f;
        }

        .pagination-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .page-info {
            font-weight: 600;
            color: var(--dark);
        }

        /* 终极管理员特殊功能按钮 */
        .ultimate-admin-features {
            display: none;
            margin-top: 40px;
            text-align: center;
        }

        .ultimate-admin-features.active {
            display: block;
        }

        .ultimate-btn {
            background: var(--level3);
            color: white;
            border: none;
            border-radius: 10px;
            padding: 15px 25px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin: 8px;
        }

        .ultimate-btn:hover {
            background: #e55a5a;
        }

        /* 学生选择模态框样式 */
        .student-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 5000;
            justify-content: center;
            align-items: center;
            padding: 25px;
            animation: fadeIn 0.3s;
        }

        .student-modal.active {
            display: flex;
        }

        .student-modal-content {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 20px;
            width: 100%;
            max-width: 950px;
            height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
            animation: slideInUp 0.4s;
            overflow: hidden;
        }

        .student-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            border-bottom: 1px solid #e9ecef;
        }

        .student-modal-header h3 {
            margin: 0;
            font-size: 1.5rem;
            color: var(--primary);
        }

        .student-modal-close {
            background: none;
            border: none;
            font-size: 2.2rem;
            color: #666;
            cursor: pointer;
            line-height: 1;
            padding: 0 6px;
        }

        .student-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 25px;
            background: white;
        }

        .student-search-container {
            margin-bottom: 25px;
        }

        .alphabet-index-container {
            margin: 15px 0;
        }

        .alphabet-index {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
        }

        .alphabet-letter {
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            color: #475569;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            padding: 6px 10px;
            transition: all 0.2s;
            min-width: 36px;
            text-align: center;
        }

        .alphabet-letter:hover {
            background: #e2e8f0;
            border-color: #94a3b8;
            color: #334155;
        }

        .alphabet-letter.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .student-selection-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
        }

        .letter-group-header {
            grid-column: 1 / -1;
            padding: 15px 0;
            border-bottom: 2px solid #e2e8f0;
            margin-bottom: 15px;
        }

        .letter-label {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .letter-label i {
            font-size: 1rem;
            color: #94a3b8;
        }

        .student-group-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
            grid-column: 1 / -1;
            margin-bottom: 25px;
        }

        .student-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid rgba(255, 255, 255, 0.9);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 35px rgba(0,0,0,0.1),
                       inset 0 0 10px rgba(255, 255, 255, 0.8);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .student-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
        }

        .student-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 45px rgba(0,0,0,0.15);
        }

        .student-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        }

        .student-card.selected {
            border-color: var(--primary);
            background: rgba(74, 107, 175, 0.05);
        }

        .student-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .student-card-name {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 15px;
        }

        .student-card-info {
            font-size: 1rem;
            color: #666;
            line-height: 1.4;
        }
        .student-stars-display {
            font-size: 1rem;
            font-weight: 600;
            color: #495670;
        }
        .stars-value {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--primary);
        }
        .student-star-btns {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 14px;
        }
        .star-btn {
            width: 30px; height: 30px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.2s ease;
            outline: none;
            flex-shrink: 0;
        }
        .star-btn svg { pointer-events: none; }
        .star-btn-plus {
            background: linear-gradient(135deg, #4ecdc4, #44b0a8);
            color: white;
            box-shadow: 0 2px 8px rgba(78,205,196,0.3);
        }
        .star-btn-plus:hover {
            background: linear-gradient(135deg, #3dbdb5, #399e97);
            box-shadow: 0 4px 14px rgba(78,205,196,0.45);
            transform: translateY(-1px);
        }
        .star-btn-minus {
            background: linear-gradient(135deg, #ff6b6b, #e55a5a);
            color: white;
            box-shadow: 0 2px 8px rgba(255,107,107,0.3);
        }
        .star-btn-minus:hover {
            background: linear-gradient(135deg, #e55a5a, #cc4f4f);
            box-shadow: 0 4px 14px rgba(255,107,107,0.45);
            transform: translateY(-1px);
        }
        .star-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
        }
        .star-num-input {
            width: 44px; height: 30px;
            text-align: center;
            font-size: 0.95rem;
            font-weight: 700;
            border: 1.5px solid #e0e5ec;
            border-radius: 8px;
            outline: none;
            color: var(--dark);
            background: #f8f9fb;
            transition: all 0.2s;
            -moz-appearance: textfield;
        }
        .star-num-input::-webkit-inner-spin-button,
        .star-num-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .star-num-input:focus {
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 3px rgba(74,107,175,0.1);
        }

        .student-modal-footer {
            padding: 20px 30px;
            border-top: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--glass-bg-strong);
        }

        #studentSelectionInfo {
            font-weight: 600;
            color: var(--primary);
            background: white;
            padding: 10px 18px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        /* 控制台/终端样式 */
        .console-container {
            margin-top: 25px;
            background: #1e1e1e;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
            font-family: 'Courier New', monospace;
        }

        .console-header {
            background: #2d2d2d;
            color: #fff;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid #444;
        }

        .console-title {
            font-weight: 600;
            font-size: 1.1rem;
        }

        .console-controls {
            display: flex;
            gap: 8px;
            margin-left: auto;
        }

        .console-control {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            cursor: pointer;
        }

        .console-close {
            background: #ff5f56;
        }

        .console-minimize {
            background: #ffbd2e;
        }

        .console-maximize {
            background: #27ca3f;
        }

        .console-body {
            padding: 20px;
            color: #00ff00;
            font-size: 1rem;
            line-height: 1.4;
            max-height: 500px;
            overflow-y: auto;
            background: #000;
        }

        .console-output {
            margin-bottom: 15px;
            white-space: pre-wrap;
        }

        .console-input-line {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .console-prompt {
            color: #00ff00;
            font-weight: bold;
        }

        .console-input {
            background: transparent;
            border: none;
            color: #00ff00;
            font-family: 'Courier New', monospace;
            font-size: 1rem;
            width: 100%;
            outline: none;
            caret-color: #00ff00;
        }

        .console-command {
            color: #00ff00;
            margin-bottom: 5px;
        }

        .console-response {
            color: #cccccc;
            margin-bottom: 15px;
        }

        .console-error {
            color: #ff6b6b;
        }

        .console-success {
            color: #4ecdc4;
        }

        .console-info {
            color: #4a6baf;
        }

        .console-warning {
            color: #f59e0b;
        }

        /* 全选复选框（方格效果） */
        .select-all-container {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 15px;
            align-items: center;
        }

        .select-all-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
            font-size: 0.95rem;
            color: var(--dark);
            background: transparent;
            padding: 6px 10px;
            border-radius: 8px;
        }

        .select-all-label input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(0,0,0,0.12);
            border-radius: 4px;
            background: white;
            display: inline-block;
            position: relative;
            transition: all 0.15s ease-in-out;
        }

        .select-all-label input[type="checkbox"]:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .select-all-label input[type="checkbox"]:checked {
            background: var(--accent);
            border-color: var(--accent);
        }

        .select-all-label input[type="checkbox"]:checked::after {
            content: '\2713';
            position: absolute;
            left: 2px;
            top: -2px;
            font-size: 18px;
            color: white;
            font-weight: 700;
        }

        .select-all-label .select-all-text {
            color: var(--dark);
            font-weight: 600;
        }

        /* 原因输入框样式 */
        .reason-input-container {
            margin-bottom: 20px;
        }

        .reason-input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-size: 1rem;
            font-family: inherit;
        }

        .reason-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
        }

        /* 关于班级内容样式 */
        .about-content {
            padding: 20px;
            color: #666;
            font-size: 1.1rem;
            line-height: 1.7;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            text-align: left;
        }

        /* 切换按钮样式 */
        .about-toggle-btn {
            background: var(--glass-bg-strong);
            border: 1px solid var(--glass-border-strong);
            border-radius: 50px;
            padding: 12px 25px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--dark);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
        }

        .about-toggle-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .about-toggle-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 8px 25px rgba(74, 107, 175, 0.3);
        }

        .about-toggle-btn i {
            font-size: 1rem;
        }

        .about-section {
            margin-bottom: 35px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 10px;
            border-left: 4px solid var(--primary);
        }

        .about-title {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 15px;
            text-align: center;
        }

        .about-subtitle {
            font-size: 1.4rem;
            color: var(--dark);
            margin: 25px 0 15px 0;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--light);
        }

        .about-question {
            font-size: 1.3rem;
            color: var(--primary);
            margin: 20px 0 10px 0;
            font-weight: 600;
        }

        .about-answer {
            margin-bottom: 15px;
            padding-left: 10px;
            border-left: 3px solid var(--accent);
            padding-left: 15px;
        }

        .about-list {
            margin: 10px 0;
            padding-left: 25px;
        }

        .about-list li {
            margin-bottom: 8px;
            position: relative;
        }

        .about-list li::before {
            content: "•";
            color: var(--primary);
            font-weight: bold;
            position: absolute;
            left: -15px;
        }

        .about-note {
            background: #fff8e1;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #ffc107;
            margin: 15px 0;
            font-size: 1rem;
        }

        .about-lyrics {
            background: #f5f5f5;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            font-size: 1rem;
            line-height: 1.6;
            white-space: pre-line;
            overflow-x: auto;
        }

        .about-lyrics-title {
            text-align: center;
            font-size: 1.6rem;
            color: var(--primary);
            margin-bottom: 15px;
            font-weight: bold;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }

            .class-name {
                font-size: 2rem;
            }

            .class-motto {
                font-size: 1.4rem;
            }

            /* 修改导航布局为两列 */
            nav {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 12px;
                justify-content: space-between;
            }

            .nav-btn {
                min-width: calc(50% - 6px);
                width: calc(50% - 6px);
                padding: 15px 18px;
                font-size: 1rem;
                justify-content: center;
            }

            .content-section {
                padding: 25px;
                min-height: 350px;
            }

            .section-title {
                font-size: 1.6rem;
            }

            .ranking-table th,
            .ranking-table td {
                padding: 15px 18px;
            }

            .ranking-controls {
                flex-direction: column;
                align-items: stretch;
            }

            .search-box {
                max-width: 100%;
            }

            .star-management {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .star-category {
                padding: 20px;
            }
            /* 平板 / 小屏上的首页缩略图（放大） */
            .random-photo {
                width: 200px;
                height: 150px;
                max-width: 100%;
            }

            .admin-login {
                top: 15px;
                right: 15px;
            }

            .admin-btn {
                padding: 10px 18px;
                font-size: 0.95rem;
            }

            .login-form {
                width: 95%;
                padding: 25px;
            }

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .gallery-item img {
                height: 140px;
            }

            .events-filter {
                flex-direction: column;
                gap: 12px;
            }

            .events-filter select {
                min-width: 100%;
            }

            .events-content {
                padding: 20px;
                max-height: 500px;
            }

            .event-entry {
                margin-bottom: 25px;
                padding-bottom: 20px;
            }

            .event-actions {
                flex-direction: column;
                gap: 10px;
            }

            .event-action-btn {
                width: 100%;
            }

            .challenge-grid {
                grid-template-columns: 1fr;
            }

            .log-content {
                width: 98%;
                height: 90vh;
            }

            .log-controls {
                flex-direction: column;
                align-items: stretch;
            }

            .log-controls .search-box {
                max-width: 100%;
            }

            .log-action-buttons {
                display: flex;
                gap: 12px;
            }

            .log-action-btn {
                flex: 1;
                justify-content: center;
            }

            .student-modal-content {
                height: 85vh;
            }

            .student-selection-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }

            .alphabet-index {
                gap: 6px;
            }

            .alphabet-letter {
                font-size: 0.85rem;
                padding: 5px 8px;
                min-width: 32px;
            }

            .console-body {
                padding: 15px;
                font-size: 0.9rem;
            }

            /* 关于页面移动端优化 */
            .about-content {
                padding: 15px;
                font-size: 1rem;
            }

            .about-section {
                padding: 15px;
                margin-bottom: 25px;
            }

            .about-title {
                font-size: 1.5rem;
            }

            .about-subtitle {
                font-size: 1.2rem;
            }

            .about-question {
                font-size: 1.1rem;
            }

            .about-lyrics {
                padding: 15px;
                font-size: 0.9rem;
            }

            .about-lyrics-title {
                font-size: 1.3rem;
            }
        }

        /* 小屏幕手机优化 */
        @media (max-width: 480px) {
            .class-name {
                font-size: 1.7rem;
            }

            .class-motto {
                font-size: 1.2rem;
            }

            /* 在小屏幕上调整导航按钮样式 */
            .nav-btn {
                min-width: calc(50% - 6px);
                width: calc(50% - 6px);
                padding: 12px 10px;
                font-size: 0.9rem;
            }

            .ranking-table {
                font-size: 0.95rem;
            }

            .ranking-table th,
            .ranking-table td {
                padding: 12px 15px;
            }

            .alphabet-index {
                gap: 4px;
            }

            .alphabet-letter {
                font-size: 0.8rem;
                padding: 4px 6px;
                min-width: 28px;
            }

            .rank {
                width: 45px;
                font-size: 1.1rem;
            }

            .star {
                font-size: 1.1rem;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
            }

            .gallery-item img {
                height: 180px;
            }

            .student-item {
                padding: 12px;
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }

            .student-count {
                align-self: flex-end;
            }
            /* 手机上的首页缩略图（放大） */
            .random-photo {
                width: 180px;
                height: 135px;
                max-width: 100%;
            }

            .challenge-selector {
                flex-direction: column;
            }

            .student-selection-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }

            .student-card-name {
                font-size: 1.1rem;
            }

            .student-avatar {
                width: 60px;
                height: 60px;
                font-size: 1.8rem;
            }

            .student-modal-footer {
                flex-direction: column;
                gap: 12px;
            }

            .console-body {
                padding: 12px;
                font-size: 0.85rem;
            }

            /* 关于页面手机端进一步优化 */
            .about-content {
                padding: 10px;
                font-size: 0.95rem;
            }

            .about-section {
                padding: 12px;
                margin-bottom: 20px;
            }

            .about-title {
                font-size: 1.3rem;
            }

            .about-subtitle {
                font-size: 1.1rem;
            }

            .about-question {
                font-size: 1rem;
            }

            .about-list {
                padding-left: 20px;
            }

            .about-lyrics {
                padding: 12px;
                font-size: 0.85rem;
            }

            .about-lyrics-title {
                font-size: 1.2rem;
            }
        }

        /* 自定义滚动条 */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #3a5a9f;
        }

        @keyframes fadeInDown { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
        @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
        @keyframes slideInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
        @keyframes spin { 0% { transform:rotate(0deg); } 100% { transform:rotate(360deg); } }
        .highlight { position:absolute; width:20px; height:20px; background:radial-gradient(circle,rgba(255,255,255,1) 0%,rgba(255,255,255,1) 10%,rgba(255,255,255,0) 20%); border-radius:50%; pointer-events:none; transform:translate(-50%,-50%); animation:pulse .2s infinite alternate,fadeOut .5s forwards; z-index:9999; box-shadow:0 0 40px rgba(255,255,255,1),0 0 50px rgba(255,255,255,.9) inset; filter:brightness(3); text-shadow:0 0 20px #fff,0 0 30px #fff,0 0 40px #fff; }
        @keyframes pulse { from { transform:translate(-50%,-50%) scale(1); opacity:1; } to { transform:translate(-50%,-50%) scale(1.2); opacity:.9; } }
        @keyframes fadeOut { from { opacity:1; transform:translate(-50%,-50%) scale(1); box-shadow:0 0 40px #fff,0 0 50px rgba(255,255,255,.9) inset; filter:brightness(3); text-shadow:0 0 20px #fff,0 0 30px #fff,0 0 40px #fff; } to { opacity:0; transform:translate(-50%,-50%) scale(5); box-shadow:0 0 60px rgba(255,255,255,.9),0 0 70px rgba(255,255,255,.8) inset; filter:brightness(3.5); text-shadow:0 0 30px #fff,0 0 50px #fff,0 0 70px #fff; } }
