/* 楼盘详情页美化样式 */
.loupan-header-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 0;
    margin-bottom: 16px;
}

.loupan-image-box {
    position: relative;
    width: 48%;
    max-height: 380px;
    overflow: hidden;
    background-color: #eeeeee; /*灰色底色，留白区域就靠它*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.loupan-image-box img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
}

.image-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
}

.badge-tag {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
}

.loupan-info-box {
    width: 52%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.loupan-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.loupan-title {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.sale-status {
    background: #2563eb;
    color: #fff;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 13px;
}

.loupan-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: #dc2626;
}

.price-unit {
    font-size: 15px;
    color: #64748b;
}

.price-tip {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 8px;
}

.loupan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag-item {
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 12px;
}

.loupan-meta-card {
    background: #f8fafc;
    border-radius: 0;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.meta-label {
    color: #64748b;
    font-size: 13px;
}

.meta-text {
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.loupan-btn-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-phone,
.btn-book {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-phone {
    background: #2563eb;
    color: #fff;
}

.btn-book {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

/* Tab 导航 修复移动端挤压 */
.tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-bottom: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}
/* PC端：平均分配每个tab */
@media (min-width:993px){
    .tab-nav li {
        flex: 1;
        padding: 12px 4px;
        cursor: pointer;
        color: #64748b;
        font-size: 16px;
        text-align: center;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        transition: 0.2s ease;
    }
}
/* 移动端：关闭flex均分，允许横向滚动 */
@media (max-width:992px){
    .tab-nav{
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .tab-nav::-webkit-scrollbar{
        display:none;
    }
    .tab-nav li{
        flex-shrink:0;
        flex-grow:0;
        padding:12px 16px;
        font-size:13px;
        white-space:nowrap;
        cursor: pointer;
        color: #64748b;
        text-align: center;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
    }
}

.tab-nav li:hover {
    color: #2563eb;
}

.tab-nav li.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
    background-color: #eff6ff;
}

/* Tab 内容区 */
.tab-wrap {
    padding: 30px 24px;
    background: #ffffff;
    border: 1px solid #e8ecef;
    border-radius: 0;
    min-height: 420px;
}
@media(max-width:992px){
    .tab-wrap{
        padding:16px 12px;
    }
}

.tab-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-title {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 18px 0;
    padding: 0 0 0 14px;
    line-height: 1.4;
}

/* 左侧蓝色竖条 */
.tab-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 2px;
}

/* 底部渐变分隔线 */
.tab-title::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0 0%, transparent 100%);
}

.tab-content-card {
    background: #fafafa;
    border-radius: 0;
    padding: 20px;
}

.tab-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* 基础信息网格 */
.base-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.base-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 0;
}

.base-label {
    color: #64748b;
    font-size: 14px;
}

.base-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
}

/* 资源/配套列表 */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 0;
}

.resource-icon {
    font-size: 24px;
    line-height: 1;
}

.resource-info {
    flex: 1;
}

.resource-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.resource-desc {
    font-size: 14px;
    color: #64748b;
}

/* 新闻/销售动态 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 0;
}

.news-date {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.news-text {
    color: #475569;
    font-size: 14px;
}

/* 工程进度 */
.progress-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 0;
}

.progress-label {
    color: #64748b;
    font-size: 14px;
}

.progress-status {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
}

/* 分期开发 */
.stage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage-item {
    padding: 14px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 0;
}

.stage-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.stage-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* 户型模块样式，单户型多张图 */
.huxing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap:16px;
}

.huxing-card {
    position: relative;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.huxing-img-box {
    position: relative;
    height: 200px;
    background: #f1f5f9;
}

.huxing-slider-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.huxing-slider-inner {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.huxing-slider-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.huxing-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* 左右切换箭头 */
.huxing-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.huxing-arrow:hover {
    background: #ffffff;
}

.huxing-arrow.prev {
    left: 8px;
}

.huxing-arrow.next {
    right: 8px;
}

.huxing-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* 指示器小圆点 */
.huxing-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.huxing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.huxing-dot.active {
    background: #ffffff;
}

.huxing-body {
    padding: 16px;
}

.huxing-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #1e293b;
}

.huxing-area {
    color: #ef4444;
    font-size: 15px;
    margin-bottom: 6px;
}

.huxing-desc {
    color: #64748b;
    font-size: 14px;
}

/* ===== 户型弹窗【修复版】弹窗尺寸复原，放大内部图片可用空间 ===== */
.huxing-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0,0,0,0.40) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}
.huxing-modal-overlay.show {
    display: flex !important;
}

/* 弹窗盒子恢复原始大小 80vw /80vh */
.huxing-modal-box {
    position: relative !important;
    width: 80vw !important;
    height: 80vh !important;
    background-color: #000000 !important;
    border-radius:8px !important;
    overflow:hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 图片容器：占弹窗除去底部栏全部黑色空间，无内边距 */
.huxing-modal-image-box {
    width:100% !important;
    height: calc(100% - 100px) !important;
    position:relative !important;
    background:#000 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    /* 移除容器padding，让图片尽可能撑满 */
    padding:0 !important;
}

/* 图片：最大99%容器空间，几乎贴黑边，保留1%安全边距，保证图片完整 */
.huxing-modal-image-box img {
    max-width: 99% !important;
    max-height: 99% !important;
    object-fit: contain !important;
}

.huxing-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    z-index: 10 !important;
}

