/* 基础重置与全局样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

header h1 i {
    color: #3498db;
    margin-right: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background-color: #3498db;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 卡片 */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.card h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* 表单步骤 */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 表单组 */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.half {
    flex: 1;
    min-width: 250px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 复选框和单选框 */
.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-weight: normal;
    padding-left: 35px;
    margin-bottom: 15px;
    user-select: none;
}

.checkbox-label input, .radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: auto;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 4px;
}

.radio-checkmark {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 50%;
}

.checkbox-label:hover input ~ .checkmark,
.radio-label:hover input ~ .radio-checkmark {
    background-color: #ddd;
}

.checkbox-label input:checked ~ .checkmark,
.radio-label input:checked ~ .radio-checkmark {
    background-color: #3498db;
}

.checkmark:after, .radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-label input:checked ~ .radio-checkmark:after {
    display: block;
    left: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label i {
    margin-right: 10px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

/* 协议框 */
.agreement-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.7;
}

.agreement-box ol {
    margin-left: 20px;
    margin-top: 15px;
}

.agreement-box li {
    margin-bottom: 10px;
}

/* 按钮组 */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-left: 8px;
}

.prev-btn {
    background-color: #f8f9fa;
    color: #495057;
}

.prev-btn:hover {
    background-color: #e9ecef;
}

.next-btn, .submit-btn {
    background-color: #3498db;
    color: white;
}

.next-btn:hover, .submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.secondary-btn {
    background-color: #95a5a6;
    color: white;
    margin-left: 10px;
}

.secondary-btn:hover {
    background-color: #7f8c8d;
}

/* 新增：删除按钮样式 */
.btn-delete {
    padding: 8px 16px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-delete:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-delete:active {
    transform: translateY(0);
}

.btn-delete i {
    margin: 0;
}

/* 成功消息 */
.success-message {
    text-align: center;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.success-message h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.success-message p {
    margin-bottom: 10px;
    color: #555;
}

/* 结果页面特定样式 */
.results-container {
    margin-top: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.results-table th, .results-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.results-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

.results-table tr.deleting {
    background-color: #f8d7da;
    transition: background-color 0.3s;
}

.no-results {
    text-align: center;
    padding: 60px 40px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

/* 导出按钮 */
.export-btn {
    background-color: #27ae60;
}

.export-btn:hover {
    background-color: #219653;
}

/* 统计数据卡片 */
.stats-card {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 详情弹窗 */
#detailsPopup {
    animation: fadeIn 0.3s ease;
    border-left: 5px solid #3498db;
}

/* 批量操作栏 */
.batch-actions {
    display: none;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e9ecef;
}

.batch-actions.active {
    display: flex;
}

.batch-selection-info {
    font-weight: 600;
    color: #2c3e50;
}

/* 表格行选择复选框 */
.row-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 页脚 */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .secondary-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-header h2 {
        text-align: center;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th, .results-table td {
        padding: 12px 15px;
    }
    
    .stat-item {
        min-width: 150px;
        padding: 20px 15px;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .btn-delete {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .batch-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .batch-selection-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .half {
        min-width: 100%;
    }
    
    .stats-card {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
}