/* 详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #999;
}

/* 详情容器 */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* 左侧主要内容 */
.detail-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 详情头部 */
.detail-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.service-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #3498db;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.price-label {
    color: #666;
    font-weight: 500;
}

.price-value {
    color: #e74c3c;
    font-size: 1.8rem;
    font-weight: 700;
}

.price-note {
    color: #999;
    font-size: 0.9rem;
}

/* 图片展示区域 */
.detail-gallery {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.gallery-main {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumb-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.thumb-image:hover,
.thumb-image.active {
    opacity: 1;
}

/* 详细描述 */
.detail-description {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.description-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.description-content p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.description-content li {
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 相关案例 */
.detail-cases {
    padding: 2rem;
}

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

.case-item {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-3px);
}

.case-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.case-item h4 {
    padding: 1rem 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
    background: #f8f9fa;
}

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

/* 发布者信息卡片 */
.publisher-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.publisher-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.publisher-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.publisher-level {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f39c12;
    font-size: 0.9rem;
}

.publisher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.publisher-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #666;
    font-size: 0.9rem;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.contact-item i {
    width: 16px;
    color: #3498db;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-contact-primary {
    padding: 0.75rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-contact-primary:hover {
    background: #2980b9;
}

.btn-contact-secondary {
    padding: 0.75rem 1rem;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-contact-secondary:hover {
    background: #27ae60;
}

/* 服务保障卡片 */
.guarantee-card,
.recommend-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.guarantee-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.guarantee-item i {
    color: #2ecc71;
    width: 16px;
}

/* 相关推荐 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommend-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.recommend-item:hover {
    background: #e9ecef;
}

.recommend-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.recommend-content {
    flex: 1;
}

.recommend-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.recommend-price {
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .service-title {
        font-size: 1.5rem;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .price-value {
        font-size: 1.5rem;
    }
    
    .detail-header,
    .detail-gallery,
    .detail-description,
    .detail-cases {
        padding: 1.5rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .publisher-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.75rem 0.25rem;
    }
    
    .guarantee-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-title {
        font-size: 1.3rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .publisher-stats {
        grid-template-columns: 1fr;
    }
}