/* ===================== 全局变量 ================哈哈哈哈哈哈===== */
:root {
  --primary: #ff0000; /* 主色调 */
  --bg: #323031; /* 背景色 */
  --text-color: #333; /* 文本颜色 */
  --white: #fff; /* 白色 */
  --gray: #666; /* 灰色 */
  --pink: #9e5454; /* 深粉红色 */
  --cyan: #15c5ce; /* 青色 */
}
/* ===================== 全局样式 ===================== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* Safari 和 Chrome */
  -moz-text-size-adjust: 100%; /* Firefox */
  -ms-text-size-adjust: 100%; /* IE 和 Edge */
  text-size-adjust: 100%; /* 标准属性 */
  touch-action: manipulation; /* 禁用双指缩放 */
}

body, html, a, img, div, form, select, input, ul, ol, li, h1, h2, h3, h4, h5, h6, dd, dl, dt, p, label, em, span, i {
  margin: 0;
  padding: 0;
  list-style: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-size: 0.25rem;
  font-family: Microsoft YaHei, STHeiti, Droid Sans Fallback;
  color: var(--text-color);
  background: var(--bg);
  line-height: 0.3rem;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  touch-action: manipulation;
}

a {
  text-decoration: none;
  color: var(--white);
}

img {
  border: none;
}

textarea, input {
  -webkit-appearance: none;
}

* {
  box-sizing: border-box;
  text-size-adjust: none;
}

/* ===================== 布局样式 ===================== */
.wap {
  margin: 0 auto;
  z-index: 1;
  position: relative;
  width: 7.5rem;
  overflow: hidden;
}

.box {
  background: var(--white);
  width: 7.06rem;
  margin: 0 auto;
 /* box-shadow: 0 0.02rem 0.35rem rgba(0, 0, 0, 0.29);*/
  box-shadow: 0 0.02rem 0.35rem rgb(254 250 250 / 50%);
  border-radius: 0.26rem;
  padding: 0.34rem 0.24rem;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-fff { color: var(--white); }
.c-666 { color: var(--gray); }
.text-23rem { font-size: 0.23rem; }
.text-36rem { font-size: 0.32rem; }
.bold { font-weight: bold; }

.m-auto { margin: 0 auto; }
.mt-19rem { margin-top: 0.19rem; }
.mt-27rem { margin-top: 0.27rem; }
.pb-44rem { padding-bottom: 0; }

.icon {
  display: inline-block;
}

.btn {
  display: block;
  cursor: pointer;
  text-align: center;
}

.btn.is-text {
  color: var(--primary);
}

.scroll::-webkit-scrollbar {
  width: 0.06rem;
  height: 0;
  border-radius: 0.03rem;
}

.scroll::-webkit-scrollbar-thumb {
  width: 0.2rem;
  background: #d8dfe5;
  border-radius: 0.03rem;
}

.scroll::-webkit-scrollbar-track {
  width: 0.06rem;
  background: none;
}

/* ===================== 弹窗样式 ===================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  border-radius: 12px;
  max-width: 80%; /* 最大宽度为屏幕的 85% */
  width: auto; /* 宽度自适应内容 */
  min-width: 250px; /* 最小宽度 */
  padding: 20px;   /*20*/
  box-sizing: border-box;
  z-index: 1002;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden; /* 防止内容溢出 */
}

.popup-content {
  text-align: center;
}

.popup-text {
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.5;
  margin: 15px 0;
  word-wrap: break-word; /* 长文本自动换行 */
}

.confirm-button {
  width: 100%;
  height: 40px;
  background: #2196F3; /* 草原绿色 */ 
  border-radius: 20px;
  color: var(--white); /* 文字颜色 */
  font-size: 16px;
  border: none;
  margin-top: 0px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  outline: none;
}

.confirm-button:hover {
  background: #e65a2e; /* 悬停时稍深的粉红色 */
  transform: scale(1.05); /* 悬停时放大 */
}

.confirm-button:active {
  transform: scale(0.95); /* 点击时缩小 */
}

.popup-image {
  max-width: 100%; /* 图片最大宽度为弹窗宽度 */
  height: auto;
  margin: 0 auto;
  opacity: 1;
}

/* ===================== 移动端适配 ===================== */
@media (max-width: 480px) {
  .popup {
    padding: 15px; /* 减少内边距 */
    min-width: 200px; /* 更小的最小宽度 */
  }

  .popup-text {
    font-size: 14px; /* 更小的字体 */
  }

  .confirm-button {
    height: 36px;
    font-size: 14px;
  }
}

/* ===================== 其他组件样式 ===================== */
.banner {
  position: relative;
  width: 7.5rem;
  height: 4.49rem;
}

.banner .subscribe {
  position: absolute;
  top: 3.33rem;
  right: 0.22rem;
  background: url("") center/cover;
  /*background: url("../image/icon-subscribe.png") center/cover;*/
  width: 1.52rem;
  height: 0.4rem;
}

.main {
  position: relative;
  margin-top: -0.5rem;
}

.part-1, .part-2, .part-3, .part-4, .part-5 {
  margin-bottom: 0.5rem;
}

.part-1 .box {
  overflow: hidden;
}

.title-part {
  padding: 0 0.22rem;
  margin: 0 0 0.19rem;
}

.title-part .look-gift {
  padding: 0 0.2rem 0 0.23rem;
  height: 0.52rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 0.26rem;
  line-height: 0.52rem;
}

