/* 详情页面样式 */

/* 页面标题 */
.page-title {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 60px 0;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://24344043.s21i.faiusr.com/4/ABUIABAEGAAgtoCYvwYo1L26kgIwiws4lAU.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.page-title .container {
    position: relative;
    z-index: 1;
}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 15px;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: #ccc;
}

/* 详情内容区域 */
.detail-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.detail-wrapper {
    display: flex;
    gap: 30px;
}

/* 详情主体 */
.detail-main {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* 详情头部 */
.detail-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-color);
}

.detail-title h2 {
    font-size: 24px;
    text-align: left;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-price {
    text-align: right;
}

.price-tag {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.price-type {
    font-size: 14px;
    color: #666;
}

/* 图片展示区域 */
.detail-gallery {
    padding: 25px;
}

.main-image {
    width: 100%;
    height: 400px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.thumbnail-row {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.thumbnail.active, .thumbnail:hover {
    border-color: var(--primary-color);
}

/* 详情信息 */
.detail-info {
    padding: 0 25px 25px;
}

.detail-section-title {
    margin-bottom: 20px;
}

.detail-section-title h3 {
    font-size: 20px;
    position: relative;
    padding-left: 15px;
}

.detail-section-title h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

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

.info-item {
    display: flex;
    font-size: 15px;
}

.info-label {
    width: 100px;
    color: #666;
}

.info-value {
    flex: 1;
    font-weight: 500;
}

/* 详情描述 */
.detail-description {
    padding: 25px;
    border-top: 1px solid var(--gray-color);
}

.description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

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

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

.description-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
}

/* 地理位置 */
.detail-location {
    padding: 25px;
    border-top: 1px solid var(--gray-color);
}

.location-map {
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.location-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.location-address i {
    color: var(--primary-color);
}

/* 侧边栏 */
.detail-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 发布者卡片 */
.publisher-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 25px;
}

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

.publisher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.publisher-info {
    flex: 1;
}

.publisher-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

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

.publisher-tags .tag {
    padding: 3px 10px;
    font-size: 12px;
}

.publisher-contact {
    padding: 15px 0;
    border-top: 1px solid var(--gray-color);
    border-bottom: 1px solid var(--gray-color);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

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

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.show-phone {
    margin-left: 10px;
    color: var(--primary-color);
    font-weight: 500;
}

.publisher-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.contact-btn:hover {
    background-color: #178149;
}

.contact-btn:last-child {
    background-color: #f5f5f5;
    color: #333;
}

.contact-btn:last-child:hover {
    background-color: #e5e5e5;
}

/* 相关推荐 */
.related-card, .safety-tips {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 25px;
}

.card-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

.card-title h4 {
    font-size: 18px;
}

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

.related-item {
    display: flex;
    gap: 10px;
}

.related-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-info {
    flex: 1;
}

.related-info h5 {
    font-size: 15px;
    margin-bottom: 8px;
}

.related-info h5 a {
    color: var(--text-color);
}

.related-info h5 a:hover {
    color: var(--primary-color);
}

.related-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

/* 安全提示 */
.tips-content p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.tips-content p:last-child {
    margin-bottom: 0;
}

.tips-content p i {
    color: var(--primary-color);
    margin-top: 3px;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .detail-wrapper {
        flex-direction: column;
    }
    
    .detail-sidebar {
        width: 100%;
    }
    
    .main-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail-price {
        text-align: left;
    }
    
    .main-image {
        height: 280px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-row {
        justify-content: center;
    }
    
    .page-title {
        padding: 40px 0;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .detail-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .main-image {
        height: 220px;
    }
    
    .detail-gallery, .detail-header, .detail-info, 
    .detail-description, .detail-location {
        padding: 15px;
    }
} 