/* ======================================================
   Fuchuan Metal — Main Stylesheet (New Theme 2026)
   Tailwind-compatible custom CSS
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: #373b42;
}

/* ========== HEADER SCROLL EFFECT ========== */
.header-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* ========== PRODUCT IMAGE HOVER ========== */
.product-img-wrap img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-img-wrap:hover img {
    transform: scale(1.06);
}

/* ========== BUTTON STATES ========== */
.btn-red-hover:hover {
    background-color: #cc1f1f !important;
}

/* ========== FADE-UP ANIMATION ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SCROLL INDICATOR ========== */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 30px; }
    50% { opacity: 1; height: 50px; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu-panel {
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-panel.open {
    transform: translateX(0);
}

/* ========== NAV LINK UNDERLINE ========== */
.nav-link-item {
    position: relative;
}
.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e52a2a;
    transition: width 0.3s ease;
}
.nav-link-item:hover::after, .nav-link-item.active::after {
    width: 100%;
}

/* ========== SIDE BAR ========== */
.side-bar {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    margin-top: -200px;
}
.side-bar .item {
    position: relative;
}
.side-bar .item.hide {
    transform: translateX(100%) !important;
    display: block !important;
}
.side-bar .item + .item {
    margin-top: 5px;
}
.side-bar .item > a,
.side-bar .item > span > a {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 10;
    color: #e52a2a;
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s;
}
.side-bar .item > a svg,
.side-bar .item > span > a svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.side-bar .item > a i,
.side-bar .item > span > a i {
    font-size: 16px;
    line-height: 1;
}
.side-bar .item:hover > a,
.side-bar .item:hover > span > a {
    background: #e52a2a;
    color: #ffffff;
}
.side-bar .txt {
    position: absolute;
    top: 0;
    right: 44px;
    padding: 0 18px;
    font-size: 13px;
    white-space: nowrap;
    line-height: 44px;
    background: #e52a2a;
    color: #ffffff;
    font-weight: 500;
    transform: translateX(100%);
    transition: all 0.3s ease 0s;
    border-radius: 4px 0 0 4px;
}
.side-bar .item:hover .txt {
    transform: translateX(0);
}
.side-bar .wx-box {
    width: 150px;
    position: absolute;
    right: 50px;
    top: -50px;
    display: none;
    z-index: 100;
}
.side-bar .wx-box .box {
    width: 140px;
    padding: 5px;
    border: 1px solid #e5e7eb;
    text-align: center;
    background: #fff;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.side-bar .wx-box .box img {
    width: 100%;
    display: block;
}
.side-bar .wx-box .arrowPanel {
    width: 12px;
    height: 20px;
    position: absolute;
    right: 0;
    top: calc(50% - 5px);
}
.side-bar .wx-box .arrowPanel .arrow01 {
    width: 0; height: 0; font-size: 0; line-height: 0;
    position: absolute; bottom: 0; left: 2px; top: 0;
    border-top: 10px dashed transparent;
    border-right: 10px dashed transparent;
    border-bottom: 10px dashed transparent;
    border-left: 10px solid #e5e7eb;
}
.side-bar .wx-box .arrowPanel .arrow02 {
    width: 0; height: 0; font-size: 0; line-height: 0;
    position: absolute; bottom: 0; left: 0; top: 0;
    border-top: 10px dashed transparent;
    border-right: 10px dashed transparent;
    border-bottom: 10px dashed transparent;
    border-left: 10px solid #fff;
}
.side-bar .item:hover .wx-box {
    display: block;
}
@media (max-width: 768px) {
    .side-bar { display: none; }
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ========== HERO SLIDER (multi-banner support) ========== */
.hero-slide {
    display: none;
    position: absolute;
    inset: 0;
}
.hero-slide.active {
    display: block;
}
.hero-slide img {
    object-fit: cover;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.hero-arrow:hover { background: rgba(229,42,42,0.7); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.hero-dot.active { background: #e52a2a; }

/* ========== MOBILE BANNER OVERRIDES (<640px) ========== */
@media (max-width: 639px) {
    /* Section: white bg, normal flow (override flex, 100vh, overflow) */
    #home {
        display: block !important;
        min-height: auto !important;
        overflow: visible !important;
        background-color: #fff !important;
    }
    /* Background wrapper: stay in flow, full width at top */
    #home > .absolute.z-0 {
        position: relative !important;
        width: 100% !important;
        inset: auto !important;
    }
    /* Hero slides: normal flow, active one visible */
    .hero-slide {
        position: relative !important;
        inset: auto !important;
    }
    .hero-slide.active {
        display: block;
    }
    /* Image: full width, natural height */
    .hero-slide img {
        display: block;
        width: 100%;
        height: auto;
    }
    /* Hide gradient overlay */
    .hero-slide > .absolute {
        display: none;
    }
    /* Hide hero content (text + buttons) on mobile */
    #home > .relative.z-10 {
        display: none !important;
    }
    /* Hide slider arrows/dots + CTA buttons on mobile */
    .hero-arrow,
    .hero-dots,
    .hero-buttons {
        display: none;
    }
}

/* ========== INNER PAGES ========== */
.page-content-wrap {
    padding-top: 80px; /* fixed header height */
}
