/* 首页右侧固定位置的AI助手按钮 - 慕课网样式 */
.ai-assistant-trigger-section {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(31px); /* 四个按钮居中显示 */
    z-index: 1000;
}

.ai-assistant-trigger-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px 0 0 6px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    min-height: 60px;
    font-size: 12px;
    text-align: center;
    margin-bottom: 1px;
}

.ai-assistant-trigger-card:hover {
    background: #f8f8f8;
    color: #333;
}

.ai-assistant-trigger-card .trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    color: #666;
    font-size: 16px;
    background: transparent;
}

.ai-assistant-trigger-card .trigger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ai-assistant-trigger-card .trigger-content h3 {
    margin: 0;
    font-size: 12px;
    font-weight: normal;
    color: inherit;
    line-height: 1.2;
}

.ai-assistant-trigger-card .trigger-content p {
    margin: 0;
    font-size: 10px;
    color: #999;
    line-height: 1.2;
    display: none; /* 隐藏描述文字 */
}

/* 深色模式支持 */
[data-theme="dark"] .ai-assistant-trigger-card {
    background: #2a2a2a;
    border-color: #404040;
    color: #ccc;
}

[data-theme="dark"] .ai-assistant-trigger-card:hover {
    background: #333;
    color: #fff;
}

[data-theme="dark"] .ai-assistant-trigger-card .trigger-icon {
    color: #ccc;
}

[data-theme="dark"] .ai-assistant-trigger-card .trigger-content h3 {
    color: #ccc;
}

[data-theme="dark"] .ai-assistant-trigger-card:hover .trigger-icon,
[data-theme="dark"] .ai-assistant-trigger-card:hover .trigger-content h3 {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-assistant-trigger-section {
        display: none;
    }
}

@media (max-width: 1200px) {
    .ai-assistant-trigger-card {
        width: 50px;
        min-height: 50px;
        padding: 8px 6px;
    }
    
    .ai-assistant-trigger-card .trigger-icon {
        font-size: 14px;
        width: 18px;
        height: 18px;
    }
    
    .ai-assistant-trigger-card .trigger-content h3 {
        font-size: 11px;
    }
}