@charset "UTF-8";
/* ============================================================
   index.css —— 首页（index.html）专属样式
   首屏 Banner / 服务内容 / 我们的优势 / 成功案例 /
   投标精讲·行业资讯 / 友情链接 / 响应式
   ============================================================ */

/* ============================================================
   1. 首屏 Banner
   ============================================================ */
.banner {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: #e8f2fe;
}

.banner .swiper-wrapper { height: 100%; }

.banner .swiper-slide { height: 100%; }

.banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- 左右切换按钮（悬停显示） ---------- */
.bn-btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 48, 88, .36);
  box-shadow: 0 8px 22px rgba(24, 48, 88, .18), inset 0 0 0 1px rgba(255, 255, 255, .35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s var(--ease),
              background-color .3s var(--ease), transform .2s var(--ease);
}

.bn-btn svg { width: 24px; height: 24px; }

.bn-prev { left: 30px; }
.bn-next { right: 30px; }

.banner:hover .bn-btn,
.bn-btn:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bn-btn:hover { background: var(--blue-2); }

.bn-btn:active { transform: scale(.94); }

/* 触屏设备没有 hover，按钮常显 */
@media (hover: none) {
  .bn-btn { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* ---------- 分页（底部居中，圆点由 Swiper 生成） ---------- */
/* 注意：Swiper 会给该容器追加 .swiper-pagination-bullets 等类，
   其自带样式（left:0;width:100%;bottom:10px）权重较高，这里用 .banner 前缀压过 */
.banner .bn-pager,
.banner .bn-pager.swiper-pagination-bullets {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  width: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.banner .bn-pager .swiper-pagination-bullet {
  width: 28px;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #3E70FF;
  opacity: .3;
  transition: width .3s var(--ease), opacity .3s var(--ease);
}

.banner .bn-pager .swiper-pagination-bullet:hover { opacity: .8; }

.banner .bn-pager .swiper-pagination-bullet-active {
  width: 58px;
  border-radius: 0;
  background: #3E70FF;
  opacity: 1;
  box-shadow: none;
}

/* ============================================================
   2. 服务内容
   ============================================================ */
.services {
  padding: 84px 0 96px;
  background: #fff;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px 34px;
  margin-top: 64px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 36px 30px 24px;
  border-radius: 12px;
  /* 背景图地址写在 index.html 的行内 style 上，方便后端循环输出 */
  background-color: #eef5ff;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

/* 悬停背景层：地址同样由 HTML 行内 style 提供，靠 opacity 淡入 */
.svc-hover {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

/* 内容压在背景层之上（背景层不参与） */
.svc > *:not(.svc-hover) { z-index: 1; }

.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(47, 107, 246, .24);
}

.svc:hover .svc-hover { opacity: 1; }

.svc:hover .svc-t { color: #fff; }
.svc:hover p { color: rgba(255, 255, 255, .94); }
.svc:hover .svc-more { color: #fff; }
.svc:hover .svc-num { color: rgba(255, 255, 255, .28); }

/* 幽灵序号 */
.svc-num {
  position: absolute;
  left: 26px;
  top: 10px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  color: rgba(47, 107, 246, .10);
  transition: color .3s var(--ease);
}

/* 3D 图标（图片地址写在 HTML 行内 style 上），上沿溢出卡片 */
.svc-ic {
  position: absolute;
  right: 18px;
  top: -32px;
  width: 104px;
  height: 104px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.svc-t {
  position: relative;
  margin: 0;
  margin-top: -7px;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  transition: color .3s var(--ease);
}

.svc p {
  position: relative;
  max-width: 340px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
  color: #3d3d3d;
  transition: color .3s var(--ease);
}

.svc-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
  color: var(--blue);
  transition: gap .25s var(--ease), color .3s var(--ease);
}

.svc-more .ic { width: 18px; height: 18px; }
.svc-more:hover { gap: 14px; }

/* ============================================================
   3. 我们的优势
   ============================================================ */
.adv {
  position: relative;
  padding: 76px 0 92px;
  /*overflow: hidden;*/
  background-image: url(../img/image%20182@2x.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #3f6ea3;

}
@media (min-width: 992px) {
  .adv {
    max-height: 500px;
    margin-bottom: 100px;
  }
}
.adv .wrap { position: relative; z-index: 1; }

/* 通栏大卡片：圆角 + 半透明 + 高斯模糊 */
.adv-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 54px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 24px 60px rgba(16, 40, 80, .18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

/* 单个模块：左图标 + 右内容 */
.adv-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 34px;
}

/* 模块之间的虚线分隔 */
.adv-item:nth-child(3n+1),
.adv-item:nth-child(3n+2) { border-right: 1px dashed #8AB7D9; }

.adv-item:nth-child(-n+3) { border-bottom: 1px dashed #8AB7D9; }

/* 左侧图标：图片由 HTML 行内 background-image 传入 */
.adv-ic {
  flex: none;
  width: 48px;
  height: 29px;
  border-radius: 14px;
  /*background-color: rgba(62, 112, 255, .1);*/
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 24px;
}

.adv-body { min-width: 0; }

.adv-item .adv-t {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #111;
}

.adv-item p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: #2a2a2a;
}

.adv-item .hl {
  color: var(--red);
  font-weight: 700;
}

/* ============================================================
   4. 成功案例
   ============================================================ */
.cases {
  padding: 88px 0 64px;
  background: #fff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 58px;
}

/* 整卡为链接（后续接跳转地址），默认不带下划线、继承文字颜色 */
.case {
  position: relative;
  display: block;
  padding: 10px 10px 0;
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(20, 40, 90, .07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* 悬停时才呈现选中态（蓝色描边 + 更强投影），默认不常亮 */
.case:hover {
  transform: translateY(-6px);
  border-color: var(--blue-2);
  box-shadow: 0 18px 44px rgba(47, 107, 246, .2), inset 0 0 0 1px var(--blue-2);
}

.case-thumb {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eff2f7;
  aspect-ratio: 300 / 380; /* 占位，图片懒加载完成前不留空白跳动 */
}

.case-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body { padding: 16px 8px 16px; }

.case-body .case-t {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.2px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.case-tag {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
}

.case-go {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 20px;
  background: var(--blue-2);
  color: #fff;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.case-go .ic { width: 20px; height: 20px; }
.case-go:hover { background: var(--blue-deep); transform: translateX(2px); }

/* ============================================================
   5. 投标精讲 / 行业资讯
   ============================================================ */
.news {
  padding: 16px 0 86px;
  background: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.news-list {
  margin-top: 34px;
  padding: 14px 30px;
  border-radius: 10px;
  background: #F9FAFF;
}

.news-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

/* 条目左侧图标：图片由 HTML 行内 background-image 传入 */
.news-list .ic-bullet {
  display: block;
  width: 20px;
  height: 16px;
  flex: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.news-num {
  min-width: 32px;
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #111;
}

.news-list a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  color: #111;
  transition: color .25s var(--ease);
  font-weight: bold;
}

/* 标题后面的发布时间 */
.news-date {
  flex: none;
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2px;
  color: #98a2b3;
  white-space: nowrap;
}

/* 栅格子项默认 min-width:auto 会被单行标题的长文本撑宽，导致整页横向滚动 */
.news-grid > *,
.news-col,
.news-list {
  min-width: 0;
}

.news-list a:hover { color: var(--blue); }

/* ============================================================
   6. 响应式
   ============================================================ */
@media (max-width: 1200px) {
  .banner { height: 560px; }
  .bn-prev { left: 20px; }
  .bn-next { right: 20px; }

  .svc-grid { gap: 52px 26px; }
  .svc { padding: 32px 24px 22px; }
  .svc-t { font-size: 20px; }
  .svc p { font-size: 14px; }

  .adv-item { padding: 36px 32px; }
  .adv-item .adv-t { font-size: 23px; }
  .adv-item p { font-size: 17px; }

  .case-body .case-t { font-size: 19px; }
  .news-list a { font-size: 19px; }
}

@media (max-width: 992px) {
  .banner { height: 470px; }
  .bn-btn { width: 48px; height: 48px; margin-top: -24px; }
  .bn-btn svg { width: 20px; height: 20px; }

  .services { padding: 64px 0 72px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 22px; margin-top: 52px; }
  .svc-ic { width: 88px; height: 88px; top: -26px; }

  .adv { padding: 60px 0 70px; }
  .adv-card { grid-template-columns: 1fr; margin-top: 44px; }
  .adv-item { padding: 28px 30px; }
  .adv-item:nth-child(3n+1),
  .adv-item:nth-child(3n+2) { border-right: 0; }
  .adv-item:nth-child(-n+5) { border-bottom: 1px dashed #8AB7D9; }
  .adv-item:nth-child(6) { border-bottom: 0; }
  .adv-item p { margin-top: 10px; }

  .cases { padding: 64px 0 40px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }

  .news-grid { grid-template-columns: 1fr; gap: 48px; }
  .news { padding: 8px 0 64px; }

}

@media (max-width: 640px) {
  /* 窄屏不裁切，按图片原比例整张显示，避免文字被切掉 */
  .banner { height: auto; min-height: 200px; }
  .banner .swiper-slide { height: auto; }
  .banner-img { height: auto; object-fit: contain; }
  .bn-btn { width: 38px; height: 38px; margin-top: -19px; }
  .bn-btn svg { width: 16px; height: 16px; }
  .bn-prev { left: 10px; }
  .bn-next { right: 10px; }
  .banner .bn-pager { bottom: 12px; gap: 8px; }
  .banner .bn-pager .swiper-pagination-bullet { width: 20px; height: 3px; }
  .banner .bn-pager .swiper-pagination-bullet-active { width: 40px; }

  .services { padding: 17px 0 34px;}
  .svc-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 44px; }
  .svc { min-height: 0; padding: 30px 22px 22px; }
  .svc-t { font-size: 19px; }
  .svc-ic { width: 78px; height: 78px; top: -22px; right: 14px; }
  .svc-num { font-size: 46px; }

  .adv { padding: 48px 0 56px; }
  .adv-item { padding: 26px 22px; }
  .adv-item .adv-t { font-size: 18px; }
  .adv-item p { font-size: 14px; line-height: 1.9; }

  /* 移动端一行两个案例卡片 */
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .case { padding: 6px 6px 0; border-radius: 8px; }
  .case-body { padding: 12px 4px 12px; }
  .case-body .case-t { font-size: 15px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .case-tag { font-size: 13px; }
  .case-go { width: 32px; height: 24px; }
  .case-go .ic { width: 16px; height: 16px; }
  .cases { padding: 48px 0 32px; }

  .news-list { padding: 10px 18px; }
  .news-list li { gap: 10px; padding: 13px 0; align-items: flex-start; }
  /* 移动端标题最多两行，超出省略 */
  .news-list a {
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .news-num { font-size: 17px; min-width: 26px; line-height: 1.55; }
  .news-list .ic-bullet { width: 16px; height: 13px; margin-top: 5px; }

  .adv {
    position: relative;
    padding: 76px 0 92px;
    overflow: hidden;
    background-image: url(../img/image%20182@2x.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #3f6ea3;
    /*max-height: 500px;*/
    /*margin-bottom: 100px;*/
  }
}
