.hy-aibox {
    width: 96%;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;

    .ai-left {
        width: 50%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;

        .ai-item {
            width: 49%;
            height: 150px;
            border-radius: 10px;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-items: center;
        }

        .ai-item-01 {
            background: linear-gradient(45deg, #d0eff1, #e7f5f5);
        }

        .ai-item-02 {
            background: linear-gradient(45deg, #d7edf9, #e5f6fe);
        }

        .ai-item-03 {
            background: linear-gradient(45deg, #d9ebf8, #f0effd);
        }

        .ai-item-04 {
            background: linear-gradient(45deg, #deebf9, #f0effd);
        }

        .ai-cont {
            padding-left: 30px;

            .cont-title {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: flex-start;
                align-items: flex-start;

                .title {
                    font-size: 20px;
                    font-weight: 600;
                    letter-spacing: 1px;
                }

                .icon-right {
                    font-size: 30px;
                }
            }

            .sub-title {
                font-size: 15px;
                color: #999;
            }
        }

        .cont-icon {
            padding-right: 15%;
        }
    }

    .ai-right {
        width: 50%;
        height: auto;

        .ai-banner {
            width: 100%;
            height: 310px;
            background: #f44;
            border-radius: 10px;
            position: relative;
            overflow: hidden;

            .banner-slides {
                width: 100%;
                height: 100%;
                position: relative;

                .slide {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    opacity: 0;
                    transition: opacity 0.5s ease-in-out;

                    &.active {
                        opacity: 1;
                    }

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        border-radius: 10px;
                    }
                }
            }

            .banner-dots {
                position: absolute;
                bottom: 10px;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                gap: 8px;
                z-index: 10;

                .dot {
                    width: 20px;
                    height: 4px;
                    border-radius: 2px;
                    background: rgba(255, 255, 255, 0.5);
                    cursor: pointer;
                    transition: background 0.3s ease;

                    &.active {
                        background: #fff;
                    }
                }
            }

            .banner-arrow {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                width: 40px;
                height: 40px;
                background: rgba(0, 0, 0, 0.3);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                color: #fff;
                font-size: 24px;
                transition: background 0.3s ease;
                z-index: 10;

                &:hover {
                    background: rgba(0, 0, 0, 0.5);
                }

                &.prev {
                    left: 10px;
                }

                &.next {
                    right: 10px;
                }
            }
        }
    }
}

/* Hyai-chat */
.hyai-chat {
    width: 96%;
    height: 500px;
    margin: 10px auto 0;
    position: relative;

    .chat-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;

        .cut-left {
            width: 51%;
            height: 70px;
            border-radius: 20px 20px 0 0;
            border: 1px rgb(173 173 173 / 20%) solid;
            background: linear-gradient(45deg, #f3f3f3, #fefeff);
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
            cursor: pointer;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;

            .cut-title {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: center;
                gap: 10px;
                padding-left: 40px;
                padding-bottom: 15px;


                .icon-left {
                    font-size: 30px;
                    color: #999;
                    animation: breathe 2s ease-in-out infinite;
                }

                @keyframes breathe {

                    0%,
                    100% {
                        opacity: 1;
                        transform: scale(1);
                        filter: brightness(1);
                    }

                    50% {
                        opacity: 0.7;
                        transform: scale(0.92);
                        filter: brightness(1.2);
                    }
                }

                .cut-text {
                    font-size: 17px;
                    font-weight: 600;
                    color: #666;
                    letter-spacing: 1px;
                }

                .cut-hint {
                    position: absolute;
                    top: -8%;
                    left: 17%;
                    font-size: 12px;
                    background: #f44;
                    padding: 0 6px;
                    color: #fff;
                    border-radius: 4px;

                    .cut-angle {
                        position: absolute;
                        width: 0;
                        height: 0;
                        border-style: solid;
                        border-width: 10px 14px 10px 0px;
                        border-color: #ff0000 #ff444400 transparent transparent;
                        bottom: -18px;
                        left: 1px;
                    }
                }

                .cut-sub {
                    padding-left: 24px;
                    font-size: 14px;
                    font-weight: 500;
                    color: #666;
                    padding-top: 8px;
                }
            }
        }

        .cut-right {
            width: 50%;
            height: 70px;
            border-radius: 20px 20px 0 0;
            border: 1px rgb(173 173 173 / 20%) solid;
            background: linear-gradient(45deg, #f3f3f3, #fefeff);
            position: absolute;
            top: 0;
            right: 0;
            padding-top: 15px;
            z-index: 0;
            cursor: pointer;

            .cut-title {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: center;
                gap: 10px;
                padding-left: 40px;
                padding-bottom: 15px;


                .icon-left {
                    font-size: 30px;
                    color: #999;
                    animation: breathe 2s ease-in-out infinite;
                }

                @keyframes breathe {

                    0%,
                    100% {
                        opacity: 1;
                        transform: scale(1);
                        filter: brightness(1);
                    }

                    50% {
                        opacity: 0.7;
                        transform: scale(0.92);
                        filter: brightness(1.2);
                    }
                }

                .cut-text {
                    font-size: 17px;
                    font-weight: 600;
                    color: #666;
                    letter-spacing: 1px;
                }

                .cut-hint {
                    position: absolute;
                    top: -8%;
                    left: 17%;
                    font-size: 12px;
                    background: #f44;
                    padding: 0 6px;
                    color: #fff;
                    border-radius: 4px;

                    .cut-angle {
                        position: absolute;
                        width: 0;
                        height: 0;
                        border-style: solid;
                        border-width: 10px 14px 10px 0px;
                        border-color: #ff0000 #ff444400 transparent transparent;
                        bottom: -18px;
                        left: 1px;
                    }
                }

                .cut-sub {
                    padding-left: 24px;
                    font-size: 14px;
                    font-weight: 500;
                    color: #666;
                    padding-top: 8px;
                }
            }
        }

        .active {
            z-index: 1;
            background: linear-gradient(5deg, #dfdffb, #ffffff);
        }

        .active .cut-text {
            background: linear-gradient(90deg, #6a4dfe, #12d2d3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent;
        }

        .active .icon-left {
            color: #89371F;
        }
    }

    .caht-input {
        position: relative;
        width: 100%;
        height: 220px;
        margin-top: 60px;
        z-index: 2;
        border-radius: 20px;
        border: 2px #fff solid;
        background: linear-gradient(45deg, #f1f1fd, #ffffff);
        box-shadow: 0 0 5px 3px #eee;
    }

    .chat-intone {
        display: block;

        .chat-up {
            position: absolute;
            width: 10%;
            height: 150px;
            border-right: 1px #d9d9d9 solid;
            top: 50%;
            transform: translateY(-50%);

            .up-img {
                position: relative;
                width: 100px;
                height: 135px;
                background: #ffffff50;
                border-radius: 10px;
                margin: auto;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                align-content: center;
                cursor: pointer;
                transition: transform 0.3s ease, background 0.3s ease;
                top: 50%;
                transform: translateY(-50%) rotate(-10deg);
            }

            .up-img:hover {
                transform: translateY(-50%) rotate(0deg);
                background: #ffffff;
            }

            .up-icon {
                font-size: 36px;
                color: #999;
            }

            .up-title {
                font-size: 14px;
                text-align: center;
                margin-top: 10px;
            }
        }

        .ai-input {
            position: absolute;
            width: calc(100% - 11%);
            height: 170px;
            right: 0;
            top: 50%;
            transform: translateY(-50%);

            .input-box {}

            .input-box input {
                width: 100%;
                height: 150px;
                background: transparent;
                border: none;
                outline: none;
                text-align: left;
                vertical-align: top;
                padding-top: 10px;
                padding-left: 10px;
            }

            input::placeholder {
                font-size: 17px;
                color: #999;
                opacity: 1;
                /* 修复 Firefox 默认透明度问题 */
            }

            .inp-bot {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: space-between;
                align-items: center;

                .inp-left {
                    font-size: 14px;
                    color: #999;
                }

                .int-right {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    justify-content: flex-end;
                    align-items: center;
                    gap: 15px;

                    .int-item {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: nowrap;
                        justify-content: flex-start;
                        align-items: center;
                        gap: 5px;
                        font-size: 14px;
                        cursor: pointer;

                        .item-title {
                            color: #666;
                        }

                        .item-icon {
                            font-size: 12px;
                            color: #999;
                        }
                    }

                    .up-icon {
                        margin-left: 10px;

                        .ups-icon {
                            font-size: 30px;
                            color: #eee;
                        }
                    }
                }
            }
        }
    }

    .chat-inttwo {
        display: none;

        .chat-up {
            position: absolute;
            width: 10%;
            height: 150px;
            border-right: 1px #d9d9d9 solid;
            top: 50%;
            transform: translateY(-50%);

            .up-img {
                position: relative;
                width: 100px;
                height: 135px;
                background: #ffffff50;
                border-radius: 10px;
                margin: auto;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                align-content: center;
                cursor: pointer;
                transition: transform 0.3s ease, background 0.3s ease;
                top: 50%;
                transform: translateY(-50%) rotate(-10deg);
            }

            .up-img:hover {
                transform: translateY(-50%) rotate(0deg);
                background: #ffffff;
            }

            .up-icon {
                font-size: 36px;
                color: #999;
            }

            .up-title {
                font-size: 14px;
                text-align: center;
                margin-top: 10px;
            }
        }

        .ai-input {
            position: absolute;
            width: calc(100% - 11%);
            height: 170px;
            right: 0;
            top: 50%;
            transform: translateY(-50%);

            .input-box {}

            .input-box input {
                width: 100%;
                height: 150px;
                background: transparent;
                border: none;
                outline: none;
                text-align: left;
                vertical-align: top;
                padding-top: 10px;
                padding-left: 10px;
            }

            input::placeholder {
                font-size: 17px;
                color: #999;
                opacity: 1;
                /* 修复 Firefox 默认透明度问题 */
            }

            .inp-bot {
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                justify-content: space-between;
                align-items: center;

                .inp-left {
                    font-size: 14px;
                    color: #999;
                }

                .int-right {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    justify-content: flex-end;
                    align-items: center;
                    gap: 15px;

                    .int-item {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: nowrap;
                        justify-content: flex-start;
                        align-items: center;
                        gap: 5px;
                        font-size: 14px;
                        cursor: pointer;

                        .item-title {
                            color: #666;
                        }

                        .item-icon {
                            font-size: 12px;
                            color: #999;
                        }
                    }

                    .up-icon {
                        margin-left: 10px;

                        .ups-icon {
                            font-size: 30px;
                            color: #eee;
                        }
                    }
                }
            }
        }
    }
}

.chat-inttwo {
    display: none;
}

/* 确保选中状态的样式优先级 */
.chat-item .cut-left.active .cut-text,
.chat-item .cut-right.active .cut-text {
    background: linear-gradient(90deg, #6a4dfe, #12d2d3) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

.chat-item .cut-left.active .icon-left,
.chat-item .cut-right.active .icon-left {
    color: #89371F !important;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 60%;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #f1f1fd, #ffffff);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(90deg, #6a4dfe, #12d2d3);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    opacity: 0.9;
}