/* 设置根字体大小，用于rem计算 */
html {
  font-size: 16px;
  /* 基础字体大小 */
}

/* 顶部标题栏可调节上内边距（上下位置） */
:root {
  --topbar-offset: 0.7rem; /* 调整这个值即可上下移动顶部图标 */
  --btn-icon-left-offset: -1.5rem; /* 调整这个值控制按钮左侧图标位置（负值向左，正值向右） */
  --btn-icon-right-offset: 1.5rem; /* 调整这个值控制按钮右侧图标位置（负值向左，正值向右） */
  --dong2-width: 120%; /* 调整这个值控制dong-2.gif图片的宽度 */
  --dong2-horizontal-offset: -10%; /* 调整这个值控制dong-2.gif图片的左右位置（负值向左，正值向右） */
  --marquee-speed: 110s; /* 调整这个值控制跑马灯速度（数值越小越快） */
  --marquee-top-offset: -2.3%; /* 调整这个值控制跑马灯上下位置（负值向上，正值向下） */
  --marquee-top-offset-b: -0.3%; /* 调整这个值控制跑马灯上下位置（负值向上，正值向下） */
  --marquee-font-size: 0.9rem; /* 调整这个值控制跑马灯字体大小 */
  --marquee-color: #ffd700; /* 调整这个值控制跑马灯字体颜色 */
  --marquee-left-margin: 13%; /* 调整这个值控制文字左边消失位置（负值向左，正值向右） */
  --marquee-right-margin: 13%; /* 调整这个值控制文字右边出现位置（负值向左，正值向右） */
  --logo-horizontal-offset: 0.1rem; /* 调整这个值控制顶部左侧logo左右位置（负值向左，正值向右） */
  --logo-vertical-offset: -0.5rem; /* 调整这个值控制顶部左侧logo上下位置（负值向上，正值向下） */
  --download-horizontal-offset: 0.5rem; /* 调整这个值控制顶部右侧下载图标左右位置（负值向左，正值向右） */
  --download-vertical-offset: -0.1rem; /* 调整这个值控制顶部右侧下载图标上下位置（负值向上，正值向下） */
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #3b1f07 0%, #000000 100%);
  overflow-x: hidden;
}

.container {
  width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-bottom: 0; /* ✅ 删除 !important */
}

.container > *:last-child {
  margin-bottom: 0 !important;  /* ✅ 去掉最后一个元素的下外边距 */
}

.headerBox {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  z-index: 999;
  background: linear-gradient(90deg, #6B4018 0%, #1E1E1E 150%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.35);
  border-radius: 10px 10px 0 0;
}
.topBox {
  width: 100%;
  height: auto;
  position: relative; /* 为绝对定位的子元素提供参考 */
}
.banner {
  width: 100%;
  height: 470px;
  background: url('../img/banner.jpg') no-repeat;
  background-size: 100% 100%;
  text-align: center;
}

.logo-section {
  margin-top: 0rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: translate(var(--logo-horizontal-offset), var(--logo-vertical-offset));
  margin-top: 2vh;
  margin-left: 5%;
}

.logo {
  width: auto;
  height: 4rem;
  margin-top: 0.5rem;
}

/* 右侧装饰图片 */
.right-decoration {
  display: flex;
  align-items: center;
  margin-left: auto;
  transform: translate(var(--download-horizontal-offset), var(--download-vertical-offset));
  margin-top: 0.8vh;
    margin-right: 5%;
}

.download-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.download-link:hover {
  transform: scale(1.05);
}

.dong-1 {
  width: auto;
  height: 2rem;
  object-fit: fill;
}

/* 客服图标 */
.kf-icon {
  position: absolute;
  right: 0;
  bottom: 1rem;
  z-index: 2;
  pointer-events: none; /* 避免遮挡其他元素 */
}

.kf-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  pointer-events: auto; /* 链接本身可以点击 */
}

.kf-link:hover {
  transform: scale(1.05);
}

.kf-img {
  width: auto;
  height: 2.5rem;
  object-fit: fill;
  pointer-events: auto; /* 图标本身可以点击 */
}

.midBox {
  width: 100%;
  height: auto;
  display: flex;
  background: url('../img/bg-1.jpg') no-repeat center;
  position: relative;
}

/* 主要内容区域 */
.main-content {
  width: 100%;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  margin-top: -30px;
}

/* 跑马灯公告 */
.marquee-section {
  position: absolute;
  width: calc(100% - var(--marquee-right-margin) - var(--marquee-left-margin));
  top: var(--marquee-top-offset-b);
  left: var(--marquee-right-margin);
  z-index: 999;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  font-size: var(--marquee-font-size);
  color: var(--marquee-color);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: marquee var(--marquee-speed) linear infinite;
  padding-right: 0;
  will-change: transform;
}

