/* Element UI 风格变量 */
:root {
    --el-color-primary: #409eff;
    --el-color-success: #67c23a;
    --el-color-warning: #e6a23c;
    --el-color-danger: #f56c6c;
    --el-color-info: #909399;
    --el-color-text-primary: #303133;
    --el-color-text-regular: #606266;
    --el-color-text-secondary: #909399;
    --el-border-color-base: #dcdfe6;
    --el-border-color-light: #e4e7ed;
    --el-border-color-lighter: #ebeef5;
    --el-border-color-extra-light: #f2f6fc;
    --el-background-color-base: #f5f7fa;
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--el-color-text-primary);
    background-color: var(--el-background-color-base);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid var(--el-border-color-light);
    background-color: #fff;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--el-color-primary);
    border-color: var(--el-color-primary);
}

.btn-primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
}

.btn-warning {
    background-color: var(--el-color-warning);
    border-color: var(--el-color-warning);
}

.btn-warning:hover {
    background-color: #ebb563;
    border-color: #ebb563;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--el-background-color-base);
    color: var(--el-color-text-primary);
    font-weight: 500;
    border-bottom: 2px solid var(--el-border-color-base);
}

.table td {
    color: var(--el-color-text-regular);
    border-bottom: 1px solid var(--el-border-color-lighter);
}

.table-hover tbody tr:hover {
    background-color: var(--el-background-color-base);
}

/* 统计卡片样式 */
.stats-card .card {
    background: linear-gradient(135deg, #fff 0%, var(--el-background-color-base) 100%);
}

.stats-card .card-title {
    color: var(--el-color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stats-card .card-value {
    color: var(--el-color-text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

/* 模态框样式 */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid var(--el-border-color-light);
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--el-border-color-base);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--el-color-primary);
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

/* 文件上传区域样式 */
.upload-area {
    border: 2px dashed var(--el-border-color-base);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    background-color: #fff;
}

.upload-area:hover {
    border-color: var(--el-color-primary);
    background-color: var(--el-background-color-base);
}

.upload-area.dragover {
    border-color: var(--el-color-primary);
    background-color: rgba(64, 158, 255, 0.1);
}

/* 进度条样式 */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--el-border-color-lighter);
    overflow: hidden;
}

.progress-bar {
    background-color: var(--el-color-primary);
    transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .stats-card .card-value {
        font-size: 1.25rem;
    }
    
    .table-responsive {
        margin: 0 -1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 加载状态样式 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--el-color-text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--el-color-text-secondary);
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--el-color-primary);
    border: 1px solid var(--el-border-color-base);
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 4px;
}

.page-link:hover {
    background-color: var(--el-background-color-base);
    border-color: var(--el-color-primary);
}

.page-item.active .page-link {
    background-color: var(--el-color-primary);
    border-color: var(--el-color-primary);
    color: #fff;
}

/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    font-weight: bold;
    padding: 0.8rem 1.25rem;
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

.btn-secondary:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border-color: #1976d2;
    color: #1976d2;
}

.btn-outline-primary:hover {
    background-color: #1976d2;
    color: white;
}

