/* 避难所人员应急管理系统 (ShelterIMS) v5.0 */
/* 副屏展示样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.main-display {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a2a6c, #2c3e50);
}

.state {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

/* 待机状态样式 */
.idle-state {
    animation: fadeIn 1s ease-in;
}

.logo-container h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #ecf0f1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.logo-container p {
    font-size: 1.5rem;
    color: #bdc3c7;
    margin-bottom: 50px;
}

.time-container {
    margin-top: 50px;
}

.current-time {
    font-size: 5rem;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.current-date {
    font-size: 1.8rem;
    color: #bdc3c7;
}

/* 核验中状态样式 */
.processing-state {
    animation: slideIn 0.5s ease-out;
}

.verification-header h2 {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 30px;
}

.photo-preview {
    width: 300px;
    height: 300px;
    border: 5px solid #f39c12;
    border-radius: 50%;
    margin: 0 auto 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2c3e50;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-info h3 {
    font-size: 2rem;
    color: #ecf0f1;
    margin-bottom: 10px;
}

.person-info p {
    font-size: 1.2rem;
    color: #bdc3c7;
}

/* 结果状态样式 */
.result-state {
    animation: zoomIn 0.5s ease-out;
}

.result-content {
    padding: 50px;
}

.result-message {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.result-details {
    font-size: 1.8rem;
    color: #ecf0f1;
}

/* 成功结果样式 */
.result-success {
    color: #2ecc71;
}

/* 失败结果样式 */
.result-error {
    color: #e74c3c;
}

/* 通用动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-container h1 {
        font-size: 2.5rem;
    }
    
    .logo-container p {
        font-size: 1.2rem;
    }
    
    .current-time {
        font-size: 3rem;
    }
    
    .current-date {
        font-size: 1.3rem;
    }
    
    .verification-header h2 {
        font-size: 2rem;
    }
    
    .photo-preview {
        width: 200px;
        height: 200px;
    }
    
    .person-info h3 {
        font-size: 1.8rem;
    }
    
    .result-message {
        font-size: 2.2rem;
    }
    
    .result-details {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .logo-container h1 {
        font-size: 2rem;
    }
    
    .current-time {
        font-size: 2.5rem;
    }
    
    .photo-preview {
        width: 150px;
        height: 150px;
    }
    
    .person-info h3 {
        font-size: 1.5rem;
    }
    
    .result-message {
        font-size: 1.8rem;
    }
}