/* ========== 每日祈福 - 简洁华丽版 ========== */

/* 遮罩 */
.blessing-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: radial-gradient(ellipse at 50% 40%, rgba(20,10,40,0.88) 0%, rgba(0,0,0,0.95) 100%);
    backdrop-filter: blur(16px);
    display: none; align-items: center; justify-content: center;
}
.blessing-overlay.show { display: flex; }

/* 弹窗主体 */
.blessing-modal {
    background: linear-gradient(180deg, #18122B 0%, #110C1E 100%);
    border: 1px solid rgba(201,169,110,0.12);
    border-radius: 24px; padding: 0;
    max-width: 380px; width: 88%; position: relative;
    box-shadow: 0 0 120px rgba(201,169,110,0.06), 0 24px 48px rgba(0,0,0,0.5);
    max-height: 92vh; overflow-y: auto; overflow-x: hidden;
}
.blessing-modal::before {
    content: ''; display: block; height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(201,169,110,0.5) 50%, transparent 90%);
    border-radius: 24px 24px 0 0;
}

.blessing-inner { padding: 36px 30px 30px; }

.blessing-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none;
    width: 24px; height: 24px;
    color: #444; font-size: 18px; cursor: pointer;
    transition: 0.2s; z-index: 10; line-height: 1;
}
.blessing-close:hover { color: #888; }

/* 标题 */
.blessing-title {
    text-align: center; font-size: 15px; font-weight: 600;
    color: rgba(201,169,110,0.7); margin-bottom: 32px;
    letter-spacing: 6px;
}

/* ===== 祈福前 - 中央大图标 ===== */
.blessing-hero {
    text-align: center; padding: 20px 0 28px;
}
.blessing-hero-icon {
    font-size: 72px; line-height: 1;
    display: inline-block;
    animation: heroFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(201,169,110,0.2));
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.03); }
}
.blessing-hero-text {
    margin-top: 16px; font-size: 13px; color: #4a4a5e;
    letter-spacing: 2px;
}
/* 光环 */
.blessing-hero-glow {
    position: relative; display: inline-block;
}
.blessing-hero-glow::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}
/* 环绕光点 */
.blessing-hero-glow::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    width: 100px; height: 100px;
    margin: -50px 0 0 -50px;
    border: 1px dashed rgba(201,169,110,0.1);
    border-radius: 50%;
    animation: orbitSpin 12s linear infinite;
}
@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 祈福中 - 旋转动画 ===== */
.blessing-casting {
    text-align: center; padding: 20px 0;
}
.casting-circle {
    position: relative; width: 140px; height: 140px;
    margin: 0 auto 20px; display: inline-block;
}
/* 外圈旋转 */
.casting-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(201,169,110,0.6);
    border-right-color: rgba(201,169,110,0.2);
    animation: castSpin 1.2s linear infinite;
}
.casting-ring:nth-child(2) {
    inset: 12px;
    border-top-color: rgba(168,85,247,0.4);
    border-left-color: rgba(168,85,247,0.15);
    animation-duration: 1.8s;
    animation-direction: reverse;
}
.casting-ring:nth-child(3) {
    inset: 24px;
    border-top-color: rgba(245,158,11,0.3);
    border-bottom-color: rgba(245,158,11,0.1);
    animation-duration: 2.4s;
}
@keyframes castSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 中心图标 */
.casting-center {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    animation: castPulse 1s ease-in-out infinite;
}
@keyframes castPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
/* 散落光点 */
.casting-dots {
    position: absolute; inset: -20px; pointer-events: none;
}
.casting-dot {
    position: absolute; width: 3px; height: 3px;
    background: #c9a96e; border-radius: 50%;
    animation: dotFloat 2s ease-in-out infinite;
    opacity: 0;
}
.casting-dot:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.casting-dot:nth-child(2) { top: 5%; right: 20%; animation-delay: 0.4s; }
.casting-dot:nth-child(3) { bottom: 15%; left: 10%; animation-delay: 0.8s; }
.casting-dot:nth-child(4) { bottom: 10%; right: 12%; animation-delay: 1.2s; }
.casting-dot:nth-child(5) { top: 50%; left: 2%; animation-delay: 0.6s; }
.casting-dot:nth-child(6) { top: 40%; right: 5%; animation-delay: 1s; }
@keyframes dotFloat {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.7; transform: scale(1.5); }
}

