* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 辅助功能 - 视觉隐藏但屏幕阅读器可访问 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    background-color: #000;
}

/* 全屏视频背景 */
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

/* 音量控制按钮 */
.volume-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.volume-control:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.volume-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.volume-control.muted .volume-off {
    display: block;
}

.volume-control.muted .volume-on {
    display: none;
}

.volume-control:not(.muted) .volume-off {
    display: none;
}

.volume-control:not(.muted) .volume-on {
    display: block;
}

/* 欢迎弹窗 */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
    padding: 20px;
}

.welcome-overlay.hidden {
    display: none;
}

.welcome-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 600px;
    width: 100%;
    box-shadow: none;
    border: none;
    animation: slideUp 0.6s ease;
}

.welcome-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0 0 30px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.4;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 2px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    max-width: 90%;
    opacity: 0;
    min-height: 1.4em;
}

.welcome-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 50px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0;
    animation: fadeInText 1s ease 1.5s forwards;
}

.welcome-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    opacity: 0;
    animation: fadeInButton 0.8s ease 2.5s forwards, heartbeat 1.5s ease-in-out 3.5s infinite;
    position: relative;
    overflow: hidden;
}

.welcome-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 70%);
    animation: shimmer 3s infinite;
}

.welcome-button:hover {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(50, 50, 50, 0.98) 100%);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    animation: fadeInButton 0.8s ease 2.5s forwards, heartbeat 1.5s ease-in-out 3.5s infinite;
}

.welcome-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.6);
}

@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.05);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
    }

    40% {
        transform: scale(1);
    }
}

.welcome-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.welcome-title::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.9);
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 响应式 - 欢迎弹窗 */
@media (max-width: 768px) {
    .welcome-container {
        padding: 0;
        border-radius: 0;
    }

    .welcome-title {
        font-size: 28px;
        margin-bottom: 20px;
        letter-spacing: 1px;
        max-width: 95%;
    }

    .welcome-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
        letter-spacing: 0.5px;
    }

    .welcome-button {
        padding: 16px 40px;
        font-size: 18px;
        gap: 10px;
    }
}

/* 顶部导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    background: transparent;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.nav-menu-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.nav-menu-item:hover {
    color: white;
}

.nav-menu-item.active {
    color: white;
    font-weight: 500;
}

.nav-menu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-item-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    border: none;
    font-family: inherit;
}

.nav-item-group:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.group-icon {
    width: 20px;
    height: 20px;
    color: white;
    flex-shrink: 0;
}

.group-icon svg {
    width: 100%;
    height: 100%;
}

.group-text {
    font-size: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.globe-icon {
    width: 20px;
    height: 20px;
    color: white;
    flex-shrink: 0;
}

.current-language {
    color: white;
    font-size: 15px;
    user-select: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 100px;
    z-index: 100;
}

.language-selector:hover .language-dropdown {
    display: flex;
}

.language-item {
    color: white;
    font-size: 14px;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.language-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.language-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-avatar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.avatar-text {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.login-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 首页内容 */
.home-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.main-title {
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 150px;
    margin: 0 auto 30px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0px 4px 20px rgba(0, 0, 0, 0.5));
}

.sub-title {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.3;
    color: white;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin: 0 auto 25px;
    letter-spacing: 1px;
}

