/* ========== 领导信箱列表页（ldxx.template.html）响应式适配 ========== */

/* 平板及以下（最大宽度 1024px） */
@media screen and (max-width: 1024px) {
    .p-content {
        width: 96% !important;
        padding: 15px;
        overflow: visible;
    }

    /* 左右两栏改为上下布局 */
    .m-listleft,
    .m-listright {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0;
    }

    /* 左侧说明区域优化 */
    .m-listleft h1 {
        width: 100%;
        box-sizing: border-box;
        font-size: 18px;
        padding: 0 15px;
        background-position: right 15px center;
    }

    .m-listleft-bd {
        width: 100% !important;
        min-height: auto;
        border: 1px solid #ddd;
        background: #fcfcfc;
        padding: 10px;
    }

    .is-wxtscon {
        font-size: 14px;
        line-height: 1.6;
    }

    .is-wxtscon p,
    .is-wxtscon strong,
    .is-wxtscon br {
        font-size: 14px;
    }

    /* 右侧信件区域 */
    .petionSearch {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 20px;
    }

    .petionSearch .write {
        float: none;
        text-align: right;
    }

    .petionSearch .write a {
        display: inline-block;
        width: auto;
        padding: 0 20px;
    }

    .petionSearch .searchBox {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .petionSearch .searchBox .hd {
        float: none;
        padding: 0;
        background: none;
        font-size: 14px;
    }

    .petionSearch .searchBox .bd {
        float: none;
        display: flex;
        gap: 10px;
        flex: 1;
    }

    .petionSearch .searchBox .keyword {
        width: auto;
        flex: 1;
        margin-right: 0;
    }

    .petionSearch .searchBox .searchsubmit {
        width: auto;
        padding: 0 20px;
    }

    /* 表格横向滚动 */
    .letterList {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-collapse: collapse;
    }

    /* 表格单元格内容不换行，保持表格结构 */
    .letterList th,
    .letterList td {
        white-space: nowrap;
    }

    /* 可选：调整表格内边距，适应小屏 */
    .letterList th,
    .letterList td {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* 手机屏幕（最大宽度 768px） */
@media screen and (max-width: 768px) {
    .p-content {
        padding: 12px;
    }

    .m-listleft h1 {
        font-size: 16px;
        height: 44px;
        line-height: 44px;
    }

    .is-wxtscon {
        font-size: 13px;
    }

    .petionSearch .searchBox .hd {
        font-size: 13px;
    }

    .petionSearch .searchBox .keyword {
        font-size: 13px;
        padding: 8px;
        width: auto;
    }

    .petionSearch .searchBox .searchsubmit {
        font-size: 14px;
        height: 40px;
        line-height: 40px;
    }

    /* 表格滚动时，字体略小 */
    .letterList th,
    .letterList td {
        font-size: 12px;
        padding: 6px 4px;
    }

    .letterList td.title a {
        font-size: 12px;
    }
}

/* 超小屏（最大宽度 480px） */
@media screen and (max-width: 480px) {
    .petionSearch {
        gap: 12px;
    }

    .petionSearch .searchBox .hd {
        margin-bottom: 5px;
    }

    .petionSearch .searchBox .bd {
        width: 100%;
    }

    .letterList th,
    .letterList td {
        font-size: 11px;
        padding: 5px 3px;
    }

    .letterList td.title a {
        font-size: 11px;
    }
}