/* 列表页面专用样式 */
:root {
    --primary-color: #667eea;
    --primary-color-dark: #5a67d8; /* A darker shade for hover */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 头部区域 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px 12px 0 0;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 导航链接 */
.nav-links {
    margin-bottom: 15px;
}

.nav-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.nav-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: scale(0.95);
}

.header-top {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

/* 语言选择器 */
.language-switcher {
    display: flex;
    justify-content: flex-end;
}

.lang-select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 8px center, right 8px center;
    background-repeat: no-repeat;
    background-size: 16px, 12px;
    padding-left: 32px;
    padding-right: 28px;
    min-width: 100px;
    text-align: center;
}

.lang-select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.lang-select option {
    background: #667eea;
    color: white;
    padding: 8px;
}

/* 列表容器 */
.list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航区域 */
.nav-section {
    margin-bottom: 20px;
    text-align: left;
}

.nav-back {
    display: inline-block;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-back:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* 筛选区域 */
.filter-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 100%;
    justify-content: flex-end;
}

.btn-filter, .btn-reset {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-filter {
    background-color: var(--primary-color);
    color: white;
}

.btn-filter:hover {
    background-color: var(--primary-color-dark);
}

.btn-filter:active, .btn-reset:active {
    transform: scale(0.98);
}

.btn-reset {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}

/* 响应式设计 - 手机端适配 */
@media (max-width: 768px) {
    /* 容器与头部 */
    .list-container {
        padding: 15px;
    }
    .list-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .nav-section {
        text-align: center;
    }

    /* 筛选区域 - 两列布局 */
    .filter-row {
        gap: 15px;
        align-items: end;
    }

    .filter-group,
    .filter-actions {
        flex-basis: calc(50% - 7.5px);
        min-width: 0;
    }

    .filter-actions {
        display: flex;
        gap: 8px;
    }

    .btn-filter, .btn-reset {
        flex: 1;
        padding: 10px 5px;
        font-size: 0.9rem;
        border: 1px solid transparent;
        border-radius: 8px;
    }

    .btn-filter {
        display: inline-block !important;
    }

    .btn-reset {
        border-color: #ddd;
    }

    /* 职位列表项 */
    .job-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }
    .job-details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 15px;
        font-size: 0.85rem;
    }
    .job-item {
        padding: 15px;
    }
}

/* 列表区域 */
.job-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.list-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.result-count {
    color: #666;
    font-size: 14px;
}

/* 职位项目 */
.job-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.job-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.job-item:last-child {
    border-bottom: none;
}

.job-item:active {
    transform: scale(0.98);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.job-salary {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
}

.job-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-detail i {
    font-size: 12px;
    opacity: 0.7;
}

.company-name {
    font-weight: 500;
    color: #007bff;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .list-container {
        padding: 10px;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .job-item {
        padding: 15px;
    }
    
    .job-title {
        font-size: 16px;
    }
    
    .job-salary {
        font-size: 14px;
    }
    
    .job-details {
        font-size: 12px;
    }
    
    .nav-section {
        text-align: center;
    }
}

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

.job-item {
    animation: fadeIn 0.3s ease;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 滚动条样式 */
.job-list::-webkit-scrollbar {
    width: 6px;
}

.job-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.job-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.job-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 