/* ==================================================================
   Stellar 星耀 · 首页
   深空 Hero / 快捷入口 / 产品服务 / 解决方案 / 服务实践 / 基础设施 / 新闻
   ================================================================== */

/* ---------------- Hero 轮播 ---------------- */
section.banner {
  position: relative;
  overflow: hidden;
}

.banner-cont {
  width: 100%;
}

.banner-cont .swiper-slide {
  height: auto;
  aspect-ratio: 1860 / 500;
  width: 100%;
  background: var(--st-navy-900);
  overflow: hidden;
  position: relative;
}

.banner-cont .swiper-slide .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* 整屏可点击：每个 slide 整体跳转到对应产品页 */
.banner-cont .swiper-slide > a {
  display: block;
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.banner-cont .section-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  text-align: left;
}

.banner-cont h1 {
  color: #fff;
  font-size: 52px;
  letter-spacing: 2px;
  line-height: 1.25;
  margin: 0;
}

.banner-cont .banner-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 26px;
  margin-bottom: 44px;
  max-width: 560px;
}

.banner-cont .banner-btns {
  display: flex;
  align-items: center;
  gap: 18px;
}

.banner-cont .swiper-pagination {
  z-index: 10;
  bottom: 42px;
}

.banner-cont .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
  border-radius: 2px;
  transition: background .25s ease;
}

.banner-cont .swiper-pagination-bullet-active {
  background: var(--st-teal);
}

/* ---------------- Banner 左右切换箭头（半透明） ---------------- */
.banner-cont .banner-nav-btn {
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  background: rgba(7, 18, 36, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
  z-index: 20;
}
.banner-cont .banner-nav-btn::after {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.banner-cont .banner-nav-btn:hover {
  background: rgba(7, 18, 36, 0.65);
  border-color: rgba(0, 229, 195, 0.55);
  transform: scale(1.06);
}
.banner-cont .swiper-button-prev.banner-nav-btn { left: 32px; }
.banner-cont .swiper-button-next.banner-nav-btn { right: 32px; }
/* 移动端缩小一点，避免遮挡海报 */
@media (max-width: 768px) {
  .banner-cont .banner-nav-btn {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }
  .banner-cont .banner-nav-btn::after {
    font-size: 15px;
  }
  .banner-cont .swiper-button-prev.banner-nav-btn { left: 10px; }
  .banner-cont .swiper-button-next.banner-nav-btn { right: 10px; }
}

/* ---------------- 快捷入口卡 ---------------- */
.banner .banner-s {
  margin: -70px auto 0;
  position: relative;
  z-index: 5;
  max-width: 1360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--st-shadow-lg);
}

.banner .banner-s .banner-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px;
}

.banner-s .banner-list .banner-item {
  flex: 1;
  cursor: pointer;
  width: 335px;
  padding: 34px 56px;
  border-radius: 16px;
  transition: background .25s ease;
}

.banner-s .banner-list .banner-item:hover {
  background: #F6FBFA;
}

.banner-s .banner-list .banner-item:hover h5 {
  color: var(--st-teal-deep);
}

.banner-list .banner-item .banner-tag {
  font-size: 12px;
  color: var(--st-teal-deep);
  border: 1px solid rgba(0, 229, 195, 0.55);
  padding: 5px 10px;
  border-radius: 6px;
}

/* ---------------- 服务内容 ---------------- */
.service-content {
  display: flex;
  margin: -10px;
  margin-top: 50px;
}

.service .service-box {
  min-height: 191px;
  margin: 10px;
  position: relative;
  padding: 30px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: #fff;
  transition: all .3s ease;
}

.service .service-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--st-shadow-lg);
  border-color: transparent;
}

