/*----------------------------------
  1. 关于模块主体样式
  -----------------------------------*/
.about-section {
  position: relative;
  overflow: hidden;
}

.about-thumb {
  position: relative;
}

.about-thumb img {
  width: 100%;
}

.about-text {
  position: absolute;
  top: 15px;
  left: -54px;
  padding: 14px 0;
  background: var(--color-primary);
}

.about-text h5 {
  padding: 0 50px;
  font-size: 26px;
  color: #ffffff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.about-text::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 100%;
  left: 0;
  border: 27px solid var(--color-primary);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

/* RTL 镜像适配 */
[dir="rtl"] .about-text,
html[lang^="ar"] .about-text {
  left: auto !important;
  right: -54px !important;
}

[dir="rtl"] .about-text::after,
html[lang^="ar"] .about-text::after {
  left: auto !important;
  right: 0 !important;
  border-left-color: var(--color-primary) !important;
  border-right-color: transparent !important;
}

.about-list ul {
  list-style: none;
  padding: 0;
}

.about-list ul li {
  position: relative;
  padding-left: 25px;
  color: var(--title-text-color);
  font-weight: 500;
}

.about-list ul li + li {
  margin-top: 15px;
}

.about-list ul li i {
  position: absolute;
  left: 0;
  font-size: 18px;
  color: var(--color-primary);
}

.about-info {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
}

.about-us-icon {
  margin-left: 32px;
}

.about-us-icon i {
  width: 60px;
  height: 60px;
  border-radius: 32px;
  line-height: 60px;
  text-align: center;
  font-size: 24px;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 20%, #ffffff 80%);
  display: inline-block;
}

.about-us-phone {
  margin-left: 20px;
}

.about-us-phone h5 {
  font-size: 18px;
  line-height: 24px;
  color: var(--title-text-color);
  font-weight: 400;
  margin: 0;
}

.about-us-phone h5 a {
  display: block;
  line-height: 42px;
  font-weight: 500;
}

.about-numbar h4 {
  display: inline-block;
  font-size: 32px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 5px;
}

.about-numbar .counter-per {
  color: #ffffff;
  font-size: 20px;
}

.about-numbar p {
  font-size: 15px;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 15px;
}

.about-section-sub-title h4 {
  font-size: 24px;
  line-height: 24px;
  color: var(--color-primary);
  font-weight: 500;
  position: relative;
  display: inline-block;
  margin: 0;
}

.about-section-sub-title h4::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  top: 6px;
  right: -48px;
}

.about-section-sub-title h4::after {
  position: absolute;
  content: "";
  height: 2px;
  width: 35px;
  background: var(--color-primary);
  top: 15px;
  right: -57px;
}

/* PC 端默认标题：36px */
.about-section-main-title h2 {
  font-size: 36px;
  margin: 15px 0;
}

.about-discription {
  margin-bottom: 40px;
}

.about-discription ul,
.about-discription ol {
  list-style-position: inside;
}

.roofing-btn.about {
  margin-left: 0;
}

/*----------------------------------
  2. 响应式媒体查询
  -----------------------------------*/

/* iPad / 平板端：30px */
@media screen and (max-width: 1024px) {
  .about-section-main-title h2 {
    font-size: 30px;
  }
}

/* 移动端：24px */
@media screen and (max-width: 767px) {
  .about-section-main-title h2 {
    font-size: 24px;
  }
  .about-discription {
    margin-bottom: 20px;
  }
  .about-list ul li {
    font-size: 17px;
  }
  .about-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .about-us-icon {
    margin-left: 0;
    margin-top: 15px;
  }
  .about-us-phone {
    margin-left: 0;
    margin-top: 5px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .about-list ul li + li {
    margin-top: 10px;
  }
}

@media (max-width: 599px) {
  .about-list ul li + li {
    margin-top: 5px;
  }
}


@media (max-width: 767px) {
  /* 1. 修复计数卡片：如果移动端不需要显示该卡片，直接隐藏；或者修改字体颜色 */
  
  /* 选项 A：如果不希望移动端显示这个空白卡片，直接隐藏 */
  .about-counter {
    display: none !important;
  }

  /* 选项 B：如果需要显示卡片，把卡片背景设为主题色，或者把文字变成暗色 */
  /*
  .about-numbar h4,
  .about-numbar .counter-per,
  .about-numbar p {
    color: var(--title-text-color) !important;
  }
  */

  /* 2. 缩减按钮上方的空白间距 */
  .about-info {
    margin-top: 20px !important; /* 原来是 40px，缩小间距 */
  }
}

/* 电脑端默认（保持全局或设为 36px） */
.about-section .about-section-main-title h2.global-title {
  font-size: 36px !important;
}

/* iPad / 平板端：强制覆盖为 30px */
@media screen and (max-width: 1024px) {
  .about-section .about-section-main-title h2.global-title {
    font-size: 30px !important;
  }
}

/* 移动端：强制覆盖为 24px */
@media screen and (max-width: 768px) {
  .about-section .about-section-main-title h2.global-title {
    font-size: 24px !important;
  }
}