.description {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 0 auto 50px;
    letter-spacing: 0.5px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.btn {
    width: 244px;
    height: 44px;
    padding: 0;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    border: none;
    text-align: center;
    line-height: 44px;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.btn-white {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: none;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.invite-input {
    width: 244px;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 400;
    background: rgba(20, 20, 20, 0.8);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    backdrop-filter: blur(10px);
}

.invite-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.invite-input:focus {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.invite-input:hover {
    background: rgba(25, 25, 25, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 动画效果 */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登录弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 667px;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* 左侧推广内容 */
.modal-left {
    width: 45%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.modal-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.modal-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
}

.character-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.feature-list {
    list-style: none;
    color: white;
}

.feature-list li {
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    padding-left: 18px;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-size: 16px;
}

/* 右侧登录表单 */
.modal-right {
    width: 55%;
    background: white;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.login-tab {
    display: none;
}

.login-tab.active {
    display: flex;
    flex-direction: column;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.login-qr-code {
    width: 180px;
    height: 180px;
    background: white;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.login-qr-code svg {
    width: 100%;
    height: 100%;
}

.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.other-login {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
}

.phone-login-btn,
.wechat-login-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-login-btn:hover,
.wechat-login-btn:hover {
    border-color: #00ff88;
    background: #f5f5f5;
}

.phone-login-btn svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.wechat-login-btn {
    background: #07c160;
    border-color: #07c160;
}

.wechat-login-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: 100%;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 315px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #F7F7F7;
    box-sizing: border-box;
    position: relative;
    padding-right: 0;
}

.country-code {
    padding: 0 15px;
    color: #666;
    font-size: 16px;
    border-right: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    height: 100%;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}

.code-input {
    flex: 1;
    padding: 0 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    height: 100%;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}

.phone-input::placeholder,
.code-input::placeholder {
    color: #999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.get-code-btn {
    width: auto;
    min-width: 110px;
    height: 18px;
    padding: 0 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0D62BE;
    line-height: 18px;
    text-align: center;
    font-style: normal;
    text-transform: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: content-box;
    margin-left: auto;
}

.get-code-btn:hover {
    color: #0a4d94;
}

.code-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 315px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #F7F7F7;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
}

.input-icon {
    width: 20px;
    height: 20px;
    color: #666;
    margin-right: 10px;
}

.confirm-login-btn {
    width: 100%;
    max-width: 315px;
    height: 50px;
    padding: 0;
    background: #e0e0e0;
    color: #999;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.confirm-login-btn.active {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(50, 50, 50, 0.95) 100%);
    color: white;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-login-btn.active:hover {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.98) 0%, rgba(60, 60, 60, 0.98) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.agreement-text {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 25px;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.agreement-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 2px;
}

.agreement-text a:hover {
    text-decoration: underline;
    color: white;
}

/* 交流群二维码弹窗 */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-modal-overlay.active {
    display: flex;
}

.qr-modal-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 320px;
    width: 100%;
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.qr-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.qr-modal-code {
    width: 180px;
    height: 180px;
    background: white;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-modal-text {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-title {
        max-width: 500px;
        max-height: 120px;
    }

    .sub-title {
        font-size: 40px;
    }

    .description {
        font-size: 16px;
    }

    .qr-section {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .nav-left {
        flex: 0 0 auto;
    }

    .logo-img {
        height: 22px;
    }

    .nav-center {
        display: none;
    }

    .nav-right {
        gap: 8px;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .nav-item-group {
        display: none !important;
    }

    .language-selector {
        padding: 5px 8px;
        gap: 5px;
    }

    .globe-icon {
        width: 16px;
        height: 16px;
    }

    .current-language {
        font-size: 13px;
    }

    .language-dropdown {
        right: 0;
        left: auto;
    }

    .user-avatar {
        display: none !important;
    }

    .login-button {
        padding: 6px 12px;
        font-size: 13px;
        border-radius: 5px;
        white-space: nowrap;
    }

    .volume-control {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .volume-icon {
        width: 20px;
        height: 20px;
    }

    .welcome-overlay {
        padding: 15px;
    }

    .welcome-container {
        padding: 40px 25px;
        border-radius: 16px;
        max-width: 100%;
    }

    .welcome-title {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .welcome-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .welcome-button {
        padding: 14px 30px;
        font-size: 16px;
        gap: 10px;
        width: 100%;
        max-width: 300px;
    }

    .welcome-icon {
        width: 20px;
        height: 20px;
    }

    .home-content {
        padding: 0 20px;
        margin-top: 60px;
    }

    .main-title {
        max-width: 85%;
        max-height: 60px;
    }

    .sub-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .description {
        font-size: 13px;
        line-height: 1.4;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn,
    .invite-input {
        width: 100%;
        max-width: 300px;
    }

    .modal-container {
        flex-direction: column;
        max-height: 95vh;
    }

    .modal-left {
        width: 100%;
        padding: 30px 20px;
    }

    .modal-right {
        width: 100%;
        padding: 30px 20px;
    }

    .character-image {
        height: 200px;
    }

    .phone-input-wrapper,
    .code-input-wrapper,
    .confirm-login-btn {
        width: 100%;
        max-width: 315px;
    }

    .qr-modal-container {
        padding: 30px 20px;
        max-width: 90%;
    }

    .qr-modal-code {
        width: 200px;
        height: 200px;
    }
}


.modal-container {
    flex-direction: column;
    max-height: 95vh;
}

.modal-left {
    width: 100%;
    padding: 30px 20px;
}

.modal-right {
    width: 100%;
    padding: 30px 20px;
}

.character-image {
    height: 200px;
}

.phone-input-wrapper,
.code-input-wrapper,
.confirm-login-btn {
    width: 100%;
    max-width: 315px;
}

.qr-modal-container {
    padding: 20px;
    max-width: 280px;
}

.qr-modal-title {
    font-size: 16px;
}

.qr-modal-code {
    width: 160px;
    height: 160px;
}

.qr-modal-text {
    font-size: 12px;
}
}