:root {
    --bg: #040f45;
    --panel: #012273;
    --panel-2: #28254c;
    --line: #28254c;
    --text: #b0c4de;
    --muted: #7f9dc5;
    --hot: #ff5473;
    --ok: #26f123;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--muted);
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 1.5rem;
}

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

button {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.page {
    max-width: 66rem;
    margin: 0 auto;
    padding: 1rem 1rem 7rem;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel {
    margin: 0 auto 1rem;
    padding: 1.5rem 1rem;
    border-radius: .5rem;
    background: var(--panel);
}

.header-wrap {
    width: 100%;
    background: var(--panel);
}

.header {
    position: relative;
    z-index: 1;
    max-width: 66rem;
    height: 5rem;
    margin: 0 auto;
}

.header::after {
    content: "";
    position: absolute;
    left: calc(50% - 6rem);
    bottom: -3rem;
    border-left: 6rem solid transparent;
    border-right: 6rem solid transparent;
    border-top: 3rem solid var(--panel);
}

.header-logo {
    position: relative;
    top: 1rem;
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-logo-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--panel-2);
    color: var(--text);
    font-size: 2.4rem;
    font-weight: 700;
}

.content {
    animation: fade-in ease 1.2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.notice {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.notice-icon {
    color: var(--hot);
    font-size: 1.6rem;
    line-height: 1;
    flex: 0 0 auto;
}

.notice marquee {
    width: calc(100% - 2.8rem);
    color: var(--hot);
    font-size: 1.6rem;
    line-height: 1.8;
}

.panel.notice {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 4.5rem 1rem 1.5rem;
    border-radius: .5rem;
    background: var(--panel);
}

.panel.notice::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 6rem);
    width: 0;
    height: 0;
    border-left: 6rem solid transparent;
    border-right: 6rem solid transparent;
    border-top: 3rem solid var(--panel-2);
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.meta {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: .1rem solid var(--line);
}

.meta h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text);
}

.meta h2 {
    margin: .8rem 0 0;
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--hot);
}

.custom-body p {
    margin: 0 0 1.2rem;
    line-height: 1.9;
    color: var(--text);
    text-align: center;
}

.custom-body p:last-child {
    margin-bottom: 0;
}

.custom-domain {
    color: var(--hot);
    font-size: 2.6rem;
    font-weight: 700;
}

.copy-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.copy-btn {
    padding: .8rem 1.8rem;
    border-radius: 3rem;
    background: rgba(255, 84, 115, .12);
    color: var(--hot);
}

.copy-btn:hover {
    background: var(--hot);
    color: #fff;
}

.hot-list {
    display: flex;
    flex-wrap: wrap;
}

.hot-item {
    width: calc(620px / 8);
    text-align: center;
}

.hot-item-img {
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.hot-item .hot-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-item-title {
    margin-top: .8rem;
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-head {
    width: 100%;
    padding-bottom: .5rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.tab-head::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-block;
    margin: 0 1.5rem 0 0;
    font-size: 1.4rem;
    color: #718298;
}

.tab-btn.active {
    font-size: 1.6rem;
    color: var(--text);
}

.tab-panel {
    display: none;
    max-height: 60rem;
    overflow: auto;
    padding-top: 1.5rem;
}

.tab-panel.active {
    display: block;
}

.site-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 0;
}

.site-item {
    width: 20%;
    text-align: center;
}

.site-item-img {
    width: 7.2rem;
    height: 7.2rem;
    margin: 0 auto;
    border-radius: 30%;
    overflow: hidden;
}

.site-item .site-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-item-title {
    margin: .8rem 0 .6rem;
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.open-btn {
    display: inline-block;
    padding: .5rem 1.5rem;
    border-radius: 3rem;
    background: rgba(255, 84, 115, .1);
    color: var(--hot);
    letter-spacing: .1rem;
}

.open-btn:hover {
    background: var(--hot);
    color: #fff;
}

.empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}

.footer {
    padding: 1rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 1.2rem;
}

.back-top {
    position: fixed;
    right: 2rem;
    bottom: 2.4rem;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    border: .1rem solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 2000;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    color: #fff;
    background: var(--hot);
}

@media screen and (max-width: 560px) {
    .site-item {
        width: 25%;
    }
}

@media screen and (max-width: 460px) {
    .site-item {
        width: 25%;
    }

    .hot-item {
        width: 25%;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 360px) {
    .site-item-img {
        width: 6.6rem;
        height: 6.6rem;
    }
}
