/* ========================================
   Foreign Trade Responsive Template Styles
   Version: 1.0.0
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: #007bff;
}

.btn-white:hover {
    background-color: #f8f9fa;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header Styles - Mechanical Industry Theme */
.site-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.logo-main {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 11px;
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Navigation - Mechanical Theme */
.main-nav {
    flex: 1;
    margin: 0 40px;
}

/* ========================================
   Navigation Menu - Complete Rewrite
   ======================================== */

.nav-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown Arrow - Desktop hidden, Mobile visible */
.dropdown-arrow {
    display: none;
}

/* Desktop Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    position: relative;
}

.dropdown-item > a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dropdown-item > a:hover,
.dropdown-item.active > a {
    background-color: #f5f5f5;
    color: #ff6b35;
}

/* Level 2 Menu (Third Level) */
.dropdown-menu.level-2 {
    left: 100%;
    top: 0;
    margin-left: 5px;
}

/* Desktop Styles */
@media (min-width: 993px) {
    .dropdown-arrow {
        display: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, #1a237e 0%, #0d47a1 50%, #1565c0 100%); /* Industrial blue gradient */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    /* Mobile Nav Close Button */
    .mobile-nav-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 10000;
        backdrop-filter: blur(5px);
    }
    
    .mobile-nav-close:hover {
        background: #ff6b35; /* Orange on hover */
        border-color: #ff6b35;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    }
}

/* Hide mobile nav close button on desktop */
@media (min-width: 993px) {
    .mobile-nav-close {
        display: none !important;
    }
}

/* Mobile Navigation Styles - Continue */
@media (max-width: 992px) {
    .nav-item > a {
        padding: 15px 20px;
        padding-right: 45px; /* Make room for arrow */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Subtle white separator */
        color: rgba(255, 255, 255, 0.95); /* Bright white text */
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .nav-item > a:hover,
    .nav-item.active > a {
        background: linear-gradient(90deg, rgba(255, 107, 53, 0.15) 0%, transparent 100%); /* Orange accent on left */
        color: #ffffff;
        border-left: 3px solid #ff6b35; /* Orange indicator */
    }
    
    /* Mobile Arrow - Fixed at right edge */
    .dropdown-arrow {
        display: flex !important;
        position: absolute !important;
        right: 15px !important;
        top: 15px !important; /* Fixed top position to align with link text */
        transform: none !important; /* Remove translateY(-50%) */
        width: 30px;
        height: 30px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: rgba(255, 255, 255, 0.9); /* White arrow for dark background */
        font-size: 14px;
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Ensure arrow is not affected by dropdown menu */
        pointer-events: auto !important;
    }
    
    .dropdown-arrow i {
        transition: transform 0.3s ease;
        display: block;
    }
    
    /* First level menu arrow rotation */
    .nav-item.menu-open > .dropdown-arrow i {
        transform: rotate(180deg);
    }
    
    /* Second level menu arrow rotation */
    .dropdown-item.menu-open > .dropdown-arrow i {
        transform: rotate(90deg);
    }
    
    /* Level 2 dropdown arrow - ensure it's positioned correctly */
    .dropdown-menu .dropdown-arrow {
        position: absolute !important;
        right: 15px !important;
        top: 12px !important; /* Align with level-2 link text */
        transform: none !important; /* Remove translateY(-50%) */
        width: 30px !important;
        height: 30px !important;
        align-items: center !important;
        justify-content: center !important;
        color: rgba(255, 255, 255, 0.9); /* White arrow for dark background */
        z-index: 1000 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.2); /* Dark overlay for dropdown */
    }
    
    .dropdown-item {
        position: relative;
    }
    
    .dropdown-item > a {
        padding: 12px 30px;
        padding-right: 45px; /* Make room for arrow */
        color: rgba(255, 255, 255, 0.85); /* Slightly dimmer white text */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 15px;
    }
    
    .dropdown-item > a:hover,
    .dropdown-item.active > a {
        background: linear-gradient(90deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%); /* Orange accent on left */
        color: #ffffff;
        border-left: 3px solid #ff6b35; /* Orange indicator */
    }
    
    .dropdown-menu.level-2 {
        left: 0;
        margin-left: 0;
        background: rgba(0, 0, 0, 0.3); /* Even darker for level-2 */
    }
    
    .dropdown-menu.level-2 .dropdown-item > a {
        padding-left: 50px;
    }
}

/* Add underline effect on hover */
.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ff6b35;
    transition: width 0.3s ease;
}

.nav-item > a:hover::after,
.nav-item.active > a::after {
    width: 60%;
}

.nav-item > a:hover,
.nav-item.active > a {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Sub Menu - Wide Dropdown with Harmonious Colors */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-width: 250px;
    max-width: 350px;
    width: auto;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
    border-top: 3px solid #ff6b35;
}

/* Wide dropdown for long menu items */
.sub-menu.wide-dropdown {
    min-width: 300px;
    max-width: 450px;
}

.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    border-left: 3px solid transparent;
}

