/* 移动端汉堡菜单样式 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 移动端响应式样式 - 整合所有必要的移动端样式 */
/* 只在屏幕宽度小于768px时生效 */
@media (max-width: 768px) {
    /* 基础样式重置 */
    body {
        font-size: 14px;
        line-height: 1.5;
        overflow-x: hidden;
    }
    
    /* 显示汉堡菜单 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 汉堡菜单激活状态 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* 导航菜单切换 */
    .nav-primary {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-primary.active {
        display: flex;
    }
    
    /* 头部导航 */
    .header .wrapper {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    
    .logo img {
        width: 180px;
        height: auto;
    }
    
    /* 导航菜单 */
    .nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .nav-item a {
        padding: 10px 0;
        text-align: center;
    }
    
    /* 通用容器样式 */
    .wrapper {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* 轮播图 */
    .overlay-slider {
        height: 250px !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .overlay-slide-content {
        padding: 0 20px !important;
        text-align: center !important;
    }
    
    .slide-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    
    .slide-desc {
        font-size: 14px !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        margin-bottom: 15px !important;
    }
    
    .slide-buttons {
        margin-top: 20px !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }
    
    .slide-btn {
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
    
    /* 轮播图控制按钮 */
    .overlay-slider-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .overlay-slider-arrow.prev {
        left: 10px !important;
    }
    
    .overlay-slider-arrow.next {
        right: 10px !important;
    }
    
    /* 轮播图指示器 */
    .overlay-slider-controls {
        bottom: 20px !important;
    }
    
    /* 公告栏目 */
    .announcement-bar {
        margin-top: -20px !important;
        min-width: auto !important;
        padding: 10px 15px !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    .announcement-list {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        height: auto !important;
        padding: 5px 0 !important;
    }
    
    .announcement-item {
        min-width: 200px !important;
        margin-right: 15px !important;
        padding: 5px !important;
        font-size: 12px !important;
    }
    
    .announcement-text {
        font-size: 12px !important;
    }
    
    /* 产品展示 */
    .product-main-title {
        font-size: 24px;
    }
    
    .product-subtitle {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    /* 解决方案 */
    .solution-section-title {
        font-size: 20px;
        text-align: center;
    }
    
    .solution-section-subtitle {
        font-size: 14px;
        text-align: center;
    }
    
    .solution-content-layout {
        flex-direction: column;
    }
    
    .solution-menu-sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .solution-content-main {
        order: 1;
    }
    
    .solution-client-sidebar {
        order: 3;
        margin-top: 20px;
    }
    
    /* 服务能力 */
    .service-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .service-header p {
        font-size: 16px;
        text-align: center;
    }
    
    .service-cards-container {
        grid-template-columns: 1fr !important;
    }
    
    /* 案例展示 */
    .brand-cases-slider {
        flex-direction: column;
    }
    
    .brand-cases-text {
        margin-bottom: 20px;
    }
    
    /* 服务网络 */
    .stats-section {
        flex-direction: column;
        gap: 20px;
    }
    
    /* 按钮样式调整 */
    .btn-primary, .btn-secondary, .solution-primary-button, .solution-text-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* 弹窗和浮动元素 */
    .HT-kefu-top-notice {
        padding: 10px;
    }
    
    .HT-kefu-notice-text {
        font-size: 14px;
    }
    
    /* 确保所有网格布局在移动端正确显示 */
    [class*="grid"] {
        gap: 15px !important;
    }
    
    /* 确保所有容器有适当的内边距 */
    .wrapper, .container, .huotong-wrapper, .ht-wrapper {
        padding: 0 15px !important;
    }
    
    /* 确保所有标题在移动端居中显示 */
    h1, h2, h3, h4, h5, h6, .main-title, .subtitle, .section-title {
        text-align: center !important;
    }
}

/* 小屏手机适配 (小于480px) */
@media screen and (max-width: 480px) {
    
    /* 轮播图 */
    .overlay-slider {
        height: 200px !important;
    }
    
    .slide-title {
        font-size: 20px !important;
    }
    
    .slide-desc {
        font-size: 12px !important;
    }
    
    .slide-btn {
        padding: 8px 20px !important;
        font-size: 13px !important;
    }
    
    /* 轮播图控制按钮 */
    .overlay-slider-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    /* 公告栏目 */
    .announcement-bar {
        margin-top: -10px !important;
        padding: 8px 10px !important;
    }
    
    .announcement-item {
        min-width: 150px !important;
        font-size: 11px !important;
    }
    
    .announcement-text {
        font-size: 11px !important;
    }
}

/* 平板设备样式（768px-1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 调整产品和服务网格布局 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .service-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 确保容器有适当的内边距 */
    .wrapper, .container, .huotong-wrapper, .ht-wrapper {
        padding: 0 20px !important;
    }
}