/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .mega-menu {
        min-width: 500px;
    }
    
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mega-menu-featured {
        grid-column: span 3;
        margin-top: 1rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Header */
    .nav {
        display: none; /* 这里先隐藏，稍后在移动端优化样式中重新显示 */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-nav {
        display: none;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Products */
    .product-video-showcase {
        padding: 1.5rem;
    }

    .play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-categories {
        gap: 0.75rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Tablet specific showcase adjustments */
@media (max-width: 991px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 400px;
        gap: 20px;
    }
    
    .large-card {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Header */
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    /* Features */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Advertisement Banner */
    .ad-banner .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .ad-banner-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 200px;
        gap: 2px;
    }
    
    .ad-banner-item {
        height: 200px;
    }

    /* Showcase */
    .showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 15px;
    }
    
    .showcase-category {
        height: 200px;
    }
    
    .large-card {
        grid-row: auto;
        grid-column: auto;
    }

        /* Products */
    .products {
        padding: 60px 0;
    }

    .product-video-showcase {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-categories {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .category-btn {
        width: 200px;
        text-align: center;
    }
    
    /* About */
    .about {
        padding: 60px 0;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    /* News */
    .news {
        padding: 60px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .company-section {
        max-width: none;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .newsletter-form {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Mobile showcase adjustments */
@media (max-width: 767px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 15px;
    }
    
    .showcase-category {
        height: 200px;
    }
    
    .large-card {
        grid-row: auto;
        grid-column: auto;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Spacing */
    :root {
        --section-padding: 50px 0;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Header */
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    /* Hero */
    .hero {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Features */
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Products */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .category-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Back to top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Navigation */
@media (max-width: 991px) {
    /* 移动端头部布局优化 */
    .header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    /* 移动端语言切换 - 移到头部右侧，独立显示 */
    .header .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        order: 3;
    }
    
    .header .language-switcher {
        position: relative;
        margin-top: 0;
        padding: 0;
    }
    
    .header .lang-btn {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--white-color);
        cursor: pointer;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        transition: var(--transition-fast);
        font-size: 0.85rem;
        font-weight: 500;
        backdrop-filter: blur(10px);
        width: auto;
        justify-content: flex-start;
    }
    
    .header.scrolled .lang-btn {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.1);
        color: var(--dark-color);
    }
    
    .header .lang-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }
    
    .header.scrolled .lang-btn:hover {
        background: rgba(0, 0, 0, 0.12);
    }
    
    .header .lang-btn i {
        font-size: 0.9rem;
    }
    
    .header .lang-btn span {
        font-size: 0.8rem;
    }
    
    .header .lang-btn .fa-chevron-down {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
    }
    
    .header .lang-btn.active .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .header .lang-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--white-color);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 0.5rem 0;
        min-width: 120px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .header .lang-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .header .lang-option {
        display: block;
        padding: 0.6rem 1rem;
        color: var(--dark-color);
        transition: var(--transition-fast);
        font-size: 0.85rem;
        font-weight: 500;
    }
    
    .header .lang-option:hover {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: var(--white-color);
    }
    
    .header .lang-option.active {
        background: var(--primary-color);
        color: var(--white-color);
    }

    /* 移动端导航菜单优化 - 侧滑抽屉式 - 提高优先级 */
    .header .nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 300px !important;
        height: 100vh !important;
        background: var(--white-color) !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1) !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        display: block !important; /* 强制显示，覆盖PC端的display: flex */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    .header .nav.active {
        right: 0 !important;
    }
    
    /* 移动端菜单遮罩层 */
    #navOverlay,
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
        display: block;
    }
    
    #navOverlay.active,
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 移动端菜单头部 */
    .header .nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 1.5rem 1rem;
        border-bottom: 1px solid var(--light-color);
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    .header .nav-header .logo {
        color: var(--white-color);
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .header .nav-close {
        background: none;
        border: none;
        color: var(--white-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: var(--transition-fast);
        display: block !important;
    }
    
    .header .nav-close:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }
    
    .header .nav-list {
        flex-direction: column !important;
        padding: 1rem 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        display: flex !important;
    }
    
    .header .nav-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block !important;
    }
    
    .header .nav-item:last-child {
        border-bottom: none;
    }
    
    .header .nav-link {
        display: flex !important;
        align-items: center;
        padding: 1.2rem 1.5rem !important;
        color: var(--dark-color) !important;
        font-weight: 500;
        font-size: 1rem !important;
        transition: all 0.3s ease;
        position: relative;
        text-decoration: none;
    }
    
    .header .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }
    
    .header .nav-link::after {
        display: none !important;
    }
    
    .header .nav-link:hover,
    .header .nav-link.active {
        background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1)) !important;
        color: var(--primary-color) !important;
        padding-left: 2rem !important;
    }
    
    .header .nav-link:hover::before,
    .header .nav-link.active::before {
        transform: scaleY(1);
    }
    
    /* 添加图标到移动端菜单项 */
    .header .nav-link.home-link::after {
        content: '\f015' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        margin-left: auto !important;
        opacity: 0.6 !important;
        display: block !important;
    }
    
    .header .nav-link.products-link::after {
        content: '\f1b2' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        margin-left: auto !important;
        opacity: 0.6 !important;
        display: block !important;
    }
    
    .header .nav-link.services-link-dropdown::after {
        content: '\f0ad' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        margin-left: auto !important;
        opacity: 0.6 !important;
        display: block !important;
    }
    
    .header .nav-link.contact-link::after {
        content: '\f095' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        margin-left: auto !important;
        opacity: 0.6 !important;
        display: block !important;
    }

    /* Mobile Mega Menu */
    .header .mega-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        background: var(--light-color);
        margin-top: 0;
        display: none;
        border-radius: 0;
    }
    
    .header .dropdown.active .mega-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    .header .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .header .mega-menu-column {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .header .mega-menu-column:last-child {
        border-bottom: none;
    }
    
    .header .mega-menu-column h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        color: var(--primary-color);
        font-weight: 600;
        border-bottom: 2px solid var(--primary-color);
        display: inline-block;
    }
    
    .header .mega-menu-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .header .mega-menu-column ul li {
        margin: 0;
    }
    
    .header .mega-menu-column a {
        display: block;
        padding: 0.6rem 0;
        font-size: 0.9rem;
        color: var(--dark-color);
        transition: all 0.3s ease;
        position: relative;
        padding-left: 1rem;
        text-decoration: none;
    }
    
    .header .mega-menu-column a::before {
        content: '▸';
        position: absolute;
        left: 0;
        color: var(--primary-color);
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .header .mega-menu-column a:hover {
        color: var(--primary-color);
        padding-left: 1.5rem;
    }
    
    .header .mega-menu-column a:hover::before {
        transform: translateX(4px);
    }
    
    .header .mega-menu-featured {
        display: none;
    }
    
    /* 移动端下拉菜单指示器 */
    .header .dropdown > .nav-link::after {
        content: '\f107' !important;
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
        margin-left: auto !important;
        transition: transform 0.3s ease !important;
        opacity: 0.6 !important;
        display: block !important;
    }
    
    .header .dropdown.active > .nav-link::after {
        /* 移除横线旋转动画效果 */
        transform: none !important;
    }

    /* Mobile menu button animation */
    .header .mobile-menu-btn {
        position: relative;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    
    .header.scrolled .mobile-menu-btn {
        background: rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .header .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }
    
    .header.scrolled .mobile-menu-btn:hover {
        background: rgba(0, 0, 0, 0.12);
    }
    
    .header .mobile-menu-btn span {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background: var(--white-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
    }
    
    .header.scrolled .mobile-menu-btn span {
        background: var(--dark-color);
    }
    
    .header .mobile-menu-btn span:nth-child(1) {
        top: 12px;
    }
    
    .header .mobile-menu-btn span:nth-child(2) {
        top: 19px;
    }
    
    .header .mobile-menu-btn span:nth-child(3) {
        top: 26px;
    }
    
    .header .mobile-menu-btn.active span:nth-child(1) {
        /* 移除横线旋转动画效果 */
        transform: translateX(-50%);
        top: 12px;
    }
    
    .header .mobile-menu-btn.active span:nth-child(2) {
        /* 移除横线旋转动画效果 */
        opacity: 1;
        transform: translateX(-50%);
    }
    
    .header .mobile-menu-btn.active span:nth-child(3) {
        /* 移除横线旋转动画效果 */
        transform: translateX(-50%);
        top: 26px;
    }
}

/* PC端样式 - 确保移动端专有元素在PC端隐藏 */
@media (min-width: 992px) {
    .nav-header {
        display: none !important; /* PC端隐藏移动端导航头部 */
    }
    
    .nav-overlay {
        display: none !important; /* PC端隐藏遮罩层 */
    }
    
    .nav-close {
        display: none !important; /* PC端隐藏关闭按钮 */
    }
    
    .mobile-menu-btn {
        display: none !important; /* PC端隐藏移动菜单按钮 */
    }
    
    .nav {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        right: auto !important;
        display: flex !important; /* PC端恢复flex布局 */
    }
    
    .nav-list {
        flex-direction: row !important;
        padding: 0 !important;
        gap: 2rem !important;
        margin: 0 !important;
        list-style: none !important;
        display: flex !important;
    }
    
    .nav-item {
        width: auto !important;
        border-bottom: none !important;
        display: block !important;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        color: var(--white-color) !important;
        font-size: 0.95rem !important;
        position: relative !important;
        display: block !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .header.scrolled .nav-link {
        color: var(--dark-color) !important;
    }
    
    .nav-link::before {
        display: none !important; /* PC端隐藏移动端的左边条 */
    }
    
    .nav-link::after {
        content: '' !important;
        position: absolute !important;
        bottom: -2px !important;
        left: 0 !important;
        width: 0 !important;
        height: 2px !important;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
        transition: width 0.3s ease !important;
        margin-left: 0 !important;
        opacity: 1 !important;
        font-family: inherit !important;
        font-weight: normal !important;
        transform: none !important;
        display: block !important;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100% !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: transparent !important;
        color: var(--primary-color) !important;
        padding: 0.75rem 0 !important; /* 保持PC端原始padding */
    }
    
    .header.scrolled .nav-link:hover,
    .header.scrolled .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    /* PC端语言切换恢复原样式 */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .language-switcher {
        position: relative !important;
    }
    
    .lang-btn {
        background: transparent !important;
        border: none !important;
        color: var(--white-color) !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 4px !important;
        transition: var(--transition-fast) !important;
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    .header.scrolled .lang-btn {
        color: var(--dark-color) !important;
    }
    
    .lang-btn:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
    }
    
    .header.scrolled .lang-btn:hover {
        background: rgba(0, 0, 0, 0.1) !important;
    }
    
    .lang-dropdown {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        background: var(--white-color) !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        padding: 0.5rem 0 !important;
        min-width: 120px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
        z-index: 1000 !important;
    }
    
    .language-switcher:hover .lang-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .lang-option {
        display: block !important;
        padding: 0.5rem 1rem !important;
        color: var(--dark-color) !important;
        text-decoration: none !important;
        transition: var(--transition-fast) !important;
        font-size: 0.9rem !important;
    }
    
    .lang-option:hover {
        background: var(--primary-color) !important;
        color: var(--white-color) !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-nav,
    .hero-indicators,
    .back-to-top,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .hero-content {
        padding-top: 2rem;
        color: var(--dark-color) !important;
    }
    
    .hero-bg::before {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-title {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .product-card,
    .news-card,
    .feature-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .product-image img,
    .news-image img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-slide {
        transition: none;
    }
    
    .loader {
        animation: none;
        border: 4px solid var(--primary-color);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #f9fafb;
        --white-color: #111827;
        --light-color: #1f2937;
        --gray-color: #9ca3af;
        --gray-light: #6b7280;
    }
    
    .header {
        background: transparent;
        border-bottom-color: transparent;
    }
    
    .header.scrolled {
        background: rgba(17, 24, 39, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .mega-menu {
        background: var(--white-color);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .feature-card,
    .product-card,
    .news-card,
    .contact-form,
    .contact-item,
    .stat-item {
        background: var(--light-color);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--white-color);
        border-color: var(--gray-light);
        color: var(--dark-color);
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure minimum touch target size on mobile */
@media (max-width: 767px) {
    .btn,
    .nav-link,
    .lang-option,
    .category-btn,
    .back-to-top {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
} 