@media (max-width: 992px) {
    .none-Mobile {
        display: none !important;
    }

    .width-auto {
        width: 100% !important;
    }

    /* 封面 */
    .img-article {
        display: none !important;
    }

    /* 问答卡片的操作栏缩小gap */
    .gap-mob {
        gap: 10px !important;
        white-space: nowrap;
    }

    .post .Commentinformation {
        white-space: nowrap;
        gap: 5px !important;
    }

    /* 帖子 */
    .Label-tag {
        white-space: nowrap;
        gap: 0 !important;
    }

    .le-doem a {
        padding: 0 !important;
        background: transparent !important;
    }

    .article-Text .graplist .grid .lsit-box {
        width: calc((100% - 16px * 4) / 5) !important;
        height: 55px !important;
    }

    .article-Text .graplist .grid {
        justify-content: space-between
    }

    /* 个人主页 */
    .column {
        flex-direction: column;
    }

    .user-contaienr .user-data .user-avaimg {
        display: none !important;
    }

    /* 帖子 */
    .user-span span { 
         /*display: inline-block !important;  */
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-transition: color .2s ease;
        transition: color .2s ease;
        white-space: nowrap;
        max-width: 180px !important;
    }
    /* info */
    .info-data-s[badge]{
         white-space: nowrap;
    }
    .ant-list-item-meta-title .gap-5{
         white-space: nowrap;
    }
    /* 登录按钮 */
    .btn-login{
        margin-right: 0 !important;
    }

    /* 热门榜单 */
    .column-reverse{
            flex-direction: column-reverse;
    }
     /* 问答卡片昵称在移动端会超出 */
    .user-Commentinformation .user-name{
        display: none;
    }
}






