/* Global Styles */
:root {
    --primary-red: #FF1717;
    --text-gray: #666666;
    --text-dark: #000000;
    --bg-light: #EBEBEB;
    --separator: #8080808c;
    --button-gray: #E6E6E6;
}
body {
    font-family: 'Inter', sans-serif;
    /*overflow-x: hidden;*/
    margin: 0;
    padding: 0;
    max-width: 1920px;
    margin: 0 auto;
}
.middle{
    padding-top: 5%;
}
/* Header */
.fixed-top{
    display: block;
}
.mob-header{
    display: none;
}
.navbar {
    position: relative;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: 96px;
    padding: 0 !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
    padding-left: 46px;
}

.navbar-logo img{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.navbar-menu {
    position: static;
    display: flex;
    align-items: center;
}
.navbar-item {
    margin: 0 auto;
    flex-flow: nowrap;
}

.nav-link {
    position: relative;
    font-size: 14px;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 400;
}
/* Show mega menu on hover */
.nav-items:hover .mega-menu {
    display: block;
}
/* Navbar item hover effect */
/*.nav-items {
    position: relative;
}*/
.nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FF1717;
    transition: width 0.3s ease;
}
.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}
.nav-link.active,
.nav-link:hover {
    color: #FF1717 !important;
}
.nav-icons {
    /*padding-right: 46px;*/
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
}

.nav-icons a {
    margin: 0 15px;
}

/* Search Container Styles */
.search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
    vertical-align: middle;
}

.search-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 2px;
}

.search-icon:hover {
    transform: scale(1.1);
}

.search-icon img {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    display: block;
}

.search-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #FF1717;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    width: 300px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    flex: 1;
    padding: 0 10px;
    font-family: 'Inter', sans-serif;
}

.search-box input::placeholder {
    color: #999;
    font-size: 14px;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-btn img {
    width: 16px;
    height: 16px;
}



/*user option*/
.user-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    /*margin: 0 15px;*/
    vertical-align: middle;
}
.user-container a{
    text-decoration: none;
    width: 100%;
    display: block;
    text-align: center;
}

.user-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.user-icon:hover {
    transform: scale(1.1);
}
.user-icon a{
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 5% 22%;
}
.user-icon .userLogin{
    border: none;
}

.user-icon img {
    width: 20px;
    height: 25px;
    transition: all 0.3s ease;
    max-width: none;
    display: block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.user-option:last-child {
    border-bottom: none;
}

.user-option:hover {
    background: #f8f9fa;
}

/* Language Switcher Styles */
.language-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    /*margin: 0 15px;*/
    vertical-align: middle;
}

.language-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 2px;
}

.language-icon:hover {
    transform: scale(1.1);
}

.language-icon img {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    display: block;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
}

.language-option.active {
    background: #FF1717;
    color: #fff;
}

