/* 移动端文字排版优化 */

/* 基础文字优化 */
@media screen and (max-width: 768px) {
    /* 确保所有文字在移动端有合适的断行 */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        overflow-wrap: break-word;
    }
    
    /* 主标题优化 */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: center;
        max-width: 100%;
        white-space: normal !important;
    }
    
    /* 二级标题优化 */
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
        text-align: center;
        max-width: 100%;
    }
    
    /* 三级标题优化 */
    h3 {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        max-width: 100%;
    }
    
    /* 段落文字优化 */
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
        text-align: left;
        max-width: 100%;
    }
    
    /* 容器优化 */
    .container {
        width: 95% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* Hero区域文字优化 */
    .hero h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        max-width: 90%;
        margin: 0 auto 15px;
    }
    
    .hero p {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        max-width: 90%;
        margin: 0 auto;
    }
    
    /* Hero右侧内容优化 */
    .hero-content-right h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: center;
        max-width: 95%;
        margin: 0 auto 12px;
    }
    
    .hero-content-right p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        text-align: center;
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* 产品卡片文字优化 */
    .product-card h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        text-align: center;
    }
    
    .product-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: left;
        margin-bottom: 8px !important;
    }
    
    /* 页面标题优化 */
    .page-header h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        text-align: center;
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* 公司介绍文字优化 */
    .company-intro {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center;
        max-width: 100%;
    }
    
    /* 统计数字优化 */
    .stat-number {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    
    /* 导航文字优化 */
    nav a {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
        white-space: nowrap;
    }
    
    /* Logo文字优化 */
    .logo h1 {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        text-align: left;
        max-width: 200px;
    }
    
    /* 按钮文字优化 */
    .btn {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
        white-space: nowrap;
    }
    
    /* 页脚文字优化 */
    footer h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    footer h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    footer p, footer li {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* 视频信息文字优化 */
    .video-info h3 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    
    .video-info p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        text-align: center;
    }
}

/* 针对小屏幕设备的进一步优化 */
@media screen and (max-width: 480px) {
    /* 更小屏幕的文字优化 */
    h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Hero区域进一步优化 */
    .hero h1 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        max-width: 95%;
    }
    
    .hero p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        max-width: 95%;
    }
    
    .hero-content-right h1 {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content-right p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    /* 产品卡片进一步优化 */
    .product-card h3 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }
    
    .product-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* 页面标题进一步优化 */
    .page-header h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }
    
    /* Logo文字进一步优化 */
    .logo h1 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
        max-width: 180px;
    }
    
    /* 容器进一步优化 */
    .container {
        width: 98% !important;
        padding: 0 5px !important;
    }
    
    /* 统计数字进一步优化 */
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* 导航进一步优化 */
    nav a {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
    
    /* 按钮进一步优化 */
    .btn {
        font-size: 0.8rem !important;
        padding: 8px 14px !important;
    }
}

/* 针对极小屏幕的优化 */
@media screen and (max-width: 360px) {
    /* 极小屏幕的文字优化 */
    h1 {
        font-size: 1.3rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }
    
    h3 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Hero区域极小屏幕优化 */
    .hero h1 {
        font-size: 1.2rem !important;
        line-height: 1.1 !important;
    }
    
    .hero p {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
    
    /* Logo极小屏幕优化 */
    .logo h1 {
        font-size: 1rem !important;
        line-height: 1 !important;
        max-width: 160px;
    }
    
    /* 容器极小屏幕优化 */
    .container {
        width: 100% !important;
        padding: 0 3px !important;
    }
}

/* 特殊元素的文字优化 */
@media screen and (max-width: 768px) {
    /* 制造商信息文字优化 */
    .manufacturer-info h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        text-align: center;
        max-width: 100%;
    }
    
    /* 联系信息文字优化 */
    .contact-info h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    
    .info-item h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    .info-item p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* 表单标签优化 */
    label {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    /* 输入框文字优化 */
    input, textarea, select {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    
    /* 特殊横幅文字优化 */
    .specialization-banner p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
    
    .specialization-banner strong {
        font-size: 1.1rem !important;
    }
}

/* 确保所有文字在移动端都不会溢出 */
@media screen and (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 防止文字溢出的通用规则 */
    .text-content,
    .content-text,
    .description,
    .intro-text,
    .feature-text,
    .benefit-text {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
}

/* 产品页面特殊优化 */
@media screen and (max-width: 768px) {
    /* 产品介绍标题优化 */
    .products-intro h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        padding: 0 10px !important;
    }
    
    /* 产品介绍文字优化 */
    .intro-text {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
        text-align: center !important;
    }
    
    /* 产品特性标题优化 */
    .products-features h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        padding: 0 10px !important;
    }
    
    /* 特性卡片标题优化 */
    .feature-card h3 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    /* 特性卡片内容优化 */
    .feature-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-left: 0 !important;
        margin-top: 15px !important;
        text-align: left !important;
    }
    
    /* 特性卡片布局优化 */
    .feature-card > div:first-child {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    .feature-card > div:first-child > div {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    /* 解决方案展示标题优化 */
    .product-presentation h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        padding: 0 10px !important;
    }
    
    /* 解决方案说明文字优化 */
    .presentation-content p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* 功率解决方案标题优化 */
    .solution-title h3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    /* 被动元件标题优化 */
    .passive-components h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        padding: 0 10px !important;
    }
    
    /* 被动元件说明文字优化 */
    .passive-content p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* 产品卡片内边距优化 */
    .intro-card {
        padding: 25px 20px !important;
        margin: 0 10px !important;
    }
    
    .feature-card {
        padding: 20px 15px !important;
        margin: 0 10px !important;
    }
    
    .power-solution-item {
        padding: 25px 15px !important;
        margin: 0 10px !important;
    }
}

