
/* ====================================
   移动端响应式样式
   ==================================== */

/* ========== 基础重置 ========== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* 隐藏顶部黑色条 */
    .header .top {
        display: none !important;
    }
    
    .header {
        height: auto !important;
        min-height: 60px !important;
        position: relative !important;
    }
    
    .header .wrap {
        padding: 10px 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .header .logo {
        margin-top: 5px !important;
        float: none !important;
    }
    
    .header .logo img {
        height: 45px !important;
        width: auto !important;
        max-width: 150px !important;
    }
    
    /* 移动端菜单按钮显示 */
    .mobile-menu-toggle {
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 8px !important;
        cursor: pointer !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 3px !important;
        background: #333 !important;
        margin: 4px 0 !important;
        border-radius: 2px !important;
        transition: all 0.3s !important;
    }
    
    /* 移动端导航菜单 */
    .header .list {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        padding: 10px 0 !important;
        flex-direction: column !important;
        z-index: 999 !important;
    }
    
    .header .list.active {
        display: flex !important;
    }
    
    .header .list a {
        width: 100% !important;
        text-align: left !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        height: auto !important;
        line-height: 1.4 !important;
    }
    
    .header .list a:last-child {
        border-bottom: none !important;
    }
    
    .header .list a i {
        display: inline !important;
        margin-bottom: 0 !important;
    }
    
    .header .list a b {
        display: inline-block !important;
        margin-right: 10px !important;
        vertical-align: middle !important;
    }
    
    .header .list .glider {
        display: none !important;
    }
}

