
#swai-copy-text{
    color: #8679ad;
    font-size: 12px;
    line-height: 20px;
    /*margin-left: 5px;*/
}
.swai-trigger-content span,
.swai-menu-item span
{font-size: 12px;}
.swai-container {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 100%;
    margin-top: 15px;
    margin-bottom: 20px;
}

.swai-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.swai-title {
    font-size: 16px;
    color: #111827;
    font-weight: 600;
    margin-right: 4px;
}

/* 基础按钮与下拉触发器样式 */
.swai-btn, .swai-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 6px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 18px;
    box-sizing: content-box;
    text-decoration: none;
    /*transition: background-color 0.2s, border-color 0.2s;*/
    min-width: 98px;
    width: 98px;
}
#swai-summarize-btn{
    min-width: unset;
    width: auto;
}

.swai-btn:hover, .swai-dropdown-trigger:hover {
    background-color: #f9fafb;
}

/* --- 紫色核心执行按钮 --- */
.swai-btn.swai-btn-primary {
    background-color: rgba(112, 73, 242, 1);
; /* 贴合截图的紫色 */
    color: #ffffff;
    border: none;
    font-weight: 400;
    gap: 6px;
    font-size: 12px;
}
.swai-btn.swai-btn-primary:hover {
    /*background-color: #4f46e5;*/
    text-decoration: none;
}

/* 灰色复制按钮 */
.swai-btn.swai-btn-copy {
    color: #6b7280;
    background-color: rgba(245, 242, 252, 1);
;
}
/*.swai-btn.swai-btn-copy:hover {*/
/*    background-color: #f3f4f6;*/
/*}*/

.swai-separator {
    color: #d1d5db;
    margin: 0 2px;
    user-select: none;
}

.swai-icon-placeholder, .swai-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* ========= 自定义下拉菜单核心样式 ========= */
.swai-dropdown {
    position: relative;
    /*min-width: 114px;*/
}

.swai-trigger-content {
    display: flex;
    align-items: center;
}

.swai-chevron {
    width: 8px;
    height: 5px;
    margin-left: auto;
    color: #9ca3af;
    transform: rotate(180deg); transform-origin: center;
}
#swai-prompt-trigger .swai-chevron {
    margin-left: auto;
}

.swai-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    /*box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);*/
    /*min-width: 160px;*/
    z-index: 50;
    display: none; /* 默认隐藏 */
    flex-direction: column;
    padding: 9px 8px;
}

.swai-dropdown.open .swai-dropdown-menu {
    display: flex;
}
.swai-dropdown.open .swai-dropdown-trigger {
    border-color: #a78bfa;
    background-color: #f5f3ff;
}

.swai-menu-item {
    display: flex;
    align-items: center;
    /*padding: 8px 12px;*/
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    /*transition: background-color 0.1s;*/
    margin-bottom: 10px;
    width: 98px;
}
.swai-menu-item:last-child{
    margin-bottom: 0;
}

.swai-menu-item:hover {
    /*background-color: #f3f4f6;*/
}

/* 选中状态的 Tick 图标 */
.swai-menu-tick {
    margin-left: auto;
    color: #10b981;
    display: none;
}
.swai-menu-item.active .swai-menu-tick {
    display: block;
}

/* 提示词菜单的特殊排版 (带副标题) */
.swai-prompt-item {
    align-items: flex-start;
    /*min-width: 180px;*/
}
#swai-prompt-menu .swai-menu-item{
    width:168px;
}
.swai-prompt-item.active {
    /*background-color: #f5f3ff; !* 浅紫底色 *!*/
}
.swai-prompt-item .swai-prompt-icon {
    margin-top: 7px;
}
.swai-prompt-texts {
    display: flex;
    flex-direction: column;
}
.swai-prompt-title {
    font-weight: 500;
    color: #111827;
    line-height: 18px;
    font-size: 12px;
}
.swai-prompt-item.active .swai-prompt-title,
.swai-prompt-item.active .swai-prompt-desc
{
    color: #6366f1; /* 激活时标题变紫 */
}
.swai-prompt-desc {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 0;
    line-height: 18px;
}
/* ======================================= */

/* 防止按钮点击时因内容变化导致宽度抖动 */
#swai-copy-btn {
    min-width: unset;
    width:auto;
}
.swai-btn.swai-btn-success {
    border-color: #34d399;
    color: #34d399;
}
.swai-btn.swai-btn-success #swai-copy-icon,
.swai-btn.swai-btn-success #swai-copy-text {
    color: #34d399;
    font-size: 12px;
}