/* 功能专属样式 */
.feature-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

/* 上传区域 */
.upload-section {
    margin: 30px 0;
}

.upload-wrapper {
    position: relative;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e7f3ff;
}

.upload-icon {
    color: #666;
    margin-bottom: 20px;
    display: inline-block;
}

.upload-area:hover .upload-icon {
    color: #007bff;
}

.upload-area h3 {
    margin: 10px 0;
    color: #333;
}

.upload-area p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.upload-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.upload-area:hover .upload-button {
    background: #0056b3;
}

/* 文件信息 */
.file-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 按钮 */
.primary-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.primary-btn:hover {
    background: #0056b3;
}

.primary-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.secondary-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin: 0 5px;
}

.secondary-btn:hover {
    background: #5a6268;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.remove-btn:hover {
    background: #c82333;
}

/* 进度条 */
.progress-section {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

/* 结果预览 */
.result-preview {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.result-summary {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 6px;
    text-align: left;
}

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.stat-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-card .label {
    color: #666;
    margin-top: 5px;
    font-size: 14px;
}

/* 报告容器 */
.report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.report-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #007bff;
}

.report-header h1 {
    color: #333;
    margin-bottom: 20px;
}

.report-section {
    margin: 40px 0;
    padding: 20px;
}

.report-section h2 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Excel下载相关样式 */
.download-section {
    background: #e7f5ff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #bee5eb;
}

.download-section h3 {
    color: #0c63e4;
    margin-bottom: 15px;
    font-size: 20px;
}

.download-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.excel-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s;
    display: inline-block;
}

.excel-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.excel-btn:active {
    transform: translateY(0);
}

.excel-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .excel-btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .download-section {
        padding: 20px 15px;
    }
    
    .report-container {
        padding: 10px;
    }
}