/** 自定义样式 **/
html,body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tabindex img{ margin: auto;}

.square {
  width: 100%; /* 使宽度自适应父元素（这里是 <li>） */
  position: relative; /* 为子元素提供定位上下文 */
}

.square-content {
  position: absolute; /* 绝对定位，使其填充父元素 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* 这四条属性确保内容填充整个父元素 */
  background-size: cover; /* 覆盖整个元素 */
  background-position: center; /* 背景居中 */
}

/* 使用 padding-top 创建一个响应式的正方形 */
.square:before {
  content: ''; /* 必须有内容，即使是空字符串 */
  display: block; /* 使伪元素成为块级元素 */
  padding-top: 100%; /* 使高度等于宽度 */
}


.square1 {
    width: 100%; /* 使宽度自适应其父元素 */
    height: 0; /* 初始高度为0 */
    padding-top: 100%; /* 通过padding-top创建高度，等于宽度 */
    position: relative; /* 为图片提供定位上下文 */
}

.square1 img {
    position: absolute; /* 绝对定位图片 */
    top: 0;
    left: 0;
    width: 100%; /* 使图片宽度填满容器 */
    height: 100%; /* 使图片高度填满容器 */
    object-fit: cover; /* 保持图片比例，覆盖整个容器 */
}
