/*
Theme Name: WYOO
Theme URI: https://wyoo.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: 精密传动外贸主题，含响应式 Mega 菜单、轮播等功能。
Version: 1.0.1
License: GPL v2 or later
Text Domain: wyoo
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-500: #0068CC;
    --blue-600: #0052A3;
    --red-500: #CC0000;
    --red-600: #A30000;
    --slate-900: #0F172A;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    --white: #FFFFFF;

    --navbar-height: 68px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--slate-50);
    color: var(--slate-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}
button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
}
ul {
    list-style: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    z-index: 150;
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

/* Logo */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.nav-logo-img:hover {
    transform: scale(1.02);
}

/* Navigation Links */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: block;
    padding: 6px 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--slate-900);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
}

.nav-item>a:hover {
    color: var(--slate-900);
    background: var(--slate-100);
}

.nav-item>a.active {
    color: var(--blue-500);
    font-weight: 600;
    background: rgba(0, 104, 204, 0.06);
}

.nav-item>a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: var(--blue-500);
    border-radius: 4px;
}

.nav-item>a .arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 9px;
    transition: transform 0.25s ease;
    color: var(--slate-400);
}

.nav-item:hover>a .arrow {
    transform: rotate(180deg);
}

/* Dropdown Standard */
.dropdown-standard {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 210px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
    border: 1px solid var(--slate-200);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.nav-item:hover .dropdown-standard,
.nav-item .dropdown-standard.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-standard li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-600);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.dropdown-standard li a:hover {
    background: var(--slate-50);
    color: var(--blue-500);
}

/* Dropdown Mega */
.dropdown-mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 1100px;
    max-width: 95vw;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--slate-200);
    padding: 24px 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    display: flex;
    gap: 28px;
}

.nav-item:hover .dropdown-mega,
.nav-item .dropdown-mega.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-left {
    flex: 0 0 240px;
    border-right: 1px solid var(--slate-200);
    padding-right: 20px;
    max-height: 480px;
    overflow-y: auto;
}

.mega-left .mega-category {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    text-decoration: none;
}

.mega-left .mega-category:hover {
    background: var(--slate-50);
    color: var(--slate-900);
}

.mega-left .mega-category.active {
    background: rgba(0, 104, 204, 0.08);
    color: var(--blue-500);
    font-weight: 600;
}

.mega-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mega-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}

.mega-header .mega-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
}

.mega-header .mega-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-500);
    transition: color 0.2s ease;
    padding: 4px 10px;
    border-radius: 6px;
}

.mega-header .mega-view-all:hover {
    color: var(--blue-600);
    background: rgba(0, 104, 204, 0.06);
}

.mega-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.mega-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--slate-100);
    background: var(--white);
}

.mega-product-item:hover {
    background: var(--slate-50);
    border-color: var(--slate-200);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.mega-product-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--slate-100);
    margin-bottom: 8px;
    max-width: 120px;
}

.mega-product-item .prod-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-800);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mega-product-item:hover .prod-name {
    color: var(--blue-500);
}

/* NAV CTA & SEARCH */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 4px;
}

/* Search */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--slate-500);
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-toggle:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    border: 1px solid var(--slate-200);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

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

.search-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--slate-50);
    border-radius: 6px;
    padding: 4px 12px;
    border: 1px solid var(--slate-200);
    transition: border-color 0.2s ease;
}

.search-inner:focus-within {
    border-color: var(--blue-500);
}

.search-inner i {
    color: var(--slate-400);
    font-size: 14px;
}

.search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 14px;
    color: var(--slate-900);
    outline: none;
    font-family: var(--font);
}

.search-inner input::placeholder {
    color: var(--slate-400);
}

