
@font-face {
  font-family: 'Kelson Sans';
  src: url('./font/Kelson-Sans/Kelson-Sans-Regular.otf') format('opentype'),
       url('./font/Kelson-Sans/Kelson-Sans-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
:root {
    --header-height: 84px;
    --header-border-bottom: 4px;
    --game-banner-width: 1500px;
    --game-content-width: 1200px;
    --content-width: 1000px;
    --footer-width: 1200px;
    --footer-color: #5a5a5a;
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Heiti SC', 'STHeitiSC-Light', 'STHeitiSC-Medium', 'STHeitiSC-Regular', 'STHeitiSC-Thin', 'WenQuanYi Micro Hei', sans-serif;
}
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
a {
    text-decoration: none;
}
.root {
    display: flex;
    flex-direction: column;
    height: 100%;
}
main {
    flex: 1;
    width: 100%;
    margin: 0 auto;
}

/* header */

header > div {
    height: var(--header-height);
    padding: 0px 100px;
    border-bottom: var(--header-border-bottom) solid #f3f3f3;
    display: flex;
    justify-content: space-between;
    /*position: sticky;
    top: 0;
    z-index: 100;*/
}

header img {
    margin-top: 20px;
    width: 112px;
    height: 39px;
}
header ul.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 64px;
}
header ul.menu-list li {
    padding-top: 27px;
    border-top: 3px solid #fff;
    word-break: keep-all;
    font-size: 16px;
    font-weight: 700;
}
header a {
    color: #000;
}
header ul.menu-list li.active {
    color: #cc2424;
    border-top-color: #cc2424!important;
}
header ul.menu-list li.nav-divider {
    width: 2px;
    margin: 0 -18px;
}
header ul.menu-list li.nav-divider span {
    display: block;
    width: 2px;
    height: 14px;
    background-color: #e0e0e0;
}
header ul.menu-list li.nav-divider,
header ul.menu-list li:last-child {
    display: none;
}

/* main */

main .title {
    display: flex;
    flex-direction: column;
}
main .title sub {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Kelson Sans';
    color: rgba(33, 33, 33, 0.3);
}
main .title h1 {
    order: 2;
    font-size: 36px;
    color: #212121;
    font-weight: 700;
}

/* footer */

footer {
    color: #fff;
    font-size: 0.75rem;
    background-color: #000;
    padding: 30px 0px;
    /*height: 190px;*/
}
footer > div {
    display: flex;
    margin: 0 auto;
    width: var(--footer-width);
    /* max-width: var(--footer-width); */
}
footer .company-contact {
    height: 72px;
    font-family: 'Kelson Sans';
    color: var(--footer-color);
    justify-content: space-between;
}
footer .email {
    width: 610px;
    align-self: flex-start;
    display: grid;
    grid-template-areas: 
        "label-1 label-2"
        "email-1 email-2"
    ;
    row-gap: 7px;
    column-gap: 141px;
    grid-auto-columns: min-content;
    grid-auto-rows: min-content;
    border-bottom: 1px solid var(--footer-color);
    padding-bottom: 20px;
}
footer .email > label {
    color: var(--footer-color);
    font-size: 12px;
}
footer .email > a {
    color: #fff;
    font-size: 14px;
}
footer .email :nth-child(1) {
    grid-area: label-1;
}
footer .email :nth-child(2) {
    grid-area: email-1;
}
footer .email :nth-child(3) {
    grid-area: label-2;
}
footer .email :nth-child(4) {
    grid-area: email-2;
}
footer .more {
    font-size: 10px;
    text-align: right;
}
footer .more div:nth-child(2) {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 9px;
}
footer .more img {
    width: 43px;
    height: 43px;
    display: block;
}
footer .more img.briefing {
    width: 120px;
    height: 43px;
}
.company-info {
    display: flex;
    justify-content: space-between;
    align-content: end;
    margin-top: 32px;
}
.company-name :nth-child(1) {
    font-size: 18px;
    font-weight: bold;
}
.company-name :nth-child(2) {
    font-size: 10px;
}

.company-address {
    font-size: 11px;
    color: var(--footer-color);
    text-align: right;
}

.game-advice {
    width: 100%;
    font-size: .75rem;
    justify-content: flex-end;
}
.permission {
    display: flex;
    flex-wrap: wrap;
    /*flex-wrap: nowrap;*/
    align-items: center;
}
.permission a {
    color: var(--footer-color);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    text-wrap: nowrap;
}
.permission img {
    height: 1.2em;
    margin-right: .25rem;
}
.permission .split {
    border-left: 1px solid var(--footer-color);
    padding-left: .5rem;
    margin-left: .5rem;
}

.company-address .address img {
    width: 8px;
    height: 11.2px;
}
.copyright {
    font-size: 110%;
    font-family: Arial, Helvetica, sans-serif;
}

/* media queries
@media (max-width: 1200px) {
    :root {
        --max-width: 100vw;
        --game-banner-width: 100vw;
        --game-content-width: 100vw;
        --content-width: 100vw;
        --footer-width: 100vw;
    }
    .game-list > div {
        width: calc(50% - 15px * 1 / 2);
    }
} */

@media (min-width: 768px) {
    #menu-button, #menu-panel {
        display: none;
    }
}
@media (max-width: 768px) {
    :root {
        --game-banner-width: calc(100vw - 75px);
        --game-content-width: calc(100vw - 75px);
        --content-width: calc(100vw - 75px);
        --footer-width: calc(100vw - 75px);
    }
    header > div {
        padding-left: 20px;
        padding-right: 20px;
    }
    header ul.menu-list {
        display: none;
    }
    #menu-button {
        cursor: pointer;
        margin-top: 32px;
        width: 26px;
        height: 19px;
        background: url("../images/menu-button.svg") no-repeat center center/contain;
        /* 防止快速点击时选中元素 */
        user-select: none;             /* 标准属性 */
        -webkit-user-select: none;     /* Safari、旧版 Chrome */
        -moz-user-select: none;        /* Firefox */
        -ms-user-select: none;         /* 旧 IE */
    }
    .menu-close {
        background-image: url("../images/menu-close.svg")!important;
    }
    #menu-panel {
        position: absolute;
        left: 0;
        top: 84px;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }
    #menu-panel ul {
        width: 55vw;
        height: 100%;
        list-style: none;
        padding: 0;
        margin: 0 0 0 auto;
        display: flex;
        flex-direction: column;
        background-color: #f2f2f3;
    }
    #menu-panel ul li {
        font-size: 17px;
        color: #3d3d3d;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    #menu-panel ul li.active {
        padding: 25px 0;
        color: #cc2424;
        background-image: linear-gradient(to bottom, #cc2424 6px, transparent 6px);
        background-size: 30px 4px; /* 线高 1px */
        background-repeat: no-repeat;
        background-position: bottom 22px left calc(27.5vw - 15px);
    }
    #menu-panel ul li.nav-divider,
    #menu-panel ul li:last-child {
        display: none;
    }
    #menu-panel a {
        display: block;
        width: 100%;
        padding: 30px 0;
    }
    main .title sub {
        font-size: 8px;
    }
    main .title h1 {
        font-size: 20px;
    }
    footer {
        height: auto;
    }
    footer .company-contact {
        height: auto;
        flex-direction: column;
    }
    footer .email {
        width: 100%;
        column-gap: 60px;
    }
    footer .more {
        text-align: left;
        padding: 35px 0 40px;
        border-bottom: 1px solid var(--footer-color);
    }
    footer .more div:nth-child(2) {
        justify-content: flex-start;
    }
    .company-info {
        flex-direction: column;
        align-items: center;
    }
    .company-name,
    .company-address {
        text-align: center;
    }
    .game-advice {
        margin-top: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .game-advice .comma {
        display: none;
    }
    .permission {
        justify-content: center;
    }
    .permission, 
    .address {
        margin-top: 21px;
    }
}
@media (max-width: 430px) {
    :root {
        --game-banner-width: calc(100vw - 50px);
        --game-content-width: calc(100vw - 50px);
        --content-width: calc(100vw - 50px);
        --footer-width: calc(100vw - 50px);
    }
    header {
        padding-left: 18px;
        padding-right: 18px;
    }
}