/* 设计师页面样式 */

:root {
    --max-page-width: 1200px;
    --container-padding: 20px;
    --section-padding: 60px;
    --border-radius: 12px;
    --shadow-default: 0 3px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 筛选区域 */
.filters-section {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 设计师列表 */
.designers-section {
    padding: 60px 0;
    flex: 1;
}

.designers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.designer-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.designer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.designer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 20px;
    font-weight: 600;
}

.designer-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.designer-title {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.designer-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.specialty-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.designer-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
}

.designer-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.designer-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.view-profile-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 精选设计师 */
.featured-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.featured-designers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-designer {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-designer:hover {
    transform: translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 设计师故事 */
.stories-section {
    padding: 60px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.story-content {
    padding: 30px;
}

.story-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.story-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.story-link:hover {
    color: #764ba2;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #f8f9fa;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .designers-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .featured-designers {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .designers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        gap: 20px;
    }
    
    .filter-select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .header-stats {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .designers-grid {
        grid-template-columns: 1fr;
    }
    
    .designer-card {
        padding: 20px;
    }
    
    .designer-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .featured-designers {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        gap: 20px;
    }
}

/* 高度适配优化 */
@media (max-height: 600px) and (orientation: landscape) {
    .page-header {
        padding: 50px 0;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .filters-section {
        padding: 30px 0;
    }
    
    .designers-section {
        padding: 40px 0;
    }
    
    .designer-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .designer-name {
        font-size: 1.3rem;
    }
}

/* 极小高度设备优化 */
@media (max-height: 400px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .filters-section {
        padding: 20px 0;
    }
    
    .designers-section {
        padding: 30px 0;
    }
    
    .designer-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .designer-name {
        font-size: 1.1rem;
    }
    
    .specialty-tag {
        padding: 3px 10px;
        font-size: 0.8rem;
    }
}