/* ============ 产品卡背景图（9 种主题） ============ */
.service .service-box[class*="sc-"] {
  overflow: hidden;
  background: transparent;
}
.service .service-box[class*="sc-"]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.88;
  transform: scale(1.04);
  transition: opacity .35s ease, transform .45s ease, filter .45s ease;
  filter: saturate(1.15) brightness(1.0);
}
/* 深色柔化蒙版 — 让白色文字在图上清晰，同时保留星耀深空观感 */
.service .service-box[class*="sc-"]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(7, 18, 36, 0.55) 0%, rgba(7, 18, 36, 0.18) 50%, rgba(7, 18, 36, 0.45) 100%);
  transition: background .35s ease;
}
/* hover — 更鲜亮 + 微缩放 */
.service .service-box[class*="sc-"]:hover::before {
  opacity: 1.0;
  transform: scale(1.1);
  filter: saturate(1.35) brightness(1.05);
}
.service .service-box[class*="sc-"]:hover::after {
  background:
    linear-gradient(135deg, rgba(7, 18, 36, 0.45) 0%, rgba(7, 18, 36, 0.10) 50%, rgba(7, 18, 36, 0.35) 100%);
}
/* 内容浮于背景之上 */
.service .service-box[class*="sc-"] > * {
  position: relative;
  z-index: 2;
}

/* 深色背景上的文字可读性 — 标题/描述白字加阴影 */
.service .service-box[class*="sc-"] .service-title,
.service .service-box[class*="sc-"] h4 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(7, 18, 36, 0.65);
}
.service .service-box[class*="sc-"] .title-desc {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(7, 18, 36, 0.6);
}
.service .service-box[class*="sc-"]:hover h4 {
  color: #00E5C3;
}
/* 价格用亮青，保证在深底上可读 */
.service .service-box[class*="sc-"] .service-price,
.service .service-box[class*="sc-"] .service-price.font-theme,
.service .service-box[class*="sc-"] .service-price span {
  color: #00E5C3 !important;
  text-shadow: 0 1px 4px rgba(7, 18, 36, 0.6);
}

/* 9 张主题背景图映射（CSS 在 /web/stellar/css/，单 ../ 回到 /web/stellar/） */
.service .service-box.sc-cloud::before        { background-image: url('../assets/img/service/bg-cloud.jpg?v=20261020'); }
.service .service-box.sc-baremetal::before    { background-image: url('../assets/img/service/bg-baremetal.jpg?v=20261020'); }
.service .service-box.sc-domain::before       { background-image: url('../assets/img/service/bg-domain.jpg?v=20261020'); }
.service .service-box.sc-ssl::before          { background-image: url('../assets/img/service/bg-ssl.jpg?v=20261020'); }
.service .service-box.sc-security::before     { background-image: url('../assets/img/service/bg-security.jpg?v=20261020'); }
.service .service-box.sc-ip::before           { background-image: url('../assets/img/service/bg-ip.jpg?v=20261020'); }
.service .service-box.sc-gpu::before          { background-image: url('../assets/img/service/bg-gpu.jpg?v=20261020'); }
.service .service-box.sc-cloudsec::before     { background-image: url('../assets/img/service/bg-cloudsec.jpg?v=20261020'); }
.service .service-box.sc-cncloud::before      { background-image: url('../assets/img/service/bg-cncloud.jpg?v=20261020'); }

.service .service-box .service-title {
  color: var(--st-text);
}

.service .service-box:hover h4 {
  color: var(--st-teal-deep);
}

/* 热销角标 */
.service .service-hot::before {
  content: '热销';
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 1px;
  background: linear-gradient(225deg, #00E5C3 0%, #0FA5CE 55%, #2D6BFF 100%);
  border-radius: 0 16px 0 16px;
}

.service-box .title-desc {
  margin: 16px 0;
  height: 42px;
}

.service .service-tag-group {
  display: flex;
}

.service .service-tag-group .service-tag {
  display: flex;
  align-items: center;
  margin-right: 8px;
  font-size: 12px;
  padding: 0 12px;
  color: var(--st-teal-deep);
  height: 24px;
  background: #F0F7F6;
  border: 1px solid rgba(0, 229, 195, 0.45);
  border-radius: 6px;
}

/* ---------------- 解决方案 ---------------- */
.resolve {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(0, 229, 195, 0.14), transparent 60%),
    radial-gradient(900px 500px at 85% 100%, rgba(45, 107, 255, 0.18), transparent 60%),
    var(--st-navy-900);
}

.resolve .section-title h2 {
  color: #fff;
}

.resolve .section-title .section-desc {
  color: rgba(255, 255, 255, 0.72);
}

.resolve-content {
  margin: -10px;
  margin-top: 60px;
}