.search-close {
    color: var(--slate-400);
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.search-close:hover {
    color: var(--slate-700);
}

/* Request Quote Button */
.btn-request {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: var(--red-600);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(163, 0, 0, 0.25);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-request:hover {
    background: var(--red-500);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(163, 0, 0, 0.35);
}

.btn-request i {
    font-size: 12px;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.btn-request:hover i {
    transform: translateX(2px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4.5px;
    padding: 6px 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--slate-700);
    border-radius: 4px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE NAV OVERLAY (已修复: 紧写在 Header 下方展开，防止被遮挡) ===== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background: rgba(15, 23, 42, 0.40);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 140;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--white);
    padding: 20px 16px 40px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-panel .mobile-nav-item {
    border-bottom: 1px solid var(--slate-100);
}

.mobile-nav-panel .mobile-nav-item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-700);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.mobile-nav-panel .mobile-nav-item>a:hover {
    background: var(--slate-50);
}

.mobile-nav-panel .mobile-nav-item>a .mob-arrow {
    font-size: 11px;
    color: var(--slate-400);
    transition: transform 0.25s ease;
}

.mobile-nav-panel .mobile-nav-item.open>a .mob-arrow {
    transform: rotate(180deg);
}

.mobile-sub {
    display: none;
    padding: 0 14px 8px 14px;
    flex-direction: column;
    gap: 2px;
}

.mobile-sub.open {
    display: flex;
}

.mobile-sub a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    color: var(--slate-600);
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-sub a:hover {
    background: var(--slate-50);
    color: var(--blue-500);
}

/* Mobile mega (Products) */
.mobile-mega-cat {
    padding: 6px 0;
}

.mobile-mega-cat .cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.mobile-mega-cat .cat-header:hover {
    background: var(--slate-50);
}

.mobile-mega-cat .cat-header .cat-arrow {
    font-size: 10px;
    color: var(--slate-400);
    transition: transform 0.25s ease;
}

.mobile-mega-cat.open .cat-header .cat-arrow {
    transform: rotate(90deg);
}

.mobile-mega-products {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 14px 12px 14px;
}

.mobile-mega-products.open {
    display: flex;
}

.mobile-mega-products .mob-prod {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(50% - 5px);
    padding: 8px 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
    cursor: pointer;
}

.mobile-mega-products .mob-prod:hover {
    background: var(--slate-50);
}

.mobile-mega-products .mob-prod img {
    width: 100%;
    max-width: 70px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    background: var(--slate-100);
    margin-bottom: 4px;
}

.mobile-mega-products .mob-prod span {
    font-size: 11px;
    font-weight: 500;
    color: var(--slate-700);
    text-align: center;
    line-height: 1.3;
}

.mobile-mega-products .mob-prod span:hover {
    color: var(--blue-500);
}

.mobile-mega-viewall {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-500);
    text-align: center;
    border-top: 1px solid var(--slate-100);
    margin-top: 4px;
    padding-top: 12px;
}

.mobile-mega-viewall:hover {
    color: var(--blue-600);
}

.mobile-nav-panel .mobile-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.mobile-nav-panel .mobile-cta .btn-request {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

.mobile-nav-panel .mobile-contact {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
    font-size: 13px;
    color: var(--slate-500);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-panel .mobile-contact i {
    color: var(--blue-500);
    width: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    background-color: #0F172A;
    background-image: url('img/footer-map-bg.png'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--slate-300);
    padding: 80px 32px 0;
    border-top: 1px solid var(--slate-800);
    font-size: 15px;
    line-height: 1.65;
    overflow: hidden;
}

.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.94) 100%);
    z-index: 1;
    pointer-events: none;
}

.footer-inner,
.footer-bottom {
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 1.5fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--blue-500);
    border-radius: 2px;
}

.footer-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-products ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--slate-300);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-products ul li a i {
    font-size: 10px;
    color: var(--blue-500);
    transition: transform 0.2s ease;
}

.footer-products ul li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-form-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row:has(textarea) {
    grid-template-columns: 1fr;
}

.footer-form-inner input,
.footer-form-inner textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.25s ease, background 0.25s ease;
    outline: none;
}

.footer-form-inner input::placeholder,
.footer-form-inner textarea::placeholder {
    color: var(--slate-400);
}

.footer-form-inner input:focus,
.footer-form-inner textarea:focus {
    border-color: var(--blue-500);
    background: rgba(15, 23, 42, 0.85);
}

.footer-form-inner textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--red-600);
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(163, 0, 0, 0.30);
    cursor: pointer;
    border: none;
    font-family: var(--font);
    width: fit-content;
}

.btn-submit:hover {
    background: var(--red-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(163, 0, 0, 0.40);
}

.btn-submit i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

.footer-brand {
    gap: 18px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 2px;
}

.footer-logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.footer-about {
    font-size: 14px;
    line-height: 1.7;
    color: var(--slate-300);
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--slate-300);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.footer-contact i {
    width: 18px;
    color: var(--blue-500);
    font-size: 15px;
}

.footer-contact a {
    color: var(--slate-300);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--slate-300);
    font-size: 15px;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--blue-500);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 0 28px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--slate-400);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--slate-400);
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom-links .sep {
    color: var(--slate-700);
}

/* ===== 公共响应式结构 ===== */
@media (max-width: 1280px) {
    .dropdown-mega {
        width: 900px;
    }
    .mega-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 16px;
    }
    .nav-item>a {
        padding: 6px 12px;
        font-size: 12px;
    }
    .btn-request {
        padding: 7px 16px;
        font-size: 12px;
    }
    .nav-logo-img {
        height: 34px;
    }
    .dropdown-mega {
        width: 720px;
        padding: 20px 22px;
    }
    .mega-left {
        flex: 0 0 180px;
    }
    .mega-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .mega-product-item img {
        max-width: 90px;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-bottom-links {
        justify-content: center;
    }
    .search-dropdown {
        width: 260px;
    }
}