/* 使用伪元素复制同一段文本，形成无缝循环 */
.marquee-content::after {
  content: attr(data-text);
  margin-left: 2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 通知区域 */
.notice-section {
  position: absolute;
  width: 100%;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-content: center;
  justify-content: center;
  z-index: 1;
}

.tongzhi {
  width: 95%;
  height: auto;
}

/* 金色边框容器 */
.golden-border-container {
  background: url('../img/bg-2.png') no-repeat center;
  background-size: 100% 100%;
  padding: 0rem 1rem;
  width: 100%;
  position: relative;
  margin-bottom: 0.75rem;
}
.title {
    color: #fff;
    font-size: 24px;
    margin-top: 20px;
  }
/* OFFICIAL LINKS标题区域 */
.official-links-header {
  text-align: center;
}

.dong-2 {
  width: var(--dong2-width);
  height: auto;
  object-fit: fill;
}

/* 按钮区域 */
.buttons-section {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  padding-top: 10px;
  flex-wrap: wrap;
}

.button-item {
  width: 49%;
  background: url('../img/bg-btn2.png') no-repeat center;
  background-size: 100% 100%;
  display: flex;
  align-content: center;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-bg {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 0 0.875rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 100px;
}

.btn-bg:hover {
  transform: scale(1.02);
}

.tubiao {
  width: auto;
  height: 20px;
  object-fit: fill;
  transform: translateX(var(--btn-icon-left-offset));
  margin-left: 15px;
}

.btn-bg-mid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dong-3 {
  width: auto;
  height: 2rem;
  object-fit: fill;
}

.dong-4 {
  width: auto;
  height: 31px;
  object-fit: fill;
  transform: translateX(var(--btn-icon-right-offset));
  margin-left: -20px;
}

.btn-text {
  color: #fff;
  font-size: 1rem;
  flex: 1;
  text-align: center;
  margin-left: 0.2rem;
  display: inline-block;
  width: 105px;
}

/* 文字提示区域 */
.text-section {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 1rem;
  padding: 0 0.8rem;
}

.text-content {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
}

/* 文字提示区域2 */
.center-text {
  width: 100%;
  text-align: center;
  margin-bottom: 0.2rem;
  margin-top: 0.3rem;
  padding: 0 0.8rem;
}

.recommend-text {
  font-size: 0.875rem;
  color: #edcba1;
  font-weight: 500;
  line-height: 1.2;
}

/* 四个图标区域 */
.icons-section {
  width: 100%;
  height: auto;
  padding: 0rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.icon-item {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: url('../img/bg-btn.png') no-repeat;
  background-size: 100% 100%;
  padding: 0 0.8rem;
}

.icon-item:hover {
  transform: scale(1.05);
}

.icon-item-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.icon {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: fill;
}

.icon-text {
  width: 100%;
  color: white;
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.5;
  font-weight: 500;
  margin-left: 10px;
}

/* 白色竖线 */
.vertical-line {
  width: 1px;
  height: 1rem;
  background-color: #edcba1;
  margin: 0 1rem;
}

/* botBox样式 */
.botBox {
  width: 100%;
  height: auto;
}

.botBox-img {
  width: 100%;
  height: 87px;
  display: block;
  margin: 0 auto;

}


/* 响应式调整 */
@media screen and (max-width: 499px) {
  .container {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  .headerBox {
    width: 100%;
    height: 7vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .topBox {
    width: 100%;
    height: auto;
    position: relative; /* 为绝对定位的子元素提供参考 */
  }
  .banner {
  width: 100%;
  height: 53vh;
  background: url('../img/banner.jpg') no-repeat;
  background-size: 100% 100%;
}

  .logo-section {
    margin-top: 0rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: translate(var(--logo-horizontal-offset), var(--logo-vertical-offset));
    margin-top: 2vh;
    margin-left: 5vw;
  }

  .logo {
    width: auto;
    height: 8vh;
    margin-top: 0.5vh;
  }

  /* 右侧装饰图片 */
  .right-decoration {
    display: flex;
    align-items: center;
    margin-left: auto;
    transform: translate(var(--download-horizontal-offset), var(--download-vertical-offset));
    margin-top: 0.8vh;
    margin-right: 5vw;
  }

  .download-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .download-link:hover {
    transform: scale(1.05);
  }

  .dong-1 {
    width: auto;
    height: 3.8vh;
    object-fit: fill;
  }

  /* 客服图标 */
  .kf-icon {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    z-index: 2;
    pointer-events: none; /* 避免遮挡其他元素 */
  }

  .kf-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto; /* 链接本身可以点击 */
  }

  .kf-link:hover {
    transform: scale(1.05);
  }

  .kf-img {
    width: auto;
    height: 3rem;
    object-fit: fill;
    pointer-events: auto; /* 图标本身可以点击 */
  }

  .midBox {
    width: 100%;
    height: auto;
    display: flex;
    position: relative;
    background: url('../img/bg-1.jpg') no-repeat center;
  }

  /* 主要内容区域 */
  .main-content {
    width: 100%;
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    margin-top: -3.5vh;
  }

  /* 跑马灯公告 */
  .marquee-section {
    position: absolute;
    width: calc(100% - var(--marquee-right-margin) - var(--marquee-left-margin));
    top: var(--marquee-top-offset);
    left: var(--marquee-right-margin);
    z-index: 999;
    overflow: hidden;
    white-space: nowrap;
  }

  .marquee-content {
    display: inline-block;
    font-size: var(--marquee-font-size);
    color: var(--marquee-color);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: marquee var(--marquee-speed) linear infinite;
    padding-right: 2rem;
    will-change: transform;
  }

  /* 通知区域 */
  .notice-section {
    position: absolute;
    width: 100%;
    top: -3%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-content: center;
    justify-content: center;
    z-index: 1;
  }

  .tongzhi {
    width: 95%;
    height: auto;
  }

  /* 金色边框容器 */
  .golden-border-container {
    background: url('../img/bg-2.png') no-repeat center;
    background-size: 100% 100%;
    padding: 0rem 0.5rem 0.2rem 0.5rem;
    width: 100%;
    position: relative;
    margin-bottom: 0.75rem;
  }
  .title {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 2.2vh;
  }

  /* OFFICIAL LINKS标题区域 */
  .official-links-header {
    text-align: center;
  }

  .dong-2 {
    width: var(--dong2-width);
    height: auto;
    object-fit: fill;
  }

  /* 按钮区域 */
  .buttons-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    padding-top: 0.5rem;
    flex-wrap: wrap;
  }

  .button-item {
    background: url('../img/bg-btn2.png') no-repeat center;
    background-size: 100% 100%;
    width: 49%;
    display: flex;
    align-content: center;
    justify-content: center;
    margin-top: 1rem;
  }

  .btn-bg {
    width: 100%;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: start;
    padding: 0 0.6rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 100px;
  }

  .btn-bg:hover {
    transform: scale(1.02);
  }

  .tubiao {
    width: auto;
    height: 0.75rem;
    object-fit: fill;
    transform: translateX(var(--btn-icon-left-offset));
  }

  .btn-bg-mid {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dong-3 {
    width: auto;
    height: 1.75rem;
    object-fit: fill;
  }

  .dong-4 {
    width: auto;
    height: 1.5rem;
    object-fit: fill;
    transform: translateX(var(--btn-icon-right-offset));
    margin-left: -1.5rem;
  }

  .btn-text {
    color: #fff;
    font-size: 0.75rem;
    flex: 1;
    text-align: center;
    margin-left: 0.15rem;
    display: inline-block;
    width: 4.75rem;
  }

  /* 文字提示区域 */
  .text-section {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    padding: 0 0.8rem;
  }

  .text-content {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.2;
  }

  /* 文字提示区域2 */
  .center-text {
    width: 100%;
    text-align: center;
    margin-bottom: 0.2rem;
    margin-top: 0.3rem;
    padding: 0 0.8rem;
  }

  .recommend-text {
    font-size: 0.875rem;
    color: #edcba1;
    font-weight: 500;
    line-height: 1.2;
  }

  /* 四个图标区域 */
  .icons-section {
    width: 100%;
    height: auto;
    padding: 0 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    box-sizing: border-box;
  }

  .icon-item {
    width: 100%;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: url('../img/bg-btn.png') no-repeat;
    background-size: 100% 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    min-width: 0;
  }

  .icon-item:hover {
    transform: scale(1.05);
  }

  .icon-item-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .icon {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: fill;
  }

  .icon-text {
    width: 100%;
    color: white;
    font-size: 0.7rem;
    text-align: left;
    line-height: 1.5;
    font-weight: 500;
    margin-left: 0.5rem;
  }

  /* 白色竖线 */
  .vertical-line {
    width: 1px;
    height: 1rem;
    background-color: #edcba1;
    margin: 0 1rem;
  }

  /* botBox样式 */
  .botBox {
    width: 100%;
    height: auto;
  }

  .botBox-img {
    width: 100%;
    height: 9vh;
    display: block;
    margin: 0 auto;
  }

}
