/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow-x: hidden; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
}

/* ========== Background ========== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(180,30,10,0.55) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(220,60,20,0.35) 0%, transparent 60%),
    linear-gradient(180deg, #0b0d12 0%, #1a0a0a 40%, #0f0505 100%);
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("./images/bg-pc.png") center/cover no-repeat;
  opacity: 1;
}
/* 底部红色迷雾 */
.page-bg::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(160,20,10,0.5) 0%, rgba(200,40,15,0.25) 40%, transparent 100%);
  pointer-events: none;
}

/* 两侧山峰剪影（CSS绘制） */
.mountain-left, .mountain-right {
  position: fixed;
  bottom: 25%;
  width: 35vw;
  height: 55vh;
  z-index: 1;
  pointer-events: none;
}
.mountain-left {
  left: -5vw;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 60%, transparent 100%);
  clip-path: polygon(0% 100%, 15% 60%, 25% 40%, 35% 55%, 45% 30%, 55% 50%, 70% 20%, 85% 45%, 100% 100%);
  filter: brightness(0.6);
}
.mountain-right {
  right: -5vw;
  background: linear-gradient(225deg, #1a1a1a 0%, #0d0d0d 60%, transparent 100%);
  clip-path: polygon(0% 100%, 15% 45%, 30% 20%, 45% 50%, 55% 30%, 65% 55%, 75% 40%, 85% 60%, 100% 100%);
  filter: brightness(0.6);
}

/* ========== Main Container ========== */
.main-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vh 16px 6vh;
}



/* ========== Content Card (hover popup) ========== */
.content-card {
  width: 250px;
  position:fixed;
  left: 50%;
  top: 60%;
  right: 0;
  bottom: 0;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 16px;
}
.content-card.show { display: flex; }
.content-card .qr-box {
  width: 85%;
  aspect-ratio: 1;
  background: #111;
  border-radius: 8px;
  margin-bottom: 10px;
}
.content-card .qr-text {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* ========== Buttons ========== */
.btn-wrap {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 16px;
  padding: 0 8px;
  position: fixed;
  bottom: 6%;
}
.btn-item {
  position: relative;
  /* height: 80%; */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  border: none;
  outline: none;
  background-size: contain;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn-item>img {
    width: 100%;
}

/* ========== Customer Service ========== */
.cs-btn {
  position: fixed;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: url(./images/kf.png) no-repeat center center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.cs-btn .tips{
    width: 150%;
    position: absolute;
    top: -80px;

}
.cs-btn:hover { transform: translateY(-50%) scale(1.05); }
.cs-btn .cs-icon {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50% 50% 45% 45%;
  position: relative;
  margin-bottom: 2px;
}
.cs-btn .cs-icon::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 8px;
  background: #333;
  border-radius: 2px;
}
.cs-btn .cs-icon::after {
  content: "";
  position: absolute;
  top: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 10px;
  border: 2px solid #333;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.cs-btn .cs-text {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

/* ========== Desktop Layout (>= 768px) ========== */
@media (min-width: 768px) {
  .content-card {
    position:fixed;
    left: 50%;
    top: 60%;
  }
  .main-wrap { padding-top: 5vh; }
  .title-main { letter-spacing: 12px; }
  .title-sub { letter-spacing: 14px; }
  .content-card { display: none; }
  .content-card.show { display: flex; }
  .gate-wrap { display: none; }
  .btn-wrap {
    grid-template-columns: 1fr 1fr;
    /* max-width: 640px; */
    gap: 20px 24px;
  }
  .btn-item { height: 64px; font-size: 20px; }
  .cs-btn {
    width: 80px;
    height: 80px;
    right: 35px;
  }
  .cs-btn .cs-icon { width: 50px; height: 50px; }
  .cs-btn .cs-text { font-size: 11px; }
}

/* ========== Mobile Layout (< 768px) ========== */
@media (max-width: 767px) {
    .page-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
          url("./images/bg-h5.png") center/cover no-repeat;
        opacity: 1;
      }
      
  .main-wrap { padding-top: 5vh; }
  .title-main { letter-spacing: 4px; }
  .title-sub { letter-spacing: 6px; }
  .content-card { display: none; }
  .gate-wrap { display: block; }
  .btn-wrap {
    grid-template-columns: 1fr;
    max-width: 380px;
    gap: 14px;
  }
  .btn-item { height: 52px; font-size: 17px; }
  .cs-btn {
    width: 85px;
    height: 85px;
    right: 30px;
  }
  .cs-btn .cs-icon { width: 24px; height: 24px; }
  .cs-btn .cs-text { font-size: 9px; }
}

/* ========== Very Small Screens ========== */
@media (max-width: 360px) {
  .title-main { font-size: 38px; letter-spacing: 2px; }
  .title-sub { font-size: 32px; letter-spacing: 3px; }
  .btn-item { height: 48px; font-size: 16px; }
}

/* ========== Landscape phone tweaks ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .main-wrap { padding-top: 3vh; }
  .title-main { font-size: 32px; }
  .title-sub { font-size: 28px; }
  .content-card { width: 120px; aspect-ratio: 1; margin: 1vh 0 2vh; }
  .gate-wrap { margin: 1vh 0 2vh; }
  .gate-box { width: 60px; height: 60px; }
  .gate-box span { font-size: 36px; }
  .btn-item { height: 42px; font-size: 15px; }
}

/* ========== LiveChat Widget ========== */
/* 使用页面右侧客服按钮，隐藏 widget 默认悬浮球 */
#livechat-btn-wrap { display: none !important; }