﻿/* 鍏ㄥ眬涓庨噸缃?*/
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', 'Arial', 'Microsoft YaHei', sans-serif;
    background-color: #f0f4f8;
    background-image: url('../bg-texture.png');
    background-repeat: repeat;
    background-attachment: fixed;
    color: #000;
}

/* 娣诲姞寰鐨勭汗鐞嗚儗鏅?- 宸叉暣鍚堝埌 body background-image */
body::before {
    display: none;
}

body>* {
    position: relative;
    z-index: 2;
}

/* ... (鐪佺暐涓棿鏈慨鏀逛唬鐮? ... */

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
    color: #000;
}

.xiaoma-title {
    font-size: 5rem !important;
    /* 鍔犲ぇ涓€鍊?*/
    font-weight: 800;
    margin-bottom: 15px !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #4a90e2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ... (鐪佺暐涓棿鏈慨鏀逛唬鐮? ... */

.product-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 480px;
    /* 澧炲姞 20% (鍘?400px) */
}

/* ... (鐪佺暐涓棿鏈慨鏀逛唬鐮? ... */

.section-footer {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('down.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.section-footer .footer-content {
    color: #fff;
}

.section-footer .footer-content p {
    color: rgba(255, 255, 255, 0.9);
}

.section-footer footer p {
    color: rgba(255, 255, 255, 0.6);
}

body>* {
    position: relative;
    z-index: 2;
}

/* 褰撲笉鏄痜ullpage鏃讹紝鍏佽婊氬姩 */
body:not(.fp-enabled) {
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 澶撮儴瀵艰埅鏍?*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0);
}

header.header-scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 首页特殊处理：去除下滑时的背景 */
body.home-page header.header-scrolled {
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    letter-spacing: 2px;
    z-index: 101;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    padding: 0 !important;
    line-height: 1;
}

.logo img {
    height: 54px;
    width: auto;
    display: block;
    vertical-align: middle;
}

.logo::before {
    display: none !important;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    z-index: 101;
    align-items: center;
}

/* 娣诲姞 nav-menu 鏍峰紡,涓?nav-links 鐩稿悓 */
.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    z-index: 101;
    align-items: center;
}

.nav-links>li:first-child {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-left: 0;
}

.nav-menu>li:first-child {
    margin-right: 20px;
    display: flex;
    align-items: center;
    margin-left: 0;
}

.nav-links>li:first-child .logo {
    margin: 0;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.nav-menu>li:first-child .logo {
    margin: 0;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.nav-links>li:first-child>.logo {
    padding: 0 !important;
}

.nav-menu>li:first-child>.logo {
    padding: 0 !important;
}

.nav-links>li {
    margin-left: 8px;
    position: relative;
}

.nav-menu>li {
    margin-left: 8px;
    position: relative;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 24px;
    display: block;
    border-radius: 8px;
    position: relative;
}

.nav-menu a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 12px 24px;
    display: block;
    border-radius: 8px;
    position: relative;
}

.nav-links .logo {
    padding: 0 !important;
    border-radius: 0;
}

.nav-menu .logo {
    padding: 0 !important;
    border-radius: 0;
}

.nav-links>li>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-menu>li>a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-links>li>a:hover::before,
.nav-links>li.has-megamenu:hover>a::before {
    opacity: 1;
    transform: scale(1);
}

.nav-menu>li>a:hover::before,
.nav-menu>li.has-mega-menu:hover>a::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links>li>a:hover {
    color: #fff;
}

.nav-menu>li>a:hover {
    color: #fff;
}

.header-scrolled .logo {
    color: #000;
}

.header-scrolled .nav-links a {
    color: #000;
}

.header-scrolled .nav-menu a {
    color: #000;
}

.header-scrolled .nav-links>li>a:hover {
    color: #fff;
}

.header-scrolled .nav-menu>li>a:hover {
    color: #fff;
}

/* Mega Menu */
.nav-item.has-megamenu {
    position: static;
}

.has-mega-menu {
    position: static;
}

.mega-menu {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #4a90e2;
    color: #000;
}

/* 鍒涘缓瀵艰埅鏍忓拰鑿滃崟涔嬮棿鐨勪笉鍙妗ユ帴鍖哄煙 */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: transparent;
}

