.core-values,
.company-intro {
  background-color: #f9f8f4;
  padding: 1rem;
}

.core-values-container {
  width: 80%;
  max-width: 1400px;
  margin: 1rem auto;
  border-radius: 3rem;
  background-color: #fff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
}

.values-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #7a818d;
}

.values-content h3 {
  font-size: 2.5rem;
  color: #000;
}

.values-content h3 span {
  font-size: 1.5rem;
  color: var(--primary-color);
  vertical-align: super;
}

/* 简介 */
.company-intro {
  padding: 4rem 0;
}

.company-intro .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.company-intro .intro-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.company-intro .intro-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.company-intro .tag {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #b8d626;
  background-color: #f2f4df;
  font-weight: bold;
  width: fit-content;
  padding: 5px 15px;
  border-radius: 1.2rem;
}

.company-intro .intro-text b {
  color: var(--primary-color);
}

.company-intro .intro-text h2 {
  color: #000;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.company-intro .intro-text p {
  margin-bottom: 15px;
}

.company-intro .intro-image {
  text-align: center;
}

.company-intro .intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/*核心理念*/
.company-philosophy {
  padding: 4rem 0;
}

.company-philosophy .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.company-philosophy .title-box {
  text-align: center;
  margin-bottom: 40px;
}

.company-philosophy .title-box h2 {
  font-size: 2.5rem;
  line-height: 1.5;
  border-bottom: 5px solid #b8d626;
  width: fit-content;
  margin: 10px auto;
}

.company-philosophy .title-box p {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
}

/* 核心理念内容区域 - 一行两列，默认列宽2:1 */
.company-philosophy .container .philosophy-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}

.company-philosophy .container .philosophy-content .philosophy-item:nth-child(1), 
.company-philosophy .container .philosophy-content .philosophy-item:nth-child(4), 
.company-philosophy .container .philosophy-content .philosophy-item:nth-child(5) {
  width: 66%;
}


/* 核心理念项样式 */
.company-philosophy .container .philosophy-content .philosophy-item {
  border-radius: 2rem;
  padding: 2rem;
  width:32%;
  min-height: 300px;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #7a818d;
  position: relative;
  overflow: hidden;
  margin-top: 2%;
}

/* 处理data-color和data-img属性的背景效果 */
.company-philosophy .container .philosophy-content .philosophy-item {
  /* 默认背景色 */
  background-color: #f9f8f4;
  color:#fff;
}

