/* 
 * Main stylesheet for FREEFLY website
 * Author: Manus AI
 * Date: May 20, 2025
 */

/* Base styles and reset */
:root {
    --primary-color: #00a0e9;
    --secondary-color: #005bac;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}
.banner{display:block;width:100%;margin:0 auto}
.positionn{font-size:19px;color:#404040;padding:20px 0px 10px;    text-transform: uppercase; }
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 140px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header styles */
.header {
 
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
	padding:10px 0px;
 
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
 
}

.logo {

}

.logo img {
   height:85px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-item {
    margin: 0 10px;
    position: relative;
}

.nav-item a {
    display: block;
    padding: 10px 18px;
    font-size: 18px;
    font-weight: 500;
    color: #404040;
 
}
    .device-container { 
            display: flex;
            align-items: center;
            padding: 15px 0;
        }
 .content-wrapper {
            width: 100%;  background-color: #f6f6f6;  overflow: hidden;
        }

        .swiper-container {
            width: 100%;
   height:auot;
            position: relative;
			overflow:hidden;
        }
        
        .swiper-slide {
            width: 100%;
   
        }
        
        .swiper-slide img {
            width: 100%;
     
        }
        
        /* 导航箭头样式 */
        .swiper-button-prev,
        .swiper-button-next {
          
               background: #b2b2b2;
    height: 50px !important;
    width: 50px !important;boradius:0px !important;
            display: flex;
            justify-content: center;
            align-items: center;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
        }
        
        .swiper-button-prev {
            left: 15px;
        }
        
        .swiper-button-next {
            right: 15px;
        }
        
        .swiper-button-prev::after,
        .swiper-button-next::after {
            font-size: 20px;
            font-weight: bold;
        }
        
        /* 分页器样式 */
 .swiper-button-prev::after, .swiper-button-next::after,.swiper-button-next::after{font-size:28px !important;color:#fff !important;}
        .swiper-pagination {
            position: absolute;
            bottom: 20px !important;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            z-index: 10;
        }
        
        .swiper-pagination-bullet {
            width: 14px !important;
            height: 14px !important;
            margin: 0 5px;
            background-color: #c2c2c2 !important;
            border-radius: 50%;
            opacity: 1;
        }
        
        .swiper-pagination-bullet-active {
            border:2px solid #c2c2c2 !important;
        }
        .header2 {
            padding: 18px 0px;
            position: relative;
 
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header2 h1 {
            color: #018bd3;
            font-weight: bold;
            margin: 0;
            letter-spacing: 1px;
            transition: all 0.3s ease;
			font-size:2.8rem;
		  }

        .more-link {
            position: absolute;
            right: 10px;
            top: 55%;
            color: #7b7b7b;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 6px 12px;
            border-radius: 20px;
			font-size:19px
        }

        .more-link:hover {
            color: #0099ff;
            background-color: rgba(0, 153, 255, 0.1);
            transform: translateY(-2px);
        }

        .products-container {
            display: flex;
  
            transition: all 0.5s ease;
            gap: 12px;
        }

        .product {
            flex: 1;
            padding: 18px;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            background-color: white;
            position: relative;
            display: flex;
            flex-direction: column;
 
 
            overflow: hidden;
            cursor: pointer;
            transform: translateY(0);
        }

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

        .product.active {
            flex: 2;
            display: flex;
            flex-direction: row;
        }

        .product-content {
            display: flex;
            flex-direction: column;
            z-index: 2;
        }

        .product.active .product-content {
            flex: 1;
            padding-right: 15px;
        }

        .product-image-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-top: 12px;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .product.active .product-image-container {
            margin-top: 0;
            flex: 1;
        }

        .product-title {
            color: #005580;
            margin-bottom: 8px; 
            font-size: 30px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .product.active .product-title {
		font-weight:500;
            font-size: 30px;
            color: #004466;
        }

        .product-description {
            color: #7b7b7b;
            margin-bottom: 12px; 
            font-size: 23px;
            line-height: 1.4;
            transition: all 0.3s ease;
        }

        .product.active .product-description {
            color: #7b7b7b;
        }

        .product-image {
            width: 100%;
            height: auto;
            max-height: 200px;
            object-fit: contain;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform: scale(0.9);
        }

        .product.active .product-image {
            transform: scale(1.6);
        }

        .more-button {
            opacity: 0;
            visibility: hidden;
            background-color: #004466;
            color: white;
            padding: 8px 25px;
            text-decoration: none;
            margin-top: 12px;
            transition: all 0.4s ease;
            border: none;
            font-weight: 500;
            text-align: center;
            border-radius: 25px;
            width: fit-content;
            transform: translateY(10px);
            font-size: 0.9rem;
        }

        .product.active .more-button {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .more-button:hover {
            background-color: #003355;
            color: white;
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .device-container {
                padding: 10px 0;
            }
            
            .content-wrapper {
                width: 95%;
                border-radius: 8px;
            }
            
            .header {
                padding: 15px;
            }
            
            .header h1 {
                font-size: 1.5rem;
            }
            
            .products-container {
                flex-direction: column;
                padding: 12px;
                gap: 15px;
            }
            
            .product {
                padding: 15px;
                flex-direction: row;
                align-items: center;
                min-height: 110px;
                transition: all 0.3s ease;
            }
            
            .product-content {
                flex: 2;
                padding-right: 12px;
            }
            
            .product-image-container {
                flex: 1;
                margin-top: 0;
                justify-content: flex-end;
            }
            
            .product-image {
                max-height: 200px;
                max-width: 100%;
            }
            
            .product-title {
                font-size: 30px;
				font-weight:500;
                margin-bottom: 6px;
            }
            
            .product-description {
                font-size: 0.8rem;
                margin-bottom: 8px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            
            .more-button {
                padding: 6px 18px;
                font-size: 0.8rem;
                margin-top: 8px;
                opacity: 0;
                visibility: hidden;
            }
            
            /* Special active state for mobile */
            .product.active-mobile {
       
                border: 1px solid rgba(0, 153, 255, 0.2);
                transform: scale(1.02);
            }
            
            .product.active-mobile .more-button {
                opacity: 1;
                visibility: visible;
                animation: fadeInButton 0.4s forwards;
            }
            
            @keyframes fadeInButton {
                from {
                    opacity: 0;
                    transform: translateY(10px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            /* Expand the description when card is active */
            .product.active-mobile .product-description {
                -webkit-line-clamp: 3;
            }
        }
@media screen and (min-width:1680px) and (max-width:1800px){
	 .container{padding: 0 30px;}	 
}
@media screen and (min-width:1458px) and (max-width:1679px){
	 .container{padding: 0 20px;}	
.nav-item a {padding: 10px 12px; font-size: 16px;}	 
 
}
@media screen and (min-width:1200px) and (max-width:1457px){
	 .container{padding: 0 15px;}	
.nav-item a {padding: 10px 5px; font-size: 15px;}	
.nav-item {margin: 0 8px;} 
.logo img {height:75px;}
}
@media screen and (min-width:900px) and (max-width:1199px){
	 .container{padding: 0 10px;}	
.nav-item a {padding: 10px 5px; font-size: 14px;}	
.nav-item {margin: 0 4px;} 
.logo img {height:40px;}
}
.nav-item.active a,
.nav-item a:hover {
    color: #0d4870;
}
.nav-item:hover .nav-item::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #0d4870;
}
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #0d4870;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-gray);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero/Carousel styles */
.hero {
 
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: var(--light-gray);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-color);
    width: 100%;
}

.carousel-content h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
}

/* Product section styles */
.product-section {
    padding: 50px 0;
    background:url(../images/cpbg.jpg);
	    background-size: cover;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
	line-height: 2.8rem;
	font-weight:700; 
    color:#018bd3;
	padding-bottom:20px;
    margin-bottom:60px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
     transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #fff;
}
.section-title2 {
    text-align: left;
    font-size: 2.8rem;
	line-height: 2.8rem;
	font-weight:700; 
    color:#018bd3;
    margin-bottom:40px;
	padding-bottom:25px;
    position: relative;
    text-transform: uppercase;
}
.section-title2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
 
    width: 50px;
    height: 2px;
    background-color: #0d4870;
}
.section-title3 {
    text-align: center;
    font-size: 2.8rem;
	line-height: 2.8rem;
	font-weight:700; 
    color:#018bd3;
	padding-bottom:25px;
    margin-bottom:60px;
    position: relative;
    text-transform: uppercase;
}
.section-title3::after {
    content: '';
    position: absolute;
    bottom: -10px; 
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #0d4870;
}

.product-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 10px 15px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 30px;
}
.product-grida {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 30px;
}
.product-item {
    border: 1px solid #c2c2c2;
    overflow: hidden;
    transition: var(--transition);
}

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

.product-item img {
    width: 100%;
 
    border: 2px solid #cacaca;
}
}

.product-item:hover img {
    transform: scale(1.05);
}

.product-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.page-dot.active {
    background-color: var(--primary-color);
}
.pagess{display:flex;    margin: 50px auto 10px;    align-items: center; justify-content: center;}
.pagess ul,.pagess li{list-style-type:none}
.pagess li a{margin-right:10px;color:#0d4870;font-size:16px;border:2px solid #0d4870;padding:11px 15px}
.pagess .active a{color:#fff;background:#0d4870}
.pagess li a:hover{color:#fff;background:#0d4870}
		.dituma{background:#f2f2f2;padding-top:20px;}
			.ditumb{width:100%;display:flex}
			.ditumb p{width:25%;    color:#333;text-align:center;    flex-direction: column;line-height:24px;padding:0px 8px;padding-bottom:18px;}
			.ditumb p img{display:block;margin:0 auto 5px }
			@media screen and (min-width:320px) and (max-width:640px){
			.contact-content{width: 100% !important;} 
			.dtflex {  flex-direction: column;}
			.ditumb { flex-wrap: wrap;}
			.ditumb  p{width:50%;  word-wrap: break-word;}
			.news-date {
    min-width: 50px;
    text-align: center;
    padding-right: 10px;
    border-right: 1px solid #fff;
    margin-right: 4px;
    padding-left: 1px;
}.news-title { font-size: 1.5rem;}
 .news-item {flex-direction: column; }
 .news-date{border-right:0px;font-size: 2rem;}
	.news-more .btn { 
    max-width: 200px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    display: block;
    margin: 20px auto 0px;
}
			}
/* Responsive styles */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 920px) {
	.logo img { height:60px; }

	.container{padding:0px 15px}
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        height: 100vh;
      
        flex-direction: column;
        padding-top: 80px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        left: 0;
		z-index:999;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-item a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-item.active::after {
        display: none;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    
    .divppa {
    color: #7b7b7b;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;padding-left:0px;}
    
    .carousel-content h1 {
        font-size: 1.5rem;
    }

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

    .category-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}