.has-megamenu:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* 涓存椂绂佹 hover 鏄剧ず mega menu */
.nav-item.suppress-hover .mega-menu,
.has-megamenu.suppress-hover .mega-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 浜у搧涓績 Mega Menu */
.product-mega-menu .mega-menu-content {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
}

.menu-categories {
    border-right: 2px solid #e8ecf1;
    padding-right: 40px;
}

.menu-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-categories li {
    margin-bottom: 4px;
}

.menu-categories li a {
    display: block;
    padding: 15px 20px;
    color: #000 !important;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.menu-categories li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-categories li:hover a,
.menu-categories li.active a {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    color: #000;
    padding-left: 28px;
}

.menu-categories li:hover a::before,
.menu-categories li.active a::before {
    height: 100%;
}

.menu-product-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-content: start;
}

.menu-product-grid {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-product-grid.is-active {
    display: grid;
}

.menu-product-item {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.menu-product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.2);
}

.menu-product-item img {
    width: 100%;
    max-width: 220px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.menu-product-item span {
    font-weight: 600;
    display: block;
    font-size: 14px;
    color: #000;
}

/* 绠€鍗曟í鍚?Mega Menu锛堝叾浠栧鑸」锛?/
.simple-mega-menu .mega-menu-content {
    padding: 35px 0;
}

.simple-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.simple-menu-list li {
    display: inline-block;
}

.simple-menu-list li a {
    display: block;
    padding: 12px 32px;
    color: #000;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.simple-menu-list li a:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

/* fullPage.js 鍖哄煙 (Section) 鏍峰紡 */
.fp-enabled body,
.fp-enabled html {
    overflow: hidden;
}

.section {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-hero {
    color: #fff;
}

.section-intro,
.section-products {
    background: rgba(255, 255, 255, 0.6);
    /* 璁╄儗鏅汗鐞嗛€忓嚭鏉?*/
}

.section-features {
    background: rgba(245, 247, 250, 0.6);
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    filter: brightness(0.7);
}

.animated-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.animated-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
}

.intro-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
    color: #000;
}

.section-title.left-aligned {
    text-align: left;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon img {
    height: 50px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 15px;
}

.product-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 400px;
}

.product-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-preview-card:hover .card-overlay {
    opacity: 1;
}

.product-preview-card:hover img {
    transform: scale(1.1);
}

.card-overlay h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-content {
    color: #333;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.footer-content footer p {
    margin-top: 60px;
    font-size: 0.9rem;
    color: #888;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a5f94 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-view {
    padding: 10px 25px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: #fff;
    color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

#fp-nav ul li a span {
    background: #fff !important;
    border: 1px solid #2c3e50;
}

#fp-nav ul li a.active span {
    background: #4a90e2 !important;
    border-color: #4a90e2 !important;
}

/* Swiper Slider Section */
.section-slider {
    background-color: #000;
}

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

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.8) !important;
    opacity: 0.6 !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
    opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

/* =================================== */
/*          SUBPAGE STYLES             */
/* =================================== */
.subpage-main {
    background: transparent;
}

.page-hero {
    position: relative;
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.7) 0%, rgba(74, 144, 226, 0.5) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-hero h1 {
    font-size: 4.5rem;
    color: #fff;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.5rem;
    color: #f0f7ff;
}

.content-section {
    padding: 100px 0;
}

.bg-light {
    background: rgba(245, 247, 250, 0.6);
}

/* New Product Showcase Section */
#product-showcase-section {
    background: rgba(245, 247, 250, 0.6);
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.showcase-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.12);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}

.showcase-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.08);
}

.showcase-content {
    padding: 30px;
    text-align: left;
}

.showcase-content h3 {
    font-size: 1.6rem;
    color: #000;
    margin-top: 0;
    margin-bottom: 15px;
}

.showcase-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* New Cases Page V2 */
#case-studies-v2 {
    padding: 0;
}

