/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --bg-color: #F5F5F5;
    --card-color: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #000000;
    --divider-color: #E5E5E5;
    --active-color: #07C160;
    --expired-color: #FA5151;
    --paused-color: #FF9F0A;
    --draft-color: #8E8E93;
    --border-radius: 0.5rem; /* 8px */
    --box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    
    font-size: clamp(0.875rem, 2vw, 1rem);
}

body {
    background-color: #f5f7fa;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 62.5rem; /* 1000px */
    margin: 0 auto;
    padding: 0 0.9375rem; /* 15px */
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 0.9375rem) 0;
}

.back-btn {
    color: white;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    background: none;
    border: 0.125rem solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: clamp(0.3rem, 0.75vw, 0.3125rem);
    border-radius: 10%;
    transition: background-color 0.2s;
    margin-right: 1rem;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    text-align: center;
    flex: 1;
    padding-right: clamp(2.5rem, 6vw, 3rem);
}

/* 顶部进度条 */
.progress-header {
    background: white;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1); /* 2px 10px */
    height: 3.75rem; /* 60px */
    display: flex;
    align-items: center;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 1.875rem; /* 30px */
    white-space: nowrap;
}

.progress-steps-horizontal {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 0.625rem; /* 10px */
}

.progress-steps-horizontal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 1.875rem; /* 30px */
    right: 1.875rem; /* 30px */
    height: 0.125rem; /* 2px */
    background: #e9ecef;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-step-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    min-width: 5rem; /* 80px */
}

.step-circle {
    width: 1.75rem; /* 28px */
    height: 1.75rem; /* 28px */
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    transition: var(--transition);
    border: 0.125rem solid transparent; /* 2px */
    margin-bottom: 0.25rem; /* 4px */
}

.progress-step-horizontal.active .step-circle {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.progress-step-horizontal.completed .step-circle {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-text-horizontal {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: #6c757d;
    white-space: nowrap;
}

.progress-step-horizontal.active .step-text-horizontal {
    color: var(--primary-color);
    font-weight: 600;
}

.completion-info {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
    margin-left: 1.875rem; /* 30px */
    white-space: nowrap;
}

.completion-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 表单容器 */
.job-form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.875rem; /* 30px */
    margin-bottom: 3.125rem; /* 50px */
    margin-top: 1.25rem; /* 20px */
}

/* 右侧表单 */
.job-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0;
    overflow: hidden;
}

.form-section {
    padding: 1.875rem; /* 30px */
    border-bottom: 0.0625rem solid #e9ecef; /* 1px */
    display: none;
}

.form-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5625rem; /* 25px */
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.section-optional {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: normal;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr)); /* 250px */
    gap: 1.25rem; /* 20px */
    margin-bottom: 1.25rem; /* 20px */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem; /* 8px */
    color: var(--secondary-color);
}

.form-label.required:after {
    content: " *";
    color: #e74c3c;
}

.form-input, .form-select, .form-textarea {
    padding: 0.75rem 0.9375rem; /* 12px 15px */
    border: 0.125rem solid #e9ecef; /* 2px */
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.1875rem rgba(52, 152, 219, 0.1); /* 3px */
}

.form-textarea {
    resize: vertical;
    min-height: 7.5rem; /* 120px */
    font-family: inherit;
}

.form-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.3125rem; /* 5px */
}

/* 薪资范围样式 */
.salary-range {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.salary-range .form-input {
    flex: 1;
}

.salary-separator {
    color: #6c757d;
    font-weight: 600;
}

/* 福利选择样式 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); /* 200px */
    gap: 0.9375rem; /* 15px */
    margin-top: 0.625rem; /* 10px */
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
}

.benefit-checkbox {
    width: 1.125rem; /* 18px */
    height: 1.125rem; /* 18px */
}

.benefit-label {
    font-size: 0.95rem;
}

/* 表单操作 */
.form-actions {
    display: flex;
    justify-content: space-between;
    padding: 1.5625rem 1.875rem; /* 25px 30px */
    background: #f8f9fa;
}

.btn {
    padding: 0.75rem 1.5625rem; /* 12px 25px */
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

.btn-prev {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 0.125rem solid var(--border-color); /* 2px */
}

.btn-prev:hover {
    background: #e9ecef;
}

.btn-submit {
    background: #28a745;
    color: white;
}

.btn-submit:hover {
    background: var(--active-color);;
}

.btn-save {
    background: #f8f9fa;
    color: var(--text-primary);
    border: 0.125rem solid var(--border-color); /* 2px */
}

.btn-save:hover {
    background: #e9ecef;
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background: #2980b9;
}

/* 响应式设计 */
@media (max-width: 48rem) { /* 768px */
    .progress-header {
        padding: 0 0.9375rem; /* 15px */
        height: 3.125rem; /* 50px */
    }
    
    .progress-title {
        display: none;
    }
    
    .completion-info {
        display: none;
    }
    
    .progress-steps-horizontal {
        padding: 0;
    }
    
    .progress-steps-horizontal::before {
        left: 1.25rem; /* 20px */
        right: 1.25rem; /* 20px */
    }
    
    .progress-step-horizontal {
        min-width: 3.75rem; /* 60px */
    }
    
    .step-text-horizontal {
        font-size: 0.7rem;
    }
    
    .step-circle {
        width: 1.5rem; /* 24px */
        height: 1.5rem; /* 24px */
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.9375rem; /* 15px */
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); /* 150px */
    }
}

@media (max-width: 30rem) { /* 480px */
    .form-section {
        padding: 1.25rem; /* 20px */
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem; /* 10px */
    }
    
    .salary-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .salary-separator {
        text-align: center;
    }
    
    .progress-step-horizontal {
        min-width: 3.125rem; /* 50px */
    }
    
    .step-text-horizontal {
        font-size: 0.65rem;
    }
}