@media screen and (max-width: 480px) {
    /* 小屏幕产品页面进一步优化 */
    .products-intro h2 {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        padding: 0 5px !important;
    }
    
    .intro-text {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 10px !important;
    }
    
    .products-features h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px !important;
    }
    
    .feature-card h3 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .feature-card p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .product-presentation h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px !important;
    }
    
    .presentation-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        padding: 0 10px !important;
    }
    
    .solution-title h3 {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
    }
    
    .passive-components h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px !important;
    }
    
    .passive-content p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        padding: 0 10px !important;
    }
    
    /* 进一步减少内边距 */
    .intro-card {
        padding: 20px 15px !important;
        margin: 0 5px !important;
    }
    
    .feature-card {
        padding: 15px 10px !important;
        margin: 0 5px !important;
    }
    
    .power-solution-item {
        padding: 20px 10px !important;
        margin: 0 5px !important;
    }
}

@media screen and (max-width: 360px) {
    /* 极小屏幕产品页面优化 */
    .products-intro h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .intro-text {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    .products-features h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .feature-card h3 {
        font-size: 1rem !important;
        line-height: 1 !important;
    }
    
    .feature-card p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }
    
    .product-presentation h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .presentation-content p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .solution-title h3 {
        font-size: 1.3rem !important;
        line-height: 1 !important;
    }
    
    .passive-components h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .passive-content p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
}

/* 关于页面特殊优化 */
@media screen and (max-width: 768px) {
    /* 故事部分文字优化 */
    .story-section h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        text-align: center;
    }
    
    .story-text p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
        text-align: left;
        padding: 0 10px;
    }
    
    /* 关于内容文字优化 */
    .about-text-centered h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    .about-text-centered p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        text-align: center;
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* 工程画廊标题优化 */
    .team h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    /* 画廊项目标题优化 */
    .gallery-description h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        text-align: center;
        padding: 0 5px;
    }
    
    /* 制造商部分标题优化 */
    .manufacturers h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    /* 制造商信息优化 */
    .manufacturer-info h3 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-align: center;
        padding: 0 5px;
    }
    
    /* 下载按钮文字优化 */
    .download-btn {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        line-height: 1.2 !important;
    }
}

@media screen and (max-width: 480px) {
    /* 小屏幕关于页面进一步优化 */
    .story-section h2 {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .story-text p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        padding: 0 5px;
    }
    
    .about-text-centered h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .about-text-centered p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }
    
    .team h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .gallery-description h3 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        padding: 0 3px;
    }
    
    .manufacturers h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .manufacturer-info h3 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
        padding: 0 3px;
    }
    
    .download-btn {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
}

@media screen and (max-width: 360px) {
    /* 极小屏幕关于页面优化 */
    .story-section h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .story-text p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .about-text-centered h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .about-text-centered p {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    .team h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .gallery-description h3 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }
    
    .manufacturers h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .manufacturer-info h3 {
        font-size: 0.8rem !important;
        line-height: 1 !important;
    }
}

