/* =============================================
   about.css - 关于我们页面专属样式
   前缀: ab-
   ============================================= */

/* ===== Hero Banner ===== */
.ab-hero { position: relative; padding: 160px 0 80px; background: linear-gradient(135deg, #0f1724 0%, #1e3a5f 50%, #2563eb 100%); overflow: hidden; text-align: center; }
.ab-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.3) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(37,99,235,.2) 0%, transparent 50%); }
.ab-hero-image { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 0; }
.ab-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,36,.7) 0%, rgba(30,58,95,.5) 100%); z-index: 1; }
.ab-hero-inner { position: relative; z-index: 2; color: #fff; }
.ab-hero-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin: 0 0 12px; line-height: 1.25; }
.ab-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.75); margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Section 基础 ===== */
.ab-section { padding: 80px 0; }
.ab-section-alt { background: #f8fafc; }
.ab-section-header { text-align: center; margin-bottom: 48px; }
.ab-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; color: #0f172a; margin: 0 0 10px; line-height: 1.25; }
.ab-desc { font-size: .95rem; color: #64748b; margin: 0 auto; max-width: 700px; line-height: 1.7; }
.ab-empty { text-align: center; padding: 60px 20px; color: #94a3b8; font-size: .95rem; }

/* ===== 板块1：企业介绍 ===== */
.ab-intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.ab-intro-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-intro-img-wrap { border-radius: 14px; overflow: hidden; background: #f1f5f9; }
.ab-intro-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 200px; }
.ab-intro-content h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0 0 10px; }
.ab-intro-content p { font-size: 16px; color: #555555; line-height: 1.8; margin: 0 0 12px; }
.ab-editor-content { font-size: 16px; color: #555555; line-height: 1.8; }
.ab-editor-content p { margin-bottom: 12px; }
.ab-editor-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }

/* ===== 板块2：五大服务保障 ===== */
.ab-guarantee-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.ab-guarantee-card {
  background: #fff; border: 1px solid rgba(213,224,220,.5); border-radius: 12px;
  padding: 40px 28px; text-align: center;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; height: 100%;
}
.ab-guarantee-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(133,206,3,.08) 50%, rgba(133,206,3,.15) 100%);
  transition: height .4s cubic-bezier(.4,0,.2,1);
  border-radius: 0 0 12px 12px; pointer-events: none;
}
.ab-guarantee-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,.08), 0 4px 12px rgba(133,206,3,.08); border-color: rgba(133,206,3,.15); }
.ab-guarantee-card:hover::after { height: 80px; }
.ab-guarantee-icon {
  width: 84px; height: 84px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.ab-guarantee-icon svg { width: 46px; height: 46px; color: #85ce03; transition: transform .4s ease; }
.ab-guarantee-card:hover .ab-guarantee-icon svg { transform: scale(1.1); }
.ab-guarantee-title {
  font-size: clamp(0.875rem, 1.2vw, 1.25rem); font-weight: 700;
  color: #1e293b; margin: 0 0 12px; white-space: nowrap;
}
.ab-guarantee-text {
  font-size: clamp(0.75rem, 1vw, 0.9375rem); color: #64748b;
  line-height: 1.7; margin: 0; flex: 1;
}

/* ===== 板块3：厂区生产实力 ===== */
.ab-factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ab-factory-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #eef2f6; border-radius: 14px;
  overflow: hidden; transition: all .3s ease;
}
.ab-factory-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,.1); border-color: rgba(37,99,235,.2); transform: translateY(-4px); }
.ab-factory-img { height: 180px; overflow: hidden; background: #f8fafc; }
.ab-factory-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ab-factory-card:hover .ab-factory-img img { transform: scale(1.05); }
.ab-factory-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; }
.ab-factory-body h4 { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.ab-factory-body p { font-size: .82rem; color: #64748b; line-height: 1.5; margin: 0; flex: 1; }

/* ===== 板块4：企业资质与荣誉 ===== */
.ab-qual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.ab-qual-card {
  background: #fff; border: 1px solid #eef2f6; border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: all .3s ease; text-align: center;
}
.ab-qual-card:hover { box-shadow: 0 8px 30px rgba(37,99,235,.12); border-color: rgba(37,99,235,.2); transform: translateY(-3px); }
.ab-qual-img { height: 160px; overflow: hidden; background: #f8fafc; display: flex; align-items: center; justify-content: center; padding: 12px; }
.ab-qual-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .4s; }
.ab-qual-card:hover .ab-qual-img img { transform: scale(1.08); }
.ab-qual-name { font-size: .82rem; font-weight: 600; color: #475569; margin: 0; padding: 10px 12px 12px; }

/* ===== 板块5：发展历程（横向时间轴） ===== */
.ab-timeline {
  position: relative; padding: 20px 0 0;
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #2563eb #e2e8f0;
}
.ab-timeline::-webkit-scrollbar { height: 6px; }
.ab-timeline::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 3px; }
.ab-timeline::-webkit-scrollbar-thumb { background: #2563eb; border-radius: 3px; }
.ab-timeline::before {
  content: ''; position: absolute; left: 0; right: 0; top: 44px;
  height: 3px; background: linear-gradient(90deg, #2563eb 0%, #93c5fd 100%);
  border-radius: 3px; z-index: 0;
}
.ab-timeline-item {
  position: relative; flex: 0 0 220px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center;
  padding: 0; z-index: 1;
}
.ab-timeline-dot {
  position: relative; left: auto; top: auto;
  width: 18px; height: 18px; background: #2563eb; border: 3px solid #fff;
  border-radius: 50%; box-shadow: 0 0 0 3px #2563eb;
  margin-bottom: 20px; flex-shrink: 0;
}
.ab-timeline-content {
  background: #fff; border: 1px solid #eef2f6; border-radius: 12px;
  padding: 20px 20px; transition: all .3s ease; width: 100%; text-align: center;
}
.ab-timeline-content:hover { box-shadow: 0 8px 30px rgba(37,99,235,.08); border-color: rgba(37,99,235,.15); transform: translateY(-4px); }
.ab-timeline-year {
  display: inline-block; padding: 2px 12px; font-size: .8rem; font-weight: 700;
  color: #2563eb; background: #eff6ff; border-radius: 20px; margin-bottom: 8px;
}
.ab-timeline-content h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.ab-timeline-content p { font-size: .88rem; color: #64748b; line-height: 1.6; margin: 0; }

/* ===== 板块6：专业技术工程团队 ===== */
.ab-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ab-team-card {
  text-align: center; background: #fff; border: 1px solid #eef2f6;
  border-radius: 14px; padding: 36px 20px; transition: all .3s ease;
}
.ab-team-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,.1); border-color: rgba(37,99,235,.2); transform: translateY(-4px); }
.ab-team-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb; margin-bottom: 16px;
}
.ab-team-card h4 { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.ab-team-card p { font-size: .85rem; color: #64748b; line-height: 1.6; margin: 0; }

/* ===== 板块7：CTA ===== */
.ab-cta { padding: 60px 0; background: linear-gradient(135deg, #0f1724 0%, #1e3a5f 50%, #2563eb 100%); }
.ab-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ab-cta-content h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 10px; }
.ab-cta-content p { font-size: 1rem; color: rgba(255,255,255,.75); margin: 0; }
.ab-cta-actions { display: flex; gap: 16px; flex-shrink: 0; }
.ab-cta-btn {
  display: inline-block; padding: 14px 32px; font-size: 1rem; font-weight: 700;
  border-radius: 12px; text-decoration: none; transition: all .3s ease;
}
.ab-cta-btn-primary { background: #fff; color: #2563eb; }
.ab-cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.25); }
.ab-cta-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.ab-cta-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ===== 资质图片放大弹窗 ===== */
.ab-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.7); display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ab-modal-overlay.active { display: flex; }
.ab-modal-content {
  background: #fff; border-radius: 16px; padding: 24px;
  max-width: 90vw; max-height: 90vh; text-align: center;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ab-modal-close {
  position: absolute; top: 8px; right: 12px;
  font-size: 1.5rem; border: none; background: none; cursor: pointer;
  color: #94a3b8; line-height: 1; padding: 4px 8px;
}
.ab-modal-close:hover { color: #0f172a; }
.ab-modal-content img { max-width: 70vw; max-height: 70vh; object-fit: contain; border-radius: 8px; }
.ab-modal-content p { font-size: .9rem; color: #475569; margin: 12px 0 0; font-weight: 600; }

/* ===== 响应式 ===== */
@media(max-width: 992px) {
  .ab-hero { padding: 140px 0 60px; }
  .ab-section { padding: 60px 0; }
  .ab-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .ab-guarantee-grid { grid-template-columns: repeat(3, 1fr); }
  .ab-factory-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-team-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-cta-inner { flex-direction: column; text-align: center; }
}
@media(max-width: 640px) {
  .ab-hero { padding: 120px 0 50px; }
  .ab-section { padding: 40px 0; }
  .ab-section-header { margin-bottom: 32px; }
  .ab-intro-images { grid-template-columns: 1fr; }
  .ab-guarantee-grid { grid-template-columns: 1fr; gap: 20px; }
  .ab-factory-grid { grid-template-columns: 1fr; }
  .ab-qual-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-team-grid { grid-template-columns: 1fr; }
  .ab-timeline { padding: 16px 0 0; gap: 16px; }
  .ab-timeline-item { flex: 0 0 180px; }
  .ab-timeline-dot { width: 16px; height: 16px; }
}
