/* Global Kaiwei Styles & Enhancements */
@media (max-width: 768px) {
    :root {
        --mobile-padding: 1.5rem;
    }

    html {
        font-size: 14px;
    }

    .container {
        padding-left: var(--mobile-padding) !important;
        padding-right: var(--mobile-padding) !important;
    }
}

/* Ensure Header is always on top */
header {
    z-index: 5000 !important;
}
.white {
    color: #ffffff;
}
#mobile-menu-btn {
    position: relative;
    z-index: 10001;
}

/* Mobile Menu Enhanced Styles */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    /* Hide with display none to be certain */
    background: #ffffff;
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-menu.active {
    display: block !important;
    animation: slideInDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--kaiwei-dark);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--kaiwei-brand);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-left: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

.mobile-submenu.open {
    max-height: 500px;
    transition: max-height 0.6s ease-in;
}

.mobile-sub-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    padding: 0.75rem 0;
    display: block;
}

.mobile-lang-switcher {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 2rem;
}

.mobile-lang-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--kaiwei-dark);
    background: white;
    border: 1px solid #e2e8f0;
}

.mobile-lang-item.active {
    background: var(--kaiwei-brand);
    color: white;
    border-color: var(--kaiwei-brand);
}

/* Close button for mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--kaiwei-dark);
    background: #f8fafc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

/* Main Design Tokens */
:root {
    --kaiwei-brand: #0B9DB3;
    --kaiwei-brand-rgb: 11, 157, 179;
    --kaiwei-dark: #1d1d1f;
    --kaiwei-gray: rgba(0, 0, 0, .8);
    --kaiwei-light: #f5f5f7;
    --kaiwei-light-gray: #f1f5f9;
    --text-main: #1d1d1f;
    --text-title: #1d1d1f;
    --glass-bg: rgba(255, 255, 255, 0.05);

    /* Apple Global Nav Colors */
    --r-globalnav-color: rgba(0, 0, 0, .8);
    --r-globalnav-color-secondary: #333336;
    --r-globalnav-color-hover: #000000;

    /* Apple Design System (SK) Tokens */
    --sk-body-text-color: #1d1d1f;
    --sk-headline-text-color: #1d1d1f;
    --sk-body-background-color: #ffffff;
    --sk-body-font-stack: 'Inter', 'Noto Sans SC', sans-serif;
    --sk-default-stacked-margin: 0.4em;
    --sk-paragraph-plus-element-margin: 0.8em;
    --sk-headline-plus-first-element-margin: 0.8em;
    --sk-headline-plus-headline-margin: 0.4em;
    --sk-paragraph-plus-headline-margin: 1.6em;
    --sk-secondary-text-color: #1d1d1f;

    /* Premium Modern Shadow */
    --soft-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* --- Skeleton Pulse Animation --- */
.img-skeleton {
    background: #f4f5f6;
    background: linear-gradient(90deg, #f4f5f6 25%, #ebedee 50%, #f4f5f6 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite linear;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.img-skeleton img {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-skeleton.loaded img {
    opacity: 1;
}

/* Global Section Subtitle Style */
.section-subtitle {
    font-size: 1.2rem;
    color: var(--sk-secondary-text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

body {
    font-family: var(--sk-body-font-stack);
    color: var(--sk-body-text-color);
    background-color: var(--sk-body-background-color);
    overflow-x: hidden;
}

/* Performance: Use hardware acceleration for smooth scrolling/animations */
.matrix-card,
.hero-content,
.hero-bg img,
.img-skeleton,
.btn-primary,
.nav-item::after {
    will-change: transform, opacity;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--sk-headline-text-color);
    font-family: var(--sk-body-font-stack);
    margin-bottom: var(--sk-headline-plus-first-element-margin);
    font-weight: 700;
}

p {
    margin-bottom: var(--sk-paragraph-plus-element-margin);
    line-height: 1.6;
}

/* Tailwind Utility Overrides for Apple Aesthetic */
.text-slate-500 {
    color: var(--sk-secondary-text-color) !important;
}

.text-slate-400 {
    color: var(--sk-secondary-text-color) !important;
    opacity: 0.8;
}

/* --- Premium Swiper Hero --- */
.hero-slider {
    height: 100vh;
    min-height: 700px;
    width: 100%;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 10s ease-out;
}

.swiper-slide-active .hero-bg img {
    transform: scale(1.1);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.85) 40%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
}

.swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-pagination {
    bottom: 3rem !important;
    left: 6rem !important;
    text-align: left !important;
    width: auto !important;
}

.hero-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    opacity: 1;
    transition: all 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--kaiwei-brand);
    width: 60px;
}


/* --- Top Header Bar --- */
.header-top-bar {
    background: var(--kaiwei-light-gray);
    /* Apple's deep charcoal */
    color: var(--kaiwei-gray);
    padding: 0.6rem 0;
    font-size: 0.72rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
}

/* --- Mobile Bottom Dock --- */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1500;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-bottom-dock {
        display: flex;
    }

    /* Offset footer padding for dock */
    body {
        padding-bottom: 70px;
    }
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--kaiwei-dark);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    gap: 4px;
    transition: all 0.3s;
}

.dock-item i {
    font-size: 1.5rem;
    color: var(--kaiwei-brand);
}

.dock-item.primary-dock {
    background: var(--kaiwei-brand);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    flex-direction: row;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(11, 157, 179, 0.3);
}

.dock-item.primary-dock i {
    color: white;
    font-size: 1.25rem;
}


.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kaiwei-gray);
    transition: color 0.3s;
}

.top-bar-item:hover {
    color: var(--kaiwei-brand);
}

.top-bar-item i {
    color: var(--kaiwei-brand);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Language Dropdown */
.lang-selector {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--kaiwei-brand);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1100;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.6rem 1rem;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f1f5f9;
    color: var(--kaiwei-brand);
}

/* --- Premium Quote Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 24, 0.8);
    backdrop-filter: blur(8px);
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.quote-modal-card {
    background: white;
    width: 95%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .quote-modal-card,
.modal-overlay.active #successModal>div {
    transform: scale(1);
}

.modal-info-side {
    background: #1d1d1f;
    background-image: linear-gradient(rgba(8, 22, 24, 0.9), rgba(8, 22, 24, 0.9)), url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    padding: 3.5rem;
    color: white;
    position: relative;
}

.modal-form-side {
    padding: 3.5rem;
    position: relative;
}

.modal-close-trigger {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--sk-secondary-text-color);
}

.modal-close-trigger:hover {
    background: #f1f5f9;
    color: var(--kaiwei-brand);
    transform: rotate(90deg);
}

.marketing-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(11, 157, 179, 0.2);
    border: 1px solid var(--kaiwei-brand);
    color: var(--kaiwei-brand);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.modal-phone-box {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-phone-num {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    display: block;
    margin-top: 0.5rem;
}

/* --- Global Button Styles --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--kaiwei-brand);
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(11, 157, 179, 0.2);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: #098a9d;
    /* Slightly darker teal */
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(11, 157, 179, 0.3);
    color: #ffffff !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--kaiwei-brand) !important;
    border: 2px solid var(--kaiwei-brand);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(11, 157, 179, 0.05);
    transform: translateY(-2px);
    color: var(--kaiwei-brand) !important;
}

.quote-btn-main {
    background: var(--kaiwei-brand);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(11, 157, 179, 0.2);
    transition: all 0.3s !important;
}

.quote-btn-main:hover {
    background: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(11, 157, 179, 0.3);
}

@media (max-width: 768px) {
    .quote-modal-card {
        grid-template-columns: 1fr;
    }

    .modal-info-side {
        display: none;
    }
}

/* --- Premium Navigation v3.0 --- */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    height: 100%;
    font-size: 1rem;
    /* Apple nav is typically slighty smaller */
    font-weight: 500;
    /* Apple uses medium weights */
    color: var(--r-globalnav-color);
    letter-spacing: -0.01em;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--r-globalnav-color-hover);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    background: var(--kaiwei-brand);
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transform: scaleX(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active::after,
.nav-item:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding-top: 15px;
    /* Invisible bridge to prevent closing */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
    /* Delay hiding to be forgiving */
    z-index: 1001;
    pointer-events: none;
    /* Prevent accidental clicks when hidden */
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
    /* Show instantly */
    pointer-events: auto;
}

.dropdown-menu.right-0 {
    left: auto;
    right: 0;
    transform: translateY(15px);
}

.dropdown-trigger:hover .dropdown-menu.right-0 {
    transform: translateY(0);
}

.dropdown-inner {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 0 30px 60px -12px rgba(8, 22, 24, 0.15), 0 18px 36px -18px rgba(8, 22, 24, 0.2);
    padding: 1rem;
    min-width: 220px;
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--r-globalnav-color);
    border-radius: 0.8rem;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.dropdown-link:last-child {
    margin-bottom: 0;
}

.dropdown-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--r-globalnav-color-hover);
    padding-left: 1.5rem;
}

.dropdown-link::after {
    content: '\f105';
    /* ph-caret-right */
    font-family: 'Phosphor';
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.25s ease;
}

.dropdown-link:hover::after {
    opacity: 0.5;
    transform: translateX(0);
}

/* Mega Menu Evolution v4.0 */
.mega-menu {
    position: fixed;
    /* Full screen context */
    top: 6rem;
    /* Height of header (h-24) */
    left: 0;
    width: 100vw;
    transform: translateY(20px);
    padding-top: 0;
}