/* ========== 主要内容区域 - 平板和手机通用 ========== */
@media (max-width: 768px) {
    /* 服务分类板块 */
    .game_thot {
        width: 100% !important;
        max-width: none !important;
        margin: 15px auto 0 !important;
        padding: 0 10px !important;
    }
    
    .soft_sort {
        margin-top: 10px !important;
        border-top: 1px dashed #e3e3e3 !important;
        padding: 10px 0 !important;
    }
    
    .soft_sort .list {
        margin: 10px 0 !important;
        float: none !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .soft_sort .list .title {
        float: none !important;
        width: 100% !important;
        min-width: auto !important;
        height: auto !important;
        padding: 12px !important;
        font-size: 15px !important;
        text-align: center !important;
    }
    
    .soft_sort .list .title::after {
        display: none !important;
    }
    
    .soft_sort .list .items {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .soft_sort .list .items img {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
    }
    
    /* 案例资讯和联系我们板块 */
    .game_nbox {
        width: 100% !important;
        max-width: none !important;
        margin: 15px auto !important;
        padding: 15px 10px !important;
        background-color: #fff !important;
    }
    
    .game_nbox .content-wrapper {
        display: block !important;
        width: 100% !important;
    }
    
    .game_nbox .news-section {
        width: 100% !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .game_nbox .contact-section {
        width: 100% !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 2px solid #e5e5e5 !important;
        clear: both !important;
        flex-basis: auto !important;
    }
    
    .indextitle {
        height: auto !important;
        line-height: 1.4 !important;
        padding: 10px !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .indextitle em, 
    .indextitle em h2 {
        font-size: 17px !important;
        height: auto !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
    }
    
    .indextitle a {
        font-size: 13px !important;
        float: none !important;
        display: block !important;
        margin-top: 8px !important;
        height: auto !important;
    }
    
    /* 新闻列表优化 */
    .newc_r {
        padding: 10px 5px !important;
    }
    
    .newc_r ul.item {
        display: block !important;
    }
    
    .newc_r ul.item li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .newc_r ul.item li a {
        display: block !important;
        padding: 12px !important;
        background: #f9f9f9 !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        transition: all 0.3s !important;
    }
    
    .newc_r ul.item li a:hover {
        background: #f0f0f0 !important;
        transform: translateX(3px) !important;
    }
    
    .newc_r ul.item li h4 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        line-height: 1.5 !important;
        color: #333 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    
    .newc_r ul.item li p {
        font-size: 12px !important;
        color: #999 !important;
    }
    
    /* 联系我们板块 - 移动端优化 */
    .contact-section .indextitle {
        margin-bottom: 15px !important;
        border-bottom: none !important;
    }
    
    .contact-content {
        display: flex !important;
        justify-content: center !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
        margin-top: 15px !important;
    }
    
    .contact-item {
        flex: 0 0 auto !important;
        text-align: center !important;
        width: auto !important;
    }
    
    .contact-item a {
        display: inline-block !important;
        transition: all 0.3s !important;
    }
    
    .contact-item a:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
    }
    
    .contact-item img {
        width: 130px !important;
        height: 130px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
        display: block !important;
    }
    
    .contact-item span {
        display: block !important;
        margin-top: 10px !important;
        font-size: 13px !important;
        color: #666 !important;
        font-weight: 500 !important;
    }
}

/* ========== 手机设备（最大宽度 480px）========== */
@media (max-width: 480px) {
    body {
        font-size: 13px !important;
    }
    
    .header .logo img {
        height: 40px !important;
        max-width: 130px !important;
    }
    
    .header .wrap {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    /* 拨号按钮缩小 */
    .mobile-call-btn {
        padding: 6px 10px !important;
        gap: 4px !important;
    }

    .mobile-call-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    .mobile-call-btn span {
        font-size: 11px !important;
    }

    .mobile-menu-toggle {
        padding: 6px 10px !important;
    }

    .mobile-menu-toggle span {
        width: 18px !important;
        height: 2px !important;
        margin: 3px 0 !important;
    }

    .game_thot {
        padding: 0 8px !important;
        margin: 10px auto 0 !important;
    }
    
    .soft_sort .list .title {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    .soft_sort .list .items img {
        max-width: 240px !important;
    }
    
    .game_nbox {
        padding: 10px 8px !important;
        margin: 10px auto !important;
    }
    
    .indextitle em, 
    .indextitle em h2 {
        font-size: 16px !important;
    }
    
    .indextitle a {
        font-size: 12px !important;
    }
    
    .newc_r ul.item li a {
        padding: 10px !important;
    }
    
    .newc_r ul.item li h4 {
        font-size: 13px !important;
    }
    
    .newc_r ul.item li p {
        font-size: 11px !important;
    }
    
    .contact-content {
        gap: 12px !important;
    }
    
    .contact-item img {
        width: 110px !important;
        height: 110px !important;
    }
    
    .contact-item span {
        font-size: 12px !important;
    }
}

/* ========== 小屏手机（最大宽度 375px）========== */
@media (max-width: 375px) {
    .header .logo img {
        height: 35px !important;
        max-width: 110px !important;
    }
    
    .header .wrap {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    /* 拨号按钮进一步缩小 */
    .mobile-call-btn {
        padding: 5px 8px !important;
        gap: 3px !important;
    }

    .mobile-call-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    .mobile-call-btn span {
        display: none !important; /* 超小屏幕只显示图标 */
    }

    .mobile-call-btn::after {
        content: "呼叫" !important;
        font-size: 10px !important;
    }

    .mobile-menu-toggle {
        padding: 5px 8px !important;
    }

    .mobile-menu-toggle span {
        width: 16px !important;
        height: 2px !important;
        margin: 2.5px 0 !important;
    }

    .soft_sort .list .title {
        font-size: 13px !important;
        padding: 8px !important;
    }
    
    .soft_sort .list .items img {
        max-width: 200px !important;
    }
    
    .indextitle em, 
    .indextitle em h2 {
        font-size: 15px !important;
    }
    
    .newc_r ul.item li h4 {
        font-size: 12px !important;
    }
    
    .contact-item img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .contact-item span {
        font-size: 11px !important;
    }
}

/* ========== 辅助类和通用优化 ========== */
@media (max-width: 768px) {
    /* 清除浮动 */
    .clearfix::after {
        content: "" !important;
        display: table !important;
        clear: both !important;
    }
    
    /* 图片响应式 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 链接点击反馈 */
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 容器优化 */
    .container, .wrap, .box {
        width: 100% !important;
        max-width: none !important;
        padding: 0 10px !important;
    }
}
