/* 1AI Code Imagine - 品牌化 CSS 注入 */

/* GitHub icon 替换为 1AI logo（命中 octocat path 的 SVG 容器） */
/* 真实 octocat path 是 "M12 0C5.37 0 0 5.37 0 12c0..."，前缀只取 "M12 0C5.37" 最稳 */
svg:has(> path[d^="M12 0C5.37"]) {
    color: transparent !important;
    background-image: url('/brand/imagine-logo.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 4px !important;
}

/* 引流 CTA 胶囊样式（由 JS 插在品牌名左侧） */
.brand-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
    padding: 3px 12px;
    background: linear-gradient(135deg, #4F8EF7 0%, #9D5BFF 100%);
    color: white !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    vertical-align: middle;
}
.brand-cta-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 142, 247, 0.35);
    color: white !important;
}
@media (max-width: 640px) {
    .brand-cta-pill {
        font-size: 11px;
        padding: 2px 8px;
        margin-right: 8px;
    }
}

/* 设置弹窗里 "API Key" 标签后的小字 CTA（JS 注入） */
.brand-apikey-cta {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.5;
    color: #4F8EF7 !important;
    text-decoration: none !important;
    border-radius: 9999px;
    background: rgba(79, 142, 247, 0.08);
    vertical-align: middle;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.brand-apikey-cta:hover {
    background: rgba(79, 142, 247, 0.16);
    color: #9D5BFF !important;
    text-decoration: none !important;
}
