
/* ---------- 通用重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: #fff;
}

[v-cloak] {
  display: none;
}

/* ---------- 功能区容器 ---------- */
.section-block {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0.3rem 0.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.12rem;
  margin-bottom: 0.2rem;
}

#indexBg{background:url(../images/bg.jpg) center 0 no-repeat; padding-bottom:150px;}

/* ============================================================
 * 角色绑定
 * ============================================================ */
.role-form select,
.role-form button {
  width: 100%;
  padding: 0.14rem 0.1rem;
  margin: 0.08rem 0;
  border: 1px solid #ccc;
  border-radius: 0.06rem;
  background: #fff;
  color: #333;
  font-size: 0.28rem;
  outline: none;
}

.role-form button,
.lottery-btn,
.record-btn,
.submit-btn,
.vote-item button,
.task-item button,
.receive-item button,
.share-wrap button,
.exchange-wrap button,
.poster-wrap button {
  background: #f50;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.role-form button:hover,
.lottery-btn:hover,
.record-btn:hover,
.submit-btn:hover,
.vote-item button:hover,
.task-item button:hover,
.receive-item button:hover,
.share-wrap button:hover,
.exchange-wrap button:hover,
.poster-wrap button:hover {
  opacity: 0.85;
}

.role-form button:disabled,
.lottery-btn:disabled,
.submit-btn:disabled,
.vote-item button:disabled,
.task-item button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.role-info {
  text-align: center;
  color: #ffff00;
  font-size: 0.28rem;
  margin-top: 0.1rem;
}

/* ============================================================
 * 报名提交
 * ============================================================ */
.signup-wrap {
  text-align: center;
  max-width: 1000px;
}

.signup-wrap h2{
  width: 100%;
  text-align: center;
  background: #151d53;
  color: #347ee7;
  height: 60px;
  line-height: 60px;
  font-size: 22px;
}

.signup-loading {
  color: #333;
  font-size: 0.3rem;
  padding: 0.5rem 0;
}

.navi-wrap{
  display: flex;
  justify-content: center;
  height: 120px;
  align-items: center;
}

.navi-wrap img{
  display: block;
  margin: 0 10px;
}


.signup-box {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  padding: 0.4rem 0.4rem 0.3rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.12);
  text-align: left;
}

.signup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.26rem;
}

.signup-row > label {
  width: 2.5rem;
  flex-shrink: 0;
  font-size: 0.3rem;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  text-align: left;
}

.signup-control {
  flex: 1;
  position: relative;
}

.signup-row input,
.signup-row select {
  width: 100%;
  height: 0.68rem;
  padding: 0.12rem 0.2rem;
  padding-right: 0.5rem;
  border: 1px solid #b5b5b5;
  border-radius: 0.06rem;
  background: #fff;
  color: #333;
  font-size: 0.28rem;
  outline: none;
}

.signup-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23b414c2' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.18rem center;
  background-size: 0.44rem;
  cursor: pointer;
}

.signup-row input:focus,
.signup-row select:focus {
  border-color: #ff7a00;
}

.signup-row input::placeholder {
  color: #b0b0b0;
}

.signup-submit {
  display: block;
  background: url(../images/apply_btn.png) no-repeat;
  width: 200px;
  height: 80px;
  text-indent: -9999px;
  margin: 0 auto;
  border: 0;
}

.signup-submit:hover {
  background-position: 0 -80px;
}

.signup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- 报名成功（只读信息） ---- */
.signup-info {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  padding: 0.4rem;
  text-align: left;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.12);
}

.signup-info .info-ok {
  text-align: center;
  font-size: 0.34rem;
  color: #ff7a00;
  font-weight: bold;
  margin-bottom: 0.24rem;
}

.signup-info .info-item {
  display: flex;
  margin-bottom: 0.16rem;
  line-height: 1.5;
  font-size: 0.28rem;
  color: #333;
}

.signup-info .info-item label {
  width: 2.5rem;
  flex-shrink: 0;
  font-weight: bold;
  color: #888;
}

.signup-info .info-item span {
  flex: 1;
  color: #333;
  word-break: break-all;
}

.signup-info .signup-info-tip {
  text-align: center;
  font-size: 0.24rem;
  color: #999;
  margin-top: 0.2rem;
}

.agree-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.28rem;
  color: #fff;
  margin-bottom: 0.2rem;
  cursor: pointer;
}

.agree-line input[type="checkbox"] {
  width: 0.3rem;
  height: 0.3rem;
  cursor: pointer;
  vertical-align: middle;
}

.signup-joined {
  text-align: center;
  color: #ffff00;
  font-size: 0.32rem;
  padding: 0.3rem 0;
}

/* ============================================================
 * 投票
 * ============================================================ */
.vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.vote-item:last-child {
  border-bottom: none;
}

.vote-name {
  font-size: 0.3rem;
  flex: 1;
}

.vote-count {
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.2rem;
}

.vote-item button,
.task-item button,
.receive-item button {
  padding: 0.1rem 0.3rem;
  border-radius: 0.06rem;
  font-size: 0.28rem;
}

/* ============================================================
 * 抽奖
 * ============================================================ */
