/* AI规则模态弹窗样式 */
.ai-rules-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-rules-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.ai-rules-modal-content {
    width: 650px;
    max-width: 95%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 219, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 媒体查询：适配不同屏幕大小 */
@media (min-width: 768px) {
    .ai-rules-modal-content {
        width: 800px;
        max-width: 90%;
        max-height: 90vh;
    }
    
    .ai-rules-modal-content textarea {
        height: 450px;
    }
}

.ai-rules-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-rules-modal-content h2 {
    margin: 0;
    color: rgba(0, 219, 255, 0.9);
    font-size: 20px;
}

/* 关闭按钮样式 */
.db-filter-close-button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-filter-close-button:hover {
    color: rgba(0, 219, 255, 0.9);
    background: rgba(0, 219, 255, 0.1);
}

.db-filter-close-button svg {
    width: 18px;
    height: 18px;
}

.ai-rules-textarea-container {
    padding: 15px 20px;
    flex: 1;
    overflow: hidden;
}

.ai-rules-modal-content textarea {
    width: 100%;
    height: 350px;
    padding: 12px;
    border: 1px solid rgba(0, 219, 255, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 15px;
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 219, 255, 0.3) rgba(0, 0, 0, 0.3);
}

/* Webkit浏览器（如Chrome、Safari）的滚动条样式 */
.ai-rules-modal-content textarea::-webkit-scrollbar {
    width: 8px;
}

.ai-rules-modal-content textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.ai-rules-modal-content textarea::-webkit-scrollbar-thumb {
    background: rgba(0, 219, 255, 0.3);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.ai-rules-modal-content textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 219, 255, 0.5);
}

.ai-rules-modal-content textarea:focus {
    outline: none;
    border-color: rgba(0, 219, 255, 0.7);
    box-shadow: 0 0 5px rgba(0, 219, 255, 0.3);
}

.ai-rules-modal-content .buttons {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ai-rules-modal-content button {
    padding: 8px 20px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#cancel-ai-rules-button {
    background: rgba(150, 150, 150, 0.2);
    color: #fff;
    border: 1px solid rgba(150, 150, 150, 0.5);
}

#cancel-ai-rules-button:hover {
    background: rgba(150, 150, 150, 0.3);
}

#save-ai-rules-button {
    background: rgba(0, 219, 255, 0.3);
    color: #fff;
    border: 1px solid rgba(0, 219, 255, 0.6);
    font-weight: bold;
}

#save-ai-rules-button:hover {
    background: rgba(0, 219, 255, 0.4);
}

/* 确认取消模态框 */
.ai-rules-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-rules-confirm-modal.active {
    display: flex;
    opacity: 1;
}

.ai-rules-confirm-modal-content {
    width: 400px;
    max-width: 90%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 219, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;
}

.ai-rules-confirm-modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #f0f0f0;
    line-height: 1.5;
}

.ai-rules-confirm-modal-content .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ai-rules-confirm-modal-content button {
    padding: 8px 20px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
}

#confirm-no-button {
    background: rgba(150, 150, 150, 0.2);
    color: #fff;
    border: 1px solid rgba(150, 150, 150, 0.5);
}

#confirm-no-button:hover {
    background: rgba(150, 150, 150, 0.3);
}

#confirm-yes-button {
    background: rgba(0, 219, 255, 0.3);
    color: #fff;
    border: 1px solid rgba(0, 219, 255, 0.6);
    font-weight: bold;
}

#confirm-yes-button:hover {
    background: rgba(0, 219, 255, 0.4);
}

/* 提示模态框（用于保存成功/取消提醒） */
.ai-rules-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-rules-alert-modal.active {
    display: flex;
    opacity: 1;
}

.ai-rules-alert-modal-content {
    width: 400px;
    max-width: 90%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 219, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-rules-alert-modal-content .alert-icon {
    margin-bottom: 15px;
}

.ai-rules-alert-modal-content .alert-icon svg {
    width: 40px;
    height: 40px;
    stroke: #00dbff;
}

.ai-rules-alert-modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #f0f0f0;
    line-height: 1.5;
}