.resolve-content .resolve-box {
  position: relative;
  top: 0;
  max-width: 335px;
  min-height: 206px;
  padding: 30px;
  margin: 10px;
  background-color: #F4F7FB;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(7, 18, 36, 0.28);
  transition: all .35s ease;
  cursor: pointer;
  overflow: hidden;
}

/* 每张卡片的精美插画背景（本地资源，DOM 顺序：电商/金融/游戏/汽车 | 文旅/教育/医疗/农业） */
.resolve-content .fboxRow:nth-child(1) .resolve-box:nth-child(1) { background-image: url("../assets/img/index/solution-1.png"); }
.resolve-content .fboxRow:nth-child(1) .resolve-box:nth-child(2) { background-image: url("../assets/img/index/solution-2.png"); }
.resolve-content .fboxRow:nth-child(1) .resolve-box:nth-child(3) { background-image: url("../assets/img/index/solution-3.png"); }
.resolve-content .fboxRow:nth-child(1) .resolve-box:nth-child(4) { background-image: url("../assets/img/index/solution-7.png"); }
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(1) { background-image: url("../assets/img/index/solution-4.png"); }
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(2) { background-image: url("../assets/img/index/solution-5.png"); }
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(3) { background-image: url("../assets/img/index/solution-6.png"); }
.resolve-content .fboxRow:nth-child(2) .resolve-box:nth-child(4) { background-image: url("../assets/img/index/solution-8.png"); }

