/* ====== Index page only ====== */

.clearfix::before,
.clearfix::after{
  content: '';
  display: table;
  clear: both;
}

.Navheight{
  height: 6rem;
}

.rightpadding{
  padding-right: 130px !important;
}

/* 首页筛选区（如果只在首页用） */
.filterform{
  border-top: 5px solid #05c6fd;
}

.floatright{ float: right; }
.floatleft{ float: left; }

.FilterPading{
  padding-top: 2rem;
}

.BottomMargin{
  margin-bottom: 1rem;
}

.IntFilterPadding{
  padding-left: 6rem;
  padding-right: 3rem;
}

/* ====== Picwall（首页图墙） ====== */
.Picwall{
  padding-top: 2rem;
  text-align: center;
}
.Picwall img{
  width: auto;
  margin: 0 auto;
}
.Picwall h3{
  font-weight: bold;
}
.Picwall a{
  color: #212121;
  text-decoration: none;
}
.Picwall .col{
  padding: 1rem;
}
.Picwall .col:hover{
  padding: 10px;
  background: #f1f1f1;
  box-shadow: 1px 1px 4px #ccc;
}

/* ====== 首页服务器展示 ====== */
.ServerPhoto{
  float: left;
  height: 535px;
  width: 80%;
}
.intro{
  float: right;
  width: 20%;
  text-align: center;
}
.ServerList{
  height: 535px;
}

.Backcolor{ background-color: #d7d7d7; }
.Divider{
  height: 2rem;
  background-color: #fff;
}

.text-container h5 {
  flex-basis: 50%;
  max-width: 50%;
  font-size: 1.75rem;
}

.image-container{
  flex-basis: 50%;
}

/* ====== Swiper（首页轮播） ====== */
.swiper-slide-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;
}

.swiper-slide-text {
  width: 35%;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.swiper-slide-text h2 {
  margin-bottom: 20px;
  font-size: 2em;
  color: #333;
  width: 100%;
  text-align: center;
}

.swiper-slide-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.5;
  width: 100%;
  text-align: center;
}

.swiper-slide-text button {
  padding: 10px 20px;
  border: none;
  background: #333;
  color: white;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.swiper-slide-image {
  width: 65%;
  height: 100%;
}

.swiper-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  color: transparent !important;
  background: none !important;
}

.swiper-container {
  position: relative !important;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  overflow: visible !important;
}

.swiper-pagination {
  position: absolute !important;
  bottom: -30px !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 10 !important;
}

.swiper-scrollbar {
  position: absolute !important;
  bottom: -40px !important;
  left: 0 !important;
  width: 100% !important;
  height: 4px !important;
  z-index: 10 !important;
  background: rgba(0, 0, 0, 0.1) !important;
}

