/* ===== 中奖记录 & 填写地址弹窗 (wg-pop 白色风格) ===== */

/* 弹窗容器 */
.wg-pop {
    width: 6rem;
    height: 4rem;
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -2rem 0 0 -3rem;
    display: none;
    font-family: "Helvetica Neue", Helvetica, Arial, "Roboto", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
                 "Source Han Sans CN", sans-serif !important;
    z-index: 999;
}

.wg-pop.show {
    display: block;
}

/* 弹窗头部 */
.wg-pop-hd {
    width: 6rem;
    height: .64rem;
    background: linear-gradient(180deg, #f5e6c8 0%, #ebd3a8 100%);
    padding: 0 .2rem;
    box-sizing: border-box;
    line-height: .64rem;
    border-top-left-radius: .1rem;
    border-top-right-radius: .1rem;
    position: relative;
}

.wg-pop-hd .title {
    font-size: .35rem;
    font-weight: 550;
    color: #000;
    margin-right: .2rem;
}

/* 关闭按钮 */
.icon-close {
    width: .14rem;
    height: .14rem;
    background: url('../images/pop-close1.png') no-repeat;
    background-size: 100% 100%;
    position: absolute;
    right: .16rem;
    top: .24rem;
    cursor: pointer;
    opacity: .8;
    display: inline-block;
}

.icon-close:hover {
    opacity: 1;
}

/* 弹窗主体内容 */
.wg-pop-bd {
    width: 6rem;
    height: 3.36rem;
    background: #fff;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .04rem;
    padding: .2rem;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

/* ===== 中奖记录弹窗内容 ===== */
.mygift-list-wrap {
    width: 100%;
    height: 100%;
}

.mygift-list {
    width: 100%;
    list-style: none;
}

.mygift-list li {
    width: 100%;
    height: .5rem;
    line-height: .52rem;
    overflow: hidden;
    background: #f5f5f5;
    font-size: .14rem;
    color: #333;
    margin-bottom: .06rem;
    display: flex;
    align-items: center;
}

.mygift-list li span,
.mygift-list li a {
    display: inline-block;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mygift-list li > *:nth-child(1) { flex: 0 0 1.2rem; }   /* 获得时间 */
.mygift-list li > *:nth-child(2) { flex: 1.2; }            /* 礼包名称 */
.mygift-list li > *:nth-child(3) { flex: 1; color: #666; } /* 状态 */
.mygift-list li > *:nth-child(4) { flex: 1; }              /* 备注/操作 */

.mygift-header {
    height: .3rem !important;
    line-height: .3rem !important;
    background: none !important;
    margin-bottom: .1rem !important;
    margin-top: -.05rem;
    color: #999 !important;
    font-size: .13rem;
}

.mygift-header span,
.mygift-header a {
    color: #999;
    font-weight: 500;
}

/* 填写地址按钮（橙色） */
.link-address {
    color: #fff;
    background-image: linear-gradient(75deg, #ff9267, #e2481b);
    padding: .04rem .12rem;
    border-radius: .04rem;
    font-weight: 600;
    cursor: pointer;
    font-size: .12rem;
}

.link-address:hover {
    background-image: linear-gradient(75deg, #f78355, #cf3509);
}

.note-text {
    color: #666;
    font-size: .13rem;
}

/* ===== 填写地址弹窗内容 ===== */
.input-box {
    width: 100%;
}

.input-box > div {
    margin-bottom: .12rem;
    position: relative;
    display: flex;
    align-items: center;
}

.input-box a {
    width: .8rem;
    height: .36rem;
    line-height: .36rem;
    display: inline-block;
    text-align: right;
    flex-shrink: 0;
    font-size: .14rem;
    color: #333;
}

.input-box input[type="text"] {
    width: 4.5rem;
    height: .36rem;
    line-height: .36rem;
    border: 1px solid #999;
    border-radius: .02rem;
    padding: 0 .1rem;
    box-sizing: border-box;
    font-size: .14rem;
}

.input-box textarea {
    width: 4.5rem;
    height: .97rem;
    border: 1px solid #999;
    border-radius: .02rem;
    padding: .08rem .1rem;
    box-sizing: border-box;
    font-size: .14rem;
    resize: vertical;
    font-family: inherit;
}

/* 必填星号 */
.user-name::after,
.user-phone::after {
    content: "*";
    color: #e44e21;
    position: absolute;
    right: 4.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .14rem;
}

.user-address::after {
    content: "*";
    color: #e44e21;
    position: absolute;
    right: .18rem;
    top: .1rem;
    font-size: .12rem;
}

/* 提示文字 */
.tips {
    font-size: .12rem;
    color: gray;
    display: block;
    margin-left: .78rem;
    margin-top: .05rem;
}

/* 按钮区域 */
.g-btn-box {
    text-align: center;
    margin-top: .2rem;
}

.g-btn-box .g-btn {
    width: .96rem;
    height: .36rem;
    line-height: .36rem;
    display: inline-block;
    text-align: center;
    font-size: .16rem;
    font-weight: 700;
    border-radius: .02rem;
    cursor: pointer;
    margin: 0 .1rem;
}

.g-btn--cancel {
    background: #efefef;
    color: rgba(51,51,51,.7);
}

.g-btn--cancel:hover {
    color: #333;
    background: #e5e5e5;
}

.g-btn--confirm {
    color: #fff;
    background-image: linear-gradient(75deg, #ff9267, #e2481b);
}

.g-btn--confirm:hover {
    background-image: linear-gradient(75deg, #f78355, #cf3509);
}

/* ===== 活动规则弹窗 ===== */

/* 弹窗固定大小，背景图填满，margin负值居中 */
.pop-rule {
    width: 8.22rem;
    height: 10.69rem;
    margin: -4.8rem 0 0 -4.11rem;
    background: url('../images/pop_rule.png') no-repeat 50% 0;
    background-size: 100% auto;
}

.pop-rule .wg-pop-hd {
    width: 8.22rem;
    background: transparent;
    text-align: center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.pop-rule .icon-close {
    width: .29rem;
    height: .29rem;
    right: 0;
    top: -.15rem;
}

.pop-rule .wg-pop-bd {
    width: 8.22rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

/* 规则内容区 */
.rule-content {
    padding: .2rem .25rem;
    text-align: center;
}

/* 弹窗滚动条 - 参考wegame暖色调 */
.pop-rule::-webkit-scrollbar {
    width: .04rem;
    border-radius: .04rem;
}
.pop-rule::-webkit-scrollbar-track {
    background: #e5dac0;
    border-radius: .04rem;
}
.pop-rule::-webkit-scrollbar-thumb {
    background: #bfae96;
    border-radius: .04rem;
}

/* 规则小标题 */
.rule-section-title {
    display: block;
    height: .38rem;
    line-height: .38rem;
    color: #8d4735;
    font-size: .30rem;
    font-weight: 700;
    margin: .16rem 0 .06rem -.25rem;
}

.rule-section-title:first-child {
    margin-top: 0;
}

/* 规则正文 */
.rule-text {
    font-size: .24rem;
    color: #8d4735;
    line-height: .38rem;
    margin-bottom: .08rem;
    word-break: break-all;
    padding-left: .7rem;
    font-weight: 550;
    text-align: left;
}

/* 奖品概率表格 */
.rule-prize-table {
    width: 100%;
    border-collapse: collapse;
    margin: .08rem 0 .1rem 1.3rem;
    font-size: .24rem;
    color: #8d4735;
    font-weight: 550;
}

.rule-prize-table th {
    color: #8d4735;
    font-weight: 700;
    height: .32rem;
    line-height: .32rem;
    text-align: center;
}

.rule-prize-table td {
    text-align: left;
    height: .3rem;
    line-height: .3rem;
    color: #8d4735;
    font-weight: 700;
    padding-bottom: .06rem;
}

.rule-prize-table td:first-child {
    color: #8d4735;
    width: 2.6rem;
}

/* placeholder 颜色 */
.input-box input::placeholder,
.input-box textarea::placeholder {
    color: #ccc;
}

/* ===== 登录弹窗（主页 modal 风格） ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.modal-box {
  position: relative;
  width: 420px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  z-index: 10;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: #333; }
.modal-iframe {
  width: 100%;
  height: 600px;
  display: block;
}