/* VIP节令礼包：米色暖色调 + 暗红主色
   注：CSS为静态资源，不走后端模板替换，引用图片使用相对路径 */
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    background-color: #f5e9d8;
    font-family: PingFang SC, Microsoft YaHei, Arial Regular, sans-serif;
    color: #5a3a1a;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
/* 挂载前隐藏，避免Vue模板闪现 */
[v-cloak] {
    display: none;
}
.wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background-color: #f5e9d8;
    padding-bottom: 30px;
}

/* ---------- 顶部标题栏 ---------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}
.header .title {
    font-size: 18px;
    font-weight: bold;
    color: #8a2a1a;
}
.header .close {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    color: #8a6a4a;
    cursor: pointer;
}

/* ---------- 用户区 ---------- */
.user-box {
    text-align: center;
    padding: 10px 0 20px;
}
.avatar-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background-color: #fff5e3;
    border: 2px solid #d4a574;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-wrap .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-wrap .moon,
.avatar-wrap .user-icon {
    font-size: 36px;
    line-height: 1;
}
.avatar-wrap .user-icon {
    color: #8a6a4a;
}
.user-name {
    font-size: 18px;
    font-weight: bold;
    color: #3a2010;
    margin-bottom: 6px;
}
.user-uid {
    font-size: 13px;
    color: #b8855a;
    margin-bottom: 8px;
}
.user-level {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 14px;
    background-color: #8a2a1a;
    color: #ffffff;
    font-size: 12px;
}
.login-btn {
    display: inline-block;
    margin: 0 auto 4px;
    padding: 8px 60px;
    border-radius: 20px;
    background-color: #8a2a1a;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}
.login-btn:active {
    opacity: 0.85;
}
.login-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #8a6a4a;
}
.login-tip .switch {
    margin-left: 8px;
    color: #8a2a1a;
    text-decoration: underline;
    cursor: pointer;
}
.login-tip .switch.logout {
    color: #b8855a;
}

/* ---------- 分组标题 ---------- */
.section-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #8a2a1a;
    margin: 8px 0 14px;
}