.dropdown-trigger:hover .mega-menu {
    transform: translateY(0);
}

.mega-menu .dropdown-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2.5rem;
    padding: 3rem 4rem;
    border-radius: 0 0 2rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: none;
    border-top: 1px solid #f1f5f9;
}

/* Mega Section Heading */
.mega-heading {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--kaiwei-brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: block;
}

/* Link with Description */
.mega-link-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid transparent;
}

.mega-link-card:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
    transform: translateY(-2px);
}

.mega-link-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    color: var(--kaiwei-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.mega-link-card:hover .mega-link-icon {
    background: var(--kaiwei-brand);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.mega-link-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sk-headline-text-color);
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.mega-link-card:hover h4 {
    color: var(--kaiwei-brand);
}

.mega-link-subtitle {
    font-size: 0.75rem;
    color: var(--sk-secondary-text-color);
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.7;
}

/* Featured Marketing Card */
.mega-featured {
    background: #1d1d1f;
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
}

.mega-featured img,
.mega-featured video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 0.6s;
    pointer-events: none;
}

.mega-featured:hover img,
.mega-featured:hover video {
    transform: scale(1.1);
}

.mega-featured-content {
    position: relative;
    z-index: 2;
}

.mega-featured-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.mega-featured-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.mega-featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--kaiwei-brand);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s;
}

.mega-featured-btn:hover {
    background: white;
    color: var(--kaiwei-brand);
    padding-right: 1.5rem;
}

.mega-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.mega-video-play-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--kaiwei-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.mega-featured:hover .mega-video-play-icon {
    transform: scale(1.15);
    background: var(--kaiwei-brand);
    color: white;
    opacity: 1;
}

.mega-video-play-icon i {
    margin-left: 4px;
    /* Optical center fix for play icon */
}

/* Category Grid */
.mega-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mega-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .nav-item {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
}



/* --- Device Centric Section (Circular Layout) --- */
.device-authority-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
    padding: 6rem 0;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0px !important
}

.device-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(6 174 198 / 95%) 0%, rgba(11, 157, 179, 0.8) 100%);
    z-index: 1;
}

.device-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Header (Top) */
.authority-header {
    text-align: center;
    margin-bottom: 3rem;
}

.authority-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.authority-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
    font-weight: 300;
}

/* Central Device Layout (U-Shape Surround) */
.device-center-layout {
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
    position: relative;
}

@media (max-width: 1200px) {
    .device-center-layout {
        grid-template-columns: 1fr 1fr;
        padding: 0 4%;
    }

    .device-image-box {
        grid-row: 1;
        grid-column: span 2;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .device-center-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .device-image-box {
        width: 300px;
        height: 300px;
        grid-column: span 1;
    }

    .device-image-box::after {
        inset: -30px;
    }
}

/* Perfect Circle Image Box */
.device-image-box {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    z-index: 20;
}

/* Rotating Dashed Border */
.device-image-box::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

/* Static Glow Border */
.device-image-box::after {
    content: '';
    position: absolute;
    inset: -50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.device-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 5;
    background: rgba(11, 157, 179, 0.25);
}

.device-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.device-placeholder:hover img {
    transform: scale(1.1);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Radial Advantages (Card Style with Image BG + Pale Red Overlay) */
.adv-item-radial {
    position: relative;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: float 4s ease-in-out infinite;
}

/* Vary animation delays */
.adv-left .adv-item-radial:nth-child(1) {
    animation-delay: 0s;
}

.adv-left .adv-item-radial:nth-child(2) {
    animation-delay: 1s;
}

.adv-right .adv-item-radial:nth-child(1) {
    animation-delay: 0.5s;
}

.adv-right .adv-item-radial:nth-child(2) {
    animation-delay: 1.5s;
}

.adv-bottom-center {
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Pale Red Overlay */
.adv-item-radial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 157, 179, 0.25);
    z-index: 1;
    backdrop-filter: blur(3px);
    transition: background 0.3s;
}

.adv-item-radial:hover::before {
    background: rgba(11, 157, 179, 0.15);
    backdrop-filter: blur(0px);
}

.adv-item-radial h4,
.adv-item-radial p {
    position: relative;
    z-index: 2;
}

.adv-item-radial h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.adv-item-radial h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: white;
    border-radius: 2px;
}

.adv-item-radial p {
    font-size: 0.9rem;
    color: #fff;
    /* Match h4's white */
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    /* Match h4's bold weight */
}

/* Layout Adjustments */
.adv-left .adv-item-radial {
    text-align: left;
    margin-bottom: 2rem;
}

.adv-right .adv-item-radial {
    text-align: left;
    margin-bottom: 2rem;
}

.adv-bottom-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: -2rem;
    position: relative;
    z-index: 30;
}

.adv-bottom-center {
    width: 80%;
    max-width: 800px;
    text-align: center;
    align-items: center;
}

.adv-bottom-center h4 {
    justify-content: center;
}

/* Company Profile - GRAND Style */
.company-profile-grand {
    margin-top: 6rem;
    position: relative;
    padding: 5rem 6rem;
    /* Glassmorphism White Theme */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 80px -20px rgba(8, 22, 24, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.company-profile-grand p {
    color: #4b5563 !important;
    text-shadow: none;
}

/* Top accent line */
.company-profile-grand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kaiwei-brand), transparent);
}

/* Main content layout (Text & Video) */
.cp-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .company-profile-grand {
        padding: 3rem 1.5rem;
        margin-top: 3rem;
    }

    .cp-main-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .cp-grand-text h3 {
        font-size: 1.8rem;
    }

    .cp-grand-text p {
        font-size: 0.95rem;
    }
}

/* Bottom Stats Row */
.cp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    border-top: 1px solid rgba(11, 157, 179, 0.1);
    padding-top: 3rem;
}

@media (max-width: 768px) {
    .cp-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-top: 2rem;
    }

    .stat-box {
        padding: 1.5rem 1rem;
    }

    .stat-box .num {
        font-size: 3rem;
    }
}

/* Video Preview Box */
.cp-video-wrapper {
    position: relative;
    perspective: 1000px;
}

.cp-video-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background: #000;
}

.cp-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.8;
}

.cp-video-box:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.video-play-btn-glass {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(11, 157, 179, 0.2) 0%, transparent 70%);
}

.play-icon-ripple {
    width: 70px;
    height: 70px;
    background: white;
    color: var(--kaiwei-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s;
}

.play-icon-ripple::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(11, 157, 179, 0.3);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.cp-video-box:hover .play-icon-ripple {
    background: var(--kaiwei-brand);
    color: white;
    transform: scale(1.1);
}

.cp-grand-text h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--kaiwei-dark);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1;
}

.cp-grand-text h3 span {
    color: var(--kaiwei-brand);
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.cp-grand-text p {
    color: var(--sk-secondary-text-color);
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    font-weight: 400;
}

/* Grand Stats Grid */
.cp-grand-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: var(--kaiwei-brand);
    border: none;
    padding: 1.5rem 1rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(11, 157, 179, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-box:hover::after {
    opacity: 1;
}

.stat-box:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(11, 157, 179, 0.4);
}

.stat-box.full-width {
    grid-column: span 2;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.03), rgba(11, 157, 179, 0.1));
}

.stat-box .num {
    font-size: 5.5rem;
    font-weight: 900;
    color: white !important;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    -webkit-text-fill-color: white;
}

.stat-box .num span {
    font-size: 2.5rem;
    opacity: 1;
    -webkit-text-fill-color: white;
}

.stat-box .label {
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
}

/* --- Flagship Core Tech Section (Silver & Red Tech Theme) --- */
.flagship-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    /* High-End Silver Gradient */
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    z-index: 10;
}

/* Connecting Element (Flow from previous section) */
.flagship-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--kaiwei-brand), transparent);
    background-size: 100% 200%;
    animation: flow-down 2s linear infinite;
    z-index: 2;
    opacity: 0.6;
}

@keyframes flow-down {
    0% {
        background-position: 0 -100%;
    }

    100% {
        background-position: 0 200%;
    }
}

/* Tech Background Pattern */
.flagship-bg-glow {
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(#e2e8f0 1.5px, transparent 1.5px),
            radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.5;
    z-index: 0;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* Dynamic Red Accent Circle */
.flagship-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 157, 179, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.flagship-container {
    position: relative;
    z-index: 10;
}

/* Section Header (Integrated) */
.core-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.core-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(11, 157, 179, 0.08);
    color: var(--kaiwei-brand);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(11, 157, 179, 0.1);
}

.core-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--kaiwei-dark);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.core-header p {
    font-size: 1.2rem;
    color: var(--sk-secondary-text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Interactive Tabs (Segmented Control Pill) */
.flagship-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
}

.tabs-pill-container {
    background: #e2e8f0;
    padding: 0.4rem;
    border-radius: 60px;
    display: inline-flex;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.flagship-tab-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sk-secondary-text-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    background: transparent;
    z-index: 2;
    position: relative;
}

.flagship-tab-btn:hover {
    color: #334155;
}

.flagship-tab-btn.active {
    background: white;
    color: var(--kaiwei-brand);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Content Layout - "The Lab" */
.flagship-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.flagship-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.product-layout-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Stage (Left) */
.product-showcase-left {
    position: relative;
    padding: 3rem;
}

/* Tech Circle Behind Product */
.product-showcase-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 1px dashed #cbd5e1;
    border-radius: 50%;
    z-index: -1;
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.product-img-main {
    width: 75%;
    /* Smaller Size */
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
    margin: 0 auto;
}

.product-showcase-left:hover .product-img-main {
    transform: scale(1.05) translateY(-10px);
}

/* Floating Tech Specs */
.tech-tag {
    position: absolute;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: #334155;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 5;
    transition: transform 0.3s ease;
    cursor: default;
}

.tech-tag i {
    color: var(--kaiwei-brand);
    font-size: 1.2rem;
}

.tech-tag:hover {
    transform: scale(1.1);
    border-color: var(--kaiwei-brand);
}

.tag-1 {
    top: 5%;
    right: 0;
}

.tag-2 {
    bottom: 10%;
    left: 0;
}

/* Specs Grid (Right) */
.product-desc-custom h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--kaiwei-dark);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-desc-custom h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 40px;
    background: var(--kaiwei-brand);
    border-radius: 3px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Feature Card Glint Effect */
.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    transition: none;
    z-index: 1;
}