.title-part .look-gift .icon-arrow {
  transition: all 0.2s;
  display: inline-block;
  margin-left: 0.08rem;
  vertical-align: middle;
  background: url("../image/icon-arrow.png") center/cover;
  width: 0.15rem;
  height: 0.11rem;
}

.part-2 .sign-task-gift {
  height: 5rem;
  overflow: hidden;
}

.amass-gift-list {
  margin-top: 0.29rem;
}

.amass-gift-list li {
  margin-top: 0.38rem;
}

.amass-gift-list li:first-child {
  margin-top: 0;
}

.amass-gift-list li .gift-show {
  position: relative;
  background: url("../image/gift-bg.png") center/cover;
  width: 1.35rem;
  height: 1.35rem;
}

.amass-gift-list li .gift-show p {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.2rem;
  color: var(--white);
  padding: 0 0.07rem;
  display: inline-block;
  height: 0.32rem;
  line-height: 0.32rem;
  background-color: var(--primary);
  border-radius: 0.1rem 0 0.1rem 0;
}

.amass-gift-list li .gift-show img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.1rem;
}

.amass-gift-list li .gift-info {
  margin-left: 0.13rem;
  width: 5.1rem;
  height: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.amass-gift-list li .gift-info p {
  line-height: 0.36rem;
}

.fixed-bar {
  position: fixed;
  z-index: 10;
  right: 0.22rem;
  bottom: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixed-bar a {
  margin-bottom: 0.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0.26rem;
  width: 0.81rem;
  height: 0.81rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
}

.fixed-bar .j-jl {
  background: url() center/cover;
  position: relative;
  overflow: hidden;
}
/*
.fixed-bar .j-jl .reward-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 3px 5px;
  border-radius: 0;
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}*/

.fixed-bar .j-jl .reward-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--white);
  padding: 15px 5px;
  border-radius: 0;
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}


.fixed-bar .j-gz {
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .hint-cont {
    max-height: 350px;
  }
}

.hint-cont {
  overflow-y: auto;
  max-height: 300px;
  padding: 0;
}

.hint-cont {
  overflow-y: auto; /* 允许垂直滚动 */
  max-height: 300px; /* 设置最大高度 */
  padding: 10px; /* 添加内边距，避免内容紧贴边缘 */
  padding-bottom: 62px; /* 增加底部空间 */
  scroll-behavior: smooth; /* 平滑滚动 */
}

.part-2 .box .text-23rem {
  font-size: 0.26rem;
}

.part-2 .sign-task-gift .gift-info {
  font-size: 0.25rem;
}

.main {
  background: linear-gradient(180deg, transparent, var(--bg) 0.8rem);
  position: relative;
  margin-top: -1rem;
  padding-top: 0.8rem;
}

.footer {
  background: var(--bg);
  margin-top: -0.5rem;
}

.banner .subscribe {
  z-index: 1;
}

.lovely-hint-pop {
  top: 0;
  z-index: 2;
}

/* ===================== 新增部分 ===================== */
.details {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.26rem; /* 与status部分的间距 */
}

.login-gift {
  color: var(--pink); /* 深粉红色 */
  font-size: 0.28rem;
  font-weight: bold; /* 加粗 */
}

.participants {
  color: var(--text-color);
  font-size: 0.28rem;
  text-align: right;
}

.countdown {
  color: red;
  font-size: 0.255rem; /* 使用rem单位 */
  margin-bottom: 0.35rem;
}

.additional-gifts {
  display: none; /* 初始状态为隐藏 */
}

.match-btn a {
  width: 6.7rem;
  height: 0.88rem;
  border-radius: 0.44rem;
  display: block;
  margin: 0 auto;
  color: var(--white);
  font-size: 0.36rem;
  line-height: 0.92rem;
  text-align: center; /* 使文本水平居中 */
  background-color: var(--cyan); /* 设置背景颜色 */
  text-decoration: none; /* 去掉下划线 */
  position: fixed; /* 固定定位 */
  bottom: 20px; /* 距离底部20px */
  left: 50%; /* 水平居中 */
  transform: translateX(-50%); /* 水平居中调整 */
  z-index: 1000; /* 确保按钮在最上层 */
}
/*-***************************************底部弹窗样式**************************************************************-/
/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* 底部弹窗 */
.bottom-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%); 
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
}

/* 弹窗内容 */
.bottom-popup-content {
    padding: 20px;
    text-align: center;
}

/* 弹窗文本 */
.bottom-popup-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 弹窗按钮 */
.bottom-popup-button {
    display: block; /* 改为块级元素，使按钮垂直排列 */
    width: 100%; /* 按钮宽度占满父容器 */
    padding: 10px 20px;
    margin: 10px 0; /* 添加上下间隔 */
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

/* 打开应用按钮 */
.open-button {
    background-color: #007bff;
    color: #fff;
}

/* 取消按钮 */
.cancel-button {
    background-color: #f0f0f0;
    color: #333;
}

/* 应用信息容器 */
.app-info {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
}

/* 应用图标 */
.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}

/* 应用名称 */
.app-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* 图片上方文字 
.image-text {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}*/
/* 图片上方文字 */
.image-text {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold; /* 新增：文字加粗 */
}


/* 底部图片 */
.bottom-popup-image {
    width: 100%; /* 图片宽度占满弹窗 */
    max-width: 150px; /* 设置图片最大宽度 */
    margin-top: 5px; /* 图片与上方内容的间距 */
    border-radius: 10px; /* 图片圆角 */
}
