/* 详情页样式 */

/* 主要内容区域 */
.main-content {
    margin-top: 80px; /* 为固定头部导航留出空间 */
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

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

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb i {
    font-size: 12px;
    color: #999;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* 详情容器 */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 40px;
}

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

/* 服务头部信息 */
.service-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.service-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
}

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

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.service-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.service-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.service-meta i {
    color: #007bff;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
}

.price-unit {
    font-size: 16px;
    color: #666;
}

.price-note {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}

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

.service-description h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.description-content {
    line-height: 1.8;
    color: #555;
}

.description-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.description-content ul {
    margin: 15px 0;
    padding-left: 0;
}

.description-content li {
    list-style: none;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.description-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.description-content strong {
    color: #333;
    font-weight: 600;
}

/* 技术标签 */
.tech-tags {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.tech-tags h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 案例展示 */
.case-gallery {
    padding: 30px;
}

.case-gallery h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 12px;
    opacity: 0.9;
}

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

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

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

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

.publisher-info {
    flex: 1;
}

.publisher-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.publisher-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

.rating-score {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.publisher-title {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 发布者统计 */
.publisher-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* 发布者描述 */
.publisher-description {
    margin-bottom: 25px;
}

.publisher-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 联系方式 */
.contact-section {
    margin-bottom: 25px;
}

.contact-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

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

.contact-item i {
    width: 16px;
    color: #007bff;
    font-size: 14px;
}

.contact-label {
    font-size: 14px;
    color: #666;
    min-width: 70px;
}

.contact-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.btn-copy {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 操作按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-weight: 600;
}

.btn-favorite {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn-favorite.active i {
    color: white;
}

/* 相关服务 */
.related-services {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.related-services h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

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

.related-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

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

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
}

.related-price {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 600;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.contact-option i {
    width: 20px;
    font-size: 18px;
    color: #007bff;
}

.contact-option span {
    font-weight: 500;
    color: #333;
}

.contact-option small {
    color: #666;
    font-size: 12px;
    margin-left: auto;
}

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

@media (max-width: 768px) {
    .service-header {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .service-description,
    .tech-tags,
    .case-gallery {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .publisher-card {
        padding: 20px;
    }
    
    .publisher-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        padding: 15px 0;
    }
    
    .service-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .publisher-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .publisher-avatar {
        align-self: center;
    }
}