/* main style */
html {
    font: 1em "Hiragino Sans GB","Microsoft YaHei","微软雅黑",STHeiti,"WenQuanYi Micro Hei",SimSun,sans-serif;
}

body {
    background-color: #edecec;
    color: #5e5e5e;
    margin: 0;
}

/* Reset default styles */
body, form, h1, h2, h3, h4, h5, ol, p, ul {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #673ab7;
}

/* Remove tap highlight for mobile devices */
a, button, input, textarea {
    -webkit-tap-highlight-color: transparent;
}

/* table main style */
table td {
    max-width: 300px;
}

/* header style*/
header {
    background-color: #ffffff;
    box-shadow: none!important;
    border-bottom: solid 1px #e0e0e0;
}

header .logo-img {
    height: 64px;
    width: 204px;
}

header .logo-img img {
    height: 64px;
    width: 204px;
}

/* Tab styles */
.tab {
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 5px;
    font-size: 12px;
    color: #fff;
}

.tab.pe {
    background: #4caf50;
}

/* left-menu style */
.left-menu {
    display: block;
    position: fixed!important;
    top: 65px;
    bottom: 0;
    width: 203px;
    height: auto;
    overflow-y: auto!important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none!important;
    -ms-overflow-style: none!important;
}

.left-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.left-menu .mbox {
    position: relative;
    overflow: visible;
    height: auto;
    min-height: 100%;
    padding-bottom: 24px;
    max-width: 100%;
    outline: 0;
    direction: ltr;
}

.left-menu .mbox::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.mobile-menu-toggle,
.mobile-menu-mask,
.mobile-menu-close {
    display: none;
}

