/* Header动画优化 */
.site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, background-color, box-shadow;
}

.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateZ(0);
}

.site-header.translate-y-\[-100\%\] {
    transform: translateY(-100%);
}

.site-header.translate-y-0 {
    transform: translateY(0);
}

.site-header.translate-y-5 {
    transform: translateY(1.25rem);
}

.site-header.bg-opacity-90 {
    background-color: rgba(255, 255, 255, 0.9);
}


.site-header.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


.site-header.scale-100 {
    transform: scale(1);
}

.site-header.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#slogan-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#slogan-bar.opacity-0 {
    opacity: 0;
}

#slogan-bar.h-0 {
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#header-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-container.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

#header-container.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

#mobile-menu .site-branding {
    color: #333333;
}

#mobile-menu .site-title a {
    color: #333333;
}

.mobile-menu-content {
    width: 100%;
    max-width: 100%;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    opacity: 1;
    transform: translateY(0);
    width: 100%;
    max-width: 100%;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.mobile-nav-menu a:hover {
    color: #298567;
    padding-left: 0.5rem;
}


.mobile-nav-menu li:last-child a {
    border-bottom: none;
}

/* 移动端菜单遮罩层 */
#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

@media (min-width: 768px) {
    #mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .open-cart {
        margin-left: 1rem;
        transition: all 0.3s ease;
    }
}


@media (max-width: 767px) {
    .logo-wrapper {
        width: 4rem;
        height: 4rem;
        transition: all 0.3s ease;
    }
}


.mobile-nav-menu .menu-item {
    margin-bottom: 0;
}

.mobile-nav-menu .menu-item a {
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 500;
}


#mobile-menu .flex-grow {
    flex-grow: 1;
}

#mobile-menu .overflow-y-auto {
    overflow-y: auto;
}


#mobile-menu-close {
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

#mobile-menu-close:hover {
    transform: rotate(90deg);
}