* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
    text-decoration: none;
}

.mz168houseshow_container {
    max-width: 1412px;
    margin: 5px auto;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 第一行：标题和阅读数 */
.mz168houseshow_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mz168houseshow_title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.mz168houseshow_views {
    color: #999;
    font-size: 14px;
}

/* 第二行：左右两栏布局 */
.mz168houseshow_content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mz168houseshow_left-column {
    flex: 1;
    min-width: 300px;
}

.mz168houseshow_right-column {
    width: 400px;
    min-width: 300px;
}

/* 视频/图片区域 */
.media-container {
    margin-bottom: 15px;
}

.main-media {
    width: 100%;
    height: 450px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

/* 视频播放按钮 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    z-index: 10;
    opacity: 0.9;
    transition: all 0.3s;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 缩略图滑动区域 */
.thumbnail-slider {
    position: relative;
    margin-bottom: 15px;
}

.swiper {
    width: 100%;
    height: 80px;
}

.swiper-slide {
    width: 120px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.swiper-slide:hover::after {
    background-color: rgba(0, 0, 0, 0.1);
}

.swiper-slide.active::after {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #f80;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 滑动导航按钮 - 调整垂直居中 */
.swiper-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    margin-top: 0; /* 确保没有额外的margin影响垂直居中 */
}

.swiper-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.swiper-button-prev {
    left: 0;
    border-radius: 0 30px 30px 0;
}

.swiper-button-next {
    right: 0;
    border-radius: 30px 0 0 30px;
}

.hint-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* 右侧信息区域 */
.price-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.price {
    color: #f00;
    font-size: 28px;
    font-weight: bold;
    margin-right: 10px;
}

.avg-price {
    color: #666;
    font-size: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-item {
    flex: 1;
    text-align: center;
    font-size: 16px;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
}

.detail-label {
    text-align: right;
    width: 100px;
    color: #666;
}

.detail-value {
    flex: 1;
}

/* 经纪人信息 */
.agent-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.agent-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: center;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-name {
    font-size: 18px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-phone {
    background-color: #f80;
    color: white;
    position: relative;
}

.btn-phone:hover .phone-number {
    display: block;
}

.phone-number {
    display: none;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-wechat {
    background-color: #07c160;
    color: white;
    position: relative;
}

.btn-wechat:hover .wechat-qrcode {
    display: block;
}

.wechat-qrcode {
    display: none;
    position: absolute;
    top: 50px;
    left: -50px;
    width: 120px;
    height: 120px;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wechat-qrcode img {
    width: 100%;
    height: 100%;
}

/* 房源亮点介绍 */
.mz168houseshow_property-highlights {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.mz168houseshow_highlights-header {
    margin-bottom: 20px;
}

.mz168houseshow_highlights-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.mz168houseshow_highlights-content {
    margin-bottom: 30px;
}

.mz168houseshow_highlights-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.mz168houseshow_highlights-gallery {
    margin-top: 20px;
}

.gallery-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    flex: 1;
    height: 220px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* 图片弹窗样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.modal-image-container {
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

/* 视频弹窗样式 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-container {
    width: 900px;
    max-width: 90%;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

/* 右侧浮动二维码和返回顶部按钮 */
.float-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
}

.float-qrcode {
    width: 150px;
    height: 150px;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.float-qrcode img {
    width: 100%;
    height: 100%;
}

.back-to-top {
    margin-top:50px;
    width: 40px;
    height: 40px;
    background-color: #fb6400;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e55b00;
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .float-sidebar {
        right: 10px;
    }

    .float-qrcode {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .mz168houseshow_right-column {
        width: 100%;
    }

    .main-media {
        height: auto;
        aspect-ratio: 2/1;
    }

    .btn-phone:hover .phone-number {
        display: none;
    }

    .btn-wechat:hover .wechat-qrcode {
        display: none;
    }

    .btn-wechat {
        display: none;
    }

    .swiper-button {
        display: none;
    }

    .gallery-row {
        flex-direction: column;
    }

    .gallery-item {
        height: 180px;
    }

    .highlights-content p {
        font-size: 15px;
    }

    .modal-content {
        width: 95%;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .float-sidebar {
        display: none;
    }
}