.resolve-content .resolve-box:hover {
  top: -10px;
  border-color: rgba(0, 229, 195, 0.65);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.resolve-content .resolve-box:hover h4,
.resolve-content .resolve-box:hover .resolve-link {
  color: var(--st-teal-deep);
}

.resolve-content .resolve-box h4 {
  color: var(--st-text);
  font-size: 22px;
  margin-bottom: 20px;
}

.resolve-content .resolve-box .title-desc {
  color: var(--st-text-2);
  max-width: 62%;
  line-height: 1.7;
}

.resolve-content .resolve-box .resolve-link {
  color: rgba(10, 27, 51, 0.72);
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------------- 服务实践 ---------------- */
.practice .practice-content {
  margin: -10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.practice .practice-box {
  margin: 10px;
  padding: 30px;
  width: 453px;
  border: 1px solid var(--st-line);
  text-align: center;
  border-radius: 16px;
  background: #fff;
  flex-shrink: 0;
  transition: all .3s ease;
}

.practice .practice-box img {
  width: 177px;
  height: 66px;
  cursor: pointer;
}

.practice-box:hover {
  box-shadow: var(--st-shadow-lg);
  transform: translateY(-6px);
}

.brand-group {
  margin: -10px;
  display: flex;
  flex-wrap: wrap;
}

.practice .brand-box {
  margin: 10px;
  width: 216px;
  height: 124px;
  align-items: center;
  display: flex;
  justify-content: center;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: #fff;
  transition: all .3s ease;
}

.practice .brand-box img {
  width: 86px;
  height: 75px;
  cursor: pointer;
}

.practice .brand-box:hover {
  box-shadow: var(--st-shadow);
  border-color: rgba(0, 229, 195, 0.4);
}

/* ---------------- 基础设施 ---------------- */
.section-base {
  background: var(--st-bg);
}

.section-base .base {
  margin-top: 42px;
}

.section-base>.section-content {
  padding: 62px 20px 0;
}

.section-base .base h2 {
  font-size: 48px;
  letter-spacing: 1px;
  background: var(--st-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-base .base img {
  width: calc(100% - 140px);
  /* 允许图片收缩到容器可用宽度，否则会被固有宽度卡住、向右溢出产生横向滚动条 */
  min-width: 0;
  /* 按原始比例缩放，收缩时不被压扁 */
  object-fit: contain;
  margin-left: 35px;
  height: 520px;
  padding-right: 80px;
}

.base .base-content {
  margin-bottom: 100px;
}

.base .base-content .title-desc {
  white-space: nowrap;
}

/* 资质证书 */
.cert {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(10, 27, 51, 0.06);
}

.cert-list {
  padding: 30px 20px;
}

.cert-list .cert-item {
  padding: 13px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  border-radius: 12px;
  transition: all .25s ease;
}

.cert-list .cert-item:hover {
  color: var(--st-teal-deep);
  background: #F6FBFA;
}

.cert-list .cert-item img {
  height: 56px;
  width: 56px;
  cursor: pointer;
}

.cert-list .cert-item .title-desc {
  font-size: 12px;
  margin-top: 5px;
}

/* ---------------- 新闻 ---------------- */
.news-content {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 130px;
}

.news-content .news-cont {
  flex: 1;
}

.news-content .news-head .news-title {
  position: relative;
  padding-left: 12px;
  font-size: 20px;
  line-height: 22px;
  height: 22px;
}

.news-content .news-head .news-title::before {
  content: '';
  width: 4px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 1px;
  border-radius: 2px;
  background: var(--st-teal);
}

.news-content .news-head .news-more {
  font-size: 14px;
  color: var(--st-text-2);
}

.news-content .news-list {
  margin-top: 15px;
}

.news-content .news-list .news-item {
  line-height: 50px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--st-line);
}

.news-content .news-cont .news-item:nth-child(1) .number,
.news-content .news-cont .news-item:nth-child(2) .number,
.news-content .news-cont .news-item:nth-child(3) .number {
  background: var(--st-grad);
}

.news-content .news-item .number {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  width: 16px;
  height: 16px;
  background: rgba(10, 27, 51, 0.18);
  border-radius: 4px;
}

.news-content .news-item .title {
  font-size: 14px;
  color: rgba(10, 27, 51, 0.9);
}

.news-content .news-item .title:hover {
  color: var(--st-teal-deep);
}

.news-content .news-item .time {
  color: var(--st-text-3);
  font-size: 13px;
  min-width: 100px;
  text-align: right;
}

/* ---------------- 通用 ---------------- */
.index .footer-link {
  display: block;
}

.over-hide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 24px;
}

.over-hide+p {
  display: flex;
  flex-wrap: wrap;
  word-break: break-all;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 992px) {
  .banner-cont h1 {
    font-size: 38px;
  }

  .banner .banner-s {
    margin-top: 0;
  }

  .banner-s .banner-list .banner-item {
    padding: 26px 32px;
  }

  .news-content {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .banner-cont .swiper-pagination {
    bottom: 12px;
  }

  .banner-cont h1 {
    font-size: 30px;
  }

  .banner-cont .banner-desc {
    margin-bottom: 32px;
  }

  /* 每行两个卡片：兼顾右侧留白与页面长度 */
  .banner-s .banner-list .banner-item {
    box-sizing: border-box;
    width: 50%;
    flex: 0 0 50%;
    padding: 18px 12px;
    border-bottom: 1px dashed var(--st-line);
  }

  /* 奇数项右侧加分隔线，后两项去掉下边线 */
  .banner-s .banner-list .banner-item:nth-child(odd) {
    border-right: 1px dashed var(--st-line);
  }

  .banner-s .banner-list .banner-item:nth-child(n+3) {
    border-bottom: none;
  }

  .banner-s .banner-list .banner-item h5 {
    font-size: 16px;
  }

  .banner-s .banner-list .banner-item .title-desc {
    font-size: 13px;
  }

  .service-content a.flex1 {
    flex: 1 1 100%;
  }

  .resolve-content .resolve-box {
    max-width: 100%;
  }

  .practice .practice-box {
    width: 100%;
  }

  .practice .brand-box {
    width: calc(50% - 20px);
  }

  .news-content {
    gap: 40px;
    flex-direction: column;
  }

  .section-base .base {
    flex-direction: column-reverse;
  }

  .section-base .base img {
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
  }

  .base .base-content {
    margin-bottom: 30px;
    /* 移动端 4 个数字排版成每行 2 个 */
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
  }

  .base .base-content > .fboxRow {
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 0 8px;
    margin-bottom: 24px;
    /* 数字在上、说明文字在下，避免一行挤不下 */
    flex-direction: column;
    align-items: flex-start;
  }

  .section-base .base h2 {
    font-size: 32px;
    letter-spacing: 0;
    line-height: 1.1;
  }

  .base .base-content .title-desc {
    white-space: normal;
    margin-left: 0;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--st-text-2, #5b6b7f);
  }

  .cert-list .cert-item {
    width: 33%;
  }
}
