/* === AI 主题色变量 === */
:root {
    --ai-green-from: #11998e;
    --ai-green-to: #38ef7d;
    --ai-green-glow: rgba(56, 239, 125, 0.2);
}

/* === AI 星形 Logo === */
.ai-star-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; }

.ai-star-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(16,185,129,0.4) 25%, transparent 50%, rgba(56,239,125,0.3) 75%, transparent 100%);
    opacity: 0;
}

.ai-star-logo.animate { animation: ai-spin-cw 20s linear infinite; }
.ai-star-logo.animate .ai-star-glow { opacity: 1; animation: ai-spin-ccw 8s linear infinite; }

@keyframes ai-spin-cw { to { transform: rotate(360deg); } }
@keyframes ai-spin-ccw { to { transform: rotate(-360deg); } }


/* === 浮动光球 === */
.floating-orbs-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* 路径A：偏左上→右下的椭圆轨迹 */
@keyframes orb-float-A {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(25px, -20px) scale(1.12); }
    50%  { transform: translate(-15px, 18px) scale(0.92); }
    75%  { transform: translate(10px, -8px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

/* 路径B：偏右下→左上的椭圆轨迹 */
@keyframes orb-float-B {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-20px, 15px) scale(0.9); }
    50%  { transform: translate(30px, -25px) scale(1.15); }
    75%  { transform: translate(-12px, 10px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* 根组件 */
.ai-page-content {
    height: calc(100vh);
    overflow: hidden;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.ai-page-content > .container-fluid {
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.ai-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
}

.ai-chat-container {
    position:relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.ai-chat-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    min-height: 0;
    padding: 3.5rem 1rem 1rem;
}

.ai-page-content--iframe .ai-chat-scroll {
    padding-top: 1rem;
}

.ai-chat-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-generation-spacer {
    flex: 0 0 auto;
    height: clamp(220px, 73vh, 853px);
    pointer-events: none;
}

.ai-center-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ai-chat-input-bar {
    position: relative;
    flex-shrink: 0;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0.1rem 1rem 1rem 1rem;
    z-index: 5;
}

.ai-chat-input-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 24px;
    pointer-events: none;
}




.ai-history-loading-chip {
    position: sticky;
    top: 0.5rem;
    z-index: 3;
    margin: 0 auto 0.75rem;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(var(--phoenix-secondary-rgb), 0.18);
    color: var(--phoenix-body-color);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    font-size: 0.82rem;
}







/* === 预设问题卡片 === */
.ai-preset-section {
    width: 100%;
    position: relative;
    padding-bottom: 32px;
    margin:0 auto;
}

.ai-preset-card {
    background: linear-gradient(to bottom, rgba(17,153,142,0.08), transparent);
    border: 1px solid #1e2633;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    height: 170px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ai-preset-card:hover {
    background: linear-gradient(to bottom, rgba(17,153,142,0.12), rgba(17,153,142,0.02));
    border-color: rgba(17,153,142,0.3);
}

.ai-preset-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-preset-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(17,153,142,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-preset-card-icon i {
    font-size: 16px;
    background: linear-gradient(135deg, var(--ai-green-from), var(--ai-green-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-preset-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.ai-preset-card-subtitle {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.3;
}

.ai-preset-card-desc {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Swiper 分页指示器 */
.ai-preset-pagination {
    text-align: center;
    margin-top: 16px;
}
.ai-preset-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.2);
    opacity: 1;
    width: 8px;
    height: 8px;
}
.ai-preset-pagination .swiper-pagination-bullet-active {
    background: var(--ai-green-from);
    width: 20px;
    border-radius: 4px;
}


/* === 免责声明 === */
.ai-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    animation: ai-fade-in 0.6s ease 1.2s both;
}

.ai-disclaimer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(17,153,142,0.5);
    animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes ai-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* === 欢迎页入场动画 === */
@keyframes ai-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-welcome-logo {
    margin-bottom: 24px;
    animation: ai-slide-up 0.5s ease both;
}

.ai-welcome-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(to right, var(--ai-green-from), var(--ai-green-to), var(--ai-green-from));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ai-slide-up 0.5s ease 0.2s both;
}

.ai-welcome-subtitle {
    font-size: 16px;
    color: #888;
    text-align: center;
    margin-bottom: 32px;    
    animation: ai-slide-up 0.5s ease 0.35s both;
}

.ai-welcome-cards {
    width: 100%;
    animation: ai-slide-up 0.5s ease 0.5s both;
}

@media (min-width: 768px) {
    .ai-welcome-title { font-size: 35px; }
    .ai-welcome-subtitle { font-size: 18px; }
}


/* === 输入框 === */
.ai-input-gradient-border {
    border-radius: 16px;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--phoenix-emphasis-bg, #1a1a2e), var(--phoenix-emphasis-bg, #1a1a2e)) padding-box,
        linear-gradient(135deg, var(--ai-green-from), var(--ai-green-to)) border-box;
}

.ai-input-inner {
    padding: 12px 16px 8px;
}

.ai-input-field .mud-input-slot {
    color: var(--phoenix-body-color, #ccc);
    font-size: 0.95rem;
}

.ai-input-field .mud-input::before,
.ai-input-field .mud-input::after {
    border-bottom: none !important;
}

.ai-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    margin-top: 3px;
}

/* === 发送/停止按钮 === */
.ai-send-btn {
    border-radius: 50% !important;
    background: linear-gradient(135deg, #11998e, #38ef7d) !important;
    color: #fff !important;
    width: 36px;
    height: 36px;
    min-width: 36px !important;
}

.ai-send-btn:disabled {
    opacity: 0.4;
}

.ai-stop-btn {
    background: linear-gradient(135deg, #e74c3c, #e67e22) !important;
}

/* === 加号按钮 + 附件菜单 === */
.ai-plus-btn {
    background-color: var(--phoenix-secondary-bg);
    padding: 8px 9px;
    border-radius: 50%;
    font-size: 18px;
    transition: transform 0.15s ease, border-color 0.2s, color 0.2s;
}

.ai-plus-btn:hover,
.ai-plus-btn:active,
.ai-plus-btn.active {
    transform: scale(1.15);
}

.ai-attach-wrap {
    position: relative;
}

.ai-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
}

@keyframes menu-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-attach-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    animation: menu-pop 0.18s ease;
    border-radius: 12px;
    background-color: var(--phoenix-secondary-bg);
    z-index: 999;
    cursor: pointer;
}

.ai-attach-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 160px;
    padding: 9px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
}

.ai-attach-menu-item:hover {
    background: rgba(17,153,142,0.15);
    color: #fff;
}

.ai-attach-menu-item i {
    font-size: 15px;
    color: var(--ai-green-from);
    width: 16px;
    text-align: center;
}

/* Uploader 透明覆盖层 */
.ai-uploader-overlay {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.ai-upload-hint {
    font-size: 0.78rem;
    color: var(--ai-green-from);
    opacity: 0.85;
    display: flex;
    align-items: center;
}


/* === 消息列表 === */
.user-bubble {
    background: linear-gradient(135deg, #11998e, #28c76f);
    border-radius: 1rem;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.ai-chat-img {
    max-width: 100px;
    min-width: 50px;
    aspect-ratio: 4/3;
}

.ai-bubble {
    background-color: var(--phoenix-emphasis-bg);
    border-radius: 1rem;
    border-top-left-radius: 4px;
    border: 1px solid #252545;
    color: var(--phoenix-emphasis-color);
    line-height: 1.65;
}

.ai-bubble :where(p, li, td, th, blockquote, code, pre, span) {
    color: inherit;
    font-size: inherit;
}

.ai-bubble > :last-child,
.ai-bubble p:last-child {
    margin-bottom: 0;
}

.ai-avatar-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ai-msg-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-msg-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-msg-loading {
    min-width: 0;
}

.ai-msg-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

@media (min-width: 1000px) {
    .ai-msg-row {
        gap: 8px;
    }

    .ai-msg-main {
        margin-left: 38px;
    }
}

@media (max-width: 999px) {
    .ai-avatar-icon {
        width: 28px;
        height: 28px;
        margin-top: 2px;
    }

    .ai-msg-head {
        gap: 8px;
    }

    .ai-msg-main {
        margin-left: 0;
    }
}




/* === 会话列表 === */
.aicl-sidebar {
    width: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--phoenix-sidebar-bg, #171717);
    color: var(--phoenix-sidebar-color, #ececec);
    flex-shrink: 0;
    transition: width 0.2s ease;
    overflow: hidden;
}

    .aicl-sidebar.collapsed {
        width: 52px;
    }

.aicl-topbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .aicl-topbar .aicl-toggle-btn {
        margin-left: auto;
    }

    .aicl-topbar.vertical {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 10px 0;
    }

        .aicl-topbar.vertical .aicl-toggle-btn {
            margin-left: 0;
        }

.aicl-back-text {
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    opacity: 0.7;
}

    .aicl-back-text:hover {
        opacity: 1;
    }

.aicl-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
}

.aicl-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
}

    .aicl-icon-btn:hover {
        background: rgba(255,255,255,0.1);
    }

.aicl-new-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

    .aicl-new-btn:hover {
        background: rgba(255,255,255,0.14);
    }

.aicl-section-title {
    padding: 12px 16px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}



.aicl-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
}

.aicl-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1px;
    transition: background 0.15s ease;
}

.aicl-item.active {
    background: var(--phoenix-secondary-bg);
}

.aicl-item-content {
    flex: 1;
    min-width: 0;
}

.aicl-item-title {
    display: block;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aicl-item-actions {
    display: flex;
    margin-left: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.aicl-item:hover .aicl-item-actions,
.aicl-item.active .aicl-item-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* 三个点按钮本身 */
.aicl-item-actions .mud-icon-button,
.aicl-item-actions .mud-button-root {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--phoenix-quaternary-color);
    background-color: transparent;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

/* 鼠标悬浮 / 菜单展开时 */
.aicl-item-actions .mud-icon-button:hover,
.aicl-item-actions .mud-button-root:hover,
.aicl-item-actions .mud-icon-button[aria-expanded="true"],
.aicl-item-actions .mud-button-root[aria-expanded="true"] {
    background-color: var(--phoenix-body-highlight-bg);
    color: var(--phoenix-emphasis-color);
    transform: scale(1.04);
    box-shadow: inset 0 0 0 1px rgba(var(--phoenix-secondary-rgb), 0.18);
}


.aicl-item:hover {
    background: var(--phoenix-body-highlight-bg);
}


.aicl-rename-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    outline: none;
    background: rgba(255,255,255,0.08);
    color: inherit;
}

.aicl-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

.aicl-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    min-height: 48px;
}


/* 会话管理菜单 */
/* 外层弹层壳子：把默认黑角处理掉 */
.mud-popover:has(.aicl-menu-item) {
    background-color: #262626 !important;
    border: 1px solid rgba(var(--phoenix-secondary-rgb), 0.18) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42) !important;
    overflow: hidden !important;
}

    /* 真正承载菜单的面板 */
    .mud-popover:has(.aicl-menu-item) .mud-paper {
        background-color: #262626 !important;
        border: 1px solid rgba(var(--phoenix-primary-rgb), 0.18);
        border-radius: 14px !important;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
        overflow: hidden;
    }

    /* 内层 list 不再自己单独上底色，避免里外两层分裂 */
    .mud-popover:has(.aicl-menu-item) .mud-menu-list,
    .mud-popover:has(.aicl-menu-item) .mud-list {
        background: transparent !important;
        padding: 6px !important;
    }

    /* 普通菜单项 */
    .mud-popover:has(.aicl-menu-item) .mud-menu-item.aicl-menu-item {
        min-height: 40px;
        border-radius: 10px;
        padding: 9px 12px;
        color: var(--phoenix-secondary-color);
        background: transparent;
        transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }

        .mud-popover:has(.aicl-menu-item) .mud-menu-item.aicl-menu-item .mud-menu-item-text {
            font-size: 13px;
            font-weight: 600;
            line-height: 1.2;
        }

        /* 普通项 hover */
        .mud-popover:has(.aicl-menu-item) .mud-menu-item.aicl-menu-item:hover {
            background: var(--phoenix-body-highlight-bg);
            color: var(--phoenix-emphasis-color);
            transform: translateX(2px);
        }

/* 危险项 */
.mud-popover:has(.aicl-menu-danger) .mud-menu-item.aicl-menu-danger {
    color: var(--phoenix-danger);
    margin-top: 4px;
    border-top: 1px solid rgba(var(--phoenix-secondary-rgb), 0.12);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: 10px;
}

    .mud-popover:has(.aicl-menu-danger) .mud-menu-item.aicl-menu-danger:hover {
        background: var(--phoenix-danger-bg-subtle);
        color: var(--phoenix-danger-text-emphasis);
        transform: translateX(2px);
    }











.ai-scroll-bottom-wrap {
    position: absolute;
    left: 50%;
    bottom: 140px;
    transform: translateX(-50%) translateY(8px);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

    .ai-scroll-bottom-wrap.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

.ai-scroll-bottom-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(var(--phoenix-secondary-rgb), 0.22);
    border-radius: 999px;
    background: var(--phoenix-secondary-bg);
    color: var(--phoenix-body-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .ai-scroll-bottom-btn:hover {
        background: var(--phoenix-body-highlight-bg);
        color: var(--phoenix-emphasis-color);
        border-color: rgba(var(--phoenix-primary-rgb), 0.28);
        transform: translateY(-1px);
    }

    .ai-scroll-bottom-btn i {
        font-size: 14px;
        line-height: 1;
    }


/* === 移动端顶部栏（PC端隐藏） === */
.ai-mobile-topbar {
    display: none;
}

/* === 移动端/PC端切换按钮控制 === */
.aicl-mobile-only { display: none; }
.aicl-desktop-only { display: flex; }

/* === 遮罩层（移动端 sidebar 打开时） === */
.aicl-backdrop {
    display: none;
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    /* sidebar 默认隐藏，overlay 模式 */
    .aicl-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        width: min(280px, 85vw);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .ai-preset-section
    {
        width:88%;
    }
    .aicl-sidebar.collapsed {
        width: min(280px, 85vw);
        transform: translateX(-100%);
    }

    .aicl-sidebar.mobile-open {
        transform: translateX(0);
    }

    /* 遮罩 */
    .aicl-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
    }

    /* 移动端顶部栏 */
    .ai-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* 按钮显隐 */
    .aicl-mobile-only { display: flex; }
    .aicl-desktop-only { display: none; }

    /* 聊天区滚动区域减少顶部 padding */
    .ai-chat-scroll {
        padding-top: 1rem;
    }

    /* 三个点菜单常驻显示 */
    .aicl-item-actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.ai-model-picker-desktop {
    display: block;
    margin-left: 15px;
    margin-top: 12px;
}

.ai-model-picker-mobile {
    display: none;
}


.ai-model-menu .mud-button-root {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 148px;
    gap: 6px;
}

.ai-model-menu .mud-button-label {
    flex: 1;
    text-align: left;
}

.ai-model-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 37px;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fff !important;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

    .ai-model-item .mud-menu-item-text {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        color: #fff !important;
    }

.ai-model-item__content {
    flex: 1;
    min-width: 0;
}

.ai-model-item__title {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    letter-spacing: 0;
}

.ai-model-item__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 16px;
    color: rgba(255, 255, 255, 0.74);
}

.ai-model-check {
    color: rgba(255, 255, 255, 0.86);
}

.mud-popover:has(.ai-model-item) {
    width: 196px;
    min-height: 100px;
    background: rgba(22, 22, 24, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    padding: 5px !important;
    box-sizing: border-box;
    overflow: hidden !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22) !important;
}

    .mud-popover:has(.ai-model-item) .mud-list,
    .mud-popover:has(.ai-model-item) .mud-menu-list {
        background: transparent !important;
        padding: 0 !important;
    }

.ai-model-item:hover,
.ai-model-item:focus-visible {
    background: rgba(255, 255, 255, 0.032) !important;
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.ai-model-item.is-active {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-model-menu > .mud-button-root.mud-menu-button-activator {
    width: 150px;
    min-width: 150px;
    min-height: 33px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #fff !important;
    box-sizing: border-box;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ai-model-menu > .mud-button-root.mud-menu-button-activator:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.ai-model-menu > .mud-button-root.mud-menu-button-activator > .mud-button-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
}

.ai-model-menu > .mud-button-root.mud-menu-button-activator .mud-button-icon-end {
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
}

.ai-model-picker-desktop {
    display: block;
}

.ai-model-picker-mobile {
    display: none;
}

@media (max-width: 768px) {
    .ai-model-picker-desktop {
        display: none;
    }

    .ai-model-picker-mobile {
        display: block;
    }

    .ai-model-picker-mobile .ai-model-menu > .mud-button-root.mud-menu-button-activator {
        width: auto;
        min-width: 138px;
        max-width: 152px;
        min-height: 32px;
        padding: 0 9px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    }

    .ai-model-picker-mobile .ai-model-menu > .mud-button-root.mud-menu-button-activator:hover {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .ai-model-picker-mobile .ai-model-menu > .mud-button-root.mud-menu-button-activator > .mud-button-label {
        font-size: 0.84rem;
    }

    .ai-model-picker-mobile .ai-model-menu > .mud-button-root.mud-menu-button-activator .mud-button-icon-end {
        margin-left: 5px;
        font-size: 0.82rem;
    }
}


.user-bubble,
.ai-bubble {
    font-size: 1.05rem;
}


/* === ai欢迎页 === */
.ai-guest-page {
    position: relative;
    min-height: 100vh;
    padding: 48px 24px 80px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.ai-page-content--iframe .ai-guest-page {
    min-height: 100%;
    padding-top: 8px;
}

.ai-page-content--iframe .ai-guest-welcome__hero {
    padding-top: 0;
}

.ai-guest-welcome {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 5px;
}

.ai-guest-welcome__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-top: 30px;
}

.ai-guest-welcome__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ai-guest-welcome__eyebrow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(56, 239, 125, 0.1);
    border: 1px solid rgba(56, 239, 125, 0.2);
    color: var(--ai-green-to);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.ai-guest-welcome__eyebrow-text {
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 500;
}

.ai-guest-welcome__logo {
    margin-top: 4px;
    margin-bottom: 8px;
}

.ai-guest-welcome__title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.1;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.ai-guest-welcome__title-accent {
    display: block;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--ai-green-from) 0%, var(--ai-green-to) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(56, 239, 125, 0.15));
    font-size:clamp(32px,4vw,16px);
}

.ai-guest-welcome__subtitle {
    max-width: 600px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #a1a1aa;
}

.ai-guest-pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    padding: 20px 0;
    perspective: 1000px;
}

.ai-guest-pricing-card {
    position: relative;
    min-height: 520px;
    padding: 36px 30px;
    border-radius: 32px;
    background: rgba(24, 24, 27, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

    .ai-guest-pricing-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    }

.ai-guest-pricing-card--featured {
    transform: translateY(-16px);
    background: linear-gradient(180deg, rgba(39, 39, 42, 0.7) 0%, rgba(24, 24, 27, 0.7) 100%);
    border: 1px solid rgba(56, 239, 125, 0.3);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 12px 32px -8px var(--ai-green-glow);
}

    .ai-guest-pricing-card--featured:hover {
        transform: translateY(-22px);
        border-color: rgba(56, 239, 125, 0.6);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 30px 60px -15px rgba(17, 153, 142, 0.3);
    }

/* 头部徽章 */
.ai-guest-pricing-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ai-guest-pricing-card__badge {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.ai-guest-pricing-card--featured .ai-guest-pricing-card__badge {
    background: linear-gradient(135deg, var(--ai-green-from) 0%, var(--ai-green-to) 100%);
    border: none;
    color: #000;
    box-shadow: 0 4px 12px var(--ai-green-glow);
}

.ai-guest-pricing-card__period {
    font-size: 13px;
    color: #71717a;
    font-weight: 500;
}

/* 价格与标题 */
.ai-guest-pricing-card__title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.ai-guest-pricing-card__desc {
    margin: 0;
    min-height: 48px;
    font-size: 14px;
    line-height: 1.6;
    color: #a1a1aa;
}

.ai-guest-pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 24px 0 32px 0;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-guest-pricing-card__price-value {
    font-size: 56px;
    line-height: 1;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.ai-guest-pricing-card__price-unit {
    font-size: 15px;
    color: #71717a;
    font-weight: 500;
}

/* 列表与精致的极光绿 SVG Checkmark */
.ai-guest-pricing-card__features {
    list-style: none;
    margin-bottom: 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

    .ai-guest-pricing-card__features li {
        position: relative;
        padding-left: 28px;
        color: #d4d4d8;
        font-size: 14.5px;
        line-height: 1.5;
        display: flex;
        align-items: flex-start;
    }

        /* 极简绿勾 */
        .ai-guest-pricing-card__features li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 2px;
            width: 16px;
            height: 16px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2338ef7d'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z' clip-rule='evenodd'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
        }

/* 按钮设计：幽灵 vs 实心渐变 */
.ai-guest-pricing-card__action {
    width: 100%;
    margin-top: auto;
    min-height: 52px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}


    .ai-guest-pricing-card__action:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

/* C位专属按钮：实心渐变极光绿 */
.ai-guest-pricing-card--featured .ai-guest-pricing-card__action {
    background: linear-gradient(135deg, var(--ai-green-from) 0%, var(--ai-green-to) 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px var(--ai-green-glow);
}

    .ai-guest-pricing-card--featured .ai-guest-pricing-card__action:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(56, 239, 125, 0.35);
        filter: brightness(1.1);
    }

/* === 3. Footer 与 返回按钮 === */
.ai-guest-welcome__footer {
    text-align: center;
    padding-top: 24px;
}

.ai-guest-welcome__footer-copy {
    font-size: 14px;
    color: #71717a;
}

.ai-guest-back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ai-guest-back-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(-4px);
    }
.ai-guest-pricing-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* Guest 返回按钮 */
.ai-guest-back-btn {
    color: #fff;
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

    .ai-guest-back-btn:hover {
        transform: translateX(-2px);
    }

.ai-page-content:has(.ai-guest-page) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 1080px) {
    .ai-guest-pricing {
        grid-template-columns: 1fr;
    }

    .ai-guest-pricing-card--featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .ai-guest-page {
        padding: 28px 16px 24px;
    }

    .ai-page-content--iframe .ai-guest-page {
        padding-top: 8px;
    }

    .ai-guest-welcome {
        gap: 22px;
    }

    .ai-guest-welcome__subtitle {
        font-size: 14px;
        line-height: 1.75;
    }

    .ai-guest-pricing-card {
        min-height: auto;
        padding: 20px;
        border-radius: 22px;
    }

    .ai-guest-pricing-card__title {
        font-size: 28px;
    }

    .ai-guest-pricing-card__price-value {
        font-size: 40px;
    }
}


.ai-page-content:has(.ai-guest-page) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}


/* 入场动画由 GSAP 控制，CSS 只负责初始隐藏防闪烁 */
.ai-guest-welcome__hero,
.ai-guest-pricing-card,
.ai-guest-welcome__footer {
    opacity: 0;
}


/* #region Snackbar - AI 页面提示样式 */
.ai-page-content .mud-snackbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 8px;
    min-width: 340px;
    max-width: 440px;
    padding: 12px 14px 12px 16px;
    border-radius: 16px !important;
    background: rgba(24, 24, 27, 0.55) !important;
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 8px 24px -6px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: ai-toast-spring-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
    animation-fill-mode: both;
}

    .ai-page-content .mud-snackbar:hover {
        transform: translateY(-2px) scale(1.015);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.2), 0 12px 32px -8px rgba(0, 0, 0, 0.5) !important;
    }

    .ai-page-content .mud-snackbar .mud-snackbar-content {
        display: flex;
        align-items: flex-start;
        flex: 1;
    }

    .ai-page-content .mud-snackbar .mud-snackbar-icon {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 14px;
        margin-top: 1px;
        position: relative;
    }

        .ai-page-content .mud-snackbar .mud-snackbar-icon .mud-icon-root {
            font-size: 14px;
            z-index: 2;
        }

    .ai-page-content .mud-snackbar .mud-snackbar-content-message {
        font-size: 13.5px;
        line-height: 1.55;
        font-weight: 500;
        color: #fafafa !important;
        letter-spacing: 0.3px;
        padding-top: 5px;
    }

    .ai-page-content .mud-snackbar .mud-snackbar-close-button {
        color: #71717a !important;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        margin-left: 12px;
        background: transparent !important;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        .ai-page-content .mud-snackbar .mud-snackbar-close-button:hover {
            color: #e4e4e7 !important;
            background: rgba(255, 255, 255, 0.1) !important;
        }

    /* Success */
    .ai-page-content .mud-snackbar.mud-alert-filled-success {
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 8px 24px -6px rgba(16, 185, 129, 0.2) !important;
    }

        .ai-page-content .mud-snackbar.mud-alert-filled-success:hover {
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(16, 185, 129, 0.3) !important;
        }

        .ai-page-content .mud-snackbar.mud-alert-filled-success .mud-snackbar-icon {
            background: rgba(16, 185, 129, 0.15) !important;
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #34d399 !important;
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.2), inset 0 0 8px rgba(16, 185, 129, 0.1);
        }

    /* Info */
    .ai-page-content .mud-snackbar.mud-alert-filled-info {
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 8px 24px -6px rgba(59, 130, 246, 0.2) !important;
    }

        .ai-page-content .mud-snackbar.mud-alert-filled-info:hover {
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(59, 130, 246, 0.3) !important;
        }

        .ai-page-content .mud-snackbar.mud-alert-filled-info .mud-snackbar-icon {
            background: rgba(59, 130, 246, 0.15) !important;
            border: 1px solid rgba(59, 130, 246, 0.3);
            color: #60a5fa !important;
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.2), inset 0 0 8px rgba(59, 130, 246, 0.1);
        }

    /* Warning */
    .ai-page-content .mud-snackbar.mud-alert-filled-warning {
        border: 1px solid rgba(245, 158, 11, 0.3) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 8px 24px -6px rgba(245, 158, 11, 0.15) !important;
    }

        .ai-page-content .mud-snackbar.mud-alert-filled-warning:hover {
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(245, 158, 11, 0.25) !important;
        }

        .ai-page-content .mud-snackbar.mud-alert-filled-warning .mud-snackbar-icon {
            background: rgba(245, 158, 11, 0.15) !important;
            border: 1px solid rgba(245, 158, 11, 0.3);
            color: #fbbf24 !important;
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.2), inset 0 0 8px rgba(245, 158, 11, 0.1);
        }

    /* Error */
    .ai-page-content .mud-snackbar.mud-alert-filled-error {
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 8px 24px -6px rgba(239, 68, 68, 0.2) !important;
    }

        .ai-page-content .mud-snackbar.mud-alert-filled-error:hover {
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 12px -2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(239, 68, 68, 0.3) !important;
        }

        .ai-page-content .mud-snackbar.mud-alert-filled-error .mud-snackbar-icon {
            background: rgba(239, 68, 68, 0.15) !important;
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #f87171 !important;
            box-shadow: 0 0 12px rgba(239, 68, 68, 0.2), inset 0 0 8px rgba(239, 68, 68, 0.1);
        }

