/* shared inline-style extract nb-home-sections v20261103 */
/* Carousel wrapper for overflow control */
                    #carousel-wrapper {
                        position: relative;
                        margin: 50px 0;
                        padding: 15px 0;
                        overflow: hidden;
                    }

                    /* Carousel container - optimized for right to left scrolling */
                    #carousel-container {
                        display: flex;
                        transition: transform 0.5s ease-out;
                        width: auto;
                        will-change: transform;
                        align-items: center;
                    }

                    /* Carousel item styles - show 3 items at once */
                    .carousel-item {
                        flex-shrink: 0;
                        width: 33.333%;
                        padding: 10px;
                        transition: all 0.5s ease-out;
                        opacity: 0.9;
                        transform: scale(0.95);
                    }

                    /* Center item styling for proper focus */
                    .carousel-item.center {
                        opacity: 1;
                        transform: scale(1.05);
                        z-index: 20;
                    }

                    /* Image transition effects */
                    .carousel-item img {
                        height: 400px;
                        object-fit: contain;
                        width: 100%;
                        transition: transform 0.5s ease;
                    }

                    /* Center item's image enhancement */
                    .carousel-item.center img {
                        transform: scale(1.05);
                    }

                    /* Center item's content shadow effect */
                    .carousel-item.center .bg-white {
                        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
                    }

                    .carousel-item-inner {
                        border-radius: 12px;
                        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
                    }

                    /* Responsive adjustments for different screen sizes */
                    @media (max-width: 1024px) {
                        /* Tablet adjustments */
                        .carousel-item img {
                            height: 320px;
                        }
                    }

                    @media (max-width: 768px) {
                        #carousel-wrapper {
                            margin: 40px 0;
                            padding: 15px 0;
                        }

                        .carousel-item img {
                            height: 280px;
                        }

                        .carousel-item {
                            padding: 10px;
                        }
                    }

                    @media (max-width: 480px) {
                        #carousel-wrapper {
                            margin: 30px 0;
                            padding: 10px 15px;
                        }

                        .carousel-item img {
                            height: 380px !important;
                            cursor: pointer;
                            width: 100% !important;
                            object-fit: cover;
                        }

                        .carousel-item {
                            padding: 5px;
                            width: 100% !important;
                        }

                        #prev-btn {
                            left: 10px !important;
                            right: auto !important;
                            background-color: #a82646 !important;
                            color: white !important;
                        }
                        #next-btn {
                            right: 10px !important;
                            left: auto !important;
                            background-color: #a82646 !important;
                            color: white !important;
                        }
                        #prev-btn, #next-btn {
                            width: 50px !important;
                            height: 50px !important;
                            font-size: 18px !important;
                        }
                    }

                    .carousel-content {
                        padding: 25px;
                        text-align: center;
                    }

                    .carousel-content h3 {
                        font-size: 1.4rem;
                        margin: 0 0 15px 0;
                        font-weight: 600;
                    }

                    .carousel-content p {
                        font-size: 1rem;
                        line-height: 1.6;
                    }

                    /* Clean control button styles */
                    #prev-btn, #next-btn {
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 60px;
                        height: 60px;
                        font-size: 1.8rem;
                        border-radius: 50%;
                        background-color: #a82646;
                        border: none;
                        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                        cursor: pointer;
                        z-index: 10;
                        transition: all 0.3s ease;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        color: white;
                    }

                    #prev-btn {
                        left: 20px;
                    }

                    #next-btn {
                        right: 20px;
                    }

                    #prev-btn:hover, #next-btn:hover {
                        background-color: #c0405e;
                        transform: translateY(-50%) scale(1.1);
                        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
                    }

                    #prev-btn:active, #next-btn:active {
                        background-color: #c0405e;
                        transform: translateY(-50%) scale(1.05);
                    }

                    /* Add subtle background effect */
                    #carousel-wrapper::before {
                        content: '';
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        width: 90%;
                        height: 80%;
                        background: linear-gradient(135deg, rgba(245, 245, 245, 0.5), rgba(250, 250, 250, 0.2));
                        border-radius: 20px;
                        z-index: -1;
                    }

                    /* Responsive adjustments */
                    @media (max-width: 1024px) {
                        .carousel-item {
                            padding: 12px;
                        }

                        .carousel-item.center {
                            transform: scale(1.1);
                        }
                    }

                    @media (max-width: 768px) {
                        #carousel-wrapper {
                            margin: 40px 0;
                        }

                        .carousel-item {
                            width: 50%;
                            padding: 10px;
                        }

                        .carousel-item img {
                            height: 200px;
                        }

                        #prev-btn, #next-btn {
                            width: 50px;
                            height: 50px;
                            font-size: 1.5rem;
                            left: 15px;
                            right: 15px;
                        }
                    }

                    @media (max-width: 480px) {
                        .carousel-item {
                            width: 100% !important;
                        }

                        .carousel-item.center {
                            transform: scale(1);
                        }

                        #prev-btn, #next-btn {
                            width: 45px;
                            height: 45px;
                            font-size: 1.3rem;
                            left: 10px;
                            right: 10px;
                        }
                    }