.container-fluid.FilterPading {
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

/* ====== 产品图 hover（首页使用的话保留） ====== */
.col4p {
  padding: 1rem;
  transition: all 0.3s ease;
}

.col4p a {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.col4p:hover {
  padding: 10px;
  background: #f1f1f1;
  box-shadow: 1px 1px 4px #ccc;
}

.col4p a img {
  transition: all 0.3s ease;
}

.col4p:hover img {
  transform: scale(1.1);
}

.col4p h3 {
  margin-top: 10px;
  color: #333;
  transition: all 0.3s ease;
}

.col4p:hover h3 {
  color: #017bb8;
}

/* ====== ServerShow / details（若首页用） ====== */
.server-img-big {
  max-height: 300px;
  width: auto;
  vertical-align: top;
  transition: all 0.3s ease;
  mix-blend-mode: multiply;   /* fuse JPG white background into section background */
}

.ServerShow{
  padding-top: 0;
  margin-top: -20px;
}

.ServerShow .image-container{
  width: 100%;
  height: auto;
}

.ServerShow img{
  max-width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.accordion {
  height: 100%;
  margin-top: 15px;
}

.server-details {
  text-align: left;
  padding: 20px;
}

.server-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.server-subtitle {
  margin-bottom: 20px;
}

.server-subtitle h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.server-type {
  font-size: 16px;
  color: #666;
}

.server-features {
  margin: 20px 0;
}

.server-features ul {
  list-style: none;
  padding: 0;
}

.server-features li {
  margin-bottom: 8px;
  color: #444;
}

.server-actions {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-btn {
  padding: 8px 20px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #e0e0e0;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: #e44d26;
}

.server-logos {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.server-logos img {
  height: 49px;
  width: auto;
}

/* ====== server-section ====== */
.server-section {
  background-color: #f6f7f7;
  padding: 30px 0;
}

.server-section.light-bg {
  background-color: #ffffff;
}

.server-section.light-bg .server-title,
.server-section.light-bg .server-subtitle h3,
.server-section.light-bg .server-type,
.server-section.light-bg .server-features ul li {
  color: #333333;
}

.server-section.light-bg .action-btn {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
}

.server-section .row {
  padding-right: 50px;
}

/* ====== Hexagon ====== */
.hexagon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 50px 0;
}

.hexagon-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.hexagon-row.center {
  margin: -30px 0;
}

.hexagon {
  width: 308px;
  height: 341px;
  background: linear-gradient(45deg, #283593, #1565c0);
  position: relative;
  text-decoration: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s ease;
}

.hexagon-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hexagon-content span {
  color: #fff;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.hexagon:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #1e3c72, #2a5298);
}

.hexagon:hover .hexagon-content span {
  color: #00ff00;
}

@media (max-width: 768px) {
  .hexagon-row {
    flex-direction: column;
    gap: 20px;
  }

  .hexagon-row.center {
    margin: 0;
  }

  .hexagon {
    width: 150px;
    height: 173px;
  }
}

/* ====== 下面这些是“模块级”样式，保留没问题 ====== */
.infrastructure-section {
  width: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.content-section {
  display: flex;
  flex: 1;
  min-height: 600px;
}

.infrastructure-header {
  width: 100%;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.header-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.header-title {
  margin: 0;
  font-weight: bold;
  font-size: 1.8rem;
}

.menu-list {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #fff;
}

.content-display {
  flex: 0 0 70%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease-in-out;
}

.content-image {
  flex: 1;
  position: relative;
  height: 100%;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.menu-item {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 16px;
  margin: 5px 0;
  border: none;
  border-left: 4px solid #0076CE;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
}

.menu-item:hover {
  background-color: #f5f5f5;
  border-left-color: #005999;
}

.menu-item .arrow-icon {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-item:hover .arrow-icon {
  opacity: 1;
}

.menu-item.active {
  background-color: #f5f5f5;
  font-weight: 700;
  border-left: 4px solid #005999;
}

.menu-item.active .arrow-icon {
  opacity: 1;
}

.content-overlay {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
  width: 30%;
}

.content-text {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.content-text h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: #333;
}

.content-text p {
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.content-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0076CE;
  text-decoration: none;
  font-weight: 500;
}


/* 每个 server 一整块（从标题到 icon 都算一行） */
.server-block{
  width: 100%;
  padding: 1.5rem 0;        /* 原来 py-4 的效果 */
  margin-bottom: 3rem;      /* 原来 mb-5 的效果 */
}

/* 灰色行背景：父层 + 子层都上色，避免被别的规则盖掉 */
.server-block.idx-alt-row,
.server-block.idx-alt-row .server-row{
  background: #f7f7f7 !important;
}
.server-info-block{
    padding: 0 3rem;
}

/* 偶数行：让右侧文字再往右一点 */
.server-block.idx-alt-row .server-info-block{
    padding-left: 4.5rem;
}


/* 确保 row 没有透明缝隙造成“看起来没变” */
.server-block .server-row{
  margin: 0;                /* 让背景不被 row 的负 margin 搞出奇怪边缘 */
  padding-left: 0;
  padding-right: 0;
}

/* =========================
   Mobile overrides (Index servers)
   只影响小屏，不动桌面
   ========================= */
@media (max-width: 768px) {

  /* 每块行距稍微收紧，避免手机滚太长 */
  .server-block{
    padding: 1rem 0;
    margin-bottom: 1.5rem;
  }

  /* 把你桌面用的 ms-4/ms-5“视觉右移”在手机上清零
     你模板里不需要删 ms-4/ms-5 */
  .server-block .server-info-block{
    margin-left: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 图片别太大，避免撑爆/挤压文字 */
  .server-img-big{
    max-height: 220px;
    width: auto;
    max-width: 100%;
  }

  /* 手机无 hover：把 scale-130 的放大效果禁掉，防止怪异 */
  .server-img-big.scale-130{
    transform: none !important;
  }

  /* 按钮区换行更自然，价格不会被挤到奇怪位置 */
  .server-actions{
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .server-actions .server-price{
    margin-left: 0 !important;
  }

  /* logos 太占宽就允许换行 */
  .server-logos{
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}
/* =========================
   iPhone 375px tuned overrides
   ========================= */
@media (max-width: 390px) { /* 覆盖 375/390 (iPhone 12~15) */

  /* 每块整体节奏：更像电商落地页 */
  .server-block{
    padding: 0.9rem 0;
    margin-bottom: 1.25rem;
  }

  /* 背景行“整块”更干净：避免左右边缘感觉脏 */
  .server-block.idx-alt-row{
    background: #f7f7f7;
  }

  /* 文字区：统一左右内边距，彻底消灭 ms-4/ms-5 的偏移 */
  .server-block .server-info-block{
    margin-left: 0 !important;
    padding: 0 1rem !important;   /* 统一 16px */
  }
  /* 偶数行你之前加的 padding-left:4rem 在手机直接覆盖掉 */
  .server-block.idx-alt-row .server-info-block{
    padding-left: 1rem !important;
  }

  /* 图片：固定最大高度 + 保持居中，不抢空间 */
  .server-img-big{
    max-height: 200px;
    max-width: 92vw;
    width: auto;
    height: auto;
  }
  .server-img-big.scale-130{
    transform: none !important;
  }

  /* 标题层级：更紧凑但仍清晰 */
  .server-model{
    font-size: 0.95rem;
    opacity: 0.85;
  }
  .server-title{
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 0.4rem;
  }
  .server-subtitle{
    font-size: 1.0rem;
    margin-bottom: 0.6rem;
  }

  /* bullets：避免太长把页面拖成“文章” */
  .server-features-list{
    margin-bottom: 0.75rem;
    font-size: 1.0rem;
  }
  /* 可选：最多显示 4 条（需要你 bullet 本身是 li）
     觉得信息不够再删掉这段 */
  .server-features-list li:nth-child(n+5){
    display: none;
  }

  /* 操作区：两行布局更像商业站
     第一行：Configure + Details
     第二行：Inquire/Price */
  .server-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
  }
  .server-actions .btn{
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 0;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
  }
  .server-actions .server-price{
    flex: 1 1 100%;
    margin-left: 0 !important;
    font-size: 1.35rem;
    text-align: left;
  }

  /* logos：允许换行，不要挤成一团 */
  .server-logos{
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

.server-price{
  color: #d32f2f !important;
  font-size:2rem;  
  font-weight: 800;
  letter_spacing:0.5px;
}
.server-price::before{
  content: "Starting at ";
  font-size: 1.2rem;
  font-weight: 500;
  margin-right: 6px;
  color: inherit; /* 跟随 .server-price */
}



/* Product list table center alignment */
#product-table-container th,
#product-table-container td {
  text-align: center !important;
  vertical-align: middle !important;
}