/* ---------- 礼包卡片 ---------- */
.gift-card {
    width: calc(100% - 32px);
    margin: 0 auto 14px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(138, 42, 26, 0.08);
}
.gift-head {
    padding: 12px 0 10px;
    text-align: center;
    background-color: #f0d9b3;
}
.gift-head .name {
    font-size: 16px;
    font-weight: bold;
    color: #8a2a1a;
    margin-bottom: 4px;
}
.gift-head .period {
    font-size: 12px;
    color: #a87a4a;
}
.gift-body {
    padding: 16px 0 12px;
    text-align: center;
    background-color: #ffffff;
}
.coin-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    vertical-align: middle;
    object-fit: contain;
}
.gift-body .amount {
    margin-top: 6px;
    font-size: 15px;
    color: #3a2010;
}
.gift-action {
    padding: 10px 0;
    text-align: center;
    background-color: #d9c4a8;
    color: #8a6a4a;
    font-size: 14px;
}
/* 可领取：主色高亮 */
.gift-action.claim {
    background-color: #8a2a1a;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}
.gift-action.claim:active {
    opacity: 0.85;
}
/* 已结束 / 未开始 / 已领取：置灰 */
.gift-action.ended,
.gift-action.upcoming,
.gift-action.received {
    background-color: #d9c4a8;
    color: #a89070;
}

/* ---------- 幸运抽奖 ---------- */
.lottery-box {
    width: calc(100% - 32px);
    margin: 20px auto 14px;
    padding: 16px 14px 18px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(138, 42, 26, 0.08);
}
.lottery-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #8a2a1a;
    margin-bottom: 4px;
}
.lottery-subtitle {
    text-align: center;
    font-size: 12px;
    color: #b8855a;
    margin-bottom: 12px;
}
.lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.lottery-cell {
    padding: 14px 0;
    text-align: center;
    border-radius: 8px;
    background-color: #fdf6e8;
    border: 2px solid #f0d9b3;
}
.lottery-cell.highlight {
    border-color: #8a2a1a;
    background-color: #fbeee0;
}
.lottery-cell .icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    object-fit: contain;
}
.lottery-cell .icon.gray {
    background: #c4a87a;
}
.lottery-cell .label {
    font-size: 13px;
    color: #5a3a1a;
}
.lottery-btn {
    padding: 12px 0;
    border-radius: 6px;
    background-color: #8a2a1a;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
.lottery-btn:active {
    opacity: 0.85;
}
.lottery-btn.disabled {
    background-color: #c9a882;
    cursor: not-allowed;
    opacity: 0.6;
}
/* 抽奖轮播：指针格边框/背色在多色间循环，并轻微放大 */
.lottery-cell.active {
    transform: scale(1.04);
    animation: spinColor 0.6s linear infinite;
    z-index: 1;
}
/* 最终中奖格：稳定金色高亮 */
.lottery-cell.winner {
    border-color: #d4a017;
    background: linear-gradient(135deg, #fff3cf, #ffe08a);
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
    transform: scale(1.06);
    z-index: 1;
}
@keyframes spinColor {
    0%   { border-color: #e74c3c; background: #fde8e8; box-shadow: 0 0 8px #e74c3c; }
    20%  { border-color: #e67e22; background: #fdeede; box-shadow: 0 0 8px #e67e22; }
    40%  { border-color: #f1c40f; background: #fdf6d8; box-shadow: 0 0 8px #f1c40f; }
    60%  { border-color: #2ecc71; background: #e8f8ee; box-shadow: 0 0 8px #2ecc71; }
    80%  { border-color: #3498db; background: #e8f2fb; box-shadow: 0 0 8px #3498db; }
    100% { border-color: #9b59b6; background: #f2e8fb; box-shadow: 0 0 8px #9b59b6; }
}
.lottery-times {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #8a6a4a;
}
.lottery-times strong {
    color: #8a2a1a;
    font-weight: bold;
}

/* ---------- 每日任务 ---------- */
.task-box {
    width: calc(100% - 32px);
    margin: 14px auto;
    padding: 14px 14px 6px;
    border-radius: 8px;
    background-color: #fbeee0;
}
.task-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #8a2a1a;
    margin-bottom: 10px;
}
.task-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0d9b3;
    font-size: 13px;
    color: #5a3a1a;
}
.task-row:last-child {
    border-bottom: none;
}
.task-status {
    font-size: 12px;
}
.task-status.done {
    color: #2a8a3a;
}
.task-status.undone {
    color: #b8855a;
}

/* ---------- 底部说明 ---------- */
.footer-note {
    padding: 14px 16px 0;
    text-align: center;
    font-size: 12px;
    color: #8a2a1a;
}
.footer-note strong {
    font-weight: bold;
}

/* ---------- 短信登录表单 ---------- */
.login-box {
    width: calc(100% - 32px);
    margin: 0 auto 14px;
    padding: 16px 14px 14px;
    border-radius: 10px;
    background-color: #fffaf0;
    box-shadow: 0 2px 6px rgba(138, 42, 26, 0.08);
}
.login_row_phone,
.login_row_code {
    display: flex;
    align-items: center;
    height: 44px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #e0c9a6;
    background-color: #ffffff;
}
.login_row_phone input,
.login_row_code input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    color: #3a2010;
}
.login_row_phone input::placeholder,
.login_row_code input::placeholder {
    color: #c0a888;
}
.login_row_code .captcha {
    width: 92px;
    height: 32px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
}
.login_row_code .button {
    margin-left: 8px;
    padding: 0 12px;
    height: 32px;
    line-height: 32px;
    border-radius: 4px;
    background-color: #8a2a1a;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}
.login_row_code .button:active {
    opacity: 0.85;
}
.login_row_submit {
    margin-top: 4px;
}
.login_row_submit .button {
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 22px;
    background-color: #8a2a1a;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.login_row_submit .button:active {
    opacity: 0.85;
}
.login_row_back {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #b8855a;
    cursor: pointer;
}