/* 当有data-color属性时，使用该颜色作为背景色 */
.company-philosophy .container .philosophy-content .philosophy-item[data-color] {
  background-color: var(--bg-color, #f9f8f4);
}

/* 当有data-img属性且值非空时，添加背景图和渐变 */
.company-philosophy .container .philosophy-content .philosophy-item[data-img]:not([data-img=""]) {
  background-color: var(--bg-color, #f9f8f4);
  background-image: linear-gradient(to right, var(--bg-color, #f9f8f4) 60%, transparent), 
                    var(--bg-image, none);
  background-position: right center;
  background-size: auto 100%, auto 100%;
  background-repeat: no-repeat;
}

/* 核心理念项内部元素样式 */
.company-philosophy .container .philosophy-content .philosophy-item i {
  font-size: 2rem;
  color: var(--icon-color, #000);
  margin-bottom: 15px;
  display: inline-block;
}

.company-philosophy .container .philosophy-content .philosophy-item[data-img]:not([data-img=""]) i {
  background-color:#fff;
  border-radius: 50%;
  color:var(--primary-color);
  width:2.4rem;
  height:2.4rem;
  line-height:2.4rem;
  text-align: center;
}

.company-philosophy .container .philosophy-content .philosophy-item h3 {
  font-size: 1.8rem;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 10px;
}

.company-philosophy .container .philosophy-content .philosophy-item[data-img]:not([data-img=""]) h3

{
  color: #000;
}

.company-philosophy .container .philosophy-content .philosophy-item[data-img]:not([data-img=""]) h4{
  color:var(--primary-color);
}


.company-philosophy .container .philosophy-content .philosophy-item[data-img]:not([data-img=""]) p
{
  color:#666;
}
.company-philosophy .container .philosophy-content .philosophy-item h4 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 15px;
}

.company-philosophy .container .philosophy-content .philosophy-item p {
  line-height: 1.5;
  width: 70%;
}

/* 荣誉  */



/* 移动端适配 */
@media (max-width: 767px) {
  .core-values-container {
    width: 95%;
  }

  .values-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-intro .container {
    padding: 0 20px;
  }

  .company-intro .intro-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* 核心理念板块移动端适配 */

  
  .company-philosophy .container .philosophy-content .philosophy-item {
    padding: 1.5rem;
    width:100%;
  }
 .company-philosophy .container .philosophy-content .philosophy-item:nth-child(1), 
.company-philosophy .container .philosophy-content .philosophy-item:nth-child(4), 
.company-philosophy .container .philosophy-content .philosophy-item:nth-child(5)  {
    width: 100%;
  }
  
  .company-philosophy .container .philosophy-content .philosophy-item p {
    width: 100%;
  }
  
  /* 移动端背景图调整 */
.company-philosophy .container .philosophy-content .philosophy-item[data-img]:not([data-img=""]) {
  background-size: cover;
  background-position: center;
}
}

/* 资质荣誉板块样式 */
.honor {
  padding: 4rem 0;
  background-color: #000;
  overflow: hidden;
}

.honor .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

.honor .title-box {
  margin-bottom: 40px;
}

.honor .title-box h2 {
  font-size: 2.5rem;
  line-height: 1.5;
  color: #fff;
}

.honor .title-box p {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
}

/* 横向滚动容器 */
.honor-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

/* 隐藏滚动条但保留滚动功能 */
.honor-content::-webkit-scrollbar {
  height: 6px;
}

.honor-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.honor-content::-webkit-scrollbar-thumb {
  background: #b8d626;
  border-radius: 3px;
}

.honor-content::-webkit-scrollbar-thumb:hover {
  background: #a8c616;
}

/* 荣誉项目样式 - 最大高度200px，一组3个 */
.honor-item {
  flex: 0 0 calc(33.333% - 13.333px);
  max-width: calc(33.333% - 13.333px);
  max-height: 200px;
  background-color: #252525;
  border-radius: 1rem;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.honor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.honor-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dddddd;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.honor-text i {
  font-size: 2rem;
  color: #b8d626;
  margin-bottom: 10px;
  display: inline-block;
  flex-shrink: 0;
}

.honor-text h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.honor-text p {
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
}

.honor-img {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  flex-shrink: 0;
  width: 30%; 
}

.honor-img h4 {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #b8d626;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: bold;
  z-index: 10;
}

.honor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.honor-item:hover .honor-img img {
  transform: scale(1.05);
}

/* 资质荣誉板块移动端适配 */
@media (max-width: 1024px) {
  .honor-item {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 767px) {
  .honor {
    padding: 2rem 0;
  }
  
  .honor .title-box h2 {
    font-size: 2rem;
  }
  
  .honor-item {
    flex: 0 0 calc(100% - 0px);
    max-width: calc(100% - 0px);
    max-height: 220px;
  }
  
  .honor-text h3 {
    font-size: 1.1rem;
  }
  
  .honor-text i {
    font-size: 1.5rem;
  }
  
  .honor-img h4 {
    font-size: 0.8rem;
    padding: 4px 8px;
    top: 6px;
    right: 6px;
  }
  
  .honor-content {
    padding: 0 15px 15px;
  }
}

/* 联系我们板块样式 */
.link-us {
  background-color: var(--primary-color, #bddb00); /* 主色调 */
  min-height: 400px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.link-us h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.link-us p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 600px;
}

.link-us .link-box {
  margin-top: 20px;
}

.link-us .link-box a {
  display: inline-block;
  background-color: white;
  color: var(--primary-color, #bddb00);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-us .link-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 联系我们板块移动端适配 */
@media (max-width: 767px) {
  .link-us {
    min-height: 350px;
    padding: 30px 15px;
  }
  
  .link-us h2 {
    font-size: 2rem;
  }
  
  .link-us p {
    font-size: 1rem;
  }
  
  .link-us .link-box a {
    padding: 12px 30px;
    font-size: 1rem;
  }
}