/* 设置根字体大小，用于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: -1%; /* 调整这个值控制跑马灯上下位置（负值向上，正值向下） */
  --marquee-font-size: 0.9rem; /* 调整这个值控制跑马灯字体大小 */
  --marquee-color: #ffd700; /* 调整这个值控制跑马灯字体颜色 */
  --marquee-left-margin: 5%; /* 调整这个值控制文字左边消失位置（负值向左，正值向右） */
  --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; /* 调整这个值控制顶部右侧下载图标上下位置（负值向上，正值向下） */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #751622;
}

.container {
  width: 500px;
  height: 888px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: url('../img/bg.png') no-repeat center;
  background-size: 100% 100%;
}

/* 主要内容区域 */
.main-content {
  width: 92%;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  background: url('../img/links.png') no-repeat center;
  background-size: 100% 100%;
  margin-top: 255px;
}

/* 金色边框容器 */
.golden-border-container {
  width: 100%;
  position: relative;
}
.title {
  width: 50%;
  height: 85px;
  color: #751622;
  font-size: 1.5rem;
  line-height: 30px;
  font-weight: bolder;
  text-align: center;
  margin: 0 auto;
  margin-top: -2px;
  margin-bottom: -25px;
  }
/* OFFICIAL LINKS标题区域 */
.official-links-header {
  text-align: center;
}

/* 按钮区域 */
.buttons-section {
  width: 85%;
  margin: 0 auto;
}

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

.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);
}

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

.dong-4 {
  width: auto;
  height: 33px;
  object-fit: fill;
  transform: translateX(var(--btn-icon-right-offset));
}
.btn-text {
  color: #751622;
  font-size: 1.5rem;
  flex: 1;
  text-align: center;
  display: inline-block;
  width: 120px;
  margin-left: 70px;
  margin-right: -10px;
  font-weight: bolder;
}
.btn-text2 {
    font-size: 1.5rem;
    color: #751622;
    font-weight: bold;
    margin-left: 20px;
  }

/* 四个图标区域 */
.icons-section {
  padding: 0rem;
  display: flex;
  box-sizing: border-box;
  background-size: 100% 100%;
  width: 85%;
  height: auto;
  margin: 0 auto;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
}

.icon-item {
  width: 188px;
  height: 112px;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
  margin-top: 15px;
  background: url('../img/icon-bg.png') no-repeat center;
  background-size: 100% 100%;
}

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

.icon-item-right {
  font-size: 1.5rem;
  color: #751622;
  font-weight: bolder;
  height: auto;
  margin-top: 6px;
}

.icon {
  width: 31%;
  height: auto;
  object-fit: fill;
  margin-top: 7px;
}
.icon-lj {
  width: 40px;
  height: auto;
  object-fit: fill;
  margin-top: 5px;
  margin-left: 15px;
}
/* 响应式调整 */
@media screen and (max-width: 499px) {
  .container {
  width: 100vw;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: url('../img/bg.png') no-repeat center;
  background-size: 100% 100%;
}

/* 主要内容区域 */
.main-content {
  width: 92%;
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  background: url('../img/links.png') no-repeat center;
  background-size: 100% 100%;
  margin-top: 51vw;
  margin-bottom: 5vw;
}

/* 金色边框容器 */
.golden-border-container {
  width: 100%;
  position: relative;
}
.title {
  width: 50%;
  height: 17vw;
  color: #751622;
  font-size: 1.15rem;
  line-height: 6vw;
  font-weight: bolder;
  text-align: center;
  margin: 0 auto;
  margin-top: -0.75vw;
  margin-bottom: -4vw;
  }
/* OFFICIAL LINKS标题区域 */
.official-links-header {
  text-align: center;
}

/* 按钮区域 */
.buttons-section {
  width: 85%;
  margin: 0 auto;
}

.button-item {
  width: 100%;
  background: url('../img/bg-btn2.png') no-repeat center;
  background-size: 100% 100%;
  display: flex;
  align-content: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 4vw;
  position: relative;
}

.btn-bg {
  width: 100%;
  height: 11vw;
  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);
}

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

.dong-4 {
  width: auto;
  height: 8vw;
  object-fit: fill;
  transform: translateX(var(--btn-icon-right-offset));
}
.btn-text {
  color: #751622;
  font-size: 1.15rem;
  flex: 1;
  text-align: center;
  display: inline-block;
  width: 26vw;
  margin-left: 15vw;
  margin-right: -5vw;
  font-weight: bolder;
}
.btn-text2 {
    font-size: 1.15rem;
    color: #751622;
    font-weight: bold;
    margin-left: 2.5vw;
  }

/* 四个图标区域 */
.icons-section {
  padding: 0rem;
  display: flex;
  box-sizing: border-box;
  background-size: 100% 100%;
  width: 85%;
  height: auto;
  margin: 0 auto;
  margin-bottom: 4vw;
  display: flex;
  justify-content: space-between;
}

.icon-item {
  width: 38vw;
  height: 23vw;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
  margin-top: 15px;
  background: url('../img/icon-bg.png') no-repeat center;
  background-size: 100% 100%;
}

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

.icon-item-right {
  font-size: 1.15rem;
  color: #751622;
  font-weight: bolder;
  height: auto;
  margin-top: 1.5vw;
}

.icon {
  width: 31%;
  height: auto;
  object-fit: fill;
  margin-top: 1.5vw;
}
.icon-lj {
  width: 9vw;
  height: auto;
  object-fit: fill;
  margin-top: 1.5vw;
  margin-left: 4vw;
}

}
