/* ============================================================
   events.css — 分支事件完整样式（Phase 7 E-01~E-08）
   包含：通用弹窗、按钮、选择卡片、各事件专属样式、动画
   ============================================================ */

#scene-event { z-index: 10; }
.event-container { position:relative; width:100%; height:100%; display:flex; justify-content:center; align-items:center; z-index:var(--z-content); }

/* ===== 通用弹窗 ===== */
.event-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity:0; transform:scale(0.95) translateY(10px); }
    to { opacity:1; transform:scale(1) translateY(0); }
}
.event-modal-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}
.event-modal-icon { font-size: 2rem; }
.event-modal-title {
    font-family: 'MedievalSharp', serif;
    font-size: 1.4rem;
    color: var(--text-gold);
    margin:0;
}
.event-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: auto;
}
.event-modal-body {
    padding: 1.2rem 1.5rem;
    overflow-y: auto;
    flex:1;
    color: var(--text-primary);
}
.event-modal-footer {
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
}

/* ===== 按钮 ===== */
.event-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}
.event-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.event-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; }
.event-btn.primary {
    background: linear-gradient(135deg, #c9a84c, #e8c65a);
    color: #1a1a2e;
    font-weight:700;
    border-color: #c9a84c;
}
.event-btn.primary:hover { background: linear-gradient(135deg, #dbb95c, #f0d96a); }
.event-btn.primary:disabled { background: #666; border-color:#666; color:#999; }
.event-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    border-color: rgba(255,255,255,0.15);
}
.event-btn.secondary:hover { color: var(--text-primary); background: rgba(255,255,255,0.15); }

/* ===== 选择卡片 ===== */
.event-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}
.event-choice-item {
    flex:1;
    max-width:180px;
    padding:1.2rem 0.8rem;
    text-align:center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: choiceSlideIn 0.4s ease backwards;
}
@keyframes choiceSlideIn {
    from { opacity:0; transform:translateY(20px); }
    to { opacity:1; transform:translateY(0); }
}
.event-choice-item:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); border-color: var(--text-gold); }
.event-choice-item.selected { background: rgba(201,168,76,0.2); border-color: var(--text-gold); box-shadow: 0 0 15px rgba(201,168,76,0.3); }
.choice-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.choice-name { font-weight: 700; font-size: 1.05rem; color: var(--text-gold); margin-bottom: 0.3rem; }
.choice-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

/* ===== 卡片列表 ===== */
.event-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    margin: 0.5rem 0;
}
.event-card-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.event-card-item:hover { background: rgba(255,255,255,0.1); }
.event-card-item.selected { background: rgba(201,168,76,0.15); border-color: var(--text-gold); }
.card-item-icon { font-size: 1.5rem; }
.card-item-info { flex:1; min-width:0; }
.card-item-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-item-desc { font-size: 0.8rem; color: var(--text-muted); }
.card-item-value { font-size: 1.1rem; font-weight: 700; min-width: 40px; text-align: right; }
.card-item-cost { font-size: 0.8rem; color: var(--energy-yellow); margin-left: 4px; }

/* ===== 商品列表（商店） ===== */
.shop-items-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; }
.shop-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
}
.shop-item-disabled { opacity:0.5; }
.shop-item-icon { font-size: 1.8rem; }
.shop-item-info { flex:1; }
.shop-item-name { font-weight: 600; }
.shop-item-desc { font-size: 0.8rem; color: var(--text-muted); }
.shop-item-price { display: flex; align-items: center; gap: 0.5rem; }
.price-gold { color: var(--gold); font-weight: 600; }
.shop-buy-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--text-gold);
    border-radius: 6px;
    background: rgba(201,168,76,0.2);
    color: var(--text-gold);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.shop-buy-btn:hover { background: rgba(201,168,76,0.4); }
.shop-buy-btn.disabled, .shop-buy-btn:disabled { opacity:0.4; cursor:not-allowed; }