.language-flag {
    font-size: 12px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.language-option.active .language-name {
    color: #fff;
}

.language-option:hover .language-name {
    color: #FF1717;
}

.language-option.active:hover .language-name {
    color: #fff;
}



/* Hero Section */
.hero {
    position: relative;
    /*height: 90vh;*/
    /*min-height: 640px;*/
    /*overflow: hidden;*/
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* 默认显示桌面图片 */
.desktop-img {
    display: block;
    z-index: 1;
}

.mobile-img {
    display: none;
    z-index: 1;
}




/* Swiper Pagination - 保持原有样式 */
.hero-swiper .swiper-pagination {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 3 !important;
    width: auto !important;
    margin: 0 !important;
}

.hero-swiper .swiper-pagination-bullet {
    width: 20px !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff !important;
    width: 30px !important;
}

/* Swiper Navigation - 保持原有样式 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    background: transparent !important;
    color: #BDBDBD !important;
    font-size: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
    margin: 0 !important;
}

.hero-swiper .swiper-button-prev {
    left: 30px !important;
}

.hero-swiper .swiper-button-next {
    right: 30px !important;
}

.hero-swiper .swiper-button-next::before,
.hero-swiper .swiper-button-prev::before {
    content: '' !important;
    width: 16px !important;
    height: 16px !important;
    border: 3px solid #BDBDBD !important;
    border-radius: 2px !important;
    transform: rotate(45deg) !important;
    transition: all 0.3s ease !important;
}

.hero-swiper .swiper-button-prev::before {
    border-right: none !important;
    border-top: none !important;
}

.hero-swiper .swiper-button-next::before {
    border-left: none !important;
    border-bottom: none !important;
}

.hero-swiper .swiper-button-next:hover::before,
.hero-swiper .swiper-button-prev:hover::before {
    border-color: #999999 !important;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    display: none !important;
}


/* What's New Section */
.whats-new {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.product-carousel {
    padding: 60px 0 !important;
    position: relative;
    overflow: hidden;
}

.product-carousel .swiper-wrapper {
    display: flex;
    align-items: center;
    transition-timing-function: ease-out;
}

.product-carousel .swiper-slide {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 20%; /* Force width for 5 slides */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 40px; /* Space for product name */
    position: relative;
}

.product-carousel .swiper-slide .product-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 500;
    color: #333;
    opacity: 0;
    margin-top: 15px;
    visibility: hidden;
}

.product-carousel .swiper-slide-active .product-name,
.product-carousel .swiper-slide:hover .product-name {
    opacity: 1;
    visibility: visible;
}

.product-carousel .swiper-slide img {
    width: 100%;
    max-width: 220px;
    height: auto;
    transition: all 0.3s ease;
    opacity: 0.4;
    transform: scale(0.8);
    pointer-events: none; /* Prevent image dragging */
}

.product-carousel .swiper-slide-active img {
    opacity: 1;
    transform: scale(1.2);
}

.product-carousel .swiper-slide-prev img,
.product-carousel .swiper-slide-next img {
    opacity: 0.7;
    transform: scale(0.9);
}

.product-carousel .swiper-button-next,
.product-carousel .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #333;
}

.product-carousel .swiper-button-next:after,
.product-carousel .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.product-carousel .swiper-button-next:hover,
.product-carousel .swiper-button-prev:hover {
    background: #f8f8f8;
}

.product-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.product-indicators .indicator {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-indicators .indicator.active {
    width: 30px;
    background: rgba(0, 0, 0, 0.5);
}

/* Solutions Grid */
.solutions-grid-demo {
    padding: 40px 0;
    overflow: hidden;
}

.solutions-layout {
    display: flex;
    gap: 30px;
    height: 456px;
    max-width: 1400px;
    margin: 0 auto;
}

.solutions-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.solution-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
}

.solution-card.full-height {
    height: 100%;
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.card-overlay {
    position: absolute;
    inset: 0;
    /*background: rgba(255, 255, 255, 0.4);*/
    background: rgba(84, 84, 84, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transition: background 0.3s ease;
    padding: 30px;
    z-index: 1;
}

.card-overlay h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: left;
}

.solution-card:hover .card-overlay {
    background: transparent;
}



/* Design Project Section */
.design-project {
    padding: 5% 0;
}

.design-project-content {
    max-width: 1200px;
    margin: 0 auto;
    /*display: flex;*/
    align-items: center;
    /*gap: 80px;*/
    justify-content: space-between;
}

.design-project-image {
    /*flex: 0 0 50%;*/
}

.design-project-image img {
    width: 100%;
    height: auto;
}

.design-project-text {
    /*flex: 0 0 50%;
    padding-right: 40px;*/
}

.design-project h2 {
    color: var(--primary-red);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

.design-project p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-create {
    background-color: var(--button-gray);
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-create:hover {
    background-color: #d9d9d9;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--bg-light);
    padding: 80px 0 40px;
}

.footer-content {
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
}

.footer-logo {
    display: block;
    max-width: 100%;
    margin: 25% auto;
}
.change-logo {
    display: block;
    max-width: 100%;
    margin: 20% auto;
}

footer h4 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 400;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 15px;
}

footer ul li a {
    color: var(--text-gray);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-icons img {
    width: 35px;
    height: 35px;
    transition: opacity 0.3s ease;
}

.social-icons img:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
}

.footer-bottom p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    margin: 0;
}



/* Mega Menu */
.mega-menu {
    display: block;
    position: absolute;
    top: 100%;
    /*left: 15%; */
    /*width: 64vw;*/
    max-width: 1440px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
     transform: scaleY(0); 
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease; 
    visibility: hidden;
    /*transform: translate3d(-15%, 0, 0);*/
}

.mega-menu-content {
    display: flex;
    margin: 0 auto;
    min-height: 400px;
    /*cursor: pointer;*/
}

.product-lines {
    position: relative;
    background: #eee;
    cursor: pointer;
}
.product-line img {
    display: block;
    /* padding: 20px; */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-line {
    position: relative;
    z-index: 1;
    background: transparent;
    transition: color 0.2s;
    padding: 5% 15%;
}
.product-line.active {
    color: #FF1717;
    font-weight: bold;
    padding: 4% 10%;
    background: #fff;
}

.product-categories {
    width: 227px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 100;
}

.product-categories .category {
    padding: 8px 0;
    color: #000;
    cursor: pointer;
    transition: color 0.3s ease;
    width: fit-content;
    max-width: 100%;
}

.product-categories .category:not(.active) {
    color: rgba(27, 31, 38, 0.72);
}

.product-categories .category:hover,
.product-categories .category.active {
    color: #FF1717;
}

.product-items {
    width: 226px;
    background: #fff;
    /* box-shadow: 4px 0 8px rgba(0, 0, 0, 0.25); */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 100;
}

.product-items .item {
    padding: 8px 0;
    color: #000;
    cursor: pointer;
    transition: color 0.3s ease;
    width: fit-content;
    max-width: 100%;
}
.product-items .item a{
    display: block;
    max-width: 100%;
}
.product-items .item a:not(.active) {
    color: #7E7E7E;
}
.product-items .item a:hover,
.product-items .item.active a{
    color: #FF1717;
    text-decoration: none;
}

.product-preview {
    /*flex: 1;*/
    background: #EBEBEB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-width: 510px;
}

.product-preview img {
    max-width: 280px;
    /*max-height: 300px;*/
    object-fit: contain;
}

/* Solutions Menu */
.solutions-menu {
    display: block;
    position: absolute;
    top: 100%;
    /*left: 20%;*/
    width: 59vw;
    max-width: 1120px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    visibility: hidden;
    border-radius: 0 0 12px 12px;
}

.solutions-menu-content {
    display: flex;
    margin: 0 auto;
    min-height: 311px;
}

.solutions-categories {
    padding: 30px;
    display: inline-flex
}

.solutions-preview {
    /*flex: 1;*/
    padding: 0;
    display: flex;
    background: #EBEBEB;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.solutions-preview img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Support Menu */
.support-menu {
    display: block;
    position: absolute;
    top: 100%;
    /*left: 20%;*/
    width: 53vw;
    max-width: 1010px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    visibility: hidden;
    border-radius: 0 0 12px 12px;
}

.support-menu-content {
    display: flex;
    margin: 0 auto;
    min-height: 249px;
    padding: 30px;
    background: #EBEBEB;
    border-radius: 0 0 12px 12px;
}

/* Partner Menu */
.partner-menu {
    display: block;
    position: absolute;
    top: 100%;
    /*left: 20%;*/
    width: 47vw;
    max-width: 825px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    visibility: hidden;
    border-radius: 0 0 12px 12px;
}

.partner-menu-content {
    display: flex;
    margin: 0 auto;
    min-height: 249px;
    padding: 30px;
    background: #EBEBEB;
    border-radius: 0 0 12px 12px;
}

/* About Menu */
.about-menu {
    display: block;
    position: absolute;
    top: 100%;
    /*left: 20%;*/
    width: 51vw;
    max-width: 980px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    visibility: hidden;
    border-radius: 0 0 12px 12px;
}

.about-menu-content {
    display: flex;
    margin: 0 auto;
    min-height: 249px;
    padding: 30px;
    background: #EBEBEB;
    border-radius: 0 0 12px 12px;
}

/* Common menu styles */
.menu-category {
    margin-bottom: 30px;
    /* padding-right: 20%; */
    width: 50%;
}

.menu-category-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    font-size: 16px;
}

.menu-item {
    color: rgba(27, 31, 38, 0.72);
    font-size: 16px;
    line-height: 1.84;
    cursor: default;
    transition: color 0.3s ease;
}
.nav-items a{
    color: rgba(27, 31, 38, 0.72);
}
.nav-items a:hover{
    color: #FF1717;
    text-decoration: none;
}
.menu-text {
    cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
    color: #FF1717;
}

.solutions-menu .active a{
    color: #FF1717;
}

.menu-item.highlight {
    color: #FF1717;
}

/* Menu display is now controlled by JavaScript */

/* Show active menu */
.mega-menu.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}
.solutions-menu.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}
.support-menu.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}
.partner-menu.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}
.about-menu.active {
    transform: translate3d(-31%, 0, 0) scaleY(1);
    opacity: 1;
    visibility: visible;
}

