/* 关于我们页面样式 */

/* 页面标题 - 隐藏原始的页面标题 */
.page-title {
  display: none;
}

/* 全宽Banner样式已移至styles.css */

/* 公司简介 */
.about-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.profile-image {
  flex: 1;
  min-width: 300px;
}

.profile-image img {
  width: 100%;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}

.profile-text {
  flex: 1;
  min-width: 300px;
}

.profile-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.profile-text p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.8;
}

/* 数据计数器 */
.bg-light {
  position: relative;
  z-index: 1;
  background: #f9f9f9;
}

.data-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.counter-box {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 2rem;
  margin: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.counter-box:hover {
  transform: translateY(-5px);
}

.counter-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.counter-text {
  font-size: 1.1rem;
  color: #666;
}

/* 生产设备 */
#equipment {
  position: relative;
  z-index: 2;
}

#equipment .container {
  position: relative;
  z-index: 2;
}

.equipment-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* 确保设备列表项目不会被下一个区块覆盖 */
.equipment-item:last-child {
  margin-bottom: 5px;
}

.equipment-item {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  margin-right: 5px;
  margin-left: 5px;
}

.equipment-item:hover {
  transform: translateY(-5px);
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.equipment-image {
  height: 200px;
  overflow: hidden;
}

.equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.equipment-item:hover .equipment-image img {
  transform: scale(1.05);
}

.equipment-text {
  padding: 20px;
}

.equipment-text h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.equipment-text p {
  color: #666;
  line-height: 1.6;
}

/* 荣誉证书 */
#certificates {
  position: relative;
  z-index: 2;
}

.certificate-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.certificate-item {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  margin-right: 5px;
  margin-left: 5px;
}

.certificate-item:hover {
  transform: translateY(-5px);
  z-index: 3;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.certificate-image {
  height: 250px;
  overflow: hidden;
  padding: 15px;
}

.certificate-image img {
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.certificate-item:hover .certificate-image img {
  transform: scale(1.05);
}

.certificate-text {
  padding: 0 20px 20px;
}

.certificate-text h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.certificate-text p {
  color: #666;
  line-height: 1.6;
}

/* 常见问题 */
#faq {
  position: relative;
  z-index: 1;
}

.faq-items {
  margin-top: 2rem;
}

.faq-item {
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.faq-toggle {
  background: var(--primary-color);
  color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  color: #666;
  line-height: 1.8;
}

/* 调整证书和FAQ区域之间的间距 */
#certificates .container {
  position: relative;
  z-index: 2;
}

#certificates + #faq {
  margin-top: 0;
}

/* 响应式样式 */
@media (max-width: 768px) {
  /* Banner 样式已移至全局styles.css */

  /* 内容区块样式 */
  .about-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* 数据计数器特殊优化 */
  #our-strengths .container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  .data-counters {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .counter-box {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    margin: 5px 0;
    padding: 1.5rem;
  }

  .counter-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .counter-number {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .counter-text {
    font-size: 0.9rem;
  }

  /* 设备项目移动端优化 */
  .equipment-items {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .equipment-item {
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* 证书项目移动端优化 */
  .certificate-items {
    padding: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .certificate-item {
    margin-bottom: 20px;
  }

  /* 区域间间距优化 */
  #certificates {
    padding-bottom: 15px;
  }

  #faq {
    padding-top: 15px;
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  /* Banner 样式已移至全局styles.css */

  /* 内容区块样式 */
  .certificate-items {
    grid-template-columns: 1fr;
  }

  /* 数据计数器特殊优化 */
  .data-counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
    padding: 0 5px;
  }

  .counter-box {
    width: 100%;
    min-height: unset;
    margin: 5px 0;
    padding: 15px 10px;
  }

  /* 证书项目在小屏幕上的优化 */
  .certificate-item {
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* 确保足够的区域间隔 */
  #certificates {
    margin-bottom: 0;
  }
}

/* 统一section间距 */
.py-3 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* 设备和证书区域底部留白统一样式 */
.section-spacing-bottom {
  margin-bottom: 10px;
  position: relative;
}

/* 红框区域统一样式 */
.equipment-after-space,
.certificate-after-space {
  height: 5px;
  width: 100%;
  clear: both;
  display: block;
  border-bottom: 1px solid transparent;
}

@media (max-width: 768px) {
  .equipment-after-space,
  .certificate-after-space {
    height: 5px;
  }
}

/* 移动端Bootstrap选择框样式优化 */
.mobile-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 产品下拉菜单样式 */
.product-dropdown {
  position: relative;
}

.product-dropdown .dropdown-menu {
  width: 100%;
  padding: 0.5rem 0;
  max-height: 240px;
  overflow-y: auto;
}

.product-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-bottom: 1px solid #f8f9fa;
}