.sub-menu li a:hover,
.sub-menu li.active a {
    background: linear-gradient(90deg, rgba(30, 60, 114, 0.1) 0%, rgba(30, 60, 114, 0.02) 100%);
    color: #1e3c72;
    padding-left: 25px;
    border-left-color: #ff6b35;
}

/* Header Contact Icons */
.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-icon:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Icon */
.whatsapp-icon:hover {
    background-color: #25D366;
    color: #fff;
}

/* WeChat Icon */
.wechat-icon:hover {
    background-color: #07C160;
    color: #fff;
}

/* WeChat QR Code Popup - Hidden by default */
.wechat-qrcode {
    position: absolute;
    top: 58px;
    right: 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 230px;
    pointer-events: none;
}

/* Show QR code only on hover */
.wechat-icon:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Remove .show class usage - use hover only */
.wechat-qrcode.show {
    opacity: 0;
    visibility: hidden;
}

/* QR Code Content Styles */
.qrcode-container {
    text-align: center;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    border-radius: 5px;
    margin-bottom: 12px;
    border: 2px solid #f0f0f0;
    display: block;
}

.qrcode-tip {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.qrcode-number {
    font-size: 14px;
    color: #1e3c72;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Header Actions - Removed for showcase website */
/* Search and Login styles removed as this is a display-only website */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background-color: #ff6b35;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
}

/* Hero Banner */
.hero-banner {
    /* 默认渐变背景（当图片加载失败时显示） */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* 背景图片设置 - 使用picsum.photos作为占位图 */
    background-image: url('https://picsum.photos/1920/800?random=factory-pc');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

/* 背景遮罩层，确保文字清晰可读 */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* Features Section */
.features-section {
    padding: 50px 0;
    background-color: #fff;
}

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

.feature-item {
    text-align: center;
    padding: 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Feature Image - Full width rectangle */
.feature-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Content area below image */
.feature-item h3 {
    font-size: 22px;
    margin: 20px 0 10px;
    color: #333;
    padding: 0 20px;
}

.feature-item p {
    color: #666;
    line-height: 1.8;
    padding: 0 20px 25px;
    margin: 0;
}

/* Products Section */
.products-section {
    padding: 50px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.product-image {
    height: 250px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.product-info h3 a {
    color: #333;
}

.product-info h3 a:hover {
    color: #007bff;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-view {
    color: #007bff;
    font-weight: 500;
}

.btn-view:hover {
    color: #0056b3;
}

/* About Section */
.about-section {
    padding: 50px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

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

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333;
}

.about-list i {
    color: #28a745;
    font-size: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.faq-header {
    text-align: center;
    margin-bottom: 30px;
}

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

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
}

.faq-question h3 {
    font-size: 16px;
    color: #1e3c72;
    margin: 0;
    font-weight: 600;
    flex: 1;
    padding-right: 15px;
}

.faq-question i {
    color: #ff6b35;
    font-size: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px;
    font-size: 14px;
}

.faq-link {
    display: inline-block;
    color: #ff6b35;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-link:hover {
    color: #1e3c72;
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* News Section */
.news-section {
    padding: 50px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
}

.news-date .month {
    font-size: 14px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-content h3 a {
    color: #333;
}

.news-content h3 a:hover {
    color: #007bff;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    font-weight: 500;
}

.read-more:hover {
    color: #0056b3;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #007bff;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* Category & List Page */
.category-page,
.list-page {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    color: #666;
}

.sub-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.sub-cat-item {
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.sub-cat-item:hover,
.sub-cat-item.active {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.item-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.item-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.item-info h2 a {
    color: #333;
}

.item-info h2 a:hover {
    color: #007bff;
}

.item-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: #999;
    font-size: 14px;
}

.item-meta i {
    margin-right: 5px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f8f9fa;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 12px;
}

.item-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-read-more {
    color: #007bff;
    font-weight: 500;
}

.btn-read-more:hover {
    color: #0056b3;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.grid-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.item-image {
    height: 200px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover .item-image img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #999;
}

.item-content {
    padding: 20px;
}

.item-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.item-content h3 a {
    color: #333;
}

.item-content h3 a:hover {
    color: #007bff;
}

.item-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-footer .date {
    color: #999;
    font-size: 14px;
}

.btn-detail {
    padding: 6px 15px;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
}

.btn-detail:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Content Detail Page */
.content-detail {
    padding: 40px 0;
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.article-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta i {
    margin-right: 5px;
}

.article-thumb {
    margin-bottom: 30px;
}

.article-thumb img {
    width: 100%;
    border-radius: 10px;
}

.article-body {
    line-height: 1.8;
    color: #333;
}

.article-body img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 5px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 25px 0 15px;
    color: #333;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body ul,
.article-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.related-list li {
    margin-bottom: 15px;
}

.related-list a {
    display: flex;
    gap: 10px;
    align-items: center;
}

.related-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.related-list span {
    color: #333;
    font-size: 14px;
}

.related-list a:hover span {
    color: #007bff;
}

.contact-widget p {
    color: #666;
    margin-bottom: 15px;
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.nav-prev,
.nav-next {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-prev:hover:not(.disabled),
.nav-next:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.nav-prev span,
.nav-next span {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 8px;
}

.nav-prev span i,
.nav-next span i {
    margin-right: 5px;
}

.nav-next span i {
    margin-left: 5px;
    margin-right: 0;
}

.nav-prev a,
.nav-next a {
    color: #333;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-prev a:hover,
.nav-next a:hover {
    color: #007bff;
}

/* Disabled state */
.nav-prev.disabled,
.nav-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-prev.disabled .no-link,
.nav-next.disabled .no-link {
    color: #ccc;
    font-style: italic;
    display: block;
}

/* ========================================
   Product Detail Page Styles
   ======================================== */

.product-detail {
    padding: 40px 0;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-bottom: 50px;
}

/* Product Gallery */
.product-gallery {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gallery-main {
    position: relative;
    background-color: #f8f9fa;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.thumb-scroll-btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thumb-scroll-btn:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.thumbnails-container {
    flex: 1;
    overflow: hidden;
}

.thumbnails-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
}

.thumbnails-list::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnails-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnails-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Counter */
.image-counter {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* Product Info */
.product-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
    flex-wrap: wrap;
}

.product-meta i {
    margin-right: 5px;
}

.product-description h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-description p {
    color: #666;
    line-height: 1.8;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

/* Quick Contact */
.quick-contact {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.quick-contact h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.contact-methods {
    display: flex;
    gap: 10px;
}

.contact-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-method:hover {
    background-color: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.contact-method.whatsapp {
    background-color: #25d366;
    color: #fff;
}

.contact-method.whatsapp:hover {
    background-color: #128c7e;
}

/* Product Details Section */
.product-details-section {
    margin-top: 50px;
}

.detail-tabs {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    background-color: #f8f9fa;
}

.tab-nav li {
    padding: 15px 30px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-nav li:hover {
    color: #007bff;
    background-color: #fff;
}

.tab-nav li.active {
    color: #007bff;
    background-color: #fff;
    border-bottom-color: #007bff;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-body {
    line-height: 1.8;
    color: #333;
}

.content-body img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 5px;
}

/* Images Grid in Tab */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.image-grid-item {
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.image-grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Related Products */
.related-products {
    margin-top: 50px;
}

.related-products h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Product Navigation */
.product-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: #007bff;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav.prev {
    left: -70px;
}

.lightbox-nav.next {
    right: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
}

/* Single Page */
.single-page {
    padding: 40px 0;
}

.page-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.page-body {
    line-height: 1.8;
    color: #333;
}

/* Search Page */
.search-page {
    padding: 40px 0;
}

.search-form-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.search-input-group button {
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-input-group button:hover {
    background-color: #0056b3;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.result-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.result-item h3 a {
    color: #333;
}

.result-item h3 a:hover {
    color: #007bff;
}

.result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    color: #999;
    font-size: 14px;
}

.result-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn-view-result {
    color: #007bff;
    font-weight: 500;
}

.btn-view-result:hover {
    color: #0056b3;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 10px;
}

.no-results i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
}

/* Error Page */
.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.error-content p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.error-suggestions {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.error-suggestions h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.error-suggestions ul {
    text-align: left;
}

.error-suggestions li {
    margin-bottom: 10px;
}

.error-suggestions a {
    color: #666;
}

.error-suggestions a:hover {
    color: #007bff;
}

/* Message Page */
.message-page {
    padding: 80px 0;
    text-align: center;
}

.message-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.message-icon {
    margin-bottom: 20px;
}

.message-icon i {
    font-size: 80px;
}

.message-icon .fa-check-circle {
    color: #28a745;
}

.message-icon .fa-exclamation-circle {
    color: #dc3545;
}

.message-content h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.message-content p {
    color: #666;
    margin-bottom: 30px;
}

.message-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Footer Section - Mechanical Industry Theme */
.site-footer {
    background-color: #1e3c72;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b35;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ff6b35;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.contact-list i {
    color: #ff6b35;
    width: 20px;
    text-align: center;
}

/* Social Links with SVG Support */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* SVG Icon Adaptation */
.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
    font-size: 14px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #ff6b35;
}

/* Back to Top Button - Updated color */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-5px);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    /* Mobile Navigation & Layout Adjustments */
    @media (max-width: 992px) {
        /* Show Mobile Toggle Elements */
        .mobile-only,
        .submenu-toggle {
            display: flex !important;
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: rgba(255, 255, 255, 0.9);
            font-size: 16px;
            z-index: 10;
        }

        .mobile-only:hover,
        .submenu-toggle:hover {
            color: #ff6b35;
        }

        .mobile-only i,
        .submenu-toggle i {
            display: inline-block;
            transition: transform 0.3s ease;
        }

        /* Rotate icon when menu is open */
        .nav-item.has-children.menu-open .submenu-toggle i,
        .nav-item.has-children.menu-open .mobile-only i {
            transform: rotate(180deg);
        }

        /* Nav List Layout */
        .nav-list {
            flex-direction: column;
        }

        .nav-item.has-children > a {
            position: relative;
            padding-right: 40px;
        }

        /* Mobile Submenu - Static position, hidden by default */
        .sub-menu {
            position: static;
            width: 100%;
            max-width: 100%;
            min-width: auto;
            box-shadow: none;
            border-radius: 0;
            opacity: 1;
            visibility: visible;
            transform: none;
            display: none; /* Controlled by JS */
            background: linear-gradient(180deg, #f0f2f5 0%, #f8f9fa 100%);
            border-left: 3px solid #ff6b35;
            padding: 0;
        }

        .sub-menu li a {
            padding: 10px 15px 10px 30px;
            font-size: 13px;
            color: #555;
        }

        .sub-menu li a:hover {
            background: rgba(30, 60, 114, 0.08);
            padding-left: 35px;
        }

        /* General Mobile Layout Changes */
        .main-nav {
            order: 3;
            width: 100%;
            margin: 15px 0 0;
            display: none;
        }

        .main-nav.active {
            display: block;
        }

        .mobile-menu-toggle {
            display: flex;
        }

        .header-contact {
            gap: 12px;
        }

        .contact-icon {
            width: 44px;
            height: 44px;
            font-size: 22px;
        }

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

        .detail-wrapper {
            grid-template-columns: 1fr;
        }

        .article-sidebar {
            order: -1;
        }

        .content-item {
            grid-template-columns: 1fr;
        }

        .hero-content h1 {
            font-size: 36px;
        }

        .section-title h2 {
            font-size: 28px;
        }
    }

    /* Mobile submenu - hidden by default, shown via JS */
    .sub-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: linear-gradient(180deg, #f0f2f5 0%, #f8f9fa 100%);
        border-left: 3px solid #ff6b35;
        padding: 0;
    }

    .sub-menu li a {
        padding: 10px 15px 10px 30px;
        font-size: 13px;
        color: #555;
    }

    .sub-menu li a:hover {
        background: rgba(30, 60, 114, 0.08);
        padding-left: 35px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Contact icons on tablet */
    .header-contact {
        gap: 12px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

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

    .detail-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: 1;
    }

    /* Product Detail Mobile Styles */
    .product-wrapper {
        grid-template-columns: 1fr;
    }

    .main-image-container {
        height: 350px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .thumbnail-item {
        width: 80px;
        height: 60px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-actions {
        flex-direction: row;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tab-nav li {
        padding: 12px 15px;
        font-size: 14px;
    }

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

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

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .content-item {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Contact icons on mobile - keep larger size */
    .header-contact {
        gap: 10px;
        order: 2;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    /* Adjust QR code position on mobile */
    .wechat-qrcode {
        right: -40px;
        min-width: 200px;
    }

    .qrcode-container img {
        width: 180px;
        height: 180px;
    }

    .features-grid,
    .products-grid,
    .news-grid,
    .content-grid,
    .faq-grid {
        grid-template-columns: 1fr; /* 移动端单列显示 */
    }

    /* FAQ mobile optimization */
    .faq-question {
        padding: 15px 20px; /* 减小内边距 */
    }

    .faq-question h3 {
        font-size: 14px; /* 缩小字体 */
        padding-right: 10px;
    }

    .faq-answer {
        padding: 0 20px 15px; /* 减小内边距 */
    }

    .faq-answer p {
        font-size: 13px; /* 缩小正文字体 */
    }

    .faq-link {
        font-size: 13px; /* 缩小链接字体 */
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .nav-prev,
    .nav-next {
        padding: 15px;
    }

    .nav-prev span,
    .nav-next span {
        font-size: 13px;
    }

    .nav-prev a,
    .nav-next a {
        font-size: 14px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .error-actions,
    .message-actions {
        flex-direction: column;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
    }

    .hero-banner {
        padding: 80px 0;
        background-image: url('https://picsum.photos/750/600?random=factory-mobile') !important;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .logo-text {
        font-size: 18px;
    }

    .search-box {
        display: none;
    }

    .article-content,
    .page-content {
        padding: 20px;
    }

    .error-code {
        font-size: 80px;
    }
}



/* ========================================
   Floating Contact Buttons
   ======================================== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 160px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.float-btn i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.float-btn .btn-text {
    position: absolute;
    right: 70px;
    background: rgba(102, 126, 234, 0.95);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.float-btn .btn-text::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(102, 126, 234, 0.95);
}

.float-btn:hover {
    width: 180px;
    border-radius: 30px;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.float-btn:hover .btn-text {
    opacity: 1;
    visibility: visible;
}

.float-inquire {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.float-inquire:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.float-whatsapp {
    background: #25D366;
}

.float-whatsapp:hover {
    background: #128C7E;
}

/* WhatsApp button text label */
.float-whatsapp .btn-text {
    background: rgba(37, 211, 102, 0.95);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.float-whatsapp .btn-text::after {
    border-color: transparent transparent transparent rgba(37, 211, 102, 0.95);
}

/* Mobile Responsive - Bottom Fixed */
@media (max-width: 768px) {
    .floating-contact {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        flex-direction: row !important;
        gap: 0 !important;
        background: #fff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
        padding: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 9999 !important;
    }
    
    .float-btn {
        flex: 1 !important;
        width: auto !important;
        height: 100% !important;
        min-width: auto !important;
        min-height: auto !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 0 !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
        flex-grow: 1 !important;
        flex-basis: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        position: relative !important;
    }
    
    .float-btn i {
        font-size: 20px !important;
        line-height: 1 !important;
    }
    
    .float-btn .btn-text {
        display: inline !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        color: #333 !important;
        padding: 0 !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        position: static !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }
    
    .float-btn:hover {
        width: auto !important;
        height: 100% !important;
        border-radius: 0 !important;
        transform: none !important;
        opacity: 0.9 !important;
    }
    
    /* Add spacing between buttons */
    .float-inquire {
        border-right: 1px solid #e0e0e0 !important;
    }
}

/* Add bottom padding to body on mobile to prevent content from being hidden behind nav */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px !important;
    }
}

/* ========================================
   Article Share Buttons
   ======================================== */
.article-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-btn i {
    line-height: 1;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Facebook */
.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #0d65d9;
}

/* Twitter/X */
.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

/* LinkedIn */
.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.linkedin:hover {
    background: #094a8f;
}

/* WhatsApp */
.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1da851;
}

/* Responsive Design for Share Buttons */
@media (max-width: 768px) {
    .article-share {
        margin-top: 30px;
        padding-top: 20px;
        gap: 10px;
    }
    
    .article-share span {
        font-size: 14px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
