.language-selector-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.language-selector-trigger:hover {
    border-color: #16b777;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.language-selector-trigger .iconfont {
    font-size: 16px;
    color: #5f5f5f;
}

.language-selector-trigger .language-text {
    font-weight: 500;
    color: #333;
}

.language-selector-trigger .icon-caret-down {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.language-selector-trigger.active .icon-caret-down {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.language-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.language-dropdown-menu .divlis {
    padding: 8px 0;
}

.language-item-container {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-item-container:hover {
    background-color: #f8f9fa;
    color: #16b777;
}

.language-item-container.active {
    background-color: #e6f7f2;
    color: #16b777;
    font-weight: 500;
}

.language-flag {
    border-radius: 2px;
    border: 1px solid #e0e0e0;
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.language-name {
    font-size: 14px;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-selector-wrapper {
        top: 15px;
        right: 15px;
    }
    
    .language-selector-trigger {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-selector-trigger .iconfont {
        font-size: 14px;
    }
    
    .language-dropdown-menu {
        min-width: 140px;
        margin-top: 6px;
    }
    
    .language-item-container {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .language-flag {
        width: 20px;
        height: 20px;
    }
    
    .language-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .language-selector-wrapper {
        top: 10px;
        right: 10px;
    }
    
    .language-selector-trigger {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .language-text {
        display: none;
    }
    
    .language-dropdown-menu {
        min-width: 120px;
    }
    
    .language-item-container {
        padding: 5px 10px;
    }
    
    .language-name {
        font-size: 12px;
    }
}

/* 滚动条样式 */
.language-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* 弹窗内容样式 */
    .privacy-container {
        margin-bottom: 25px;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        overflow: hidden;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }
    
    .privacy-container:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    
    /* 弹窗头部样式 */
    .privacy-modal-header {
        padding: 20px 30px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #ffffff;
        border-bottom: 1px solid #e8e8e8;
    }
    
    .privacy-modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    /* 弹窗内容区域 */
    .privacy-modal-body {
        padding: 0;
    }
    
    .privacy-content {
        color: #4a5568;
        line-height: 2.0;
        max-height: 400px;
        overflow-y: auto;
        padding: 30px;
        background-color: #fafafa;
    }
    
    /* 内容标题样式 */
    .privacy-content h4 {
        color: #2d3748;
        margin: 25px 0 15px 0;
        font-size: 16px;
        font-weight: 700;
        border-left: 4px solid #667eea;
        padding-left: 15px;
    }
    
    .privacy-content h4:first-child {
        margin-top: 0;
    }
    
    /* 段落样式 */
    .privacy-content p {
        margin: 15px 0;
        text-align: justify;
        font-size: 14px;
        color: #4a5568;
    }
    
    /* 列表样式 */
    .privacy-content ul, .privacy-content ol {
        margin: 15px 0;
        padding-left: 30px;
    }
    
    .privacy-content li {
        margin: 10px 0;
        font-size: 14px;
        color: #4a5568;
    }
    
    /* 链接样式 */
    .privacy-content a {
        color: #667eea;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .privacy-content a:hover {
        color: #764ba2;
        text-decoration: underline;
    }
    
    /* 滚动条样式 */
    .privacy-content::-webkit-scrollbar {
        width: 8px;
    }
    
    .privacy-content::-webkit-scrollbar-track {
        background: #edf2f7;
        border-radius: 4px;
    }
    
    .privacy-content::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        border-radius: 4px;
        border: 2px solid #edf2f7;
    }
    
    .privacy-content::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #5a67d8 0%, #6b46c1 100%);
    }
    
    /* 滚动条按钮 */
    .privacy-content::-webkit-scrollbar-button {
        display: none;
    }
    
    /* 适配移动端 */
    @media (max-width: 768px) {
        .privacy-content {
            padding: 20px;
            max-height: 300px;
        }
        
        .privacy-modal-header {
            padding: 15px 20px;
        }
        
        .privacy-modal-header h3 {
            font-size: 16px;
        }
    }

        /* 确保全屏背景 */
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    
    body {
        background-image: url("/api.php?rand=true")!important;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
    }
    /* 移除可能影响的背景遮罩 */
    .bgimg {
        display: none;
    }