/* 艾克罗 - 自定义样式 */

:root {
  --primary-color: #ba7f38;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: MicrosoftYaHei;
  line-height: 1;
}

.header-nav {
  height: 30px;
  line-height: 30px;
  background-color: #f5f5f5;
}
.header-nav a {
  padding: 0 40px;
  font-size: 14px;
  color: #333333;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav .nav-cart-btn:hover {
  background-color: #ededed;
}

.header-logo {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
}
.header-logo-img {
  width: 300px;
  height: 99px;
}
.header-search {
  width: 300px;
  height: 48px;
  border: 1px solid #e6e6e6;
  display: flex;
}
.search-input {
  border-right: 1px solid #e6e6e6;
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  box-shadow: inset 0 0 0 transparent;
  transition:
          border-color 0.15s,
          box-shadow 0.15s;
}
.search-input:focus {
  outline: none; /* 去掉蓝色轮廓 */
  box-shadow: none; /* 去掉阴影 */
  border-color: inherit; /* 保持原来的边框颜色 */
}
.search-btn {
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu {
  position: relative;
  height: 50px;
  background: #000000;
  color: #ffffff;
}

.header-menu-item,
.header-menu-sub-item {
  width: 50%;
  flex: 1;
  text-align: center;
}
/* .header-menu-item:nth-child(1),
.header-menu-sub-item:nth-child(1) {
  text-align: left;
}
.header-menu-item:last-of-type,
.header-menu-sub-item:last-of-type {
  text-align: right;
} */

.header-menu:hover .header-menu-sub {
  display: block;
}
.header-menu-sub {
  display: none;
  position: absolute;
  z-index: 9;
  left: 0;
  right: 0;
  top: 50px;
  width: 100%;
  min-height: 306px;
  background: rgba(255, 255, 255, 0.97);
  /* background: #999; */
  border-radius: 4px 4px 4px 4px;
  padding: 20px 0;
}
.header-menu-sub-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.header-menu-sub-item a {
  color: #333333;
  font-size: 14px;
  text-decoration: none;
}
.header-menu-sub-item a:hover {
  color: var(--primary-color);
  font-weight: bold;
}

.header-swiper {
  position: relative;
  height: 573px;
  background-color: #eee;
}
/* 轮播图 */
.layui-carousel-ind ul {
  background: none !important;
  top: -40px !important;
}
.layui-carousel-ind ul li {
  width: 13px !important;
  height: 13px !important;
  border-radius: 50% !important;
  background-color: #333 !important;
  opacity: 0.8 !important;
  transition: all 0.3s ease !important;
  border: none !important;
}
.layui-carousel-ind ul li.layui-this {
  background-color: var(--primary-color) !important;
  width: 22px !important;
  border-radius: 10px !important;
}

/* 弹窗 */
.layui-layer-title {
  font-size: 16px;
  border-bottom: 0;
}

.home-tabs {
  height: 108px;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.home-tabs-item {
  flex: 1;
  cursor: pointer;
  position: relative;
  display: inline-block;
}
.home-tabs-item-active .home-tabs-img {
  display: none;
}
.home-tabs-item-active .home-tabs-img-active {
  display: block;
}
.home-tabs-img {
  width: 100%;
  height: 106px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.home-tabs-img-active {
  display: none;
  width: auto;
  height: 106px;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.home-tabs-item:hover .home-tabs-img {
  display: none;
}
.home-tabs-item:hover .home-tabs-img-active {
  display: block;
}

.home-goods-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #ffffff;
  gap: 86px;
  padding: 40px 40px;
}
.home-goods-item {
  width: 556px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.home-goods-item-title {
  width: 100%;
  flex: 0 0 auto;
  text-align: left;
  font-family: MalgunGothic, MalgunGothic;
  font-size: 30px;
  color: #333333;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
}
.home-goods-item-price {
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-goods-item-price-old {
  font-family: Helvetica;
  font-size: 26px;
  color: #1b1b1b;
  text-align: left;
}
.home-goods-item-price-new {
  font-family: Helvetica;
  font-size: 24px;
  color: var(--primary-color);
}

.home-goods-item-price-btn {
  cursor: pointer;
  display: inline-block;
  width: 181px;
  min-width: 181px;
  max-width: 181px;
  height: 43px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
}

.goods-item-operation-btn {
  cursor: pointer;
  display: inline-block;
  height: 43px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid #cdcdcd;
}

.goods-info-btn:hover {
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}
.goods-cart-btn {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}
.goods-cart-btn:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.product-tabs {
  width: 1280px;
  height: 265px;
  background: #fff;
}
.product-tabs-item {
  width: 216px;
  height: 40px;
  border: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.product-tabs-item-active {
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}
.product-tabs-item:hover {
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

input:focus {
  outline: 1px solid #ba7f38; /* 去掉蓝色轮廓 */
  box-shadow: none; /* 去掉阴影 */
  border-color: #ba7f38; /* 保持原来的边框颜色 */
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cccccc;
  cursor: pointer;
  vertical-align: middle;
}
input[type="checkbox"]:checked {
  background: #ba7f38 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E")
  center/10px 10px no-repeat;
  border-color: #ba7f38;
}

/* tooltip */
.tooltip {
  position: absolute;
  padding: 0.25rem 0;
}
.tooltip .tooltip-inner {
  max-width: var(--bs-tooltip-max-width, 200px);
  padding: var(--bs-tooltip-padding-y, 0.25rem) var(--bs-tooltip-padding-x, 0.5rem);
  color: var(--bs-tooltip-color, #fff);
  background: var(--bs-tooltip-bg, #000);
  border-radius: var(--bs-tooltip-border-radius, 0.25rem);
  font-size: var(--bs-tooltip-font-size, 12px);
  line-height: var(--bs-tooltip-line-height, 1.4);
  white-space: normal;
}
.tooltip .tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
}
.bs-tooltip-top .tooltip-arrow {
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  border-top-color: var(--bs-tooltip-bg, #000);
}
.bs-tooltip-bottom .tooltip-arrow {
  top: -6px;
  left: 50%;
  margin-left: -6px;
  border-bottom-color: var(--bs-tooltip-bg, #000);
}
.bs-tooltip-start .tooltip-arrow,
.bs-tooltip-left .tooltip-arrow {
  right: -6px;
  top: 50%;
  margin-top: -6px;
  border-left-color: var(--bs-tooltip-bg, #000);
}
.bs-tooltip-end .tooltip-arrow,
.bs-tooltip-right .tooltip-arrow {
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border-right-color: var(--bs-tooltip-bg, #000);
}
.white-tooltip {
  --bs-tooltip-bg: #ffffff;
  --bs-tooltip-color: #333333;
  --bs-tooltip-border-color: #000000;
  --bs-tooltip-padding-x: 10px;
  --bs-tooltip-padding-y: 12px;
  --bs-tooltip-border-radius: 10px;
  --bs-tooltip-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
  --bs-tooltip-max-width: 200px;
  --bs-tooltip-font-size: 14px;
  --bs-tooltip-font-weight: 400;
  --bs-tooltip-line-height: 20px;
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.08);
  line-height: 2 !important;
  border-radius: 6px;
}

/* dropdown */
.dropdown-toggle::after {
  display: none;
}

.layui-dropdown.layui-panel {
  box-shadow: none !important;
  border: none !important;
}
.layui-menu {
  text-align: center;
  font-size: 16px;
  padding: 20px 0;
  border-radius: 4px 4px 4px 4px;
  border: 0;
  margin-bottom: 0 !important;
  box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.1);
}
.layui-menu::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border: 6px solid transparent;
}
.layui-menu::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border: 10px solid transparent;
  z-index: 2;
  background: #fff;
}
.layui-menu-body-title {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layui-menu li {
  cursor: pointer;
  height: 40px;
}
/* .layui-menu li:hover .layui-menu-body-title {
  font-weight: bold;
  color: #ba7f38;
} */

/* city-picker */
.city-picker-span {
  font-size: 18px;
}
.city-picker-span > .placeholder {
  color: #333333;
  background: transparent;
}
.city-picker-span {
  border-bottom: none !important;
}

/* 自定义弹窗 */
.custom-dialog-bg {
  background: red;
  /* 左上角到右下角渐变背景 ,百分比0到100%*/
  /* to bottom right改为linear-gradient(to bottom right, #e6d5c1, #f0f0f0)设置渐变比例 0% 0% 100% 100%*/
  background: linear-gradient(135deg, #e6d5c1 0%, #f0f0f0 40%, #ffffff 100%);
}

/* 会员通知弹框专属尺寸：16:9 放大，仅作用于 noticeAlert，不影响其他弹框 */
/* 高度在原 450px 基础上放大三分之一至 600px*/
.notice-alert-16x9 {
  width: 800px !important;
  max-width: 90vw !important;
}
.notice-alert-16x9 .swal2-html-container {
  /* 内容超出 16:9 高度时内部滚动 */
  overflow-y: auto;
}

/* profile */
.profile-menu {
  color: #666;
  cursor: pointer;
}

.profile-menu:hover {
  color: var(--primary-color);
  font-weight: bold;
}

.profile-menu-active {
  color: var(--primary-color);
  font-weight: bold;
}

.customer-tooltip {
  position: relative;
}
.customer-tooltip:hover .customer-tooltip-content {
  display: block;
}
.customer-tooltip-content {
  z-index: 1000;
  display: none;
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 4px;
  padding: 20px 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  min-width: 100px;
  width: auto;
  white-space: nowrap;
  text-align: center;
}
.customer-tooltip-content::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border: 6px solid transparent;
}
.customer-tooltip-content::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border: 10px solid transparent;
  z-index: 2;
  background: #fff;
}
