* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
}

.logo {
    height: 30px;
}

.search-bar {
    position: relative;
    padding: 10px 15px;
    background: #fff;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background: #f5f5f5;
    font-size: 14px;
}

.search-bar i {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.banner {
    width: 100%;
    padding: 0 15px;
    margin: 10px 0;
}

.banner img {
    width: 100%;
    border-radius: 8px;
}

.main-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 0;
    background: #fff;
    text-align: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.nav-item:active {
    opacity: 0.7;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-loufang {
    background-image: url('../images/l_1.png');
}

.icon-zixun {
    background-image: url('../images/l_2.png');
}

.icon-wenda {
    background-image: url('../images/l_3.png');
}

.icon-che {
    background-image: url('../images/l_4.png');
}

.filter-section {
    display: flex;
    background: #fff;
    padding: 12px 0;
    margin-top: 10px;
    border-bottom: 1px solid #eee;
}

.filter-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.filter-item i {
    margin-left: 5px;
    color: #999;
    font-size: 12px;
}

.property-list {
    margin-top: 10px;
    padding-bottom: 60px;
}

.property-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    text-decoration: none;
    color: inherit;
}

.property-item:active {
    background: #f5f5f5;
}

.property-img {
    position: relative;
    width: 120px;
    margin-right: 15px;
}

.property-img img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.property-info {
    padding: 12px 15px;
}

.property-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.location {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.tags {
    margin-bottom: 8px;
}

.tags span {
    display: inline-block;
    padding: 2px 6px;
    background: #f5f5f5;
    border-radius: 2px;
    font-size: 12px;
    color: #666;
    margin-right: 6px;
}

.price {
    color: #FF5B39;
}

.price .number {
    font-size: 20px;
    font-weight: 500;
    font-family: DIN;
}

.price .unit {
    font-size: 14px;
}

.status {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff9800;
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 0 4px 0 4px;
}

.property-info {
    flex: 1;
}

.property-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.sub-info {
    margin-bottom: 8px;
}

.sub-info span {
    display: inline-block;
    padding: 2px 6px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    margin-right: 5px;
    border-radius: 2px;
}

.price {
    color: #ff5a5f;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.type-tag {
    color: #666;
    font-size: 13px;
    margin-bottom: 4px;
}

.address {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.address i {
    margin-right: 4px;
    font-size: 14px;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 15px;
    border-top: 1px solid #eee;
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.bottom-item i {
    font-size: 20px;
    color: #666;
    margin-bottom: 4px;
}

.bottom-item span {
    font-size: 12px;
    color: #666;
}

.bottom-btn {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    margin: 0 5px;
}

.consult {
    background: #2196f3;
}

.discount {
    background: #ff5a5f;
}

/* 添加筛选弹出层样式 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 101;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.filter-popup.show {
    transform: translateY(0);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.filter-header span {
    font-size: 16px;
    font-weight: bold;
}

.filter-header i {
    font-size: 20px;
    color: #999;
}

.filter-content {
    padding: 15px;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.city-list, .district-list, .price-list, .more-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.city-item, .district-item, .price-item, .more-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
}

.city-item.active, .district-item.active, .price-item.active, .more-item.active {
    color: #2196f3;
    border-color: #2196f3;
}