/* Active nav link state */
.nav-link.menu-active {
    color: #FF1717 !important;
}

.nav-link.menu-active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #FF1717;
}

/* Mobile Menu Sidebar */
.mobile-menu{
    display: none;
}
.mobile-menu-sidebar {
    width: 100%;
    max-width: 100%;
    /*transform: translateY(-100%);*/
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.mobile-menu-sidebar.active {
  border-bottom: 1px solid #e0e0e0; /* 修正原代码多余的 # */
  border-radius: 0 0 15px 15px; /* 你想要的圆角 */
  /*transform: translateY(0);*/
}

/* Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.mobile-menu-logo {
    display: flex;
    flex-direction: column;
}

.mobile-menu-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon-mobile {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-icon-mobile img {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.close-btn-mobile {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn-mobile img {
    width: 20px;
    height: 20px;
    max-width: none;
}

/* Footer */
.mobile-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}



/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(17.5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(17.5px);
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25);
    width: 480px;
    max-width: 90vw;
    padding: 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.login-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:focus{
    outline:unset;
}
/*#loginCloseBtn:foucs {
    outline:unset;
}*/

.login-header {
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header p {
    font-size: 15px;
    color: #000;
    margin: 0;
}

.login-form {
    text-align: center;
}

.login-instruction {
    font-size: 16px;
    color: #000;
    margin: 0 0 20px 0;
}

.input-group {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: center;
}

.input-group input {
    width: 288px;
    height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 16px;
    color: #000;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.input-group input::placeholder {
    color: #d9d9d9;
}

.input-group input:focus {
    outline: none;
    border-color: #FF1717;
    box-shadow: 0 0 0 2px rgba(255, 23, 23, 0.2);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
}

.btn-login, .btn-register {
    width: 180px;
    height: 56px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-login {
    background: #e6e6e6;
    color: #000;
}

.btn-login:hover {
    background: #d9d9d9;
    transform: translateY(-1px);
}

.btn-register {
    background: #e6e6e6;
    color: #000;
    height: 42px;
}

.btn-register:hover {
    background: #d9d9d9;
    transform: translateY(-1px);
}

/* Modal Animation */
.login-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.active {
    opacity: 1;
}

.login-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal.active .login-modal-content {
    transform: scale(1);
}

/* Password Modal Styles */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(17.5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.password-modal.active {
    display: flex;
}

.password-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(17.5px);
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25);
    width: 480px;
    max-width: 90vw;
    padding: 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.password-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/*.password-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}*/

.password-header {
    margin-bottom: 40px;
}

.password-header h2 {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.password-header p {
    font-size: 15px;
    color: #000;
    margin: 0;
}

.password-form {
    text-align: center;
}

.password-instruction {
    font-size: 16px;
    color: #000;
    margin: 0 0 20px 0;
}

.password-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-password-login {
    width: 180px;
    height: 56px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #e6e6e6;
    color: #000;
}

.btn-password-login:hover {
    background: #d9d9d9;
    transform: translateY(-1px);
}

.forgot-password {
    text-align: center;
}

.forgot-password-link {
    background: none;
    border: none;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.forgot-password-link:hover {
    color: #FF1717;
}

/* Password Modal Animation */
.password-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-modal.active {
    opacity: 1;
}

.password-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.password-modal.active .password-modal-content {
    transform: scale(1);
}

/* Reset Password Modal Styles */
.reset-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(17.5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.reset-password-modal.active {
    display: flex;
}

.reset-password-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(17.5px);
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.25);
    width: 480px;
    max-width: 90vw;
    padding: 40px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.reset-password-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/*.reset-password-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}*/

.reset-password-header {
    margin-bottom: 40px;
}

.reset-password-header h2 {
    font-size: 42px;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.reset-password-form {
    text-align: center;
}

.reset-password-description {
    font-size: 16px;
    color: #000;
    margin: 0 0 30px 0;
    line-height: 1.5;
    text-align: justify;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.reset-password-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-reset-password {
    width: 180px;
    height: 56px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #e6e6e6;
    color: #000;
}

.btn-reset-password:hover {
    background: #d9d9d9;
    transform: translateY(-1px);
}

/* Reset Password Modal Animation */
.reset-password-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-password-modal.active {
    opacity: 1;
}

.reset-password-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.reset-password-modal.active .reset-password-modal-content {
    transform: scale(1);
}





/* 移动端适配 */
/* Responsive Adjustments */
@media (min-width: 1200px) {
    .solutions-grid .container {
        max-width: 80%;
    }
}
@media (max-width: 1440px) {
    .mega-menu{
        width: 74vw;
    }
    .solutions-menu{
        width: 66vw;
    }
    .solutions-grid .container {
        max-width: 100%;
    }
    .product-preview{
        min-width: unset;
    }
}
@media (max-width: 1200px) {
    /*.solutions-grid .container {
        max-width: 80%;
    }*/
    .mega-menu{
        width: 75vw;
    }
    .solutions-menu{
        width: 68vw;
    }
    .support-menu{
        width: 61vw;
    }
    .support-menu-content .menu-category:first-child{
        width: 35%;
    }
    .navbar-logo{
        padding-left: 15px;
    }
    .navbar-menu{
        padding: 0;
    }
    .nav-link{
        padding: 0.5rem 1rem !important;
    }
    .card-overlay h3{
        font-size: 1.3rem;
    }
}

@media (max-width: 1000px) {
    .product-preview{
        flex: unset;
    }
    .product-preview img {
        max-width: 100%;
    }
    .solutions-menu{
        width: 62vw;
    }
    .solutions-categories {
        flex: 0 0 60%;
        max-width: 60%;
    }
    .solutions-preview {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .nav-link{
        padding: 0.5rem 0.4rem !important;
        white-space: nowrap;
    }
    .nav-icons{
        justify-content: space-between;
    }
    .user-icon a{
        padding: 5% 22%;
    }
    .search-box.active {
        width: 250px;
    }
    .card-overlay h3{
        font-size: 1.1rem;
    }
}
/* Responsive adjustments for login modal */
@media (max-width: 768px) {
    .middle{
        padding-top: 0;
    }
    .menu-category-title{margin-bottom: 0;padding-top: 3%;}
    .login-modal-content, .password-modal-content, .reset-password-modal-content {
        width: 90vw;
        padding: 30px 20px;
    }
    .login-header h2, .password-header h2, .reset-password-header h2 {
        font-size: 32px;
    }
    .btn-login, .btn-register, .btn-password-login, .btn-reset-password {
        width: 100%;
        max-width: 200px;
    }
    .reset-password-description {
        text-align: left;
        max-width: 100%;
    }
    .fixed-top{
        position: unset;
        display: none;
    }
    .mob-header{
        display: block;
    }
    .navbar-logo{
        padding: 0; margin: 0; max-width: 100px;
    }
    .navbar-logo img{
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
    .nav-icons img{
        margin: 2% auto;
        display: block;
    }
    .nav-icons a{
        margin: 0;
    }
    .user-container{
        border-right: 2px solid #e6e6e6;
    }
    .language-icon, .user-icon{
        margin: 0 auto;
    }
    /*.solution-card {
        height: 150px;
    }*/

    /* menu search box */
    .search-box.active {
        width: 200px;
        right: -10px;
    }
    .search-box input {
        font-size: 12px;
    }
    .search-box input::placeholder {
        font-size: 12px;
    }

    /*language icon*/
    .language-option {
        padding: 10px 12px;
    }
    
    .language-name {
        font-size: 13px;
    }
    
    .language-flag {
        font-size: 16px;
        margin-right: 10px;
        width: 20px;
    }

    /*index banner*/
    .hero-swiper .swiper-slide {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }
    /* 隐藏移动端分页指示器 */
    .hero-swiper .swiper-pagination {
        display: none !important;
    }

    /*index what news*/
    .product-carousel {
        padding: 40px 0 !important;
    }
    .product-carousel .swiper-slide {
        width: 20%; /* 5 slides */
    }
    .product-carousel .swiper-slide img {
        max-width: 150px;
    }
    
    .product-carousel .swiper-slide-active img {
        transform: scale(1.1);
    }

    /* solutions div */
    .solutions-layout {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .solutions-column {
        width: 100%;
        gap: 20px;
    }

    .solution-card {
        width: 100%;
        height: 180px;
        flex: none;
    }

    .solution-card.full-height {
        height: 180px;
    }

    .card-overlay {
        padding: 20px;
    }

    .card-overlay h3 {
        font-size: 24px;
    }


    /* index design your project */
    .design-project h2{
        font-size: 2rem;
        margin: 10% 0;
    }
    .design-project p{
        margin-bottom: 1rem;
    }
    .design-project-image img{
        display: block;
        max-width: 60%;
        margin: 0 auto;
    }

    /* change PC image to moblie image */
    .desktop-img {
        display: none !important;
    }
    
    .mobile-img {
        display: block !important;
        z-index: 2 !important;
    }

    /*footer*/
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }
    .footer-column {
        width: 100%;
        align-items: flex-start;
        margin-bottom: 20px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .product-carousel .swiper-slide {
        width: 33.333%; /* 3 slides */
    }
}

@media (max-width: 480px) {
    .product-carousel .swiper-slide {
        width: 100%; /* 1 slide */
    }
    .product-carousel {
        padding: 10px 30px !important;
    }
    .product-carousel .swiper-slide-active {
        transform: scale(1.1);
    }

    /* index design your project */
    .design-project h2{
        font-size: 1.5rem;
    }
    .design-project p{
        margin-bottom: 1rem;
    }
} 
/*@media (max-width: 479px) {

}*/

