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;
    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;
}

.lang-switch {
    margin-top: 8px;
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-btn.active {
    background: #fff;
    color: #222;
}

.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;
}



/* 垂直居中 LOGO 和语言菜单 */
.lang-select-box {
    position: fixed;
    right: 32px;
    z-index: 20;
    user-select: none;
    top: 32px;
    /* 与 .logo-box 的 top: 32px 保持一致 */
    display: flex;
    align-items: center;
    height: 48px;
}

.lang-dropdown {
    min-width: 80px;
    position: relative;
}

.lang-dropdown-selected {
    background: rgba(30, 30, 30, 0.7);
    color: #fff;
    border-radius: 8px;
    padding: 5px 10px 5px 10px;
    font-size: 13px;
    cursor: pointer;
    border: 1.5px solid gba(30, 30, 30, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: border 0.2s, background 0.2s, border-radius 0.2s;
    position: relative;
    min-width: 70px;
    width: max-content;
    max-width: 160px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-dropdown.open .lang-dropdown-selected {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
}

.lang-dropdown-arrow {
    width: 12px;
    height: 12px;
    fill: #fff;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.lang-dropdown.open .lang-dropdown-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    min-width: 80px;
    width: 100%;
    padding: 4px 0;
    z-index: 100;
    border-top: none;
}

.lang-dropdown-item {
    color: #fff;
    font-size: 13px;
    padding: 6px 12px 6px 12px;
    cursor: pointer;
    transition: background 0.18s;
}

.lang-dropdown-item:hover {
    background: rgba(80, 160, 255, 0.18);
}

@media (max-width: 600px) {
    .logo-box {
        top: 12px;
        left: 8px;
    }

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

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

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

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

    .lang-switch {
        flex-wrap: wrap;
    }

    .lang-btn {
        font-size: 11px;
        padding: 2px 6px;
    }

    .lang-select-box {
        top: 12px;
        right: 8px;
        height: 32px;
    }

    .lang-dropdown-selected,
    .lang-dropdown-item {
        font-size: 11px;
    }


}

@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;
    }
} 