.feature-card:hover::before {
    left: 150%;
    transition: left 0.7s ease;
}

.feature-card:hover {
    border-color: rgba(11, 157, 179, 0.3);
    box-shadow: 0 15px 40px rgba(11, 157, 179, 0.1);
    transform: translateY(-5px);
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kaiwei-brand);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon-box {
    background: var(--kaiwei-brand);
    color: white;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--sk-secondary-text-color);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-layout-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .core-header h2 {
        font-size: 2.5rem;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .tech-tag {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        display: inline-flex;
        margin: 0.5rem;
    }

    .product-showcase-left {
        padding: 0;
        text-align: center;
    }
}

/* --- Solutions Showcase Section (New) --- */
.solution-showcase-item {
    position: relative;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
}

.solution-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.solution-showcase-item:hover .solution-bg {
    transform: scale(1.1);
}

.solution-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: all 0.3s;
}

.solution-icon-box {
    width: 50px;
    height: 50px;
    background: var(--kaiwei-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.solution-showcase-item:hover .solution-icon-box {
    transform: translateY(0);
    opacity: 1;
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(10px);
    transition: transform 0.4s;
}

.solution-showcase-item:hover .solution-title {
    transform: translateY(0);
}

.solution-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
}

.solution-showcase-item:hover .solution-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .device-center-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2rem;
        display: flex;
        flex-direction: column;
    }

    .device-image-box {
        order: -1;
        width: 300px;
        height: 300px;
    }

    .adv-left .adv-item-radial,
    .adv-right .adv-item-radial,
    .adv-bottom-center {
        text-align: left;
        margin: 0;
        min-height: auto;
        animation: none;
        margin-bottom: 1rem;
    }

    .adv-bottom-container {
        display: block;
        width: 100%;
        margin: 0;
    }

    .adv-bottom-center {
        width: 100%;
        max-width: none;
    }

    .company-profile-grand {
        padding: 3rem 2rem;
    }

    .cp-grand-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stat-box.full-width {
        grid-column: span 1;
    }

    .cp-grand-stats {
        grid-template-columns: 1fr;
    }

    .product-layout-split {
        grid-template-columns: 1fr;
    }

    .advantage-list-grid {
        grid-template-columns: 1fr;
    }

    .product-img-main {
        margin-bottom: 2rem;
    }
}



/* Learn More Button (Company Profile) */
.cp-learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    background: var(--kaiwei-brand);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(11, 157, 179, 0.3);
}

.cp-learn-more-btn:hover {
    background: var(--kaiwei-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(8, 22, 24, 0.2);
}

.cp-learn-more-btn i {
    transition: transform 0.3s ease;
}

/* --- Product Matrix Section (Grand & Fresh Red Theme) --- */
.product-category-section {
    padding: 5rem 0;
    background: #ffffff;
    /* Fresh White Background */
    position: relative;
    overflow: hidden;
}

/* Subtle Tech Decoration - Fresh & Light */
.product-category-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 157, 179, 0.03) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.product-category-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 22, 24, 0.03) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.product-category-section h2 {
    color: var(--kaiwei-dark) !important;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.product-category-section p {
    color: var(--sk-secondary-text-color) !important;
    position: relative;
    z-index: 2;
}

.matrix-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.matrix-tabs {
    display: inline-flex;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.matrix-tab-btn {
    padding: 1rem 3.5rem;
    border-radius: 40px;
    font-weight: 700;
    color: var(--sk-secondary-text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}

.matrix-tab-btn:hover {
    color: var(--kaiwei-brand);
    background: white;
}

/* Active Tab - Kaiwei Red */
.matrix-tab-btn.active {
    background: var(--kaiwei-brand);
    color: white;
    box-shadow: 0 8px 20px rgba(11, 157, 179, 0.3);
    transform: scale(1.05);
}

.matrix-content-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 10;
}

.matrix-content-grid.active {
    display: grid;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.matrix-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--soft-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.matrix-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.matrix-img-box {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    /* Very light gray */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matrix-im.logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Product Comparison UI */
.compare-toggle-btn.active {
    background-color: var(--kaiwei-brand) !important;
    color: white !important;
}

#compare-tray {
    transform: translateX(-50%) translateY(32px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#compare-tray.translate-y-0 {
    transform: translateX(-50%) translateY(0) scale(1);
}

#compare-modal {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#compare-modal table tr:hover td {
    background-color: #f8fafc;
}

@media (max-width: 768px) {
    #compare-tray {
        width: 95%;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        bottom: 80px;
        /* Space for mobile dock */
        border-radius: 1.5rem;
        justify-content: space-between;
    }

    #compare-items {
        display: flex;
        gap: -0.5rem;
    }

    #compare-items div.w-12 {
        width: 2rem;
        height: 2rem;
    }

    #compare-modal .container {
        padding-top: 5rem;
    }

    #compare-modal h3 {
        font-size: 1.5rem;
    }

    #compare-modal table th,
    #compare-modal table td {
        padding: 1rem !important;
        font-size: 12px !important;
    }

    #compare-modal table th img {
        width: 3rem;
        height: 3rem;
    }
}

.matrix-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure product is fully visible and clean */
    transition: transform 0.6s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

.matrix-card:hover .matrix-img-box img {
    transform: scale(1.08);
}

/* Badges - Fresh Look */
.matrix-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.matrix-badge.hot {
    background: var(--kaiwei-brand);
}

.matrix-badge.new {
    background: #1d1d1f;
}

