/* 用户讨论模块：小屏幕（<=1100px）  20261103 */

@media screen and (max-width:1100px) {

    /* 页面整体不滚动，仅问答列表区域内部滚动 */
    html, body {
        height: 100%;
        overflow: hidden;
        background-color: #f7f2ea;
    }

    /* 顶部导航栏固定在页面顶部 */
    .page-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    /* 以下是提问输入区 */
    .ask-area {
        position: fixed;
        top: 160px;
        left: 0;
        right: 0;
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 50;
    }

    .ask-form {
        width: 92vw;
        height: 112px;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
    }

    .ask-form textarea {
        flex: 1;
        box-sizing: border-box;
        height: 112px;
        padding: 10px 12px;
        font-size: 26px;
        line-height: 42px;
        letter-spacing: 1px;
        color: #333333;
        background-color: #ffffff;
        border: 2px solid #b9a58a;
        border-radius: 10px;
        resize: none;
        overflow-y: auto;
        outline: none;
    }

    .ask-form textarea:focus {
        border-color: #c0392b;
    }

    .ask-form input[type="submit"] {
        box-sizing: border-box;
        width: 100px;
        height: 112px;
        font-size: 28px;
        color: #ffffff;
        background-color: #c0392b;
        border-radius: 10px;
        cursor: pointer;
    }

    .ask-form input[type="submit"]:disabled {
        background-color: #b7a6a0;
        cursor: default;
    }

    .ask-error {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 138px;
        width: 92vw;
        padding: 8px 12px;
        font-size: 24px;
        color: #c0392b;
        background-color: #fff3f2;
        border: 1px solid #e6b3ad;
        border-radius: 8px;
        display: none;
        z-index: 60;
    }

    .ask-error.show {
        display: block;
    }

    /* 以下是问答列表区 */
    .ask-list {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        top: 314px;
        width: 92vw;
        height: calc(100vh - 326px);
        padding: 14px;
        background-color: #fdf9f4;
        border: 1px solid #e5d8c6;
        border-radius: 12px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .qa-item {
        padding: 12px 14px;
        margin-bottom: 14px;
        background-color: #ffffff;
        border: 1px solid #e1d3c0;
        border-left: 6px solid #c0392b;
        border-radius: 10px;
    }

    .qa-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 22px;
        color: #8a7a66;
    }

    .qa-no {
        font-weight: bold;
        color: #c0392b;
    }

    .qa-user {
        padding: 1px 10px;
        font-size: 22px;
        color: #ffffff;
        background-color: #c0392b;
        border-radius: 4px;
    }

    .qa-ansname {
        background-color: #2e6da4;
    }

    .qa-text {
        margin: 8px 0;
        font-size: 28px;
        line-height: 1.8;
        letter-spacing: 2px;
        color: #333333;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .qa-foot {
        text-align: right;
    }

    .qa-ansbtn {
        padding: 4px 22px;
        font-size: 26px;
        color: #c0392b;
        background-color: #ffffff;
        border: 1px solid #c0392b;
        border-radius: 6px;
        cursor: pointer;
    }

    .qa-answers {
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px dashed #d8c8b4;
    }

    .qa-answer {
        margin-top: 10px;
        padding: 10px 12px;
        background-color: #f4f8fc;
        border-left: 3px solid #2e6da4;
        border-radius: 6px;
    }

    .qa-noans {
        margin-top: 8px;
        padding: 4px 0 4px 12px;
        font-size: 24px;
        color: #a99a86;
    }

    .qa-empty {
        margin-top: 40px;
        text-align: center;
        font-size: 28px;
        color: #8a7a66;
    }

    /* 以下是回答弹出框 */
    .modal-mask {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .modal-mask.show {
        display: flex;
    }

    .modal-box {
        box-sizing: border-box;
        width: 92vw;
        padding: 18px;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
    }

    .modal-title {
        margin-bottom: 12px;
        font-size: 28px;
        font-weight: bold;
        color: #c0392b;
    }

    .modal-box textarea {
        box-sizing: border-box;
        width: 100%;
        height: 220px;
        padding: 10px 12px;
        font-size: 26px;
        line-height: 1.7;
        letter-spacing: 1px;
        color: #333333;
        background-color: #ffffff;
        border: 2px solid #b9a58a;
        border-radius: 8px;
        resize: none;
        overflow-y: auto;
        outline: none;
    }

    .modal-error {
        min-height: 32px;
        margin-top: 6px;
        font-size: 24px;
        color: #c0392b;
    }

    .modal-btns {
        display: flex;
        justify-content: flex-end;
        gap: 14px;
    }

    .modal-btns input[type="submit"],
    .modal-btns button {
        padding: 8px 26px;
        font-size: 28px;
        border-radius: 8px;
        cursor: pointer;
    }

    .modal-btns input[type="submit"] {
        color: #ffffff;
        background-color: #c0392b;
    }

    .modal-btns button {
        color: #333333;
        background-color: #eeeeee;
    }
}
