/* 保持之前的 CSS 样式不变，重点检查以下几项 */
.common-title { text-align: center; margin: 40px 0; }
.common-title h2 { color: #00a0e9; position: relative; padding-bottom: 10px; font-size: 28px; }
.common-title h2:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 2px; background: #00a0e9; }

/* 公司介绍 */
/* 公司介绍页面样式 */
.about-page {
    padding: 40px 0 60px;
    background: #fff;
}

.about-title {
    text-align: center;
    margin-bottom: 40px;
}
.about-title h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1e2a3a;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.about-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2563eb;
}

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* 左侧轮播图容器 */
.about-slider {
    flex: 1.2;
    min-width: 280px;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}
.about-slider .swiper-container {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;   /* 宽高比 4:3，可按需修改 */
}
.about-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧文本框 */
.about-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}
.about-text p {
    margin-bottom: 16px;
}
.about-text a {
    color: #2563eb;
    text-decoration: none;
}
.about-text a:hover {
    text-decoration: underline;
}

/* Swiper 分页器样式 */
.about-slider .swiper-pagination-bullet-active {
    background: #2563eb;
}

/* Swiper 导航按钮样式（可选） */
.about-slider .swiper-button-prev,
.about-slider .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: 0.3s;
}
.about-slider .swiper-button-prev:after,
.about-slider .swiper-button-next:after {
    font-size: 18px;
}
.about-slider .swiper-button-prev:hover,
.about-slider .swiper-button-next:hover {
    background: rgba(0,0,0,0.8);
}

/* 响应式：移动端改为上下布局 */
@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        gap: 30px;
        display: block; /* 合并了后文移动端的部分关键逻辑 */
    }
    .about-title h2 {
        font-size: 26px;
    }
    .about-slider, .about-text {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }
    .about-slider .swiper-container, .about-slider .swiper {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .about-text {
        padding: 10px;
        font-size: 14px;
        line-height: 1.6;
    }
}

/* 企业文化与荣誉 */
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #eee; }
.grid-item { min-height: 140px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; text-align: center; }
.img-box img { max-width: 100%; height: auto; }
.text-box { background: #f9f9f9;font-size: 18px; }

.honor-list { display: flex; flex-wrap: wrap; }
.honor-item { flex: 0 0 25%; padding: 10px; }
.honor-img img { width: 100%; border: 1px solid #ddd; }

/* 发展历程 */
/* --- 通用样式 --- */
.history-section { padding: 60px 0; background: #f8f8f8; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: #00a0e9; font-size: 28px; font-weight: bold; }

/* --- PC端样式 (>=769px) --- */
@media (min-width: 769px) {
    .history-nav-wrapper { position: relative; padding: 0 50px; margin-bottom: 60px; }
    .timeline-line { position: absolute; top: 80px; left: 0; width: 100%; height: 2px; background: #ff0000; z-index: 1; }
    
    .year-item { text-align: center; cursor: pointer; position: relative; z-index: 2; padding-top: 20px; }
    .year-text { display: block; margin-bottom: 25px; font-size: 18px; color: #999; transition: 0.3s; }
    .dot { width: 14px; height: 14px; background: #fff; border-radius: 50%; display: inline-block; border: 3px solid #ccc; transition: 0.3s; }
    
    /* 重点：Swiper 激活时的样式 */
    .swiper-slide-thumb-active .year-text { color: #00a0e9; font-weight: bold; transform: scale(1.1); }
    .swiper-slide-thumb-active .dot { background: #00a0e9; border-color: #00a0e9; box-shadow: 0 0 0 4px rgba(0,160,233,0.2); }

    .history-detail { text-align: center; max-width: 800px; margin: 0 auto; min-height: 200px; }
    .history-detail h3.m-year { display: none; } /* PC端隐藏详情里的标题，因为上方已有年份 */
    
    .detail-box { font-size: 16px; line-height: 1.8; color: #333; padding: 20px; background: #fff; border-radius: 10px; }
    
    .history-prev, .history-next { color: #00a0e9 !important; width: 30px; }
    .arrow-down { color: #00a0e9; margin: 10px 0; font-size: 20px; }
}


/* --- 移动端样式 (<768px) --- */
@media (max-width: 768px) {
    /* 隐藏 PC 端专用的导航和箭头 */
    .history-nav-wrapper, .arrow-down { 
        display: none !important; 
    } 

    /* 强制 Swiper 容器取消滑动模式，改为普通块级排列 */
    .history-content-swiper {
        width: 100%;
        overflow-x: hidden !important;
    }

    .history-content-swiper .swiper-wrapper { 
        display: block !important; 
        height: auto !important; 
        position: relative; /* 为内部竖线提供定位基准 */
        padding-left: 20px; /* 整体向右微调 */
    }

    /* --- 核心：竖线设计 --- */
    /* 我们将线挂在 wrapper 上，通过 top 和 bottom 限制，使其只存在于第一个和最后一个圆点之间 */
    .history-content-swiper .swiper-wrapper::before {
        content: '';
        position: absolute;
        left: 65px;      /* 必须与下方圆点的 right 值和 h3 的 width 匹配 */
        top: 15px;       /* 从第一个圆点中心开始 */
        bottom: 45px;    /* 在最后一个内容块处结束，避免通天 */
        width: 2px;
        background: #ddd; 
        z-index: 1;
    }

.history-content-swiper .swiper-slide { 
        width: 100% !important;   /* 覆盖内联的 335px */
        box-sizing: border-box;   /* 确保 padding 不撑开宽度 */
        padding-right: 15px;      /* 增加右侧间距，防止文字贴边 */
        padding-left: 85px;       /* 保持你原本为年份留出的空间 */
        margin-bottom: 30px; 
        height: auto !important; 
        position: relative; 
        z-index: 2;
    }

    .history-detail { 
        text-align: left; 
    }

    /* --- 年份标签 --- */
    .history-detail h3 { 
        position: absolute; 
        left: 0; 
        top: 8px; 
        width: 60px; 
        font-size: 15px; 
        color: #333; 
        text-align: right; 
        margin: 0;
        font-weight: bold;
    }

    /* --- 核心：圆点设计 --- */
    .history-detail h3::after { 
        content: ''; 
        position: absolute; 
        right: -15px;    /* 调整这个值让圆点正好落在竖线上 */
        top: 5px; 
        width: 12px; 
        height: 12px; 
        background: #00a0e9; 
        border-radius: 50%; 
        z-index: 3; 
        border: 2px solid #fff; 
        box-shadow: 0 0 0 1px #00a0e9; /* 增加一层细边，让点更清晰 */
    }

    /* --- 文字内容框 --- */
.detail-box { 
        width: 100% !important;   /* 确保内容框占满父容器 */
        box-sizing: border-box;   /* 必须设置，否则 padding 会让框超出屏幕 */
        background: #f9f9f9; 
        padding: 15px;            /* 调整内部边距 */
        border-radius: 8px; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
        position: relative; 
        font-size: 14px;
        line-height: 1.6;
        color: #555;
        border-left: 3px solid #00a0e9; 
        word-wrap: break-word;    /* 强制长文字换行 */
    }

    /* 去掉内容框里可能存在的 P 标签默认边距 */
    .detail-box p {
        margin: 0;
    }
}