* { box-sizing: border-box; margin: 0; padding: 0; letter-spacing: normal !important; }
body { background: #f8fafc; color: #0f172a; font-family: 'Inter', sans-serif; overflow-x: hidden; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #02a2e3; border-radius: 4px; }

.dropdown-menu { opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.group:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

@font-face {font-family: "Inter"; src: url("../font/Inter-VariableFont_opsz,wght.ttf") format("woff2");}
@font-face{
  font-family:"Barlow";
  src:url("../font/Barlow-Bold.woff2") format("woff2"),
  url("../font/Barlow-Bold.woff") format("woff"),
  url("../font/Barlow-Bold.ttf") format("truetype"),
  url("../font/Barlow-Bold.eot") format("embedded-opentype"),
  url("../font/Barlow-Bold.svg") format("svg");
  font-style: normal;
}

/* Mobile nav slide */
#mobileNav { transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
#mobileNav.open { transform: translateX(0); }
#mobileOverlay { opacity: 0; visibility: hidden; transition: all 0.35s ease; }
#mobileOverlay.open { opacity: 1; visibility: visible; }


/* 自定义 Swiper 容器样式，允许两侧滑出的卡片和圆角完美展现 */
   #stories .swiper {
            width: 100%;
            padding-top: 50px;
            padding-bottom: 50px;
            overflow: visible !important; /* 关键：允许溢出以完整展示圆角和透视效果 */
        }
        #stories .swiper-wrapper {
            box-sizing: border-box;
        }
        #stories .swiper-slide {
            background-position: center;
            background-size: cover;
            width: 70%;
            max-width: 900px;
            /* 自适应高度或由图片比例撑开，不限制死高度 */
            height: auto;
            overflow: hidden;
            /* 平滑过渡效果 */
            transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        }
        @media (min-width: 768px) {
            #stories .swiper-slide {
                width: 60%;
            }
        }
        /* 自定义分页器圆点样式 */
        #stories .swiper-pagination-bullet {
            background: rgba(255, 255, 255, 0.4);
            opacity: 1;
            transition: all 0.3s ease;
            width: 10px;
            height: 10px;
            border-radius: 9999px;
        }
        #stories .swiper-pagination-bullet-active {
            width: 24px;
            background: #ffffff;
        }


/* Back to top */
#backToTop { opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; }
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Product card hidden state for filtering */
.product-card.hidden-card { display: none; }

.storySwiper .swiper-slide {
    transition: all 0.5s ease;
    opacity: 0.6;
    transform: scale(0.82);
}
.storySwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1) !important;
    z-index: 30;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}
.storySwiper .swiper-slide-prev,
.storySwiper .swiper-slide-next { z-index: 10; }

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.animate-marquee { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }
.partner-logo { opacity: 0.9; transition: all 0.3s ease; }
.partner-logo:hover { opacity: 1; transform: scale(1.05); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 视频弹窗 (全局) ===== */
.video-modal {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.video-modal.active {
    visibility: visible; opacity: 1;
}
.video-modal .video-container {
    position: relative;
    width: 100%; max-width: 960px;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
}
.video-modal .video-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}
.video-modal .close-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.video-modal .close-btn:hover {
    background: #02a2e3;
    border-color: #02a2e3;
}
@media (max-width: 640px) {
    .video-modal .close-btn { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 16px; }
    .video-modal .video-container { border-radius: 16px; }
}

.leading-snug { line-height: 1.55!important; }
.from-slate-950 {background:linear-gradient(rgb(7 15 50 / 50%),rgba(7 15 50 / 30%)) }
.about_section {position: relative; z-index: 1; overflow: hidden;}
.about_section::before {content: ""; position: absolute; inset: 0; background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,255,255,.63)) ; z-index: -1;}

#stories .swiper-slide { transition: all 0.5s ease; opacity: 0.6; transform: scale(0.92)!important;border-radius: 1.5rem; }
#stories .swiper-slide.swiper-slide-next {transform: translate3d(-445px, 0px, -450px) rotateX(0deg) rotateY(-15deg) scale(.9)!important;}
#stories .swiper-slide.swiper-slide-prev {transform: translate3d(445px, 0px, -450px) rotateX(0deg) rotateY(-15deg) scale(.9)!important;}
#stories .swiper-slide-active { opacity: 1; transform: scale(1.1) !important; z-index: 30;border-radius: 1.5rem; }
.play-circle {display: flex; align-items: center; justify-content: center; width:8rem;height: 8rem;border-radius: 50%; background: linear-gradient(135deg, #02a2e3, #0284c7); color: white; font-size: 1.5rem; cursor: pointer; transition: all 0.3s ease;position: relative;}
.play-circle::before {content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(2,162,227,0.3);  animation: ripple-multi 2.5s infinite linear;z-index: -1;}
.play-circle::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(2,162,227,0.4);
  border-radius: 50%;
  z-index: -1;
  animation: ripple-multi 2.5s infinite linear;
  animation-delay: 1.25s; /* 延迟一半的时间，形成交错效果 */
}
@keyframes ripple-multi {
        0% {
            box-shadow: 
                0 0 0 0 rgba(0, 136, 204, 0.4),
                0 0 0 15px rgba(0, 136, 204, 0.1); /* 保留底色 */
        }
        100% {
            box-shadow: 
                0 0 0 80px rgba(0, 136, 204, 0),
                0 0 0 15px rgba(0, 136, 204, 0.1);
        }
    }

.about_section {position: relative;}
.about_section .us_tps {position: absolute; bottom: -9%; left: 50%; transform: translate(-50%, 0); font-size: 14rem; font-weight: bold; color: #02a2e3; z-index: 0; pointer-events: none; user-select: none;font-family:"Barlow";}

.consumables_right {padding-left: 5rem;}
