/* 详情页样式 */

.detail-page {
    margin-top: 70px;
}

/* 面包屑导航 */
.breadcrumb-section {
    padding: 20px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

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

.breadcrumb a:hover {
    color: #6B46C1;
}

.breadcrumb span {
    color: #999;
}

/* 项目详情主体 */
.project-detail {
    padding: 40px 0;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

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

/* 项目头部 */
.project-header {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.project-image {
    margin-bottom: 25px;
}

.project-image > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.image-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.project-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

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

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

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

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

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

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

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

.rating-score {
    font-weight: bold;
    color: #333;
    margin-left: 8px;
}

.review-count {
    color: #666;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tags .tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.stat-item i {
    color: #6B46C1;
}

/* 项目描述 */
.project-description {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.project-description h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.description-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 25px 0 15px;
}

.description-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.description-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.description-content li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 项目案例 */
.project-cases {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.project-cases h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

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

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

.case-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.case-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.case-item p {
    color: #666;
    font-size: 0.9rem;
}

/* 用户评价 */
.project-reviews {
    padding: 30px;
}

.project-reviews h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
}

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

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

.reviewer-details h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.review-rating {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.8rem;
    color: #999;
}

.review-content {
    color: #666;
    line-height: 1.6;
}

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

/* 发布者信息卡片 */
.publisher-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.publisher-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

.publisher-details h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

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

.publisher-rating span {
    color: #333;
    font-weight: bold;
    margin-left: 5px;
}

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

.publisher-stats {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

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

.stat-value {
    color: #333;
    font-weight: 500;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.contact-item i {
    color: #6B46C1;
    width: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.contact-btn.secondary {
    background: #f1f5f9;
    color: #475569;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.contact-btn.primary:hover {
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.3);
}

.favorite-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #666;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.favorite-btn:hover {
    border-color: #6B46C1;
    color: #6B46C1;
}

/* 相关服务 */
.related-services {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.related-services h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.related-item:hover {
    border-color: #6B46C1;
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.1);
}

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

.related-info {
    flex: 1;
}

.related-info h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
}

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

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

@media (max-width: 768px) {
    .project-header {
        padding: 20px;
    }
    
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .publisher-info {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .project-description,
    .project-cases,
    .project-reviews {
        padding: 20px;
    }
    
    .publisher-card,
    .related-services {
        padding: 20px;
    }
    
    .related-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-item img {
        width: 100%;
        height: 120px;
    }
} 