/* ========== mobile.css — 景点列表手机适配样式（汉堡菜单折叠，PC端保持原样） ========== */

/* PC端默认：隐藏汉堡按钮和面板，显示原有卡片 */
.mobile-filter-toggle,
.filter-panel {
    display: none !important;
}
/* 移动端适配（宽度 ≤ 768px） */
@media screen and (max-width: 768px) {
    /* 强制覆盖正文容器字体 */
    .readbox,
    .readbox .texts,
    .readbox .texts p {
        font-size: 25px !important;
        line-height: 1.6 !important;
    }
    /* 增加左右留白，避免贴边 */
    .readbox .texts {
        padding: 0 12px !important;
    }
    /* 标题可单独保留稍大字号 */
    .readbox .texts h3,
    .readbox .texts h4 {
        font-size: 1.2rem !important;
    }
}

    /* 所有固定宽度容器改为自适应 */
    .hhxW1200, .hhxW1100, .main1200, .wrapbox, .newsmain, .hhxheader, .hhxfooter,
    .content-inner, .card, .viewspot_01, .viewspot_modify1, .hhx_newB_kindCon,
    .hhx_newB_kindTit, .in_left, .in_left860, .in_right, .newsmain .left, .newsmain .right {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
        float: none !important;
        clear: both;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hhxW1200, .hhxW1100, .main1200 {
        padding: 0 12px !important;
    }

    /* 左右结构改为上下堆叠 */
    .hhx_l_760, .hhx_l_860, .hhx_r_300 {
        width: 100% !important;
        min-width: 0 !important;
        float: none !important;
        margin: 0 0 20px 0 !important;
        clear: both;
    }
    .hhx_r_300 {
        margin-top: 20px;
    }

    /* 卡片内边距调整 */
    .card {
        padding: 12px 15px !important;
        position: relative;
    }
    .content-inner {
        border: 1px solid #e6e6e6;
    }

    /* 左侧固定浮动菜单在手机上隐藏 */
    .all-lmenu01 {
        display: none !important;
    }

    /* 隐藏PC端的筛选卡片 */
    #jingdian-weather {
        display: none !important;
    }

    /* 显示汉堡按钮 */
    .mobile-filter-toggle {
        display: flex !important;
        justify-content: flex-end;
        margin-bottom: 10px;
    }

    /* 汉堡按钮样式 */
    .hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #3388ff;
        border-radius: 50%;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transition: background 0.2s;
        user-select: none;
        z-index: 100;
    }
    .hamburger-btn:hover {
        background: #2a6fd1;
    }
    .hamburger-btn .icon {
        line-height: 1;
    }

    /* 筛选面板 - 默认隐藏，点击后显示 */
    .filter-panel {
        display: none;
        background: #fff;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        position: relative;
        z-index: 99;
    }
    .filter-panel.show {
        display: block !important;
    }

    /* 面板内标题样式 */
    .filter-panel .selectnav-wrap {
        padding: 0 0 15px 0 !important;
        border-bottom: 1px dashed #e5e5e5;
        margin-bottom: 15px;
    }
    .filter-panel .selectnav-wrap:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .filter-panel .selectnav-title {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px;
        font-weight: bold;
        font-size: 16px;
        color: #333;
        padding: 0;
        cursor: default;
    }
    /* 移除箭头 */
    .filter-panel .selectnav-title::after {
        display: none;
    }
    .filter-panel .selectnav-cont-wrap {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        display: block;
    }

    .selectnav-part .g-clearfix {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 4px;
    }
    .selectnav-level1 {
        margin: 0 !important;
        padding: 4px 8px !important;
        font-size: 14px;
        border: 1px solid #ddd;
        border-radius: 16px;
        background: #f9f9f9;
        white-space: nowrap;
    }
    .selectnav-level2-wrap {
        width: 100% !important;
        display: flex;
        flex-wrap: wrap;
        padding: 8px 0 !important;
        background: #f5f5f5;
        margin-top: 8px;
    }
    .selectnav-level2-wrap a {
        margin: 4px 6px !important;
        padding: 4px 10px !important;
        background: #fff;
        border-radius: 20px;
    }

    /* 景点列表网格 — 两列布局 */
    .hhx_jd_mainContain {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
    }
    .hhx_jd_mainContain a {
        width: calc(50% - 5px) !important;
        margin: 0 !important;
        display: block;
        text-decoration: none;
    }
    .hhx_jd_mainContain a div {
        width: 100% !important;
    }
    .hhx_jd_mainContain a div p {
        width: 100% !important;
        font-size: 15px;
        padding: 0 5px;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-width: 1px;
        line-height: 36px;
        height: auto;
        min-height: 40px;
        margin-bottom: 5px;
    }

    /* 分页器优化 */
    .viewspot_pages {
        text-align: center;
        margin: 20px 0 !important;
    }
    .viewspot_pages a, .viewspot_pages span {
        display: inline-block;
        min-width: 38px;
        height: 38px;
        line-height: 38px;
        padding: 0 6px !important;
        margin: 0 3px 6px !important;
        font-size: 14px;
        border-radius: 6px;
        background: #f3f3f3;
        text-align: center;
        box-sizing: border-box;
    }
    .viewspot_pages a.current, .viewspot_pages a.on {
        background: #3388ff;
        color: #fff;
    }
    .viewspot_pages a.al, .viewspot_pages a.ar {
        width: 42px;
        background-size: 14px;
    }

    /* 右侧排行榜卡片 */
    .viewspot_top {
        padding: 0 12px !important;
        border: 1px solid #eee;
        border-top: 2px solid #3388ff;
        margin-bottom: 20px;
    }
    .r_t01 h3 {
        font-size: 18px;
        line-height: 44px;
    }
    .foot_toplist ul li {
        padding: 10px 0;
    }
    .foot_toplist ul li i {
        width: 24px;
        height: 24px;
        line-height: 24px;
        margin-right: 10px;
        font-size: 14px;
    }
    .foot_toplist ul li h3 {
        font-size: 16px;
        line-height: 24px;
    }

    /* 列表项 */
    .hhx_newCityCul li {
        height: auto !important;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-direction: column;
    }
    .hhx_newCityCul li b {
        width: 100% !important;
        height: auto;
        float: none;
        margin-bottom: 8px;
    }
    .hhx_newCityCul li b img {
        width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: cover;
    }
    .hhx_newCityCul li span {
        width: 100% !important;
        max-height: none !important;
        margin-left: 0 !important;
        float: none;
    }
    .hhx_newCityCul li span h3 {
        font-size: 16px;
        line-height: 1.4;
        height: auto;
        margin-bottom: 5px;
    }
    .hhx_newCityCul li span a:last-of-type {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    /* 标题栏 */
    .tit02line {
        padding: 12px 0;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    .tit02line h2, .tit02line h3 {
        font-size: 18px;
        padding-left: 12px;
        border-left-width: 4px;
        float: none;
        margin-right: 10px;
    }
    .tit02line .Newmore, .tit02line span {
        float: none;
        margin-left: auto;
    }

    /* 底部友情链接 */
    .hhx_newB_kindTit {
        margin: 30px 0 10px !important;
        display: block;
    }
    .hhx_newB_kindTit em {
        width: auto;
        float: none;
        display: block;
        margin-bottom: 10px;
        font-size: 18px;
        margin-right: 0;
    }
    .hhx_newB_kindTit_ul {
        display: flex;
        flex-wrap: wrap;
        height: auto;
    }
    .hhx_newB_kindTit ul li {
        width: auto;
        padding: 6px 12px;
        background: #f5f5f5;
        margin: 0 6px 6px 0;
        border-radius: 20px;
        line-height: 1.2;
    }
    .hhx_newB_kindCon {
        margin-bottom: 30px !important;
        width: 100% !important;
    }
    .hhx_newB_kindCon div {
        padding: 15px 10px !important;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 8px;
    }
    .hhx_newB_kindCon div a {
        width: auto;
        min-width: 80px;
        margin-bottom: 6px;
        padding: 4px 8px;
        background: #f9f9f9;
        border-radius: 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 返回顶部按钮 */
    .go-top {
        margin-left: 0 !important;
        right: 15px;
        left: auto;
        bottom: 70px;
        width: 44px;
        height: 44px;
        background-size: 18px;
        border-radius: 50%;
        background-color: rgba(51,136,255,0.8);
    }

    .banner760, .banner300, .hhx_tt_box {
        width: 100% !important;
    }

    .viewspot_01 h3 {
        font-size: 18px;
        padding: 5px 0;
    }

    .viewspot_pages a.b {
        padding: 0 10px !important;
    }
}

@media screen and (max-width: 480px) {
    .hhx_jd_mainContain a div p {
        font-size: 14px;
        line-height: 32px;
    }
    .selectnav-level1 {
        font-size: 13px;
        padding: 2px 8px !important;
    }
    .viewspot_pages a {
        min-width: 34px;
        height: 34px;
        line-height: 34px;
        font-size: 13px;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.clearfix:after, .g-clearfix:after {
    content: '';
    display: table;
    clear: both;
}