/* 移动端优化样式 - 简洁美观版 */
@media screen and (max-width: 768px) {

    /* 基础布局调整 */
    header nav {
        padding: 0 12px;
        height: 56px;
        position: relative;
    }

    header nav .logo {
        width: 100px;
        height: 25px;
        margin-left: 40px;
    }

    /* 汉堡菜单按钮 */
    .mobile-menu-toggle {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1002;
        transition: background 0.2s;
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

    /* 移动端搜索按钮 */
    .mobile-search-toggle {
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin-right: 8px;
        transition: background 0.2s;
    }

    .mobile-search-toggle:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

    .mobile-search-toggle svg {
        width: 20px;
        height: 20px;
    }

    /* 隐藏桌面端元素 */
    .desktop-search,
    .desktop-release,
    .desktop-user-name {
        display: none !important;
    }

    /* 显示移动端元素 */
    .mobile-release {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background-color: var(--logo, #0072ff);
        color: white;
        transition: opacity 0.2s;
    }

    .mobile-user-name {
        display: flex !important;
        align-items: center;
        font-size: 14px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 500;
        color: #333;
    }

    /* 移动端导航菜单（卡片式设计） */
    .nav-list {
        position: fixed;
        top: 56px;
        left: 0;
        width: 280px;
        height: calc(100vh - 56px);
        background: #ffffff;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 16px 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
        transform: translateX(-999px);
        transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1001;
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
    }

    .nav-list.active {
        transform: translateX(0);
    }

    /* 滚动条美化 */
    .nav-list::-webkit-scrollbar {
        width: 4px;
    }

    .nav-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .nav-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .nav-list>li {
        width: 100%;
        list-style: none;
    }

    .nav-list>li>a {
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 500;
        color: #1f2d3d;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: background 0.2s, color 0.2s;
        border-radius: 0;
        margin: 0 4px;
    }

    header nav .nav-list>li>a::before {
        display: none;
    }

    /* 移动端二级菜单 */
    .nav-list>li .submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: none;
        min-width: 0 !important;
        border-radius: 0 !important;
        background-color: #f8fafc !important;
        margin-top: 4px;
    }

    .nav-list>li.active .submenu {
        display: block !important;
    }

    .nav-list>li .submenu li {
        padding: 0;
    }

    .nav-list>li .submenu a {
        padding: 12px 20px 12px 44px;
        font-size: 14px;
        color: #4a5568;
        display: block;
        transition: background 0.2s, padding-left 0.2s;
        border-radius: 0;
        margin: 0 4px;
    }

    .nav-list>li .submenu a:active {
        background-color: rgba(0, 114, 255, 0.05);
        padding-left: 52px;
    }

    .about-trigger {
        position: relative;
    }

    .about-trigger::after {
        content: '▼';
        font-size: 10px;
        margin-left: 12px;
        transition: transform 0.25s ease;
        display: inline-block;
        /* 确保可以旋转 */
        opacity: 0.7;
        color: #7c8b9a;
    }

    /* 确保 active 状态下箭头旋转 */
    .nav-list>li.active>a.about-trigger::after {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--logo);
    }

    /* 用户区域调整 */
    .user-btnafr {
        margin-left: 0px !important;
        gap: 8px !important;
    }

    .user-group {
        position: static;
    }

    .user-btnafr .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* 消息图标 */
    .fili-tight {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .fili-tight:active {
        background-color: rgba(0, 0, 0, 0.04);
    }

    /* 遮罩层（更柔和） */
    .mobile-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        z-index: 1000;
        display: none;
        transition: opacity 0.2s;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* 移动端搜索弹窗（保持简洁） */
    .mobile-search-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 1003;
        display: none;
        animation: fadeIn 0.2s ease;
    }

    .mobile-search-modal.active {
        display: block;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .search-modal-header {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #edf2f7;
        background: white;
    }

    /* 搜索按钮 */
    .mobile-search-submit {
        margin-left: 8px;
        background-color: var(--logo, #0072ff);
        border: none;
        color: white;
        padding: 0 16px;
        height: 44px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-search-submit:active {
        background-color: #005fcc;
    }

    .mobile-search-input {
        flex: 1;
        height: 44px;
        padding: 0 16px;
        border: 1px solid #e2e8f0;
        border-radius: 30px;
        font-size: 16px;
        outline: none;
        transition: border 0.2s;
        background: #f8fafc;
    }

    .mobile-search-input:focus {
        border-color: #0072ff;
        background: white;
    }

    .mobile-search-close {
        margin-left: 12px;
        background: none;
        border: none;
        color: #64748b;
        font-size: 16px;
        cursor: pointer;
        width: 44px;
        height: 44px;
        border-radius: 30px;
        transition: background 0.2s;
    }

    .mobile-search-close:active {
        background: #f1f5f9;
    }

    .search-modal-content {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
        z-index: 1000;
        overflow: hidden;
        animation: dropdownFadeIn 0.2s ease;
        border: 1px solid rgba(0, 0, 0, 0.04);
    }

    /* 桌面端搜索下拉面板隐藏 */
    .search-dropdown {
        display: none !important;
    }

    /* 覆盖原有的大搜索框样式 */
    header .Search {
        display: none;
    }

    header .user-btnafr .btn-Release {
        border-radius: 30px;
        background-color: var(--logo);
        color: white;
        border: none;
        padding: 0px !important;
    }

    .user-name .badge {
        display: none;
    }

    /* 确保导航菜单flex正常 */
    header nav .nav-list {
        display: flex !important;
        margin-left: 0 !important;
        gap: 0;
        align-items: stretch !important;
        gap: 15px !important;
        height: auto !important;
        line-height: normal !important;
    }

    /* 用户头像区域二级菜单调整 */
    .user-btnafr .submenu {
        right: 1;
        left: auto;
    }
}

/* 小手机 (≤480px) 进一步优化 */
@media screen and (max-width: 480px) {
    .mobile-user-name {
        display: none !important;
    }

    .user-btnafr {
        gap: 4px;
    }

    .nav-list {
        width: 260px;
    }

    .nav-list>li>a {
        padding: 10px 16px;
        font-size: 14px;
    }

    .nav-list>li .submenu a {
        padding: 10px 16px 10px 40px;
        font-size: 13px;
    }
}

/* 桌面端样式调整（保持不变） */
@media screen and (min-width: 769px) {

    .mobile-menu-toggle,
    .mobile-search-toggle,
    .mobile-search-modal,
    .mobile-release,
    .mobile-user-name,
    .mobile-overlay {
        display: none !important;
    }

    .nav-list {
        display: flex !important;
    }

    .desktop-search,
    .desktop-release,
    .desktop-user-name {
        display: flex !important;
    }
}

/* 平板设备适配 */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .nav-list {
        width: 320px;
    }

    .logo {
        width: 120px;
        height: 30px;
    }
}