.matrix-card-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.matrix-card-body h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--kaiwei-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.matrix-card-body .desc {
    color: var(--sk-secondary-text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.matrix-apps-label {
    font-size: 0.75rem;
    color: var(--sk-secondary-text-color);
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.matrix-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.app-tag {
    background: white;
    color: var(--sk-secondary-text-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.matrix-card:hover .app-tag {
    border-color: var(--kaiwei-brand);
    color: var(--kaiwei-brand);
    background: #fffafa;
    /* Very pale red tint */
}

/* Button - Brand Red */
.matrix-btn {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    border-radius: 12px;
    background: var(--kaiwei-brand);
    /* Solid Red */
    color: white;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(11, 157, 179, 0.2);
}

.matrix-btn:hover {
    background: #b91c1c;
    /* Darker red */
    box-shadow: 0 8px 25px rgba(11, 157, 179, 0.4);
    transform: translateY(-2px);
}

.matrix-btn i {
    transition: transform 0.3s;
}

.matrix-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .matrix-content-grid {
        grid-template-columns: 1fr;
    }

    .matrix-tabs {
        flex-direction: column;
        border-radius: 20px;
    }

    .product-category-section {
        padding: 5rem 0;
    }
}

/* --- Glue Dispensing Simulation (UX/UI) --- */
/* --- Glue Dispensing Simulation (UX/UI) --- */
.glue-action-container {
    position: absolute;
    /* User Adjusted: Positioned near needle */
    top: 65%;
    left: 65%;
    width: 300px;
    height: 350px;
    z-index: 20;
    pointer-events: none;
    transform: translateX(-50%);
}

/* 3D Cylindrical Stream */
.glue-stream {
    position: absolute;
    top: 0;
    left: 50%;
    width: 14px;
    /* Thickness matching path */
    height: 80px;
    /* 3D Cylinder Gradient: Dark Edge -> Highlight -> Red -> Dark Edge */
    background: linear-gradient(90deg,
    #475569 0%,
    var(--sk-secondary-text-color) 50%,
    #475569 100%);
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 6px 6px;
    z-index: 2;
}

/* Removed white highlight */
.glue-stream::after {
    display: none;
}

/* Connection Blob at Nozzle (Optional Realism) */
.glue-stream::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -2px;
    right: -2px;
    height: 10px;
    background: #475569;
    border-radius: 50%;
    z-index: -1;
}

/* The Drawing Surface/Plate (Transparent) */
.glue-plate {
    position: absolute;
    top: 75px;
    /* Stream hits here */
    left: 50%;
    transform: translateX(-50%) rotateX(60deg) rotateZ(-10deg);
    /* Angled for 3D depth */
    width: 220px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Glue Path Animation */
.glue-path-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.glue-path-line {
    fill: none;
    stroke: #cbd5e1;
    /* Industrial Light Gray */
    stroke-width: 18;
    /* Thick 3D Tube */
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    /* Filter handles the 3D shading now */
    animation: glue-draw 3s ease-in-out infinite alternate;
}

@keyframes glue-draw {
    0% {
        stroke-dashoffset: 400;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Tooltip Label */
.glue-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--kaiwei-brand);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    animation: glue-label-in 0.5s 0.5s forwards;
}

@keyframes glue-label-in {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }
}

/* --- Responsive Adaptation for Glue Simulation --- */
@media (max-width: 1280px) {
    .glue-action-container {
        transform: translateX(-50%) scale(0.9);
    }
}

@media (max-width: 1024px) {

    /* Tablet / Small Desktop */
    .glue-action-container {
        top: 60%;
        left: 65%;
        transform: translateX(-50%) scale(0.8);
        transform-origin: top center;
    }
}

@media (max-width: 768px) {

    /* Mobile */
    .glue-action-container {
        /* Re-center for stacked layout */
        top: 55%;
        left: 50%;
        /* Image is likely centered on mobile */
        transform: translateX(-50%) scale(0.65);
        transform-origin: top center;
    }

    .product-img-main {
        width: 85%;
        /* Slightly larger image on mobile for better visibility */
    }
}

/* --- Grand Application Showcase (Immersive) --- */
/* --- Immersive Application Showcase v5.0 --- */
.app-showcase-section {
    padding: 8rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.app-showcase-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Category Navigation */
.app-nav-pills {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

.app-nav-btn {
    padding: 1rem 2rem;
    background: rgba(0, 188, 212, 0.03);
    /* Subtle teal tint instead of gray */
    border: 1px solid rgba(0, 188, 212, 0.08);
    border-radius: 50px;
    color: #4b5563;
    /* Softer gray */
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.app-nav-btn i {
    font-size: 1.4rem;
    opacity: 0.7;
}

.app-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--kaiwei-dark);
    border-color: rgba(0, 0, 0, 0.1);
}

.app-nav-btn.active {
    background: var(--kaiwei-brand);
    color: white;
    border-color: var(--kaiwei-brand);
    box-shadow: 0 10px 30px rgba(11, 157, 179, 0.3);
}

.app-nav-btn.active i {
    opacity: 1;
}

/* Content Stage */
.app-stage-wrapper {
    position: relative;
    height: 750px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 188, 212, 0.08);
    /* Brand-tinted shadow */
    background: #ffffff;
    border: 1px solid rgba(0, 188, 212, 0.05);
}

.app-content-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    transform: perspective(2000px) rotateY(10deg) scale(0.98);
    transform-origin: center center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.app-content-panel.active {
    opacity: 1;
    visibility: visible;
    transform: perspective(2000px) rotateY(0deg) scale(1) translateZ(0);
}

/* Atmospheric Background - More vibrant and clear */
.app-panel-bg {
    position: absolute;
    inset: -2%;
    /* Slight bleed to avoid edge artifacts during scale */
    background-size: cover;
    background-position: center;
    filter: brightness(1.05) contrast(1.02);
    /* Maintain punch but preserve HD clarity */
    transition: transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;

    /* Anti-Blur Fixes for High-Res Images */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    image-rendering: -webkit-optimize-contrast;
}

.app-content-panel.active .app-panel-bg {
    transform: translateZ(0) scale(1.08);
    /* Reduced scale slightly for better fidelity */
}

/* Background Mask Overlay to improve contrast and focus */
.app-panel-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient from dark on the left (behind sidebar) to transparent, with a subtle vignette */
    background: linear-gradient(90deg,
    rgba(8, 22, 24, 0.6) 0%,
    rgba(8, 22, 24, 0.2) 40%,
    rgba(8, 22, 24, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Sophisticated Glassy Overlay - Better coordination with brand teal */
/* Modern Branded Overlay - Asymmetric Tech Sidebar */
.app-panel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    z-index: 5;
}

.app-glass-sidebar {
    height: 90%;
    width: 550px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    border-radius: 10px;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-bg-brand-icon {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 20rem;
    color: rgba(0, 188, 212, 0.04);
    pointer-events: none;
    z-index: -1;
    transform: rotate(-15deg);
}

/* Typography & Marketing Power */
.app-info-panel span.app-category-badge {
    background: var(--kaiwei-brand);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(11, 157, 179, 0.2);
}

.app-info-panel h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--kaiwei-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.app-info-panel .marketing-usp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.text-kaiwei-brand {
    color: var(--kaiwei-brand) !important;
}

.app-solution-focus {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.solution-item {
    padding: 0.8rem 1rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(0, 188, 212, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

.solution-item:hover {
    border-left-color: var(--kaiwei-brand);
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transform: translateX(5px);
}

.solution-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 900;
    color: var(--kaiwei-brand);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

.solution-item label i {
    font-size: 1rem;
}

.solution-item p {
    font-size: 0.8rem;
    color: var(--sk-secondary-text-color);
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 500;
}

/* --- Integrated Portfolio Samples (Built into Sidebar) --- */
.app-samples-container {
    margin-top: 2rem;
    /* padding-top: 2rem; */
    border-top: 1px solid rgba(0, 188, 212, 0.1);
}

.app-samples-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--kaiwei-brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    display: block;
}

.app-samples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sample-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.8rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sample-card:hover {
    background: white;
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.1);
    transform: translateY(-5px);
    border-color: var(--kaiwei-brand);
}

.sample-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.sample-card h6 {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 0;
    border-radius: 4px;
}

/* Responsive Adjustments for Application Showcase */
@media (max-width: 1200px) {
    .app-showcase-container {
        padding: 0 2rem;
    }

    .app-glass-sidebar {
        width: 450px;
        padding: 3rem;
    }
}

@media (max-width: 991px) {
    .app-stage-wrapper {
        height: auto;
        min-height: 600px;
        border-radius: 20px;
    }

    .app-panel-overlay {
        padding: 2rem;
        flex-direction: column;
        justify-content: flex-end;
    }

    .app-glass-sidebar {
        width: 100%;
        height: auto;
        margin-top: 150px;
        /* Shortened background visibility */
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 2.5rem;
    }

    .app-info-panel h2 {
        white-space: normal;
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .app-showcase-section {
        padding: 4rem 0;
    }

    .app-nav-pills {
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .app-nav-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .app-stage-wrapper {
        min-height: 700px;
    }

    .app-glass-sidebar {
        padding: 1.5rem;
        margin-top: 120px;
    }

    .app-samples-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-solution-focus {
        gap: 1rem;
    }

    .solution-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .app-stage-wrapper {
        min-height: 750px;
    }

    .app-info-panel h2 {
        font-size: 1.5rem;
    }

    .sample-card {
        padding: 0.5rem;
    }
}

/* Clean up old sample-item styles */
.app-samples-viewport,
.app-samples-track,
.sample-item,
.sample-img-container,
.magnifier-lens,
.magnifier-preview-window {
    display: none !important;
}

/* End of old samples cleanup */

/* --- End of Application Showcase Redesign --- */

.sample-item p {
    color: var(--kaiwei-brand);
    font-size: 0.75rem;
    margin-top: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}

/* CTA */
.app-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--kaiwei-brand);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s;
    box-shadow: 0 20px 40px rgba(11, 157, 179, 0.2);
}

.app-action-btn:hover {
    background: var(--kaiwei-brand);
    color: white;
    transform: scale(1.05);
}

.app-action-btn i {
    font-size: 1.4rem;
}

/* --- End Showcase Section --- */


.app-case-thumbs::-webkit-scrollbar {
    display: none;
}

.app-case-thumb {
    width: 54px;
    /* Slightly larger */
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    background: #334155;
    flex-shrink: 0;
}

/* Restoring Thumbnail Interactions */
.app-case-thumb:hover {
    transform: scale(1.2) translateY(-5px);
    border-color: var(--kaiwei-brand);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* Tooltip for Thumbnails */
.app-case-thumb[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

/* --- Partners Section (Card Grid) --- */
.partners-section {
    padding: 6rem 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* Auto grid for responsive rows */
    gap: 1.5rem;
    justify-content: center;
}

.partner-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(220, 38, 38, 0.1);
}

.partner-logo {
    max-height: 50px;
    width: auto;
    max-width: 100%;
    /* Original Color - No Filter */
    filter: none;
    opacity: 1;
    object-fit: contain;
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    .partners-section {
        padding: 4rem 0;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .partner-card {
        padding: 0.75rem;
        height: 70px;
        border-radius: 8px;
    }

    .partner-logo {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.partner-card:hover .partner-logo {
    transform: scale(1.05);
}

/* --- Video Center (Redesigned) --- */
.video-section {
    padding: 6rem 0;
    background: #ffffff;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.video-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* --- Video Center: Full-Screen Cinematic Stage --- */
.video-section {
    padding: 5rem 0;
    background: #ffffff;
}

.main-video-stage {
    position: relative;
    width: 100%;
    height: 650px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
}

.main-video-card {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    pointer-events: none;
}

.video-brand-stats {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 10;
}

.brand-stat-unit {
    display: flex;
    flex-direction: column;
}

.v-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.v-lab {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-line {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.video-main-info {
    position: absolute;
    bottom: 50px;
    left: 60px;
    z-index: 10;
    max-width: 600px;
}

/* Play Button with Pulse */
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(11, 157, 179, 0.9);
    /* Use brand color */
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(11, 157, 179, 0.4);
    transition: all 0.3s;
    animation: pulse-brand 2s infinite;
    z-index: 15;
}

@keyframes pulse-brand {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 157, 179, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(11, 157, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(11, 157, 179, 0);
    }
}

.main-video-card:hover .play-btn-overlay {
    background: var(--kaiwei-brand);
    transform: translate(-50%, -50%) scale(1.1);
    animation: none;
}

/* Horizontal Case Feed */
.video-case-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem;
    /* Uniform padding to prevent shadow clipping */
    margin: -1rem;
    /* Offset padding to maintain alignment */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    cursor: grab;
    user-select: none;
}

.video-case-grid:active,
.video-case-grid.grabbing {
    cursor: grabbing;
}

.video-case-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.video-case-item {
    flex: 0 0 calc(25% - 1.5rem);
    /* Default 4 items visible */
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.4s ease;
}

@media (max-width: 1024px) {
    .video-case-item {
        flex: 0 0 calc(50% - 1rem);
        /* 2 items visible */
    }
}

@media (max-width: 640px) {
    .video-case-item {
        flex: 0 0 100%;
        /* 1 item visible */
    }
}

.v-case-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 1.25rem;
    border: 4px solid transparent;
    /* Reserve space for the brand border */
}

.v-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.v-case-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.v-case-cat {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--kaiwei-brand);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.v-case-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kaiwei-dark);
    line-height: 1.4;
    transition: color 0.3s;
}

.video-case-item:hover .v-case-img img {
    transform: scale(1.1);
}

.video-case-item:hover .v-case-title {
    color: var(--kaiwei-brand);
}

.video-case-item.active .v-case-img {
    border-color: var(--kaiwei-brand);
    z-index: 10;
}



@media (max-width: 1024px) {
    .custom-service-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .service-title {
        font-size: 2.5rem;
    }

    .dimensions-list {
        grid-template-columns: 1fr;
    }
}

/* --- Custom Service Section --- */
/* --- Custom Service Section --- */
.custom-service-section {
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(11, 157, 179, 0.85), rgba(11, 157, 179, 0.65)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?q=80&w=2670');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.custom-service-watermark {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
    width: 600px;
    filter: grayscale(1) brightness(2);
}

.custom-service-watermark img {
    width: 100%;
}

.custom-service-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.service-header-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(11, 157, 179, 0.1);
    border: 1px solid rgba(11, 157, 179, 0.3);
    color: #0ed2ee;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-radius: 100px;
}

.service-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-subtitle {
    font-size: 1.2rem;
    color: #ffffff !important;
    margin-bottom: 3.5rem;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.dimensions-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.dim-item h4 {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.dim-item h4::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--kaiwei-brand);
    border-radius: 2px;
}

.dim-item li {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    list-style: none;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.dim-item li::before {
    content: '•';
    color: var(--kaiwei-brand);
    margin-right: 8px;
    font-weight: bold;
}

.premium-form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(11, 157, 179, 0.3);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    /* Increased visibility */
    margin-bottom: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input-group {
    margin-bottom: 1.8rem;
}

.form-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 600;
}

.premium-input,
.premium-select,
.premium-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 1.2rem;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.premium-input.error,
.premium-select.error,
.premium-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.premium-input:focus,
.premium-select:focus,
.premium-textarea:focus {
    border-color: var(--kaiwei-brand);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(11, 157, 179, 0.2);
}

.premium-input::placeholder,
.premium-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.premium-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.premium-select option {
    background: #081618;
    color: #ffffff;
}

.form-submit-btn {
    width: 100%;
    background: var(--kaiwei-brand);
    color: white;
    font-weight: 800;
    padding: 1.4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.form-submit-btn:hover {
    background: #0ed2ee;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(11, 157, 179, 0.3);
}

.assurance-row {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.assure-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.assure-item i {
    color: var(--kaiwei-brand);
    font-size: 1.4rem;
}

/* Case Highlight Banner (Frosted Glass Style) */
.case-highlight-banner {
    background: rgba(255, 255, 255, 0.08);
    /* Frosted light color like the form */
    border-radius: 24px;
    padding: 1.8rem 2.5rem;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Brighter white border for frosted edge */
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: blur(25px);
    /* Higher blur for frosted feel */
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.case-highlight-banner p {
    color: #ffffff;
    font-size: 1.05rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.case-highlight-banner strong {
    color: #0ed2ee;
    font-weight: 800;
}

/* Consolidating map styles into the lower section... redundant code removed */

.dot-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
    z-index: 20;
}

.map-dot:hover .dot-label {
    opacity: 1;
    top: 25px;
}

/* --- Partners Wall: Premium Brand Grid --- */
.partners-section {
    padding: 5rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }
}

.partners-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #f1f5f9;
    /* Border color for the grid */
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
}

.partner-item {
    background: white;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    transition: all 0.4s ease;
}

.partner-item img {
    max-width: 140px;

    width: auto;
    filter: none;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.partner-item:hover {
    background: #fcfcfc;
    z-index: 2;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.02);
}

.partner-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.partners-wall.partners-wall-six {
    grid-template-columns: repeat(6, 1fr);
}

.partners-wall.partners-wall-six .partner-item {
    height: 140px;
    padding: 2rem;
}

.partners-wall.partners-wall-six .partner-item img {
    max-width: 110px;
}

@media (max-width: 991px) {
    .partners-wall {
        grid-template-columns: repeat(3, 1fr);
    }

    .partner-item {
        height: 120px;
        padding: 2rem;
    }

    .partner-item img {
        max-width: 100px;
    }

    .partners-wall.partners-wall-six {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-wall {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 16px;
    }

    .partner-item {
        height: 100px;
        padding: 1.5rem;
    }

    .partner-item img {
        max-width: 80px;
        max-height: 35px;
    }

    .partners-wall.partners-wall-six {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Global Network Section: Modern Technical Map --- */
.global-network-section {
    padding: 8rem 0 0 0;
    /* Removed bottom padding for seamless merge */
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

/* Subtle background decorative text or shapes for depth */
.global-network-section::before {
    content: 'KAIWEI GLOBAL';
    position: absolute;
    top: 5%;
    left: -2%;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 188, 212, 0.03);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}

.network-header-cluster {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    position: relative;
    z-index: 1;
}

.network-title-box {
    text-align: left;
}

.network-title-box h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #1A1A1A 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.network-title-box .highlight-teal {
    color: #00BCD4;
    -webkit-text-fill-color: #00BCD4;
}

.network-desc-content {
    border-left: 2px solid #00BCD4;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.network-desc-content h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 0.8rem;
}

.network-desc-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Fluid Stats Integration */
.network-stats-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.stat-item-fluid {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 1.25rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-item-fluid:nth-child(3) {
    grid-column: span 2;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item-fluid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 188, 212, 0.08);
    border-color: rgba(0, 188, 212, 0.2);
}

.stat-item-fluid .stat-val {
    font-size: 3rem;
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1;
    display: block;
    margin-bottom: 0.4rem;
}

.stat-item-fluid .stat-txt {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@media (max-width: 1024px) {
    .network-header-cluster {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .network-title-box h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .stat-item-fluid:nth-child(3) {
        flex-direction: column;
        align-items: flex-start;
    }
}

.map-stage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 40px;
    padding: 4rem 2rem;
    perspective: 2000px;
    /* Enable 3D Depth */
}

/* Stereoscopic High-Definition Map */
.map-container {
    width: 100%;
    aspect-ratio: 1000 / 550;
    max-height: 600px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg') center/contain no-repeat;
    opacity: 0.6;
    /* Increased for clarity */
    filter: invert(1) hue-rotate(180deg) brightness(0.8);
    /* Technical Dark-Teal look */
    margin: 0 auto;
    position: relative;
    transform: rotateX(20deg);
    /* Slightly reduced tilt for better text alignment */
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    backface-visibility: hidden;
}

/* Sharp Extrusion for landmass depth - No more blur */
.map-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: brightness(0) opacity(0.3);
    transform: translateZ(-4px) translateY(4px);
    /* Sharp physical thickness */
    pointer-events: none;
}

/* Glass Reflection Overlay for physical feel */
.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Technical Grid Overlay for layering */
.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .map-container {
        aspect-ratio: auto;
        height: 350px;
        background-size: cover;
    }

    .hotspot-popup {
        width: 240px;
        padding: 1rem;
        bottom: 30px;
        border-radius: 15px;
    }

    .hotspot-popup h4 {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .hotspot-popup p {
        font-size: 12px;
        line-height: 1.4;
    }

    .popup-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 0.75rem 0;
    }

    .stat-item .val {
        font-size: 16px;
    }

    .hotspot-label-fixed {
        font-size: 8px;
        padding: 2px 6px;
    }
}

.map-interaction-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    transform-style: preserve-3d;
}

.map-connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.map-path {
    fill: none;
    stroke: #00BCD4;
    stroke-width: 1;
    stroke-dasharray: 4, 3;
    opacity: 0.4;
    stroke-linecap: round;
    animation: path-flow 20s linear infinite;
}

@keyframes path-flow {
    to {
        stroke-dashoffset: -100;
    }
}

.map-hotspot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00BCD4;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(30px);
    /* Float above 3D map */
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.map-hotspot:hover {
    transform: translate(-50%, -50%) translateZ(50px) scale(1.3);
    background: #00E5FF;
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.5);
}

/* Custom HQ Pulse for Brand Power */
.map-hotspot.hq {
    background: #00BCD4 !important;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
    width: 14px;
    height: 14px;
}

.map-hotspot.hq.pulse::after {
    border-color: #00BCD4;
    inset: -8px;
}

@keyframes hotspot-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Popup Card Styling - Marketing Perspective */
.hotspot-popup {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateZ(10px);
    /* Counter-rotate removed */
    background: #ffffff;
    /* Solid white for maximum text clarity */
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow:
            0 30px 60px -12px rgba(0, 0, 0, 0.2),
            0 18px 36px -18px rgba(0, 0, 0, 0.1);
    width: 290px;
    border: 1px solid rgba(0, 188, 212, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;

    /* Anti-blur fixes */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.popup-marketing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #00BCD4;
    /* Brand Teal */
    padding-bottom: 0.5rem;
}

.popup-marketing-header .region-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #1A1A1A;
    text-transform: uppercase;
}

.popup-marketing-header .impact-badge {
    background: #00BCD4;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
}

.popup-industry-note {
    display: block;
    font-size: 0.85rem;
    color: #00BCD4;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.popup-countries-list {
    display: block;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.popup-cta-link {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.3s;
}

.popup-cta-link i {
    color: #00BCD4;
}

.map-hotspot:hover .hotspot-popup,
.map-hotspot.active .hotspot-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateZ(10px);
}

/* Specific Labels that are always visible */
.hotspot-label-fixed {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #00BCD4;
    /* Brand Logo Color */
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Strategic Section Bridge Indicator */
.map-to-cases-bridge {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
    z-index: 20;
}

.bridge-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
}

.bridge-arrow-spine {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, #00BCD4, transparent);
    position: relative;
    overflow: hidden;
}

.bridge-arrow-spine::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: #00BCD4;
    animation: bridge-flow 2s infinite linear;
}

@keyframes bridge-flow {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100px);
    }
}




/* --- Case Pro Cards: Technical Portfolio Aesthetic --- */
.case-pro-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.case-pro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(11, 157, 179, 0.1);
    border-color: rgba(11, 157, 179, 0.3);
}

.case-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.case-pro-tag {
    background: #f8fafc;
    color: var(--sk-secondary-text-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.case-pro-icon {
    width: 48px;
    height: 48px;
    background: rgba(11, 157, 179, 0.08);
    color: var(--kaiwei-brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.case-pro-specs {
    list-style: none;
    padding: 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.case-pro-specs li {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--kaiwei-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* --- Case Marketing Section: Seamless continuation --- */
.case-marketing-section {
    padding: 1rem 0 8rem 0;
    /* Minimized top padding for merged module effect */
    background: #ffffff;
    position: relative;
    z-index: 5;
}

.case-section-title h3 {
    line-height: 1.1;
    letter-spacing: -1px;
}

/* --- Hero Scroll Indicator --- */
.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--kaiwei-dark);
    z-index: 20;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.hero-scroll-down:hover {
    color: var(--kaiwei-brand);
    bottom: 1.5rem;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 15px;
    position: relative;
    opacity: 0.6;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.global-case-section {
    padding-top: 5rem !important;
}

/* --- News Center Section --- */
.news-center-section {
    padding: 5rem 0;
    background: var(--kaiwei-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.news-img-box {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.news-img-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-img-box img {
    transform: scale(1.1);
}

.news-date-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--kaiwei-brand);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
}

.news-body {
    padding: 2rem;
}

/* --- Section Backgrounds (Alternating Logic) --- */
.product-category-section {
    padding: 5rem 0;
    background: var(--kaiwei-light);
    /* Section 2: Gray */
}

.flagship-section {
    padding: 5rem 0;
    background: #ffffff;
    /* Section 3: White */
}

.global-case-section {
    padding: 5rem 0;
    background: var(--kaiwei-light);
    /* Section 5: Gray */
}

.video-section {
    padding: 5rem 0;
    background: #ffffff;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.news-type {
    display: inline-block;
    color: var(--kaiwei-brand);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--kaiwei-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--sk-secondary-text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--kaiwei-dark);
    font-size: 0.85rem;
    transition: gap 0.3s;
}

.news-card:hover .news-more-btn {
    color: var(--kaiwei-brand);
    gap: 0.8rem;
}


/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-box {
    background: #1e293b;
    color: white;
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--kaiwei-brand);
    flex-shrink: 0;
}

.contact-form-box {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* --- Redesigned Footer --- */
/* --- Apple-Style Minimalist Footer --- */
.apple-footer {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 3rem 0;
    /* Reduced top padding for more compact look */
    font-size: 12px;
    line-height: 1.6;
    border-top: 1px solid #d2d2d7;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #d2d2d7;
}

.footer-dir-col {
    display: flex;
    flex-direction: column;
}

.footer-mini-logo {
    width: 60%;
    margin-bottom: 1rem;
    /* filter: brightness(0.2); */
    /* Dark logo on light background */
}

.footer-brief {
    color: #6e6e73;
    max-width: 260px;
    font-size: 11px;
    margin-bottom: 1.5rem;
}

.footer-dir-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1d1d1f;
}

.footer-dir-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-dir-links li {
    margin-bottom: 0.5rem;
}

.footer-dir-links a {
    color: #424245;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-dir-links a:hover {
    color: #000;
    text-decoration: underline;
}

.contact-details {
    font-size: 11px;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8rem;
    color: #424245;
}

.contact-details .label {
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.2rem;
}

.contact-details .text {
    color: #6e6e73;
}

.footer-contact-bar {
    padding: 1.5rem 0;
    color: #6e6e73;
    border-bottom: 1px solid #d2d2d7;
}

.footer-contact-bar span {
    color: var(--kaiwei-brand);
    font-weight: 900;
}

.footer-contact-bar a {
    color: var(--kaiwei-brand);
    text-decoration: none;
}

.footer-contact-bar a:hover {
    color: var(--kaiwei-dark);
}

.footer-legal-bar {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6e6e73;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: #424245;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

.lang-selector {
    cursor: pointer;
    font-weight: 500;
}

.lang-selector:hover {
    color: #1d1d1f;
}

.footer-icp {
    margin-top: 0.5rem;
    color: #86868b;
    font-size: 10px;
}

/* --- Section Spacing (User Requested: 30px) --- */
section {
    margin-top: 12px !important;
    position: relative;
}

/* Ensure the first section (usually hero) doesn't have top margin if it's right under header */
header+main section:first-of-type,
header+section:first-of-type {
    margin-top: 0 !important;
}

@media (max-width: 1024px) {
    .footer-nav-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    .footer-legal-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive */
@media (max-width: 1024px) {

    .video-container,
    .contact-split,
    .footer-top,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .video-thumb-grid {
        flex-direction: row;
        overflow-x: auto;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        gap: 2rem;
    }
}

@media (max-width: 1400px) {
    .app-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .app-item {
        height: 500px;
    }
}

/* --- Responsive Adaptation for App Gallery (Fix) --- */
@media (max-width: 1600px) {
    .app-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 0 4rem;
    }
}

@media (max-width: 1400px) {
    .app-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* --- Image Lightbox --- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2001;
}

.video-lightbox {
    z-index: 99999;
}

.video-lightbox .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    padding: 0;
}

.video-lightbox .lightbox-close-btn {
    top: 1.25rem;
    right: 1.25rem;
    width: auto;
    min-width: 68px;
    height: 44px;
    border-radius: 9999px;
    padding: 0 0.9rem;
    font-size: 1rem;
    gap: 0.3rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.video-close-hint {
    position: absolute;
    top: 1.35rem;
    left: 1.25rem;
    z-index: 2002;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    padding: 0.45rem 0.8rem;
}

/* --- Global Layout Adjustments --- */
.container {
    max-width: 1350px !important;
    /* User Requested Width */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Fix App Gallery Grid Width */
.app-gallery-grid {
    max-width: 1350px;
    padding: 0;
    /* Remove extra padding that caused imbalance */
    margin: 0 auto;
}

/* --- Auto-Scrolling Thumbnails Animation --- */
@keyframes scrollThumbs {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% + 100%));
    }

    /* Logic handled in JS clone or simpler CSS marquee */
}

/* Simpler CSS Marquee for Thumbs (Optional, or rely on JS) */
/* The user asked for "auto scroll", implementing a gentle scroll animation */
.app-desc-hidden:hover .app-case-thumbs {
    /* Pause on hover to allow clicking */
    animation-play-state: paused;
}

/* --- Lightbox Navigation --- */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    z-index: 2002;
}

.lightbox-nav-btn:hover {
    background: var(--kaiwei-brand);
    border-color: var(--kaiwei-brand);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Image Number Counter */
.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    letter-spacing: 1px;
}

.solution-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 24, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.solution-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.solution-modal-overlay.active .solution-modal {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--sk-secondary-text-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--kaiwei-brand);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--kaiwei-dark);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--sk-secondary-text-color);
    font-size: 0.95rem;
}

/* Modal Form */
.modal-form-group {
    margin-bottom: 1.2rem;
}

.modal-form-label {
    display: block;
    font-size: 0.95rem;
    /* Increased visibility */
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-form-input,
.modal-form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.3s;
    background: #f8fafc;
}

.modal-form-input:focus,
.modal-form-textarea:focus {
    outline: none;
    border-color: var(--kaiwei-brand);
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 157, 179, 0.1);
}

.modal-form-textarea {
    resize: none;
    height: 100px;
}

.modal-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--kaiwei-brand);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.modal-submit-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(11, 157, 179, 0.2);
}

/* --- Floating Sidebar (Apple Style) --- */
.floating-sidebar {
    position: fixed;
    right: 2rem;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 1000;
}

.side-item {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    border: none;
    padding: 0;
}

.side-item i {
    font-size: 1.4rem;
}

.side-item:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: var(--kaiwei-brand);
}

