/* 广告详情页样式 */

/* 页面横幅 - 小尺寸版本 */
.page-banner.small {
    background-color: #111;
    padding: 100px 0 30px;
    text-align: left;
    border-bottom: 1px solid #222;
}

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

.breadcrumb a {
    color: #ccc;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #FFD100;
}

/* 详情页布局 */
.ad-detail {
    padding: 50px 0;
    background-color: #0A0A0A;
}

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

/* 主要内容区域 */
.detail-main {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
}

/* 广告图片区域 */
.ad-images {
    margin-bottom: 30px;
}

.main-image {
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

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

.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: #0A0A0A;
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumb:hover {
    opacity: 0.9;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #FFD100;
}

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

/* 广告基本信息区域 */
.ad-info-block {
    padding: 20px 30px;
    border-bottom: 1px solid #222;
}

.ad-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #fff;
}

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

.meta-item {
    display: inline-flex;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.ad-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-icon {
    color: #999;
}

.ad-price {
    font-size: 32px;
    font-weight: bold;
    color: #FFD100;
    margin-bottom: 20px;
}

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

.tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #1A1A1A;
    color: #999;
    border-radius: 4px;
    font-size: 12px;
}

/* 描述内容区域 */
.ad-description,
.ad-samples,
.ad-reviews {
    padding: 30px;
    border-bottom: 1px solid #222;
}

.ad-reviews {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating {
    display: inline-block;
    background-color: #FFD100;
    color: #000;
    font-size: 16px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.description-content {
    color: #bbb;
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 15px;
}

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

.description-content li {
    margin-bottom: 8px;
}

/* 案例展示区域 */
.samples-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.sample-item {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.sample-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sample-item:hover img {
    transform: scale(1.05);
}

.sample-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 15px 10px 10px;
    font-size: 14px;
    text-align: center;
}

/* 用户评价区域 */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background-color: #1A1A1A;
    border-radius: 8px;
    padding: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.review-date {
    color: #999;
    font-size: 12px;
}

.user-rating {
    color: #FFD100;
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 0;
}

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

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

/* 发布者信息卡片 */
.publisher-card {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
}

.publisher-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
}

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

.publisher-info {
    flex: 1;
}

.publisher-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.publisher-status {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.publisher-status.online {
    color: #4CAF50;
}

.publisher-status.online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 5px;
}

.publisher-stats {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #222;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    border-right: 1px solid #222;
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    color: #FFD100;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

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

.publisher-contact {
    padding: 20px;
    border-bottom: 1px solid #222;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    margin-right: 10px;
    font-size: 16px;
    color: #FFD100;
    width: 20px;
    text-align: center;
}

.contact-value {
    color: #bbb;
    font-size: 14px;
}

.publisher-actions {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.action-btn.primary {
    background-color: #FFD100;
    color: #000;
}

.action-btn.secondary {
    background-color: #1A1A1A;
    color: #bbb;
    border: 1px solid #333;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 服务保障卡片 */
.service-card {
    background-color: #111;
    border-radius: 8px;
    padding: 20px;
}

.card-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.service-item {
    display: flex;
    align-items: flex-start;
}

.service-icon {
    color: #FFD100;
    margin-right: 10px;
    font-weight: bold;
}

.service-text {
    flex: 1;
}

.service-name {
    color: #ccc;
    font-weight: bold;
    margin-bottom: 5px;
}

.service-desc {
    color: #999;
    font-size: 12px;
}

/* 相似服务卡片 */
.similar-ads {
    background-color: #111;
    border-radius: 8px;
    padding: 20px;
}

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

.similar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
    transition: all 0.3s;
}

.similar-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.similar-item:hover {
    transform: translateX(5px);
}

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

.similar-info {
    flex: 1;
}

.similar-title {
    color: #ccc;
    margin-bottom: 5px;
    font-size: 14px;
}

.similar-price {
    color: #FFD100;
    font-weight: bold;
}

/* 图片Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 3fr 2fr;
    }
    
    .samples-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .publisher-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .samples-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ad-meta {
        gap: 10px;
    }
    
    .detail-sidebar {
        grid-template-columns: 1fr;
    }
    
    .publisher-card {
        grid-column: span 1;
    }
    
    .publisher-header {
        padding: 15px;
    }
    
    .publisher-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 0 50%;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid #222;
    }
    
    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .page-banner.small {
        padding: 80px 0 20px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumb {
        width: 60px;
        height: 45px;
    }
    
    .ad-title {
        font-size: 24px;
    }
    
    .ad-price {
        font-size: 28px;
    }
    
    .ad-description,
    .ad-samples,
    .ad-reviews {
        padding: 20px;
    }
    
    .samples-gallery {
        grid-template-columns: 1fr;
    }
    
    .review-user {
        flex-wrap: wrap;
    }
    
    .user-rating {
        position: static;
        margin-top: 10px;
        width: 100%;
    }
} 