/* Cases Page Redesign */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.case-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.case-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-image::after {
    opacity: 1;
}

.case-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-content h3 {
    font-size: 1.4rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: 700;
}

.case-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.case-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.case-tag {
    background: #e6f2ff;
    color: #4a90e2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.case-card:hover .case-tag {
    background: #4a90e2;
    color: white;
}

/* New News Page */
#news-grid-section {
    background: transparent;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.news-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}

.news-card-image {
    display: block;
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover .news-card-image {
    transform: scale(1.08);
}

.news-card-content {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    font-size: 0.8rem;
    color: #4a90e2;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card-title a {
    font-size: 1.3rem;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #4a90e2;
}

.news-card-excerpt {
    color: #555;
    line-height: 1.7;
    margin-top: 15px;
    flex-grow: 1;
}

/* New About Page V2 */
.about-v2-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-v2-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-v2-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4a90e2;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: #555;
}

#company-gallery {
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.15);
    transition: transform 0.3s ease;
}

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

/* Contact Page */
/* Contact Page Redesign */
.contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
    border-color: #4a90e2;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-card i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 25px;
    display: inline-block;
}

/* About Page - Corporate Culture Section */
.corporate-culture-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.4);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.culture-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid #4a90e2;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-card h3 {
    font-size: 1.3rem;
    color: #e67e22;
    margin-bottom: 15px;
}

.culture-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.culture-card .en-text {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #4a90e2;
}

.subpage-footer {
    padding: 40px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-top: 1px solid #dee2e6;
    color: #888;
}

/* =================================== */
/*     PRODUCTS PAGE NEW LAYOUT        */
/* =================================== */

/* Products Hero Section */
.products-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(74, 144, 226, 0.7) 100%);
}

.products-hero h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.products-hero p {
    font-size: 1.3rem;
    color: #f0f7ff;
}

/* Breadcrumb Section */
.breadcrumb-section {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e8ecf1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #357abd;
    text-decoration: underline;
}

.breadcrumb span {
    color: #888;
}

/* Products Content Section */
.products-content-section {
    padding: 60px 0 80px;
}

/* Products Layout - Two Column */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Products Sidebar */
.products-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.5rem;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #4a90e2;
}

.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-categories li {
    margin-bottom: 8px;
}

.product-categories li a {
    display: block;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.product-categories li a:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    color: #4a90e2;
    padding-left: 20px;
}

.product-categories li.active a {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    font-weight: 600;
}

