/* ============================================================
   腾讯云风格 - 首页（统一版心 1440px，紧凑 Hero + 底部四宫格）
   ============================================================ */

:root {
  --tc-page-width: 1440px;
  --tc-page-gutter: 24px;
  --tc-primary: #0052D9;
  --tc-primary-hover: #003CB8;
  --tc-text-primary: #0F172A;
  --tc-text-secondary: #475569;
  --tc-bg: #F8FAFC;
}

#index {
  background: var(--tc-bg);
}

/* ---- 顶栏与 Hero：一体化白底，无阴影/边框 ---- */
body#index > header,
body#index > header#header,
body#index header .nav-shadow,
body#index .nav-shadow,
body#index .nav-cont,
body#index .nav-header,
body#index .section-content.nav-header {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

body#index > header {
  position: relative;
  z-index: 900;
  background: #fff;
}

body#index .nav-cont {
  pointer-events: none;
}

body#index .nav-cont:hover {
  pointer-events: auto;
}

body#index header .section-content.nav-header {
  max-width: var(--tc-page-width);
  padding: 0 var(--tc-page-gutter) !important;
  margin: 0 auto;
}

#index header .nav-header {
  height: 64px;
  padding: 0;
}

body#index .nav-menu > a {
  display: flex;
  align-items: stretch;
  height: 64px;
  text-decoration: none;
  color: inherit;
}

body#index .nav-menu .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  font-size: 15px;
  border-bottom: none !important;
  box-sizing: border-box;
}

body#index .nav-menu .nav-item:hover,
body#index .nav-menu .nav-item.active {
  color: var(--tc-primary);
  border-bottom: none !important;
}

body#index .nav-menu .nav-item:hover::after,
body#index .nav-menu a:hover .nav-item::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--tc-primary);
  border-radius: 2px 2px 0 0;
}

/* ---- Hero 与顶栏同色衔接 ---- */
#index .banner.section {
  position: relative;
  padding: 0 0 56px;
  margin: 0;
  margin-top: -2px;
  background: #fff;
  overflow: visible;
}

#index .banner-cont {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 40%, #f8fbff 52%, #edf3ff 68%, #f3f7fc 88%, #f8fafc 100%);
  border: none;
}

#index .banner-cont .swiper-slide,
#index .banner-cont .tc-hero-slide {
  height: auto !important;
  min-height: 420px;
  background: transparent !important;
  padding: 64px 0 56px;
  box-sizing: border-box;
}

#index .banner-cont .swiper-slide .img {
  display: none !important;
}

#index .tc-hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--tc-page-width);
  margin: 0 auto;
  padding: 0 var(--tc-page-gutter);
  box-sizing: border-box;
}

#index .banner-cont .swiper-slide {
  pointer-events: none;
}

#index .banner-cont .swiper-slide-active {
  pointer-events: auto;
}

#index .tc-hero-left {
  flex: 0 1 46%;
  max-width: 560px;
  position: relative;
  z-index: 3;
}

#index .tc-hero-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  color: var(--tc-primary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 82, 217, 0.25);
  border-radius: 2px;
  padding: 6px 10px;
  margin-bottom: 18px;
}

#index .tc-hero-left h1 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--tc-text-primary) !important;
  margin: 0;
}

#index .tc-hero-left .banner-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--tc-text-secondary) !important;
  margin: 18px 0 28px !important;
  max-width: 460px;
}

#index .tc-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 4;
}

#index .tc-hero-btns a {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

#index .tc-hero-btns .btn {
  min-width: 120px;
  text-align: center;
  border-radius: 2px;
  padding: 10px 24px;
  font-size: 14px;
}

#index .tc-hero-btns .btn-normal {
  background: var(--tc-primary);
  border-color: var(--tc-primary);
  color: #fff;
}

#index .tc-hero-btns .btn-normal:hover {
  background: #0034b5;
  color: #fff !important;
}

#index .tc-hero-btns .btn-normal-light {
  background: #fff;
  color: var(--tc-primary);
  border: 1px solid var(--tc-primary);
}

#index .tc-hero-btns .btn-normal-light:hover {
  background: #f0f6ff;
  color: var(--tc-primary) !important;
}

/* 右侧插图 */
#index .tc-hero-right {
  flex: 1 1 50%;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

#index .tc-hero-right a {
  pointer-events: auto;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}

#index .tc-hero-right::before {
  content: "";
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 72%;
  height: 72%;
  background: radial-gradient(ellipse, rgba(0, 82, 217, 0.12) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

#index .tc-hero-right img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: right center;
  background: transparent;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 12px 32px rgba(0, 82, 217, 0.12));
  mix-blend-mode: multiply;
}

/* 轮播指示器 */
#index .banner-cont .swiper-pagination {
  bottom: 20px !important;
}

#index .banner-cont .swiper-pagination-bullet {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 82, 217, 0.25);
  opacity: 1;
}

#index .banner-cont .swiper-pagination-bullet-active {
  background: var(--tc-primary) !important;
  width: 28px;
}