.huxing-modal-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    z-index: 10 !important;
}
.huxing-modal-arrow.prev {left:12px !important;}
.huxing-modal-arrow.next {right:12px !important;}
.huxing-modal-arrow.disabled {opacity:0.35 !important;pointer-events:none !important;}

/* 底部信息栏固定高度 */
.huxing-modal-info {
    height:100px !important;
    padding:14px 20px !important;
    background:#ffffff !important;
    flex-shrink:0 !important;
    box-sizing:border-box !important;
    overflow-y:auto !important;
}
.huxing-modal-title {
    font-size:16px !important;
    font-weight:700 !important;
    color:#1e293b !important;
    margin-bottom:6px !important;
}
.huxing-modal-meta {
    display:flex !important;
    gap:12px !important;
    flex-wrap:wrap !important;
}
.huxing-modal-meta-item {
    color:#64748b !important;
    font-size:13px !important;
}
.huxing-modal-meta-item strong {
    color:#1e293b !important;
}

/* 移动端弹窗 */
@media (max-width: 992px) {
    .huxing-modal-box {
        width: 88vw !important;
        height: 82vh !important;
        border-radius:4px !important;
    }
    .huxing-modal-image-box {
        height: calc(100% - 90px) !important;
    }
    .huxing-modal-info {
        height:90px !important;
    }
    .huxing-modal-arrow {
        width: 34px !important;
        height: 34px !important;
        font-size:16px !important;
    }
    .huxing-modal-image-box img {
        max-width:99% !important;
        max-height:99% !important;
    }
}

/* 底部悬浮咨询栏 */
.loupan-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e8ecef;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

.bottom-bar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.bottom-price span {
    color: #dc2626;
    font-size: 24px;
}

.bottom-tip {
    font-size: 13px;
    color: #64748b;
}

.bottom-bar-right {
    display: flex;
    gap: 10px;
}

.bottom-btn-phone,
.bottom-btn-book {
    padding: 10px 18px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.bottom-btn-phone {
    background: #2563eb;
    color: #fff;
}

.bottom-btn-book {
    background: #fef2f2;
    color: #dc2626;
}

@media (max-width: 992px) {
    .loupan-header-card {
        flex-direction: column;
    }
    .loupan-image-box,.loupan-info-box {
        width: 100%;
    }
    .loupan-image-box {
        height: 260px;
    }
    .base-info-grid,.progress-list {
        grid-template-columns: 1fr;
    }
    .loupan-bottom-bar {
        flex-direction: column;
        gap: 12px;
    }
    .bottom-bar-right {
        width:100%;
    }
    .bottom-btn-phone,.bottom-btn-book {
        flex:1;
    }
}

/* 只有≥1440px大屏电脑才显示二维码，其余全部隐藏 */
@media (min-width: 1440px) {
    #loupan-qrcode-wrap {
        display: block !important;
    }
}
@media (max-width: 1439px) {
    #loupan-qrcode-wrap {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow:hidden;
    }
}

.cover-box{
    width:100%;
    height:450px;
    overflow:hidden;
}
.cover-box img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.no-cover{
    width:100%;
    height:100%;
    background-color:#eeeeee;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#888888;
    font-size:16px;
}

#loupan-qrcode-box img{
    width:100% !important;
    height:auto !important;
    display:block;
}

footer {
    padding-bottom: 90px !important;
}
#floatbtn {
    bottom: 355px !important;
}
@media (max-width:992px){
    footer{
        padding-bottom:130px !important;
    }
}

/* ===== 本次改造新增样式 ===== */

/* 合并tab内的子标题（周边配套/小区内配套、工程动态/分期开发） */
.sub-tab-title {
    font-size: 16px;
    color: #1e293b;
    margin: 20px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid #2563eb;
}

/* 楼盘相册 */
.album-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.album-group {
    margin-bottom: 28px;
}
.album-group:last-child {
    margin-bottom: 0;
}
.album-group-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px 0;
}
.album-card-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.album-card {
    width: 200px;
    height: 150px;
    overflow: hidden;
    border: 1px solid #e8ecef;
    border-radius: 6px;
    cursor: pointer;
    background: #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
}
.album-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.album-empty {
    padding: 48px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 户型图无图占位 & 空状态 */
.huxing-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}
.huxing-empty {
    padding: 48px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* 户型信息行（建筑面积、户型特点） */
.huxing-meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 6px;
}

/* 楼盘相册移动端适配 */
@media (max-width: 992px) {
    .album-card {
        width: calc(50% - 7px);
        height: 120px;
    }
}

.sub-title {
    display: inline-block;
    background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 14px 6px 12px;
    border-radius: 4px;
    margin: 24px 0 12px 0;
    border-left: none !important;
    position: relative;
}

.sub-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* 第一个小标题不需要顶部间距 */
.tab-content-card .sub-title:first-child {
    margin-top: 0;
}

#content-container img {
    max-width: 100%;
    height: auto;
}