.blessing-loading-text {
    text-align: center; font-size: 13px; color: #4a4a5e;
    letter-spacing: 3px;
    animation: blessLoadPulse 2s ease-in-out infinite;
}
@keyframes blessLoadPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* 连续天数 */
.blessing-streak {
    text-align: center; font-size: 12px; color: #3a3a4e;
    margin-bottom: 20px; letter-spacing: 1px;
}
.blessing-streak b { color: #c9a96e; font-size: 14px; }

/* ===== 祈福按钮 ===== */
.blessing-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 15px 20px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #8B6914, #b8860b, #c9a96e, #b8860b, #8B6914);
    background-size: 200% 100%;
    color: #1a1a1a; font-size: 16px; font-weight: 800;
    cursor: pointer; transition: all 0.3s; letter-spacing: 4px;
    box-shadow: 0 4px 20px rgba(201,169,110,0.2);
    animation: blessBtnShimmer 3s ease-in-out infinite;
    position: relative; overflow: hidden;
}
@keyframes blessBtnShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.blessing-btn::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    animation: blessBtnSweep 4s ease-in-out infinite;
}
@keyframes blessBtnSweep {
    0%, 75%, 100% { left: -100%; }
    90% { left: 150%; }
}
.blessing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,169,110,0.35);
}
.blessing-btn:active { transform: translateY(0); }
.blessing-btn:disabled {
    opacity: 0.35; cursor: not-allowed; transform: none;
    box-shadow: none; animation: none;
}
.blessing-btn:disabled::after { animation: none; }
.blessing-btn .btn-icon { font-size: 18px; }
.blessing-btn.result-btn {
    margin-top: 24px;
    background: linear-gradient(135deg, #1e1832, #2a2245);
    color: rgba(201,169,110,0.8); letter-spacing: 3px; font-size: 14px; font-weight: 600;
    border: 1px solid rgba(201,169,110,0.12);
    box-shadow: none; animation: none;
}
.blessing-btn.result-btn::after { display: none; }
.blessing-btn.result-btn:hover {
    background: linear-gradient(135deg, #252040, #322a55);
    border-color: rgba(201,169,110,0.25);
    color: #c9a96e;
}

/* ===== 运势结果卡片 ===== */
.fortune-card {
    border: 1px solid rgba(201,169,110,0.1);
    border-radius: 20px; padding: 36px 24px 28px;
    text-align: center; position: relative; overflow: hidden;
    animation: cardSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(180deg, rgba(201,169,110,0.04) 0%, transparent 100%);
}
@keyframes cardSlideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
/* 顶部光线 */
.fortune-card::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,0.2), transparent);
}

