/* ===== 首页组件样式 ===== */

/* 标题组件 */
.section-title,
.main-title {
  color: #010101;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.section-subtitle,
.sub-title {
  font-size: 1.1rem;
  color: #A3A3A3;
  margin-bottom: 1.2rem;
}

.divider,
.title-divider {
  width: 40px;
  height: 4px;
  background-color: #D2232A;
  margin-bottom: 2rem;
}

.title-divider {
  margin: 0 auto 2rem;
}

.section-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* 图片容器 */
.image-container {
  position: relative;
  display: inline-block;
}

.skew-image {
  height: 300px;
}

/* 工作区域 */
.work-areas {
  background: #F5F5F5;
}

.container-wap {
  display: none;
}

.work-item {
  height: 100%;
}

.item-box {
  height: 150px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.border-item-right {
  border-right: 1px solid #999;
}

.border-item-bottom {
  border-bottom: 1px solid #999;
}

.work-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.work-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
  flex-grow: 1;
}

/* 新闻区域 */
.news-image {
  position: relative;
  text-align: right;
}

.news-divider {
  position: absolute;
  right: 0;
  width: 100px;
  height: 100%;
  /* background: #F5F5F5; */
  z-index: -1;
}

.news-image img {
  height: 300px;
  border-radius: 20px;
}

.news-main-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.news-content {
  height: 300px;
  padding-left: 2rem;
  padding-top: 2.5rem;
  background: #F5F5F5;
  border-radius: 35px;
}

.view-more {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 0.8rem;
}

.view-more:hover {
  color: #D2232A;
  text-decoration: underline;
}

.news-list {
  clear: both;
  margin-top: 0.2rem;
}

.news-item {
  line-height: normal;
}

.news-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.news-tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 3px 3px 0 0;
  font-size: 8px;
  font-style: italic;
}

.news-tag.hot {
  background-color: #D2232A;
  color: white;
}

.news-tag.new {
  background-color: #FFA438;
  color: white;
}

.news-title {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0;
}

.news-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0;
}

/* 合作伙伴区域 */
/* .partners-section {
  background: #F5F5F5;
} */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  align-items: start;
}

.partners-grid-bg {
  width: 100%;
}

.partners-grid-bg img {
  width: 100%;
}

.partner-item {
  text-align: center;
  padding-bottom: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.partner-item:hover {
  border-color: #2468F2;
  box-shadow: 0 5px 20px rgba(36, 104, 242, 0.1);
  transform: translateY(-2px);
}

.partner-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-name {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #333;
  font-weight: 500;
}


/* ===== 响应式设计 ===== */

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) {

  /* 通用间距调整 */
  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .pb-5,
  .py-5 {
    padding-bottom: 2rem !important;
  }

  .pt-5,
  .py-5 {
    padding-top: 2rem !important;
  }

  /* 标题区域 */
  .section-title,
  .main-title {
    font-size: 1.6rem;
  }

  .section-subtitle,
  .sub-title {
    font-size: 1rem;
  }

  .section-content {
    font-size: 0.95rem;
  }

  /* 工作区域 */
  .container-wap {
    display: flex;
  }

  .container-pc {
    display: none;
  }

  .work-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .work-areas {
    margin-bottom: 0 !important;
    padding-bottom: 1px !important;
    padding-top: 3rem !important;
  }

  .work-areas .container {
    padding-bottom: 0 !important;
  }

  .border-item-right {
    border-right: none;
  }

  .border-item-bottom {
    border-bottom: 1px solid #999;
  }

  .item-box {
    height: auto;
    padding: 5px 15px;
  }

  .work-title {
    font-size: 1.4rem;
    min-height: 50px;
  }

  .work-desc {
    font-size: 0.9rem;
  }

  /* 新闻区域 */
  .news-section {
    margin-bottom: 0 !important;
  }

  .news-content {
    height: auto;
    padding: 1.5rem;
    margin-top: 1rem;
    padding-left: 0;
  }

  .news-image {
    text-align: center;
  }

  .news-divider {
    display: none;
  }

  .news-image img {
    height: 250px;
  }

  .news-main-title {
    font-size: 1.3rem;
  }

  .news-list .news-item {
    padding: 2px 0;
  }

  /* 合作伙伴区域 */
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .partner-item {
    padding-bottom: 1rem;
  }

  .partner-logo {
    width: 70px;
    height: 70px;
  }

  .partner-name {
    font-size: 0.75rem;
  }

}

/* 手机设备 (576px - 767px) */
@media (max-width: 768px) {
   .container-wap {
     display: block;
   }
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .partner-logo {
    width: 60px;
    height: 60px;
  }

  .partner-name {
    font-size: 0.8rem;
  }
}

/* 小手机设备 (400px - 575px) */
@media (max-width: 576px) {

  /* 标题区域 */
  .section-title,
  .main-title {
    font-size: 1.4rem;
  }

  .section-subtitle,
  .sub-title {
    font-size: 0.9rem;
  }

  .skew-image,
  .news-image img {
    height: 200px;
  }

  /* 工作区域 */
  .work-title {
    font-size: 1.2rem;
    min-height: auto;
  }

  .work-desc {
    font-size: 0.85rem;
  }

  /* 合作伙伴区域 */
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .partner-logo {
    width: 60px;
    height: 60px;
  }

  .partner-name {
    font-size: 0.7rem;
  }

  /* 新闻区域 */
  .news-main-title {
    font-size: 1.2rem;
  }

  .news-title {
    font-size: 0.85rem;
  }
}

/* 超小手机设备 (< 400px) */
@media (max-width: 400px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
  }

  .partner-logo {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .partner-name {
    font-size: 0.65rem;
  }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1400px) {

  .section-title,
  .main-title {
    font-size: 2rem;
  }

  .skew-image,
  .news-image img {
    height: 350px;
  }

  .news-content {
    height: 350px;
  }
}

/* 打印样式优化 */
@media print {

  .news-image,
  .partners-grid-bg,
  .view-more {
    display: none;
  }

  .news-content {
    height: auto;
    background: transparent;
    padding: 0;
  }
}