@media (max-width: 767px), (max-width: 960px) and (pointer: coarse) {
    html {
        min-width: 0 !important;
    }

    body.mc-mobile-ready {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        overflow-x: clip !important;
        background: #fff;
        -webkit-text-size-adjust: 100%;
    }

    body.mc-mobile-ready .mc-server-header,
    body.mc-mobile-ready .friendswrap,
    body.mc-mobile-ready .mc-microsoft,
    body.mc-mobile-ready .mck-backtop {
        display: none !important;
    }

    body.mc-mobile-ready #mc-page-scroll {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.mc-mobile-ready #container,
    body.mc-mobile-ready :is(.container, .w1000, .w1200) {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-inline: auto !important;
    }

    body.mc-mobile-ready.mck-site > .mck-main {
        min-height: 0;
        padding-top: 0 !important;
    }

    /* Color, branding and two-row arrangement from the archived mobile site. */
    body.mc-mobile-ready > .mc-mobile-header {
        display: block !important;
        position: relative;
        z-index: 20;
        color: #fff;
        background: #16ac0f;
    }

    .mc-mobile-header,
    .mc-mobile-header * {
        box-sizing: border-box;
    }

    .mc-mobile-header a,
    .mc-mobile-header a:visited {
        text-decoration: none;
    }

    .mc-mobile-top {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 46px;
        padding: 4px 12px;
    }

    .mc-mobile-logo {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1 0 auto;
        align-self: stretch;
        color: #fff !important;
        line-height: 1;
    }

    .mc-mobile-logo b {
        font: 700 21px/1.1 "Microsoft YaHei", sans-serif;
    }

    .mc-mobile-logo span {
        margin-top: 2px;
        font: 9px/1.1 Arial, sans-serif;
    }

    .mc-mobile-search {
        display: flex;
        align-items: stretch;
        width: min(44vw, 260px);
        height: 34px;
        border-radius: 3px;
        background: #157b11;
    }

    .mc-mobile-search input {
        width: 0;
        flex: 1 1 auto;
        padding: 0 0 0 9px;
        border: 0;
        color: #fff;
        background: transparent;
        font-size: 16px;
    }

    .mc-mobile-search input::placeholder {
        color: #c1ecc0;
        font-size: 13px;
    }

    .mc-mobile-search button {
        width: 35px;
        padding: 0;
        border: 0;
        background: url("../image/mobile-search.png") center / 16px no-repeat;
    }

    .mc-mobile-signin {
        padding: 7px 0 7px 2px;
        color: #fff !important;
        font-size: 13px;
        white-space: nowrap;
    }

    .mc-mobile-account {
        position: relative;
        flex: 0 0 auto;
    }

    .mc-mobile-account summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        min-height: 38px;
        list-style: none;
        cursor: pointer;
    }

    .mc-mobile-account summary::-webkit-details-marker {
        display: none;
    }

    .mc-mobile-account summary img {
        border-radius: 50%;
        object-fit: cover;
    }

    .mc-mobile-account-menu {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 2;
        min-width: 118px;
        border: 1px solid #dedede;
        background: #fff;
    }

    .mc-mobile-account-menu a,
    .mc-mobile-account-menu button {
        display: block;
        min-height: 38px;
        padding: 9px 12px;
        border: 0;
        color: #444 !important;
        background: #fff;
        font-size: 14px;
        text-align: left;
        white-space: nowrap;
    }

    .mc-mobile-nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 0 3px;
    }

    .mc-mobile-nav a {
        min-height: 33px;
        border-top: 2px solid transparent;
        color: #b7efb3 !important;
        font-size: 14px;
        line-height: 31px;
        text-align: center;
        white-space: nowrap;
    }

    .mc-mobile-nav a[aria-current="true"] {
        border-top-color: #fff;
        color: #fff !important;
        font-weight: 600;
    }

    body.mc-mobile-ready .footer {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 0 !important;
        transform: none !important;
    }

    body.mc-mobile-ready .footer .footer-top,
    body.mc-mobile-ready .footer-btm .ft-btm-wrap {
        height: auto !important;
    }

    body.mc-mobile-ready .footer .footer-top > .container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 20px;
        padding: 14px 16px;
    }

    body.mc-mobile-ready .footer .footer-top dl {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        float: none !important;
    }

    body.mc-mobile-ready .footer .footer-top :is(dt, dd) {
        width: auto !important;
        height: auto;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-ready .footer .footer-top > .container::before,
    body.mc-mobile-ready .footer .footer-top > .container::after {
        display: none;
    }

    body.mc-mobile-ready .footer :is(.ftweixin, .shortcut, .ft-top-btm) {
        display: none !important;
    }

    body.mc-mobile-ready .footer-btm .ft-btm-wrap > div {
        width: 100% !important;
    }

    body.mc-mobile-ready .footer-btm .copyright {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        height: auto !important;
        padding: 12px 16px;
        margin-top: 0 !important;
    }

    body.mc-mobile-ready .footer-btm .copyright span {
        margin: 0 !important;
        float: none !important;
    }

    .mc-mobile-page .mck-main > .container,
    .mc-mobile-page .mck-main > .w1000 {
        padding-inline: 12px;
    }

    .mc-mobile-page :is(.mck-search-big, .mck-auth-card, .mck-login-box, .mck-profile-edit) {
        width: 100% !important;
        max-width: 100%;
    }

    .mc-mobile-page .mck-search-big input {
        min-width: 0;
        font-size: 16px;
    }

    .mc-mobile-page :is(.mck-search-suggest, .mck-user-grid, .mck-hub-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mc-mobile-page .mck-about-grid {
        display: block;
    }

    .mc-mobile-page .mck-about-grid .mck-article {
        padding: 16px;
    }

    .mc-mobile-page :is(.mck-article, .mck-panel, .mck-profile-bio) {
        overflow-wrap: anywhere;
    }

    body.mc-mobile-ready .mck-pagination {
        flex-wrap: wrap;
    }

    body.mc-mobile-ready .mck-crumb {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-thread .mck-thread-page {
        padding: 0 10px 16px;
    }

    body.mc-mobile-thread .mck-thread-page .mck-thread-main {
        float: none;
        width: 100%;
    }

    body.mc-mobile-thread .mck-thread-aside {
        display: none;
    }

    body.mc-mobile-thread .mck-thread-head {
        padding: 13px 12px;
    }

    body.mc-mobile-thread .mck-thread-head h1 {
        font-size: 20px;
    }

    body.mc-mobile-thread .mck-thread-head-meta {
        gap: 6px 10px;
    }

    body.mc-mobile-thread .mck-post {
        display: block;
    }

    body.mc-mobile-thread .mck-post-author {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 38px;
        padding: 5px 10px;
        border: 0;
        border-bottom: 1px solid #eee;
    }

    body.mc-mobile-thread .mck-post-first .mck-post-author,
    body.mc-mobile-thread .mck-post-author dl {
        display: none;
    }

    body.mc-mobile-thread .mck-post-avatar img {
        width: 27px;
        height: 27px;
        margin: 0;
    }

    body.mc-mobile-thread .mck-post-body,
    body.mc-mobile-thread .mck-reply-box {
        padding: 12px;
    }

    body.mc-mobile-thread .mck-reply-box h2 {
        color: #168c16;
    }

    body.mc-mobile-thread :is(.mck-post-meta, .mck-post-foot) {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    body.mc-mobile-thread .mck-post-content {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-thread :is(.mck-post-content, .mck-post-cover) :is(img, video, iframe) {
        max-width: 100% !important;
    }

    body.mc-mobile-thread :is(.mck-post-content, .mck-post-cover) img {
        height: auto !important;
    }

    body.mc-mobile-thread .mck-post-content :is(pre, table) {
        max-width: 100%;
        overflow-x: auto;
    }

    body.mc-mobile-thread .mck-ue-wrap {
        min-width: 0;
        max-width: 100%;
    }

    body.mc-mobile-thread .edui-editor {
        max-width: 100% !important;
    }

    /* Compact account header and archived work/mark pages. */
    body.mc-mobile-profile .header {
        display: none !important;
    }

    body.mc-mobile-profile :is(.home, .container > .leftArea, .container > .rightArea, .homeMark, .visitorbox) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        margin-inline: 0 !important;
        float: none !important;
    }

    body.mc-mobile-profile .home > .fourbox {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    body.mc-mobile-profile .userbox {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        width: 100% !important;
        height: auto !important;
        padding: 12px;
    }

    body.mc-mobile-profile .userbox .onebox {
        position: relative;
        width: auto !important;
        height: auto !important;
        min-width: 0;
        float: none !important;
    }

    body.mc-mobile-profile .userbox .userimg {
        display: block;
        height: 64px !important;
    }

    body.mc-mobile-profile .userbox .userimg img {
        display: block;
        width: 56px;
        height: 56px;
        margin: 0 auto;
        border-radius: 50%;
        object-fit: cover;
    }

    body.mc-mobile-profile .userbox .level {
        inset: auto 0 0 !important;
        width: fit-content;
        margin: 0 auto !important;
        padding: 2px 8px;
        font-size: 11px;
        line-height: 1.3;
    }

    body.mc-mobile-profile .userbox .username :is(.name, .class) {
        position: static;
        width: auto;
        margin: 4px 0;
        font-size: 16px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-profile .userbox :is(.usersign, .markit) {
        grid-column: 1 / -1;
    }

    body.mc-mobile-profile .userbox :is(.table, .table-cell) {
        width: 100% !important;
        height: auto !important;
        padding: 4px 0;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-profile .userbox .markit a {
        display: block;
        min-height: 36px;
        line-height: 36px;
    }

    body.mc-mobile-profile .visitorbox {
        min-height: 110px;
        height: auto !important;
        padding: 12px;
    }

    body.mc-mobile-profile :is(.visitorbox, .keepgobox) p {
        width: auto !important;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-profile .gonum {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: auto !important;
    }

    body.mc-mobile-profile .gonum > div {
        width: auto !important;
    }

    body.mc-mobile-profile .container > .rightArea ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    body.mc-mobile-profile .homeMark {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 12px 16px;
    }

    body.mc-mobile-profile .homeMark .pagebox {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        position: static !important;
        margin-inline: 0 !important;
    }

    body.mc-mobile-profile .homeMark :is(.tabmenu, .tabwrap, .pagebox, .userdata, .showdata) {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    body.mc-mobile-profile .homeMark :is(.tabmenu, .showdata, .pagebox) {
        height: auto !important;
        min-height: 0;
    }

    body.mc-mobile-profile .homeMark .tabmenu em {
        display: inline-block;
        width: auto !important;
        margin: 0 10px 0 0;
        white-space: normal;
    }

    body.mc-mobile-profile .homeMark .floor {
        display: flex;
        height: auto !important;
        gap: 8px;
    }

    body.mc-mobile-profile .homeMark .floor .userdata {
        min-width: 0;
    }

    body.mc-mobile-profile .homeMark :is(.tabwrap h4, .tabwrap h4 a, .showdata span) {
        width: auto !important;
        height: auto !important;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-forum .mck-rules-wrap {
        box-sizing: border-box;
        width: 100%;
        padding: 14px 12px 24px;
    }

    body.mc-mobile-forum .mck-rules-body {
        padding: 14px;
        overflow-wrap: anywhere;
    }

    body.mc-mobile-forum .mck-rules-rich :is(div, p, pre, img, table, iframe) {
        max-width: 100% !important;
    }

}