/* 表单样式 */
.form-control {
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* 文件上传组件样式 */
.file-upload-container {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.file-upload-container:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.file-upload-container.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-placeholder {
    z-index: 1;
    color: #6c757d;
    width: 100%;
    transition: all 0.3s ease;
}

.file-upload-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
    transition: all 0.3s ease;
}

.file-upload-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.file-upload-placeholder small {
    display: block;
    color: #6c757d;
    max-width: 80%;
    margin: 0 auto;
}

.file-upload-preview {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.file-upload-preview i {
    font-size: 3.5rem;
    color: #198754;
    margin-bottom: 0.5rem;
}

.file-upload-preview .file-name {
    font-size: 1.1rem;
    color: #212529;
    word-break: break-all;
    max-width: 90%;
    font-weight: 500;
}

.file-upload-preview .remove-file {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.file-upload-preview .remove-file:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* 文件上传进度条 */
.upload-progress {
    width: 90%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    margin: 1rem auto;
    overflow: hidden;
    position: relative;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    width: 0;
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* 文件验证提示 */
.file-validation {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-validation.valid {
    color: #198754;
}

.file-validation.invalid {
    color: #dc3545;
}

.file-validation i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* 拖放提示 */
.drag-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(13, 110, 253, 0.15);
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.file-upload-container.dragover .drag-hint {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* 文件类型图标 */
.file-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(25, 135, 84, 0.1);
    margin-bottom: 1rem;
}

.file-type-icon i {
    font-size: 2.5rem;
    color: #198754;
}

/* 文件上传状态指示器 */
.upload-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    margin: 0.5rem auto;
    font-size: 0.85rem;
    color: #6c757d;
}

.upload-size {
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .file-upload-container {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .file-upload-placeholder i {
        font-size: 2.5rem;
    }
    
    .file-upload-placeholder p {
        font-size: 1rem;
    }
    
    .drag-hint {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* 批量上传进度指示器 */
.batch-progress {
    margin-top: 1.5rem;
    width: 100%;
}

.batch-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.batch-progress-title {
    font-weight: 500;
    color: #212529;
}

.batch-progress-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

.batch-progress-bar-container {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.batch-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    width: 0;
    transition: width 0.3s ease;
}

.batch-progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* 文件上传结果 */
.upload-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    text-align: center;
}

.upload-result.success {
    background-color: rgba(25, 135, 84, 0.1);
}

.upload-result.error {
    background-color: rgba(220, 53, 69, 0.1);
}

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

.upload-result-icon.success {
    color: #198754;
}

.upload-result-icon.error {
    color: #dc3545;
}

.upload-result-message {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-result-details {
    color: #6c757d;
}

/* 网格员名单模块样式 */
.staff-list-options {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.staff-list-options .form-check {
    margin-right: 2rem;
}

.staff-list-options .form-check-label {
    cursor: pointer;
    user-select: none;
}

.staff-list-options .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#internalStaffSection .alert {
    margin-bottom: 0;
    border-radius: 8px;
}

#internalStaffSection .alert-link {
    text-decoration: none;
    font-weight: 500;
}

#internalStaffSection .alert-link:hover {
    text-decoration: underline;
}

/* 日期快捷按钮 */
.date-shortcuts {
    margin-top: 20px;
}

/* 步骤指示器 */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1976d2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

.step-content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* 日志容器样式 */
.log-container {
    background-color: #f8f9fa;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.log-container.expanded {
    max-height: 600px;
}

.log-container pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 结果页面样式 */
.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-content {
    width: 100%;
}

.stats-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.stat-item {
    padding: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1976d2;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.download-section {
    margin-top: 30px;
}

.download-btn {
    text-align: left;
    padding: 15px;
}

.download-btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-icon {
    font-size: 2rem;
}

.download-info {
    display: flex;
    flex-direction: column;
}

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

.download-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 错误页面样式 */
.error-icon {
    font-size: 5rem;
}

.error-help {
    max-width: 600px;
    margin: 0 auto;
}

.error-help ul {
    text-align: left;
    padding-left: 20px;
}

.error-help li {
    margin-bottom: 8px;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 阴影效果 */
.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* 页脚样式 */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

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

.table-hover tbody tr:hover {
    background-color: #f1f8fe;
}

.pagination .page-link {
    color: #1976d2;
}

.pagination .page-item.active .page-link {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #1976d2;
}

.nav-tabs .nav-link.active {
    color: #1976d2;
    background-color: transparent;
    border-bottom: 2px solid #1976d2;
}

.card-header-tabs {
    margin-right: 0;
    margin-bottom: -0.8rem;
    margin-left: 0;
    border-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 5px !important;
        margin-bottom: 5px;
    }
    
    .stats-card .row {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 15px;
    }
    
    .download-btn-content {
        flex-direction: column;
        text-align: center;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* 用户区域样式 */
.user-area {
    display: flex;
    align-items: center;
}

.user-area .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
}

.user-area .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #409EFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 10px;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #67C23A;
    border: 2px solid #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.user-area .nav-link:hover .user-avatar {
    transform: scale(1.05);
    border-color: #fff;
}

/* 下拉菜单样式 */
.dropdown-menu {
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 240px;
}

.dropdown-header {
    padding: 0.5rem 1rem;
    color: var(--el-color-text-primary);
}

.dropdown-user-details {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #409EFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--el-color-text-primary);
    line-height: 1.3;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--el-color-text-secondary);
    line-height: 1.3;
    margin-top: 2px;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid var(--el-border-color-lighter);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--el-color-text-primary);
    transition: all 0.2s;
}

.dropdown-item i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--el-background-color-base);
    color: #409EFF;
}

.dropdown-item.text-danger {
    color: var(--el-color-danger);
}

.dropdown-item.text-danger:hover, .dropdown-item.text-danger:focus {
    background-color: #FEF0F0;
    color: var(--el-color-danger);
}

@media (max-width: 768px) {
    .user-area {
        margin-left: 0;
    }
    
    .user-role {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .user-avatar {
        margin-right: 0;
    }
}

/* 登录按钮样式 */
.login-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 0.5rem;
    font-weight: 500;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    transform: translateY(-1px);
}

.login-button i {
    margin-right: 6px;
    font-size: 16px;
}

/* 添加全局导航栏样式 */
.navbar {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    overflow: visible !important;
}

.navbar-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.user-area {
    height: 100%;
    display: flex;
    align-items: center;
}

/* 确保下拉菜单显示在导航栏之外 */
.dropdown-menu {
    position: absolute;
}

/* 确保用户下拉菜单不影响导航栏高度 */
.user-profile {
    display: flex;
    align-items: center;
} 