@charset "utf-8";

/* ========== 全局基础重置（全站通用） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* 移动端适配根字体 */
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: "Microsoft YaHei", "Hiragino Sans GB", Arial, SimSun, sans-serif;
    background: #f7f7f7;
    color: #333333;
    /* 移动端禁止横向滚动 */
    overflow-x: hidden;
}

ul,
li {
    list-style: none;
}

a {
    font-size: 1rem;
}

a:link {
    color: #333333;
    text-decoration: none;
}

a:visited {
    text-decoration: none;
    color: #333333;
}

a:hover {
    text-decoration: underline;
    color: #FF6600;
}

a:active {
    text-decoration: none;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

div {
    margin: 0;
    padding: 0;
}

input:focus {
    outline: none;
}

contenthead {
    display: none;
}

/* 通用居中容器：自适应核心，替代固定1200px */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ========== 通用工具容器 ========== */
.mainbox {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto 0;
    table-layout: fixed;
    word-break: break-all;
    overflow: hidden;
    border-radius: 9px;
}

/* ========== 顶部通栏 bodytop 公共头部 ========== */
.bodytop {
    width: 100%;
    background: #f8f8f8;
}

.bodytop1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    line-height: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 10px;
}

.bodytop_l {
    flex: 1;
    min-width: 260px;
    color: #333333;
}

.bodytop_l a {
    color: #333333;
}

.bodytop_r {
    flex: 1;
    min-width: 260px;
    text-align: right;
    color: #CCCCCC;
}

.bodytop_r a,
.bodytop_r a:link,
.bodytop_r a:visited {
    color: #333333;
}

.bodytop_r a:hover {
    color: #ff6600;
}

/* ========== LOGO 头部公共模块 ========== */
.logoandimgout {
    width: 100%;
    background: #FFFFFF;
    padding-bottom: 18px;
}

.logoandimgdiv {
    width: 100%;
    max-width: 1200px;
    min-height: 80px;
    margin: 0 auto;
    padding: 10px 10px 0;
    background: #FFFFFF url(../images/top_bg.jpg) no-repeat 280px 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.logoandimgdiv>img {
    cursor: pointer;
    width: 95px;
    flex-shrink: 0;
}

.logo {
    width: 214px;
    flex-shrink: 0;
    margin-top: 5px;
}

.cityname {
    font-size: 0.85rem;
    color: #7D7D7D;
    line-height: 1.2;
    margin-top: 17px;
    text-align: center;
    flex-shrink: 0;
    width: 250px;
}

.cityname .title {
    color: #333333;
    line-height: 24px;
    font-size: 1.4rem;
}

.cityname a,
.cityname a:visited {
    font-size: 0.85rem;
    color: #7D7D7D;
    text-decoration: none;
}

.cityname a:hover {
    color: #ff6600;
    text-decoration: underline;
}

.top_search {
    margin-top: 15px;
    flex: 1;
    min-width: 300px;
    max-width: 520px;
}

/* 搜索框容器清除浮动，改用flex */
#q-input {
    display: flex;
}

.stxt {
    color: #666666;
}

/* 搜索框通用样式 —— 删除float:left */
.span6 {
    background: url(../images/so.gif) no-repeat 6px 10px;
    background-color: #FFFFFF;
    color: #555555;
    height: 38px;
    line-height: 20px;
    padding: 8px 3px 8px 30px;
    width: calc(100% - 70px);
    font-size: 0.9rem;
    border: 1px solid #FF6600;
    border-right: 0;
    border-top-left-radius: 9px;
    border-bottom-left-radius: 9px;
    font-family: "Microsoft YaHei", "Hiragino Sans GB", Arial, SimSun, sans-serif;
}

.span6:focus {
    border: 1px solid #FF6600;
    border-right: 0;
    box-shadow: 0 1px 2px #EEEEEE inset;
}

.btn {
    color: #FFFFFF;
    font-size: 1rem;
    cursor: pointer;
    background: #FF6600;
    width: 70px;
    height: 38px;
    border: 1px solid #FF6600;
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
    font-family: "Microsoft YaHei", "Hiragino Sans GB", Arial, SimSun, sans-serif;
    outline: none;
}