.side-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    bottom: -1rem;
    background: white;
    color: #1d1d1f;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateX(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: auto;
    /* Enable interaction */
    width: 250px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Add a bridge to prevent tooltip from disappearing when mouse moves over the gap */
.side-tooltip::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 100%;
}

.side-item:hover .side-tooltip {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

.side-tooltip.simple {
    width: auto;
    padding: 0.6rem 1.2rem;
    background: #1d1d1f;
    color: white;
    border-radius: 0.75rem;
    bottom: 50%;
    transform: translateY(50%) scale(0.9) translateX(10px);
    font-weight: 700;
    font-size: 0.75rem;
    pointer-events: auto;
}

.side-item:hover .side-tooltip.simple {
    transform: translateY(50%) scale(1) translateX(0);
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

@media (max-width: 768px) {
    .floating-sidebar {
        display: none;
    }

    .side-item {
        width: 42px;
        height: 42px;
    }

    .side-tooltip {
        display: none;
    }
}

/* Responsive Custom Service Section */
@media (max-width: 1024px) {
    .custom-service-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .custom-service-section {
        padding: 5rem 0;
    }

    .service-title {
        font-size: 2.5rem;
    }

    .dimensions-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .premium-form-card {
        padding: 2.5rem;
    }

    .custom-service-watermark {
        width: 300px;
        right: -10%;
    }
}

/* Sub-target Bar - Hybrid Morphing Version */
.sub-target-bar {
    position: relative;
    z-index: 90;
    margin-top: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
    /* Initial background */
    border-bottom: 1px solid #f1f5f9;
}

.sub-target-bar .container {
    max-width: fit-content !important;
    background: white;
    padding: 0 40px !important;
    display: flex;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
}

/* Vertical Dock State (Triggered by JS) */
.sub-target-bar.is-sticky {
    position: fixed !important;
    top: 50% !important;
    left: 20px;
    transform: translateY(-50%) scale(0.95);
    z-index: 2000;
    background: transparent !important;
    /* Remove white bar in sticky mode */
    border-bottom: none !important;
    width: auto;
}

.sub-target-bar.is-sticky .container {
    flex-direction: column;
    background: #0B9DB3 !important;
    /* Brand color background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 25px 12px !important;
    min-width: 130px; /* Force consistent width across About & Product pages */
    box-shadow:
            0 20px 40px rgba(11, 157, 179, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: scale(1);
    /* Keep original scale */
}

.sub-target-bar.is-sticky .container>div {
    flex-direction: column;
    height: auto !important;
    gap: 10px !important;
}

.target-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d1d1f;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sub-target-bar.is-sticky .target-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    font-size: 0.85rem;
    /* Revert to original size */
    font-weight: 600;
    justify-content: flex-start;
}

.sub-target-bar.is-sticky .target-link:hover,
.sub-target-bar.is-sticky .target-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.target-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--kaiwei-brand);
    transition: all 0.3s ease;
}

