/* Custom Styles for Stiot Website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html, body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    max-width: 100%;
}

/* Hero Section Animation */
.hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Hover Effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Navbar Transition */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    z-index: 20 !important;
    width: 44px !important;
    height: 44px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: bold !important;
}

.swiper-button-next {
    right: 20px !important;
}

.swiper-button-prev {
    left: 20px !important;
}

/* Ensure Swiper container has proper z-index */
.swiper.mySwiper {
    z-index: 1 !important;
}

/* 荣誉轮播 - 自定义平滑无缝轮播 */
.honor-section {
    overflow-x: hidden !important;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
}

.honor-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 80px 0;
    overflow-x: hidden;
    overflow-y: visible;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.honor-carousel-track {
    display: flex;
    gap: 20px;
    animation: honorScroll 8s linear infinite;
    will-change: transform;
}

.honor-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes honorScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 相框样式 */
.honor-frame {
    flex-shrink: 0;
    width: 200px;
    height: 280px;
    padding: 12px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 8px solid #d4a574;
    border-radius: 4px;
    box-shadow: 
        inset 0 0 0 2px #c9a068,
        inset 0 0 0 4px #e8d5b7,
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, z-index 0s;
    cursor: pointer;
    z-index: 1;
}

.honor-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    pointer-events: none;
}

.honor-frame:hover {
    transform: scale(1.15) translateY(-10px);
    z-index: 999;
    box-shadow: 
        inset 0 0 0 2px #c9a068,
        inset 0 0 0 4px #e8d5b7,
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.15);
}

.honor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 8px;
}

.honor-frame:hover .honor-image {
    transform: scale(1.05);
}