.index-page {
    background-color: #f7f7f7;
    padding-bottom: 20px;
}

.top-img {
    width: 100%;
}

.navs {
    margin: 10px;
}

.nav-card {
    display: flex;
    background-color: #ffffff;
    padding: 15px 10px;
    border-radius: 4px;
}

.nav {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.nav-img {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
}

.nav-text {
    font-size: 12px;
    color: #262626;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    padding: 15px 15px 10px;
}

.ads {
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ad {
    width: calc(50% - 5px);
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ad-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.ads-content {
    padding: 8px 10px;
}

.ad-title {
    font-size: 14px;
    color: #333333;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.house-type {
    color: #666666;
}

.stock-info {
    color: #999999;
}

/* 响应式设计 */
@media screen and (min-width: 768px) {
    .index-page {
        max-width: 800px;
        margin: 0 auto;
    }

    .nav-card {
        padding: 20px;
    }

    .nav-img {
        width: 56px;
        height: 56px;
    }

    .nav-text {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .ad {
        width: calc(33.33% - 10px);
    }

    .ad-img {
        height: 160px;
    }

    .ad-title {
        font-size: 16px;
    }

    .ad-info {
        font-size: 14px;
    }
}