/* Sidebar Featured Product */
.sidebar-featured {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-product {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.featured-product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-category {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.featured-content h4 {
    font-size: 1.1rem;
    color: #000;
    margin: 0 0 10px 0;
}

.featured-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #4a90e2;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.view-more {
    display: block;
    text-align: center;
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-more:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #357abd;
}

/* Products Main Content */
.products-main {
    min-height: 600px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.2);
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, #e6f2ff 0%, #d4e8ff 100%);
    color: #357abd;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}

.product-title {
    font-size: 1.2rem;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: #357abd;
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.page-link.active {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.page-link.next {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-sidebar {
        position: relative;
        top: 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-hero h1 {
        font-size: 2.5rem;
    }

    .products-hero p {
        font-size: 1.1rem;
    }
}


/* =================================== */
/*     PRODUCTS PAGE V2 LAYOUT         */
/* =================================== */

.container-fluid {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section V2 */
.products-hero-v2 {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.products-hero-v2::before {
    display: none;
}

.hero-overlay-v2 {
    position: relative;
    z-index: 2;
    padding-left: 5%;
}

.hero-text-v2 h1 {
    font-size: 4rem;
    color: #fff;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-text-v2 p {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

/* Tabs and Breadcrumb Bar */
.tabs-breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.tabs-breadcrumb-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-tabs {
    display: flex;
    gap: 5px;
}

.tab-item {
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item.active {
    color: #4a90e2;
    border-bottom: 3px solid #4a90e2;
}

.tab-item:hover {
    color: #4a90e2;
}

.breadcrumb-v2 {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-v2 a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-v2 a:hover {
    color: #4a90e2;
}

.breadcrumb-v2 span {
    color: #333;
}

/* fullPage.js Products Page Styles */
#fullpage-products {
    width: 100%;
}

#fullpage-products .section {
    width: 100%;
    height: 100vh;
}

.section-products-hero {
    background-size: cover;
    background-position: center;
}

.section-products-video {
    background: #000;
    position: relative;
    overflow: hidden;
}

.section-products-list {
    background: transparent;
    min-height: 100vh;
    display: block;
    /* 绉婚櫎 flex 浠ュ厤骞叉壈鍐呴儴婊氬姩瀹瑰櫒鐨勫畾浣?*/
}

.fp-enabled .section-products-list {
    height: auto;
}

/* Video Background Section */
.video-background-section {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#products-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    object-fit: cover;
}

.video-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.video-title-overlay h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* Products Grid Section */
.section-products-list {
    background: transparent;
    min-height: 100vh;
    display: block;
    position: relative;
}

.section-products-list .container-fluid {
    height: 100vh;
    overflow-y: scroll;
    padding: 140px 0 60px 0 !important;
    box-sizing: border-box;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    scrollbar-width: thin;
    scrollbar-color: #4a90e2 #f0f0f0;
}

/* Chrome/Safari 鏄剧ず骞剁編鍖栨粴鍔ㄦ潯 */
.section-products-list .container-fluid::-webkit-scrollbar {
    width: 10px;
    /* 澧炲姞婊氬姩鏉″搴?*/
}

.section-products-list .container-fluid::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* 杞ㄩ亾鑳屾櫙鑹?*/
    border-radius: 0;
    /* 绉婚櫎鍦嗚 */
}

.section-products-list .container-fluid::-webkit-scrollbar-thumb {
    background: #4a90e2;
    /* 婊戝潡棰滆壊 */
    border-radius: 0;
    /* 绉婚櫎鍦嗚 */
}

.section-products-list .container-fluid::-webkit-scrollbar-thumb:hover {
    background: #357abd;
    /* 婊戝潡鎮仠棰滆壊 */
}

.products-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding: 0 20px;
    /* 鍑忓皯宸﹀彸鍐呰竟璺?*/
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* 瀹藉害鑷€傚簲 */
}

/* Product Card V2 */
.product-card-v2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: none;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card-v2:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) !important;
}

.product-image-v2 {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f8f8;
}

.product-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card-v2:hover .product-image-v2 img {
    transform: scale(1.08);
}

.product-content-v2 {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
}

.product-name {
    font-size: 1.15rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.product-card-v2:hover .product-name {
    color: #4a90e2;
}

/* Pagination V2 */
.pagination-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 15px 60px 15px;
}

.page-number,
.page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.page-number.active {
    background: #4a90e2;
    color: #fff;
}

.page-number:hover,
.page-arrow:hover {
    background: #4a90e2;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .tabs-breadcrumb-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .products-grid-v2 {
        grid-template-columns: 1fr;
    }

    .hero-text-v2 h1 {
        font-size: 2.5rem;
    }

    .hero-text-v2 p {
        font-size: 1.1rem;
    }

    .video-background-section {
        height: 588px;
    }

    .products-hero-v2 {
        height: 470px;
    }

    .video-title-overlay {
        bottom: 30px;
    }

    .video-title-overlay h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

/* Ensure background texture is visible on all pages */
body {
    background-image: url('../bg-texture.png') !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
}

/* Make sure main wrappers are transparent */
.subpage-main,
.content-section,
.products-main {
    background-color: transparent !important;
}

/* Ensure cards have semi-transparent background */
.news-card,
.product-card,
.case-card-v2,
.contact-form-container,
.about-content,
.about-v2-text,
.about-v2-stats,
.contact-card {
    background: rgba(255, 255, 255, 0.95);
}


/* Contact Page Redesign */
.hotline-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 40px;
    color: white;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(118, 75, 162, 0.3);
    position: relative;
    overflow: hidden;
}

.hotline-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hotline-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hotline-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hotline-text h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.hotline-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1;
    letter-spacing: 2px;
}

.hotline-sub {
    display: flex;
    gap: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hotline-sub span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-top-color: #667eea;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #f0f4f8;
    color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: #667eea;
    color: white;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.company-name {
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.address,
.contact-person {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .hotline-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hotline-sub {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hotline-number {
        font-size: 2.5rem;
    }
}

/* Navigation Color Overrides */
header.nav-yellow .nav-links a,
header.nav-yellow .nav-menu a,
header.nav-yellow .logo {
    color: #f1c40f !important;
    /* Yellow */
}

header.nav-white .nav-links a,
header.nav-white .nav-menu a,
header.nav-white .logo {
    color: #ffffff !important;
    /* White */
}


/* Subpage Header - Independent from background */
header.subpage-header {
    position: relative !important;
    background-color: #000;
    /* Dark blue background */
    box-shadow: none;
}

header.subpage-header .nav-links a,
header.subpage-header .nav-menu a,
header.subpage-header .logo {
    color: #fff !important;
}

/* Mobile Optimization */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links>li {
        width: 100%;
        margin: 0;
        margin-bottom: 10px;
    }

    .nav-links>li:first-child {
        display: none;
        /* Hide logo in mobile menu as it's already in header */
    }

    .nav-links a {
        color: #333;
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background-color: #f5f7fa;
        color: #4a90e2;
    }

    /* Fix for subpage header links color on mobile */
    header.subpage-header .nav-links a {
        color: #333 !important;
    }

    /* Mobile Mega Menu */
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent !important;
        backdrop-filter: none;
        border-top: none;
        padding: 0;
        display: none;
        /* Hidden by default, toggled via JS */
        width: 100%;
    }

    .mega-menu.mobile-visible {
        display: block;
    }

    .mega-menu::before {
        display: none;
    }

    .product-mega-menu .mega-menu-content {
        padding: 10px 0;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-categories {
        border-right: none;
        padding-right: 0;
    }

    .menu-categories li a {
        padding: 10px 15px;
        font-size: 14px;
        background: #f8f9fa;
        margin-bottom: 5px;
    }

    .menu-product-display {
        display: none;
        /* Simplify mobile view */
    }

    /* Header adjustments */
    .logo img {
        height: 40px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .feature-item {
        padding: 20px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .feature-item h3 {
        font-size: 1.3rem;
    }

    .feature-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .product-preview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .product-preview-card {
        height: 350px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        background: #fff;
    }

    .product-preview-card img {
        object-fit: contain;
        padding: 15px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .container {
        padding: 0 15px;
    }

    .xiaoma-title {
        font-size: 2.5rem !important;
        margin-bottom: 20px !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
        padding: 0 10px;
    }

    /* Footer */
    .footer-content h2 {
        font-size: 1.8rem;
    }

    /* Subpage Styles */
    .page-hero h1 {
        font-size: 2.5rem;
    }

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

    .products-sidebar {
        display: none;
        /* Or move to bottom/accordion */
    }

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

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .about-v2-grid {
        grid-template-columns: 1fr;
    }

    .products-grid-v2 {
        grid-template-columns: 1fr;
    }

    .hero-text-v2 h1 {
        font-size: 2.5rem;
    }

    .product-image-v2 {
        height: 250px;
        background: #fff;
    }

    .product-image-v2 img {
        object-fit: contain;
        padding: 15px;
    }
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Ensure header background on mobile when scrolled or menu open */
header.mobile-nav-active {
    background: #fff !important;
}

header.mobile-nav-active .logo {
    color: #000 !important;
}

header.mobile-nav-active .mobile-menu-btn span {
    background-color: #000;
}

/* Fix for mobile menu visibility and homepage scroll background */
@media (max-width: 992px) {
    .nav-links a {
        color: #333 !important;
    }

    .nav-links a:hover {
        color: #4a90e2 !important;
    }
}

/* Restore header background on scroll for homepage (overriding previous rule) */
body.home-page header.header-scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}