/* about.css - 从参考页落地官网：关于智诚页面专用样式 */

.page-about-us {
  background: #ffffff;
}

.page-breadcrumb {
  padding: 14px 0;
  background: #f7f7f7;
  border-bottom: 1px solid #e8e8e8;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: #555;
}

.breadcrumb-nav a {
  color: #333;
  font-weight: 600;
}

.breadcrumb-nav a:hover,
.breadcrumb-nav a:focus-visible {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: #b0b0b0;
  font-weight: 500;
}

.breadcrumb-current {
  color: #888;
  font-weight: 500;
}

/* 分屏布局基础骨架 */
.about-split {
  display: flex;
  flex-direction: row;
  min-height: 480px;
  width: 100%;
}

.about-split-half {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-split-left {
  align-items: flex-start;
  padding-left: max(24px, calc((100vw - var(--container)) / 2));
  padding-right: 30px;
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: hidden;
}

.about-split-left>* {
  width: 100%;
  max-width: calc(var(--container) / 2);
}

.about-split-right {
  align-items: flex-start;
  padding-right: max(24px, calc((100vw - var(--container)) / 2));
  padding-left: 30px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.about-split-image {
  overflow: hidden;
  padding: 0;
}

.about-split-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 联系方式右侧图片：使用单张握手图贴满 */
.about-contact .about-split-right.about-split-image {
  padding: 0;
  align-self: stretch;
}

/* 1. 首屏 Banner (同步 products.html 结构) */
.about-page-hero {
  position: relative;
  min-height: clamp(220px, 32vw, 380px);
  overflow: hidden;
}

.about-page-hero .product-page-hero-stripes {
  display: flex;
  flex-direction: row;
  min-height: clamp(220px, 32vw, 380px);
}

.about-page-hero .product-page-hero-stripe-red-light {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  background: #DCDCDC;
  /* 背景颜色改为用户要求的灰色 */
}

/* 左侧装饰图：与产品中心首屏「编组.png」同款定位 */
.about-page-hero .about-page-hero-decor {
  position: absolute;
  top: 50%;
  right: clamp(0.4rem, 3vw, 2rem);
  z-index: 0;
  width: auto;
  max-width: min(46vw, clamp(200px, 38vw, 380px));
  max-height: calc(100% - clamp(1.25rem, 4vw, 2.5rem));
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  object-fit: contain;
  pointer-events: none;
}

.about-page-hero .product-page-hero-stripe-gray {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  overflow: hidden;
  background: #eeeeee;
}

.about-page-hero .about-page-hero-building {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.about-page-hero .product-page-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  min-height: clamp(220px, 32vw, 380px);
  width: 100%;
  /* 同步 products.css 的对齐逻辑 */
  padding: clamp(1.25rem, 4vw, 2.75rem) clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 4vw, 2.75rem) max(24px, calc((100vw - var(--container)) / 2));
  max-width: 24rem;
}

/* 文字颜色覆盖 (设计稿为红色) */
.about-page-hero .product-page-hero-title {
  margin: 0;
  font-size: 34px;
  /* 中文文案字号改为 34px */
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  word-break: keep-all;
  color: var(--color-primary);
}

.about-page-hero .product-page-hero-subtitle {
  margin: 0.65rem 0 0;
  font-size: 36px;
  /* 英文文案字号改为 36px */
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* 移动端特殊适配 */
@media (max-width: 639px) {
  .about-page-hero {
    min-height: 0;
  }

  .about-page-hero .product-page-hero-stripes {
    flex-direction: column;
    min-height: 0;
  }

  .about-page-hero .product-page-hero-stripe-gray {
    min-height: clamp(200px, 52vw, 300px);
  }

  .about-page-hero .about-page-hero-decor {
    display: none;
  }

  .about-page-hero .product-page-hero-copy {
    min-height: 0;
    align-items: center;
    max-width: 100%;
    padding: clamp(1.75rem, 6vw, 2.75rem) 1rem;
    text-align: center;
  }
}

/* 关于我们文字介绍区 */
.about-intro-section {
  padding: 80px 0;
  background: #ffffff;
}

.about-intro-title {
  font-size: 30px;
  font-weight: 800;
  color: #000;
  margin-top: 0;
  margin-bottom: 30px;
}

.about-intro-text {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 40px;
}

.about-intro-text p {
  margin: 0 0 20px;
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

.about-btn-honor {
  border-radius: 4px;
  min-height: 44px;
}

/* 企业文化区 */
.about-culture-section {
  padding: 80px 0;
  background: #f6f6f6;
}

.culture-header {
  margin-bottom: 50px;
}

.culture-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #000;
  margin: 0 0 16px;
}

.culture-header p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.culture-card {
  background: #ffffff;
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.culture-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.culture-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  overflow: hidden;
}

.culture-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.culture-title {
  margin: 0 0 16px;
}

.culture-title .cn {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #000;
  margin-bottom: 6px;
}

.culture-title .en {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.culture-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* 联系方式区 */
.about-bg-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.about-contact .about-split-left.about-bg-primary {
  overflow: hidden;
}

/* 与 products.html 首屏红条内「编组.png」装饰图一致 */
.about-contact .about-contact-strip-bg {
  position: absolute;
  top: 50%;
  right: clamp(0.4rem, 3vw, 2rem);
  z-index: 0;
  width: auto;
  max-width: min(46vw, clamp(200px, 38vw, 380px));
  max-height: calc(100% - clamp(1.25rem, 4vw, 2.5rem));
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  object-fit: contain;
  pointer-events: none;
}

.about-contact-content {
  position: relative;
  z-index: 2;
}

.about-contact-title {
  margin: 0 0 46px;
}

.about-contact-title .cn {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.about-contact-title .en {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-label {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.contact-body {
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.contact-body-large {
  font-size: 20px;
  font-weight: 500;
}

/* 响应式适配 */
@media (max-width: 991px) {
  .about-split {
    flex-direction: column;
  }

  .about-split-half {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .about-split-left>* {
    max-width: 100%;
  }

  .about-split-left,
  .about-split-right {
    padding: 60px 40px;
  }

  .about-contact .about-split-right.about-split-image {
    padding: 0;
  }

  .about-split-image {
    min-height: 360px;
  }

  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero-decor {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .contact-item-header {
    justify-content: center;
  }

  .contact-body {
    padding-left: 0;
  }
}

@media (max-width: 639px) {

  .about-contact .about-contact-strip-bg {
    display: none;
  }

  .about-split-left,
  .about-split-right {
    padding: 40px 20px;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .about-title-large .cn {
    font-size: 32px;
  }

  .about-title-large .en {
    font-size: 20px;
  }
}

/* ==========================================
   荣誉资质页面 (honors.html) 专属样式
   ========================================== */

.honors-section {
  padding: 80px 0 100px;
  padding-top: 40px;
  background: #f8f8f8;
}

.honors-tabs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.honors-tab {
  font-size: 16px;
  font-weight: 500;
  color: #030303;
  background: #ffffff;
  border: none;
  border-radius: 20px;
  height: 40px;
  line-height: 40px;
  padding: 0 30px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.honors-tab:hover {
  background: #f0f0f0;
}

.honors-tab.active {
  color: #ffffff;
  background: #d50217;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.honor-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.honor-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  transform: translateY(-5px);
}

.honor-card-image {
  padding: 20px;
  aspect-ratio: 278 / 394;
  overflow: hidden;
  background: #fff;
}

.honor-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.honor-card:hover .honor-card-image img {
  transform: scale(1.02);
}

.honor-card-text {
  padding: 0 30px 40px;
  text-align: left;
}

.honor-card-sub {
  display: block;
  font-size: 14px;
  color: #999999;
  margin-bottom: 6px;
}

.honor-card-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #000000;
  margin: 0;
}

/* 响应式适配 */
@media (max-width: 1199px) {
  .honors-tabs {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 639px) {
  .honors-section {
    padding: 40px 0 60px;
  }

  .honors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .honors-tabs {
    gap: 15px;
    margin-bottom: 30px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }

  .honors-tab {
    font-size: 14px;
    padding: 0 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* 分页组件样式 (右下角完全还原) */
.pagination-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: flex-end;
}

.custom-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #333;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #dcdfe6;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #606266;
  font-size: 14px;
  transition: all 0.3s;
  padding: 0;
  box-sizing: border-box;
}

.pagination-btn:hover {
  border-color: #c0c4cc;
}

.pagination-btn[disabled] {
  cursor: not-allowed;
  background-color: #f4f4f5;
  color: #c0c4cc;
  border-color: #ebeef5;
}

.pagination-btn.active {
  background-color: #d50217;
  color: #fff;
  border-color: #d50217;
  font-weight: 600;
}

.pagination-select {
  height: 32px;
  border: 1px solid #dcdfe6;
  background-color: #fff;
  border-radius: 4px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.pagination-select .select-value {
  color: #999;
}

.pagination-input-box {
  width: 48px;
  height: 32px;
}

.pagination-jump-input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  text-align: center;
  outline: none;
  font-size: 14px;
  color: #606266;
  transition: border-color 0.3s;
}

.pagination-jump-input:focus {
  border-color: #d50217;
}

.icon-arrow-left, .icon-arrow-right, .icon-arrow-down {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #a8a8a8;
  border-right: 1.5px solid #a8a8a8;
}

.pagination-btn[disabled] .icon-arrow-left,
.pagination-btn[disabled] .icon-arrow-right {
  border-color: #c0c4cc;
}

.icon-arrow-left {
  transform: rotate(-135deg);
  margin-left: 2px;
}
.icon-arrow-right {
  transform: rotate(45deg);
  margin-right: 2px;
}
.icon-arrow-down {
  transform: rotate(135deg);
  margin-top: -3px;
}

@media (max-width: 639px) {
  .pagination-wrapper {
    justify-content: center;
  }
  .custom-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* 证书弹窗样式 */
.honor-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.honor-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.honor-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.honor-modal-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

.honor-modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.honor-modal-company {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  margin: 0 0 30px;
}

.honor-modal-image-box {
  border: 1px solid #eee;
  padding: 10px;
}

.honor-modal-image-box img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.honor-modal-close {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  transition: opacity 0.3s;
}

.honor-modal-close:hover {
  opacity: 0.8;
}

.icon-close-circle {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.icon-close-circle::before,
.icon-close-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
}

.icon-close-circle::before { transform: translate(-50%, -50%) rotate(45deg); }
.icon-close-circle::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 767px) {
  .honor-modal-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .honor-modal-close {
    align-self: flex-end;
  }
  .honor-modal-content {
    padding: 20px;
  }
  .honor-modal-company {
    font-size: 18px;
    margin-bottom: 20px;
  }
}