/* Vertical Indicator */
.sub-target-bar.is-sticky .target-link::after {
    left: 0;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 4px;
}

.sub-target-bar.is-sticky .target-link.active::after {
    height: 18px;
    width: 4px;
}

.target-link.active::after {
    width: 40px;
    height: 3px;
}

/* Consultation Special Style in Dock */
.sub-target-bar.is-sticky .target-link[href="#consultation"] {
    background: white;
    /* Contrast button */
    color: var(--kaiwei-brand) !important;
    margin-top: 15px;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 800;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Page scrolling offset - Fixed Header Height */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

/* --- Branded Translucent Marketing Journey --- */
.timeline-section {
    padding: 0;
    background: rgba(11, 157, 179, 0.07);
    /* More prominent transparent brand color */
    position: relative;
    overflow: hidden;
}

.journey-step {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: none;
    /* Removed gaps and dividers */
}

.journey-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.journey-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.1) brightness(1.05);
    transition: transform 12s cubic-bezier(0.1, 0, 0.9, 1);
}

.journey-step:hover .journey-bg img {
    transform: scale(1.2);
}

.journey-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
    rgba(11, 157, 179, 0.98) 0%,
    rgba(11, 157, 179, 0.85) 40%,
    rgba(11, 157, 179, 0.2) 100%);
    z-index: 1;
}

