/* ============================================
   关于我们专属样式 (about.css)
============================================ */
/* 公司简介区块 */
.content-text p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; text-align: justify; }

.intro-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stat-item .stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-item .stat-num .plus { font-size: 1.8rem; color: var(--accent-orange); }
.stat-item .stat-name { font-size: 0.95rem; color: #666; font-weight: 500; }

.intro-image-grid { position: relative; height: 100%; min-height: 450px;}
.intro-image-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; }
.img-main { width: 85%; height: 350px; position: absolute; top: 0; right: 0; z-index: 1; }
.img-main img { width: 100%; height: 100%; }
.img-sub { width: 60%; height: 250px; position: absolute; bottom: 0; left: 0; z-index: 2; border: 8px solid #fff; border-radius: 20px;}
.img-sub img { width: 100%; height: 100%; border-radius: 12px; }

/* 智造基地 / 厂区展示图集 */
.factory-tour-wrap { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.factory-main-view { position: relative; width: 100%; padding-top: 52%; border-radius: 8px; overflow: hidden; margin-bottom: 24px; background: #000; }
.factory-main-view img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }

.factory-main-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); padding: 40px 30px 20px; color: #fff; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.factory-main-view:hover .factory-main-caption { transform: translateY(0); }
.factory-main-caption h4 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.factory-main-caption p { margin: 0; font-size: 1rem; opacity: 0.9; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* 缩略图滑动容器 */
.factory-slider-wrapper { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.factory-thumbs-track-wrap { flex: 1; overflow: hidden; position: relative; border-radius: 6px; }
.factory-thumbs-track { display: flex; gap: 16px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.factory-thumb { flex: 0 0 calc(25% - 12px); cursor: pointer; border-radius: 6px; overflow: hidden; position: relative; padding-top: 16%; transition: var(--transition); border: 2px solid transparent; }
.factory-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; filter: brightness(0.6); }
.factory-thumb.active img, .factory-thumb:hover img { filter: brightness(1); transform: scale(1.05); }
.factory-thumb.active { border-color: var(--primary); box-shadow: 0 4px 12px rgba(0, 71, 157, 0.2); }

/* 企业文化 */
.hengjia-culture { padding: 90px 0; background-color: #fff; } 
.culture-item-card { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 48px 32px; text-align: center; height: 100%; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; align-items: center; }
.culture-item-card .card-icon-wrap { width: 70px; height: 70px; background-color: rgba(0, 71, 157, 0.05); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 28px; transition: all 0.4s ease; }
.culture-item-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; }
.culture-item-card p { font-size: 0.98rem; color: var(--text-muted); line-height: 1.75; margin: 0; text-align: justify; }
.culture-item-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0, 71, 157, 0.12); border-color: rgba(0, 71, 157, 0.2); }
.culture-item-card:hover .card-icon-wrap { background-color: var(--primary); color: #fff; transform: scale(1.05); }

/* 发展历程 */
.timeline-section { padding: 90px 0; background-color: #fcfcfc; }
.timeline-section .section-title::after { background-color: var(--primary) }

.timeline-nav-wrapper { display: flex; align-items: center; position: relative; max-width: 1000px; margin: 0 auto 60px; }
.timeline-track-container { flex: 1; overflow: hidden; position: relative; margin: 0 20px; padding: 20px 0; }
.timeline-line { position: absolute; bottom: 25px; left: 70px; right: 70px; height: 2px; background: #e0e0e0; z-index: 1; }
.timeline-track { display: flex; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; z-index: 2; }
.timeline-node { flex: 0 0 140px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; height: 70px; }
.timeline-node .year { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #a0a0a0; margin-bottom: 14px; transition: all 0.3s; }
.timeline-node .dot { width: 10px; height: 10px; background: #d0d0d0; border-radius: 50%; transition: all 0.3s ease; position: relative; z-index: 3; }
.timeline-node.active .year { color: var(--primary); font-size: 1.6rem; transform: translateY(-4px); }
.timeline-node.active .dot { background: var(--primary); box-shadow: 0 0 0 4px #fcfcfc, 0 0 0 6px rgba(0,71,157,0.25); transform: scale(1.1); }

.timeline-content-wrapper { position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.timeline-pane { display: none; animation: tlFadeIn 0.5s ease forwards; }
.timeline-pane.active { display: block; }
@keyframes tlFadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.timeline-img-wrap { width: 100%; padding-top: 66.66%; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.06); background: #eee; }
.timeline-img-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.timeline-img-wrap:hover img { transform: scale(1.03); }
.timeline-text-wrap { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 24px; }
.timeline-text-wrap h3 { font-size: 1.7rem; font-weight: 800; color: #222226; margin-bottom: 20px; }
.timeline-text-wrap p { font-size: 1.05rem; color: #555; line-height: 1.85; text-align: justify; margin: 0; }

/* 荣誉资质与检测报告 */
.cert-filter-btn { display: inline-block; padding: 8px 24px; background: #fff; color: var(--text-muted); font-size: 1rem; font-weight: 600; border-radius: 30px; cursor: pointer; margin: 0 8px 12px; transition: var(--transition); border: 1px solid var(--border-light); }
.cert-filter-btn:hover { color: var(--primary); border-color: var(--primary); }
.cert-filter-btn.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); border-color: var(--primary); }

.cert-slider-wrapper { display: flex; align-items: center; gap: 16px; margin-top: 24px; position: relative; }
.cert-track-wrap { flex: 1; overflow: hidden; padding: 10px 0; }
.cert-track { display: flex; gap: 24px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.cert-item { flex: 0 0 calc(25% - 18px); min-width: 0; }

.cert-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; text-align: center; transition: var(--transition); height: 100%; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,71,157,0.3); }
.cert-img { padding: 20px; background: #fafbfc; height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-img img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.4s ease; }
.cert-card:hover .cert-img img { transform: scale(1.03); }
.cert-title { padding: 16px; font-size: 0.95rem; font-weight: 600; color: var(--text-dark); border-top: 1px solid var(--border-light); flex: 1; display: flex; align-items: center; justify-content: center; }

/* 响应式断点适配 */
@media (max-width: 991px) {
  .intro-image-grid { min-height: 350px; margin-top: 40px; }
  .cert-item { flex: 0 0 calc(33.333% - 16px); }
}
/* =========================================================
   修复替换：手机端荣誉资质展示排版优化
========================================================= */
@media (max-width: 767px) {
  .cert-track-wrap { 
    overflow-x: auto !important; 
    overflow-y: hidden !important; 
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory; 
    padding-bottom: 20px; /* 留出阴影空间 */
  }
  .cert-track-wrap::-webkit-scrollbar { display: none; }
  
  .cert-track { 
    gap: 15px !important; 
    transform: none !important; /* 屏蔽 JS 偏移干扰 */
  }
  
  /* 核心：放大手机端的单张证书展示面积，采用类似小红书的横滑比例 */
  .cert-item { 
    flex: 0 0 65vw !important; /* 一屏显示1个大的，露出第二个的一小半 */
    width: 65vw !important;
    scroll-snap-align: center; /* 松手自动居中 */
  }
  
  /* 调整手机端的证书图片容器高度，自适应证书本身的细长比例 */
  .cert-img { 
    height: auto !important; 
    aspect-ratio: 3 / 4; /* 专门适配 A4 纸比例的证书 */
    padding: 15px !important; 
  }
  
  /* 标题字体微调 */
  .cert-title { 
    font-size: 0.9rem !important; 
    padding: 12px 10px !important; 
    line-height: 1.4 !important;
  }
  
  /* 隐藏手机端荣誉资质两侧的极难点击的箭头 */
  #cPrev, #cNext { display: none !important; }
}
@media (max-width: 480px) { 
  .intro-stats { gap: 20px; justify-content: space-between; } 
}

/* =========================================================
   移动端专属深度优化：智造基地 & 荣誉资质分类按钮
========================================================= */
@media (max-width: 767px) {
    /* ================== 智造基地优化 ================== */
    /* 1. 放大主展示图片的高度比例，让图片更高更大 */
    .factory-main-view {
        padding-top: 70% !important; /* 原为 52%，现拉高显示面积 */
    }
    /* 2. 隐藏描述文字，只留干净的标题 */
    .factory-main-caption p {
        display: none !important; 
    }
    .factory-main-caption {
        padding: 15px 20px !important;
    }
    .factory-main-caption h4 {
        margin-bottom: 0 !important;
        font-size: 1.15rem !important;
    }
    /* 3. 适当放大下方缩略图（原本一屏4个，改成一屏3个变大） */
    .factory-thumb {
        flex: 0 0 calc(33.333% - 11px) !important; 
        padding-top: 24% !important;
    }

    /* ================== 荣誉资质排版优化 ================== */
    /* 4. 将原本换行杂乱的按钮，变成高级的“横向顺滑滑动Tab” */
    .cert-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* 开启 iOS 顺滑回弹 */
        gap: 12px;
        padding-bottom: 10px; /* 给下方阴影留出空间 */
        margin-bottom: 20px !important;
        justify-content: flex-start !important;
        
        /* 突破父级边距，让滑动可以一直贴到屏幕边缘 */
        padding-left: 15px; 
        padding-right: 15px;
        margin-left: -15px; 
        margin-right: -15px;
    }
    /* 隐藏底部难看的滚动条 */
    .cert-filters::-webkit-scrollbar {
        display: none;
    }
    .cert-filter-btn {
        margin: 0 !important; /* 清除原有的外边距 */
        flex-shrink: 0; /* 强制绝对不准挤压按钮 */
        padding: 8px 20px !important;
        font-size: 0.95rem !important;
    }
}