@tailwind base;
@tailwind components;
@tailwind utilities;

/* ---------------- 吸顶导航 ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .96);
}
.nav-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-link img {
  height: 46px;
  width: auto;
  display: block;
}

/* ---------------- 导航链接（自适应下划线 + hover 圆角底） ---------------- */
.nav-box {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-box a {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  color: #333;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-box a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: #1484FE;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-box a:hover {
  color: #1484FE;
  background: rgba(20, 132, 254, .08);
}
.nav-box a.active,
.nav-box a.active2 {
  color: #1484FE;
  font-weight: 700;
}
.nav-box a.active::after,
.nav-box a.active2::after {
  transform: scaleX(1);
}

/* ---------------- 右侧按钮 ---------------- */
.site-nav .btn-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reg-wrap {
  display: inline-flex;
}
.gift-badge {
  position: absolute;
  top: -17px;
  right: -30px;
  background: linear-gradient(135deg, #ff9a3d, #ffb866);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  padding: 6px 7px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 154, 61, .4);
  pointer-events: none;
}

/* ---------------- 右侧固定工具条：联系客服 + 回顶 ---------------- */
.side-tools {
  position: fixed;
  right: 18px;
  bottom: 20%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 60;
}

/* 联系客服按钮（圆形图标） */
.cs-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #259af7;
  background: #fff;
  border: 1px solid #259af7;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 154, 247, .18);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cs-btn svg {
  width: 22px;
  height: 22px;
}
.cs-btn:hover,
.cs-wrap:focus-within .cs-btn {
  color: #fff;
  background: #259af7;
  box-shadow: 0 8px 20px rgba(37, 154, 247, .35);
  transform: translateY(-2px);
}

/* 联系客服弹窗（从右侧向左展开） */
.cs-pop {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: 244px;
  max-width: calc(100vw - 100px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}
.cs-wrap:hover .cs-pop,
.cs-wrap:focus-within .cs-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
.cs-pop-arrow {
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #fff;
  filter: drop-shadow(2px 0 2px rgba(0, 0, 0, .04));
}
.cs-qr {
  text-align: center;
}
.cs-qr img {
  width: 132px;
  height: 132px;
  margin: 0 auto;
}
.cs-qr span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #8a94a6;
}
.cs-info {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.cs-info li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px dashed #eef1f5;
  font-size: 13px;
}
.cs-info .cs-k {
  color: #9aa4b2;
}
.cs-info .cs-v {
  color: #1f2d3d;
  font-weight: 600;
}

/* 回顶按钮（工具条内圆形，滚动后显现） */
.back-top {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #259af7, #4fb6ff);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 154, 247, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, box-shadow .2s ease;
}
.back-top:hover {
  box-shadow: 0 14px 30px rgba(37, 154, 247, .5);
  transform: translateY(-2px);
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top svg {
  width: 22px;
  height: 22px;
}

/* 小屏：工具条整体内移，避免遮挡内容 */
@media (max-width: 560px) {
  .side-tools {
    right: 10px;
    gap: 10px;
  }
  .cs-btn,
  .back-top {
    width: 42px;
    height: 42px;
  }
}
.back-top svg {
  width: 22px;
  height: 22px;
}

/* 移动端：纵向堆叠，链接居中换行 */
@media (max-width: 1023px) {
  .nav-container {
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav-box {
    justify-content: center;
    order: 3;
    width: 100%;
    margin: 8px 0;
  }
  .site-nav .btn-box {
    order: 2;
  }
}

.banner {
  width: 100%;
  position: relative;
}

.banner h3 {
  position: absolute;
  left: 6%;
  top: 25%;
  color: #fff;
  font-size: 44px;
  font-weight: bold;
}

.banner p,
.banner a {
  position: absolute;
  left: 6%;
  top: 48%;
  color: #fff;
  font-size: 22px;
}

.bannerIndex a {
  left: 12.5%;
}

.banner a {
  border-radius: 10px;
  background: #2E83FF;
  padding: 8px 30px;
  top: 67%;
  font-size: 26px;
}

.footer {
  border-bottom: 1px solid #bbb6b6;
}

.copyright p,
.copyright a {
  color: #a79494;
}

.btn-box button {
  border-radius: 25px;
  font-size: 18px;
}

.btn-box .btn1 {
  background: rgb(134, 95, 224);
  color: #fff;
  padding: 6px 25px;
}

.btn-box .btn2 {
  background: rgb(233, 240, 255);
  color: rgb(62, 94, 254);
  padding: 6px 35px;
}

.btn-box nav a {
  font-size: 16px;
  margin-left: 50px;
}

.fuwu {
  border-bottom: 1px solid #bbb6b6;
}

.fuwu>div {
  display: flex;
  align-items: center;
}

.fuwu>div img {
  display: block;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.scale-box {
  transition: transform 0.8s ease-in-out;
}

.scale-box:hover {
  transform: scale(0.5) rotate(-10deg);
}

#loading-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

#loading-overlay img {
  vertical-align: middle;
}

.send-member {
  position: absolute;
  background: #ffc300;
  color: #db5d43;
  text-align: center;
  line-height: 1.5;
  border-radius: 15px;
  border-bottom-left-radius: 0;
  padding: 5px 10px;
  width: 44%;
  top: -20px;
  left: 52.5%;
  font-weight: 550;
}

@media screen and (max-width: 1536px) {
  .send-member {
    width: 52%;
    left: 38.5%;
  }

  .nav-box {
    margin-left: 2%;
  }

  .nav-box a {
    margin-right: 2rem;
  }
}

/*# sourceMappingURL=common.css.map */