/* 移动端专用样式 - 768px以下设备 */

/* 移动端瀑布流布局系统 */
@media (max-width: 768px) {
    /* 全局移动端优化 */
    body {
        font-size: 16px; /* 确保文字在移动端可读 */
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* 移动端图片优化 - 调整为2:3比例 */
    .hero-img-1920-800,
    .hero-img-1921-1061 {
        width: 100%;
        height: 150vw; /* 宽度的1.5倍高度，实现2:3比例 */
        max-height: 80vh; /* 限制最大高度不超过视口的80% */
        object-fit: cover;
        object-position: center center;
    }
    
    /* 产业板块标题移动端优化 */
    .industry-title {
        font-size: 1.9rem !important;
        margin-bottom: 25px !important;
        text-align: center !important;
        color: #1e3a8a !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }
    
    .industry-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 30px !important;
        text-align: center !important;
        color: #64748b !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
    }
    
    /* 产业详情页面容器统一样式 */
    .industry-list-block-group {
        width: 100% !important;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    
    .industry-list-block {
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #007bff;
        box-sizing: border-box;
    }
    
    .industry-block-groups-row {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .industry-list-block strong {
        display: block;
        margin-bottom: 10px;
        font-size: 1.1rem;
        color: #333;
        line-height: 1.4;
    }
    
    .industry-list-block ul {
        margin: 0;
        padding-left: 20px;
        list-style-type: disc;
    }
    
    .industry-list-block li {
        margin-bottom: 8px;
        line-height: 1.5;
        font-size: 0.95rem;
        color: #555;
    }
    
    /* 确保所有产业板块容器都有统一样式 */
    .industry-block-vertical .industry-list-block-group,
    .industry-block-groups .industry-list-block-group {
        width: 100% !important;
        flex: none !important;
    }
    
    .industry-block-vertical .industry-list-block,
    .industry-block-groups .industry-list-block {
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
    }

    
    /* 触控优化 - 最小点击区域44px */
    .cta-button, .learn-more-btn, .contact-btn,
    .nav-link, .language-option {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 移动端瀑布流容器 */
    .mobile-waterfall {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    /* 业务卡片瀑布流布局 */
    .business-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .business-card {
        padding: 30px 20px;
        margin-bottom: 0;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        background: #fff;
    }
    
    .business-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* 移动端英雄区域优化 */
    .hero-content-overlay {
        left: 5%;
        right: 5%;
        max-width: none;
        padding: 25px 20px;
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }
    
    .hero-company-name {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .hero-company-slogan {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-cta-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    /* 移动端导航优化 */
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-menu.active {
        top: 60px;
        padding: 15px 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* 移动端导航栏公司名称优化 */
    .nav-logo-cn {
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
    }
    
    .nav-logo-en {
        font-size: 0.8rem;
        text-align: center;
        margin-top: 2px;
    }
    
    /* 移动端内容区域瀑布流 */
    .company-intro,
    .core-business,
    .contact-preview {
        padding: 40px 0;
    }
    
    .company-intro h2,
    .core-business h2,
    .contact-preview h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
        padding: 0 20px;
    }
    
    /* 统计数据瀑布流 */
    .intro-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .stat-item {
        padding: 25px 20px;
        text-align: center;
        border-radius: 12px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    /* 联系信息瀑布流 */
    .contact-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .contact-item {
        padding: 25px 20px;
        border-radius: 12px;
        text-align: center;
    }
    
    /* 页脚移动端优化 - 调整纵向长度 */
    .footer {
        padding: 20px 0 10px;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
        padding: 0 20px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 4px;
    }
    
    .footer-section ul li {
        margin-bottom: 15px;
    }
    
    .footer-section ul li a {
        display: block;
        padding: 10px 15px;
        min-height: 44px;
        line-height: 24px;
        font-size: 0.9rem;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white !important;
        text-decoration: none;
        border-radius: 25px;
        font-weight: 500;
        transition: all 0.3s ease;
        text-align: center;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    
    .footer-section ul li a:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }
    
    .footer-section ul li a:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .footer-bottom {
        margin-top: 15px;
        padding-top: 10px;
    }
    
    .footer-bottom .copyright,
    .footer-bottom .beian {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 5px 0;
    }
}

/* 移动端产业板块样式补充 */
@media (max-width: 768px) {
    /* 产业板块顶部五个小标题移动端优化 */
    .industry-overview-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        padding: 0 20px !important;
    }
    
    .overview-card { 
        padding: 18px 24px !important; 
        font-size: 1.05rem !important; 
        width: 90% !important;
        max-width: 300px !important;
        min-width: 0 !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    
    /* 物流车辆图片移动端优化 */
    .industry-block-imgs-vehicle {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        max-width: 98vw !important;
        justify-items: center !important;
    }
    
    .industry-img-vehicle-vertical { 
        max-width: 98vw !important;
        width: 90% !important;
        height: 140px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
    
    /* 产业板块移动端优化 - 统一容器样式 */
    .industries-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }
    
    .industry-card {
        background: #fff;
        padding: 20px 15px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: all 0.3s ease;
        /* 统一容器宽度 */
        width: 100%;
        box-sizing: border-box;
        /* 自适应高度，避免空白 */
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .industry-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
    
    .industry-card h3 {
        font-size: 1.4rem !important;
        margin-bottom: 12px;
        color: #2c3e50;
        font-weight: 700 !important;
        line-height: 1.3;
    }
    
    .industry-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #666;
        margin: 0;
        text-align: left;
        padding: 0 5px;
    }
    
    /* 产业详情页面的服务项目优化 */
    .service-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 20px;
    }
    
    .service-item {
        background: #fff;
        padding: 15px 12px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        /* 统一容器宽度 */
        width: 100%;
        box-sizing: border-box;
        /* 自适应高度 */
        min-height: auto;
    }
    
    .service-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
        color: #2c3e50;
        line-height: 1.3;
    }
    
    .service-item p {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #666;
        margin: 0;
    }
    
    /* 优势说明区域优化 */
    .advantages-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 20px;
        margin-top: 20px;
    }
    
    .advantage-item {
        background: #f8f9fa;
        padding: 15px 12px;
        border-radius: 8px;
        border-left: 4px solid #3498db;
        /* 统一容器样式 */
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
    }
    
    .advantage-item h4 {
        font-size: 0.95rem;
        margin-bottom: 6px;
        color: #2c3e50;
        font-weight: 600;
    }
    
    .advantage-item p {
        font-size: 0.8rem;
        line-height: 1.4;
        color: #555;
        margin: 0;
    }
    
    /* 移动端加载动画优化 */
    .fade-in-up {
        animation-duration: 0.4s;
    }
    
    .scroll-reveal {
        transition: all 0.4s ease;
    }
}

/* 中等移动设备优化 (480px-768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 平板端产业板块顶部标题优化 */
    .industry-overview-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        justify-items: center !important;
        max-width: 600px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }
    
    .overview-card {
        width: 100% !important;
        max-width: 250px !important;
        min-width: 140px !important;
        padding: 16px 20px !important;
        font-size: 1rem !important;
        justify-content: center !important;
    }
    
    /* 确保第5个卡片居中显示 */
    .overview-card:nth-child(5) {
        grid-column: 1 / -1 !important;
        max-width: 200px !important;
        margin: 0 auto !important;
    }
}

/* 小屏幕移动设备优化 (320px-480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content-overlay {
        left: 3%;
        right: 3%;
        padding: 20px 15px;
    }
    
    .hero-company-name {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .hero-company-slogan {
        font-size: 0.9rem;
    }
    
    .business-card {
        padding: 25px 15px;
    }
    
    .company-intro h2,
    .core-business h2,
    .contact-preview h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 10px;
        height: 50px;
    }
    
    .nav-logo-group {
        gap: 8px;
    }
    
    .nav-logo-img {
        width: 40px;
        height: 20px;
    }
    
    .nav-logo-cn {
        font-size: 0.9rem;
    }
    
    .nav-logo-en {
        font-size: 0.75rem;
    }
}

/* 超小屏幕设备优化 (最小320px) */
@media (max-width: 320px) {
    .hero-company-name {
        font-size: 1.1rem;
    }
    
    .hero-company-slogan {
        font-size: 0.85rem;
    }
    
    .company-intro h2,
    .core-business h2,
    .contact-preview h2 {
        font-size: 1.3rem;
    }
    
    .business-card h3 {
        font-size: 1.2rem;
    }
    
    .business-card p {
        font-size: 0.9rem;
    }
}

/* 触控反馈效果 */
@media (max-width: 768px) {
    .cta-button:active,
    .learn-more-btn:active,
    .contact-btn:active,
    .nav-link:active,
    .business-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* 移动端滚动优化 */
    .hero,
    .company-intro,
    .core-business,
    .contact-preview {
        scroll-margin-top: 60px;
    }
    
    /* 移动端文字选择优化 */
    .hero-company-name,
    .hero-company-slogan {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* 移动端图片比例优化 - 2:3比例 */
@media (max-width: 768px) {
    .hero-img-1920-800 {
        width: 100% !important;
        height: 150vw !important; /* 宽度的1.5倍高度，实现横向:纵向=2:3比例 */
        max-height: 80vh !important; /* 限制最大高度 */
        max-width: none !important; /* 移除最大宽度限制 */
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
        aspect-ratio: unset !important; /* 移除任何aspect-ratio设置 */
    }
    
    /* 确保英雄区域容器不限制图片高度 */
    .hero.hero-image-only {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        position: relative !important;
    }
    
    /* 确保图片容器不影响比例 */
    .hero-img-wrapper {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        overflow: visible !important;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-img-1920-800 {
        height: 75vw !important; /* 横屏时调整比例 */
        max-height: 40vh !important;
    }
    
    .hero-content-overlay {
        padding: 15px 20px;
    }
    
    .hero-company-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .hero-company-slogan {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

