/* =========================================================
   确认对话框与登录弹层
   ========================================================= */

/* 居中确认框：用于退出、清理缓存、支付确认、注销二次确认 */
.dialog-mask {
    position: absolute; inset: 0; z-index: 2500;
    background: rgba(0, 0, 0, 0.45);
    display: none; align-items: center; justify-content: center; padding: 0 36px;
}
.dialog-mask.show { display: flex; }
.dialog-box {
    width: 100%; background: #FFFFFF; border-radius: 18px;
    padding: 24px 20px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    animation: dialogIn 0.2s ease-out;
}
@keyframes dialogIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dialog-title { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.dialog-desc { font-size: 13px; color: var(--text-sub); line-height: 1.75; text-align: center; margin-bottom: 20px; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-btn {
    flex: 1; padding: 12px 0; border-radius: 12px; border: none;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.dialog-btn.ghost { background: #F0ECE5; color: var(--text-sub); }
.dialog-btn.primary { background: var(--accent-dark); color: #FFFFFF; }
.dialog-btn.danger { background: var(--accent-red); color: #FFFFFF; }

/* 登录 Bottom Sheet */
.login-sheet .modal-content { padding: 10px 22px 26px; }
.login-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.login-logo {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #33312E, #1A1816); color: #F2D89E;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; margin-bottom: 10px;
    border: 1px solid rgba(212, 184, 126, 0.35);
}
.login-head h3 { font-size: 16px; margin-bottom: 6px; }
.login-head p { font-size: 12px; color: var(--text-light); }
.login-input {
    width: 100%; border: 1px solid var(--border-color); border-radius: 12px;
    padding: 13px 14px; font-family: inherit; font-size: 15px;
    background: #FFFFFF; outline: none; margin-bottom: 12px;
}
.login-input:focus { border-color: var(--accent-gold); }
.login-code-row { display: flex; gap: 10px; margin-bottom: 14px; }
.login-code-row .login-input { margin-bottom: 0; flex: 1; min-width: 0; }
.login-code-btn {
    flex-shrink: 0; padding: 0 14px; border-radius: 12px; border: 1px solid var(--accent-gold);
    background: transparent; color: var(--accent-gold); font-family: inherit;
    font-size: 12px; font-weight: 600; cursor: pointer;
}
.login-code-btn:disabled { border-color: var(--border-color); color: var(--text-light); cursor: not-allowed; }
.login-agree {
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px;
    font-size: 11.5px; color: var(--text-sub); line-height: 1.6; cursor: pointer;
}
.login-agree input { width: 14px; height: 14px; margin-top: 2px; accent-color: var(--accent-gold); flex-shrink: 0; }
.login-agree span { color: var(--accent-gold); }
.login-submit {
    width: 100%; padding: 14px; border: none; border-radius: 14px;
    background: var(--accent-dark); color: #FFFFFF; font-family: inherit;
    font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 12px;
}
.login-tip { text-align: center; font-size: 11px; color: var(--text-light); line-height: 1.7; }

/* 新用户领取每日研习 */
.claim-box { text-align: center; padding: 26px 22px 18px; }
.claim-gift {
    width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 14px;
    background: var(--vip-gradient); color: var(--vip-text);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; font-family: 'STKaiti', serif;
    box-shadow: 0 8px 18px rgba(212, 184, 126, 0.35);
}
.claim-kicker { font-size: 11px; letter-spacing: 3px; color: var(--accent-gold); }
.claim-title { font-size: 18px; font-weight: 700; margin: 6px 0 10px; letter-spacing: 2px; }
.claim-days { font-size: 12px; color: var(--text-sub); margin-bottom: 10px; }
.claim-days b { font-size: 34px; color: var(--accent-red); margin-right: 4px; line-height: 1; }
.claim-desc { font-size: 12px; color: var(--text-sub); line-height: 1.85; margin-bottom: 20px; }
