/* 信息详情页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #ff6b35;
}

.breadcrumb-nav .separator {
    color: #adb5bd;
}

.breadcrumb-nav .current {
    color: #495057;
    font-weight: 500;
}

/* 详情内容 */
.detail-content {
    padding: 2rem 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

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

/* 服务标题 */
.service-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.service-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
    flex: 1;
}

.service-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.badge.recommended {
    background: #ff6b35;
}

.badge.verified {
    background: #28a745;
}

.badge.professional {
    background: #007bff;
}

.badge.hot {
    background: #dc3545;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
}

.price-unit {
    font-size: 1rem;
    color: #6c757d;
}

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

.stars {
    display: flex;
    gap: 0.125rem;
    color: #ffc107;
}

.rating-score {
    font-weight: 600;
    color: #495057;
}

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

.location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
}

/* 服务图片 */
.service-gallery {
    padding: 0 2rem 2rem;
}

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

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

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

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #ff6b35;
}

.thumbnail:hover {
    border-color: #ff6b35;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 服务详情 */
.service-details {
    border-top: 1px solid #f1f3f4;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid #f1f3f4;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.tab-btn:hover {
    color: #ff6b35;
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.tab-panel p {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

.service-list,
.notice-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-list li,
.notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #495057;
}

.service-list i {
    color: #28a745;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* 服务特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid #f1f3f4;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.feature-item p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* 用户评价 */
.reviews-summary {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.rating-score-large {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.stars-large {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    color: #ffc107;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.rating-breakdown {
    flex: 1;
}

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

.rating-bar span:first-child {
    width: 30px;
    font-size: 0.9rem;
    color: #495057;
}

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

.fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    border: 1px solid #f1f3f4;
    border-radius: 8px;
}

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

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

.reviewer-details h5 {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #212529;
}

.review-rating {
    display: flex;
    gap: 0.125rem;
    color: #ffc107;
    margin-bottom: 0.25rem;
}

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

.review-content {
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

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

/* 发布人信息卡片 */
.publisher-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
}

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

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

.publisher-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.publisher-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.publisher-rating .stars {
    display: flex;
    gap: 0.125rem;
    color: #ffc107;
}

.publisher-rating span {
    font-weight: 500;
    color: #495057;
}

.publisher-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.publisher-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    border-top: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    color: #ff6b35;
    text-align: center;
}

.contact-item .label {
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.contact-item .value {
    flex: 1;
    color: #212529;
}

.phone-number {
    font-family: monospace;
}

.btn-show-phone {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-show-phone:hover {
    background: #e55a2b;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* 相关服务推荐 */
.related-services {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f3f4;
}

.related-services h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #f1f3f4;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    border-color: #ff6b35;
    transform: translateY(-1px);
}

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

.related-info {
    flex: 1;
}

.related-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #212529;
    line-height: 1.3;
}

.related-info .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 0.25rem;
}

.related-info .rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.related-info .rating i {
    color: #ffc107;
}

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

@media (max-width: 768px) {
    .detail-content {
        padding: 1rem 0;
    }
    
    .service-header {
        padding: 1.5rem;
    }
    
    .service-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .service-badges {
        margin-left: 0;
    }
    
    .service-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .service-gallery {
        padding: 0 1.5rem 1.5rem;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .detail-tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 1rem 1.5rem;
        white-space: nowrap;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .publisher-card {
        padding: 1.5rem;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
    }
    
    .publisher-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item .label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
    }
    
    .service-title h1 {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.75rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .publisher-avatar {
        width: 60px;
        height: 60px;
    }
    
    .related-item img {
        width: 50px;
        height: 50px;
    }
}