/* #endregion */

@media (max-width: 768px) {
    .ai-page-content .mud-snackbar {
        min-width: auto;
        max-width: calc(100vw - 20px);
        padding: 12px 14px;
    }

    .ai-page-content .mud-snackbar .mud-snackbar-content-message {
        font-size: 13px;
    }
}


/* === Pro 升级弹窗 === */
.ai-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0,0.99);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding:20px 0px;
}

.ai-modal-content {
    position: relative;
    width:100%;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 32px 24px;
}

.ai-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ai-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 弹窗内嵌模式：覆盖全页样式，去掉多余间距和动画初始隐藏 */
.ai-modal-content .ai-guest-welcome {
    gap: 28px;
    padding-top: 0;
}

/* === Guest 页面内嵌的观赏性组件宽度约束 === */
.ai-guest-welcome .ai-center-block {
    width: min(860px, 100%);
    margin: 0 auto;
}

.ai-guest-composer-wrap {
    width: min(720px, 100%);
    margin: 0 auto;
}

.ai-modal-content .ai-guest-welcome__hero {
    padding-top: 0;
    gap: 12px;
}

.ai-modal-content .ai-guest-welcome__hero,
.ai-modal-content .ai-guest-pricing-card,
.ai-modal-content .ai-guest-welcome__footer {
    opacity: 1;
}

@media (max-width: 768px) {
    .ai-modal-content {
        padding: 24px 16px;
        max-height: 90vh;
    }
}
