.xzy-mmd-dialog {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    background: rgba(15, 31, 46, 0.58);
    display: none;
    justify-content: center;
    align-items: center;
}
.xzy-mmd-main {
    width: 980px;
    height: auto;
    max-height: 82vh;
    padding: 48px 50px 34px;
    background: rgba(232, 241, 248, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 2px;
    box-shadow: 0 18px 60px rgba(24, 49, 72, 0.24);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
}
.xzy-mmd-list {
    width: 100%;
    max-height: 560px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.xzy-mmd-item {
    min-height: 86px;
    padding: 18px 22px 16px 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}
.xzy-mmd-item::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 12px;
    width: 20px;
    height: 8px;
    border-top: 2px solid #c9d7e4;
    border-left: 2px solid #c9d7e4;
    transform: skewX(-28deg);
}
.xzy-mmd-item > div {
    flex: 1 1 auto;
    min-width: 0;
}
.xzy-mmd-item > div p:first-child {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #161b20;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.xzy-mmd-item > a,
.xzy-mmd-item > .disabled {
    width: 132px;
    height: 46px;
    flex: 0 0 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1263d8;
    border: 1px solid #2378ed;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.xzy-mmd-item > .disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.xzy-mmd-state {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c5d6d;
    font-size: 20px;
}
.xzy-mmd-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
    padding-top: 0;
}
.xzy-mmd-page-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.xzy-mmd-page-prev,
.xzy-mmd-page-next {
    min-width: 74px;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: #050505;
    color: #fff;
    font-size: 15px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}
.xzy-mmd-page-prev.disabled,
.xzy-mmd-page-next.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.xzy-mmd-page-item {
    width: auto;
    height: 28px;
    min-width: 16px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #7b8791;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    cursor: pointer;
}
.xzy-mmd-page-item.active {
    color: #1263d8;
    font-weight: 700;
}
.xzy-mmd-close {
    position: absolute;
    width: 42px;
    height: 42px;
    top: -54px;
    right: -54px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.72);
    cursor: pointer;
}
.xzy-mmd-close::before,
.xzy-mmd-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 2px;
    background: #fff;
    transform-origin: center;
}
.xzy-mmd-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.xzy-mmd-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
@media screen and (max-width: 640px) {
    .xzy-mmd-dialog {
        padding: 0 0.44rem;
    }
    .xzy-mmd-main {
        width: 92vw;
        max-height: 82vh;
        padding: 0.42rem 0.24rem 0.96rem;
    }
    .xzy-mmd-list {
        max-height: 62vh;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.18rem;
    }
    .xzy-mmd-item {
        min-height: 1.72rem;
        padding: 0.24rem 0.16rem 0.16rem;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.14rem;
    }
    .xzy-mmd-item::before {
        left: 0.1rem;
        top: 0.1rem;
        width: 0.22rem;
        height: 0.08rem;
    }
    .xzy-mmd-item > div {
        width: 100%;
        flex: 1 1 auto;
    }
    .xzy-mmd-item > div p:first-child {
        font-size: 0.26rem;
        margin: 0 0 0.06rem;
        text-align: left;
    }
    .xzy-mmd-item > a,
    .xzy-mmd-item > .disabled {
        width: 100%;
        height: 0.48rem;
        flex: 0 0 0.48rem;
        font-size: 0.22rem;
    }
    .xzy-mmd-state {
        min-height: 3rem;
        font-size: 0.28rem;
    }
    .xzy-mmd-pagination {
        gap: 0.16rem;
        flex-wrap: wrap;
        margin-top: 0.26rem;
    }
    .xzy-mmd-page-count {
        max-width: 100%;
        gap: 0.16rem;
        flex-wrap: wrap;
    }
    .xzy-mmd-page-prev,
    .xzy-mmd-page-next {
        min-width: 1.18rem;
        height: 0.44rem;
        padding: 0 0.12rem;
        font-size: 0.22rem;
        line-height: 0.44rem;
    }
    .xzy-mmd-page-item {
        height: 0.44rem;
        min-width: 0.2rem;
        padding: 0 0.02rem;
        font-size: 0.26rem;
        line-height: 0.44rem;
    }
    .xzy-mmd-close {
        width: 0.78rem;
        height: 0.78rem;
        left: 50%;
        right: auto;
        top: auto;
        bottom: 0;
        transform: translate(-50%, 110%);
    }
    .xzy-mmd-close::before,
    .xzy-mmd-close::after {
        width: 0.36rem;
    }
}
.xzy-mmd-item > a,
.xzy-mmd-item > .disabled,
.dialog.mmd-download .mmd-item > a,
.dialog.mmd-download .mmd-item > .disabled {
    width: 161px;
    height: auto;
    flex: 0 0 161px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.xzy-mmd-item > .disabled,
.dialog.mmd-download .mmd-item > .disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.xzy-mmd-item > a img,
.xzy-mmd-item > .disabled img,
.dialog.mmd-download .mmd-item > a img,
.dialog.mmd-download .mmd-item > .disabled img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}
@media screen and (max-width: 640px) {
    .xzy-mmd-item > a,
    .xzy-mmd-item > .disabled,
    .dialog.mmd-download .mmd-item > a,
    .dialog.mmd-download .mmd-item > .disabled {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        max-width: 1.72rem;
    }
    .xzy-mmd-item > a img,
    .xzy-mmd-item > .disabled img,
    .dialog.mmd-download .mmd-item > a img,
    .dialog.mmd-download .mmd-item > .disabled img {
        width: 100%;
        max-height: 0.48rem;
        object-fit: contain;
    }
}
.xzy-mmd-main,
.dialog.mmd-download .dialog-main {
    height: 620px;
    max-height: 82vh;
}
.xzy-mmd-list,
.dialog.mmd-download .mmd-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
}
.xzy-mmd-pagination,
.dialog.mmd-download .pagination-wrapper {
    flex: 0 0 auto;
    margin-top: auto;
}
@media screen and (max-width: 640px) {
    .xzy-mmd-main,
    .dialog.mmd-download .dialog-main {
        box-sizing: border-box;
        height: 9.28rem;
        max-height: calc(100vh - 1.28rem);
        padding-bottom: 0.72rem;
    }
}
.xzy-mmd-list,
.dialog.mmd-download .mmd-list {
    height: 456px;
    max-height: 456px;
    flex: 0 0 456px;
    align-content: start;
}
.xzy-mmd-item,
.dialog.mmd-download .mmd-item {
    height: 86px;
    min-height: 86px;
    max-height: 86px;
    overflow: hidden;
}
@media screen and (max-width: 640px) {
    .xzy-mmd-list,
    .dialog.mmd-download .mmd-list {
        height: 7.42rem;
        max-height: 7.42rem;
        flex: 0 0 7.42rem;
        overflow-y: hidden;
    }
    .xzy-mmd-item,
    .dialog.mmd-download .mmd-item {
        height: 1.72rem;
        min-height: 1.72rem;
        max-height: 1.72rem;
    }
}
@media screen and (min-width: 641px) {
    .xzy-mmd-main,
    .dialog.mmd-download .dialog-main {
        box-sizing: border-box;
        width: 1160px;
        height: 689px;
        max-width: calc(100vw - 80px);
        max-height: calc(100vh - 80px);
        padding: 98px 90px;
        background: url(./images/xzy_mmd_download_bg.png) center center
            no-repeat;
        background-size: 100% 100%;
        border: 0;
        box-shadow: none;
        justify-content: center;
    }
    .xzy-mmd-list,
    .dialog.mmd-download .mmd-list {
        height: 404px;
        max-height: 404px;
        flex: 0 0 404px;
        overflow-y: hidden;
    }
    .xzy-mmd-pagination,
    .dialog.mmd-download .pagination-wrapper {
        margin-top: 34px;
    }
    .xzy-mmd-state,
    .dialog.mmd-download .mmd-state {
        min-height: 404px;
    }
}
