@font-face {
    font-family: "smiley";
    src: url(../font/Outfit-VariableFont_wght.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "smiley";
}

img {
    width: 100%;
    object-fit: cover;
    display: block;
}

video {
    object-fit: cover;
}

a {
    text-decoration: none;
}

b,
strong {
    font-weight: 400
}

em,
i {
    font-style: normal;
}

li {
    list-style: none;
}

input {
    border: 0;
    outline: 0;
    touch-action: none;
}

button {
    outline: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

/* footer */
footer {
    width: 100%;
    background: #0a0a0e;
    border-top: 2px solid #f5c842;
    padding: 20px 24px;
    text-align: center;
    color: #666677;
    font-size: 12px;
}

footer a {
    color: #666677;
    transition: color 0.2s;
}

footer a:hover {
    color: #f5c842;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copy {
    margin-bottom: 10px;
    color: #666677;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cookieFooter {
    margin-bottom: 56px;
}

.img-box {
    position: relative;
}

.img-box::before {
    content: '';
    display: block;
}

.img-box>img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg);
}

main {
    flex: 1;
}

:root {
    --all-width: 1200px;
}

.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    background-color: #0000004d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 15px;
    inset: 0;
}

.loader {
    position: relative;
    font-size: 16px;
    width: 5.5em;
    height: 5.5em;
}

.loader:before {
    content: '';
    position: absolute;
    transform: translate(-50%, -50%) rotate(45deg);
    height: 100%;
    width: 4px;
    background: #fff;
    left: 50%;
    top: 50%;
}

.loader:after {
    content: '';
    position: absolute;
    left: 0.2em;
    bottom: 0.18em;
    width: 1em;
    height: 1em;
    background-color: orange;
    border-radius: 15%;
    animation: rollingRock 2.5s cubic-bezier(.79, 0, .47, .97) infinite;
}

@keyframes rollingRock {
    0% {
        transform: translate(0, -1em) rotate(-45deg)
    }

    5% {
        transform: translate(0, -1em) rotate(-50deg)
    }

    20% {
        transform: translate(1em, -2em) rotate(47deg)
    }

    25% {
        transform: translate(1em, -2em) rotate(45deg)
    }

    30% {
        transform: translate(1em, -2em) rotate(40deg)
    }

    45% {
        transform: translate(2em, -3em) rotate(137deg)
    }

    50% {
        transform: translate(2em, -3em) rotate(135deg)
    }

    55% {
        transform: translate(2em, -3em) rotate(130deg)
    }

    70% {
        transform: translate(3em, -4em) rotate(217deg)
    }

    75% {
        transform: translate(3em, -4em) rotate(220deg)
    }

    100% {
        transform: translate(0, -1em) rotate(-225deg)
    }
}

.cookieMessage {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: var(--bg2);
    border-top: 2px solid var(--gold);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    z-index: 9999;
    flex-wrap: wrap;
}

.cookieIcon {
    font-size: 20px;
    flex-shrink: 0;
}

.cookieText {
    color: var(--text2);
    font-size: 12px;
    flex: 1;
    min-width: 200px;
    line-height: 1.6;
}

.cookieText a {
    color: var(--gold);
    text-decoration: underline;
}

.cookieActions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookieBtn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.cookieBtn.agree {
    background: var(--gold);
    color: #111;
}

.cookieBtn.agree:hover {
    background: var(--gold2);
}

.cookieBtn.reject {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookieBtn.reject:hover {
    border-color: var(--muted);
    color: var(--text2);
}

.cookieFooter {
    margin-bottom: 56px;
}

@media screen and (min-width:770px) and (max-width:1199px) {
    :root {
        --all-width: 1000px;
    }
}

@media screen and (max-width:769px) {
    :root {
        --all-width: 100%;
    }
}

@media only screen and (max-device-width: 768px) and (orientation: landscape) {
    /* 仅限手机，横屏模式 */
}

@media only screen and (max-device-width: 768px) and (orientation: portrait) {
    /* 仅限手机，竖屏模式 */
}

@media screen and (max-width: 769px) {
    .cookieMessage {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        gap: 8px;
    }

    .cookieFooter {
        margin-bottom: 140px;
    }
}

#copy-message {
    position: fixed;
    top: 50%;
    display: none;
    right: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 16px;
    border-radius: 6px;
    color: white;
    background: #333;

    opacity: 0;
    pointer-events: none;

    transform: translateY(-10px);
    z-index: 999999;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

#copy-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

#copy-message.success {
    background: #28a745;
}

#copy-message.error {
    background: #dc3545;
}