.ai-rules-alert-modal-content .buttons {
    display: flex;
    justify-content: center;
}

.ai-rules-alert-modal-content button {
    padding: 8px 25px;
    font-size: 15px;
    background: rgba(0, 219, 255, 0.3);
    color: #fff;
    border: 1px solid rgba(0, 219, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.ai-rules-alert-modal-content button:hover {
    background: rgba(0, 219, 255, 0.4);
}

/* AI规则按钮 */
.ai-rules-toggle {
    position: fixed;
    top: 10px;
    right: 80px;
    z-index: 103;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.database-toggle {
    position: fixed;
    top: 10px;
    right: 45px;
    z-index: 104;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ai-app-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 104;
    background: linear-gradient(135deg, rgba(0, 82, 121, 0.95), rgba(0, 44, 92, 0.98));
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 15px rgba(0, 219, 255, 0.25);
    border: 1.5px solid rgba(0, 219, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.database-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.ai-app-toggle svg {
    width: 24px;
    height: 24px;
    stroke: rgba(0, 219, 255, 1);
    filter: drop-shadow(0 2px 5px rgba(0, 219, 255, 0.4));
    transition: all 0.3s ease;
}

.ai-app-toggle:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 219, 255, 0.4);
    border-color: rgba(0, 219, 255, 0.9);
    background: linear-gradient(135deg, rgba(0, 100, 140, 0.98), rgba(0, 60, 110, 1));
}

.ai-app-toggle:hover svg {
    transform: scale(1.08);
    stroke: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 3px 8px rgba(0, 219, 255, 0.7));
}

.ai-app-toggle:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.database-toggle.hidden {
    display: none;
}

.ai-app-toggle.hidden {
    display: none;
}

.ai-rules-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* 调整资料库按钮和右侧边栏层次 */
.right-sidebar-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 99;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 桌面端样式 - 显示带文字的按钮 */
@media (min-width: 769px) {
    /* 顶部按钮现代样式 - 共享基础样式 */
    .right-sidebar-toggle,
    .database-toggle,
    .ai-rules-toggle {
        width: auto;
        border-radius: 4px;
        padding: 6px 14px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(12, 20, 33, 0.95));
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(0, 219, 255, 0.4);
        color: rgba(255, 255, 255, 0.9);
        position: fixed;
        top: 10px;
        z-index: 99;
    }
    
    /* AI应用按钮特殊样式 - 现代且内敛 */
    .ai-app-toggle {
        width: auto;
        border-radius: 6px;
        padding: 7px 15px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.6px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, rgba(0, 82, 121, 0.95), rgba(0, 44, 92, 0.98));
        box-shadow: 0 4px 15px rgba(0, 219, 255, 0.25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1.5px solid rgba(0, 219, 255, 0.7);
        color: rgba(255, 255, 255, 0.95);
        position: fixed;
        top: 10px;
        z-index: 104;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    /* 保持原始按钮定位 - 确保适当的间距 */
    .ai-app-toggle {
        right: 20px;
    }
    
    .ai-rules-toggle {
        right: 130px;
    }
    
    /* 隐藏的按钮 */
    .right-sidebar-toggle {
        display: none;
    }
    
    .database-toggle {
        display: none;
    }
    
    /* 文字内容 */
    .right-sidebar-toggle::after {
        content: "资料库";
        margin-left: 8px;
        white-space: nowrap;
    }
    
    .database-toggle::after {
        content: "数据库";
        margin-left: 8px;
        white-space: nowrap;
    }
    
    .ai-app-toggle::after {
        content: "AI应用";
        margin-left: 8px;
        white-space: nowrap;
    }
    
    .ai-rules-toggle::after {
        content: "规则库";
        margin-left: 8px;
        white-space: nowrap;
    }
    
    /* SVG图标样式 */
    .right-sidebar-toggle svg,
    .database-toggle svg,
    .ai-app-toggle svg,
    .ai-rules-toggle svg {
        width: 16px;
        height: 16px;
        stroke-width: 1.75;
        stroke: rgba(0, 219, 255, 0.95);
        filter: drop-shadow(0 0 3px rgba(0, 219, 255, 0.4));
        transition: all 0.3s ease;
    }
    
    /* 现代化的悬停效果 */
    .right-sidebar-toggle:hover,
    .database-toggle:hover,
    .ai-rules-toggle:hover {
        background: linear-gradient(135deg, rgba(0, 82, 121, 0.85), rgba(0, 44, 92, 0.9));
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        transform: translateY(-2px);
        border: 1px solid rgba(0, 219, 255, 0.8);
        color: #fff;
    }
    
    /* AI应用按钮特殊悬停效果 */
    .ai-app-toggle:hover {
        background: linear-gradient(135deg, rgba(0, 100, 140, 0.98), rgba(0, 60, 110, 1));
        box-shadow: 0 8px 30px rgba(0, 219, 255, 0.4);
        transform: translateY(-3px) scale(1.02);
        border-color: rgba(0, 219, 255, 0.9);
        color: #fff;
    }
    
    /* 按钮悬停时图标效果 */
    .right-sidebar-toggle:hover svg,
    .database-toggle:hover svg,
    .ai-rules-toggle:hover svg {
        stroke: rgba(0, 219, 255, 1);
        filter: drop-shadow(0 0 5px rgba(0, 219, 255, 0.9));
        transform: scale(1.05);
    }
    
    /* AI应用按钮图标样式 */
    .ai-app-toggle svg {
        stroke: rgba(0, 219, 255, 1);
        filter: drop-shadow(0 2px 5px rgba(0, 219, 255, 0.4));
        transition: all 0.3s ease;
    }
    
    .ai-app-toggle:hover svg {
        stroke: rgba(255, 255, 255, 1);
        filter: drop-shadow(0 3px 8px rgba(0, 219, 255, 0.7));
        transform: scale(1.08);
    }
    
    /* 创建一个微妙的边框发光效果 */
    .right-sidebar-toggle::before,
    .database-toggle::before,
    .ai-app-toggle::before,
    .ai-rules-toggle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 4px;
        padding: 1px;
        background: linear-gradient(135deg, transparent, rgba(0, 219, 255, 0.3), transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .right-sidebar-toggle:hover::before,
    .database-toggle:hover::before,
    .ai-app-toggle:hover::before,
    .ai-rules-toggle:hover::before {
        opacity: 1;
    }
    
    /* 隐藏文本覆盖 */
    .overlay-textx {
        display: none; /* 隐藏R文字，因为现在有文字标签 */
    }
}

.right-sidebar-toggle.hidden {
    display: none;
}

.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 85%;
    background: rgba(0, 0, 0, 0.9);
    border-left: 1px solid rgba(0, 219, 255, 0.3);
    z-index: 105;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.right-sidebar.active {
    transform: translateX(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateZ(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

.right-sidebar-toggle, .ai-rules-toggle {
    pointer-events: auto;
}

.overlay-textx {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #fff;
    pointer-events: none;
}

/* 自定义模态框内容的滚动条样式 */
.ai-rules-modal-content::-webkit-scrollbar {
    width: 8px;
}

.ai-rules-modal-content::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.85);
    border-radius: 5px;
}

.ai-rules-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00c4e6, #d400d4);
    border-radius: 5px;
    border: 1px solid rgba(0, 174, 204, 0.4);
}

.ai-rules-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d400d4, #00c4e6);
}

/* Right sidebar login requirement overlay */
.right-sidebar-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.92);
    border-top: 1px solid rgba(78, 204, 255, 0.3);
    color: #fff;
    z-index: 50; /* 增加z-index确保它显示在文件树之上 */
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-top: 60px; /* Account for the header height instead of using top: 60px */
    height: calc(100% - 60px); /* Adjust height to account for the header */
}

