/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #3498db;
}

.nav-item.active a {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

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

/* 上传区域样式 */
.upload-section {
    margin-bottom: 2rem;
}

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-container:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-container p {
    margin: 0.5rem 0;
    color: #7f8c8d;
}

.upload-hint {
    font-size: 0.9rem;
    color: #95a5a6;
}

/* 错误信息区样式 */
.error-section {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.error-section h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
}

.error-table th,
.error-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.error-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.error-table tr:hover {
    background-color: #f8f9fa;
}

/* 重复数据区样式 */
.duplicate-section {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.duplicate-section h3 {
    color: #f39c12;
    margin-bottom: 1rem;
}

.duplicate-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.duplicate-table th,
.duplicate-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.duplicate-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.duplicate-table tr:hover {
    background-color: #f8f9fa;
}

.duplicate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #7f8c8d;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-item {
        margin-left: 0;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .upload-container {
        padding: 2rem;
    }

    .main-content {
        padding: 1rem;
    }
}