/* ==========================================================
   首页样式：banner / 服务内容 / 合作流程 / 帮您实现
   / 常见问题 / 投标知识·行业新闻 / 友情链接
   ========================================================== */

/* ===================== Banner ===================== */
.banner {
  position: relative;
  overflow: hidden;
  background: #F5F6FA;
}

.banner-swiper {
  width: 100%;
}

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

/* 轮播指示：沿用原有样式视觉 */
.banner .banner-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.banner .banner-dots .swiper-pagination-bullet {
  width: 26px;
  height: 3px;
  margin: 0;
  opacity: 1;
  background: #E7C4CE;
  border-radius: 2px;
  transition: background-color 0.2s ease, width 0.2s ease;
}

.banner .banner-dots .swiper-pagination-bullet-active {
  width: 62px;
  background: var(--red);
}

/* ===================== 服务内容 ===================== */
.services {
  padding: 76px 0 84px;
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: #fff;
  cursor: pointer;
}

/* 背景图默认隐藏，hover 显示（地址写在 .service-bg 的 style 上，后端可直接替换） */
.service-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .service-bg {
  opacity: 1;
}

.service-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 70px 22px;
}

.service-icon {
  position: relative;
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
}

.service-icon i {
  position: absolute;
  inset: 0;
  display: block;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease;
}

.service-icon-default {
  opacity: 1;
}

.service-icon-hover {
  opacity: 0;
}

.service-card:hover .service-icon-default {
  opacity: 0;
}

.service-card:hover .service-icon-hover {
  opacity: 1;
}

.service-head {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 18px;
}

.service-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.service-rule {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 12px;
  background: var(--red);
}

.service-desc {
  flex: 1;
  margin-bottom: 0;
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.95;
  transition: color 0.3s ease;
}

.service-card:hover .service-name,
.service-card:hover .service-desc {
  color: #fff;
}

/* 底部按钮始终占位，默认透明，hover 显示 */
.service-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
  opacity: 0;
  background: var(--red);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .service-action {
  opacity: 1;
  pointer-events: auto;
}

.service-consult {
  display: block;
  box-sizing: border-box;
  width: 60%;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.service-consult:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

/* ===================== 合作流程 ===================== */
.flow {
  position: relative;
  overflow: hidden;
  background: #1B161F;
  color: var(--white);
  padding: 88px 0 80px;
}

.flow-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

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

.flow-head {
  text-align: center;
  margin-bottom: 54px;
}

.flow-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
}

.flow-sub {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.flow-steps {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 0;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 34px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.step-num {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFE1E4 0%, #FFC9CF 60%, #FBAEB7 100%);
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 10px 6px rgba(137, 25, 43, .5);
}

/* 相邻圆圈之间：Group 721.png 装饰图（CSS 背景，居中） */
.flow-step:not(:last-child) .step-num::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 16px);
  transform: translateX(-50%);
  width: 12px;
  height: 26px;
  background-image: url("../img/Group%20721.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  pointer-events: none;
}

.step-body {
  padding-top: 2px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-ico {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.step-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
}

.step-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

/* ===================== 帮您实现 ===================== */
.achieve {
  background: var(--red);
}

.achieve-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 60px;

}

.achieve-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.achieve-left h2 {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1.15;
}

.achieve-left .achieve-slogan {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 3px;
}

.achieve-left .achieve-slogan .sep {
  color: rgba(255, 255, 255, 0.7);
}

.achieve-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 32px;
  border-radius: 6px;
  background: linear-gradient(to bottom, #FFFFFF 0%, #FFF7F7 100%);
}

.achieve-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px dashed #E5AFAF;
}

.achieve-list li:last-child {
  border-bottom: 0;
}

.achieve-list .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.achieve-list .txt {
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.achieve-list li:hover .num,
.achieve-list li:hover .txt {
  color: var(--red);
}

/* ===================== 常见问题 ===================== */
.faq {
  padding: 66px 0 56px;
  background: var(--white);
}

.faq-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
}

.faq-title em {
  font-style: normal;
  color: var(--red);
}

.faq-box {
  margin-top: 30px;
  padding: 26px 54px 40px;
  background: #F7F7F9;
}

.faq-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px dashed #E4E4E8;
  font-size: 16px;
  color: var(--ink);
  transition: color 0.2s ease;
  
}

.faq-row:last-child {
  border-bottom: 0;
}