.fortune-level {
    font-size: 10px; font-weight: 600; letter-spacing: 5px;
    color: #3a3a4e; margin-bottom: 12px; text-transform: uppercase;
}
.fortune-icon {
    font-size: 56px; margin-bottom: 8px; line-height: 1;
    animation: iconReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
@keyframes iconReveal {
    0% { transform: scale(0.3) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.fortune-name {
    font-size: 36px; font-weight: 900; margin-bottom: 16px;
    letter-spacing: 10px;
    background: linear-gradient(180deg, #f0d89a 20%, #c9a96e 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
@keyframes nameReveal {
    0% { transform: translateY(15px); opacity: 0; letter-spacing: 20px; }
    100% { transform: translateY(0); opacity: 1; letter-spacing: 10px; }
}
.fortune-text {
    font-size: 13px; color: #5a5a6e; line-height: 2;
    margin-bottom: 20px; padding: 0 8px;
    animation: textFade 0.5s ease 0.7s both;
}
@keyframes textFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.fortune-text::before { content: '「 '; color: rgba(201,169,110,0.2); }
.fortune-text::after { content: ' 」'; color: rgba(201,169,110,0.2); }

.fortune-points {
    font-size: 12px; color: #4a4a5e;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.03);
    animation: textFade 0.5s ease 0.9s both;
}
.fortune-points b {
    font-size: 36px; font-weight: 900;
    background: linear-gradient(180deg, #f0d89a, #c9a96e);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fortune-points .multiplier {
    display: inline-block; font-size: 11px; color: #27ae60;
    background: rgba(39,174,96,0.06); padding: 3px 10px;
    border-radius: 10px; margin-left: 8px;
    border: 1px solid rgba(39,174,96,0.1);
}

/* ===== 运势等级主题 ===== */
.fortune-card.level-SSS {
    border-color: rgba(168,85,247,0.2);
    background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.08) 0%, transparent 60%);
}
.fortune-card.level-SSS .fortune-name {
    background: linear-gradient(180deg, #e0c3fc, #a855f7);
    -webkit-background-clip: text; background-clip: text;
}
.fortune-card.level-SSS .fortune-icon {
    filter: drop-shadow(0 0 20px rgba(168,85,247,0.4));
}

.fortune-card.level-SS {
    border-color: rgba(245,158,11,0.2);
    background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,0.06) 0%, transparent 60%);
}
.fortune-card.level-SS .fortune-icon {
    filter: drop-shadow(0 0 16px rgba(245,158,11,0.3));
}

.fortune-card.level-S {
    border-color: rgba(34,197,94,0.15);
    background: radial-gradient(ellipse at 50% 0%, rgba(34,197,94,0.04) 0%, transparent 60%);
}

.fortune-card.level-A { border-color: rgba(201,169,110,0.1); }

.fortune-card.level-B { border-color: rgba(100,116,139,0.12); }
.fortune-card.level-B .fortune-name {
    background: linear-gradient(180deg, #94a3b8, #64748b);
    -webkit-background-clip: text; background-clip: text;
}

.fortune-card.level-C {
    border-color: rgba(239,68,68,0.15);
    background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,0.06) 0%, transparent 60%);
}
.fortune-card.level-C .fortune-name {
    background: linear-gradient(180deg, #fca5a5, #ef4444);
    -webkit-background-clip: text; background-clip: text;
}
.fortune-card.level-C .fortune-icon {
    filter: drop-shadow(0 0 16px rgba(239,68,68,0.3));
}

/* ===== 暴击奖励 ===== */
.crit-reward {
    margin-top: 20px; text-align: center;
    animation: critPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}
@keyframes critPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.crit-banner {
    font-size: 16px; font-weight: 800; letter-spacing: 3px;
    margin-bottom: 10px; display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: critFlash 0.6s ease-in-out;
}
@keyframes critFlash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}
.crit-content {
    background: rgba(245,158,11,0.04);
    border: 1px solid rgba(245,158,11,0.1);
    border-radius: 14px; padding: 14px 18px;
}
.crit-content .crit-name {
    font-size: 14px; font-weight: 700; letter-spacing: 1px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 3px;
}
.crit-content .crit-desc { font-size: 12px; color: #5a5a6e; }

/* 暴击震屏 */
.blessing-modal.crit-shake { animation: blessScreenShake 0.4s ease-in-out; }
@keyframes blessScreenShake {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-4px, -2px); }
    40% { transform: translate(4px, 2px); }
    60% { transform: translate(-3px, 1px); }
    80% { transform: translate(3px, -1px); }
}

/* 暴击粒子 */
.crit-particles {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 24px;
}
.crit-particle {
    position: absolute; border-radius: 50%;
    animation: particleBurst 1.2s ease-out forwards;
}
@keyframes particleBurst {
    0% { transform: translate(0) scale(1); opacity: 1; }
    100% { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

/* 下拉菜单祈福按钮 */
.nav-drop-blessing {
    color: #c9a96e !important;
    background: rgba(201,169,110,0.06) !important;
}
.nav-drop-blessing:hover {
    background: rgba(201,169,110,0.12) !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .blessing-modal { max-width: 94%; }
    .blessing-inner { padding: 28px 22px 24px; }
    .fortune-name { font-size: 30px; letter-spacing: 8px; }
}
