/* ==========================================================
   夺标标书 首页专属样式
   公共头部 / 公共底部 / 基础重置 见 common.css
   ========================================================== */

/* ==========================================================
   Banner 轮播
   ========================================================== */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner .swiper-slide {
  width: 100%;
  background: var(--red-dark);
}

.banner .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-arrow .icon-arrow {
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.icon-arrow-prev { background-image: url("../img/Group 1244.png"); }
.icon-arrow-next { background-image: url("../img/Group 1245.png"); }

.banner-arrow.prev { left: 3%; }
.banner-arrow.next { right: 3%; }

/* ==========================================================
   服务项目
   ========================================================== */
.service-projects {
  background: var(--bg) url("../img/Group 1251.png") center / cover no-repeat;
}

/* 区块标题：i 标签 + 背景图（不用 img） */
.section-head i.title-img {
  display: inline-block;
  width: 122px;
  height: 44px;
  vertical-align: middle;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.title-service { background-image: url("../img/Group 1250(1).png"); }
.title-process { background-image: url("../img/Group 1256.png"); }
.title-promise { background-image: url("../img/Group 1270.png"); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 28px 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(200, 22, 29, .18);
  background: var(--red);
  color: #fff;
}

.project-card .icon {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 双图标：默认红线条，红底态（active / hover）切换白线条 */
.project-card .icon i {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card .icon .icon-red { display: block; }
.project-card .icon .icon-white { display: none; }
.project-card.active .icon-red,
.project-card:hover .icon-red { display: none; }
.project-card.active .icon-white,
.project-card:hover .icon-white { display: block; }

.project-card h3 {
  font-size: 21px;
  margin-bottom: 18px;
}

.project-card p.desc {
  font-size: 14px;
  color: var(--gray);
  text-align: left;
  flex: 1 1 auto;
}

.project-card .more {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-card .more .arrow { font-size: 18px; }

/* 高亮红卡 */
.project-card.active {
  background: var(--red);
  color: #fff;
}

.project-card.active p.desc { color: rgba(255, 255, 255, .92); }
.project-card.active .more { color: #fff; }
.project-card:hover p.desc { color: rgba(255, 255, 255, .92); }
.project-card:hover .more { color: #fff; }

/* ==========================================================
   服务流程
   ========================================================== */
.process { background: #F8F8F8; }

.process-list {
  max-width: 1080px;
  margin: 0 auto;
}

.process-item {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.process-item .step-no {
  flex: 0 0 110px;
  background: var(--red);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.process-item .step-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 34px;
}

.process-item .step-body h3 {
  flex: 0 0 150px;
  font-size: 20px;
}

.process-item .step-body p {
  flex: 1 1 auto;
  font-size: 15px;
  color: var(--gray);
}

.process-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0 6px;
}

.process-arrow i {
  display: block;
  width: 28px;
  height: 32px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.process-arrow .arrow-a { background-image: url("../img/Vector 339.png"); }
.process-arrow .arrow-b { background-image: url("../img/Vector 344.png"); }

/* ==========================================================
   服务承诺
   ========================================================== */
.promise {
  background: #fff url("../img/image 218.png") center / cover no-repeat;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.promise-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.promise-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.promise-card .card-top h3 { font-size: 20px; }

.promise-card .card-top i.promise-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  opacity: .55;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.promise-card p {
  font-size: 14px;
  color: var(--gray);
}

/* ==========================================================
   常见问题 / 行业资讯 双栏
   ========================================================== */
.news-section { background: var(--bg); padding: 70px 0; }

.division {
  width: 100%;
  height: 60px;
  background: #333;
}

.news-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: -43px;
  min-width: 0;
}

.news-col { min-width: 0; }

.news-col-title {
  text-align: left;
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* 新闻栏目标题：i 标签 + 背景图 */
.news-col-title i.news-title {
  display: block;
  width: 100px;
  height: 40px;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

.news-title-faq { background-image: url("../img/Group 1443.png"); }
.news-title-news { background-image: url("../img/Group 1444.png"); }

.news-item {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
  transition: transform .2s;
  min-width: 0;
}

.news-item:hover { transform: translateX(4px); }

.news-item .badge {
  flex: 0 0 58px;
  height: 68px;
  background: url("../img/Group 1445.png") center / 100% 100% no-repeat;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item .news-info { flex: 1 1 auto; min-width: 0; }

.news-item .news-info h3 {
  font-size: 17px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item .news-info p {
  font-size: 13px;
  color: var(--gray-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item .news-date {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-light);
}

/* ==========================================================
   首页响应式
   ========================================================== */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }

  /* 服务流程：编号牌、标题、间距收紧，避免中等宽度挤压 */
  .process-item .step-no { flex: 0 0 88px; font-size: 22px; }
  .process-item .step-body { gap: 18px; padding: 22px 24px; min-width: 0; }
  .process-item .step-body h3 { flex: 0 0 130px; font-size: 18px; }
  .process-item .step-body p { font-size: 14px; min-width: 0; }

  /* 常见问题 / 行业资讯：双栏收窄间距与内边距，防止溢出 */
  .news-cols { gap: 20px; }
  .news-item { gap: 14px; padding: 16px 18px; }
  .news-item .badge { flex: 0 0 50px; height: 60px; font-size: 19px; }
  .news-item .news-info h3 { font-size: 15px; }
  .news-item .news-info p { font-size: 12px; }
}

@media (max-width: 768px) {
  /* 区块标题图随行高缩放 */
  .section-head i.title-img { width: 94px; height: 34px; }

  /* Banner 箭头 */
  .banner-arrow { width: 36px; height: 36px; }

  /* 服务项目：一行两个，收小内边距与图标 */
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .project-card { padding: 22px 14px 18px; min-width: 0; }
  .project-card .icon { width: 56px; height: 56px; margin-bottom: 14px; }
  .project-card .icon i { width: 44px; height: 44px; }
  .project-card h3 { font-size: 16px; margin-bottom: 10px; }
  .project-card p.desc { font-size: 12px; min-width: 0; }
  .project-card .more { margin-top: 14px; font-size: 13px; }

  /* 服务流程：编号牌收窄，内边距收紧 */
  .process-item { min-width: 0; }
  .process-item .step-no { flex: 0 0 72px; font-size: 20px; }
  .process-item .step-body { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px; min-width: 0; }
  .process-item .step-body h3 { flex: none; font-size: 17px; }
  .process-item .step-body p { font-size: 14px; min-width: 0; }
  .process-arrow { padding: 6px 0; }
  .process-arrow i { width: 26px; height: 30px; }

  /* 服务承诺：单列，收小 */
  .promise-grid { grid-template-columns: 1fr; gap: 18px; }
  .promise-card { padding: 22px 22px; min-width: 0; }
  .promise-card .card-top { margin-bottom: 12px; }
  .promise-card .card-top h3 { font-size: 17px; }
  .promise-card .card-top i.promise-icon { width: 40px; height: 40px; }
  .promise-card p { font-size: 13px; min-width: 0; }

  /* 常见问题 / 行业资讯：单列 */
  .news-section { padding: 40px 0; }
  .division { background: #fff; }
  .news-cols { grid-template-columns: 1fr; gap: 30px; }
  .news-col-title { padding: 0 0 14px; margin-bottom: 16px; background: #333; padding: 10px; }
  .news-col-title i.news-title { height: 32px; width: 80px; }
  .news-item { gap: 14px; padding: 16px 18px; margin-bottom: 16px; }
  .news-item .badge { flex: 0 0 48px; height: 56px; font-size: 18px; }
  .news-item .news-info { min-width: 0; }
  .news-item .news-info h3 { font-size: 15px; margin-bottom: 6px; white-space: normal; }
  .news-item .news-info p { font-size: 12px; white-space: normal; }
}

@media (max-width: 480px) {
  .project-card { padding: 22px 18px 18px; }
  .news-item { padding: 14px 16px; }
}
