/* ==================== 楼盘列表页样式（参考图片设计）==================== */

/* 面包屑 */
.list-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.list-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.list-breadcrumb a:hover {
    color: #ff3b4b;
}

.list-breadcrumb span {
    margin-right: 5px;
}

/* ==================== 筛选区域 ==================== */
.filter-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    width: 70px;
    flex-shrink: 0;
    color: #999;
    font-weight: 500;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-options a {
    color: #666;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-options a:hover {
    color: #ff3b4b;
    background: #fff5f5;
}

.filter-options a.active {
    color: #ff3b4b;
    font-weight: 500;
}

/* ==================== 主内容区布局 ==================== */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.content-right {
    width: 280px;
    flex-shrink: 0;
}

/* ==================== Tab导航 ==================== */
.tab-nav {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 4px 4px 0 0;
    padding: 0 20px;
    height: 50px;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 50px;
    line-height: 50px;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-item:hover {
    color: #ff3b4b;
}

.tab-item.active {
    color: #ff3b4b;
    border-bottom-color: #ff3b4b;
    background: #fff;
}

.tab-right {
    margin-left: auto;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.map-link:hover {
    color: #ff3b4b;
    background: #fff5f5;
}

/* ==================== 结果统计栏 ==================== */
.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.result-info em {
    color: #ff3b4b;
    font-style: normal;
    font-weight: 600;
}

.sort-links {
    display: flex;
    gap: 16px;
}

.sort-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.sort-links a:hover,
.sort-links a.active {
    color: #ff3b4b;
}

.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #ccc;
}

/* ==================== 楼盘列表项 ==================== */
.loupan-list {
    background: #fff;
}

.loupan-item {
    display: flex;
    gap: 20px;
    padding: 24px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.loupan-item:hover {
    background: #fafafa;
}

.loupan-item:last-child {
    border-bottom: none;
}

/* 左侧图片 */
.item-img {
    position: relative;
    width: 280px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.loupan-item:hover .item-img img {
    transform: scale(1.05);
}

.img-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    backdrop-filter: blur(4px);
}

/* 中间信息 */
.item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.item-title a:hover {
    color: #ff3b4b;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #ff3b4b;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.tag-brand {
    background: #ff3b4b;
    color: #fff;
}

.tag-hot {
    background: #52c41a;
    color: #fff;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.meta-divider {
    color: #ddd;
}

.item-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.location-area {
    color: #333;
    font-weight: 500;
}

.comment-count {
    color: #999;
}

.item-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

.status-sale {
    background: #fff1f0;
    color: #ff3b4b;
    border: 1px solid #ffa39e;
}

.addr-tag {
    font-size: 13px;
    color: #999;
}

.item-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.icon-speaker {
    color: #1890ff;
    font-size: 16px;
}

.promo-count {
    margin-left: auto;
    color: #999;
    font-size: 13px;
}

.icon-group {
    margin-right: 4px;
}

/* 右侧价格 */
.item-price {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-label {
    font-size: 14px;
    color: #999;
}

.price-num {
    font-size: 32px;
    font-weight: 700;
    color: #ff3b4b;
    letter-spacing: -1px;
}

.price-unit {
    font-size: 14px;
    color: #999;
}

.price-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 50%;
    font-size: 11px;
    color: #999;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.2s;
}

.price-info-icon:hover {
    border-color: #ff3b4b;
    color: #ff3b4b;
}

.price-total {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.total-range {
    color: #666;
}

.adviser-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
}

.adviser-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.adviser-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.adviser-btn {
    margin-left: auto;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #1890ff;
    color: #1890ff;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.adviser-btn:hover {
    background: #1890ff;
    color: #fff;
}

.price-tbd {
    font-size: 28px;
    font-weight: 700;
    color: #ff3b4b;
}

.tbd-text {
    font-size: 28px;
    font-weight: 700;
    color: #ff3b4b;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #ff3b4b;
    color: #ff3b4b;
}

.page-link.active {
    background: #ff3b4b;
    border-color: #ff3b4b;
    color: #fff;
}

.page-link.prev,
.page-link.next {
    padding: 0 16px;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 80px 0;
    color: #999;
    font-size: 16px;
}

/* ==================== 右侧边栏 ==================== */
.sidebar-block {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.rank-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff3b4b);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.title-bar {
    width: 4px;
    height: 18px;
    background: #ff3b4b;
    border-radius: 2px;
}

/* 购房团 */
.buy-group .group-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.group-desc {
    flex: 1;
    font-size: 14px;
    color: #666;
}

.join-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff3b4b);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(255, 59, 75, 0.3);
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 75, 0.4);
}

/* 热搜榜 */
.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.rank-num {
    font-size: 20px;
}

.hot-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.hot-price {
    font-size: 13px;
    color: #999;
}

/* 推荐楼盘 */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.recommend-item:hover {
    background: #f8f9fa;
}

.rec-img {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.rec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rec-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rec-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff3b4b;
}

.rec-price small {
    font-size: 12px;
    font-weight: normal;
    color: #999;
}

.rec-price.tbd {
    font-size: 16px;
    color: #999;
}

.rec-area {
    font-size: 13px;
    color: #999;
}

/* ==================== 响应式布局 ==================== */
@media (max-width: 1200px) {
    .content-right {
        width: 240px;
    }

    .item-img {
        width: 240px;
        height: 160px;
    }

    .item-price {
        width: 180px;
    }

    .price-num {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .content-right {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .sidebar-block {
        margin-bottom: 0;
    }

    .loupan-item {
        flex-direction: column;
    }

    .item-img {
        width: 100%;
        height: 200px;
    }

    .item-price {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filter-label {
        width: auto;
    }

    .tab-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .result-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .content-right {
        grid-template-columns: 1fr;
    }
}
