html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    background: #000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.logo-box {
    position: fixed;
    top: 32px;
    left: 32px;
    margin: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto;
}

.logo-img {
    max-width: 220px;
    width: 36vw;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: opacity 0.3s;
    background: transparent;
}

.logo-switch {
    margin-top: 8px;
    text-align: left;
}

.logo-switch button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
    margin: 0 4px;
    transition: background 0.2s;
}

.logo-switch button.active {
    background: #fff;
    color: #222;
}

.cta {
    margin: 5vh 0 3vh 0;
    pointer-events: auto;
    text-align: center;
}

.cta-link {
    display: inline-block;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
    background: none;
    box-shadow: none;
    width: 100%;
    max-width: 480px;
    transition: transform 0.2s ease;
}

.cta-link:active {
    transform: scale(0.98);
}

.cta-click-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px rgba(0, 0, 0, 0.7));
    margin-top: 22px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-60%);
    }
    60% {
        transform: translateY(-55%);
    }
}

.cta-link,
.cta-link:hover,
.cta-link:active,
.cta-link:focus {
    text-decoration: none;
}

.cta-link>div {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    padding: 0;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.85),
        0 0 2px #fff,
        0 0 8px rgba(0, 0, 0, 0.7);
    transition: text-shadow 0.2s;
    text-align: center;
    width: 100%;
}

.cta-link .cta-subtitle {
    font-weight: 400;
    margin-top: 4px;
}

.cta-link:hover>div {
    text-shadow:
        0 4px 18px rgba(0, 0, 0, 1),
        0 0 2px #fff,
        0 0 12px rgba(0, 0, 0, 0.85);
}

.social {
    margin: 2vh 0 0 0;
    display: flex;
    gap: 18px;
    justify-content: center;
    pointer-events: auto;
}

.social a {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.social a:hover {
    background: #fff;
}

.social svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    transition: fill 0.2s;
}

.social a:hover svg {
    fill: #222;
}

/* Steam图标保持深色 */
#socialSteam svg {
    fill: #ccc;
}

#socialSteam:hover svg {
    fill: #222;
}

/* 社交图标隐藏类 */
.social-icon-hidden {
    display: none !important;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 13px;
    text-align: center;
    padding: 12px 8px 8px 8px;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.footer-toggle {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 40px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px 8px 0 0;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.footer-toggle svg {
    width: 12px;
    height: 12px;
    fill: #ccc;
    transition: transform 0.3s ease;
}

.footer.collapsed .footer-toggle {
    background: rgba(0, 0, 0, 0.3);
}

.footer.collapsed .footer-toggle svg {
    transform: rotate(180deg);
}

.footer-content {
    transition: opacity 0.3s ease;
}

.footer.collapsed .footer-content {
    opacity: 0;
}

.footer.collapsed {
    transform: translateY(calc(100%));
    background: rgba(0, 0, 0, 0.3);
}

.footer a {
    color: #8ab4f8;
    margin: 0 8px;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
}

.review-modal[hidden],
.review-mall-panel[hidden] {
    display: none;
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(5px);
}

.review-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.review-modal--login .review-modal-dialog {
    width: min(440px, 100%);
}

.review-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    font-size: 26px;
    line-height: 34px;
    cursor: pointer;
}

#reviewLoginPanel {
    width: min(380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 20px 36px;
}

#reviewLoginPanel h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 24px;
}

#reviewLoginPanel > p {
    margin: 0 0 24px;
    color: #666;
    text-align: center;
}

#reviewLoginPanel label {
    display: block;
    margin: 14px 0;
    color: #444;
    font-size: 14px;
}

#reviewLoginPanel input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 16px;
}

.review-login-error {
    min-height: 22px;
    margin: 8px 0;
    color: #b42318;
    font-size: 14px;
}

.review-login-button {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: #1677ff;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

.review-login-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.review-mall-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    box-sizing: border-box;
    padding: 10px 58px 10px 18px;
    border-bottom: 1px solid #e5e5e5;
}

.review-mall-toolbar a {
    color: #1677ff;
    text-decoration: none;
}

#reviewMallFrame {
    display: block;
    width: 100%;
    height: min(78vh, 760px);
    border: 0;
    background: #f5f6f8;
}

.cta-subtitle {
    margin-top: 8px;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

.cta-searchtip {
    margin-top: 10px;
    font-size: 13px;
    color: #c8e0ff;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.cta-searchtip-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.cta-searchtip-img img {
    max-width: 320px;
    width: 60vw;
    height: auto;
}
@media (max-width: 600px) {
    .logo-box {
        top: 12px;
        left: 8px;
    }

    .logo-img {
        max-width: 44vw;
    }

    .cta-link {
        font-size: 16px;
        padding: 10px 0px;
    }

    .review-modal {
        padding: 8px;
    }

    .review-modal-dialog {
        max-height: 96vh;
        border-radius: 10px;
    }

    #reviewMallFrame {
        height: calc(96vh - 52px);
    }

    .cta-click-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    .footer {
        font-size: 10px;
        padding: 10px 2px 6px 2px;
    }

}

@media (prefers-color-scheme: dark) {
    .footer {
        background: rgba(0, 0, 0, 0.85);
        color: #aaa;
    }

    /* .cta a { background: #222; color: #fff; } */
    /* .cta a:hover { background: #66c0f4; color: #222; } */
}

.video-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: none;
    pointer-events: none;
    transition: opacity 0.3s;
}

.video-loading-spinner {
    width: 56px;
    height: 56px;
    border: 6px solid #eee;
    border-top: 6px solid #2980b9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    background: none;
    pointer-events: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-color-scheme: dark) {
    .video-loading-spinner {
        border: 6px solid #222;
        border-top: 6px solid #66c0f4;
    }
} 