.award-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-bottom: 0.2rem;
}

.award-info {
  width: calc(25% - 0.15rem);
  text-align: center;
}

.award-info img {
  width: 100%;
  border-radius: 0.08rem;
}

.award-info p {
  font-size: 0.22rem;
  margin-top: 0.06rem;
  word-break: break-all;
}

.lottery-btn {
  display: block;
  width: 100%;
  padding: 0.18rem 0;
  border-radius: 0.08rem;
  font-size: 0.32rem;
  font-weight: bold;
}

.count {
  text-align: center;
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0.12rem 0;
}

.record-btn {
  display: block;
  margin: 0 auto;
  padding: 0.1rem 0.4rem;
  border-radius: 0.06rem;
  font-size: 0.26rem;
}

/* ============================================================
 * 任务
 * ============================================================ */
.task-item {
  display: flex;
  align-items: center;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.task-item:last-child {
  border-bottom: none;
}

.task-name {
  flex: 1;
  font-size: 0.3rem;
}

.task-progress {
  font-size: 0.24rem;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.15rem;
}

.task-done,
.task-lock {
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
 * 参与奖励领取
 * ============================================================ */
.receive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.receive-item:last-child {
  border-bottom: none;
}

.receive-item p {
  font-size: 0.3rem;
}

/* ============================================================
 * 分享
 * ============================================================ */
.share-wrap {
  text-align: center;
}

.share-wrap button {
  padding: 0.15rem 0.6rem;
  border-radius: 0.08rem;
  font-size: 0.3rem;
}

/* ============================================================
 * 表单提交
 * ============================================================ */
.form-field {
  margin-bottom: 0.12rem;
}

.form-field label {
  display: block;
  font-size: 0.26rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.04rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.14rem 0.1rem;
  border: 1px solid #ccc;
  border-radius: 0.06rem;
  background: #fff;
  color: #333;
  font-size: 0.28rem;
  outline: none;
}

.form-field textarea {
  resize: none;
  height: 1.2rem;
}

.submit-btn {
  width: 100%;
  padding: 0.16rem 0;
  border-radius: 0.08rem;
  font-size: 0.3rem;
}

/* ============================================================
 * 兑换
 * ============================================================ */
.exchange-wrap {
  display: flex;
  gap: 0.1rem;
}

.exchange-wrap input {
  flex: 1;
  padding: 0.14rem 0.1rem;
  border: 1px solid #ccc;
  border-radius: 0.06rem;
  font-size: 0.28rem;
  outline: none;
}

.exchange-wrap button {
  padding: 0 0.4rem;
  border-radius: 0.06rem;
  font-size: 0.28rem;
}

/* ============================================================
 * 海报生成
 * ============================================================ */
.poster-wrap {
  text-align: center;
}

.poster-wrap button {
  padding: 0.15rem 0.6rem;
  border-radius: 0.08rem;
  font-size: 0.3rem;
}

.poster-result {
  margin-top: 0.2rem;
}

.poster-result img {
  width: 100%;
  border-radius: 0.08rem;
}

.poster-result button {
  margin-top: 0.15rem;
}

.poster-img {
  width: 100%;
  border-radius: 0.08rem;
}

.poster-loading {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- 遮罩层 ---------- */
.popup-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupMaskIn 0.25s ease-out;
}

@keyframes popupMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 弹窗容器 ---------- */
.popup-box {
  background: #1d1764;
  padding: 30px;
  border-radius: 8px;
  min-width: 300px;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  text-align: center;
  font-size: 18px;
  box-sizing: border-box;
  position: relative;
  animation: popupBoxIn 0.25s ease-out;
}

/* ---------- 弹窗右上角关闭按钮 ---------- */
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 22px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  z-index: 10;
  user-select: none;
}

.popup-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

@keyframes popupBoxIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ---------- 弹窗标题 ---------- */
.popup-box h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px;
}

/* ---------- 弹窗正文 ---------- */
.popup-box p {
  text-align: center;
  color: #fff;
  font-size: 18px;
  margin: 20px 0;
  line-height: 1.5;
}

.popup-box p b {
  color: #ffff00;
}

/* 抽奖结果文本 */
.lottery-result {
  font-size: 16px;
  color: #f50;
  margin: 10px 0;
  word-break: break-all;
}

/* 分享提示 */
.share-tip {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 弹窗内容区（表单） ---------- */
.popup-content {
  margin: 20px 0;
}

.popup-content select,
.popup-content input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 16px;
  outline: none;
}

.popup-content select:focus,
.popup-content input:focus {
  border-color: #f50;
}

/* ---------- 按钮组 ---------- */
.popup-btn-group {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

/* ---------- 按钮 ---------- */
.popup-box button {
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.popup-box button:hover {
  opacity: 0.85;
}

.popup-box button.confirm {
  background: #f50;
  color: #fff;
  border-color: #f50;
}

.popup-box button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- 中奖记录 ---------- */
.record-list {
  max-height: 40vh;
  overflow-y: auto;
  margin: 10px 0;
  text-align: left;
}

.record-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.record-item:last-child {
  border-bottom: none;
}

.no-record {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  padding: 20px 0;
  text-align: center;
}