.product-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.product-dropdown .dropdown-item:active,
.product-dropdown .dropdown-item:focus,
.product-dropdown .dropdown-item:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* 移动端下拉菜单优化 */
.dropdown-menu-mobile {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 联系表单样式优化 */
@media (max-width: 768px) {
  .form-select,
  .mobile-select {
    padding-top: 1rem;
    padding-bottom: 1rem;
    height: auto;
  }

  .product-dropdown .dropdown-item {
    padding: 1rem;
    font-size: 1.1rem;
  }

  #contact .form-group {
    margin-bottom: 1.5rem;
  }
}

/* 更新产品选择框样式 */
.product-select-container {
  position: relative;
  width: 100%;
}

#product {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

#product:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 116, 217, 0.25);
}

/* 移动端样式优化 */
@media (max-width: 768px) {
  #product {
    font-size: 18px;
    padding: 15px;
    min-height: 55px;
    background-size: 20px 20px;
    background-position: right 15px center;
  }

  /* iOS系统优化 */
  select {
    text-align-last: center;
    direction: ltr;
  }

  /* Android系统优化 */
  @supports (-webkit-overflow-scrolling: touch) {
    #product {
      padding-right: 30px;
    }
  }
}

/* 移动端增强选择框样式 */
.mobile-select-native {
  font-size: 16px !important; /* 防止iOS缩放 */
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%),
                    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* 特定平台的样式 */
.ios-select {
  text-align: center !important;
  font-size: 18px !important;
  height: auto !important;
  padding: 16px !important;
  background-color: #f5f5f5 !important;
  border: 2px solid #007bff !important;
}

.android-select {
  background-color: #f9f9f9;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: 58px;
}




/* 元素间距 */
.data-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.equipment-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.certificate-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.faq-items {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* 内部元素内边距 */
.counter-box,
.equipment-item,
.certificate-item {
  padding: 2rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}

.faq-question {
  padding: 1.5rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}

.contact-form {
  padding: 2rem;
  background: #fff;
  border-radius: 5px;
  box-shadow: var(--box-shadow);
}



/* 响应式设计 */
@media (max-width: 992px) {
  .data-counters {
    grid-template-columns: repeat(2, 1fr);
  }

  .equipment-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificate-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .data-counters,
  .equipment-items,
  .certificate-items {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .py-4 {
    padding: 3rem 0;
  }

  .counter-box,
  .equipment-item,
  .certificate-item,
  .faq-question,
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}

/* 标题下方间距 */
.section-title {
  margin-bottom: 2rem;
}

/* 段落间距 */
p {
  margin-bottom: 1.5rem;
}

/* 图标下方间距 */
.counter-icon {
  margin-bottom: 1rem;
}

/* 按钮内边距 */
.btn {
  padding: 10px 30px;
}

/* 表单元素间距 */
.form-group {
  margin-bottom: 1.5rem;
}

/* 社交图标间距 */
.social a {
  margin-right: 1rem;
}

/* 二维码区域间距 */
.qrcode {
  margin-top: 2rem;
  text-align: center;
}

.qrcode p {
  margin-bottom: 1rem;
}
