.ai-assistant,
.promotion-modal {
    --text: #101828;
    --text-muted: #5f6f86;
    --text-soft: #7a8799;
    --primary: #175cff;
    --accent: #00a3a3;
    --success: #16a34a;
    --control-shadow: 0 10px 28px rgba(23, 92, 255, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.ai-assistant *,
.promotion-modal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ai-assistant {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.ai-assistant-card {
    display: none;
    width: min(360px, calc(100vw - 40px));
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(185, 200, 217, 0.8);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
    backdrop-filter: blur(18px);
    animation: assistant-pop-in 0.2s ease-out;
}

.ai-assistant.is-open .ai-assistant-card {
    display: block;
}

.ai-assistant-header {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 9px;
    margin-bottom: 12px;
}

.ai-assistant-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--primary);
    background: #edf3ff;
    border-radius: 10px;
}

.ai-assistant-name {
    flex: 1;
    color: var(--text);
    font-size: 15.68px;
    font-weight: 760;
    line-height: 1.25;
}

.ai-assistant-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--text-soft);
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.ai-assistant-close:hover {
    color: var(--text);
    background: #f1f5f9;
}

.ai-assistant-message {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 14.72px;
    line-height: 1.65;
}

.ai-assistant-features {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.ai-assistant-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text-muted);
    font-size: 13.44px;
    line-height: 1.45;
}

.ai-assistant-features svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--success);
}

.ai-assistant-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    color: #fff;
    font-size: 14.4px;
    font-weight: 720;
    line-height: 1;
    text-decoration: none;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: var(--control-shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ai-assistant-cta:hover,
.ai-assistant-cta:focus {
    color: #fff;
    text-decoration: none;
    background: #0d4ce8;
    transform: translateY(-1px);
}

.ai-assistant-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(23, 92, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-assistant-toggle:hover {
    box-shadow: 0 16px 36px rgba(23, 92, 255, 0.36);
    transform: translateY(-2px) scale(1.03);
}

@keyframes assistant-pop-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.promotion-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    padding: 24px;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
    background: rgba(15, 23, 42, 0);
    opacity: 0;
    place-items: center;
    transition: opacity 0.24s ease, visibility 0.24s ease, background 0.24s ease;
}

.promotion-modal.is-open {
    pointer-events: auto;
    visibility: visible;
    background: rgba(15, 23, 42, 0.55);
    opacity: 1;
    backdrop-filter: blur(8px);
}

.promotion-dialog {
    width: min(720px, 100%);
    padding: 30px;
    background: linear-gradient(135deg, #f1edff 0%, #faf9ff 42%, #ffffff 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.24s ease;
}

.promotion-modal.is-open .promotion-dialog {
    transform: translateY(0) scale(1);
}

.promotion-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.promotion-robot {
    width: 132px;
    height: 132px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(23, 92, 255, 0.18));
}

.promotion-title {
    color: var(--text);
    font-size: clamp(28.8px, 4vw, 37.6px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.22;
}

.promotion-title-gradient {
    margin-top: 2px;
    color: #175cff;
    background: linear-gradient(90deg, #175cff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promotion-subtitle {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15.68px;
    font-weight: 650;
    line-height: 1.55;
}

.promotion-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.promotion-feature {
    min-height: 168px;
    padding: 15px;
    background: linear-gradient(145deg, #f8fbff, #f3f7ff);
    border: 1px solid #e0eaf8;
    border-radius: 14px;
}

.promotion-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    color: var(--primary);
    background: #e8f0ff;
    border-radius: 10px;
}

.promotion-feature-icon svg {
    width: 18px;
    height: 18px;
}

.promotion-feature-title {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14.88px;
    font-weight: 760;
    line-height: 1.4;
}

.promotion-feature-description {
    color: var(--text-muted);
    font-size: 12.96px;
    line-height: 1.5;
}

.promotion-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    min-height: 48px;
    padding: 12px 22px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: 15.2px;
    font-weight: 760;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(23, 92, 255, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promotion-cta:hover,
.promotion-cta:focus {
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(23, 92, 255, 0.34);
    transform: translateY(-2px);
}

.promotion-dismiss {
    display: block;
    padding: 3px 8px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 13.28px;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.promotion-dismiss:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .ai-assistant {
        right: 20px;
        bottom: 90px;
    }

    .ai-assistant-card {
        width: min(360px, calc(100vw - 32px));
    }

    .promotion-modal {
        padding: 16px;
    }

    .promotion-dialog {
        padding: 24px 20px;
    }

    .promotion-hero {
        align-items: flex-start;
    }

    .promotion-robot {
        width: 82px;
        height: 82px;
    }

    .promotion-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promotion-feature {
        min-height: 158px;
        padding: 15px;
    }
}

@media (max-width: 460px) {
    .promotion-hero {
        gap: 12px;
    }

    .promotion-robot {
        width: 58px;
        height: 58px;
    }

    .promotion-features {
        grid-template-columns: 1fr;
    }

    .promotion-feature {
        min-height: 0;
    }

    .promotion-cta {
        width: 100%;
        padding: 12px 14px;
        font-size: 13.92px;
    }
}
