:root {
  /* 显示的卡片数 */
  --visible: 4;
  /* 卡片间隙 */
  --gap: 20px;
  /* 字体大小 */
  --font-size: 16px;
}

/* 基础重置 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* 控制 rem 基准值 */
  font-size: var(--font-size);
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1C2C41;
  background-color: #f5f7fa;
  font-size: 1rem;
}

/* 可选：去掉默认装饰 */
a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  max-width:100%;
}

select:focus,
input:focus,
button:focus,
textarea:focus {
  border: 0;
  /* 去掉外部高亮边框 */
  outline: none;
  /* 有些浏览器会加阴影 */
  box-shadow: none;
}

.form-wrap select {
  height: 40px;
  padding: 0 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-wrap input {
  height: 40px;
  padding: 0 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

/* 默认大屏显示，小屏隐藏 */
.hide-xs-down {
  /* 大屏默认显示 */
  display: block;
}

.show-xs-down {
  /* 大屏默认隐藏 */
  display: none !important;
}

/* 小屏（<=768px）时覆盖 */
@media (max-width: 768px) {
  :root {
    --visible: 1;
    --gap: 16px;
  }

  .hide-xs-down {
    /* 小屏隐藏 */
    display: none !important;
  }

  .show-xs-down {
    /* 小屏显示 */
    display: block;
  }
}
