/**
 * H5移动端公共样式 - 参考旧系统移动端风格
 * 文件用途: 重置样式、公共布局、头部导航、底部导航
 * 参考来源: 旧系统/template/default/mobile/skin/css/public.css
 */

/* ========== 重置样式 ========== */
@charset "UTF-8";
a, abbr, address, article, aside, audio, b, blockquote, body, caption, cite, code, dd, del, dfn, dialog, div, dl, dt, em, fieldset, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, samp, section, small, span, strong, sub, sup, tfoot, th, thead, time, tr, ul, var, video {
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
    font-size: 100%;
    font-weight: normal;
}

*:focus {outline: none;}

html {
    -webkit-text-size-adjust: none;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: none;
    background-color: #e6e6e6;
    font: 16px/1.25 Arial, "Microsoft Yahei";
    font-weight: bold;
    letter-spacing: -0.02em;
    font-size: 100%;
}

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

a {
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    color: #333;
}

input, button, textarea, select {
    -webkit-appearance: none;
    font-size: 1em;
}

input {
    vertical-align: middle;
}

img {
    border: 0;
    -ms-interpolation-mode: bicubic;
    vertical-align: middle;
    font-size: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

th, td, caption {
    vertical-align: top;
    text-align: left;
}

sub, sup {
    font-size: 10px;
}

input[type="button"], input[type="submit"], input[type="reset"] {
    -webkit-appearance: none;
}

input[type=checkbox] {
    vertical-align: middle;
}

.clear {
    width: 0px;
    height: 0px;
    font-size: 0;
    clear: both;
}

ul, li {
    list-style: none;
}

i, em {
    font-style: normal;
}

/* ========== 定位工具类 ========== */
.fl {
    float: left;
    display: inline;
}

.fr {
    float: right;
    display: inline;
}

.c {
    display: block;
    zoom: 1;
}

.c:after {
    content: ".";
    display: block;
    visibility: hidden;
    height: 0;
    clear: both;
}

.h60 {
    height: 60px;
}

/* ========== 手机端最外层容器 ========== */
.body_box {
    max-width: 750px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* ========== 头部导航（旧系统风格） ========== */
.y_publichead {
    border-bottom: 1px solid #f1f1f1;
    z-index: 8;
    background: #fff;
    width: 100%;
    position: fixed;
    left: 0px;
    top: 0px;
    height: 55px;
}

.y_publicmain {
    width: 95%;
    margin: 0 auto;
}

.y_publiccenter {
    position: relative;
}

.y_publicleft {
    position: absolute;
    left: 5px;
    top: 50%;
    width: 11px;
    margin-top: -13px;
}

.y_publicleft a img {
    width: 100%;
    height: 100%;
}

.y_publicright {
    position: absolute;
    right: 5px;
    top: 50%;
    width: 27px;
    margin-top: -13px;
}

.y_publiccont {
    width: 70%;
    margin: 0 auto;
    text-align: center;
    line-height: 52px;
}

.y_publiccont a {
    display: inline-block;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.y_publicright a img {
    width: 100%;
    height: 100%;
}

/* 固定头部 */
.header.fixed {
    height: 50px;
    line-height: 50px;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    max-width: 100%;
    background: none;
    border-bottom: none;
    z-index: 99;
}

.header.fixed > div {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #FAFAFA;
    box-shadow: 0px 1px 0px 0px rgba(241, 241, 241, 1);
}

.header.fixed .sea-b {
    padding-top: 7px;
    width: 5%;
}

.header.fixed .input {
    position: relative;
    display: block;
    line-height: 36px;
    width: 100%;
    height: 36px;
    font-size: 13px;
    color: #56565C;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 3px;
    background: #E7E7EB;
}

.header.fixed .input i {
    float: left;
    width: 14px;
    height: 14px;
    margin: 11px 10px 0 11px;
    background: url(../img/home_h_icons.png) 0 -4px no-repeat;
    background-size: 36px auto;
}

.header.fixed .cityChoo {
    box-flex: 0;
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -ms-box-flex: 0;
    padding: 0 11px;
    font-size: 15px;
}

.header.fixed .cityChoo span {
    position: relative;
    padding-right: 12px;
    color: #3c3f46;
}

.header.fixed .cityChoo span:before {
    content: "";
    position: absolute;
    width: 7px;
    height: 4px;
    right: 0;
    top: 50%;
    margin-top: -2px;
    background: url(../img/home_h_icons.png) 0 0 no-repeat;
    background-size: 36px auto;
}

.header.fixed .head-icon {
    box-flex: 0;
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -ms-box-flex: 0;
    padding: 0 5px;
}

.header.fixed .head-icon a {
    text-align: center;
    min-width: 32px;
    padding: 4px 4px 0;
}

.header.fixed .head-icon a i {
    display: block;
    float: none;
    width: 30px;
    height: 30px;
    background: url(../img/home_h_icons2.png) no-repeat;
    background-size: auto 30px;
    margin: 0 auto;
    margin-bottom: 3px;
}

.header.fixed .head-icon span {
    display: block;
    font-size: 8px;
    line-height: 12px;
    color: #3c3f46;
    white-space: nowrap;
    margin-top: -4px;
}

/* Flexbox布局 */
.flexbox {
    display: box;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-box;
    -webkit-box-orient: horizontal;
    box-orient: horizontal;
}

.flexbox > * {
    display: block;
    box-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -ms-box-flex: 1;
}

/* ========== 头部导航基础样式 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    border-bottom: 1px solid #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    max-width: 750px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    min-width: 60px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 60px;
}

/* 当前城市显示 */
.header-city {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    padding: 5px 0;
}

.header-city .city-name {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-city .city-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
}

/* 头部中间区域（搜索框） */
.header-center {
    flex: 1;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.header-search {
    width: 100%;
}

.header-search .search-input {
    display: flex;
    align-items: center;
    height: 36px;
    background: #f5f5f5;
    border-radius: 18px;
    padding: 0 15px;
    text-decoration: none;
}

.header-search .search-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/mobile/img/icon_search.png') no-repeat center;
    background-size: contain;
    margin-right: 8px;
    flex-shrink: 0;
}

.header-search .search-input span {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    border-top: 1px solid #e9e9e9;
    display: flex;
    z-index: 100;
    max-width: 750px;
    margin: 0 auto;
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    text-decoration: none;
}

.bottom-nav .nav-item.active {
    color: #ff6b6b;
}

.bottom-nav .nav-item.active .nav-icon {
    opacity: 1;
}

.bottom-nav .nav-icon {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

/* 底部导航图标 */
.bottom-nav .icon-home {
    background-image: url(../img/nav_default.png);
}

.bottom-nav .icon-ershou {
    background-image: url(../img/nav_ershou.png);
}

.bottom-nav .icon-zufang {
    background-image: url(../img/nav_zufang.png);
}

.bottom-nav .icon-xinfang {
    background-image: url(../img/nav_xinfang.png);
}

.bottom-nav .icon-xiaoqu {
    background-image: url(../img/nav_xiaoqu.png);
}

/* ========== 内容区域 ========== */
.content {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* 页面内容容器 */
.page-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* 页面底部留白，防止被底部导航遮挡 */
.body_box {
    padding-bottom: 50px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.btn-primary {
    background-color: #ff6b6b;
    color: #fff;
}

/* ========== 列表 ========== */
.list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

/* ========== 加载更多 ========== */
.load-more {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 12px;
}

/* ========== 搜索框 ========== */
.search-box {
    padding: 10px 15px;
    background-color: #fff;
}

.search-input {
    display: flex;
    align-items: center;
    background-color: #f0f3f6;
    border-radius: 20px;
    padding: 8px 15px;
}

.search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    margin-left: 8px;
}

/* ========== 轮播图 ========== */
.swiper-container {
    width: 100%;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: auto;
}

/* ========== 区域选择 ========== */
.filter-bar {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #e9e9e9;
    padding: 13px 0;
}

.filter-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.filter-item span {
    position: relative;
    padding-right: 12px;
}

.filter-item span:after {
    content: "";
    position: absolute;
    width: 7px;
    height: 4px;
    right: 0;
    top: 50%;
    margin-top: -2px;
    background: url(../img/home_h_icons.png) 0 0 no-repeat;
    background-size: 36px auto;
}

/* ========== 房源列表（旧系统风格） ========== */
.house-list {
    background: #F8F8F8;
}

.house-item {
    padding: 15px 0 15px 15px;
    background: #fff;
    border-top: 1px solid #E9E9E9;
    display: flex;
}

.house-item:first-child {
    border-top: none;
}

.house-img {
    width: 125px;
    position: relative;
    margin-right: 5px;
    flex-shrink: 0;
}

.house-img .img-box {
    width: 114px;
    height: 86px;
    border-radius: 5px;
    overflow: hidden;
}

.house-img .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-img .tag {
    position: absolute;
    left: 5px;
    top: 5px;
    background: rgba(255, 255, 255, 0.71);
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 10px;
    color: #2F383F;
}

.house-info {
    flex: 1;
    min-height: 86px;
    position: relative;
    padding-right: 15px;
}

.house-title {
    font-size: 16px;
    color: #101D37;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-desc {
    font-size: 12px;
    color: #9399A5;
    margin-top: 5px;
}

.house-desc .divider {
    margin: 0 5px;
    color: #ccc;
}

.house-address {
    font-size: 12px;
    color: #9399A5;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.house-tags {
    margin-top: 5px;
}

.house-tags span {
    display: inline-block;
    font-size: 11px;
    color: #849AAE;
    background: #F4F7F9;
    padding: 2px 5px;
    border-radius: 2px;
    margin-right: 5px;
}

.house-price {
    position: absolute;
    right: 15px;
    top: 0;
    font-size: 16px;
    color: #FA5741;
    font-weight: 600;
}

.house-price i {
    font-size: 12px;
    font-style: normal;
}

/* ========== 分类导航 ========== */
.category-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: #fff;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

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

/* ========== 区块标题 ========== */
.section {
    background-color: #fff;
    margin-bottom: 8px;
    padding-bottom: 15px;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #101D37;
}

.section-header a {
    font-size: 12px;
    color: #9399A5;
}