/* 联系页面特殊优化 */
@media screen and (max-width: 768px) {
    /* 联系信息标题优化 */
    .contact-info h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    /* 信息项目优化 */
    .info-item h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
        text-align: left;
    }
    
    .info-item p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
        text-align: left;
    }
    
    /* 联系介绍优化 */
    .contact-intro p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center;
        padding: 0 15px;
    }
    
    /* 表单优化 */
    .form-group label {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        padding: 10px !important;
    }
}

@media screen and (max-width: 480px) {
    /* 小屏幕联系页面优化 */
    .contact-info h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .info-item h3 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .info-item p {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    .contact-intro p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }
    
    .form-group label {
        font-size: 0.85rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem !important;
        padding: 8px !important;
    }
}

@media screen and (max-width: 360px) {
    /* 极小屏幕联系页面优化 */
    .contact-info h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .info-item h3 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }
    
    .info-item p {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }
    
    .contact-intro p {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
}

/* 主页特殊优化 */
@media screen and (max-width: 768px) {
    /* 公司介绍横幅优化 */
    .company-intro {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
        padding: 0 10px !important;
    }
    
    .company-intro .highlight {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        display: inline !important;
    }
    
    /* 专业化横幅优化 */
    .specialization-banner p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 10px !important;
        text-align: center !important;
    }
    
    .specialization-banner strong {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    /* 统计数据优化 */
    .who-we-are-stats .stat-number {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .who-we-are-stats .stat-label {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        text-align: center;
    }
    
    /* 为什么选择我们标题优化 */
    .featured-products h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    /* 公司参观标题优化 */
    .video-section h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 25px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    /* CTA部分优化 */
    .cta h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        text-align: center;
        padding: 0 10px;
    }
    
    .cta p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: center;
        padding: 0 15px;
        margin-bottom: 20px !important;
    }
    
    /* 专业化横幅内边距优化 */
    .specialization-banner {
        padding: 15px 20px !important;
        margin: 0 10px 30px !important;
    }
}

@media screen and (max-width: 480px) {
    /* 小屏幕主页进一步优化 */
    .company-intro {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 5px !important;
    }
    
    .company-intro .highlight {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .specialization-banner p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        padding: 0 5px !important;
    }
    
    .specialization-banner strong {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .who-we-are-stats .stat-number {
        font-size: 1.8rem !important;
    }
    
    .who-we-are-stats .stat-label {
        font-size: 0.8rem !important;
    }
    
    .featured-products h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .video-section h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .cta h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        padding: 0 5px;
    }
    
    .cta p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        padding: 0 10px;
    }
    
    .specialization-banner {
        padding: 12px 15px !important;
        margin: 0 5px 25px !important;
    }
}

@media screen and (max-width: 360px) {
    /* 极小屏幕主页优化 */
    .company-intro {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    .company-intro .highlight {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }
    
    .specialization-banner p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .specialization-banner strong {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }
    
    .who-we-are-stats .stat-number {
        font-size: 1.6rem !important;
    }
    
    .who-we-are-stats .stat-label {
        font-size: 0.75rem !important;
    }
    
    .featured-products h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .video-section h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .cta h2 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }
    
    .cta p {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }
    
    .specialization-banner {
        padding: 10px 12px !important;
        margin: 0 3px 20px !important;
    }
}

/* 通用移动端文字溢出防护 */
@media screen and (max-width: 768px) {
    /* 防止所有文字元素溢出 */
    h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th, label, input, textarea, button {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
    }
    
    /* 防止长单词或链接溢出 */
    .long-text, .email-text, .url-text, .phone-text {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
    }
    
    /* 确保表格在移动端不溢出 */
    table {
        width: 100% !important;
        table-layout: fixed !important;
    }
    
    table td, table th {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 确保图片不溢出 */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* 防止预格式化文本溢出 */
    pre, code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 确保按钮文字不溢出 */
    .btn, button, input[type="submit"], input[type="button"] {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 确保链接文字不溢出 */
    a {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 特殊处理长邮箱和电话号码 */
    a[href^="mailto:"], a[href^="tel:"] {
        word-break: break-all !important;
    }
}

/* 极小屏幕的额外保护 */
@media screen and (max-width: 360px) {
    /* 在极小屏幕上进一步减少字体大小防止溢出 */
    * {
        font-size: inherit !important;
        line-height: inherit !important;
    }
    
    /* 确保容器不会太宽 */
    .container, .content, .wrapper {
        max-width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* 防止固定宽度元素溢出 */
    div, section, article, aside, header, footer, nav {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
} 