:root {
  --accent: #ff8a00;
  --muted: #f6f2ef;
  --text: #222;
}
* {
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", Arial;
  margin: 0;
  color: var(--text);
  background: #fff;
}

.banner {
  z-index: -1;
  position: relative;
  width: 100%;
  /* 根据图片 1200*450 比例调整高度 */
  aspect-ratio: 1200 / 612;
  height: auto;
  min-height: 150px;
  max-height: 450px;
  overflow: hidden;
}
.slides {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.6s ease;
}
.slides img {
  width: 50%;
  /* 使用 contain 来完整显示图片而不是裁剪 */
  object-fit: contain;
  flex-shrink: 0;
}
.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  display: flex;
  gap: 8px;
}
.dot {
  width: 16px;
  height: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: none;
}
.dot.active {
  background: #fff;
}

.main {
  padding: 0 0px 70px;
}
.card {
  background: linear-gradient(180deg, #fff, #fff);
  border-radius: 12px;
  padding: 0px 16px 0px 16px;
}
.title-card {
  margin-top: -18px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff, #fff);
  border-radius: 12px;
  padding: 4px 8px 0px 8px;
}
.title-card h1 {
  margin: 8px 0;
  font-size: 18px;
}

.card h3 {
  position: relative;
  padding-left: 12px;
  margin: 12px 0;
}

.card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 16px;
  background-color: var(--accent);
  border-radius: 2px;
}

.tabs-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  margin-top: 8px;
}
.tabs {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 10px 6px;
  border-radius: 0;
  justify-content: space-around;
  border-bottom: 1px solid #eee;
}
.tab {
  background: none;
  border: none;
  font-size: 16px;
  padding: 6px 12px;
  color: #6b7280;
}
.tab.active {
  color: var(--text);
  font-weight: 600;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 4px;
}

.section {
  padding: 10px 0;
}
.promo {
  background: linear-gradient(90deg, #ffecec, #fff1f1);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.rewards {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 10px 0;
}
.reward {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  color: #d93b3b;
  font-weight: 700;
}
.ghost {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 8px;
}

.info-table {
  margin-top: 12px;
  background: #faf6f3;
  padding: 12px;
  border-radius: 8px;
}
.info-table div {
  margin: 8px 0;
}
.info-table a {
  color: var(--accent);
  text-decoration: none;
}

.timeline .item {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.floating-btn {
  width: 100%;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;
  z-index: 60;
  font-size: 20px;
  background: linear-gradient(90deg, var(--accent), #ff5a3d);
  color: #fff;
  border: none;
  padding: 18px 22px;
  border-radius: 2px;
  font-weight: 700;
}
.introduce {
  width: 100%;
  border-radius: 8px;
  margin-top: 12px;
}
.mock-ad {
  margin: 16px 16px 0px 16px;
  width: calc(100% - 32px);
}
@media (min-width: 700px) {
  .main {
    max-width: 700px;
    margin: 0 auto;
  }
  .banner {
    /* 在大屏幕上保持合适的高度 */
    aspect-ratio: 1200 / 612;
    max-height: 355px;
  }
  .floating-btn {
    max-width: 700px;
  }
}