/* main box style */
.main {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.box {
    padding: 0;
    z-index: 0;
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    height: auto;
}

/* mdui overrides */
.mdui-card {
    border-radius: 0!important;
}

.mdui-chip {
    border-radius: 0!important;
    border: 1px solid rgba(0,0,0,.12);
}

.mdui-list-item-icon~.mdui-list-item-content {
    margin-left: 16px;
}

.mdui-collapse-item-body .mdui-list-item {
    padding-left: 54px;
}

.mdui-collapse-item .mdui-list-item-avatar {
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    background: none;
    border-radius: 0;
}

.mdui-collapse-item .mdui-list-item-avatar img {
    border-radius: 0;
}

.mdui-card i.bg {
    position: absolute;
    right: -112px;
    color: #ffb64c;
    font-size: 326px;
    -webkit-text-stroke: 3px #ffc166;
    -moz-user-select: none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mdui-progress {
    border-radius: 0;
}

.mdui-btn i.mdui-icon {
    font-size: 13px;
}

.mdui-btn.mdui-btn-icon i.mdui-icon {
    font-size: 24px;
}

/* card styles */
.card-block {
    position: relative;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.15);
}

.mdui-card.login {
    position: relative;
    height: 120px;
    background: rgba(0,0,0,0.5) url(https://tietu.mclists.cn/img/tp_out.gif) no-repeat scroll left top/100% auto;
    display: block;
}

.mdui-card.login .bg-shadow {
    position: relative;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.mdui-card.title {
    font-size: 16px;
    line-height: 36px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.home-intro-card {
    overflow: hidden;
    padding: 24px 28px;
    border: 1px solid #e8e0f7;
    box-shadow: 0 8px 24px rgba(103, 58, 183, 0.06);
}

.home-intro-card {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.home-intro-accent {
    width: 72px;
    height: 4px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #673ab7 0%, #9575cd 100%);
}

.home-intro-card h2 {
    color: #2f2148;
    font-size: 30px;
    line-height: 1.2;
}

.home-intro-copy {
    max-width: 920px;
    font-size: 15px;
    line-height: 1.9;
}

.home-intro-search {
    display: flex;
    align-items: center;
    max-width: 760px;
    min-height: 52px;
    padding: 6px;
    border: 1px solid rgba(103, 58, 183, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-intro-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    color: #7e57c2;
}

.home-intro-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 15px;
}

.home-intro-search-input::placeholder {
    color: #9a8bb5;
}

.home-intro-search-btn {
    min-width: 104px;
    height: 40px;
    padding: 0 18px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* breadcrumb styles */
.breadcrumb>li {
    display: inline-block;
}

.breadcrumb>li>a {
    color: #a9a9a9;
    font-size: 90%;
}

.breadcrumb>li+li:before {
    content: "/\00a0";
    padding: 0 5px;
    color: #ccc;
}

/* server-list style */
.server-list .description {
    font-size: 14px;
    color: #333;
    line-height: 20px;
    opacity: .54;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-list a {
    display: inline-block;
    position: relative;
    padding: 0.5em 1em;
    background: #673ab7;
    margin: 5px;
    color: #ffffff;
}

.server-list strong {
    color: #673ab7;
}

.server-list td.version {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-list td .mdui-card-header-avatar {
    border-radius: 0px;
}

/* server info style */
.server-info .about img {
    margin-bottom: -8px;
}

.server-info .tag {
    display: inline;
    padding: .2em .6em .3em;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    header .logo-img {
        width: auto;
        max-width: 72vw;
        height: auto;
        font-size: 20px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .box,
    .mdui-container-fluid.box {
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        overflow-x: hidden;
    }

    .mdui-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mdui-col-md-2,
    .mdui-col-md-4,
    .mdui-col-md-8,
    .mdui-col-md-10,
    .mdui-col-md-12 {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .menu-column {
        width: 0 !important;
        min-height: 0;
        padding: 0 !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        margin-right: 6px;
    }

    .mobile-menu-mask {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 12, 35, 0.38);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 9998;
    }

    .left-menu {
        position: fixed !important;
        top: 64px;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        max-width: 320px;
        margin-bottom: 0;
        background: #fff;
        overflow-y: auto !important;
        overflow-x: hidden;
        transform: translateX(-108%);
        transition: transform 0.24s ease;
        z-index: 9999;
        box-shadow: 0 12px 30px rgba(18, 11, 42, 0.18);
    }

    .left-menu .mbox {
        min-height: 0;
        padding-bottom: 18px;
    }

    .left-menu .login {
        margin-bottom: 8px;
    }

    .mobile-menu-close {
        display: inline-flex;
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;
        background: rgba(255, 255, 255, 0.92);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .left-menu {
        transform: translateX(0);
    }

    body.mobile-menu-open .mobile-menu-mask {
        opacity: 1;
        pointer-events: auto;
    }

    .home-intro-card {
        padding: 18px 16px;
    }

    .home-intro-card h2 {
        font-size: 24px;
    }

    .mdui-chip {
        max-width: 100%;
    }

    .home-intro-search {
        flex-wrap: wrap;
        padding: 10px;
    }

    .home-intro-search-icon {
        width: 32px;
    }

    .home-intro-search-input {
        width: calc(100% - 32px);
        margin-bottom: 8px;
    }

    .home-intro-search-btn {
        width: 100%;
        min-width: 0;
    }

    .server-list {
        overflow-x: hidden;
    }

    .server-list .mdui-table,
    .server-list table,
    .server-list tbody,
    .server-list tr[sid],
    .server-list tr[sid] td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .server-list .mdui-table,
    .server-list table {
        min-width: 0 !important;
        table-layout: fixed !important;
        border-spacing: 0;
    }

    .server-list tr[sid] {
        display: flex !important;
        flex-direction: column;
        padding: 10px 0;
        border-bottom: 1px solid #ece7f7;
    }

    .server-list tr[sid] td {
        box-sizing: border-box;
        padding: 6px 8px !important;
        border: 0 !important;
        white-space: normal !important;
        text-align: left !important;
        min-width: 0 !important;
    }

    .server-list tr[sid] td:first-child {
        padding-bottom: 0 !important;
    }

    .server-list tr[sid] td .mdui-card-header-avatar {
        width: 44px;
        height: 44px;
        margin-right: 10px;
        float: left;
    }

    .server-list .description {
        font-size: 12px;
        line-height: 1.5;
    }

    .server-list strong {
        font-size: 14px;
        word-break: break-all;
    }

    .server-list td.version {
        max-width: none;
    }

    .server-list .mdui-progress {
        margin-top: 6px;
    }

    .server-list tr td[colspan] {
        text-align: center !important;
    }

    .server-list tr[sid] td:last-child a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .panel,
    .panel-body,
    .center {
        max-width: 100%;
        overflow: hidden;
    }

    .panel-body img,
    .panel-body iframe,
    .panel-body embed,
    .panel-body object,
    .panel-body video {
        max-width: 100% !important;
        height: auto !important;
    }

    .owl-carousel,
    .owl-wrapper-outer,
    .owl-wrapper,
    .owl-item,
    .swiper-container,
    .swiper-wrapper,
    .swiper-slide {
        max-width: 100% !important;
    }

    .owl-prev,
    .owl-next,
    .swiper-button-prev,
    .swiper-button-next {
        transform: scale(0.8);
    }

    .plugin-card,
    .plugin-detail-hero,
    .plugin-hub-hero,
    .mod-detail-hero,
    .mod-hub-hero {
        overflow: hidden;
    }

    .plugin-detail-columns,
    .mod-detail-columns,
    .mod-detail-layout {
        display: block !important;
    }

    .plugin-detail-main,
    .plugin-detail-side,
    .mod-detail-main,
    .mod-detail-side {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}

.tag.在线 {
    background-color: #4caf50;
}

.tag.离线 {
    background-color: #f44336;
}

.server-info .mdui-text-right {
    color: #9e9e9e;
}

.server-info .mdui-text-left {
    color: #5e5e5e;
}

/* server-status */
.server-status img.favicon {
    /* Add styles here if needed */
}

/* point-info styles */
.point-info sid,
.point-info point {
    font-weight: 600;
    color: #000000;
}

.point-info money {
    font-weight: 600;
    color: #ff5722;
}

/* shop styles */
.footer {
    position: relative;
    border-top: 1px solid #e0e0e0;
}

/* skin styles */
.skin-list .item {
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    margin-bottom: 24px;
}

.skin-input-loading {
    background-color: #ffffffde!important;
    position: absolute;
    width: 100%;
    z-index: 999;
    height: 100%;
    max-height: 10em;
}

/* servers-list styles */
.servers-list {
    position: relative;
}

.servers-list .item {
    border-bottom: 1px solid #f0f0f0;
    -webkit-transition-duration: 300ms;
    transition-duration: 300ms;
}

.servers-list .item:hover {
    background-color: rgba(7,70,118,.07);
}

.servers-list .item .server-icon {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    float: left;
}

.servers-list .item .body {
    zoom: 1;
    display: block;
    width: auto;
    vertical-align: top;
    overflow: hidden;
}

.servers-list .item .body .title {
    font-size: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.servers-list .item .body .ip {
    height: 30px;
    font-size: 13px;
    line-height: 30px;
    font-weight: 400;
}

/* pe tag style */
.pe {
    background-color: #25a813;
    padding: 0 6px;
    color: #ffffff;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 15px;
}

/* animations */
@keyframes topA {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
