@charset "UTF-8";

.sdblue {
    color: #637599;
}

:root {
    --global-white: #F0F6FC;
    --sdblue: #637599;
    --sec-sdblue: #9aa8c5;
    --font-color: #545454;
    --background-color: #fff;
    --sec-background-color: #f6f6f6;
    --sdblue-background-color: #f1f3f6;
    --blur-backdrop-color: rgba(255,255,255,0.72);
    --selection: #d3d3d3;
}

@media (prefers-color-scheme: dark) {
    :root {
        --sdblue: #9BB9F0;
        --sec-sdblue: #4a6da5;
        --font-color: #F0F6FC;
        --background-color: #0D1117;
        --sec-background-color: #161B22;
        --sdblue-background-color: #1E2533;
        --blur-backdrop-color: rgba(13,17,23,0.72);
        --selection: #37445e;
    }
}


/* 样式格式化*/

body,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6,
p,
th,
td,
dl,
dd,
form,
fieldset,
legend,
input,
textarea,
select,
div,
figure {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* https://developer.harmonyos.com/cn/docs/design/font-0000001157868583 */
@font-face {
    font-family: 'HarmonyOS Sans';
    src: url('assets/fonts/HarmonyOS_Sans.eot');
    src: url('assets/fonts/HarmonyOS_Sans.eot?#iefix') format('embedded-opentype'),
        url('assets/fonts/HarmonyOS_Sans.woff2') format('woff2'),
        url('assets/fonts/HarmonyOS_Sans.woff') format('woff'),
        url('assets/fonts/HarmonyOS_Sans.ttf') format('truetype'),
        url('assets/fonts/HarmonyOS_Sans.svg#HarmonyOS_Sans') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;
    font-family: 'HarmonyOS Sans';
    color: var(--font-color);
    background: var(--background-color);
}

/* MC 风格字体相关 */

.c-mc-0 {
    color: #000000;
    text-shadow: 0.125em 0.125em 0 #000000;
}

.c-mc-1 {
    color: #0000AA;
    text-shadow: 0.125em 0.125em 0 #00002A;
}

.c-mc-2 {
    color: #00AA00;
    text-shadow: 0.125em 0.125em 0 #002A00;
}

.c-mc-3 {
    color: #00AAAA;
    text-shadow: 0.125em 0.125em 0 #002A2A;
}

.c-mc-4 {
    color: #AA0000;
    text-shadow: 0.125em 0.125em 0 #2A0000;
}

.c-mc-5 {
    color: #AA00AA;
    text-shadow: 0.125em 0.125em 0 #2A002A;
}

.c-mc-6 {
    color: #FFAA00;
    text-shadow: 0.125em 0.125em 0 #402A00;
}

.c-mc-7 {
    color: #AAAAAA;
    text-shadow: 0.125em 0.125em 0 #2A2A2A;
}

.c-mc-8 {
    color: #555555;
    text-shadow: 0.125em 0.125em 0 #151515;
}

.c-mc-9 {
    color: #5555FF;
    text-shadow: 0.125em 0.125em 0 #15153F;
}

.c-mc-a {
    color: #55FF55;
    text-shadow: 0.125em 0.125em 0 #153F15;
}

.c-mc-b {
    color: #55FFFF;
    text-shadow: 0.125em 0.125em 0 #153F3F;
}

.c-mc-c {
    color: #FF5555;
    text-shadow: 0.125em 0.125em 0 #3F1515;
}

.c-mc-d {
    color: #FF55FF;
    text-shadow: 0.125em 0.125em 0 #3F153F;
}

.c-mc-e {
    color: #FFFF55;
    text-shadow: 0.125em 0.125em 0 #3F3F15;
}

.c-mc-f {
    color: #FFFFFF;
    text-shadow: 0.125em 0.125em 0 #3F3F3F;
}

@font-face {
    font-family: "Unifont";
    src: url("/assets/fonts/unifont-17.0.03.woff2") format("woff2")
}

::selection {
    background: var(--selection);
    color: inherit;
}

.container {
    _width:375px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

@media screen and (min-width: 2560px) {
    .container {
        max-width: 70vw;
    }
}

h1.title,
h2.title {
    margin: 40px 0 0 0;
    font-size: 25px;
    text-align: center;
    color: var(--font-color);
    text-transform: uppercase;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
    letter-spacing: 3px;
    color: var(--font-color);
    opacity: .8;
}

p.text {
    color: var(--font-color);
    font-size: 14px;
    letter-spacing: 2px;
    text-align: center;
    margin: 20px 0;
}

/* NAV-BOX */
.nav-box {
    height: 50px;
    display: block;
    background-color: var(--background-color);
    background-color: var(--blur-backdrop-color);
    backdrop-filter: saturate(180%) blur(20px);
    /*border-bottom: 1px solid rgba(128,128,128,0.16);*/
    position: fixed;
    width: 100vw;
    z-index: 114514;
    outline: none;
}

.nav-box .nav-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.nav-box .logo {
    height: 50px;
    width: auto;
    padding: 10px 0;
    box-sizing: border-box;
    display: inline-block;
}

.nav-box .a-attr-logo {
    text-decoration: none;
    outline: none;
    padding-left: 20px;
}

.nav-box .a-attr-logo::after {
    content: "· 主站";
    vertical-align: text-bottom;
    line-height: 50px;
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
    color: #637599;
}

.nav-box .nav {
    display: inline-block;
    float: right;
    line-height: 50px;
    position: relative;
    padding-right: 20px;
}

.nav-box .nav .icon {
    padding: 13px 0;
    display: none;
}

.nav-box .nav .nav-cell {
    display: inline-block;
}

.nav-box .nav .nav-cell a {
    color: #637599;
    text-decoration: none;
    margin-left: 10px;
    text-transform: uppercase;
    background: var(--sdblue-background-color);
    padding: 5px 16px;
    border-radius: 3px;
    font-size: 13px;
}
@media screen and (max-width: 460px) {
    .nav-box .nav .icon {
        display: inline-block;
        cursor: pointer;
    }
    
    .nav-box .nav .nav-cell {
        display: none;
    }
    
    .nav-box .nav:hover .nav-cell{
        display: block;
        position: absolute;
        background: var(--background-color);
        width: 100vw;
        padding: 20px 0;
        top: 50px;
        right: 0;
        text-align: center;
        letter-spacing: 2.5px;
        border-bottom: var(--sec-background-color) 1px solid;
        background-image: url(/assets/mobile-nav-bg.webp);
        background-position: bottom right;
        background-repeat: no-repeat;
        background-size: 200px;
    }
    
    .nav-box .nav .nav-cell a {
        margin: 0;
        display: block;
        line-height: 35px;
        font-size: 15px;
        background: transparent;
        border-radius: 0;
        color: var(--sdblue);
        font-weight: 500;
        text-align: left;
        padding: 5px 20px;
    }
    
    .nav-box .nav .nav-cell a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border: 8px solid transparent;
        border-left: 10px solid #AFABAB;
        position: relative;
        top: 2px;
        left: 10px;
        transform: scale(0.6);
    }
}

@media screen and (min-width: 2560px) {
    .nav-box .nav-container {
        max-width: 80vw;
    }
}

/* LANDING-NEW */

.sd-landing {
    background-image: url(/assets/landing/bg-l.webp);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    -webkit-text-size-adjust: none;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    .sd-landing {
        background-image: url(/assets/landing/bg.webp);
    }
}

.sd-landing .info-panel {
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #00000020;
}

.sd-landing .info-panel-text {
    padding: 20px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
    text-align: center;
    font-family: "Unifont";
}

.sd-landing .info-panel .info-panel-text .title {
    font-size: 36px;
    display: block;
    line-height: 50px;
    margin: 20px 0;
}

.sd-landing .info-panel .info-panel-text .desp {
    font-size: 20px;
    line-height: 30px;
    margin: 20px 0;
}

.sd-landing .news-panel {
    position: absolute;
    width: 100%;
    bottom: 20px;
    left: 0;
}

.sd-landing .news-panel .news-container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

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

    .sd-landing .info-panel .info-panel-text {
        padding-bottom: 240px;
    }

    .sd-landing .news-panel .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sd-landing .news-panel .news-container a {
    text-decoration: none;
    color: inherit;
}

.sd-landing .news-panel .news-container .news-cell {
    background: var(--background-color);
    padding: 10px;
    border-radius: 3px;
}

.sd-landing .news-panel .news-container .news-cell .news-image {
    height: 70px;
    background: var(--sdblue-background-color);
    border-radius: 3px;
    background-image: url(/assets/article.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    margin-bottom: 5px;
}

.sd-landing .news-panel .news-container .news-cell .news-image[style] {
    background-size: cover;
}

.sd-landing .news-panel .news-container .news-cell .news-text {
    font-size: 14px;
    text-align: center;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 20px;
    color: var(--font-color);
}

/* STORY-BOX */

.story-box {
    background: var(--sec-background-color);
}

.zhoumu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 10px;
    margin: 40px 0;
}

@media screen and (max-width: 900px) {
    .zhoumu {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .zhoumu {
        grid-template-columns: 1fr;
    }
}

.zhoumu .zhoumu-tag {
    margin: 0;
    position: relative;
}

.zhoumu .zhoumu-tag span.date {
    float: right;
    text-transform: lowercase;
}

.zhoumu .zhoumu-tag .zmth {
    font-weight: 600;
    margin: 0;
    padding: 10px 15px;
    background: var(--sdblue-background-color);
    border: 1px solid var(--sdblue);
    color: var(--font-color);
    font-size: 15px;
    position: relative;
    cursor: pointer;
}

.zhoumu .zhoumu-tag .info {
    display: none;
    margin-top: 10px;
    opacity: .8;
    font-size: 14px;
}

.zhoumu .zhoumu-tag:hover .info {
    display: block;
    transition: all .3s;
    position: absolute;
    top: 35px;
    left: 0;
    width: 100%;
    background: var(--background-color);
    opacity: 1;
    border: 1px solid var(--sdblue);
    z-index: 1;
    padding: 10px;
}

.passby {
    text-align: center;
    margin: 40px 0;
    color: var(--font-color);
}

.passby .before,
.passby .cha,
.passby .now {
    display: inline-block;
}

.passby .before,
.passby .now {
    font-size: 35px;
}

.passby .cha {
    font-size: 16px;
    border: 2px solid var(--sdblue);
    color: var(--sdblue);
    padding: 3px 5px;
    vertical-align: super;
    margin: 0 10px;
    background: var(--sdblue-background-color);
}

.story-box .img-row img{
    display: inline-block;
    width: 50%;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 10px;
}

.story-box .img-row {
    letter-spacing: 0;
    font-size: 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

/* WHY-CHOOSE */

.whychoose .advantage-row{
    margin: 60px 0 30px 0;
    letter-spacing: 0;
    font-size: 0;
}

.whychoose .advantage-row .advantage{
    display: inline-block;
    width: 50%;
    /*float: left;*/
    text-align: center;
    vertical-align: top;
}

.whychoose .advantage-row .advantage.l{
    padding-right: 20px;
}

.whychoose .advantage-row .advantage.r{
    padding-left: 20px;
}

.whychoose .advantage-row .advantage p{
    margin: 20px 0 40px 0;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
    color: var(--font-color);
}

.whychoose .advantage-row .advantage h3{
    margin: 20px 0;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--font-color);
    text-transform: uppercase;
}

.whychoose .advantage-row .advantage img {
    height: 100px;
    width: 100px;
}

/* PLAYERS-SAY */

.players-say {
    background: var(--sec-background-color);
}

.players-say-cell {
    display: inline-block;
    background: var(--background-color);
    padding: 20px;
    border-radius: 3px;
    color: var(--font-color);
    margin: 0 10px 10px 0;
    max-width: 270px;
    /* height: 80px; */
    white-space: normal;
    vertical-align: top;
}

.players-say-cell p {
    font-size: 14px;
    letter-spacing: 1px;
    margin-left: 40px;
    overflow-y: scroll;
    height: 110px;
    padding: 0 5px;
    font-weight: 400;
}

.players-say-cell .avatar {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    padding: 1px;
    border: 1px solid var(--sdblue);
    box-sizing: border-box;
    float: left;
}

.players-say-cell .name {
    display: block;
    font-size: 16px;
    letter-spacing: normal;
    text-decoration: none;
    color: var(--font-color);
    font-weight: 600;
    margin-bottom: 3px;
}

.say-container {
    width: 100%;
    /* margin-left: auto; */
    /* margin-right: auto; */
    overflow-x: scroll;
    overflow-y: hidden;
    /* justify-content: space-between; */
    white-space: nowrap;
}
.players-say .tip {
    text-align: right;
    margin: 15px 0;
    font-size: 12px;
    color: var(--font-color);
    letter-spacing: 1px;
    text-transform: capitalize;
    opacity: .8;
}
.players-say .tip::before {
    content: "* ";
    color: red;
    font-size: 12px;
}

/* DONATE-BOX */

.btn-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.btn-box a {
    color: var(--sdblue);
    text-decoration: none;
    border: 1px solid var(--sdblue);
    padding: 7px 15px;
    letter-spacing: 1px;
    margin: 0 10px;
    text-transform: uppercase;
    background: var(--sdblue-background-color);
}

/* FOOTER-FRONT */

.foot-front-top {
    height: 120px;
    background: var(--sdblue);
    /*! autoprefixer: off */
    background: -webkit-linear-gradient(left bottom,rgb(221,161,150),#637599);
    /*! autoprefixer: on */
    background: -mos-linear-gradient(left bottom,rgb(221,161,150),#637599);
    background: linear-gradient(left bottom,rgb(221,161,150),#637599);
    user-select: none;
}

.footer-flex-box {
    width: auto;
    display: flex;
    height: 120px;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.foot-front-top .container {
    padding: 0px!important;
}

img.footer-img-slogan {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* FOOTER */

.footer {
    font-size: 12px;
    font-weight: 400;
    color: var(--font-color);
    line-height: 18px;
    opacity: .8;
}

.footer .container {
    padding: 0 20px;
}

.footer .content {
    margin: 15px 0 40px 0;
}

.footer .content .sub {
    float: right;
    text-align: right;
}

.footer a {
    text-decoration: none;
    color: inherit;
}

/* MOJANG-BOX */

.mojang-box {
    background: #1C1C1C url(assets/bg-wool-dark.png);
    /*height: 200px;*/
    color: #eee;
    font-size: 16px;
    text-align: center;
}

.mojang-box h2 {
    margin: 40px 0 10px 0;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
}

.mojang-box .goto {
    text-decoration: none;
    padding: 10px;
    border: 2px solid #008543;
    color: #008543;
    display: inline-block;
    font-size: 14px;
    margin: 10px 0 35px 0;
    letter-spacing: 1px;
}

/*  POSTS */

.banner {
    height: 300px;
    background: linear-gradient(180deg, var(--sec-sdblue), var(--background-color));
}

.post {
    color: var(--font-color);
    font-size: 16px;
    line-height: 30px;
    padding: 30px;
    word-wrap: break-word;
    word-break: break-all;
}

.hero-page {
    border-radius: 13px 13px 0 0;
    margin-top: -170px;
    background: var(--background-color);
}

.post p {
    color: inherit;
    margin: 20px 0;
}

.post ul,
.post ol {
    color: inherit;
    margin: 20px 0;
    padding: 0 0 0 20px;
}

.post table {
    color: inherit;
    border-width: 1px;
    border-color: var(--sdblue);
    border-collapse: collapse;
    overflow-x: auto;
    margin: 20px 0;
    width: 100%;
    text-align: left;
}

.post table thead {
    color: var(--sdblue);
}

.post table tbody {
    font-size: 90%;
}

.post table th {
    border-width: 1px;
    padding: 5px 10px;
    border-style: solid;
    border-color: var(--sdblue);
    background-color: var(--sdblue-background-color);
}

.post table td {
    border-width: 1px;
    padding: 5px 10px;
    border-style: solid;
    border-color: var(--sdblue);
    background-color: transparent;
}

/* 入服方式介绍页 */

.banner-play {
    padding-top: 50px;
    text-align: center;
    background: url('/assets/play/Dirt_background_JE2.png') center;
    box-sizing: border-box;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-play .address-box {
    position: relative;
    padding: 5px;
}

.banner-play label {
    display: block;
    text-align: left;
    font-size: 18px;
    line-height: 20px;
    margin-bottom: 15px;
    font-family: 'Unifont';
    letter-spacing: 0.7px;
}

.banner-play input {
    display: block;
    outline: none;
    background: #000;
    border: 3px solid #fff;
    height: 50px;
    width: 360px;
    font-size: 24px;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Unifont';
    letter-spacing: 0.7px;
}

@media screen and (max-width: 400px) {
    .banner-play input {
        width: 300px;
    }
}

.play-page-info {
    text-align: center;
    background: var(--sec-sdblue);
    color: var(--global-white);
    font-size: 14px;
    line-height: 20px;
    padding: 10px;
}

.verify-box {
    background: var(--sec-background-color);
}

.launcher-recommand {
    background: var(--sec-background-color);
    padding: 40px 10px 10px;
    border-radius: 3px;
    position: relative;
    margin: 20px 0;
}

.launcher-recommand .launcher-title {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sdblue);
    color: var(--global-white);
    border-radius: 3px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 25px;
}

.launcher-recommand .launcher-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media screen and (max-width: 750px) {
    .launcher-recommand .launcher-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 520px) {
    .launcher-recommand .launcher-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

.launcher-recommand .launcher-list a {
    text-decoration: none;
    color: inherit;
}

.launcher-recommand .launcher-list .cell {
    background: var(--background-color);
    border-radius: 3px;
    padding: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.launcher-recommand .launcher-list .cell img {
    height: 64px;
    width: 64px;
}

.launcher-recommand .launcher-list .cell .info .name {
    display: block;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}

.launcher-recommand .launcher-list .cell .info .desp {
    display: block;
    font-size: 14px;
    line-height: 20px;
    opacity: .7;
}

.paused::after {
    content: "PAUSED";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: inline-table;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 10px 20px;
    height: 100%;
    line-height: 100%;
    width: 100%;
    box-sizing: border-box;
    background: #dc354524;
    backdrop-filter: blur(1px);
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}
