/* 开发者页面样式 */
.developers-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.developers-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.developers-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 搜索栏 */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    align-items: center;
}

.search-box i {
    color: #667eea;
    margin-left: 20px;
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 1rem;
    background: transparent;
    color: #2c3e50;
}

.search-box input::placeholder {
    color: #6c757d;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* 内容布局 */
.developers-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* 筛选侧边栏 */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.filter-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section h3 i {
    color: #667eea;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox,
.filter-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-checkbox:hover,
.filter-radio:hover {
    color: #667eea;
}

.filter-checkbox input,
.filter-radio input {
    margin-right: 10px;
    accent-color: #667eea;
}

.count {
    color: #6c757d;
    font-size: 0.85rem;
}

/* 价格范围滑块 */
.price-range {
    padding: 10px 0;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

#currentPrice {
    color: #667eea;
    font-weight: 600;
}

.clear-filters {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.clear-filters:hover {
    background: #e9ecef;
    color: #2c3e50;
}

/* 主要内容区域 */
.developers-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 结果头部 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.results-count {
    font-size: 1rem;
    color: #2c3e50;
}

.results-count strong {
    color: #667eea;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    cursor: pointer;
}

/* 开发者网格 */
.developers-grid {
    padding: 30px;
    display: grid;
    gap: 25px;
}

/* 开发者卡片 */
.developer-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    background: white;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.developer-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.developer-avatar {
    position: relative;
    flex-shrink: 0;
}

.developer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid white;
}

.status-indicator.online {
    background: #28a745;
}

.status-indicator.away {
    background: #ffc107;
}

.status-indicator.offline {
    background: #6c757d;
}

.developer-info {
    flex: 1;
}

.developer-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.developer-info .title {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.developer-price {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.developer-content {
    margin-bottom: 20px;
}

.description {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.skill-tag {
    background: #f8f9fa;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.developer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.stat i {
    color: #667eea;
    width: 16px;
}

.developer-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.developer-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: #6c757d;
    padding: 0 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .developers-hero-content h1 {
        font-size: 2rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-sidebar {
        position: static;
        order: 2;
    }
    
    .developers-main {
        order: 1;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .developer-header {
        flex-direction: column;
        text-align: center;
    }
    
    .developer-price {
        text-align: center;
    }
    
    .developer-stats {
        justify-content: center;
    }
    
    .developer-actions {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
        padding: 15px;
        border-radius: 15px;
    }
    
    .search-box input {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .search-btn {
        border-radius: 8px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .developers-hero {
        padding: 100px 0 60px;
    }
    
    .developers-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .developers-hero-content p {
        font-size: 1rem;
    }
    
    .developers-grid {
        padding: 20px;
    }
    
    .developer-card {
        padding: 20px;
    }
    
    .filters-sidebar {
        padding: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        min-width: 35px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}