/* 面包屑导航 */
.breadcrumb {
    background: var(--background-light);
    padding: 100px 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* 服务详情布局 */
.service-detail {
    background: var(--background-light);
    padding: 2rem 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* 主要内容区域 */
.detail-main {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.service-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--accent-color);
}

.rating-text {
    color: var(--text-light);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 服务图片展示 */
.service-gallery {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.main-image {
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* 服务描述 */
.service-description {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.service-description h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-description h3 {
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.service-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.service-description li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 服务案例 */
.service-cases {
    padding: 2rem;
}

.service-cases h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.case-item {
    text-align: center;
}

.case-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.case-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.case-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 发布者卡片 */
.publisher-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.publisher-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.publisher-avatar {
    flex-shrink: 0;
}

.publisher-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.publisher-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.publisher-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.publisher-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 联系信息 */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item span {
    flex: 1;
    font-size: 0.9rem;
}

.btn-show-phone,
.btn-show-email {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-show-phone:hover,
.btn-show-email:hover {
    background: var(--secondary-color);
}

/* 联系按钮 */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary.btn-block:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary.btn-block {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary.btn-block:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* 相关推荐 */
.related-services {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.related-services h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.related-item:hover {
    background: var(--background-light);
}

.related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.related-info h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.related-info .price {
    font-size: 1rem;
    color: var(--primary-color);
}

/* 评价区域 */
.reviews-section {
    background: var(--background-light);
    padding: 3rem 0;
}

.reviews-section h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.reviews-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.rating-overview {
    text-align: center;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--text-light);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-bar span:first-child {
    width: 30px;
    text-align: right;
    color: var(--text-light);
}

.bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 30px;
    color: var(--text-light);
}

/* 评价列表 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.reviewer-name {
    font-weight: bold;
    color: var(--text-dark);
}

.review-rating {
    color: var(--accent-color);
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-content {
    line-height: 1.6;
    color: var(--text-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-header h1 {
        font-size: 2rem;
    }
    
    .service-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .thumbnail-list {
        justify-content: center;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .breadcrumb .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .service-detail {
        padding: 1rem 0;
    }
    
    .detail-main,
    .publisher-card,
    .related-services {
        padding: 1rem;
    }
    
    .service-header {
        padding: 1rem;
    }
    
    .service-gallery {
        padding: 1rem;
    }
    
    .service-description {
        padding: 1rem;
    }
    
    .service-cases {
        padding: 1rem;
    }
} 