        /* Keep original reset styles */
        html,
        body,
        div,
        span,
        applet,
        object,
        iframe,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        p,
        blockquote,
        pre,
        a,
        abbr,
        acronym,
        address,
        big,
        cite,
        code,
        del,
        dfn,
        em,
        img,
        ins,
        kbd,
        q,
        s,
        samp,
        small,
        strike,
        strong,
        sub,
        sup,
        tt,
        var,
        b,
        u,
        i,
        center,
        dl,
        dt,
        dd,
        ol,
        ul,
        li,
        fieldset,
        form,
        label,
        legend,
        table,
        caption,
        tbody,
        tfoot,
        thead,
        tr,
        th,
        td,
        article,
        aside,
        canvas,
        details,
        embed,
        figure,
        figcaption,
        footer,
        header,
        hgroup,
        menu,
        nav,
        output,
        ruby,
        section,
        summary,
        time,
        mark,
        audio,
        video {
            margin: 0;
            padding: 0;
            border: 0;
            font-size: 100%;
            font: inherit;
            vertical-align: baseline;
        }

        article,
        aside,
        details,
        figcaption,
        figure,
        footer,
        header,
        hgroup,
        menu,
        nav,
        section {
            display: block;
        }

        body {
            line-height: 1;
            font-family: 'Roboto', sans-serif;
            background-color: #f0f2f5;
        }

        ol,
        ul {
            list-style: none;
        }

        blockquote,
        q {
            quotes: none;
        }

        blockquote:before,
        blockquote:after,
        q:before,
        q:after {
            content: '';
            content: none;
        }

        table {
            border-collapse: collapse;
            border-spacing: 0;
        }

        /* New and optimized responsive styles */
        html,
        body {
            position: relative;
            margin: 0;
            padding: 0;
        }

        #container {
            position: relative;
            width: 100%;
            max-width: 1440px;
            height: auto;
            margin: 0 auto;
            display: block;
            overflow: hidden;
            padding-bottom: 50px;
            box-sizing: border-box;
        }

        .bg-clip-text {
            -webkit-background-clip: text !important;
            background-clip: text !important;
        }

        /* Remove original fixed positioning and width, use flexbox and adaptive width */
        .card-wrapper {
            width: 90%;
            max-width: 1095px;
            margin: 10px auto;
            background: rgba(255, 255, 255, 0.9);
            /* 使用 rgba() 代替 opacity */

            border-radius: 37px;
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .centered-text {
            position: relative;
            width: 100%;
            text-align: center;
            margin-top: 20px;
        }

        .centered-text-content {
            font-size: clamp(20px, 4vw, 28px);
            line-height: 1.5;
            font-weight: 500;
            font-family: roboto;
            color: rgb(0, 0, 0);
            margin: 0;
            padding: 0;
        }

        img[src*="upload_images_icon.png"] {
            width: clamp(150px, 20vw, 225px);
            height: auto;
            margin: 30px auto;
            display: block;
        }

        .video-tutorial-container {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            margin-top: 20px;
            border: 1px solid rgba(0, 0, 0, 0.8);
            border-radius: 20px;
        }

        .video-tutorial-button {
            background: transparent;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            padding: 8px 16px;
            border-radius: 20px;
            transition: background-color 0.3s ease;
        }

        .video-tutorial-button:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .video-icon {
            width: 24px;
            height: 24px;
            margin-right: 8px;
            fill: rgb(0, 0, 0);
        }

        .video-tutorial-text {
            font-size: 12px;
            font-weight: 500;
            font-family: roboto;
            color: rgb(0, 0, 0);
            white-space: nowrap;
        }

        .upload-button {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            width: auto;
            max-width: 90%;
            height: 50px;
            background: rgb(0, 0, 0);
            border-radius: 25px;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 20px;
            box-sizing: border-box;
            opacity: 0.5;
            cursor: not-allowed;
            transition: opacity 0.3s ease, cursor 0.3s ease;
            z-index: 1000;
            margin-top: 20px;
        }

        .upload-button.enabled {
            opacity: 1;
            cursor: pointer;
        }

        .upload-button-text {
            font-size: 16px;
            font-weight: 500;
            font-family: roboto;
            color: rgb(255, 255, 255);
            white-space: nowrap;
            margin: 0;
            padding: 0;
        }

        .upload-button-icon {
            display: block;
            width: 24px;
            height: 24px;
            margin-right: 10px;
        }

        .upload-button:not(.enabled):hover::before {
            content: "Training requires at least 6 images with a minimum dimension of 1024px";
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 1) !important;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 1 !important;
            visibility: visible;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 10;
            /* 设置一个非常高的 z-index */
        }

        .upload-button::before {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        /* Corrected thumbnail container and item styles */
        .thumbnail-container {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            width: 100%;
            max-width: calc(10 * 85px + 9 * 15px);
            /* Adjusted max-width for better spacing */
            height: auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            /* Spacing between thumbnails */
            overflow: visible;
            padding: 20px;
            box-sizing: border-box;
        }

        .thumbnail {
            width: clamp(60px, 15vw, 85px);
            height: clamp(60px, 15vw, 85px);
            background: rgb(217, 217, 217);
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            transition: transform 0.3s ease;
            z-index: 1;
            flex-shrink: 0;
        }

        .thumbnail:hover {
            transform: scale(1.2) rotate(-8deg);
            z-index: 10;
        }

        .thumbnail.add-more {
            cursor: pointer;
            background: rgb(217, 217, 217);
        }

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

        .delete-button {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 20px;
            height: 20px;
            background-color: rgba(255, 255, 255, 0.8);
            border: 1px solid #ccc;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 15;
            transition: background-color 0.2s ease;
        }

        .delete-button:hover {
            background-color: #ff4d4d;
        }

        .delete-button svg {
            width: 12px;
            height: 12px;
        }

        #fileInput {
            display: none;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            max-width: 512px;
            max-height: 760px;
            background-color: rgba(0, 0, 0, 0.5);
            padding: 20px;
            box-sizing: border-box;
        }

        .modal-content {
            background-color: #efefef;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 90%;
            max-width: 512px;
            max-height: 760px;
            border-radius: 8px;
            overflow-y: auto;
            box-sizing: border-box;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover,
        .close:focus {
            color: black;
        }

        .instructions-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(110deg, rgb(2, 3, 5) 2%, rgb(7, 10, 15));
            border-radius: 12px;
            box-shadow: rgba(131, 128, 255, 0.3) 0px 0px 1rem 0px;
            width: 512px;
            max-height: 670px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .instructions-modal.minimized {
            height: 60px !important;
            width: 300px;
            left: auto;
            top: auto;
            right: 20px;
            bottom: 20px;
            transform: none;
            overflow: hidden;
        }

        /* Modal header styles */
        .instructions-guide-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background-color: rgba(255, 255, 255, 0.05);
        }

        .instructions-guide-header h2,
        .instructions-guide-header h3 {
            margin: 0;
        }

        .instructions-guide-header h3 {
            font-size: 1rem;
            color: #a0aec0;
        }

        .instructions-guide-header h2 {
            font-size: 1.2rem;
            white-space: nowrap;
            margin-right: 1rem;
            color: white;
        }

        .instructions-guide-header div:last-child {
            display: flex;
            gap: 0.5rem;
        }

        .instructions-guide-header button {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        .instructions-guide-header button:hover {
            color: #a0aec0;
        }

        .instructions-guide-content {
            padding: 1rem;
            overflow-y: auto;
            height: calc(670px - 120px);
            flex-grow: 1;
            color: #a0aec0;
        }

        .instructions-guide-content h4 {
            color: white;
            margin: 1.5rem 0 0.5rem;
        }

        .instructions-guide-content h4 span {
            color: white;
        }

        .instructions-guide-content ol,
        .instructions-guide-content ul {
            list-style-type: none;
            padding: 0;
        }

        .instructions-guide-content li {
            margin-bottom: 1rem;
        }

        .instructions-modal.minimized .instructions-guide-content {
            display: none;
        }

        /* User Info Box (if applicable) */
        .aiinkeduser-info-box {
            display: none;
            /* Keep hidden as per previous setup */
            justify-content: space-between;
            align-items: center;
            padding: 2px;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 1px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            height: auto;
            width: 100%;
        }

        .aiinkeduser-info-item {
            display: flex;
            align-items: center;
            margin-right: 2px;
        }

        .aiinkedchakra-icon {
            width: 26px;
            height: 26px;
            margin-right: 2px;
        }


        @media (max-width: 768px) {


            .instructions-modal {
                width: 100vw;
                height: 100vh;
                max-height: none;
                left: 0;
                top: 0;
                transform: none;
                border-radius: 0;
            }

            .instructions-guide-content {
                height: calc(100vh - 60px);
                padding: 1rem;
            }
        }

        /* 修改尺寸不符弹窗样式20250909 */
        /* ======================== */
        /* 通用弹窗样式（Modal）   */
        /* ======================== */
        /* 适用于所有带有 .modal 类的元素，默认隐藏 */
        .modal {
            display: none;
            /* 新增：使用 Flexbox 布局 */
            justify-content: center;
            /* 新增：水平居中 */
            align-items: center;
            /* 新增：垂直居中 */
            position: fixed;
            z-index: 2000;
            left: 0;
            /* 修改：弹窗遮罩铺满屏幕 */
            top: 0;
            /* 修改：弹窗遮罩铺满屏幕 */
            background: transparent;
            width: 100%;
            height: 100%;
            overflow: auto;
        }

        /* ======================== */
        /* 错误弹窗（#errorModal） */
        /* ======================== */
        /* 弹窗内容容器 */
        #errorModal .modal-content {
            background: linear-gradient(110deg, rgb(2, 3, 5) 2%, rgb(7, 10, 15));
            border-radius: 12px;
            box-shadow: rgba(131, 128, 255, 0.3) 0px 0px 1rem 0px;
            position: relative;
            /* 保持 position: relative; 不变 */
            width: 90%;
            max-width: 512px;
            padding: 24px;
            box-sizing: border-box;
            color: #a0aec0;
            /* 删除 margin: auto; 因为 Flexbox 已经处理了居中 */
        }

        /* 弹窗标题 */
        #errorModal .modal-content h3 {
            font-size: 1.2rem;
            font-weight: bold;
            color: white;
            margin-top: 0;
            margin-bottom: 16px;
        }

        /* 弹窗正文 */
        #errorModal .modal-content p {
            font-size: 1rem;
            line-height: 1.5;
            margin-bottom: 12px;
        }

        /* 错误列表 */
        #errorModal .modal-content ul {
            list-style-type: disc;
            padding-left: 20px;
            margin-top: 0;
            margin-bottom: 0;
        }

        #errorModal .modal-content ul li {
            margin-bottom: 8px;
        }

        /* 关闭按钮 */
        #errorModal .close {
            position: absolute;
            top: 10px;
            right: 15px;
            color: #a0aec0;
            font-size: 2rem;
            font-weight: normal;
            background: none;
            border: none;
            cursor: pointer;
            line-height: 1;
            opacity: 0.8;
            transition: opacity 0.3s ease, color 0.3s ease;
        }

        #errorModal .close:hover {
            color: white;
            opacity: 1;
        }

        /* ======================== */
        /* 指令弹窗（#instructionsModal） */
        /* ======================== */
        /* 该弹窗的样式保持不变，以确保和之前的功能一致 */
        .instructions-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(110deg, rgb(2, 3, 5) 2%, rgb(7, 10, 15));
            border-radius: 12px;
            box-shadow: rgba(131, 128, 255, 0.3) 0px 0px 1rem 0px;
            width: 512px;
            max-height: 670px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .instructions-guide-container {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .instructions-guide-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background-color: rgba(255, 255, 255, 0.05);
        }

        .instructions-guide-header h3 {
            font-size: 1rem;
            color: #a0aec0;
        }

        .instructions-guide-header button {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        .instructions-guide-header button:hover {
            color: #a0aec0;
        }

        .instructions-guide-content {
            padding: 1rem;
            overflow-y: auto;
            flex-grow: 1;
            color: #a0aec0;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .instructions-modal {
                width: 100vw;
                height: 100vh;
                max-height: none;
                left: 0;
                top: 0;
                transform: none;
                border-radius: 0;
            }
        }