/* ========================================
   GOVIDA官网 手机端响应式优化样式
   上传到 css/mobile.css 即可生效
   ======================================== */

/* 屏幕宽度小于768px（手机端） */
@media (max-width: 768px) {
    /* 全局容器边距 */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* ========== 顶部导航优化 ========== */
    .header {
        padding: 10px 0 !important;
        position: sticky !important;
        top: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .nav-wrap {
        flex-wrap: wrap;
        gap: 10px;
    }
    .logo img {
        height: 32px !important;
    }
    /* 手机端隐藏过多导航菜单，避免挤爆 */
    .nav-menu {
        display: none !important;
    }
    .nav-btns {
        margin-left: auto !important;
        gap: 8px !important;
    }
    .nav-btns button {
        padding: 6px 12px !important;
        font-size: 13px !important;
        height: auto !important;
    }

    /* ========== 首屏Banner优化 ========== */
    .banner {
        padding: 40px 0 50px !important;
        min-height: auto !important;
    }
    .banner-text h1 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    .banner-text .sub-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    .banner-text .desc {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 25px !important;
    }
    .banner-btns {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 30px !important;
    }
    .banner-btns button {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    /* 数据行改成2列 */
    .data-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .data-item {
        padding: 15px 10px !important;
    }
    .data-item .num {
        font-size: 20px !important;
    }
    .data-item .text {
        font-size: 12px !important;
    }

    /* ========== 区块标题优化 ========== */
    .section-title h2 {
        font-size: 22px !important;
    }
    .section-title p {
        font-size: 14px !important;
    }
    .section-title.flex-row {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .section-title.flex-row .btn-outline {
        align-self: center !important;
    }

    /* ========== 四层技术架构优化 ========== */
    .tech-section {
        padding: 40px 0 !important;
    }
    .tech-card-wrap {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .tech-card-wrap .arrow {
        transform: rotate(90deg) !important;
        margin: 0 !important;
    }
    .tech-card {
        width: 100% !important;
        padding: 20px !important;
    }
    .card-list {
        columns: 2 !important;
        gap: 8px !important;
    }
    .card-list li {
        font-size: 13px !important;
    }

    /* ========== 产品/案例/新闻网格优化 ========== */
    .product-section, .case-section, .news-section {
        padding: 40px 0 !important;
    }
    .product-grid, .case-grid, .news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .pro-card, .case-card, .news-card {
        width: 100% !important;
    }
    .pro-img, .case-img, .news-img {
        height: 180px !important;
    }
    .case-data {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    .case-data span {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    /* ========== 合作伙伴区块优化 ========== */
    .partner-section {
        margin-top: 40px !important;
        padding-top: 30px !important;
    }
    .partner-logo-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
    .partner-logo-row .logo-item {
        height: 70px !important;
    }
    .partner-more {
        text-align: center !important;
        margin-top: 20px !important;
    }

    /* ========== 合作伙伴专门页面优化 ========== */
    .partner-page-section {
        padding: 30px 0 !important;
    }
    .partner-group-title {
        font-size: 20px !important;
    }
    .partner-logo-grid, .eco-partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .partner-logo-item {
        height: 90px !important;
        padding: 15px 10px !important;
    }
    .eco-partner-grid .partner-logo-item {
        height: 100px !important;
    }
    .partner-logo-item img {
        max-height: 60px !important;
    }

    /* ========== CTA横幅优化 ========== */
    .cta-banner {
        padding: 30px 0 !important;
    }
    .cta-wrap {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    .cta-text h2 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    .cta-text p {
        font-size: 14px !important;
    }
    .cta-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .cta-btns button {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }

    /* ========== 页脚优化 ========== */
    .footer {
        padding: 40px 0 20px !important;
    }
    .footer-wrap {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center !important;
    }
    .footer-logo {
        text-align: center !important;
    }
    .footer-logo .social {
        justify-content: center !important;
    }
    .footer-col h4 {
        margin-bottom: 12px !important;
        font-size: 16px !important;
    }
    .footer-col ul {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 15px !important;
    }
    .footer-col ul li {
        margin-bottom: 0 !important;
    }
    .footer-contact {
        text-align: center !important;
    }
    .footer-contact p {
        justify-content: center !important;
        font-size: 14px !important;
    }
    .qr-box {
        margin: 15px auto 0 !important;
    }
    .copyright {
        margin-top: 20px !important;
        padding-top: 15px !important;
        font-size: 12px !important;
    }

    /* ========== 内页通用优化（关于/产品/联系等页面） ========== */
    .page-header {
        padding: 40px 0 !important;
    }
    .page-header h1 {
        font-size: 24px !important;
    }
    .page-header p {
        font-size: 14px !important;
    }

    /* 表单优化 */
    .form-group input, .form-group textarea, .form-group select {
        font-size: 16px !important; /* 避免苹果手机自动放大 */
        padding: 12px 15px !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
    }
    .submit-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }

    /* 联系信息卡片 */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .contact-card {
        padding: 20px !important;
    }

    /* 硬件页面产品展示 */
    .hardware-showcase {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .hardware-item {
        padding: 15px !important;
    }

    /* 按钮通用优化，适合手指点击 */
    button, .btn-green, .btn-outline {
        min-height: 44px !important; /* 苹果推荐最小点击尺寸 */
    }

    /* 图片避免超出屏幕 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 新闻详情页优化 */
    .news-detail-content {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    .news-detail-content img {
        margin: 15px 0 !important;
    }
}

/* 屏幕宽度在768px-1024px（平板端）小优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 15px !important;
        font-size: 14px !important;
    }
    .tech-card-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tech-card {
        width: calc(50% - 40px) !important;
    }
    .tech-card-wrap .arrow {
        display: none !important;
    }
    .product-grid, .case-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .partner-logo-row {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}