body {
  margin: 0;
  font-family: sans-serif;
  background: #9C815C;
  background-image: url(../images/bg.png);
  color: #fff;
  text-align: center;
}

.logo {
  text-align: center;
  padding: 10px 0;
}

.logo img {
  max-width: 360px;     /* PC最大宽度 */
  width: 80%;           /* 手机宽度自适应 */
  height: auto;
}

/* 小屏幕（手机）调整 */
@media (max-width: 768px) {
  .logo img {
    max-width: 300px;    /* 手机最大宽度更小 */
  }
}


.container {
  width: 60%;
  margin: 0 auto;
  max-width: 1200px;
}
@media (max-width: 1024px) {
  .container {
    width: 100%;
  }
}

.logo {
  padding: 20px 0;
  font-size: 36px;

}

.carousel {
  position: relative;
  width: 96%;
  overflow: hidden;
  border-radius: 10px;
  margin: 0 auto; /* ✅ 居中对齐 */
}

.carousel img {
  width: 100%;
  display: none;
}

.carousel img.active {
  display: block;
}

/* 速度测试区域 */
.speed-tests {
  border:1px solid #F3DF69 ;
  margin:20px auto;
  width: 96%;
  display: flex;
  justify-content: center;
  background: #231E0A;
  border-radius: 15px;
  padding: 20px 0;
  overflow: hidden;
}


.speed-link {
  margin: 0 5px;
  font-size: 18px;
  width: 70%;
  box-sizing: border-box;
}
.speed-link img{
  width:50%;
}
.speed-value {
  font-size: 24px;
  font-weight: bold;
  position: relative;
  cursor: pointer;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  line-height: 100px;
  text-align: center;
  color: #025461;
  background: url('../images/imglink.png') no-repeat center center;
  background-size: 60px 60px; 
}



/* 平板隐藏第5个测速 */
@media (max-width: 1023px) {
  .hide-on-tablet {
    display: none !important;
  }
  .speed-link img{
    width:60%;
  }
}

/* 手机隐藏第4、5个测速 */
@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
  .speed-link img{
    width:60%;
  }
}




.csrs {
  display: grid;
  gap: 20px;
  padding: 20px;
  justify-items: center;
  align-items: center;
  margin: 0 auto;
  grid-template-columns: repeat(1, 1fr); /* 默认：手机端每行两个 */
}

/* 图标按钮样式 */

.csr-btn img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.2s ease;
}
.csr-btn:hover img {
  transform: scale(1.05);
}

/* ✅ PC端布局：第1行2个，*/
@media (min-width: 769px) {
  .csrs {
    grid-template-columns: repeat(2, 1fr); /* 依然是2列，但我们人为控制第2/3行 */
    max-width: 80%; /* 限制宽度使每行2列显示整齐 */
  }
  .csr-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.2s ease;
  }

}