/* ===== 奖励展示 ===== */
.event-rewards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}
.reward-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    animation: rewardSlideIn 0.3s ease backwards;
}
.reward-item:nth-child(1) { animation-delay:0.1s; }
.reward-item:nth-child(2) { animation-delay:0.2s; }
.reward-item:nth-child(3) { animation-delay:0.3s; }
@keyframes rewardSlideIn { from { opacity:0; transform:translateX(-15px); } to { opacity:1; transform:translateX(0); } }
.reward-item.gold { background: rgba(255,215,0,0.15); color: #ffd700; }
.reward-item.hp { background: rgba(255,77,77,0.15); color: #ff4d4d; }
.reward-item.sanity { background: rgba(180,74,255,0.15); color: #b44aff; }
.reward-item.max-sanity { background: rgba(180,74,255,0.15); color: #b44aff; }
.reward-item.card { background: rgba(76,175,80,0.15); color: #4caf50; }
.reward-item.custom { background: rgba(255,255,255,0.08); color: var(--text-gold); }

/* ===== E-01 战斗预览 ===== */
.battle-preview-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--health-red);
    border-radius: 12px;
    margin-bottom: 1rem;
}
.preview-monster-icon { font-size: 4rem; margin-bottom: 0.5rem; animation: monsterFloat 2s ease-in-out infinite; }
@keyframes monsterFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
.preview-monster-name { font-size: 1.3rem; font-weight: 700; color: var(--health-red); margin-bottom: 0.5rem; }
.preview-monster-stats { display: flex; justify-content: center; gap: 1rem; font-size: 1rem; margin-bottom: 0.5rem; }
.preview-monster-desc { font-size: 0.85rem; color: var(--text-muted); }
.battle-preview-info { text-align: center; font-size: 0.9rem; }
.preview-cost { color: var(--energy-yellow); margin-bottom: 0.3rem; }
.preview-reward { color: var(--gold); margin-bottom: 0.3rem; }
.preview-fatigue { color: var(--text-muted); }
.battle-start-btn { background: linear-gradient(135deg, #ff4444, #cc0000) !important; border-color: #ff4444 !important; }

/* ===== E-02 宝箱 ===== */
.chest-container { text-align: center; padding: 1rem 0; }
.chest-art {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.chest-art .chest-base { position: absolute; bottom: 0; }
.chest-art .chest-lid { position: absolute; top: 0; transition: transform 0.6s ease; }
.chest-art .chest-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.chest-unlocking .chest-lid { animation: keySpin 1.2s ease-in-out; }
@keyframes keySpin { 0% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 50% { transform: rotate(15deg); } 75% { transform: rotate(-10deg); } 100% { transform: rotate(0); } }
.chest-opening .chest-lid { transform: rotateX(-90deg) translateY(-30px); }
.chest-burst .chest-glow { opacity: 1; }
.chest-burst .chest-base { animation: chestShake 0.5s ease; }
@keyframes chestShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px) rotate(-3deg); } 75% { transform: translateX(5px) rotate(3deg); } }
.chest-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.chest-rewards { text-align: center; }
.chest-reward-title { font-size: 1.3rem; color: var(--text-gold); margin-bottom: 1rem; animation: fadeInScale 0.5s ease; }
@keyframes fadeInScale { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
.chest-rewards-enter { animation: rewardDropIn 0.6s ease; }
@keyframes rewardDropIn { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
.reward-item.gold-big, .reward-item.card-big { font-size: 1.2rem; padding: 0.8rem; background: rgba(255,255,255,0.08); border-radius: 8px; margin: 0.5rem 0; }
.reward-num { font-weight: 700; color: var(--text-gold); }

/* ===== E-03 强化 ===== */
.upgrade-type-show { text-align: center; margin-bottom: 1rem; }
.upgrade-type-icon {
    display: inline-flex;
    width: 60px; height: 60px;
    align-items: center; justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    animation: pulseGlow 1.5s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 10px rgba(255,255,255,0.2); } 50% { box-shadow: 0 0 25px rgba(255,255,255,0.4); } }
.upgrade-type-text { font-size: 1rem; margin-bottom: 0.3rem; }
.upgrade-bonus-preview { font-size: 0.9rem; color: var(--text-gold); margin-bottom: 0.5rem; }
.upgrade-hint { font-size: 0.85rem; color: var(--text-muted); }
.upgrade-result { text-align: center; padding: 0.5rem; }
.upgrade-result-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.upgrade-result-text { font-size: 1.1rem; color: var(--health-green); font-weight: 700; }
.upgrade-result-detail { font-size: 0.9rem; color: var(--text-primary); margin-top: 0.3rem; }
.value-change { color: var(--text-gold); font-weight: 700; margin: 0 0.3rem; }
.bonus-tag { color: var(--health-green); font-weight: 700; }
.upgrade-card-list { max-height: 200px; overflow-y: auto; }

/* ===== E-04 卡牌选择 ===== */
.cardpick-choices {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0.5rem 0;
}
.cardpick-item {
    flex: 1;
    max-width: 160px;
    perspective: 500px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.cardpick-item:hover { transform: translateY(-8px); }
.cardpick-item.selected .cardpick-card { border-color: var(--text-gold); box-shadow: 0 0 20px rgba(201,168,76,0.4); }
.cardpick-card {
    padding: 1rem 0.8rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.cardpick-type-icon { font-size: 2.2rem; margin-bottom: 0.4rem; }
.cardpick-card-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cardpick-card-cost { font-size: 0.8rem; color: var(--energy-yellow); margin-bottom: 0.2rem; }
.cardpick-card-value { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.cardpick-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.2; }
.cardpick-card-type { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; font-style: italic; }
.cardpick-result { text-align: center; padding: 1rem; }
.result-card-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.result-card-name { font-size: 1.2rem; font-weight: 700; color: var(--text-gold); }
.result-card-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.3rem; }
.result-content { min-height: 60px; display: flex; align-items: center; justify-content: center; }

/* ===== E-05 商人 ===== */
.shop-header { display: flex; align-items: center; gap: 0.5rem; }
.shop-gold-display { margin-left: auto; font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.shop-items-title { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.shop-item-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: all 0.2s;
}
.shop-item-row:hover { background: rgba(255,255,255,0.08); }
.shop-item-sold { opacity: 0.4; }
.shop-item-icon { font-size: 1.6rem; }
.shop-item-details { flex: 1; }
.shop-item-name { font-weight: 600; font-size: 0.9rem; }
.shop-item-desc { font-size: 0.8rem; color: var(--text-muted); }
.shop-item-price { color: var(--gold); font-weight: 600; margin-right: 0.5rem; }
.shop-item-buy-btn {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--text-gold);
    border-radius: 6px;
    background: rgba(201,168,76,0.2);
    color: var(--text-gold);
    cursor: pointer;
    transition: all 0.2s;
}
.shop-item-buy-btn:hover { background: rgba(201,168,76,0.4); }
.shop-item-buy-btn.disabled, .shop-item-buy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.shop-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 0.8rem 0; }
.shop-deck-section {}
.shop-deck-title { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.shop-deck-hint { font-size: 0.75rem; color: var(--text-muted); }
.shop-deck-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 150px;
    overflow-y: auto;
}
.shop-deck-card {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.shop-deck-card:hover { background: var(--health-red); color: #fff; border-color: var(--health-red); }
.shop-deck-empty { font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem; }
.deck-card-icon { font-size: 1rem; }
.deck-card-name { font-weight: 600; }
.deck-card-cost { color: var(--energy-yellow); margin-left: 2px; }

/* ===== E-06 药师 ===== */
.event-apothecary { border-color: #2e7d32; }
.apothecary-header { background: rgba(46,125,50,0.15); border-color: #2e7d32; }
.apothecary-subtitle { font-size: 0.85rem; color: #81c784; margin-left: auto; font-style: italic; }
.apothecary-scene { text-align: center; padding: 0.8rem; }
.apothecary-character { font-size: 3.5rem; margin-bottom: 0.5rem; }
.apothecary-dialogue {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-style: italic;
    color: #a5d6a7;
    margin-bottom: 1rem;
}
.apothecary-gift {
    text-align: center;
    padding: 1rem;
    background: rgba(46,125,50,0.1);
    border: 1px solid rgba(46,125,50,0.3);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}
.apothecary-gift-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.apothecary-gift-text { font-size: 0.9rem; color: #a5d6a7; margin-bottom: 0.5rem; }
.apothecary-gift-btn { background: linear-gradient(135deg, #2e7d32, #388e3c) !important; border-color: #2e7d32 !important; color: #fff !important; }
.apothecary-shop { margin-top: 0.5rem; animation: slideDown 0.4s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-15px); } to { opacity:1; transform:translateY(0); } }
.apothecary-shop-title { font-size: 0.9rem; color: #81c784; margin-bottom: 0.5rem; }
.apothecary-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem; background: rgba(255,255,255,0.04); border-radius: 8px; margin-bottom: 0.3rem; }
.apoth-item-icon { font-size: 1.6rem; }
.apoth-item-info { flex:1; }
.apoth-item-name { font-weight: 600; font-size: 0.9rem; }
.apoth-item-desc { font-size: 0.8rem; color: var(--text-muted); }
.apoth-item-price { color: var(--gold); font-weight: 600; }
.apoth-item-limit { font-size: 0.8rem; color: var(--text-muted); }
.apoth-buy-btn { background: linear-gradient(135deg, #2e7d32, #388e3c) !important; border-color: #2e7d32 !important; color: #fff !important; padding:0.3rem 0.8rem; font-size:0.85rem; }

/* ===== E-07 献祭 ===== */
.event-sacrifice { border-color: #8b0000; }
.sacrifice-header { background: rgba(139,0,0,0.2); border-color: #8b0000; }
.sacrifice-warning { font-size: 0.8rem; color: #ff4444; margin-left: auto; font-weight: 700; animation: warningPulse 1s ease-in-out infinite; }
@keyframes warningPulse { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
.sacrifice-intro { text-align: center; margin-bottom: 1rem; }
.sacrifice-intro p { font-size: 0.9rem; margin: 0.3rem 0; }
.sacrifice-warn-text { color: #ff4444; font-weight: 700; }
.sacrifice-choices { display: flex; flex-direction: column; gap: 0.6rem; }
.sacrifice-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(139,0,0,0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.3);
}
.sacrifice-choice:hover { transform: translateX(5px); border-color: #ff4444; background: rgba(139,0,0,0.2); }
.sacrifice-risk-low { border-left: 4px solid #ff8800; }
.sacrifice-risk-mid { border-left: 4px solid #ff4400; }
.sacrifice-risk-high { border-left: 4px solid #cc0000; }
.sacrifice-choice-icon { font-size: 2rem; }
.sacrifice-choice-info { flex: 1; }
.sacrifice-choice-name { font-weight: 700; color: var(--text-gold); }
.sacrifice-choice-desc { font-size: 0.85rem; color: #ff6666; }
.sacrifice-choice-reward { font-size: 0.8rem; color: #b44aff; margin-top: 0.2rem; }
.sacrifice-footer { border-top-color: rgba(139,0,0,0.3); }
.sacrifice-cracking { animation: crackShake 0.8s ease; }
@keyframes crackShake {
    0%,100% { transform:translateX(0); }
    10%,30%,50% { transform:translateX(-3px); }
    20%,40% { transform:translateX(3px); }
    60% { transform:translateX(-2px); }
    70% { transform:translateX(2px); }
}
.sacrifice-complete { text-align: center; padding: 1rem; }
.sacrifice-complete-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.sacrifice-complete-text { font-size: 1.3rem; color: #ff4444; font-weight: 700; }
.sacrifice-cost-result { font-size: 1rem; color: #ff6666; margin: 0.5rem 0; }
.sacrifice-reward-result { margin-top: 1rem; }
.sacrifice-reward-title { font-size: 0.9rem; color: var(--text-gold); margin-bottom: 0.3rem; }
.sacrifice-gained-card { padding: 0.3rem 0.5rem; background: rgba(106,74,138,0.3); border-radius: 6px; font-size: 0.9rem; color: #b44aff; margin: 0.2rem 0; }
.sacrifice-reveal { animation: fadeInScale 0.5s ease; }

/* ===== E-08 神圣洗礼 ===== */
.event-baptism { border-color: #ffd700; }
.baptism-header { background: rgba(255,215,0,0.1); border-color: #ffd700; }
.baptism-subtitle { font-size: 0.85rem; color: #ffd700; margin-left: auto; font-style: italic; }
.baptism-scene {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.baptism-light { font-size: 3rem; margin-bottom: 0.5rem; }
.baptism-altar { font-size: 2.5rem; margin-bottom: 0.5rem; }
.baptism-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.baptism-effect { min-height: 20px; }
.light-particles {
    width: 10px; height: 10px;
    background: #ffd700;
    border-radius: 50%;
    margin: 0 auto;
    animation: lightParticle 1s ease-in-out infinite alternate;
}
@keyframes lightParticle {
    0% { box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; transform: scale(1); }
    100% { box-shadow: 0 0 20px #ffd700, 0 0 40px #fff, 0 0 60px #ffd700; transform: scale(2); }
}
.baptism-gathering .baptism-light { animation: lightGather 1s ease forwards; }
@keyframes lightGather { 
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3); opacity: 1; }
}
.baptism-lightfall .baptism-altar { animation: lightFall 1.5s ease; }
@keyframes lightFall {
    0% { transform: translateY(-100px) scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.baptism-complete { text-align: center; padding: 1rem; animation: fadeInScale 0.5s ease; }
.baptism-complete-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.baptism-complete-text { font-size: 1.3rem; color: #ffd700; font-weight: 700; }
.baptism-type { font-size: 1rem; color: var(--text-gold); margin: 0.3rem 0; }
.baptism-detail { font-size: 1.2rem; margin: 0.5rem 0; }
.baptism-old { color: var(--text-muted); text-decoration: line-through; }
.baptism-new { color: #ffd700; font-weight: 700; font-size: 1.5rem; }
.baptism-bonus { color: var(--health-green); font-weight: 700; }
.baptism-description { font-size: 0.9rem; color: var(--text-muted); }
.baptism-reveal { animation: fadeInScale 0.5s ease; }

/* ===== Toast提示 ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}
.toast-msg {
    padding: 0.6rem 1.2rem;
    background: rgba(0,0,0,0.9);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    animation: toastFadeIn 0.3s ease;
    margin-bottom: 0.5rem;
}
@keyframes toastFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ===== 结果弹窗 ===== */
.event-result .result-content { min-height: 80px; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }

/* ===== 滚动条 ===== */
.event-modal-body::-webkit-scrollbar { width: 4px; }
.event-modal-body::-webkit-scrollbar-track { background: transparent; }
.event-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.event-modal-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ===== 通用脉冲动画 ===== */
@keyframes eventPulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.05); opacity: 1; }
}

/* ================================================================================================================
   E-09 古老石碑
   ================================================================================================================ */
.event-stele { border-color: #8a6a2a; }
.stele-header { background: rgba(100,70,20,0.2); border-color: #8a6a2a; }
.stele-scene { text-align: center; padding: 1rem 0; }
.stele-art { position: relative; width: 120px; height: 120px; margin: 0 auto 1rem; }
.stele-stone { font-size: 5rem; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stele-runes { position: absolute; inset: 0; }
.stele-rune { position: absolute; font-size: 1rem; color: #c9a84c; animation: runeGlow 2s ease-in-out infinite alternate; opacity: 0.6; }
@keyframes runeGlow { 0% { opacity: 0.3; text-shadow: 0 0 3px #c9a84c; } 100% { opacity: 1; text-shadow: 0 0 10px #c9a84c, 0 0 20px #c9a84c; } }
.stele-description { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.stele-choices { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.stele-choice { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: rgba(80,50,10,0.2); border: 1px solid rgba(160,120,40,0.3); border-radius: 10px; cursor: pointer; transition: all 0.3s ease; }
.stele-choice:hover { transform: translateX(5px); border-color: #c9a84c; background: rgba(100,70,20,0.3); }
.stele-choice-disabled { opacity: 0.4; cursor: not-allowed; }
.stele-choice-disabled:hover { transform: none; border-color: rgba(160,120,40,0.3); background: rgba(80,50,10,0.2); }
.stele-choice-icon { font-size: 2rem; }
.stele-choice-info { flex: 1; }
.stele-choice-name { font-weight: 700; color: var(--text-gold); }
.stele-choice-cost { font-size: 0.8rem; color: var(--text-muted); }
.stele-choice-desc { font-size: 0.78rem; color: #b89a6a; margin-top: 0.2rem; }
.stele-choice-unavail { font-size: 0.8rem; color: var(--health-red); font-weight: 700; }
.stele-status { display: flex; justify-content: center; gap: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.stele-result-container { text-align: center; padding: 0.5rem; }
.stele-result { padding: 0.5rem; }
.stele-result-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.stele-result-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.result-enhance .stele-result-title { color: var(--health-green); }
.result-discard .stele-result-title { color: #b080e0; }
.result-backlash .stele-result-title { color: var(--health-red); }
.result-rubbing .stele-result-title { color: var(--text-gold); }
.stele-result-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.stele-result-card { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 0.5rem; margin: 0.5rem 0; font-size: 0.9rem; }
.stele-result-detail { font-size: 0.9rem; color: var(--text-muted); margin: 0.3rem 0; }
.stele-result-note { font-size: 0.8rem; color: var(--text-gold); font-style: italic; margin-top: 0.3rem; }
.card-name { color: var(--text-primary); font-weight: 600; }
.value-change { color: var(--text-gold); font-weight: 700; margin: 0 0.3rem; }
.rubbing-item { font-size: 1.1rem; color: var(--text-gold); font-weight: 700; }
.rubbing-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ================================================================================================================
   E-10 深渊泉水
   ================================================================================================================ */
.event-spring { border-color: #2a5a8a; }
.spring-header { background: rgba(20,60,100,0.2); border-color: #2a5a8a; }
.spring-scene { text-align: center; padding: 1rem 0; }
.spring-pool { font-size: 4rem; margin-bottom: 0.5rem; animation: springRipple 2s ease-in-out infinite; }
@keyframes springRipple { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }
.spring-description { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.spring-stats { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; font-size: 0.95rem; }
.spring-choices { display: flex; flex-direction: column; gap: 0.6rem; }
.spring-choice { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; background: rgba(20,60,100,0.15); border: 1px solid rgba(40,100,160,0.3); border-radius: 10px; cursor: pointer; transition: all 0.3s ease; }
.spring-choice:hover { transform: translateX(5px); border-color: #4a8ac8; background: rgba(30,80,140,0.2); }
.spring-leave { opacity: 0.6; }
.spring-leave:hover { opacity: 1; }
.spring-choice-icon { font-size: 2rem; }
.spring-choice-info { flex: 1; }
.spring-choice-name { font-weight: 700; color: #6ab0e8; }
.spring-choice-desc { font-size: 0.85rem; color: var(--text-muted); }
.spring-choice-flavor { font-size: 0.78rem; color: #4a8ac8; font-style: italic; margin-top: 0.2rem; }
.spring-result-container { text-align: center; padding: 1rem; }
.spring-result-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.spring-result-title { font-size: 1.2rem; color: #6ab0e8; font-weight: 700; margin-bottom: 0.8rem; }
.spring-result-detail { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.8rem; }
.stat-change { font-size: 1rem; padding: 0.3rem 0.6rem; border-radius: 6px; }
.stat-down { color: var(--health-red); background: rgba(200,50,50,0.1); }
.stat-up { color: var(--health-green); background: rgba(50,200,50,0.1); }
.spring-result-flavor { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ================================================================================================================
   E-11 流浪学者
   ================================================================================================================ */
.event-scholar { border-color: #6a3a8a; }
.scholar-header { background: rgba(80,40,120,0.2); border-color: #6a3a8a; }
.scholar-subtitle { font-size: 0.85rem; color: #b080d0; margin-left: auto; font-style: italic; }
.scholar-intro { text-align: center; font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.scholar-perks { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.scholar-perk { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; background: rgba(60,30,90,0.3); border: 1px solid rgba(120,60,180,0.3); border-radius: 10px; transition: all 0.3s ease; }
.scholar-perk:hover { border-color: #8a5aaa; background: rgba(80,40,120,0.3); }
.scholar-perk-learned { opacity: 0.5; }
.scholar-perk-poor { opacity: 0.6; }
.scholar-perk-icon { font-size: 1.8rem; }
.scholar-perk-info { flex: 1; }
.scholar-perk-name { font-weight: 700; color: #c090e0; }
.scholar-perk-desc { font-size: 0.82rem; color: var(--text-muted); }
.scholar-perk-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.scholar-perk-price { font-size: 0.85rem; color: var(--text-gold); }
.scholar-perk-learned-label { font-size: 0.8rem; color: var(--health-green); }
.scholar-perk-btn { background: linear-gradient(135deg, #6a3a8a, #4a1a6a); border: 1px solid #8a5aaa; color: #e0c0f0; padding: 0.3rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.scholar-perk-btn:hover { background: linear-gradient(135deg, #8a5aaa, #6a3a8a); }
.scholar-perk-btn.disabled, .scholar-perk-btn:disabled { opacity: 0.5; cursor: default; }
.scholar-gold { text-align: center; color: var(--text-gold); font-size: 0.9rem; margin-bottom: 0.3rem; }
.scholar-limit { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.scholar-result { text-align: center; padding: 0.5rem; animation: fadeInScale 0.3s ease; }
.scholar-result-icon { font-size: 1.5rem; }
.scholar-result-text { color: var(--health-green); font-weight: 700; font-size: 0.9rem; }

/* ================================================================================================================
   E-12 神秘祭坛 — Event_E12.js 完整样式
   ================================================================================================================ */
.event-altar { border-color: #5a3a1a; }
.event-altar .altar-header { background: linear-gradient(135deg, #1a0a00, #2a1a0a); border-bottom: 1px solid #5a3a1a; }
.event-altar .altar-current-blessing { text-align: center; font-size: 0.95rem; color: var(--text-gold); margin-bottom: 0.3rem; padding: 0.5rem; background: rgba(40,20,10,0.3); border-radius: 8px; }
.event-altar .altar-no-blessing { color: var(--text-muted); font-style: italic; }
.event-altar .altar-blessing-badge { background: rgba(200,120,40,0.2); padding: 0.15rem 0.6rem; border-radius: 4px; }
.event-altar .altar-hint { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.event-altar .altar-blessings { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.8rem; }
.event-altar .altar-blessing { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem; background: rgba(40,20,10,0.6); border: 1px solid rgba(200,120,40,0.2); border-radius: 10px; transition: all 0.3s ease; }
.event-altar .altar-blessing:hover { border-color: rgba(200,120,40,0.5); background: rgba(60,30,15,0.6); }
.event-altar .altar-blessing-active { border-color: #b08030 !important; background: rgba(80,40,15,0.5) !important; }
.event-altar .altar-blessing-poor { opacity: 0.6; }
.event-altar .altar-blessing-icon { font-size: 1.8rem; width: 40px; text-align: center; }
.event-altar .altar-blessing-info { flex: 1; }
.event-altar .altar-blessing-name { font-weight: bold; color: var(--text-gold); font-size: 0.9rem; }
.event-altar .altar-blessing-desc { font-size: 0.8rem; color: var(--text-muted); }
.event-altar .altar-blessing-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.event-altar .altar-blessing-price { font-size: 0.85rem; color: var(--text-gold); }
.event-altar .altar-blessing-active-label { font-size: 0.8rem; color: var(--health-green); font-weight: bold; }
.event-altar .altar-blessing-btn { background: linear-gradient(135deg, #8a5a1a, #6a3a0a); border: 1px solid #b08030; color: var(--text-gold); padding: 0.3rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.82rem; transition: all 0.2s; }
.event-altar .altar-blessing-btn:hover { background: linear-gradient(135deg, #b08030, #8a5a1a); }
.event-altar .altar-blessing-btn.disabled, .event-altar .altar-blessing-btn:disabled { opacity: 0.5; cursor: default; }
.event-altar .altar-gold { text-align: center; color: var(--text-gold); font-size: 0.9rem; margin-top: 0.3rem; padding-top: 0.5rem; border-top: 1px solid rgba(200,120,40,0.15); }
.event-altar .altar-result { text-align: center; padding: 0.8rem; background: rgba(40,20,10,0.4); border: 1px solid rgba(200,120,40,0.3); border-radius: 10px; margin-bottom: 0.8rem; animation: fadeInScale 0.3s ease; }
.event-altar .altar-result-icon { font-size: 2.5rem; margin-bottom: 0.3rem; }
.event-altar .altar-result-title { font-size: 1.1rem; color: var(--text-gold); font-weight: bold; margin-bottom: 0.3rem; }
.event-altar .altar-result-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.event-altar .altar-result-duration { font-size: 0.78rem; color: #8a8a8a; margin-bottom: 0.3rem; }
.event-altar .altar-result-cost { font-size: 0.82rem; color: var(--text-gold); }
.event-altar .altar-desc { text-align: center; margin-bottom: 1rem; color: var(--text-muted); font-style: italic; }
.event-altar .blessing-list { display: flex; flex-direction: column; gap: 0.6rem; }
.event-altar .blessing-item { background: rgba(40,20,10,0.6); border: 1px solid rgba(200,120,40,0.2); border-radius: 8px; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.event-altar .blessing-item:hover { border-color: rgba(200,120,40,0.4); }
.event-altar .blessing-item-disabled { opacity: 0.5; }
.event-altar .blessing-name { font-weight: bold; color: var(--text-gold); font-size: 0.95rem; }
.event-altar .blessing-desc { font-size: 0.82rem; color: var(--text-muted); }
.event-altar .blessing-price { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.event-altar .blessing-buy-btn { background: linear-gradient(135deg, #8a5a1a, #6a3a0a); border: 1px solid #b08030; color: var(--text-gold); padding: 0.25rem 0.8rem; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.event-altar .blessing-buy-btn:hover { background: linear-gradient(135deg, #b08030, #8a5a1a); }
.event-altar .blessing-replace-hint { font-size: 0.75rem; color: var(--health-red); margin-top: 0.2rem; }

/* ================================================================================================================
   E-13 疯学家
   ================================================================================================================ */
.event-scientist .scientist-header { background: linear-gradient(135deg, #2a0a2a, #1a0a3a); border-bottom: 1px solid #5a2a6a; }
.event-scientist .scientist-subtitle { font-size: 0.85rem; color: #c080c0; font-style: italic; text-align: center; margin-top: 0.3rem; animation: scientistJitter 2s infinite; }
.event-scientist .scientist-notice { background: rgba(60,20,60,0.5); border: 1px solid #4a2a5a; border-radius: 8px; padding: 0.6rem 0.8rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.event-scientist .notice-icon { font-size: 1.3rem; }
.event-scientist .notice-text { font-size: 0.82rem; color: #c090c0; }
.event-scientist .scientist-deck-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.event-scientist .scientist-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; max-height: 260px; overflow-y: auto; margin-bottom: 0.6rem; }
.event-scientist .scientist-card { background: rgba(30,10,40,0.7); border: 1px solid rgba(100,50,120,0.3); border-radius: 8px; padding: 0.6rem; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; min-height: 80px; }
.event-scientist .scientist-card:hover { border-color: #6a3a8a; transform: translateY(-2px); box-shadow: 0 3px 12px rgba(100,50,120,0.3); }
.event-scientist .scientist-card-imprinted { border-color: #8a2a2a !important; background: rgba(60,10,10,0.6) !important; }
.event-scientist .scientist-card-imprinted:hover { border-color: #cc3333 !important; }
.event-scientist .sci-card-type { font-size: 0.75rem; opacity: 0.6; }
.event-scientist .sci-card-name { font-size: 0.9rem; font-weight: bold; color: #d0a0d0; margin: 0.2rem 0; }
.event-scientist .sci-card-cost { font-size: 0.78rem; color: var(--text-muted); }
.event-scientist .sci-card-imprint-badge { background: rgba(200,50,50,0.3); color: #ff6666; font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 4px; display: inline-block; margin-top: 0.2rem; }
.event-scientist .sci-card-select-hint { font-size: 0.72rem; color: #8a8a8a; margin-top: 0.3rem; }
.event-scientist .scientist-usage { font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.event-scientist .scientist-confirm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: 8px; }
.event-scientist .scientist-confirm { background: #1a0a2a; border: 1px solid #5a2a6a; border-radius: 12px; padding: 1.2rem; text-align: center; max-width: 300px; }
.event-scientist .sci-confirm-title { color: #c080c0; font-size: 1.1rem; font-weight: bold; margin-bottom: 0.8rem; }
.event-scientist .sci-confirm-card { margin-bottom: 0.8rem; }
.event-scientist .sci-confirm-card-name { font-size: 1.2rem; color: #e0b0e0; font-weight: bold; }
.event-scientist .sci-confirm-card-type { font-size: 0.8rem; color: var(--text-muted); }
.event-scientist .sci-confirm-detail { font-size: 0.82rem; color: #c090c0; margin-bottom: 0.5rem; }
.event-scientist .sci-confirm-warning { font-size: 0.8rem; color: var(--health-red); margin-bottom: 0.5rem; }
.event-scientist .sci-confirm-free { font-size: 0.8rem; color: var(--health-green); margin-bottom: 0.5rem; }
.event-scientist .sci-confirm-buttons { display: flex; gap: 0.6rem; justify-content: center; }
.event-scientist .scientist-anger-overlay { position: absolute; inset: 0; background: rgba(20,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: 8px; }
.event-scientist .scientist-anger { background: #1a0505; border: 2px solid #6a1a1a; border-radius: 12px; padding: 1.2rem; text-align: center; max-width: 320px; }
.event-scientist .sci-anger-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.event-scientist .sci-anger-title { color: var(--health-red); font-size: 0.95rem; font-weight: bold; margin-bottom: 0.5rem; }
.event-scientist .sci-anger-desc { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.6rem; }
.event-scientist .sci-anger-detail { background: rgba(60,10,10,0.5); border: 1px solid #4a1a1a; border-radius: 8px; padding: 0.6rem; margin-bottom: 0.6rem; }
.event-scientist .sci-anger-boss { color: var(--health-red); font-weight: bold; font-size: 0.9rem; }
.event-scientist .sci-anger-stats { color: var(--text-muted); font-size: 0.8rem; }
.event-scientist .sci-anger-mechanic { color: #cc8866; font-size: 0.78rem; margin-top: 0.3rem; }
.event-scientist .sci-anger-reward { color: var(--health-green); font-size: 0.78rem; margin-bottom: 0.6rem; }
.event-scientist .sci-anger-buttons { display: flex; gap: 0.6rem; justify-content: center; }
.event-scientist .scientist-result { text-align: center; padding: 0.5rem 0; }
.event-scientist .sci-result-title { font-size: 1.2rem; color: #c080c0; font-weight: bold; margin-bottom: 0.8rem; }
.event-scientist .sci-result-flavor { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.8rem; }
.event-scientist .sci-result-row { margin: 0.3rem 0; font-size: 0.9rem; }
.event-scientist .sci-result-label { color: var(--text-muted); }
.event-scientist .sci-result-value { color: #d0a0d0; font-weight: bold; }
@keyframes scientistJitter { 0%,100% { transform: translate(0,0); } 25% { transform: translate(0.5px,-0.5px); } 50% { transform: translate(-0.3px,0.3px); } 75% { transform: translate(0.4px,0.2px); } }

/* ================================================================================================================
   E-14 印记商人
   ================================================================================================================ */
.event-imprint .imprint-header { background: linear-gradient(135deg, #2a1a0a, #3a2a1a); border-bottom: 1px solid #6a4a2a; }
.event-imprint .imprint-subtitle { font-size: 0.85rem; color: #b89a6a; font-style: italic; text-align: center; margin-top: 0.3rem; }
.event-imprint .imprint-intro { text-align: center; margin-bottom: 1rem; color: var(--text-muted); font-style: italic; font-size: 0.85rem; }
.event-imprint .imprint-goods-label { color: var(--text-gold); font-size: 0.95rem; margin-bottom: 0.6rem; }
.event-imprint .imprint-goods { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.event-imprint .imprint-goods-item { background: rgba(40,25,10,0.6); border: 1px solid rgba(180,140,80,0.2); border-radius: 8px; padding: 0.8rem; display: flex; align-items: center; gap: 0.8rem; }
.event-imprint .imprint-goods-item:hover { border-color: rgba(180,140,80,0.4); }
.event-imprint .imprint-goods-poor { opacity: 0.6; }
.event-imprint .imprint-goods-icon { font-size: 1.8rem; width: 40px; text-align: center; }
.event-imprint .imprint-goods-info { flex: 1; }
.event-imprint .imprint-goods-name { font-weight: bold; color: var(--text-gold); font-size: 0.9rem; }
.event-imprint .imprint-goods-desc { font-size: 0.8rem; color: var(--text-muted); }
.event-imprint .imprint-goods-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.event-imprint .imprint-goods-price { font-size: 0.85rem; color: var(--text-gold); }
.event-imprint .imprint-buy-btn { background: linear-gradient(135deg, #6a4a1a, #4a2a0a); border: 1px solid #b08030; color: var(--text-gold); padding: 0.3rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.82rem; transition: all 0.2s; }
.event-imprint .imprint-buy-btn:hover { background: linear-gradient(135deg, #8a5a2a, #6a4a1a); }
.event-imprint .imprint-buy-btn.disabled { opacity: 0.5; cursor: default; }
.event-imprint .imprint-card-section { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(180,140,80,0.2); }
.event-imprint .imprint-card-label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.6rem; }
.event-imprint .imprint-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; max-height: 200px; overflow-y: auto; margin-bottom: 0.5rem; }
.event-imprint .imprint-target-card { background: rgba(30,20,10,0.6); border: 1px solid rgba(180,140,80,0.2); border-radius: 8px; padding: 0.5rem; text-align: center; cursor: pointer; transition: all 0.2s; }
.event-imprint .imprint-target-card:hover { border-color: var(--text-gold); transform: translateY(-1px); }
.event-imprint .imprint-target-has-imprint { opacity: 0.5; cursor: not-allowed; }
.event-imprint .imprint-target-has-imprint:hover { border-color: rgba(200,50,50,0.4); transform: none; }
.event-imprint .imp-card-type { font-size: 1rem; }
.event-imprint .imp-card-name { font-size: 0.82rem; color: var(--text-color); font-weight: bold; margin: 0.2rem 0; }
.event-imprint .imp-card-imprint-label { font-size: 0.7rem; color: #888; }
.event-imprint .imp-card-selectable { font-size: 0.72rem; color: var(--text-gold); }
.event-imprint .imprint-hint { font-size: 0.75rem; color: var(--health-red); }
.event-imprint .imprint-gold { text-align: center; color: var(--text-gold); font-size: 0.9rem; margin-top: 0.5rem; }
.event-imprint .imprint-result { text-align: center; padding: 0.5rem; }
.event-imprint .imprint-result-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.event-imprint .imprint-result-title { font-size: 1.2rem; color: var(--text-gold); font-weight: bold; margin-bottom: 1rem; }
.event-imprint .imprint-result-card { display: flex; align-items: center; gap: 0.8rem; background: rgba(40,25,10,0.4); border: 1px solid rgba(180,140,80,0.2); border-radius: 8px; padding: 0.8rem; margin-bottom: 0.8rem; }
.event-imprint .imp-result-card-icon { font-size: 1rem; font-weight: bold; color: var(--text-color); min-width: 60px; }
.event-imprint .imp-result-card-detail { text-align: left; }
.event-imprint .imp-result-card-type { font-size: 0.8rem; color: var(--text-muted); }
.event-imprint .imp-result-card-imprint { display: flex; align-items: center; gap: 0.3rem; margin: 0.2rem 0; }
.event-imprint .imp-result-imprint-icon { font-size: 1.1rem; }
.event-imprint .imp-result-imprint-name { color: var(--text-gold); font-weight: bold; font-size: 0.85rem; }
.event-imprint .imp-result-imprint-desc { font-size: 0.78rem; color: var(--text-muted); }
.event-imprint .imprint-result-cost { font-size: 0.82rem; color: var(--text-muted); }

/* ================================================================================================================
   E-15 Boss战斗 — 优化居中布局
   ================================================================================================================ */
.event-boss .boss-header { 
    background: linear-gradient(135deg, #1a0505, #2a0a0a); 
    border-bottom: 1px solid #5a1a1a; 
    justify-content: center;
}
.event-boss .boss-header .event-modal-icon { font-size: 2.5rem; }
.event-boss .boss-preview { 
    text-align: center; 
    margin-bottom: 1rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.event-boss .boss-icon-large { 
    font-size: 3.5rem; 
    margin-bottom: 0.3rem; 
    animation: bossPulse 2s ease-in-out infinite; 
    width: 120px;
    height: 120px;
}
.event-boss .boss-name-large { 
    font-size: 1.3rem; 
    color: var(--health-red); 
    font-weight: bold; 
    margin-bottom: 0.5rem; 
    text-shadow: 0 0 10px rgba(200,0,0,0.4); 
    text-align: center;
}
.event-boss .boss-stats { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 0.8rem; 
}
.event-boss .boss-stat { 
    background: rgba(60,10,10,0.5); 
    border: 1px solid #4a1a1a; 
    padding: 0.25rem 0.8rem; 
    border-radius: 6px; 
    color: var(--text-color); 
    font-size: 0.85rem; 
}
.event-boss .boss-mechanics { 
    background: rgba(30,5,5,0.6); 
    border: 1px solid rgba(100,30,30,0.3); 
    border-radius: 8px; 
    padding: 0.8rem; 
    margin-bottom: 0.8rem; 
    text-align: center;
}
.event-boss .mechanics-title { 
    color: var(--text-gold); 
    font-size: 0.9rem; 
    font-weight: bold; 
    margin-bottom: 0.4rem; 
    text-align: center; 
}
.event-boss .mechanic-item { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 0.4rem; 
    margin: 0.25rem 0; 
    font-size: 0.82rem; 
    color: var(--text-muted); 
}
.event-boss .mechanic-icon { font-size: 0.9rem; }

/* Boss核心机制标签 */
.event-boss .mechanic-tag {
    display: inline-block;
    background: linear-gradient(135deg, #5a1a1a, #8a2a2a);
    color: #ffd700;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    border: 1px solid #aa3a3a;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Boss阶段信息（克苏鲁多阶段） */
.event-boss .mechanic-phases {
    margin: 0.4rem 0;
    padding: 0.4rem;
    background: rgba(10,10,40,0.4);
    border-radius: 6px;
    border: 1px solid rgba(60,60,120,0.3);
    text-align: center;
}
.event-boss .mechanic-phase-item {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.15rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.event-boss .mechanic-phase-item:last-child { border-bottom: none; }
.event-boss .boss-player-status { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 0.6rem; 
}
.event-boss .boss-player-status span { 
    background: rgba(0,0,0,0.3); 
    padding: 0.2rem 0.6rem; 
    border-radius: 4px; 
    font-size: 0.82rem; 
    color: var(--text-muted); 
}
.event-boss .boss-warning { 
    text-align: center; 
    color: var(--health-red); 
    font-size: 0.82rem; 
    padding: 0.4rem; 
    border: 1px solid rgba(200,50,50,0.2); 
    border-radius: 6px; 
    background: rgba(60,10,10,0.3); 
    margin-bottom: 0.5rem; 
}
.event-boss .boss-fight-btn { 
    background: linear-gradient(135deg, #6a1a1a, #8a2a2a) !important; 
    border: 1px solid var(--health-red) !important; 
    color: var(--text-color) !important; 
    font-size: 1.1rem !important; 
    padding: 0.6rem 1.5rem !important; 
    animation: bossPulse 2s ease-in-out infinite; 
}
.event-boss .boss-fight-btn:hover { background: linear-gradient(135deg, #8a2a2a, #aa3333) !important; }
@keyframes bossPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Boss事件弹窗body居中 */
.event-boss .event-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.event-boss .boss-encounter {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.event-boss .event-modal-footer {
    justify-content: center;
}

/* ================================================================================================================
   E-16 图书馆
   ================================================================================================================ */
.event-library { border-color: #8a6a3a; }
.library-header { background: rgba(80,50,20,0.2); border-color: #8a6a3a; }
.library-gold-display { margin-left: auto; font-size: 1.1rem; color: var(--gold); font-weight: 700; }
.library-intro { text-align: center; margin-bottom: 1rem; }
.library-intro p { font-size: 0.9rem; margin: 0.3rem 0; color: var(--text-muted); }
.library-hint { color: var(--text-gold) !important; font-weight: 600; }
.library-choices { display: flex; flex-direction: column; gap: 0.6rem; }
.library-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(160,120,60,0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.3);
}
.library-choice:hover { transform: translateX(5px); border-color: #c9a84c; background: rgba(80,50,20,0.2); }
.library-choice-disabled { opacity: 0.5; cursor: not-allowed; }
.library-choice-disabled:hover { transform: none; border-color: rgba(160,120,60,0.3); background: rgba(0,0,0,0.3); }
.library-risk-low { border-left: 4px solid #8a8a8a; }
.library-risk-mid { border-left: 4px solid #4a8ac8; }
.library-risk-high { border-left: 4px solid #b44aff; }
.library-choice-icon { font-size: 2rem; }
.library-choice-info { flex: 1; }
.library-choice-name { font-weight: 700; color: var(--text-gold); }
.library-choice-desc { font-size: 0.85rem; color: var(--text-muted); }
.library-choice-cost { font-size: 0.85rem; color: var(--gold); margin-top: 0.2rem; }
.library-choice-unavail { font-size: 0.8rem; color: var(--health-red); font-weight: 700; margin-top: 0.2rem; }
.library-footer { border-top-color: rgba(160,120,60,0.3); }
.library-complete { text-align: center; padding: 1rem; }
.library-complete-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.library-complete-text { font-size: 1.3rem; color: var(--text-gold); font-weight: 700; }
.library-cost-result { font-size: 1rem; color: var(--gold); margin: 0.5rem 0; }
.library-reward-result { margin-top: 1rem; }
.library-reward-title { font-size: 0.9rem; color: var(--text-gold); margin-bottom: 0.5rem; }
.library-gained-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    background: rgba(40,30,20,0.4);
    border: 2px solid #8a8a8a;
    border-radius: 10px;
    animation: libraryCardReveal 0.5s ease;
}
@keyframes libraryCardReveal {
    from { opacity: 0; transform: scale(0.8) rotateY(90deg); }
    to { opacity: 1; transform: scale(1) rotateY(0); }
}
.library-card-rarity { font-size: 0.8rem; font-weight: 700; }
.library-card-name { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.library-card-desc { font-size: 0.82rem; color: var(--text-muted); }
.library-empty { font-size: 0.9rem; color: var(--health-red); padding: 0.5rem; }
.library-reveal { animation: fadeInScale 0.5s ease; }

/* ===== EventUI 通用选择卡片样式 ===== */
.event-ui .eu-preview-card { background: rgba(20,10,30,0.7); border: 1px solid rgba(100,60,140,0.3); border-radius: 10px; padding: 0.8rem; cursor: pointer; transition: all 0.2s; }
.event-ui .eu-preview-card:hover { border-color: var(--text-gold); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(100,60,140,0.2); }
.event-ui .eu-preview-card.selected { border-color: var(--text-gold); box-shadow: 0 0 20px rgba(200,160,80,0.3); }
.event-ui .eu-preview-card .eu-card-name { color: var(--text-color); font-weight: bold; margin: 0.3rem 0; font-size: 0.9rem; }
.event-ui .eu-preview-card .eu-card-type { font-size: 0.78rem; color: var(--text-muted); }
.event-ui .eu-preview-card .eu-card-detail { font-size: 0.82rem; color: var(--text-color); opacity: 0.9; }