/* ============================================================
   【核心修改】：768px 移动端专用修复规则
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }
    .navbar {
        padding: 0 12px;
        height: var(--navbar-height);
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-logo-img {
        height: 30px;
    }
    .btn-request {
        padding: 6px 14px;
        font-size: 11px;
        border-radius: 6px;
        gap: 5px;
    }
    .btn-request .btn-label {
        display: none;
    }
    .dropdown-mega,
    .dropdown-standard {
        display: none !important;
    }
    .search-dropdown {
        width: 240px;
        right: 0;
    }
    
    /* 修复移动端抽屉遮罩与面板定位 */
    .mobile-nav-overlay {
        top: var(--navbar-height) !important;
        height: calc(100vh - var(--navbar-height)) !important;
    }
    .mobile-nav-panel {
        padding: 16px 14px 32px;
        width: 290px;
    }

    /* 移动端 Megamenu 展开格式优化 */
    .mobile-mega-cat {
        padding: 4px 0;
        border-bottom: 1px solid var(--slate-100);
    }
    .mobile-mega-cat .cat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 600;
        color: var(--slate-800);
        border-radius: 6px;
        cursor: pointer;
        background: var(--slate-50);
    }
    .mobile-mega-products {
        display: none;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 6px;
    }
    .mobile-mega-products.open {
        display: flex !important;
    }
    .mobile-mega-products .mob-prod {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: calc(50% - 4px);
        padding: 6px 4px;
        background: var(--white);
        border: 1px solid var(--slate-200);
        border-radius: 6px;
    }
    .mobile-mega-products .mob-prod img {
        width: 100%;
        max-width: 60px;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 4px;
    }
    .mobile-mega-products .mob-prod span {
        font-size: 11px;
        font-weight: 500;
        color: var(--slate-700);
        text-align: center;
        line-height: 1.25;
    }
    .site-footer {
        padding: 50px 20px 0;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 54px;
    }
    .nav-logo-img {
        height: 26px;
    }
    .btn-request {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 5px;
        gap: 4px;
    }
    .btn-request i {
        font-size: 10px;
    }
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    .hamburger {
        gap: 4px;
    }
    .search-dropdown {
        width: 200px;
        right: -10px;
    }
    .search-inner input {
        font-size: 12px;
        padding: 6px 0;
    }
    .mobile-nav-panel {
        width: 270px;
        padding: 16px 12px 30px;
    }
    .mobile-nav-panel .mobile-nav-item>a {
        font-size: 14px;
        padding: 10px 12px;
    }
    .mobile-sub a {
        font-size: 13px;
        padding: 6px 12px;
    }
    .mobile-mega-cat .cat-header {
        font-size: 13px;
        padding: 8px 10px;
    }
    .mobile-mega-products .mob-prod span {
        font-size: 10px;
    }
    .mobile-mega-products .mob-prod img {
        max-width: 50px;
    }
    .site-footer {
        padding: 40px 16px 0;
    }
    .footer-inner {
        gap: 28px;
        padding-bottom: 28px;
    }
    .footer-logo-img {
        height: 32px;
    }
    .footer-contact p {
        font-size: 13px;
    }
    .footer-about {
        font-size: 13px;
    }
    .footer-title {
        font-size: 16px;
    }
    .footer-form-inner input,
    .footer-form-inner textarea {
        font-size: 13px;
        padding: 10px 12px;
    }
    .footer-products ul li a {
        font-size: 13px;
    }
    .footer-bottom-inner {
        font-size: 12px;
    }
    .footer-bottom-links a {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .search-dropdown {
        width: 170px;
        right: -20px;
    }
    .search-inner input {
        font-size: 11px;
    }
}

/* ============================================================
   INQUIRY MODAL (B2B US Market Style)
   ============================================================ */
.inquiry-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inquiry-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.inquiry-modal-container {
    background: var(--white);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    padding: 36px 40px;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inquiry-modal-overlay.open .inquiry-modal-container {
    transform: translateY(0) scale(1);
}

.inquiry-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    color: var(--slate-400);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.inquiry-modal-close:hover {
    color: var(--slate-900);
}

.inquiry-modal-header {
    margin-bottom: 24px;
}

.inquiry-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue-500);
    background: var(--slate-100);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.inquiry-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 6px 0;
}

.inquiry-subtitle {
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.5;
    margin: 0;
}

/* Form Styles */
.inquiry-form-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inquiry-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
}

.form-group label .required {
    color: var(--red-600);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--slate-300);
    background: var(--slate-50);
    color: var(--slate-900);
    font-size: 13px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 104, 204, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.file-label {
    font-size: 12px;
    color: var(--blue-500);
    cursor: pointer;
}

.form-status-msg {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.form-status-msg.success {
    display: block;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.form-status-msg.error {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-inquiry-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--red-600);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    box-shadow: 0 4px 16px rgba(163, 0, 0, 0.25);
}

.btn-inquiry-submit:hover {
    background: var(--red-500);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .inquiry-modal-container {
        padding: 24px 20px;
    }
    .inquiry-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .inquiry-title {
        font-size: 20px;
    }
}

/* ============================================================
   全局默认隐藏多品询价组件
   ============================================================ */

#floatingQuoteBadge {
    display: none !important;
}

#floatingQuoteBadge[style*="display: flex"] {
    display: flex !important;
}

#quoteListModal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#quoteListModal.open {
    display: flex !important;
}