* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.modal-body img{
    width: 100%;
    height: 50%;
}

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

header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 0;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    max-width: 500px;
    margin: 20px auto;
}

.login-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

input, select, textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

button {
    padding: 5px 5px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.main-content {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #7f8c8d;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;
}

.tab-btn:hover {
    transform: none;
    box-shadow: none;
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    display: none;
}

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

.date-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.check-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.check-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.check-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.remove-btn {
    background: #e74c3c;
    padding: 8px 15px;
    font-size: 14px;
}

.image-upload-container {
    border: 2px dashed #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
}

.image-preview {
    max-width: 100%;
    max-height: 100%;
    display: none;
    object-fit: contain;
}

.image-preview.show {
    display: block !important;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #95a5a6;
    text-align: center;
    padding: 20px;
}

.upload-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 16px;
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.rectification-items, .history-results {
    margin-top: 20px;
}

.rectification-item, .history-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rectification-header, .history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.history-header:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin: -10px -10px 15px -10px;
}

.toggle-icon {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.history-check-item{
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.history-check-item.unrectified {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
    border-radius: 6px;
    padding: 12px 12px 12px 20px;
}

.history-check-item.unrectified .info-title {
    color: #c0392b;
}

.rectification-title, .history-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.rectification-date, .history-date {
    color: #7f8c8d;
    font-size: 14px;
}

.rectification-content, .history-content {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.check-info, .rectify-info {
    flex: 1;
}

.info-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.image-comparison {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.comparison-image {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.comparison-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.comparison-label {
    margin-top: 10px;
    font-weight: bold;
    color: #7f8c8d;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #ffeaa7;
    color: #d35400;
}

.status-inprogress {
    background-color: #81ecec;
    color: #00a6a6;
}

.status-completed {
    background-color: #55efc4;
    color: #00b894;
}

.status-overdue {
    background-color: #fab1a0;
    color: #d63031;
}

.priority-high {
    border-left: 5px solid #e74c3c;
}

.priority-medium {
    border-left: 5px solid #f39c12;
}

.priority-low {
    border-left: 5px solid #3498db;
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 1000px;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.upload-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.upload-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px dashed #3498db;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.upload-option-btn:hover {
    background-color: #e3f2fd;
    transform: translateY(-3px);
}

.upload-option-btn i {
    font-size: 28px;
    color: #3498db;
    margin-bottom: 8px;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #7f8c8d;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

/* 按钮样式 */
.home-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    margin-top: 10px;
}

.home-btn:hover {
    background-color: #229954;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.change-password-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.change-password-btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.back-to-top.show {
    display: block;
}

@media (max-width: 768px) {
    .tabs {
        /* flex-direction: column; */
    }
    
    .date-selector, .filters {
        flex-direction: column;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .rectification-content, .history-content, .image-comparison {
        flex-direction: column;
    }
    
    .upload-options {
        flex-direction: column;
    }

    .stats-cards {
        display: flex;
        gap: 20px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 20%;
        background: white;
        padding: 0px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        text-align: center;
    }
    
    .stat-card h3 {
        color: #7f8c8d;
        margin-bottom: 2px;
        margin-top: 5px;
        font-size: 16px;
    }
    
    .stat-card .number {
        font-size: 32px;
        font-weight: bold;
        color: #2c3e50;
    }
    
    /* 图片放大模态框样式 */
    .image-zoom-content {
        max-width: 80vw;
        max-height: 80vh;
        width: auto;
        height: auto;
        position: relative;
        padding: 0;
        background: transparent;
    }
    
    .image-zoom-content .modal-header {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .image-zoom-content .modal-header h3 {
        display: none;
    }
    
    .image-zoom-content .close {
        color: white;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        margin: 0;
        padding: 0;
    }
    
    .image-zoom-content .close:hover {
        color: #ff6b6b;
    }
    
    .image-zoom-content .modal-body {
        padding: 0;
        margin: 0;
    }
    
    .zoomed-image {
        max-width: 100%;
        max-height: 80vh;
        width: auto;
        height: auto;
        object-fit: contain;
        cursor: pointer;
        display: block;
        margin: 0 auto;
    }
    
    .image-preview {
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .image-preview:hover {
        transform: scale(1.05);
    }
    
    /* 移动端优化 */
    @media (max-width: 768px) {
        .image-zoom-content {
            max-width: 95vw;
            max-height: 95vh;
        }
        
        .image-zoom-content .modal-header {
            width: 60px;
            height: 60px;
            top: 15px;
            right: 15px;
        }
        
        .image-zoom-content .close {
            font-size: 28px;
        }
        
        .zoomed-image {
            max-height: 85vh;
        }
    }
    
}

/* ==================== 语音录制相关样式 ==================== */

.voice-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.voice-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.voice-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.voice-btn i {
    font-size: 16px;
}

.voice-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.voice-player audio {
    flex: 1;
    height: 40px;
}

.voice-player .btn-danger {
    padding: 5px 10px;
    font-size: 12px;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

.recording-indicator {
    color: #e74c3c;
    font-size: 18px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 媒体比较容器样式 */
.media-comparison {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.comparison-voice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    min-width: 200px;
}

.comparison-voice audio {
    width: 100%;
    height: 40px;
}

.comparison-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

/* 移动端语音样式优化 */
@media (max-width: 768px) {
    .voice-container {
        gap: 8px;
    }
    
    .voice-btn {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .voice-player {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .voice-player audio {
        height: 45px;
    }
    
    .voice-status {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .media-comparison {
        flex-direction: column;
        gap: 10px;
    }
    
    .comparison-voice {
        min-width: auto;
        width: 100%;
    }
}