.journey-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 8%;
    /* Increased vertical padding for more breathing room */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.journey-meta {
    position: relative;
    z-index: 5;
}

/* Alternating Layout */
.journey-step:nth-child(even) .journey-container {
    direction: rtl;
    /* Flip grid order */
}

.journey-step:nth-child(even) .journey-container>* {
    direction: ltr;
    /* Reset text direction inside */
}

.journey-step:nth-child(even) .journey-overlay {
    background: linear-gradient(-90deg,
    rgba(11, 157, 179, 0.98) 0%,
    rgba(11, 157, 179, 0.85) 40%,
    rgba(11, 157, 179, 0.2) 100%);
}

.journey-step:nth-child(even) .journey-year {
    transform: translateX(50px) rotateX(10deg) rotateY(15deg);
}

.journey-step:nth-child(even) .journey-glass-card {
    transform: perspective(2000px) rotateY(5deg);
}

.journey-step:nth-child(even):hover .journey-year {
    transform: translateX(30px) rotateX(0) rotateY(0);
}

.journey-step:nth-child(even):hover .journey-glass-card {
    transform: perspective(2000px) rotateY(0deg) scale(1.02);
}

.journey-year {
    font-size: 8rem;
    /* Significantly reduced size */
    font-weight: 1000;
    line-height: 1;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -4px;
    margin-bottom: 5px;
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
    /* Refined Stereoscopic 3D Effect */
    text-shadow:
            1px 1px 0px #cfe2f3,
            2px 2px 0px #abc8e3,
            3px 3px 0px #87add3,
            5px 5px 20px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateX(10deg) rotateY(-15deg);
}

.journey-glass-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3rem;
    padding: 50px;
    /* More compact padding */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transform: perspective(2000px) rotateY(-5deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.journey-step:hover .journey-year {
    transform: translateX(-30px) rotateX(0) rotateY(0);
    text-shadow: 1px 1px 0px #fff, 0 0 40px rgba(255, 255, 255, 0.4);
}

.journey-step:hover .journey-glass-card {
    transform: perspective(2000px) rotateY(0deg) scale(1.02);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 80px 150px rgba(0, 0, 0, 0.6);
}

.journey-title {
    font-size: 2rem;
    /* Reduced big title size */
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.journey-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .journey-container {
        padding: 40px 1.5rem;
    }

    .journey-year {
        font-size: 5rem;
        margin-bottom: 15px;
        opacity: 0.6;
    }

    .journey-glass-card {
        padding: 30px 20px;
        border-radius: 2rem;
    }

    .journey-title {
        font-size: 1.5rem;
    }

    .journey-desc {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .journey-badge {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    .journey-stat {
        gap: 30px;
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
        padding-top: 25px;
    }

    .stat-item .num {
        font-size: 2rem;
    }
}

.journey-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--kaiwei-brand), #06b6d4);
    color: white;
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 20px rgba(var(--kaiwei-brand-rgb), 0.3);
    margin-bottom: 15px;
}

.journey-stat {
    display: flex;
    gap: 50px;
    margin-top: 45px;
    border-top: 2px solid rgba(var(--kaiwei-brand-rgb), 0.08);
    padding-top: 35px;
}

.stat-item .num {
    display: block;
    font-size: 2.6rem;
    font-weight: 1000;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.stat-item .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Vertical Journey Line Refined */
.journey-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
    transparent,
    rgba(var(--kaiwei-brand-rgb), 0.2) 15%,
    rgba(var(--kaiwei-brand-rgb), 0.2) 85%,
    transparent);
    z-index: 5;
}

@media (max-width: 1280px) {
    .journey-container {
        padding: 80px 5%;
        gap: 40px;
    }

    .journey-year {
        font-size: 10rem;
    }
}

@media (max-width: 1024px) {
    .journey-step {
        min-height: auto;
        padding: 50px 0;
    }

    .journey-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .journey-meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .journey-year {
        transform: none;
        margin-bottom: 20px;
    }

    .journey-glass-card {
        transform: none !important;
        padding: 45px 30px;
        border-radius: 3rem;
    }

    .journey-stat {
        justify-content: center;
    }
}

.config-step-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.config-step-indicator.active div {
    border-color: var(--kaiwei-brand);
    color: var(--kaiwei-brand);
    background: white;
    box-shadow: 0 0 20px rgba(11, 157, 179, 0.2);
    transform: scale(1.1);
}

.config-step-indicator.completed div {
    background: var(--kaiwei-brand);
    border-color: var(--kaiwei-brand);
    color: white;
}

.config-step-indicator.completed span {
    color: var(--kaiwei-brand);
}

.config-step-indicator.active span {
    color: var(--kaiwei-dark);
    font-weight: 800;
}

.config-step-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.config-step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.config-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.config-option-btn i {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.config-option-btn span {
    font-weight: 800;
    color: #475569;
}

.config-option-btn:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.config-option-btn.selected {
    background: white;
    border-color: var(--kaiwei-brand);
    box-shadow: 0 15px 35px rgba(11, 157, 179, 0.15);
}

.config-option-btn.selected i {
    color: var(--kaiwei-brand);
    transform: scale(1.1);
}

.config-option-btn.selected span {
    color: var(--kaiwei-brand);
}

.config-option-btn.scale-item {
    padding: 2rem;
    align-items: flex-start;
}

.config-option-btn.scale-item h4 {
    margin: 0;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(-5%);
    }

    50% {
        transform: translateY(0);
    }
}

