/* 代码编辑器触发按钮样式 */
.code-editor-trigger-section {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(93px); /* 四个按钮居中显示 */
    z-index: 1000;
}

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

.code-editor-trigger-card:hover {
    background: #f8f8f8;
    color: #333;
}

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

.code-editor-trigger-card .trigger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.code-editor-trigger-card .trigger-content h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

.code-editor-trigger-card .trigger-content p {
    margin: 2px 0 0;
    font-size: 8px;
    opacity: 0.8;
    line-height: 1.2;
    color: inherit;
}

/* 深色主题适配 */
[data-theme="dark"] .code-editor-trigger-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .code-editor-trigger-card:hover {
    background: #4a5568;
    color: #f7fafc;
}

[data-theme="dark"] .code-editor-trigger-card .trigger-icon {
    color: #e2e8f0;
}

[data-theme="dark"] .code-editor-trigger-card .trigger-content h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .code-editor-trigger-card:hover .trigger-icon,
[data-theme="dark"] .code-editor-trigger-card:hover .trigger-content h3 {
    color: #f7fafc;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .code-editor-trigger-section {
        display: none;
    }

    .code-editor-trigger-card {
        width: 50px;
        min-height: 50px;
        padding: 8px 6px;
    }

    .code-editor-trigger-card .trigger-icon {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }

    .code-editor-trigger-card .trigger-content h3 {
        font-size: 9px;
    }
}