/* ---- 四宫格：与 Hero 同宽对齐 ---- */
#index .banner .banner-s {
  position: relative;
  width: 100%;
  max-width: var(--tc-page-width);
  margin: -44px auto 0;
  padding: 0 var(--tc-page-gutter);
  box-sizing: border-box;
  z-index: 10;
}

#index .banner .banner-s .banner-list {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 82, 217, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

#index .banner-s .banner-list .banner-item {
  flex: 1 1 25%;
  min-width: 0;
  padding: 20px 24px;
  border-right: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}

#index .banner-s .banner-list .banner-item:last-child {
  border-right: none;
}

#index .banner-s .banner-list .banner-item h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-text-primary);
  margin: 0 0 8px;
}

#index .banner-s .banner-list .banner-item:hover {
  background: #f7faff;
}

#index .banner-s .banner-list .banner-item:hover h5 {
  color: var(--tc-primary) !important;
}

#index .banner-list .banner-item .banner-tag {
  display: inline-block;
  color: var(--tc-primary) !important;
  border: 1px solid rgba(0, 82, 217, 0.35) !important;
  background: #f0f6ff;
  border-radius: 2px;
  font-size: 12px;
  padding: 3px 8px;
}

/* ---- 下方各区块统一版心 ---- */
#index .section-content {
  max-width: var(--tc-page-width);
  padding: 72px var(--tc-page-gutter);
  box-sizing: border-box;
}

#index .service.section {
  background: #fff;
  padding-top: 64px;
  margin-top: 0;
}

#index .service .section-content {
  padding-top: 0;
  padding-bottom: 72px;
}

#index .service .section-title h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--tc-text-primary);
}

#index .service .section-desc {
  color: var(--tc-text-secondary);
}

#index .service .service-content {
  margin-top: 40px;
}

#index .service .service-box {
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#index .service .service-box:hover {
  border-color: var(--tc-primary);
  box-shadow: 0 6px 20px rgba(0, 82, 217, 0.1);
  transform: none;
}

#index .service .service-box:hover .service-title {
  color: var(--tc-primary);
}

#index .service .service-price,
#index .service .font-theme,
#index .font-theme {
  color: var(--tc-primary) !important;
}

#index .service .btn-normal {
  background: var(--tc-primary) !important;
  border-color: var(--tc-primary) !important;
  color: #fff !important;
}

#index .service .btn-normal:hover {
  background: #0034b5 !important;
  border-color: #0034b5 !important;
  color: #fff !important;
}

#index .service .btn-normal-light {
  color: var(--tc-text-secondary) !important;
  border-color: var(--tc-border) !important;
}

#index .service .btn-normal-light:hover {
  color: var(--tc-primary) !important;
  border-color: var(--tc-primary) !important;
}

#index .service .service-hot::before {
  background: var(--tc-primary);
  color: #fff;
}

#index .resolve.section-bg {
  background: linear-gradient(180deg, #0c1d4d 0%, #132a5e 100%) !important;
}

#index .resolve .section-title h2,
#index .resolve .section-title .section-desc {
  color: #fff;
}

#index .resolve .section-desc {
  opacity: 0.8;
}

#index .resolve.section {
  padding-top: 72px;
  padding-bottom: 72px;
}

#index .section-base {
  background: var(--tc-bg);
}

#index .section-base .base-content h2 {
  color: var(--tc-primary);
}

#index .news.section {
  background: #fff;
}

#index .news.section .section-content {
  padding-top: 72px;
  padding-bottom: 72px;
}

#index .news-content {
  gap: 40px;
  margin-top: 40px;
}

#index .news-content .news-head .news-title::before {
  background: var(--tc-primary);
}

/* ---- 响应式 ---- */
@media screen and (max-width: 900px) {
  #index .tc-hero-wrap {
    flex-direction: column;
    text-align: center;
  }

  #index .tc-hero-left {
    flex: 1 1 auto;
    max-width: 100%;
  }

  #index .tc-hero-left .banner-desc {
    margin-left: auto;
    margin-right: auto;
  }

  #index .tc-hero-btns {
    justify-content: center;
  }

  #index .tc-hero-right {
    max-width: 100%;
    justify-content: center;
  }

  #index .tc-hero-right img {
    max-height: 240px;
    object-position: center;
  }

  #index .banner-cont .swiper-slide,
  #index .banner-cont .tc-hero-slide {
    padding: 24px 0 48px;
    min-height: auto;
  }

  #index .banner-cont .swiper-pagination {
    bottom: 12px !important;
  }

  #index .banner .banner-s {
    margin-top: -32px;
  }

  #index .banner .banner-s .banner-list {
    flex-wrap: wrap;
  }

  #index .banner-s .banner-list .banner-item {
    flex: 1 1 50%;
    border-bottom: 1px solid #f0f0f0;
  }

  #index .service.section {
    padding-top: 56px;
  }
}

/* 首页顶栏最终覆盖：消除灰线、下拉阴影 */
body#index > header#header,
body#index > header#header .nav-shadow,
body#index > header#header .nav-cont,
body#index > header#header .section-content.nav-header {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  background: #fff !important;
}
