    :root {
    --brand: #f26522;
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111;
}

.site-header {
    transition: background-color .3s ease, backdrop-filter .3s ease;
}

/* .with-header-offset {
    padding-top: calc(var(--header-h) + 12px);
} */


@media (max-width: 767.98px) {
    .with-header-offset {
        padding-top: calc(var(--header-h));
    }
}

/* ===== 导航（与 index.html 一致的行为） ===== */
#mobile-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-100%) !important;
}

#mobile-nav.open {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

@media (min-width:768px) {
    #desktop-nav {
        display: flex !important;
    }

    #hamburger {
        display: none !important;
    }

    #mobile-nav,
    #mobile-nav * {
        display: none !important;
    }

    .webshow {
        display: block;
    }

    .webhidden {
        display: none;
    }
}

/* === FINAL OVERRIDE: ensure drawer is fully hidden when closed on small screens === */
@media (min-width: 768px) {
    .webHide {
        display: none !important;
    }

    .webShow {
        display: flex;
    }
}
/* === FINAL OVERRIDE: ensure drawer is fully hidden when closed on small screens === */
@media (max-width: 767.98px) {
    .phoneHide {
        display: none !important;
    }

    .phoneShow {
        display: block;
    }
}

@media (max-width:767.98px) {
    #desktop-nav {
        display: none !important;
    }

    #hamburger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    #mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-h);
        z-index: 60;
        background: rgba(0, 0, 0, .9);
        backdrop-filter: saturate(120%) blur(6px);
        transform: translateY(-100%);
        transition: transform .25s ease;
    }

    #mobile-nav.open {
        transform: translateY(0);
    }
}

/* ===== Mega menu (desktop) — 1:1 look ===== */
.site-header {
    position: fixed;
    top: 0;
    z-index: 60
}

.header-inner {
    position: relative
}

/* Mega menu panel styling (updated) */
#mega-products {
    position: absolute;
    right: 6rem;
    top: 100%;
    display: none;
    width: 60rem;
    max-width: 95vw;
}

.mega-open #mega-products {
    display: block
}

@media (max-width:767.98px) {
    #mega-products {
        display: none !important
    }
}

#mega-products .panel {
    background: rgba(0,0,0,0.75);
    backdrop-filter: saturate(120%) blur(6px);
    border-top: 2px solid #f26522;
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
    border-radius: 6px;
}

#mega-products .inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 40px 28px;
    display: flex;
    justify-content: space-between;
}

/* 右侧预览卡片（桌面端） */
#mega-products .preview {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    margin-left: 32px;
    overflow: hidden;
}
#mega-products .preview img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* 缩小时隐藏预览，恢复内边距 */
@media (max-width: 1200px){
    #mega-products .preview{ display:none; }
    #mega-products .inner{ padding-right:40px; }
}

#mega-products .menu-cols {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 36px;
}

#mega-products .grid {
    display: contents;
}

#mega-products .col {
    min-width: 0
}

#mega-products .brand {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 10px
}

#mega-products .brand img {
    height: 30px;
    object-fit: contain
}

#mega-products .brand strong {
    font-size: 16px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em
}

#mega-products ul {
    margin: 0;
    padding: 0;
    list-style: none;
    column-gap: 32px
}

#mega-products li {
    margin: 6px 0;
    text-align: left;
}

#mega-products a {
    position: relative;
    gap: 8px;
    color: #cfcfcf;
    text-decoration: none;
    line-height: 28px;
    font-size: 14px
}

/* #mega-products a::after {
            content: "";
            width: 0;
            height: 1px;
            background: #f26522;
            transition: width .2s ease;
            margin-left: auto
        } */

#mega-products a:hover {
    color: #fff
}

#mega-products a:hover::after {
    width: 12px
}

/* column separators */
#mega-products .col:not(:first-child) {
    position: relative
}

#mega-products .col:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0 6%, rgba(255, 255, 255, .08) 6% 94%, transparent 94%)
}


/* 移动端手风琴样式，仅影响移动抽屉导航 */
#mobile-nav .m-accordion {
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

#mobile-nav .m-accordion summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    outline: none;
}

#mobile-nav .m-accordion summary::-webkit-details-marker {
    display: none;
}

#mobile-nav .m-accordion summary::before {
    content: "▶";
    position: absolute;
    right: 0;
    transition: transform 0.2s ease-in-out;
    font-size: 0.8rem;
    line-height: 1;
}

#mobile-nav .m-accordion[open]>summary::before {
    transform: rotate(90deg);
}

#mobile-nav .m-accordion ul {
    padding-left: 1rem;
    margin: 0.25rem 0 0 0;
}

#mobile-nav .m-accordion ul li {
    padding: 0.25rem 0;
}

#mobile-nav .m-accordion ul li a {
    display: block;
    color: inherit;
    text-decoration: none;
}

#mobile-nav .m-accordion ul li a:hover {
    color: #f97316;
    /* Tailwind orange-500 */
}