.right-sidebar-login-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.right-sidebar-login-overlay .login-requirement-icon {
    margin-bottom: 15px;
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-sidebar-login-overlay .login-requirement-icon svg {
    filter: drop-shadow(0 0 8px rgba(78, 204, 255, 0.5));
}

.right-sidebar-login-overlay h2 {
    background: linear-gradient(to right, #4eceff, #c054ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    font-weight: 600;
    margin: 15px 0;
    letter-spacing: 1px;
    font-size: 24px;
}

.right-sidebar-login-overlay p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}

.right-sidebar-login-overlay .buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
}

.right-sidebar-login-overlay .buttons button {
    flex: 1;
    background: linear-gradient(135deg, #4eceff, #c054ff);
    border-radius: 12px;
    border: none;
    padding: 12px 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.right-sidebar-login-overlay .buttons button:last-child {
    background: linear-gradient(135deg, #4a4a6b, #2d325a);
}

.right-sidebar-login-overlay .buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.right-sidebar-login-overlay .buttons button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Button hover effect */
.right-sidebar-login-overlay .buttons button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.right-sidebar-login-overlay .buttons button:hover::after {
    left: 100%;
}

/* Hide file tree when login overlay is active */
.right-sidebar-login-overlay.active + .file-tree {
    display: none;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(78, 204, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 12px rgba(78, 204, 255, 0.7));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(78, 204, 255, 0.5));
    }
}

/* 当登录覆盖层显示时隐藏相关元素 */
.right-sidebar-login-overlay.active ~ .file-tree,
.right-sidebar-login-overlay.active ~ .search-bar,
.right-sidebar-login-overlay.active ~ .bottom-tip {
    display: none !important;
}

/* Mobile optimization for right sidebar login overlay */
@media (max-width: 768px) {
    .right-sidebar-login-overlay {
        padding: 18px;
        margin-top: 50px; /* Adjust for smaller header on mobile */
        height: calc(100% - 50px);
    }
    
    .right-sidebar-login-overlay .login-requirement-icon {
        margin-bottom: 10px;
        width: 50px;
        height: 50px;
    }
    
    .right-sidebar-login-overlay .login-requirement-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .right-sidebar-login-overlay h2 {
        font-size: 20px;
        margin: 6px 0 8px 0;
    }
    
    .right-sidebar-login-overlay p {
        font-size: 15px;
        margin-bottom: 16px;
        max-width: 95%;
    }
    
    .right-sidebar-login-overlay .buttons {
        gap: 12px;
        max-width: 250px;
    }
    
    .right-sidebar-login-overlay .buttons button {
        padding: 9px 14px;
        font-size: 14px;
    }
    
    /* 移动端AI应用按钮样式 - 使用app-modal-header配色方案 */
    .ai-app-toggle {
        width: auto;
        border-radius: 8px;
        padding: 8px 12px;
        height: 34px;
        background: linear-gradient(135deg, 
            rgba(26, 26, 46, 0.9), 
            rgba(22, 33, 62, 0.95)
        );
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.3px;
        color: rgba(255, 255, 255, 0.9);
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            0 1px 2px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);
        position: fixed;
        right: 8px;
        top: 8px;
        z-index: 104;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ai-app-toggle::after {
        content: "AI应用";
        margin-left: 6px;
        white-space: nowrap;
    }
    
    .ai-app-toggle svg {
        width: 15px;
        height: 15px;
        stroke-width: 2;
        stroke: rgba(255, 255, 255, 0.8);
        transition: all 0.2s ease;
    }
    
    .ai-app-toggle:hover {
        background: linear-gradient(135deg, 
            rgba(32, 32, 56, 0.95), 
            rgba(28, 40, 76, 1)
        );
        border-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.7),
            0 0 8px rgba(78, 206, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    }
    
    .ai-app-toggle:hover svg {
        stroke: rgba(255, 255, 255, 1);
        transform: scale(1.05);
    }
    
    .ai-app-toggle:active {
        transform: translateY(0);
        background: linear-gradient(135deg, 
            rgba(22, 22, 40, 0.95), 
            rgba(18, 28, 52, 1)
        );
        box-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.6),
            inset 0 1px 2px rgba(0, 0, 0, 0.3),
            inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    }
}