* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-size: 12px;
  font-family: "Microsoft Yahei";
  color: #333;
}

html,
body,
div,
ul,
ol,
li,
dl,
dt,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
p,
table,
th,
td,
form,
fieldset,
legend,
input,
textarea,
select,
button,
hr,
blockquote,
pre {
  margin: 0;
  padding: 0;
  outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: bold;
  line-height: 1.2;
}

ul,
ol,
dl {
  list-style-type: none;
}

fieldset,
img {
  border: none;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  empty-cells: show;
}

caption,
th {
  text-align: left;
  font-weight: normal;
}

address,
caption,
cite,
code,
dfn,
th {
  font-style: normal;
  font-weight: normal;
}

input,
select,
textarea,
textarea {
  vertical-align: top;
}

img {
  vertical-align: middle;
}

em,
i {
  font-style: normal;
}

ins {
  text-decoration: underline;
}

del {
  text-decoration: line-through;
}

q:before,
q:after {
  content: "";
}

hr {
  margin: 4px 0;
  border: none;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #fff;
}

a {
  text-decoration: none;
}

a:active {
  opacity: 0.7;
}

.flex {
  display: flex;
}

img {
  vertical-align: middle;
}

.wraper {
  height: 100%;
  width: 100%;
  margin: 0 auto;
  background: #000;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

header {
  padding: 0;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 21.6%;  /* 150/694 = 0.216 保持图片宽高比 */
  background: url(./img/phone/tou.png) no-repeat center top;
  background-size: 100% 100%;  /* 完整显示背景图片 */
  overflow: visible;
  cursor: pointer;  /* 鼠标指针 */
}

.header-logo {
  position: absolute;
  left: 12px;  /* 再往左一点 */
  top: 51%;  /* 往上一点 */
  transform: translateY(-50%);  /* 垂直居中 */
  width: 55px;  /* 微调黑色方块宽度 */
  height: 55px;  /* 微调黑色方块高度 */
  background: rgba(0, 0, 0, 0.85);  /* 半透明黑色背景 */
  border-radius: 8px;  /* 圆角 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 10;  /* 确保在背景图之上 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);  /* 添加阴影 */
}

.header-logo img {
  width: 20px;  /* 微调icon */
  height: 20px;
  object-fit: contain;
}

.header-title {
  font-size: 8px;  /* 微调文字 */
  font-weight: bold;
  color: #fff;
  letter-spacing: 0px;
}

/* 自定义样式 */
.tabs {
  display: flex;
  background: rgb(56, 55, 58);
  border-radius: 10px;
  padding: 4px 2px;
  position: relative;
  margin: 10px 16px;
}

.tab {
  width: calc((100% - 24px) / 3);
  border-radius: 5px;
  text-align: center;
  padding: 6px 0;
  color: #fff;
  position: relative;
  z-index: 2;
  margin-right: 10px;
  cursor: pointer;
}

.tab:nth-of-type(3) {
  margin-right: 0;
}

/* 滑动指示器 */
.indicator {
  position: absolute;
  left: 2px;
  top: 4px;
  bottom: 4px;
  background-color: rgb(250, 17, 96);
  transition: transform 0.3s ease, width 0.3s ease;
  border-radius: 5px;
}

.swiper {
  width: 100%;
  flex: 1;
}

.swiper-slide {
  height: 100%;
  overflow-y: auto;
}

.swiper-slide::-webkit-scrollbar {
  display: none;
}

.swiper-slide img {
  width: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

footer {
  padding: 10px 16px 0;
}

footer > img {
  width: 100%;
  margin-bottom: 10px;
}

.box {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.box > img {
  width: 70%;
  margin-top: 5px;
  cursor: pointer;
}

.fixed {
  display: none;
}

.fixed > img {
  width: 100%;
}

.fixed > .float {
  position: absolute;
  z-index: 11;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 5px;
}

.float > img {
  cursor: pointer;
  width: 100%;
}
