/* 列表页专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #6B46C1, #8B5CF6);
    padding: 120px 0 60px;
    margin-top: 70px;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
}

/* 筛选区域 */
.filter-section {
    padding: 40px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #d1d5db;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #6B46C1;
}

.search-btn {
    background: #6B46C1;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #553C9A;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    min-width: 140px;
    outline: none;
    transition: border-color 0.3s;
}

.filter-select:focus {
    border-color: #6B46C1;
}

.publish-btn {
    background: linear-gradient(135deg, #6B46C1, #8B5CF6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

/* 服务列表 */
.services-list {
    padding: 40px 0 80px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.result-count {
    color: #666;
    font-size: 1rem;
}

.result-count strong {
    color: #6B46C1;
}

.view-toggle {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    background: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid #d1d5db;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn.active,
.view-btn:hover {
    background: #6B46C1;
    color: white;
}

/* 服务卡片网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.services-grid.list-view {
    grid-template-columns: 1fr;
}

.services-grid.list-view .service-card {
    display: flex;
    align-items: center;
    padding: 25px;
}

.services-grid.list-view .service-image {
    width: 200px;
    height: 150px;
    margin-right: 25px;
    flex-shrink: 0;
}

.services-grid.list-view .service-content {
    flex: 1;
}

/* 服务卡片 */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-image {
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.service-badge:not(.new):not(.recommended) {
    background: #ff6b6b;
}

.service-badge.new {
    background: #51cf66;
}

.service-badge.recommended {
    background: #ffd43b;
    color: #333;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.current-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #6B46C1;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fbbf24;
}

.rating span {
    color: #666;
    margin-left: 5px;
}

.service-actions {
    display: flex;
    gap: 12px;
}

.service-actions .detail-btn,
.service-actions .contact-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.service-actions .detail-btn {
    background: #f1f5f9;
    color: #475569;
}

.service-actions .contact-btn {
    background: linear-gradient(135deg, #6B46C1, #8B5CF6);
    color: white;
}

.service-actions .detail-btn:hover {
    background: #e2e8f0;
}

.service-actions .contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-box {
        min-width: auto;
        max-width: none;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .filter-select {
        min-width: auto;
        flex: 1;
    }
    
    .list-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid.list-view .service-card {
        flex-direction: column;
        text-align: center;
    }
    
    .services-grid.list-view .service-image {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .service-meta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    
    .service-actions {
        flex-direction: column;
    }
} 