@charset "utf-8";
/* CSS Document */

        .popup-overlay-html-content {
            background-color: rgba(0, 0, 0, 0.7);
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 999999999;
        }

        .popup-overlay-html-content .popup-container {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 0 8px 0 rgba(10, 34, 64, 0.12);
            width: 668px;
            max-width: 95vw;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        .popup-overlay-html-content .popup-header {
            display: flex;
            align-items: flex-start;
            gap: 24px;
            padding: 24px 24px 16px 24px;
            flex-shrink: 0;
        }

        .popup-overlay-html-content .popup-title {
            flex: 1;
            font-family: 'Red Hat Text', sans-serif;
            font-weight: 500;
            font-size: 24px;
            line-height: 32px;
            color: #022169;
            margin: 0;
        }

        .popup-overlay-html-content .popup-close {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #022169;
        }

        .popup-overlay-html-content .popup-close svg {
            display: block;
        }

        .popup-overlay-html-content .popup-body {
            flex: 1;
            overflow-y: auto;
            padding: 0 24px 24px 24px;
            position: relative;
        }

        .popup-overlay-html-content .popup-body::-webkit-scrollbar {
            width: 6px;
        }

        .popup-overlay-html-content .popup-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .popup-overlay-html-content .popup-body::-webkit-scrollbar-thumb {
            background: #ededf2;
            border-radius: 1000px;
        }

        .popup-overlay-html-content .scroll-content-box::-webkit-scrollbar {
            width: 6px;
        }

        .popup-overlay-html-content .scroll-content-box::-webkit-scrollbar-track {
            background: transparent;
        }

        .popup-overlay-html-content .scroll-content-box::-webkit-scrollbar-thumb {
            background: #ededf2;
            border-radius: 1000px;
        }

        .popup-overlay-html-content .scroll-content-box {
            max-height: 500px;
            overflow-y: auto;
            background: #f9f9f9;
            padding: 10px;
            border: 1px solid #ddd;
        }

        .popup-overlay-html-content .popup-text {
            font-family: 'Red Hat Text', sans-serif;
            font-weight: 400;
            font-size: 16px;
            line-height: 24px;
            color: #000;
            letter-spacing: 0.2px;
            margin: 0;
        }

        .popup-overlay-html-content .popup-text p {
            margin: 0 0 16px 0;
        }

        .popup-overlay-html-content .popup-text p:last-child {
            margin-bottom: 0;
        }

        .popup-overlay-html-content .popup-footer-with-line {
            display: flex;
            gap: 16px;
            padding: 24px;
            flex-shrink: 0;
            background: #fff;
            box-shadow: 0px -1px 3px rgba(0, 0, 0, 0.1);
        }

        .popup-overlay-html-content .popup-footer {
            display: flex;
            gap: 16px;
            padding: 24px;
        }

        .popup-overlay-html-content .btn {
            flex: 1;
            height: 46px;
            border-radius: 4px;
            font-family: 'Red Hat Text', sans-serif;
            font-weight: 500;
            font-size: 14px;
            line-height: 20px;
            text-align: center;
            cursor: pointer;
            padding: 8px 20px;
            min-width: 88px;
        }

        .popup-overlay-html-content .btn-secondary {
            background: transparent;
            border: 2px solid #022169;
            color: #022169;
        }

        .popup-overlay-html-content .btn-secondary:hover {
            background: rgba(2, 33, 105, 0.05);
        }

        .popup-overlay-html-content .btn-primary {
            background: #fecf13;
            border: none;
            color: #022169;
        }

        .popup-overlay-html-content .btn-primary:hover {
            background: #f0c200;
        }

        /* ===== 原始 Swiper 相关样式 (保持不变) ===== */
        #popup-swiper.carousel-wrapper {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        #popup-swiper .swiper {
            width: 100%;
            border-radius: 0;
            overflow: hidden;
        }

        #popup-swiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        #popup-swiper .carousel-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            padding: 0 32px;
        }

        #popup-swiper .nav-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid #ededf2;
            background: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s, border-color 0.2s, opacity 0.25s ease;
        }

        #popup-swiper .nav-btn:hover {
            background: #f0f0f5;
        }

        #popup-swiper .nav-btn.disabled {
            opacity: 0.6;
            pointer-events: none;
            cursor: not-allowed;
        }

        #popup-swiper .nav-btn svg {
            width: 20px;
            height: 20px;
        }

        #popup-swiper .slide-counter {
            color: #022169;
            font-size: 16px;
            line-height: 24px;
            letter-spacing: 0.2px;
            display: flex;
            gap: 4px;
            white-space: nowrap;
        }

        /* ============================================================== */
        /* ===== ENHANCEMENT: 为动态滑块补充必要的布局与动画样式 ===== */
        /* ============================================================== */

        /* 每个滑块的外层包装，用于隔离 */
        .popup-swiper-wrapper {
            width: 100%;
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        /* Swiper 容器：相对定位 + 溢出隐藏 */
        .popup-swiper-wrapper .swiper {
            width: 100%;
            overflow: hidden;
            position: relative;
            border-radius: 8px;
            background: #f0f0f0;
        }

        /* 滑动轨道：flex 水平排列，平滑过渡 */
        .popup-swiper-wrapper .swiper-wrapper {
            display: flex;
            transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }

        /* 每张幻灯片：占满容器宽度，不收缩不拉伸 */
        .popup-swiper-wrapper .swiper-slide {
            flex: 0 0 100%;
            min-height: 1px;
            /* 防止空内容塌陷 */
        }

        .popup-swiper-wrapper .swiper-slide img {
            width: 100%;
            height: auto;
            display: block;
            aspect-ratio: 800 / 533;
            object-fit: cover;
        }

        /* 控制栏复用原始样式，但限定在包装器内 */
        .popup-swiper-wrapper .carousel-controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            padding: 0 8px;
            flex-shrink: 0;
        }

        .popup-swiper-wrapper .nav-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid #ededf2;
            background: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: background 0.2s, border-color 0.2s, opacity 0.25s ease;
        }

        .popup-swiper-wrapper .nav-btn:hover {
            background: #f0f0f5;
        }

        /* 禁用状态：半透明 + 不可点击 */
        .popup-swiper-wrapper .nav-btn.disabled {
            opacity: 0.4;
            pointer-events: none;
            cursor: not-allowed;
        }

        .popup-swiper-wrapper .nav-btn svg {
            width: 20px;
            height: 20px;
            display: block;
        }

        .popup-swiper-wrapper .slide-counter {
            color: #022169;
            font-size: 16px;
            line-height: 24px;
            letter-spacing: 0.2px;
            display: flex;
            gap: 4px;
            white-space: nowrap;
            font-weight: 500;
            user-select: none;
        }

        /* 让弹出窗口中的图片自适应，不溢出 */
        .popup-overlay-html-content .popup-body img {
            max-width: 100%;
            height: auto;
        }

        @media (min-width: 1441px) {

            .popup-swiper-wrapper .carousel-controls {

                justify-content: flex-end !important;

            }

            .popup-swiper-wrapper .carousel-controls {
                display: flex;
                align-items: center;
                /* Keeps buttons and counter vertically aligned */
            }

            /* Moves counter to the first position; buttons keep their relative order after it */
            .popup-swiper-wrapper .slide-counter {
                order: -1;
            }
        }

       
        .popup-swiper-wrapper .autoplay-indicator {
            display: none!important;
        }