﻿@charset "utf-8";

/* ===================== 全局基础适配 ===================== */
@media (max-width: 1299px) {
    /* 修复容器宽度，适配移动端 */
    #hotall {
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 统一文本行高和字体大小 */
    body {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 通用间距重置 */
    br {
        line-height: 1.2;
    }
}

/* ===================== 视频背景样式（移动端核心适配） ===================== */
@media (max-width: 1299px) {
    .video-bg-section {
        width: 100%;
        min-height: auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .video-container {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    .video-container video {
        width: 100% !important;
        height: auto !important;
        max-height: 250px;
        object-fit: cover !important;
    }

    /* 视频加载失败时的备用图片适配 */
    .video-container img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        object-fit: cover !important;
    }
}

/* ===================== 简介区域样式（移动端适配） ===================== */
@media (max-width: 1299px) {
    .intro-container {
        width: 100% !important;
        max-width: 100%;
        margin: 20px auto;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .intro-title {
        font-size: 22px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .intro-header {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .intro-header p {
        font-size: 14px;
        line-height: 1.7;
        text-align: justify;
    }

    /* 核心优势板块 - 移动端2列布局 */
    .advantages-section {
        margin: 20px 0;
        padding: 0 15px;
    }

    .advantages-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
        padding-left: 0;
    }

    .advantages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
        width: 100%;
    }

    .advantage-card {
        padding: 15px 10px;
        min-width: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .advantage-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .advantage-card p {
        font-size: 13px;
        line-height: 1.6;
    }

    .advantage-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    }
}

/* ===================== 服务卡片样式（移动端适配） ===================== */
@media (max-width: 1299px) {
    .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
        line-height: 1.4;
    }

    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 20px;
    }

    .service-card {
        padding: 15px 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .service-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    }

    .service-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .service-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .service-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .service-features {
        padding: 0;
        margin-top: 10px;
    }

    .service-features li {
        font-size: 12px;
        padding: 4px 0;
    }
}

/* ===================== 企业理念板块（移动端适配） ===================== */
@media (max-width: 1299px) {
    .philosophy-section {
        padding: 20px 15px;
        margin: 30px 0;
        border-radius: 8px;
    }

    .philosophy-content {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .philosophy-item {
        min-width: auto;
        padding: 10px 5px;
    }

    .philosophy-item h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .philosophy-item p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ===================== 小屏手机适配（≤480px） ===================== */
@media (max-width: 480px) {
    /* 视频适配更小屏幕 */
    .video-container video,
    .video-container img {
        max-height: 180px;
    }

    /* 简介标题更小 */
    .intro-title {
        font-size: 18px;
    }

    /* 优势板块小屏单列 */
    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* 服务卡片小屏单列 */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* 企业理念小屏单列 */
    .philosophy-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* 文本进一步缩小 */
    .intro-header p {
        font-size: 13px;
    }

    .advantage-card p,
    .philosophy-item p {
        font-size: 12px;
    }

    .service-features li {
        font-size: 11px;
    }
}

/* ===================== 兜底样式（确保交互和显示） ===================== */
@media (max-width: 1299px) {
    /* 修复图片显示 */
    img[src="/pinpai.png"] {
        width: 100%;
        max-width: 300px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* 修复字体大小和颜色 */
    font[size="2"] {
        font-size: 12px !important;
    }

    font[size="3"] {
        font-size: 14px !important;
    }

    /* 链接样式适配 */
    .intro-header a {
        color: #ff0000 !important;
        word-break: break-all;
    }

    /* 滚动动画适配移动端 */
    .intro-header, .advantage-card, .philosophy-section {
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }
}