.btn:hover {
    background: #FF8800;
    border: 1px solid #FF8800;
}

.btn a,
.btn a:visited {
    color: #FF6600;
    text-decoration: none;
}

/* ========== 全站底部footer公共样式 ========== */
#footer {
    width: 100%;
    margin-top: 30px;
    background: #333333;
}

#footer_in {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 15px;
}

.relevantout {
    margin-top: 15px;
    padding: 15px 0 4px 0;
    clear: both;
}

.relevant {
    color: #999999;
    padding: 12px 0 0 0;
    line-height: 30px;
}

.relevant span {
    color: #CCCCCC;
    padding-right: 5px;
}

.relevant a,
.relevant a:visited {
    padding-right: 10px;
    color: #999999;
    text-decoration: none;
    display: inline-block;
    margin: 2px 0;
}

.relevant a:hover {
    color: #ff6600;
    text-decoration: underline;
}

#footer .t {
    margin-top: 15px;
    padding-top: 15px;
    line-height: 30px;
    color: #999999;
    text-align: center;
    border-top: 1px #555555 solid;
    font-size: 0.9rem;
}

#footer .t a {
    color: #999999;
}

#footer .t a:hover {
    color: #ff6600;
}

#link {
    width: 100%;
    max-width: 1200px;
    color: #666666;
    padding: 2px 10px;
    line-height: 30px;
    margin: 0 auto;
    background: #FFFFFF;
}

#link a {
    color: #999999;
    display: inline-block;
    margin: 2px 0;
}

#link a:hover {
    color: #ff6600;
}

#link span {
    color: #999999;
    padding-right: 6px;
}

#newinfo {
    color: #666666;
    padding: 6px 10px;
    line-height: 30px;
    border: 1px solid #eeeeee;
    margin: 10px auto;
    background: #FFFFFF;
    width: 100%;
    max-width: 1200px;
}

#newinfo a {
    padding-right: 10px;
    color: #999999;
    display: inline-block;
    margin: 2px 0;
}

#newinfo a:hover {
    color: #ff6600;
}

/* 广告通用容器 */
.adtop,
.adtop_l,
.adtop_m,
.adtop_r,
.ad960,
.ad960_a,
.ad960_b,
.bdad,
.bdads {
    margin-top: 10px;
}

.adtop {
    width: 100%;
    height: auto;
    min-height: 90px;
    background: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.adtop_l {
    width: 125px;
    flex-shrink: 0;
}

.adtop_m {
    flex: 1;
    min-width: 300px;
}

.adtop_r {
    width: 125px;
    flex-shrink: 0;
    text-align: right;
}

.ad960 {
    text-align: center;
    clear: both;
    background: #FFFFFF;
    width: 100%;
}

.ad960_a,
.ad960_b {
    clear: both;
    background: #FFFFFF;
    width: 100%;
}

.bdad,
.bdads {
    text-align: center;
    background: #FFFFFF;
    width: 100%;
}

/* ========== 全局响应式媒体查询（公共断点） ========== */
/* 手机 ≤576px */
@media screen and (max-width: 576px) {
    html {
        font-size: 13px;
    }

    .bodytop1 {
        flex-direction: column;
        text-align: center;
    }

    .bodytop_r {
        text-align: center;
    }

    /* 关键修改：不改成column，保持水平同行，仅隐藏背景图 */
    .logoandimgdiv {
        background-image: none;
        /* 移除 flex-direction: column; align-items: flex-start; */
    }

    /* logo缩小，不挤压换行 */
    .logo {
        width: 90px;
    }

    .logo img {
        width: 100%;
    }

    /* cityname 保持同行，宽度自适应，文字居左 */
    .cityname {
        width: auto;
        text-align: left;
        margin-top: 0;
    }

    .cityname .title {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    /* 搜索框整行独占一行 */
    .top_search {
        width: 100%;
        max-width: unset;
    }

    .adtop {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .adtop_l,
    .adtop_r {
        width: 100%;
        text-align: center;
    }
}

/* 平板 577~992px */
@media screen and (min-width: 577px) and (max-width: 992px) {
    html {
        font-size: 13.5px;
    }
}