* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0a0e17;
    color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 科技感背景 */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 100%;
    z-index: -2;
    opacity: 0.5;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    z-index: -1;
    animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.container {
    display: flex;
    flex: 1;
    width: 100%;
    padding: 2rem;
    position: relative;
}

/* 左侧控制面板 */
.control-panel {
    width: 320px;
    padding: 1.5rem;
    margin-right: 2rem;
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.panel-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #00f0ff;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    position: relative;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.6), transparent);
}

.setting-group {
    margin-bottom: 1.8rem;
}

.setting-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.setting-label i {
    margin-right: 0.5rem;
    color: #00f0ff;
}

/* 玻璃态输入框 */
.glass-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* 文件上传按钮 */
.file-upload {
    margin-bottom: 1.5rem;
}

#fileInput {
    display: none;
}

.upload-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    color: #00f0ff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.1));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.upload-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.8rem;
    text-align: center;
}

.status-display {
    margin-top: 1rem;
    padding: 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.status-success {
    background: rgba(0, 255, 128, 0.1);
    border: 1px solid rgba(0, 255, 128, 0.3);
    color: #00ff80;
    display: block;
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.15);
}

.status-error {
    background: rgba(255, 64, 64, 0.1);
    border: 1px solid rgba(255, 64, 64, 0.3);
    color: #ff4040;
    display: block;
    box-shadow: 0 0 15px rgba(255, 64, 64, 0.15);
}

.student-counter {
    margin-top: 1rem;
    padding: 0.9rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-align: center;
}

.counter-value {
    color: #00f0ff;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* 中央显示区域 */
.display-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hologram-container {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 2rem;
    background: rgba(17, 25, 40, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.05);
}

.hologram-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.name-display {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.name-tag {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 1rem 1.5rem;
    padding: 1.2rem 2rem;
    position: relative;
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
    z-index: 2;
    opacity: 1 !important;
    transform: scale(1) !important;
}

.name-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    z-index: -1;
}

.name-tag::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.3), rgba(128, 0, 255, 0.3));
    border-radius: 14px;
    z-index: -2;
    opacity: 0;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    to { opacity: 1; }
}

.initial-message {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* 控制按钮 */
.control-buttons {
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.neon-button {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.start-btn {
    background: rgba(0, 255, 128, 0.15);
    color: #00ff80;
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.2);
}

.start-btn:hover {
    background: rgba(0, 255, 128, 0.25);
    box-shadow: 0 0 30px rgba(0, 255, 128, 0.3);
    transform: translateY(-3px);
}

.start-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 128, 0.3), transparent);
    z-index: -1;
    animation: shine 2s infinite;
}

.stop-btn {
    background: rgba(255, 64, 64, 0.15);
    color: #ff4040;
    box-shadow: 0 0 20px rgba(255, 64, 64, 0.2);
    display: none;
}

.stop-btn:hover {
    background: rgba(255, 64, 64, 0.25);
    box-shadow: 0 0 30px rgba(255, 64, 64, 0.3);
    transform: translateY(-3px);
}

.stop-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 64, 64, 0.3), transparent);
    z-index: -1;
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 选中动画 */
@keyframes highlight {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 240, 255, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(0, 240, 255, 0.8); }
}

.highlight-animation {
    animation: highlight 1.5s ease infinite alternate;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00f0ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .name-tag {
        font-size: 3rem;
        padding: 1rem 1.8rem;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .control-panel {
        width: 100%;
        margin-right: 0;
        margin-bottom: 2rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .name-tag {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .name-tag {
        font-size: 2rem;
        margin: 0.8rem;
        padding: 0.8rem 1.2rem;
    }
    
    .control-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .neon-button {
        width: 100%;
        padding: 0.9rem;
        font-size: 1.1rem;
    }
}