/* 在较小的屏幕上 */
@media screen and (max-width: 600px) {
  html {
    font-size: 14px; /* 小屏幕使用较小的字体大小 */
  }
}

/* 在较大的屏幕上 */
@media screen and (min-width: 1200px) {
  html {
    font-size: 18px; /* 大屏幕使用较大的字体大小 */
  }
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
  background: #f7f7f7 !important; /* 滑块颜色 */
  border-radius: 10px;
}

/*全局去除默认样式*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 14px;
}

:root {
  color-scheme: none;
}

/*a标签去除默认样式*/
a {
  text-decoration: none;
  color: #333;
}

a:hover,
a:visited,
a:link,
a:active {
  color: #333;
}

/*li*/
ul,
ol {
  list-style: none;
}

/*button*/
.button {
  border: 0;
  outline: none;
  -webkit-appearance: none;
}

/*h1*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

/*input，textarea*/
input,
textarea {
  outline: none;
  border: none;
}

textarea {
  resize: none;
  overflow: auto;
}

/*斜体 i*/
i {
  font-style: normal;
}

/*table*/
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*去除input[type=number]加减号*/
/* 谷歌 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* 火狐 */
input {
  -moz-appearance: textfield;
}

body {
  width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
  background-color: #f7f7f7;
}

.van-hairline--bottom:after {
  border: none !important;
}


/* PC home layout optimization */
@media screen and (min-width: 1024px) {
  html {
    font-size: 16px !important;
  }

  body {
    overflow-y: auto;
    background: #f2f4f7;
  }

  .container.safari_only {
    width: calc(100% - 48px) !important;
    max-width: 1180px !important;
    min-height: 100vh;
    height: auto !important;
    margin: 0 auto;
    overflow: visible !important;
    background: #fff;
    box-shadow: 0 0 32px rgba(15, 23, 42, 0.06);
  }

  .container.safari_only .home-header {
    height: 72px !important;
    padding: 10px 24px !important;
    border-bottom: 1px solid #eef0f3;
  }

  .container.safari_only .home-header .tiktok-img {
    flex: 0 0 350px !important;
    width: 350px !important;
    height: 49px !important;
  }

  .container.safari_only .home-header .tiktok-img .van-image__img {
    object-fit: contain !important;
    object-position: left center;
  }

  .container.safari_only .home-header .header-imgs {
    flex: 1 1 auto !important;
  }

  .container.safari_only .home-content {
    margin: 0 !important;
    padding: 20px 24px 48px !important;
  }

  .container.safari_only .input-container .input-field {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  }

  .container.safari_only .input-field .van-field__control {
    font-size: 15px;
  }

  .container.safari_only .input-field > .bi-icon:last-child {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #e4e7ec;
  }

  .container.safari_only .swipe-board {
    padding-top: 18px !important;
  }

  .container.safari_only .swipe-board .van-swipe,
  .container.safari_only .swipe-board .van-swipe__track,
  .container.safari_only .swipe-board .van-swipe-item,
  .container.safari_only .swipe-board .van-image,
  .container.safari_only .swipe-board .van-image__img {
    height: 202px !important;
  }

  .container.safari_only .swipe-board .van-swipe,
  .container.safari_only .swipe-board .van-image,
  .container.safari_only .swipe-board .van-image__img {
    border-radius: 14px;
  }

  .container.safari_only .swipe-board .van-image__img {
    object-fit: cover !important;
  }

  .container.safari_only .classes-container:empty {
    height: 0;
    padding-top: 0 !important;
  }

  .container.safari_only .hot-product {
    padding-top: 22px !important;
  }

  .container.safari_only .hot-product-title {
    margin-bottom: 12px;
  }

  .container.safari_only .hot-product:not(.hot-shop) .van-empty {
    min-height: 120px;
    padding: 18px 0 !important;
    --van-empty-image-size: 72px;
  }

  .container.safari_only .hot-product:not(.hot-shop) .van-empty__description {
    margin-top: 8px;
  }

  .container.safari_only .hot-shop > .van-space {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
    width: 100%;
  }

  .container.safari_only .hot-shop > .van-space > .van-space-item {
    width: auto !important;
    min-width: 0;
  }

  .container.safari_only .horiz-product-container {
    height: 158px !important;
    padding: 12px !important;
    align-items: center !important;
    border: 1px solid #eceff3;
    border-radius: 14px !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
    overflow: hidden;
  }

  .container.safari_only .horiz-product-container > .van-image {
    flex: 0 0 132px !important;
    width: 132px !important;
    height: 132px !important;
    border-radius: 10px;
    overflow: hidden;
  }

  .container.safari_only .horiz-product-container > .van-image .van-image__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .container.safari_only .horiz-product-container .product-info {
    flex: 1 1 auto !important;
    min-width: 0;
    height: auto !important;
    padding: 0 0 0 14px !important;
    gap: 9px;
    justify-content: center !important;
    line-height: 1.45 !important;
  }

  .container.safari_only .horiz-product-container .product-prices {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .container.safari_only .horiz-product-container .product-name {
    display: -webkit-box;
    width: 100% !important;
    white-space: normal !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .van-tabbar--fixed,
  .h-10 {
    display: none !important;
  }
}

@media screen and (min-width: 1280px) {
  .container.safari_only .hot-shop > .van-space {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* PC bottom navigation */
@media screen and (min-width: 1024px) {
  .van-tabbar--fixed {
    display: flex !important;
    left: 50% !important;
    width: calc(100% - 48px) !important;
    max-width: 1180px !important;
    height: 64px !important;
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid #e6e8ec;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.10);
    z-index: 1000 !important;
  }

  .van-tabbar--fixed .van-tabbar-item {
    min-width: 0;
    border-radius: 10px;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .van-tabbar--fixed .van-tabbar-item--active {
    color: #111827 !important;
    background: #f1f3f5 !important;
  }

  .h-10 {
    display: block !important;
    height: 82px !important;
  }
}