.faq-row .num {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-row .txt {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 行尾日期：靠右，弱化颜色 */
.faq-row .date {
  flex: none;
  margin-left: auto;
  padding-left: 16px;
  font-size: 14px;
  color: #9A9AA2;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.faq-row:hover,
.faq-row:hover .num {
  color: var(--red);
}

.faq-row:hover .date {
  color: var(--red);
}

/* ===================== 投标知识 / 行业新闻 ===================== */
.news {
  padding-bottom: 0;
}

/* 顶部满宽红色条，高 100px */
.news-bar {
  width: 100%;
  height: 124px;
  background: var(--red);
}

/* 内容区：与头部导航同宽 */
.news-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  margin-top: -100px;
  padding-bottom: 20px;
}

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

.news-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  padding-bottom: 14px;
  /* border-bottom: 2px solid var(--red); */
}

.news-list {
  margin-top: 6px;
  background: #F7F8FA;
  box-sizing: border-box;
  padding: 20px;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed #ECECF0;
}

.news-item .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.news-item .txt {
  font-size: 16px;
  color: var(--ink-2);
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* 行尾日期：靠右，弱化颜色 */
.news-item .date {
  flex: none;
  margin-left: auto;
  padding-left: 14px;
  font-size: 14px;
  color: #9A9AA2;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.news-item:hover .num,
.news-item:hover .txt,
.news-item:hover .date {
  color: var(--red);
}

/* ===================== 响应式 ===================== */
@media (max-width: 1200px) {
  .section-title {
    font-size: 32px;
  }

  .service-name {
    font-size: 22px;
  }

  .achieve-left h2 {
    font-size: 58px;
  }

  .achieve-list .txt {
    font-size: 20px;
  }

  .news-bar h2 {
    font-size: 28px;
    padding-left: 30px;
  }
}

@media (max-width: 1024px) {
  .banner-dots {
    bottom: 20px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 30px;
  }

  .achieve-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .achieve-left h2 {
    font-size: 46px;
  }

  .achieve-left .achieve-slogan {
    font-size: 20px;
  }

  .achieve-right {
    padding: 8px 24px;
  }

  .flow-bg {
    width: 100%;
    opacity: 0.35;
  }

  .news-bar .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .news-bar h2:first-child {
    padding-left: 30px;
  }

  .news-bar h2 {
    padding-left: 30px;
  }

}

@media (max-width: 768px) {
  .banner-dots {
    bottom: 14px;
    gap: 6px;
  }

  .banner-dots .dot {
    width: 18px;
  }
  .banner .banner-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}
  .banner-dots .dot.is-active {
    width: 42px;
  }

  .services {
    padding: 20px 0 56px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    max-width: none;
    margin: 0;
  }

  .service-main {
    padding: 24px 14px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .service-name {
    font-size: 16px;
  }

  .service-desc {
    font-size: 12px;
    line-height: 1.75;
  }

  .service-action {
    padding: 12px 0;
  }

  .service-consult {
    width: 76%;
    padding: 6px 0;
    font-size: 13px;
  }

  .flow {
    padding: 52px 0 48px;
  }

  .flow-title {
    font-size: 18px;
  }

  .step-title {
    font-size: 16px;
  }
  .step-desc {
    font-size: 12px;
  }
  .flow-step {
    gap: 1px;
  }
  .flow-step:not(:last-child) .step-num::after {
    top: calc(100% + 28px);
  }
  .flow-sub {
    margin-top: 16px;
    font-size: 12px;

  }
  .flow-head {
    text-align: center;
    margin-bottom: 34px;
  }
  .achieve-left h2 {
    font-size: 24px;
    letter-spacing: 3px;
  }
  .achieve-left .achieve-slogan {
    font-size: 16px;
  }
  .achieve-inner {
    padding-top: 22px!important;
    padding-bottom: 22px!important;
  }
  .achieve-list .num {
    font-size: 14px;
  }
  .achieve-list .txt {
    font-size: 14px;
  }
  .faq-title {
    font-size: 24px;
  }

  .faq-box {
    padding: 12px 20px 20px;
  }
  .step-num {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #FFE1E4 0%, #FFC9CF 60%, #FBAEB7 100%);
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 10px 6px rgba(137, 25, 43, .5);
  }
  .faq-row {
    font-size: 14px;
    gap: 14px;
    padding: 16px 0;
    line-height: 1.7;
  }

  .faq-row .date {
    font-size: 12px;
    padding-left: 10px;
  }

  .news-bar {
    height: 50px;
    display: none;
  }
  .news-inner {
    margin-top: 0;
  }
  .news-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 22px;
  }

  .news-title {
    font-size: 20px;
    padding-bottom: 10px;
    color: var(--red);
  }

  .news-item {
    padding: 13px 0;
    gap: 10px;
  }

  .news-item .txt {
    font-size: 13px;
  }

  .news-item .date {
    font-size: 12px;
    padding-left: 10px;
  }

  .section-title {
    font-size: 18px;
  }
  .section-sub {
    font-size: 12px;
    margin-top: 12px;
  }

  /* 手机端无 hover：服务卡片始终保持 hover 态 */
  .service-bg {
    opacity: 1;
  }

  .service-icon-default {
    opacity: 0;
  }

  .service-icon-hover {
    opacity: 1;
  }

  .service-name,
  .service-desc {
    color: #fff;
  }

  .service-action {
    opacity: 1;
    pointer-events: auto;
  }
  .service-icon i {
    width: 30px;
  }
  .section-head {
    text-align: center;
    margin-bottom: 22px;
  }
  .faq {
    padding: 32px 0;
  }
  .faq-row .num {
    font-size: 14px;
  }
}