@media (max-width: 767px) {
                .animate-bounce {
                    bottom: 20px;
                    margin-top: 40px;
                }

                .animate-bounce a {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                }

                /* Prevent page left-right drift */
                html, body {
                    overflow-x: hidden;
                    position: relative;
                }

                /* Ensure content is within viewport */
                .container {
                    width: 100%;
                    max-width: 100%;
                    padding-left: 16px;
                    padding-right: 16px;
                    box-sizing: border-box;
                }
            }

/* Navigation bar styles - Maintain dark background and light text effects */
        #navbar {
            background-color: #a82646; /* solid primary color - dark background */
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        /* Navigation bar style on scroll - Enhance dark effect */
        #navbar.scrolled {
            background-color: #7b1c33; /* darker shade for better contrast - dark enhancement */
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            border-bottom-color: rgba(255, 255, 255, 0.2);
        }

        /* Navigation link styles */
        .nav-link {
            position: relative;
            padding: 0.5rem 1rem;
            transition: all 0.3s ease;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background-color: #a82646;
            transition: width 0.3s ease;
        }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 80%;
        }

        /* Mobile menu button */
        .menu-btn {
            transition: all 0.3s ease;
        }

        .menu-btn:hover {
            transform: rotate(90deg);
        }

        /* Add some decorative elements to enhance visual hierarchy */
        .hero-decoration {
            position: absolute;
            z-index: 0;
            opacity: 0.15;
        }

        /* Ensure text readability on dark backgrounds */
        .text-shadow {
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        /* Enhance card visual effects */
        .bg-white {
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
        }

        /* Optimize card hover effects, reduce performance overhead */
        .card-hover {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

/* Image preview modal styles */
                #imagePreviewModal {
                    opacity: 0;
                    visibility: hidden;
                    transition: opacity 0.3s ease, visibility 0.3s ease;
                    touch-action: none;
                    -webkit-tap-highlight-color: transparent;
                }

                #imagePreviewModal.active {
                    opacity: 1;
                    visibility: visible;
                }

                .modal-content {
                    position: relative;
                    transition: transform 0.3s ease;
                }

                #modalImage {
                    transition: transform 0.2s ease-out;
                    cursor: grab;
                }

                #modalImage.dragging {
                    cursor: grabbing;
                }

                /* Prevent text selection */
                #imagePreviewModal {
                    user-select: none;
                    -webkit-user-select: none;
                    -moz-user-select: none;
                    -ms-user-select: none;
                }

/* v20261103b — 图片预览层：高于移动端粘性底栏，支持拖动不误触 */
#imagePreviewModal.active{z-index:99999!important;}
#imagePreviewModal .modal-content{touch-action:none;max-height:86vh;}
#modalImage{max-height:82vh;touch-action:none;-webkit-user-drag:none;user-select:none;}
#imagePreviewModal > button{font-family:inherit;}