#config-result.active .animate-bounce {
    animation: bounce-slow 2s infinite;
}

/* ROI Slider Style */
.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    /* slate-200 for visibility on white */
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--kaiwei-brand, #0B9DB3);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11, 157, 179, 0.3);
    /* Softer shadow for light theme */
    transition: all 0.2s;
    border: 3px solid white;
    /* Thicker border for better separation */
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Search Input Refinements */
#global-search-input {
    caret-color: var(--kaiwei-brand, #0B9DB3);
}

#global-search-input::placeholder {
    color: #cbd5e1;
}

/* Custom Scrollbar for Search Overlay */
#search-overlay::-webkit-scrollbar {
    width: 8px;
}

#search-overlay::-webkit-scrollbar-track {
    background: transparent;
}

#search-overlay::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Configurator Progressive & Enhanced Styles */
.config-step-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease-out;
}

.config-step-tag i {
    color: var(--kaiwei-brand);
}

.config-step-tag span {
    color: var(--kaiwei-dark);
}

.config-option-btn {
    position: relative;
    overflow: hidden;
}

.config-option-btn.selected {
    transform: scale(1.02);
    border-color: var(--kaiwei-brand);
    box-shadow: 0 20px 40px rgba(11, 157, 179, 0.2);
}

/* Pulse Loading for Matching */
.matching-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.matching-loader.active {
    display: flex;
}

.pulse-circle {
    width: 80px;
    height: 80px;
    background: var(--kaiwei-brand);
    border-radius: 50%;
    position: relative;
    margin-bottom: 2rem;
}

.pulse-circle::before,
.pulse-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--kaiwei-brand);
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-ring 2s infinite;
}

.pulse-circle::after {
    animation-delay: 1s;
}

/* --- Unified Form Validation UI (Premium System) --- */
.input-group-valid {
    position: relative;
    margin-bottom: 0.5rem;
}

.input-error {
    border-color: #ef4444 !important;
    background-color: transparent !important;
    /* Unified: No more background wash */
    animation: field-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08) !important;
}

.error-msg-hint {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes field-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Branded Toast polished styles */
.kaiwei-toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.kaiwei-toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 280px;
    border: 1px solid #f1f5f9;
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: all;
}

.kaiwei-toast.error {
    border-left: 4px solid #ef4444;
}

.kaiwei-toast.success {
    border-left: 4px solid #10b981;
}

.kaiwei-toast.warning {
    border-left: 4px solid #f59e0b;
}

.kaiwei-toast .toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kaiwei-toast.error .toast-icon {
    background: #fef2f2;
    color: #ef4444;
}

.kaiwei-toast.success .toast-icon {
    background: #ecfdf5;
    color: #10b981;
}

.kaiwei-toast.warning .toast-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.kaiwei-toast span {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

@keyframes toast-in {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* 
 * Responsive Safety & Bug Fixes 
 * Targets: Text overflow, layout shifting, and mobile padding.
 */
* {
    overflow-wrap: break-word; /* 防止长技术词汇溢出容器 */
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1440px; } }

/* Fix for mobile button text overflow */
.btn-primary, .btn-secondary {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

@media (max-width: 640px) {
    .section-py { padding-top: 3rem; padding-bottom: 3rem; }
    h1 { font-size: 1.875rem !important; line-height: 2.25rem !important; }
    h2 { font-size: 1.5rem !important; line-height: 2rem !important; }
}

/* No Result Styles */
.config-no-result {
    display: none;
}

.config-no-result.active {
    display: block;
}

.fallback-badge {
    display: inline-flex;
    padding: 0.5rem 1.5rem;
    background: #fdf2f8;
    color: #db2777;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Layered Conversion Buttons */
.layered-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.btn-light-convert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    border: 1px dashed var(--kaiwei-brand);
    background: rgba(11, 157, 179, 0.05);
    color: var(--kaiwei-brand);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-light-convert:hover {
    background: rgba(11, 157, 179, 0.1);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeY {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-fade-in {
    animation: fadeY 0.4s ease-out forwards;
}

/* Toast Notification */
#config-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: #1d1d1f;
    color: white;
    padding: 1rem 2rem;
    border-radius: 99px;
    z-index: 12000;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#config-toast.active {
    transform: translateX(-50%) translateY(0);
}

.btn-share-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-share-result:hover {
    color: #0B9DB3;
}

/* Global Extensions */
#search-overlay {
    scrollbar-width: none;
}

#search-overlay::-webkit-scrollbar {
    display: none;
}

.search-result-item {
    transition: all 0.4s;
}

.search-result-item:hover {
    transform: translateX(10px);
}

.low-performance * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

#config-progress {
    transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Accessibility: Focus & Contrast */
.config-option-btn:focus,
.config-nav-btn:focus,
.cta-btn:focus,
#global-search-input:focus {
    outline: 3px solid #0B9DB3 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 6px rgba(11, 157, 179, 0.2) !important;
}

@media (prefers-contrast: more) {

    .glass-card,
    .bg-white\/95,
    .bg-white\/80 {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        color: #000000 !important;
    }

    .text-slate-400,
    .text-slate-300 {
        color: #1e293b !important;
        /* Slate 800 for high contrast */
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 3D Interaction Utilities */
.perspective-1000 {
    perspective: 1000px;
}

.will-change-transform {
    will-change: transform;
}

/* Search Highlight */
mark {
    background: rgba(11, 157, 179, 0.15);
    color: #0B9DB3;
    padding: 0 2px;
    border-radius: 2px;
}

/* Social Proof Toast */
.social-proof-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10001;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    max-width: 260px;
}

.social-proof-toast.active {
    transform: translateY(0);
    opacity: 1;
}

/* Logo Marquee */
.logo-marquee-container {
    padding: 4rem 0;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}

.logo-track {
    display: flex;
    width: fit-content;
    animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    width: 180px;
    height: 80px;
    margin: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.3s;
}

.logo-item:hover {
    filter: grayscale(0) opacity(1);
}

/* Conversion Modal (Hesitation) */
.conversion-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s;
}

.conversion-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.conversion-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
}

.conversion-card {
    position: relative;
    max-width: 420px;
    width: 90%;
    background: white;
    border-radius: 3.5rem;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* --- Product Comparison UI --- */
.compare-toggle-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.compare-toggle-btn:hover {
    transform: scale(1.1);
    color: var(--kaiwei-brand);
}

#compare-tray {
    left: 50%;
    transform: translateX(-50%) translateY(32px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#compare-tray.translate-y-0 {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1 !important;
    pointer-events: auto !important;
}

#compare-modal {
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

#compare-modal tr:hover td {
    background-color: #f8fafc;
}

#compare-table-head th {
    vertical-align: top;
}

.compare-toggle-btn i {
    pointer-events: none;
}

/* --- Floating Comparison Sidebar Entrance (Left) --- */
.compare-sidebar-left {
    position: fixed;
    left: 0;
    top: 40%;
    z-index: 4500;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.compare-sidebar-btn {
    background: white;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: none;
    padding: 1.5rem 0.75rem;
    border-radius: 0 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-sidebar-btn:hover {
    padding-right: 1.25rem;
    background: #f8fafc;
}

.compare-sidebar-btn i {
    font-size: 1.5rem;
    color: var(--kaiwei-brand);
}

.compare-sidebar-btn span {
    writing-mode: vertical-rl;
    font-size: 11px;
    font-weight: 900;
    color: #475569;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#compare-count-badge-classic {
    background: white;
    color: var(--kaiwei-brand);
    font-size: 10px;
    font-weight: 900;
    width: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.compare-sidebar-left #compare-count-badge-classic {
    background: var(--kaiwei-brand);
    color: white;
}

/* --- Floating Comparison Badge (Right Sidebar Version) --- */
#compare-sidebar-entrance .ph-scales {
    color: var(--kaiwei-brand);
}

#compare-count-badge {
    pointer-events: none;
}

/* --- Global Network Gateway (Hover-based Gateway) --- */
.network-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 15000;
    background: rgba(29, 29, 31, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    /* Always flex but invisible */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    align-items: center;
    justify-content: center;
}

.network-modal-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.network-container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 6rem 2rem 4rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.network-header {
    text-align: center;
    margin-bottom: 4rem;
}

.network-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 15001;
    transition: all 0.3s;
}

.network-close:hover {
    background: var(--kaiwei-brand);
    border-color: var(--kaiwei-brand);
    transform: rotate(90deg);
}

.network-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.network-tab-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.network-tab-btn:hover,
.network-tab-btn.active {
    background: var(--kaiwei-brand);
    border-color: var(--kaiwei-brand);
    color: white;
}

.network-content-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Custom Scrollbar for Network */
.network-content-area::-webkit-scrollbar {
    width: 4px;
}

.network-content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.continent-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.continent-section.active {
    display: block;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .network-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .network-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1440px) {
    .network-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.network-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.network-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--kaiwei-brand);
    transform: translateY(-5px);
}

.network-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--kaiwei-brand);
    flex-shrink: 0;
}

.network-info {
    display: flex;
    flex-direction: column;
}

.network-name {
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
}

.network-url {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Product List Filter Groups */
.product-filter-group {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-filter-group.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}