/* 移动端专属样式 */

/* 移动端菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    transition: right  起始0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #09b6aa;
    color: #fff;
}

.mobile-menu-header .logo-text {
    font-size: 20px;
    font-weight: 700;
}

.mobile-menu-header .close-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
}


.mobile-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a {
    display: block;

    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #f8f9fa;
    color: #09b6aa;
}

.mobile-nav .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav .dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    transition: transform 0.3s;
}

.mobile-nav .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-nav .dropdown-menu {
    display: none;
    background: #fafafa;
}

.mobile-nav .dropdown.active .dropdown-menu {
    display: block;
}

.mobile-nav .dropdown-menu a {
    padding-left: 40px;
    font-size: 14px;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.mobile-menu-footer .phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #09b6aa;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
}

/* 移动端轮播 */
.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    opacity: 1 !important;
    background: rgba(255,255,255,0.5) !important;
}

.swiper-pagination-bullet-active {
    width: 24px !important;
    border-radius: 4px !important;
    background: #fff !important;
}

/* 移动端产品Tab */
.mobile-product-tabs {
    display: none;
}

@media (max-width: 767px) {
    .mobile-product-tabs {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 15px;
        background: #f8f9fa;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-product-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-product-tabs .tab-item {
        padding: 8px 20px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 20px;
        font-size: 14px;
        color: #666;
        white-space: nowrap;
        transition: all 0.3s;
    }

    .mobile-product-tabs .tab-item.active {
        background: #09b6aa;
        color: #fff;
        border-color: #09b6aa;
    }
}

/* 移动端回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #09b6aa;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(9,182,170,0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #08a197;
    transform: translateY(-3px);
}

/* 移动端浮动咨询 */
.mobile-float-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    z-index: 99;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.05);
}

/* 移动端浮动栏出现时隐藏页脚，并为main添加底部padding防止被遮挡 */
@media (max-width: 767px) {
    .site-footer {
        display: none;
    }
    
    main {
        padding-bottom: 60px;
    }
}

.mobile-float-bar .float-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.mobile-float-bar .float-item:hover {
    color: #09b6aa;
}

.mobile-float-bar .float-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.mobile-float-bar .float-item.primary {
    color: #09b6aa;
}

/* 移动端搜索弹窗 */
.mobile-search-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    display: none;
}

.mobile-search-popup.active {
    display: block;
}

.mobile-search-popup .search-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    gap: 10px;
}

.mobile-search-popup .search-header .search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.mobile-search-popup .search-header .close-btn {
    padding: 10px;
    color: #666;
    font-size: 14px;
}

/* 移动端图片懒加载占位 */
img.lazy-load {
    background: #f0f0f0;
    min-height: 200px;
}

/* 移动端分页 */
.pagination .page-link {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
