/* 裸辞模拟器 - 全局样式 v4.0 亮色主题 (移动端优先) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
    color-scheme: light only;
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --accent: #EC4899;
    --accent-light: #F9A8D4;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg-main: #F8F6FF;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(120, 100, 200, 0.15);
    --text-primary: #1E1B3A;
    --text-secondary: #57546B;
    --text-muted: #9C99B2;
    --shadow-card: 0 2px 16px rgba(124, 58, 237, 0.08);
    /* iOS安全区 */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    font-size: 15px;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 10%, rgba(167, 139, 250, 0.12), transparent),
        radial-gradient(ellipse 500px 300px at 80% 80%, rgba(236, 72, 153, 0.08), transparent),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(99, 102, 241, 0.05), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ========== 安全区适配 ========== */
.min-h-screen-safe { min-height: calc(100vh - var(--safe-top) - var(--safe-bottom)); min-height: 100dvh; }
.h-screen-safe { height: calc(100vh - var(--safe-top) - var(--safe-bottom)); height: 100dvh; }
.pb-safe { padding-bottom: calc(16px + var(--safe-bottom)); }
.pt-safe { padding-top: calc(8px + var(--safe-top)); }

/* ========== 页面切换 ========== */
.screen { display: none; min-height: 100vh; min-height: 100dvh; position: relative; z-index: 1; }
.screen.active { display: block; animation: screenIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes screenIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 触摸友好 ========== */
.touch-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}
.touch-btn:active { transform: scale(0.96); transition-duration: 0.1s; }

/* ========== 打字机效果 ========== */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.typing-text { min-height: 1.5em; }

/* ========== Glassmorphism 卡片 - 亮色版 ========== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
}

/* ========== 动画集 ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUpSheet {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(124, 58, 237, 0.2); }
    50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.35); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ========== BGM 控制按钮（重复定义已清理，见文件顶部） ==========*/

/* ========== [v39.0] 三选一命运牌样式 ========== */
.event-candidates-container {
    padding: 0.5rem 0;
}
.event-candidates-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}
.event-candidates-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.3rem;
    animation: dice-spin 1s ease-out;
}
@keyframes dice-spin {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    50% { transform: rotate(360deg) scale(1.2); opacity: 1; }
    100% { transform: rotate(720deg) scale(1); opacity: 1; }
}
.event-candidates-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.3rem;
}
.event-candidates-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

.event-candidates-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 0.75rem;
}

.event-candidate-card {
    position: relative;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.event-candidate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}
.event-candidate-card:active {
    transform: scale(0.97) !important;
}

/* 卡牌颜色主题 */
.event-card-violet {
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(167,139,250,0.15));
    border-color: rgba(139,92,246,0.25);
}
.event-card-violet::before {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(167,139,250,0.22));
}
.event-card-amber {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.15));
    border-color: rgba(245,158,11,0.25);
}
.event-card-amber::before {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.22));
}
.event-card-emerald {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(52,211,153,0.15));
    border-color: rgba(16,185,129,0.25);
}
.event-card-emerald::before {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(52,211,153,0.22));
}

.event-candidate-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.event-candidate-emoji {
    font-size: 1.5rem;
    line-height: 1;
}
.event-candidate-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.05em;
}

.event-candidate-preview {
    margin-bottom: 0.5rem;
}
.event-candidate-bg {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-candidate-speaker {
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.event-candidate-action {
    text-align: right;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7c3aed;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.event-candidate-card:active .event-candidate-action {
    opacity: 1;
}

/* 选中/未选中状态 */
.event-candidate-selected {
    border-color: #7c3aed !important;
    box-shadow: 0 0 20px rgba(124,58,237,0.3), 0 4px 12px rgba(124,58,237,0.15);
}
.event-candidate-selected::before { opacity: 1; }

.event-candidate-dimmed {
    filter: grayscale(0.5);
}

.event-candidates-tip {
    text-align: center;
    padding: 0.8rem 1rem 0.3rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* ========== 结局相关卡牌突出设计 ========== */
.event-candidate-ending {
    border-color: rgba(245,158,11,0.6) !important;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.18), rgba(245,158,11,0.1)) !important;
    box-shadow: 0 0 12px rgba(245,158,11,0.2), 0 2px 8px rgba(245,158,11,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: ending-card-glow 2s ease-in-out infinite;
}
.event-candidate-ending::before {
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(251,191,36,0.25)) !important;
}
.event-candidate-ending::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(245,158,11,0.7), rgba(251,191,36,0.4), rgba(245,158,11,0.7)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
@keyframes ending-card-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(245,158,11,0.2), 0 2px 8px rgba(245,158,11,0.1); }
    50% { box-shadow: 0 0 20px rgba(245,158,11,0.35), 0 4px 16px rgba(245,158,11,0.2); }
}
.event-candidate-ending .event-candidate-emoji {
    animation: ending-emoji-shine 2.5s ease-in-out infinite;
}
@keyframes ending-emoji-shine {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(245,158,11,0.3)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 6px rgba(245,158,11,0.6)); transform: scale(1.08); }
}
.event-candidate-ending .event-candidate-action {
    color: #d97706 !important;
    font-weight: 700;
}
/* 结局相关徽章 */
.event-candidate-ending-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #d97706;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.22));
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    margin-left: auto;
    letter-spacing: 0.03em;
    animation: badge-pulse 2.5s ease-in-out infinite;
    white-space: nowrap;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* 桌面端hover */
@media (hover: hover) {
    .event-candidate-card:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .event-candidate-card:hover::before { opacity: 1; }
    .event-candidate-card:hover .event-candidate-action { opacity: 1; }
    .event-candidate-ending:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 0 24px rgba(245,158,11,0.35), 0 8px 28px rgba(245,158,11,0.15) !important;
        border-color: rgba(245,158,11,0.8) !important;
    }
}

/* ========================================================================
   角色状态气泡 & 头像场景装饰 — 女性柔美风格
   ======================================================================== */

/* 角色场景容器（包裹头像+气泡+装饰） */
.char-avatar-scene {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 2px 2px 2px;
    width: 100%;
}

/* ---- 状态气泡 ---- */
.char-mood-bubble {
    position: absolute;
    top: -6px;
    right: -18px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px 5px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 10;
    animation: bubbleFloat 3s ease-in-out infinite, bubbleFadeIn 0.5s ease-out;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.char-mood-bubble .mood-emoji {
    font-size: 0.9rem;
    line-height: 1;
}
.char-mood-bubble .mood-text {
    line-height: 1.2;
}
/* 气泡小尾巴 */
.mood-bubble-tail {
    position: absolute;
    bottom: -5px;
    left: 22px;
    width: 10px;
    height: 10px;
    border-radius: 0 0 0 3px;
    transform: rotate(-30deg) skewX(-15deg);
    z-index: -1;
}

/* 心情等级配色 */
.mood-great {
    background: linear-gradient(135deg, rgba(167,243,208,0.85), rgba(110,231,183,0.75));
    border: 1.5px solid rgba(52,211,153,0.4);
    color: #065f46;
}
.mood-great .mood-bubble-tail {
    background: rgba(110,231,183,0.75);
}
.mood-good {
    background: linear-gradient(135deg, rgba(196,181,253,0.8), rgba(221,214,254,0.7));
    border: 1.5px solid rgba(167,139,250,0.4);
    color: #5b21b6;
}
.mood-good .mood-bubble-tail {
    background: rgba(221,214,254,0.7);
}
.mood-ok {
    background: linear-gradient(135deg, rgba(253,230,138,0.8), rgba(252,211,77,0.65));
    border: 1.5px solid rgba(251,191,36,0.4);
    color: #92400e;
}
.mood-ok .mood-bubble-tail {
    background: rgba(252,211,77,0.65);
}
.mood-warn {
    background: linear-gradient(135deg, rgba(254,215,170,0.85), rgba(253,186,116,0.75));
    border: 1.5px solid rgba(251,146,60,0.4);
    color: #9a3412;
}
.mood-warn .mood-bubble-tail {
    background: rgba(253,186,116,0.75);
}
.mood-bad {
    background: linear-gradient(135deg, rgba(254,202,202,0.85), rgba(252,165,165,0.75));
    border: 1.5px solid rgba(248,113,113,0.4);
    color: #991b1b;
}
.mood-bad .mood-bubble-tail {
    background: rgba(252,165,165,0.75);
}
.mood-tip {
    background: linear-gradient(135deg, rgba(224,231,255,0.85), rgba(199,210,254,0.7));
    border: 1.5px solid rgba(129,140,248,0.35);
    color: #3730a3;
}
.mood-tip .mood-bubble-tail {
    background: rgba(199,210,254,0.7);
}

/* 气泡浮动动画 */
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes bubbleFadeIn {
    0% { opacity: 0; transform: translateY(8px) scale(0.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- 装饰元素 ---- */
.avatar-deco {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}
/* 闪烁星星 */
.avatar-deco-star {
    top: 6px;
    left: -8px;
    font-size: 14px;
    color: rgba(251,191,36,0.7);
    animation: decoTwinkle 2.5s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(251,191,36,0.3);
}
/* 小圆点 */
.avatar-deco-dot {
    bottom: 16px;
    left: -12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(249,168,212,0.6);
    animation: decoFloat 3.5s ease-in-out infinite 0.5s;
    box-shadow: 0 0 8px rgba(249,168,212,0.3);
}
/* 小圆环 */
.avatar-deco-ring {
    top: 10px;
    right: -14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(192,132,252,0.45);
    animation: decoFloat 4s ease-in-out infinite 1s;
}

@keyframes decoTwinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.85) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}
@keyframes decoFloat {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* ---- 头像边框增强（柔美渐变） ---- */
.char-avatar-scene .char-avatar-wrapper {
    border: 2.5px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.char-avatar-scene .char-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(249,168,212,0.45), rgba(192,132,252,0.4), rgba(129,140,248,0.35));
    z-index: -1;
    opacity: 0.7;
    animation: borderShimmer 4s ease-in-out infinite;
}
@keyframes borderShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

/* ---- 行动按钮区美化（更柔和的配色） ---- */
.start-action-circle-btn-lg {
    background: linear-gradient(145deg, #c4b5fd, #d8b4fe, #f0abfc) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(139,92,246,0.28), 0 2px 8px rgba(192,132,252,0.2) !important;
}
.start-action-circle-btn-lg:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(139,92,246,0.2) !important;
}
.start-action-ring-lg {
    border-color: rgba(139,92,246,0.25) !important;
}
/* ---- XL行动按钮美化 ---- */
.start-action-circle-btn-xl {
    background: linear-gradient(145deg, #c4b5fd, #d8b4fe, #f0abfc) !important;
    border: none !important;
    box-shadow: 0 6px 28px rgba(139,92,246,0.32), 0 3px 12px rgba(192,132,252,0.22) !important;
    animation: circleBtnGradient 3s ease infinite, circleBtnPulseSoft 2s ease-in-out infinite !important;
}
.start-action-circle-btn-xl:active {
    transform: scale(0.93) !important;
    box-shadow: 0 2px 12px rgba(192,132,252,0.18) !important;
}
.start-action-ring-xl {
    border-color: rgba(192,132,252,0.18) !important;
}
.char-avatar-scene + .char-gender-toggle .gender-btn {
    border-radius: 12px;
    border: 1.5px solid rgba(249,168,212,0.25);
    background: rgba(255,255,255,0.65);
    transition: all 0.25s ease;
}
.char-avatar-scene + .char-gender-toggle .gender-btn.active {
    border-color: rgba(249,168,212,0.5);
    background: linear-gradient(135deg, rgba(249,168,212,0.12), rgba(192,132,252,0.08));
    box-shadow: 0 2px 10px rgba(249,168,212,0.18);
}

/* ---- hero-action-sub提示文字美化 ---- */
.hero-action-sub {
    color: #a78bfa !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

/* ===== 关于游戏 - 右上角按钮 ===== */
.cover-about-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: rgba(139, 92, 246, 0.45);
    border: 1.5px solid rgba(200, 180, 255, 0.7);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.cover-about-link:hover {
    background: rgba(139, 92, 246, 0.6);
    border-color: rgba(220, 200, 255, 0.9);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}
.cover-about-link:active {
    transform: scale(0.96);
    opacity: 0.85;
}
.cover-about-link .cover-about-icon {
    font-size: 0.85rem;
    line-height: 1;
}
.cover-about-link span {
    font-size: 0.82rem;
    color: #ffffff;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(100, 50, 200, 0.7), 0 0 10px rgba(139, 92, 246, 0.4);
}

/* ===== 关于游戏弹窗 ===== */
.about-game-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 27, 58, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    transition: opacity 0.35s ease;
}
.about-game-overlay.hidden {
    display: none;
}
.about-game-overlay.fade-out {
    opacity: 0;
}
.about-game-modal {
    position: relative;
    width: 90%;
    max-width: 340px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.08);
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.5rem 1.5rem;
}
.about-game-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}
.about-game-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}
.about-game-content {
    text-align: center;
}
.about-game-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.about-game-text {
    margin-bottom: 1.25rem;
}
.about-game-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}
.about-game-text p:last-child {
    margin-bottom: 0;
}
.about-game-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.about-game-qr img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.about-game-qr-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}
.about-game-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}
.about-game-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-game-footer p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
@keyframes notificationSlide {
    0% { opacity: 0; transform: translateY(-100%) translateX(-50%) scale(0.9); }
    10% { opacity: 1; transform: translateY(0) translateX(-50%) scale(1); }
    90% { opacity: 1; transform: translateY(0) translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateY(-20px) translateX(-50%) scale(0.95); }
}

.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-scale-in { animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* ========== 模态框（移动端底部弹出式）- 亮色版 ========== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(30, 27, 58, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
    padding: 0;
    animation: fadeIn 0.2s ease-out;
}
.modal-overlay.hidden { display: none; }
.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 246, 255, 0.98));
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.25rem;
    padding-bottom: calc(1.25rem + var(--safe-bottom));
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideUpSheet 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(124, 58, 237, 0.12);
}
.modal-mobile {
    max-width: 100%;
    margin: 0;
}
/* 弹窗顶部拖拽条指示器 */
.modal-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 2px;
    margin: 0 auto 12px;
}

/* ========== 通知系统 - 亮色版 ========== */
.notification-toast {
    position: fixed;
    top: calc(12px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    animation: notificationSlide 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 360px;
}
.notification-inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 255, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 1rem;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.12), 0 0 20px rgba(124, 58, 237, 0.05);
    width: 100%;
}
.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.notification-body { flex: 1; min-width: 0; }
.notification-title { font-size: 0.72rem; font-weight: 700; color: var(--text-primary); }
.notification-text { font-size: 0.68rem; color: var(--text-secondary); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 手机消息框 - 亮色版 ========== */
.phone-message {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(167, 139, 250, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    margin: 0.5rem 0;
}
.phone-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(124, 58, 237, 0.08);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.phone-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(124, 58, 237, 0.12);
}
.phone-sender { font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.phone-time { font-size: 0.6rem; color: var(--text-muted); margin-left: auto; }
.phone-body {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-primary);
}

/* ========== 属性条（移动端紧凑版）- 亮色版 ========== */
.attr-bar-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 0.6rem;
    padding: 0.35rem 0.55rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.attr-bar-container::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}
.attr-bar-container.warning {
    border-color: rgba(239, 68, 68, 0.35) !important;
    animation: pulse-glow-danger 2s ease-in-out infinite;
}
@keyframes pulse-glow-danger {
    0%, 100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.25); }
}
.attr-bar-container.warning::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04), transparent);
    opacity: 1;
}
.attr-bar-outer {
    background: rgba(200, 195, 220, 0.3);
    border-radius: 9999px;
    height: 4px;
    overflow: hidden;
    margin-top: 2px;
    position: relative;
}
.attr-bar-inner {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.attr-bar-inner::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 15px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    border-radius: 9999px;
}
.bar-savings { background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706); }
.bar-health { background: linear-gradient(90deg, #34d399, #10b981, #059669); }
.bar-control { background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb); }
.bar-toughness { background: linear-gradient(90deg, #a78bfa, #8b5cf6, #7c3aed); }
.bar-anxiety { background: linear-gradient(90deg, #fca5a5, #f87171, #ef4444); }
.bar-work-habit { background: linear-gradient(90deg, #fdba74, #fb923c, #f97316); }

/* 属性变化闪光 - 亮色版 */
.attr-flash-positive { animation: flashGreen 0.5s ease-out; }
.attr-flash-negative { animation: flashRed 0.5s ease-out; }
@keyframes flashGreen {
    0% { background: rgba(16, 185, 129, 0.2); }
    100% { background: rgba(255, 255, 255, 0.7); }
}
@keyframes flashRed {
    0% { background: rgba(239, 68, 68, 0.2); }
    100% { background: rgba(255, 255, 255, 0.7); }
}

/* ========== 选项按钮（移动端大触摸区域）- 亮色版 ========== */
.choice-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.875rem;
    padding: 0.85rem 1rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 48px;
}
.choice-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 3px 0 0 3px;
}
.choice-btn:active {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.08);
    transform: scale(0.98);
}
.choice-btn:active::before { opacity: 1; }
.choice-btn.selected {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.12);
}

/* 选项悬停预览 - 移动端始终显示 */
.choice-preview {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(124, 58, 237, 0.15);
}

/* 裸辞姿势选择 */
.resign-style-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.resign-style-btn:active {
    transform: scale(0.98) !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
}

/* ========== 行动按钮（移动端大触摸区）- 亮色版 ========== */
.action-btn {
    background: linear-gradient(145deg, rgba(237,233,254,0.9), rgba(224,215,252,0.75));
    border: 1.5px solid rgba(124, 58, 237, 0.22);
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.78rem;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    box-shadow: 0 2px 6px rgba(124,58,237,0.08);
}
.action-btn:active {
    border-color: rgba(124, 58, 237, 0.45);
    background: linear-gradient(145deg, rgba(221,214,254,0.95), rgba(196,181,253,0.7));
    transform: scale(0.97);
}
.action-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.action-btn:disabled:active {
    border-color: rgba(124, 58, 237, 0.12);
    background: rgba(255, 255, 255, 0.65);
    transform: none;
}

/* ========== 属性变化标签 ========== */
.attr-change {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 0.35rem;
    margin: 0.1rem;
}
.attr-change.positive { color: #059669; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.attr-change.negative { color: #DC2626; background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.15); }
.attr-change.special { color: #D97706; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }

/* ========== 对话框 - 亮色版 ========== */
.dialog-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(167, 139, 250, 0.05));
    border-left: 3px solid var(--primary);
    border-radius: 0 0.875rem 0.875rem 0;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    position: relative;
    backdrop-filter: blur(10px);
}
.dialog-box .speaker {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dialog-box .content { color: var(--text-primary); font-size: 0.85rem; line-height: 1.65; }

/* ========== 事件背景框 - 亮色版 ========== */
.event-bg {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(167, 139, 250, 0.06));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}
.event-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
}

/* ========== 事件场景卡片 - 📖 背景叙述 ========== */
.event-scene-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(192, 168, 255, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 1rem;
    padding: 0.65rem 0.85rem 0.7rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}
.event-scene-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #a78bfa, #c4b5fd, transparent);
    border-radius: 2px 2px 0 0;
}
.event-scene-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
.event-scene-icon {
    font-size: 0.78rem;
    line-height: 1;
}

/* ========== 事件对话气泡 - 💬 角色发言 ========== */
.event-dialog-card {
    margin-bottom: 0.5rem;
    animation: dialogSlideIn 0.3s ease-out;
}
@keyframes dialogSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.event-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    padding-left: 0.15rem;
}
.event-dialog-avatar {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #ede9fe, #f3e8ff);
    border: 1.5px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.1);
    flex-shrink: 0;
}
.event-dialog-speaker {
    font-size: 0.72rem;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: 0.3px;
}
.event-dialog-bubble {
    background: linear-gradient(135deg, #fefcff, #f9f5ff);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 0.15rem 1rem 1rem 1rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.06);
}
.event-dialog-bubble::before {
    content: '"';
    position: absolute;
    top: -0.1rem;
    left: 0.5rem;
    font-size: 1.6rem;
    color: rgba(167, 139, 250, 0.25);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ========== 选择结果 - ✨ 后续发展故事卡片 ========== */
.event-result-story {
    margin-top: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.875rem;
    position: relative;
    overflow: hidden;
}
.event-result-story::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, transparent);
    border-radius: 2px 2px 0 0;
}
.event-result-story-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
}
.event-result-story-label span {
    font-size: 0.78rem;
}
.event-result-story p {
    color: #92400e;
    font-size: 0.78rem;
    line-height: 1.65;
}

/* ========== 浮动数值 ========== */
.float-number {
    position: fixed;
    font-size: 1.1rem;
    font-weight: 900;
    pointer-events: none;
    z-index: 200;
    animation: floatUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}
@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(0.8); }
    20% { opacity: 1; transform: translateY(-8px) scale(1.15); }
    100% { opacity: 0; transform: translateY(-60px) scale(0.9); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(4px) rotate(-1deg); }
}

/* ========== 成就弹出 - 亮色版 ========== */
.achievement-popup {
    position: fixed;
    bottom: calc(70px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 250;
    animation: achievementIn 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: calc(100% - 32px);
    max-width: 320px;
}
.achievement-inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 235, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 1rem;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15), 0 0 30px rgba(245, 158, 11, 0.08);
}
@keyframes achievementIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.9); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.95); }
}

/* ========== 阶段进度条 ========== */
.stage-progress {
    background: rgba(200, 195, 220, 0.3);
    border-radius: 9999px;
    height: 5px;
    overflow: hidden;
    position: relative;
}
.stage-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.stage-progress-inner::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 20px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: glowPulse 2s ease-in-out infinite;
}

/* ========== 日历时间线 ========== */
.timeline-week {
    display: flex;
    gap: 4px;
    margin-top: 0.4rem;
}
.timeline-dot {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    transition: all 0.3s;
}
.timeline-dot.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}
.timeline-dot.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.timeline-dot.pending {
    background: rgba(200, 195, 220, 0.25);
    color: var(--text-muted);
    border: 1px solid rgba(200, 195, 220, 0.3);
}

/* ========== 结局卡片 - 亮色版 ========== */
.ending-card-bg {
    background: linear-gradient(180deg, rgba(248, 246, 255, 0.95) 0%, rgba(237, 233, 254, 0.98) 100%);
}
.ending-card-bg.victory {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.98) 100%);
}
.ending-card-bg.hidden-ending {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.98) 100%);
}
.ending-card-bg.failure {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.98) 100%);
}

/* ========== 结局标题样式优化 ========== */
.ending-title-main {
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    background: linear-gradient(135deg, #7c3aed 0%, #c026d3 40%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(124, 58, 237, 0.18));
    text-shadow: none;
    padding: 0 0.25rem;
}
.ending-title-player {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(100, 80, 140, 0.55);
    letter-spacing: 0.06em;
}
.ending-title-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: 0.05em;
    background: rgba(124, 58, 237, 0.08);
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}
/* 胜利结局标题渐变 */
.ending-card-bg.victory .ending-title-main {
    background: linear-gradient(135deg, #059669 0%, #0d9488 40%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(5, 150, 105, 0.18));
}
.ending-card-bg.victory .ending-title-subtitle {
    color: #059669;
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.15);
}
/* 隐藏结局标题渐变 */
.ending-card-bg.hidden-ending .ending-title-main {
    background: linear-gradient(135deg, #d97706 0%, #b45309 40%, #92400e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.18));
}
.ending-card-bg.hidden-ending .ending-title-subtitle {
    color: #b45309;
    background: rgba(217, 119, 6, 0.08);
    border-color: rgba(217, 119, 6, 0.15);
}
/* 失败结局标题渐变 */
.ending-card-bg.failure .ending-title-main {
    background: linear-gradient(135deg, #dc2626 0%, #be185d 40%, #7c2d12 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.18));
}
.ending-card-bg.failure .ending-title-subtitle {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.15);
}

/* ========== 图鉴卡片 - 亮色版 ========== */
.collection-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 0.875rem;
    padding: 1rem;
    transition: all 0.3s;
    cursor: default;
}
.collection-card.unlocked {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.08);
}
.collection-card.locked { opacity: 0.4; filter: grayscale(1); }

/* ========== 图鉴 Tab 切换 ========== */
.collection-tabs {
    display: flex;
    gap: 0;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 0.75rem;
    padding: 3px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}
.collection-tab {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(100, 80, 140, 0.6);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}
.collection-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}
.collection-tab:not(.active):hover {
    color: rgba(100, 80, 140, 0.8);
}
.collection-tab-content.hidden {
    display: none;
}

/* ========== 图鉴列表条目（精简版） ========== */
.collection-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.25s;
}
.collection-list-item.unlocked {
    border-color: rgba(124, 58, 237, 0.2);
}
.collection-list-item.unlocked:active {
    transform: scale(0.98);
}
.collection-list-item.locked {
    opacity: 0.45;
    filter: grayscale(0.6);
}
.collection-list-item .item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.2rem;
    text-align: center;
}
.collection-list-item .item-info {
    flex: 1;
    min-width: 0;
}
.collection-list-item .item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e1b3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.collection-list-item .item-desc {
    font-size: 0.7rem;
    color: rgba(100, 80, 140, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.collection-list-item .item-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}
.collection-list-item .item-badge.badge-victory {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
.collection-list-item .item-badge.badge-hidden {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
.collection-list-item .item-badge.badge-failure {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.collection-list-item .item-badge.badge-locked {
    background: rgba(100, 80, 140, 0.08);
    color: rgba(100, 80, 140, 0.4);
}
.collection-list-item .item-badge.badge-achievement {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

/* ========== 稀有度标签 ========== */
.rarity-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
    flex-shrink: 0;
}
.rarity-tag.rarity-SSR {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: rarity-ssr-glow 2s ease-in-out infinite;
}
.rarity-tag.rarity-SR {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.35);
}
.rarity-tag.rarity-R {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
}
@keyframes rarity-ssr-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255,255,255,0.3); }
    50% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255,255,255,0.3); }
}

/* 图鉴列表中的稀有度标签 */
.collection-list-item .item-rarity {
    flex-shrink: 0;
    margin-right: 0.25rem;
}

/* 结局画面中的稀有度标签 */
.ending-rarity-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 0.3rem;
    letter-spacing: 0.08em;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.ending-rarity-tag.rarity-SSR {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: rarity-ssr-glow 2s ease-in-out infinite;
}
.ending-rarity-tag.rarity-SR {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}
.ending-rarity-tag.rarity-R {
    background: rgba(100, 116, 139, 0.18);
    color: #64748b;
}

/* ========== 图鉴分类标题 ========== */
.collection-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(100, 80, 140, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 0 0.3rem 0.25rem;
    margin-top: 0.5rem;
}

/* ========== 结算项 ========== */
.settle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
.settle-item:last-child { border-bottom: none; }

/* ========== 滚动条 - 亮色版 ========== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.2); border-radius: 3px; }

/* ========== 闪烁警告 ========== */
.warning-blink { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* ========== 工具类 ========== */
button, .no-select { user-select: none; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 按钮通用光效 */
.glow-btn {
    position: relative;
    overflow: hidden;
}
.glow-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

/* ========== 统计面板 - 亮色版 ========== */
.stat-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 0.875rem;
    padding: 0.75rem;
    text-align: center;
}
.stat-number {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 周行动指示器 ========== */
.action-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.action-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}
.action-dot.available {
    background: var(--primary);
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.35);
}
.action-dot.used {
    background: rgba(200, 195, 220, 0.4);
    border: 1px solid rgba(200, 195, 220, 0.5);
}

/* ========== 游戏布局（方案2：聚焦行动 - 移动端核心）========== */

/* 顶部状态栏固定 — 紧凑2行 */
.game-header-fixed {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 1px 8px rgba(124, 58, 237, 0.06);
}

/* 横排紧凑属性条 */
.attr-bar-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-x: visible;
}
.attr-bar-row::-webkit-scrollbar { display: none; }
.attr-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.08);
    flex-shrink: 0;
    min-width: 0;
    position: relative;
    transition: all 0.3s;
    flex-wrap: wrap;
}
.attr-chip.danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
}
.attr-chip.danger .attr-chip-val { color: #ef4444; }
.attr-chip.danger .attr-chip-name { color: #ef4444; }
.attr-chip.flash-good { animation: chipFlashGood 0.5s ease-out; }
.attr-chip.flash-bad { animation: chipFlashBad 0.5s ease-out; }

@keyframes chipFlashGood {
    0% { background: rgba(16, 185, 129, 0.3); }
    100% { background: rgba(255, 255, 255, 0.7); }
}
@keyframes chipFlashBad {
    0% { background: rgba(239, 68, 68, 0.3); }
    100% { background: rgba(255, 255, 255, 0.7); }
}
.attr-chip-icon { font-size: 0.85rem; line-height: 1; flex-shrink: 0; }
.attr-chip-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    font-weight: 500;
}
.attr-chip-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    transition: transform 0.3s;
    margin-left: auto;
    flex-shrink: 0;
}
.attr-chip-bar {
    width: 100%;
    height: 4px;
    border-radius: 9999px;
    background: rgba(200, 195, 220, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 2px;
}
.attr-chip-bar-inner {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 行动力迷你圆点 */
.action-dot-mini {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(200, 195, 220, 0.4);
    margin-left: 2px;
    vertical-align: middle;
    transition: all 0.3s;
}
.action-dot-mini.on {
    background: var(--primary);
    box-shadow: 0 0 4px rgba(124, 58, 237, 0.4);
}

/* ========== 考核告警条 ========== */
.exam-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease-out;
}
.exam-alert-ok {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}
.exam-alert-warn {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #D97706;
}
.exam-alert-urgent {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #DC2626;
    animation: slideDown 0.3s ease-out, pulse-glow-danger 2s ease-in-out infinite;
}

/* ========== 聚焦行动卡片 ========== */
.focus-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(124, 58, 237, 0.12);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.focus-card.done {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(236, 253, 245, 0.6);
}
.focus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.focus-step-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}
.focus-step-badge.step-event {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* ========== 结局解锁气泡 ========== */
.ending-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 179, 8, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin-bottom: 8px;
    animation: slideDown 0.3s ease-out;
}

/* ========== 生存倒计时进度条 ========== */
.survival-bar-wrap {
    position: relative;
}
.survival-progress-bar {
    position: relative;
    height: 16px;
    background: rgba(200, 195, 220, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.1);
}
.survival-progress-inner {
    height: 100%;
    border-radius: 9999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 60px;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}
.survival-progress-label {
    font-size: 0.55rem;
    font-weight: 800;
    color: white;
    padding-right: 6px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.survival-marker {
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 2px;
    background: rgba(124, 58, 237, 0.25);
    z-index: 1;
    transition: background 0.3s;
}
.survival-marker.passed {
    background: rgba(16, 185, 129, 0.4);
}

/* ========== [v38.0] 卡片式生存倒计时面板 ========== */
.st-panel {
    padding: 6px 0 2px;
}
.st-cards {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.st-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 左侧卡片收缩，右侧卡片扩展 */
.st-card.st-card-shrink {
    flex: 0 0 auto;
    min-width: 0;
}
.st-card.st-card-grow {
    flex: 1 1 0;
    min-width: 0;
}
.st-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    border-radius: 12px;
}
.st-card:active {
    transform: scale(0.97);
}

/* 余粮安全卡片 */
.st-card.st-safe {
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(52,211,153,0.04) 100%);
    border: 1px solid rgba(16,185,129,0.18);
    box-shadow: 0 2px 8px rgba(16,185,129,0.06);
}
.st-card.st-safe .st-card-num {
    color: #059669;
}
.st-card.st-safe .st-card-label {
    color: #10B981;
}

/* 余粮危险卡片 */
.st-card.st-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(248,113,113,0.04) 100%);
    border: 1px solid rgba(239,68,68,0.18);
    box-shadow: 0 2px 8px rgba(239,68,68,0.06);
    animation: stDangerPulse 2.5s ease-in-out infinite;
}
.st-card.st-danger .st-card-num {
    color: #DC2626;
}
.st-card.st-danger .st-card-label {
    color: #EF4444;
}

/* 挑战剩余卡片 */
.st-card.st-challenge {
    background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(167,139,250,0.04) 100%);
    border: 1px solid rgba(124,58,237,0.18);
    box-shadow: 0 2px 8px rgba(124,58,237,0.06);
}
.st-card.st-challenge .st-card-num {
    color: #7C3AED;
}
.st-card.st-challenge .st-card-label {
    color: #8B5CF6;
}

/* 已生存时间卡片 */
.st-card.st-time {
    background: linear-gradient(135deg, rgba(99,102,241,0.10) 0%, rgba(129,140,248,0.05) 100%);
    border: 1px solid rgba(99,102,241,0.20);
    box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}
.st-card.st-time .st-card-num {
    color: #4F46E5;
}
.st-card.st-time .st-card-label {
    color: #6366F1;
    text-transform: none;
    letter-spacing: 0;
}

/* 卡片内部元素 */
.st-card-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}
.st-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.st-card-num {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-feature-settings: 'tnum';
}
.st-card-unit {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 2px;
    vertical-align: baseline;
}
.st-card-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 单行卡片样式 */
.st-card-oneline {
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
}
.st-card-oneline.st-card-shrink {
    padding: 8px 10px;
}
.st-card-oneline .st-card-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.st-card-oneline .st-card-text {
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.st-card-oneline.st-card-grow .st-card-text {
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-card-oneline.st-time .st-card-text {
    color: #4F46E5;
}
.st-card-oneline.st-safe .st-card-text {
    color: #059669;
}
.st-card-oneline.st-danger .st-card-text {
    color: #DC2626;
}

/* 迷你进度条 */
.st-progress-wrap {
    padding: 0 2px;
}
.st-progress-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(200,195,220,0.15);
    position: relative;
    overflow: visible;
}
.st-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.st-progress-fill.st-bar-early {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    box-shadow: 0 0 8px rgba(139,92,246,0.3);
}
.st-progress-fill.st-bar-mid {
    background: linear-gradient(90deg, #F59E0B, #F97316);
    box-shadow: 0 0 8px rgba(245,158,11,0.3);
}
.st-progress-fill.st-bar-final {
    background: linear-gradient(90deg, #EF4444, #DC2626);
    box-shadow: 0 0 8px rgba(239,68,68,0.3);
}
.st-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #8B5CF6;
    box-shadow: 0 1px 4px rgba(124,58,237,0.25);
    z-index: 2;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    padding: 0 1px;
}
.st-progress-month {
    font-size: 0.6rem;
    font-weight: 700;
    color: #7C3AED;
}
.st-progress-total {
    font-size: 0.55rem;
    color: #9CA3AF;
    font-weight: 500;
}

/* 危险脉冲动画 */
@keyframes stDangerPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239,68,68,0.06); }
    50% { box-shadow: 0 2px 16px rgba(239,68,68,0.15); }
}
/* 余粮安全/危险色 */
.countdown-safe { color: #059669 !important; }
.countdown-safe b { color: #059669; }
.countdown-danger { color: #DC2626 !important; }
.countdown-danger b { color: #DC2626; }
/* 进度条颜色 */
.countdown-bar-early {
    background: linear-gradient(to right, #8B5CF6, #A78BFA) !important;
}
.countdown-bar-mid {
    background: linear-gradient(to right, #F59E0B, #F97316) !important;
}
.countdown-bar-final {
    background: linear-gradient(to right, #EF4444, #DC2626) !important;
}
.countdown-progress {
    background: rgba(200, 195, 220, 0.15);
}
.countdown-footer-simple {
    margin-top: 2px;
}
.countdown-footer-simple .countdown-used {
    font-size: 0.55rem;
    color: #9CA3AF;
    font-weight: 600;
}

/* ========== 阶段目标简洁提示 ========== */
.stage-goal-brief {
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    animation: slideDown 0.3s ease-out;
}
.stage-goal-warn {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
}
.stage-goal-ok {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.stage-goal-final {
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

/* ========== 行动卡片（内联版） ========== */
.action-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 0.75rem;
    padding: 0.6rem 0.65rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.78rem;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
}
.action-card:active {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.08);
    transform: scale(0.97);
}
.action-card:disabled { opacity: 0.35; cursor: not-allowed; }
.action-card:disabled:active { transform: none; }

/* 行动效果标签 */
.action-effects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.action-effect-tag {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.3;
    white-space: nowrap;
}
.action-effect-tag.good {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.action-effect-tag.bad {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
}

/* ========== 行动提示栏（属性建议+余粮） ========== */
.action-hints-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.action-hint-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
}
.action-hint-tag.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: pulse-glow-danger 2s ease-in-out infinite;
}
.action-hint-tag.warn {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.action-hint-tag.safe {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ========== Hero 行动提示区（精致柔和版） ========== */
.hero-action-prompt {
    text-align: center;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.35rem;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(248,240,255,0.5), rgba(252,231,243,0.3));
    border: 1.5px solid rgba(192,132,252,0.15);
    animation: scaleIn 0.3s cubic-bezier(0.16,1,0.3,1);
    backdrop-filter: blur(10px);
}
.hero-action-prompt.event-phase {
    background: linear-gradient(145deg, rgba(224,231,255,0.4), rgba(237,233,254,0.4));
    border-color: rgba(99,102,241,0.15);
}
.hero-action-prompt.done-phase {
    background: linear-gradient(145deg, rgba(209,250,229,0.4), rgba(167,243,208,0.3));
    border-color: rgba(16,185,129,0.15);
}
.hero-action-title {
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.hero-action-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.hero-danger-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0.5rem;
}
.hero-danger-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(239,68,68,0.1);
    color: #DC2626;
    border: 1px solid rgba(239,68,68,0.2);
    animation: pulse-glow-danger 2.5s ease-in-out infinite;
}
.hero-end-week-btn {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.85rem 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(99,102,241,0.25);
    animation: endWeekPulse 2s ease-in-out infinite;
}
.hero-end-week-btn:active {
    transform: scale(0.97);
}
@keyframes endWeekPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(99,102,241,0.25); }
    50% { box-shadow: 0 4px 25px rgba(99,102,241,0.45); }
}

/* 结束本周覆盖层样式 */
.done-phase-hint {
    background: linear-gradient(145deg, rgba(209,250,229,0.6), rgba(167,243,208,0.4));
    border: 1.5px solid rgba(16,185,129,0.25);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}
.done-phase-hint .hero-action-title {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 行动区域折叠/展开 ========== */
.action-collapsible {}
.action-collapse-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(192, 132, 252, 0.08));
    border: 1.5px solid rgba(124, 58, 237, 0.15);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.action-collapse-toggle:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(192, 132, 252, 0.12));
    border-color: rgba(124, 58, 237, 0.25);
}
.action-collapse-toggle:active {
    transform: scale(0.98);
}
.action-toggle-icon {
    font-size: 1.1rem;
}
.action-toggle-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: #7C3AED;
}
.action-toggle-hint {
    font-size: 0.65rem;
    color: #9CA3AF;
    font-weight: 600;
    margin-left: auto;
}
.action-toggle-arrow {
    font-size: 0.7rem;
    color: #7C3AED;
    transition: transform 0.3s;
}
.action-grid-wrapper {
    max-height: 600px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    padding-top: 8px;
}
.action-collapsible.collapsed .action-grid-wrapper {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    pointer-events: none;
}
.action-collapsible:not(.collapsed) .action-collapse-toggle {
    border-color: rgba(124, 58, 237, 0.25);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(192, 132, 252, 0.1));
    margin-bottom: 0;
}

/* ========== 行动卡片 v2（精致圆润版 - 女性审美优化） ========== */
.action-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.action-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.35rem 0.55rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(237,233,254,0.92), rgba(224,215,252,0.78));
    border: 1.5px solid rgba(139,92,246,0.22);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 88px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(139,92,246,0.10);
}
.action-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(192,132,252,0.3), rgba(249,168,212,0.3), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.action-card-v2:active {
    transform: scale(0.95);
    border-color: rgba(139,92,246,0.45);
    background: linear-gradient(145deg, rgba(221,214,254,0.95), rgba(196,181,253,0.7));
}
.action-card-v2:active::before { opacity: 1; }
.action-card-v2:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.action-card-v2:disabled:active {
    transform: none;
    background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(248,240,255,0.7));
    border-color: rgba(192,132,252,0.12);
}
.action-card-emoji {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.3rem;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}
.action-card-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: 0.5px;
}
.action-card-fx {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    margin-top: 0.25rem;
}
.action-fx {
    display: inline-block;
    font-size: 0.52rem;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
}
.action-fx.good {
    background: rgba(16,185,129,0.1);
    color: #059669;
}
.action-fx.bad {
    background: rgba(239,68,68,0.08);
    color: #DC2626;
}

/* ========== 桌面端增强 ========== */
@media (min-width: 768px) {
    body { font-size: 16px; }
    
    .modal-content {
        border-radius: 1.5rem;
        max-width: 480px;
        margin: auto;
        padding-bottom: 1.5rem;
    }
    .modal-overlay {
        align-items: center;
        padding: 1rem;
    }
    .modal-content::before { display: none; }
    .modal-content { animation: scaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
    
    .game-header-fixed {
        border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    }
    
    .action-card:hover {
        border-color: rgba(124, 58, 237, 0.3);
        background: rgba(124, 58, 237, 0.05);
        transform: translateX(3px);
    }
    .action-card-v2:hover {
        border-color: rgba(192,132,252,0.35);
        background: linear-gradient(145deg, rgba(248,240,255,0.95), rgba(252,231,243,0.5));
        transform: translateY(-3px);
        box-shadow: 0 6px 24px rgba(192,132,252,0.12);
    }
    .action-card-v2:hover::before { opacity: 1; }
    
    .choice-btn:hover {
        border-color: rgba(124, 58, 237, 0.35);
        background: rgba(124, 58, 237, 0.06);
        transform: translateX(4px);
    }
    .choice-btn:hover::before { opacity: 1; }
    
    .action-btn:hover {
        border-color: rgba(124, 58, 237, 0.3);
        background: rgba(124, 58, 237, 0.05);
        transform: translateX(3px);
    }
    
    .resign-style-btn:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12) !important;
    }
    
    .collection-card.unlocked:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(124, 58, 237, 0.12);
    }
    
    .glass-card:hover {
        border-color: rgba(124, 58, 237, 0.18);
        box-shadow: 0 6px 24px rgba(124, 58, 237, 0.1);
    }
    
    .glow-btn:hover::after { transform: translateX(100%); }
    
    .achievement-popup {
        bottom: 60px;
        right: 20px;
        left: auto;
        transform: none;
        width: auto;
        max-width: 340px;
    }
    @keyframes achievementIn {
        0% { opacity: 0; transform: translateX(60px) scale(0.9); }
        10% { opacity: 1; transform: translateX(0) scale(1); }
        85% { opacity: 1; transform: translateX(0) scale(1); }
        100% { opacity: 0; transform: translateX(30px) scale(0.95); }
    }
}

/* ========== 超小屏适配 ========== */
@media (max-width: 360px) {
    .attr-bar-row { gap: 4px; }
    .attr-chip { padding: 5px 6px; }
    .attr-chip-icon { font-size: 0.75rem; }
    .attr-chip-name { font-size: 0.65rem; }
    .attr-chip-val { font-size: 0.72rem; }
    .timeline-dot { width: 22px; height: 22px; font-size: 0.55rem; }
    .choice-btn { padding: 0.7rem 0.8rem; font-size: 0.8rem; }
    .phone-body { font-size: 0.78rem; padding: 0.5rem 0.65rem; }
    .event-bg { font-size: 0.78rem; padding: 0.6rem 0.8rem; }
    .event-scene-card { font-size: 0.78rem; padding: 0.55rem 0.75rem 0.6rem; }
    .event-dialog-bubble { font-size: 0.78rem; padding: 0.5rem 0.75rem; }
    .event-result-story p { font-size: 0.75rem; }
    .stat-card { padding: 0.5rem; }
    .stat-number { font-size: 1rem; }
    .action-btn { padding: 0.5rem 0.6rem; min-height: 40px; }
    .hero-action-title { font-size: 1.1rem; }
    .action-card-v2 { min-height: 80px; padding: 0.6rem 0.3rem 0.5rem; }
    .action-card-emoji { font-size: 1.3rem; }
    .action-card-name { font-size: 0.72rem; }
    .cover-img-wrapper { width: 15rem; height: 15rem; }
    .cover-main-title { font-size: 2.4rem; }
    .cover-subtitle { font-size: 0.88rem; }
    .cover-btn { padding: 13px 22px; font-size: 0.95rem; }
    .char-avatar-wrapper { border-radius: 14px; }
    .char-avatar-area { flex: 0 0 42%; max-width: 42%; }
    .char-stat-bar-bg { height: 4px; }
    .char-stat-icon { font-size: 0.6rem; }
    .char-stat-val { font-size: 0.6rem; }
    .char-stat-name { font-size: 0.5rem; }
    .char-stat-item { padding: 3px 5px; gap: 4px; }
    .stat-icon-badge { width: 18px; height: 18px; min-width: 18px; border-radius: 5px; }
    .char-runway-banner { padding: 6px 10px; gap: 5px; }
    .char-runway-icon { font-size: 0.95rem; }
    .char-runway-text { font-size: 0.68rem; }
    .char-runway-text b { font-size: 0.85rem; }
    .char-runway-amount { font-size: 0.75rem; }
    /* 倒计时卡片响应式 */
    .st-cards { gap: 6px; }
    .st-card { padding: 8px 10px; border-radius: 10px; }
    .st-card-icon { font-size: 1.2rem; }
    .st-card-num { font-size: 1.3rem; }
    .st-card-unit { font-size: 0.6rem; }
    .st-card-label { font-size: 0.55rem; }
    .st-card-oneline { padding: 6px 8px; }
    .st-card-oneline.st-card-shrink { padding: 6px 6px; }
    .st-card-oneline .st-card-text { font-size: 0.72rem; }
    .st-card-oneline .st-card-icon { font-size: 1rem; }
    /* 属性折叠摘要响应式 */
    .attr-summary-chip { padding: 1px 4px; font-size: 0.55rem; }
    .attr-summary-toggle { font-size: 0.55rem; }
    /* 行动折叠响应式 */
    .action-collapse-toggle { padding: 8px 10px; }
    .action-toggle-text { font-size: 0.72rem; }
    .action-toggle-hint { font-size: 0.58rem; }
    .char-warnings-panel { padding: 4px 8px; }
    .char-warning-text { font-size: 0.58rem; }
    .char-warning-hint { font-size: 0.52rem; }
}

/* ========== 中等手机屏幕优化（375-414px） ========== */
@media (min-width: 361px) and (max-width: 414px) {
    .attr-chip { padding: 6px 7px; }
}

/* ========== 横屏模式适配 ========== */
@media (orientation: landscape) and (max-height: 500px) {
    .modal-content { max-height: 95vh; max-height: 95dvh; }
    .min-h-screen-safe { min-height: 100vh; }
}

/* ========== 触摸反馈增强 ========== */
@media (hover: none) and (pointer: coarse) {
    .glass-card { transition: none; }
    .choice-btn { transition: transform 0.1s, background 0.1s, border-color 0.1s; }
    .action-btn { transition: transform 0.1s, background 0.1s; }
    .glow-btn::after { display: none; }
    
    .touch-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at var(--tap-x, 50%) var(--tap-y, 50%), rgba(124, 58, 237, 0.1), transparent 60%);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
        border-radius: inherit;
    }
    .touch-btn:active::after { opacity: 1; transition-duration: 0.05s; }
}

/* ========== 辞职信样式 - 亮色版 ========== */
.resign-letter-paper {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(167, 139, 250, 0.04));
    border: 1px dashed rgba(124, 58, 237, 0.2);
    border-radius: 0.875rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.resign-letter-paper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
}

/* 内联输入框样式 - 嵌入正文中 */
.resign-inline-input-wrap {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    min-width: 90px;
}
.resign-inline-input {
    background: transparent;
    border: none;
    border-bottom: 2px dashed rgba(124, 58, 237, 0.4);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 0.25rem 0.15rem;
    width: 100%;
    min-width: 90px;
    max-width: 140px;
    text-align: center;
    outline: none;
    caret-color: var(--accent);
    transition: border-color 0.3s;
    font-family: inherit;
    line-height: 1.4;
}
.resign-inline-input::placeholder {
    color: rgba(124, 58, 237, 0.45);
    font-weight: 500;
    font-size: 0.75rem;
}
.resign-inline-input:focus {
    border-bottom-style: solid;
    border-bottom-color: var(--accent);
}
.resign-inline-underline {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
    border-radius: 1px;
}
.resign-inline-input:focus ~ .resign-inline-underline {
    width: 100%;
}

/* 输入框呼吸动画提示 */
@keyframes inputHintPulse {
    0%, 100% { border-bottom-color: rgba(124, 58, 237, 0.4); }
    50% { border-bottom-color: rgba(124, 58, 237, 0.7); }
}
.resign-inline-input:not(:focus):placeholder-shown {
    animation: inputHintPulse 2s ease-in-out infinite;
}

/* 玩家身份标签 */
.player-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* ========== 封面 - 精致版 ========== */

/* 背景装饰 */
.cover-bg-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.cover-sparkle {
    position: absolute;
    font-size: 1.3rem;
    opacity: 0.35;
    animation: sparkleFloat 3s ease-in-out infinite;
}
.sparkle-1 { top: 12%; left: 8%; color: #c084fc; animation-delay: 0s; font-size: 1.5rem; }
.sparkle-2 { top: 8%; right: 12%; color: #f9a8d4; animation-delay: 0.5s; font-size: 1.3rem; }
.sparkle-3 { top: 45%; left: 5%; color: #fbbf24; animation-delay: 1s; font-size: 1.1rem; }
.sparkle-4 { bottom: 30%; right: 6%; color: #a78bfa; animation-delay: 1.5s; font-size: 1.7rem; }
.sparkle-5 { bottom: 18%; left: 15%; color: #fb923c; animation-delay: 2s; font-size: 1.3rem; }
@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 0.6; }
}
.cover-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
}
.orb-1 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #c084fc, transparent);
    top: -40px; right: -50px;
    animation: orbDrift 6s ease-in-out infinite;
}
.orb-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #f9a8d4, transparent);
    bottom: 10%; left: -40px;
    animation: orbDrift 8s ease-in-out infinite reverse;
}
@keyframes orbDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
}

/* 封面卡片 */
.cover-hero-section {
    position: relative;
    display: flex;
    justify-content: center;
}
.cover-card {
    position: relative;
    display: inline-block;
}
.cover-img-wrapper {
    width: 15rem;
    height: 15rem;
    overflow: hidden;
    position: relative;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 50%, #fff7ed 100%);
    box-shadow: 
        0 8px 32px rgba(192, 132, 252, 0.18),
        0 2px 12px rgba(249, 168, 212, 0.12),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
    padding: 0.4rem;
}
.cover-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 1.2rem;
}
.cover-img-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: imgShine 3s ease-in-out infinite;
    border-radius: 1.2rem;
    pointer-events: none;
}
@keyframes imgShine {
    0%, 70%, 100% { left: -100%; opacity: 0; }
    80% { left: 100%; opacity: 1; }
}
@keyframes coverFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.cover-badge {
    position: absolute;
    bottom: -10px;
    right: -14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 22px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
    white-space: nowrap;
    letter-spacing: 0.5px;
}
@keyframes badgeBounce {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50% { transform: scale(1.08) rotate(2deg); }
}

/* 标题区 */
.cover-title-section {
    position: relative;
}
.cover-title-deco {
    font-size: 1rem;
    color: #d8b4fe;
    letter-spacing: 10px;
    margin-bottom: 4px;
    animation: decoFade 2.5s ease-in-out infinite;
}
@keyframes decoFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.cover-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 40%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: none;
}
.cover-subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.cover-subtitle-line {
    flex: 0 0 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d8b4fe, transparent);
}
.cover-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    letter-spacing: 1px;
}

/* 封面按钮 */
.cover-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}
.cover-btn:active {
    transform: scale(0.96);
}
.cover-btn-icon {
    font-size: 1rem;
}
.cover-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.3), 0 2px 8px rgba(236, 72, 153, 0.2);
}
.cover-btn-primary:active {
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}
.cover-btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25);
}
.cover-btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.25);
}
.cover-btn-ghost {
    background: rgba(255, 255, 255, 0.65);
    color: #7c3aed;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

/* 底部提示 */
.cover-footer-hint {
    color: #a1a1aa;
    font-size: 0.82rem;
    line-height: 1.6;
    opacity: 0.7;
}

/* 访客计数 */
.cover-visitor-count {
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.06));
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 1.5s ease-out 0.5s both;
}
.cover-visitor-icon {
    font-size: 0.85rem;
    animation: coverFloat 2s ease-in-out infinite;
}
.cover-visitor-num {
    font-weight: 800;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

/* ========== 裸辞第一件事选择卡片 ========== */
.first-thing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(200,195,220,0.25);
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
    min-height: 140px;
}
.first-thing-card:active {
    transform: scale(0.96);
}
.first-thing-card:hover {
    border-color: rgba(124,58,237,0.3);
    box-shadow: 0 4px 15px rgba(124,58,237,0.08);
    transform: translateY(-2px);
}

/* ========== 考核目标卡片 ========== */
.exam-goal-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(124,58,237,0.15);
    border-radius: 0.875rem;
    overflow: hidden;
}
.exam-goal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(167,139,250,0.04));
    border-bottom: 1px solid rgba(124,58,237,0.08);
}
.exam-goal-body {
    padding: 0.6rem 0.75rem;
}
.exam-req-item {
    padding: 0.45rem 0.6rem;
    border-radius: 0.5rem;
    margin-bottom: 0.35rem;
    transition: all 0.3s;
}
.exam-req-item:last-child {
    margin-bottom: 0;
}
.exam-req-item.passed {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
}
.exam-req-item.failed {
    background: rgba(239,68,68,0.04);
    border: 1px solid rgba(239,68,68,0.12);
}
.exam-progress-bar {
    height: 4px;
    background: rgba(200,195,220,0.25);
    border-radius: 9999px;
    overflow: hidden;
}
.exam-progress-inner {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* ========== 新手引导卡片 ========== */
.guide-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.97), rgba(248,246,255,0.98));
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    width: calc(100% - 40px);
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(124,58,237,0.15), 0 0 30px rgba(124,58,237,0.05);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.guide-progress {
    height: 3px;
    background: rgba(200,195,220,0.3);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.guide-progress-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.guide-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1rem;
}
.guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200,195,220,0.4);
    transition: all 0.3s;
}
.guide-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(124,58,237,0.3);
}
.guide-dot.done {
    background: var(--success);
}
.guide-tips {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.guide-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    background: rgba(124,58,237,0.04);
    border: 1px solid rgba(124,58,237,0.08);
    border-radius: 0.6rem;
}

/* ========== 角色状态面板（新版 - 左右对半分：左图右属性） ========== */
.char-status-panel {
    padding: 0.65rem 0.75rem !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.45), rgba(248,240,255,0.35)) !important;
    border: 1.5px solid rgba(192,132,252,0.18) !important;
}
.char-profile-section {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
}
.char-avatar-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 46%;
    max-width: 46%;
}
.char-avatar-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: 22px;
    overflow: hidden;
    border: 2.5px solid rgba(192,132,252,0.3);
    background: linear-gradient(160deg, #f3e8ff 0%, #fce7f3 40%, #ede9fe 70%, #e0e7ff 100%);
    box-shadow: 0 4px 20px rgba(192,132,252,0.12), inset 0 0 30px rgba(255,255,255,0.3);
    transition: all 0.3s;
    position: relative;
}
.char-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center 80%, rgba(192,132,252,0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 30% 20%, rgba(249,168,212,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}
.char-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: relative;
    z-index: 1;
    background: transparent;
}
.char-gender-toggle {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}
.char-gender-toggle .gender-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 11px;
    border: 1.5px solid rgba(192,132,252,0.2);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
}
.char-gender-toggle .gender-btn.active {
    border-color: rgba(192,132,252,0.5);
    background: rgba(192,132,252,0.1);
    box-shadow: 0 2px 8px rgba(192,132,252,0.2);
}
.char-stats-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    justify-content: space-between;
    overflow: hidden;
    max-height: 100%;
    align-self: stretch;
}

/* ========== 全新属性条卡片设计 ========== */
.char-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(192, 132, 252, 0.06);
    position: relative;
    overflow: hidden;
}
.char-stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.3));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.char-stat-item:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(192, 132, 252, 0.15);
    transform: translateX(2px);
}
.char-stat-item:hover::before {
    opacity: 1;
}

/* 圆形图标徽章 */
.stat-icon-badge {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(192, 132, 252, 0.08);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.char-stat-item:hover .stat-icon-badge {
    transform: scale(1.1);
}
/* 各属性图标徽章配色 */
.stat-icon-badge.bar-glow-health { background: rgba(16, 185, 129, 0.1); box-shadow: 0 0 0 1px rgba(16,185,129,0.08); }
.stat-icon-badge.bar-glow-control { background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 0 1px rgba(59,130,246,0.08); }
.stat-icon-badge.bar-glow-toughness { background: rgba(139, 92, 246, 0.1); box-shadow: 0 0 0 1px rgba(139,92,246,0.08); }
.stat-icon-badge.bar-glow-anxiety { background: rgba(239, 68, 68, 0.08); box-shadow: 0 0 0 1px rgba(239,68,68,0.06); }
.stat-icon-badge.bar-glow-work-habit { background: rgba(249, 115, 22, 0.1); box-shadow: 0 0 0 1px rgba(249,115,22,0.08); }

.char-stat-icon {
    font-size: 0.7rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 内容区：名称 + 进度条 */
.stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}
.char-stat-name {
    font-size: 0.58rem;
    font-weight: 700;
    color: #4B5563;
    white-space: nowrap;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.char-stat-val {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-width: 16px;
    text-align: right;
    flex-shrink: 0;
}

/* ========== 进度条重新设计 ========== */
.char-stat-bar-wrap {
    position: relative;
    padding-top: 8px;
}
.char-stat-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(200, 195, 220, 0.12);
    border-radius: 9999px;
    overflow: visible;
    min-width: 0;
    position: relative;
}
.char-stat-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.char-stat-bar-fill::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
    border-radius: 9999px 9999px 0 0;
}
.stat-target-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 14px;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 0 8px rgba(99,102,241,0.18);
    z-index: 2;
    pointer-events: none;
}
.stat-target-marker.is-met {
    background: rgba(16, 185, 129, 0.95);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.95), 0 0 8px rgba(16,185,129,0.16);
}
.stat-target-marker.is-unmet {
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.95), 0 0 8px rgba(245,158,11,0.2);
}
/* stat-target-tip 已移除 */
/* 进度条微光动画 */
.stat-bar-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    border-radius: 9999px;
    animation: barShimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes barShimmer {
    0% { left: -60%; opacity: 0; }
    40% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* ========== 警告/危险状态美化 ========== */
.char-stat-item.stat-warn {
    background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(255,255,255,0.5));
    border-color: rgba(245,158,11,0.18);
}
.char-stat-item.stat-warn .stat-icon-badge {
    background: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(245,158,11,0.15), 0 0 6px rgba(245,158,11,0.08) !important;
}
.char-stat-item.stat-warn .char-stat-val { color: #D97706; }
.char-stat-item.stat-warn .char-stat-name { color: #B45309; }
.char-stat-item.stat-danger {
    background: linear-gradient(135deg, rgba(252,165,165,0.08), rgba(255,255,255,0.45));
    border-color: rgba(239,68,68,0.22);
}
.char-stat-item.stat-danger .stat-icon-badge {
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 1px rgba(239,68,68,0.15), 0 0 8px rgba(239,68,68,0.1) !important;
    animation: dangerIconPulse 2s ease-in-out infinite;
}
@keyframes dangerIconPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(239,68,68,0.15), 0 0 8px rgba(239,68,68,0.1); }
    50% { box-shadow: 0 0 0 2px rgba(239,68,68,0.2), 0 0 12px rgba(239,68,68,0.18); }
}
.char-stat-item.stat-danger .char-stat-val { color: #DC2626; }
.char-stat-item.stat-danger .char-stat-name { color: #DC2626; }
.char-stat-item.stat-danger .char-stat-bar-bg {
    animation: pulse-glow-danger 2s ease-in-out infinite;
}

/* ========== 属性条列表填充 ========== */
.char-stats-area > .char-stats-full {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 2px;
}

/* ========== 属性条折叠/展开 ========== */
.char-stats-collapsible {
    width: 100%;
}
.char-stats-collapsible .char-stats-full {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.char-stats-collapsible.collapsed .char-stats-full {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
/* 摘要行 */
.attr-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.08);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
}
.attr-summary-row:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}
.attr-summary-row:active {
    transform: scale(0.98);
}
.attr-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.attr-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 6px;
    background: rgba(255,255,255,0.6);
    font-size: 0.6rem;
    font-weight: 700;
    color: #4B5563;
    border: 1px solid rgba(200, 195, 220, 0.15);
    transition: all 0.2s;
}
.attr-summary-chip .attr-summary-icon {
    font-size: 0.6rem;
}
.attr-summary-chip .attr-summary-val {
    font-variant-numeric: tabular-nums;
}
/* 危险/警告属性高亮 */
.attr-summary-chip.summary-warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #D97706;
}
.attr-summary-chip.summary-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #DC2626;
    animation: pulse-glow-danger 2s ease-in-out infinite;
}
.attr-summary-chip.summary-savings {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}
.attr-summary-toggle {
    font-size: 0.6rem;
    color: #7C3AED;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
/* 展开时隐藏摘要行 */
.char-stats-collapsible:not(.collapsed) .attr-summary-toggle {
    color: #9CA3AF;
}

/* 存款余粮醒目横幅 */
.char-runway-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(8px);
}
.char-runway-banner.safe {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(110,231,183,0.08));
    border: 1.5px solid rgba(16,185,129,0.18);
}
.char-runway-banner.warn {
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(245,158,11,0.06));
    border: 1.5px solid rgba(245,158,11,0.2);
}
.char-runway-banner.danger {
    background: linear-gradient(135deg, rgba(252,165,165,0.1), rgba(239,68,68,0.06));
    border: 1.5px solid rgba(239,68,68,0.25);
    animation: slideDown 0.3s ease-out, pulse-glow-danger 2.5s ease-in-out infinite;
}
.char-runway-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.char-runway-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.char-runway-text b {
    font-size: 0.95rem;
    font-weight: 900;
}
.char-runway-banner.safe .char-runway-text b { color: #059669; }
.char-runway-banner.warn .char-runway-text b { color: #D97706; }
.char-runway-banner.danger .char-runway-text b { color: #DC2626; }
.char-runway-amount {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    opacity: 0.7;
}

/* 属性警告面板 */
.char-warnings-panel {
    padding: 6px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(252,165,165,0.06), rgba(251,207,232,0.06));
    border: 1px solid rgba(239,68,68,0.12);
    animation: scaleIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
.char-warnings-panel.safe-panel {
    background: linear-gradient(135deg, rgba(167,243,208,0.08), rgba(196,181,253,0.06));
    border-color: rgba(16,185,129,0.15);
}
.char-warnings-title {
    font-size: 0.68rem;
    font-weight: 800;
    margin-bottom: 3px;
}
.char-warning-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}
.char-warning-icon {
    font-size: 0.7rem;
}
.char-warning-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: #DC2626;
}
.char-warning-hint {
    font-size: 0.58rem;
    color: var(--text-muted);
    margin-left: auto;
    font-style: italic;
}
.char-action-hint {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 2px;
    position: relative;
}
.char-action-hint::before {
    content: none;
    display: none;
}

/* ========== 生存仪表盘（双卡片） ========== */
.survival-dashboard {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 14px;
    max-width: 360px;
    width: 100%;
}
.survival-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px 8px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.survival-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}
.survival-card:active {
    transform: scale(0.97);
}

/* 时间卡片 */
.survival-card-time {
    background: linear-gradient(160deg, rgba(124,58,237,0.08) 0%, rgba(99,102,241,0.04) 100%);
    border: 1px solid rgba(124,58,237,0.15);
}
.survival-card-time::before {
    background: linear-gradient(90deg, #7c3aed, #6366f1);
}
.survival-card-time .survival-card-num {
    color: #7c3aed;
}
.survival-card-time .survival-card-foot {
    color: rgba(124,58,237,0.6);
}

/* 余粮卡片 - 安全 */
.survival-card-money.runway-safe {
    background: linear-gradient(160deg, rgba(5,150,105,0.08) 0%, rgba(16,185,129,0.04) 100%);
    border: 1px solid rgba(5,150,105,0.15);
}
.survival-card-money.runway-safe::before {
    background: linear-gradient(90deg, #059669, #10b981);
}
.survival-card-money.runway-safe .survival-card-num {
    color: #059669;
}
.survival-card-money.runway-safe .survival-card-foot {
    color: rgba(5,150,105,0.6);
}

/* 余粮卡片 - 警告 */
.survival-card-money.runway-warn {
    background: linear-gradient(160deg, rgba(217,119,6,0.08) 0%, rgba(245,158,11,0.04) 100%);
    border: 1px solid rgba(217,119,6,0.18);
}
.survival-card-money.runway-warn::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}
.survival-card-money.runway-warn .survival-card-num {
    color: #d97706;
}
.survival-card-money.runway-warn .survival-card-foot {
    color: rgba(217,119,6,0.6);
}

/* 余粮卡片 - 危险 */
.survival-card-money.runway-danger {
    background: linear-gradient(160deg, rgba(220,38,38,0.10) 0%, rgba(239,68,68,0.05) 100%);
    border: 1px solid rgba(220,38,38,0.22);
    animation: dangerCardPulse 2s ease-in-out infinite;
}
.survival-card-money.runway-danger::before {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}
.survival-card-money.runway-danger .survival-card-num {
    color: #dc2626;
}
.survival-card-money.runway-danger .survival-card-foot {
    color: rgba(220,38,38,0.6);
}
@keyframes dangerCardPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
    50% { box-shadow: 0 0 12px 2px rgba(220,38,38,0.15); }
}

/* 卡片内部元素 */
.survival-card-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.survival-card-emoji {
    font-size: 0.9rem;
    line-height: 1;
}
.survival-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(80,80,100,0.7);
    letter-spacing: 0.5px;
}
.survival-card-body {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 2px 0 4px;
}
.survival-card-num {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    font-feature-settings: 'tnum';
}
.survival-card-suffix {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.55;
    color: #555;
}
.survival-card-foot {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 向下箭头指引 */
.action-arrow-guide {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    animation: arrowBounce 1.2s ease-in-out infinite;
}
.arrow-down-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(192,132,252,0.25), rgba(249,168,212,0.25));
    border: 2px solid rgba(192,132,252,0.35);
    border-radius: 50%;
    color: #c084fc;
    box-shadow: 0 2px 10px rgba(192,132,252,0.2);
    filter: drop-shadow(0 0 4px rgba(192,132,252,0.3));
}
@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== 圆形"开始本月行动"按钮 ========== */
.start-action-circle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 6px auto 0;
}
.start-action-circle-btn {
    position: relative;
    z-index: 2;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
    background-size: 200% 200%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(192, 132, 252, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: circleBtnGradient 3s ease infinite, circleBtnPulseSoft 2s ease-in-out infinite;
}
.start-action-circle-btn:active {
    transform: scale(0.92);
    box-shadow:
        0 2px 10px rgba(192, 132, 252, 0.2);
}
.start-action-circle-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.start-action-circle-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}
.start-action-ring {
    position: absolute;
    z-index: 1;
    width: 106px;
    height: 106px;
    border-radius: 50%;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    animation: ringRotate 8s linear infinite;
}
@keyframes circleBtnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes circleBtnPulseSoft {
    0%, 100% { box-shadow: 0 4px 20px rgba(192,132,252,0.25), inset 0 1px 0 rgba(255,255,255,0.2); }
    50% { box-shadow: 0 6px 30px rgba(192,132,252,0.35), inset 0 1px 0 rgba(255,255,255,0.2); }
}
@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== 角色居中 + 属性条下置布局 ========== */
.char-layout-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.char-profile-center {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}
.char-avatar-center {
    flex: none !important;
    max-width: none !important;
    width: auto !important;
    align-items: center;
}
.char-avatar-center .char-avatar-wrapper {
    width: 140px;
    max-height: 200px;
    aspect-ratio: 1 / 1.15;
}
.char-stats-bottom {
    width: 100%;
    margin-top: 4px;
}
/* 放大版圆形按钮 */
.start-action-circle-btn-lg {
    width: 120px !important;
    height: 120px !important;
}
.start-action-circle-btn-lg .start-action-circle-icon {
    font-size: 32px;
}
.start-action-circle-btn-lg .start-action-circle-text {
    font-size: 14px;
    font-weight: 800;
}
.start-action-ring-lg {
    width: 140px !important;
    height: 140px !important;
}
/* 超大版圆形按钮 XL */
.start-action-circle-btn-xl {
    width: 150px !important;
    height: 150px !important;
}
.start-action-circle-btn-xl .start-action-circle-icon {
    font-size: 40px;
}
.start-action-circle-btn-xl .start-action-circle-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}
.start-action-ring-xl {
    width: 175px !important;
    height: 175px !important;
}

/* ========== 行动弹出层 ========== */
.action-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.action-popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.action-popup-container {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,246,255,0.98));
    border-radius: 24px 24px 0 0;
    padding: 20px 16px calc(env(safe-area-inset-bottom) + 16px);
    box-shadow: 0 -8px 40px rgba(124,58,237,0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.action-popup-overlay.show .action-popup-container {
    transform: translateY(0);
}
.action-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.action-popup-title {
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.action-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.action-popup-close:active {
    background: rgba(0,0,0,0.12);
}
.action-popup-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 14px;
}

/* 角色弹跳动画 */
@keyframes avatarBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-12px) scale(1.05); }
    50% { transform: translateY(-6px) scale(1.02); }
    70% { transform: translateY(-3px) scale(1.01); }
}
.avatar-bounce {
    animation: avatarBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== 行动面板分割装饰线 ========== */
#action-panel {
    position: relative;
}
#action-panel::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(192,132,252,0.25), rgba(249,168,212,0.25), transparent);
    border-radius: 2px;
    margin: 0 auto 10px;
}

/* ========== 属性条柔和渐变（女性配色优化）========== */
.bar-savings { background: linear-gradient(90deg, #fcd34d, #f59e0b, #d97706); }
.bar-health { background: linear-gradient(90deg, #6ee7b7, #34d399, #10b981); }
.bar-control { background: linear-gradient(90deg, #93c5fd, #60a5fa, #3b82f6); }
.bar-toughness { background: linear-gradient(90deg, #c4b5fd, #a78bfa, #8b5cf6); }
.bar-anxiety { background: linear-gradient(90deg, #fda4af, #fb7185, #f43f5e); }
.bar-work-habit { background: linear-gradient(90deg, #fdba74, #fb923c, #ea580c); }

/* ========== 角色面板呼吸光晕 ========== */
.char-avatar-wrapper {
    animation: avatarGlow 4s ease-in-out infinite;
}
@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(192,132,252,0.12), inset 0 0 30px rgba(255,255,255,0.3); }
    50% { box-shadow: 0 4px 28px rgba(192,132,252,0.22), 0 0 12px rgba(249,168,212,0.12), inset 0 0 35px rgba(255,255,255,0.4); }
}

/* 属性条项目序列入场动画 */
.char-stat-item {
    animation: statItemIn 0.35s ease-out both;
}
.char-stat-item:nth-child(1) { animation-delay: 0s; }
.char-stat-item:nth-child(2) { animation-delay: 0.05s; }
.char-stat-item:nth-child(3) { animation-delay: 0.1s; }
.char-stat-item:nth-child(4) { animation-delay: 0.15s; }
.char-stat-item:nth-child(5) { animation-delay: 0.2s; }
@keyframes statItemIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== 行动网格底部安全间距 ========== */
.action-grid-v2 {
    padding-bottom: 4px;
}

/* ========== 像素风配图 ========== */
.pixel-art-container {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(124,58,237,0.10);
    background: transparent;
    position: relative;
    animation: pixelFadeIn 0.5s ease-out;
}
.pixel-art-container canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}
.pixel-art-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
}
.pixel-art-container::after {
    content: '🎮 PIXEL ART';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-family: monospace;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 1;
}
@keyframes pixelFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ========== 像素小人角色系统 ========== */
.pixel-char-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    animation: pixelCharIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pixelCharIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.pixel-char-wrapper {
    width: 88px;
    height: 102px;
    background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, rgba(236,72,153,0.04) 100%);
    border: 2px solid rgba(124,58,237,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(124,58,237,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pixel-char-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(0deg, rgba(124,58,237,0.06), transparent);
    pointer-events: none;
}

.pixel-char-wrapper canvas.pixel-character-canvas {
    width: 72px !important;
    height: 81px !important;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 性别切换按钮 */
.pixel-char-gender-toggle {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.gender-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 2px solid rgba(124,58,237,0.12);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.gender-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.15));
    transition: opacity 0.25s;
}

.gender-btn:active {
    transform: scale(0.92);
}

.gender-btn.active {
    border-color: rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.08);
    box-shadow: 0 2px 8px rgba(124,58,237,0.15);
}

.gender-btn.active::after {
    opacity: 1;
}

.gender-btn span {
    position: relative;
    z-index: 1;
}

/* 行动卡片动画状态 */
.action-card-v2.action-card-active {
    border-color: rgba(192,132,252,0.5) !important;
    background: linear-gradient(145deg, rgba(248,240,255,0.95), rgba(252,231,243,0.6)) !important;
    box-shadow: 0 0 20px rgba(192,132,252,0.2), 0 4px 12px rgba(249,168,212,0.15) !important;
    transform: scale(1.03);
}
.action-card-v2.action-card-active::before { opacity: 1 !important; }

.action-card-v2.action-card-dimmed {
    opacity: 0.3;
    filter: grayscale(0.6);
    pointer-events: none;
    transform: scale(0.95);
}

/* 行为动画进行时角色容器高亮 */
.pixel-char-wrapper.animating {
    border-color: rgba(124,58,237,0.35);
    box-shadow: 0 2px 20px rgba(124,58,237,0.15), 0 0 30px rgba(124,58,237,0.08);
}

/* ========== 固定事件增强弹窗样式 ========== */
.fixed-event-container {
    margin: -16px -16px 0 -16px;
}

.fixed-event-hero {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.fixed-event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: fixedImgZoom 8s ease-in-out infinite alternate;
}

@keyframes fixedImgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.fixed-event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.fixed-event-month {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.fixed-event-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin: 0;
    line-height: 1.3;
}

.fixed-event-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(245,158,11,0.12));
    border-bottom: 1px solid rgba(245,158,11,0.15);
    font-size: 0.7rem;
    font-weight: 700;
    color: #b45309;
}

.fixed-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    animation: fixedDotPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes fixedDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.fixed-event-flavor {
    padding: 10px 16px 0;
    font-size: 0.75rem;
    color: #78716c;
    font-style: italic;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.fixed-event-story {
    padding: 10px 16px;
    margin: 0;
}

.fixed-event-story .typing-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #374151;
}

.fixed-event-choices {
    padding: 4px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixed-choices-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #6b7280;
    margin: 0 0 2px 0;
}

.fixed-choice-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(250,245,255,0.6));
    border: 1.5px solid rgba(192,132,252,0.2);
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.fixed-choice-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(124,58,237,0.03), rgba(249,168,212,0.04));
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: 14px;
}

.fixed-choice-btn:hover::before,
.fixed-choice-btn:active::before {
    opacity: 1;
}

.fixed-choice-btn:hover,
.fixed-choice-btn:active {
    border-color: rgba(124,58,237,0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.1), 0 2px 6px rgba(0,0,0,0.04);
}

.fixed-choice-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.fixed-choice-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

.fixed-choice-fx {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.fixed-fx-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 1px;
}

.fixed-fx-tag.good {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.fixed-fx-tag.bad {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
}

.fixed-choice-special {
    font-size: 0.65rem;
    color: #d97706;
    font-weight: 600;
    padding-top: 2px;
    position: relative;
    z-index: 1;
}

/* ========== 固定行动弹窗样式 ========== */
.act-modal-container {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.act-modal-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.act-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: actModalImgZoom 8s ease-in-out infinite alternate;
}

@keyframes actModalImgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.act-modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.act-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.act-modal-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6d28d9;
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(167,139,250,0.12));
    border-bottom: 1px solid rgba(139,92,246,0.12);
}

.act-modal-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8b5cf6;
    animation: actBadgePulse 1.5s ease-in-out infinite;
}

@keyframes actBadgePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.act-modal-flavor {
    padding: 12px 16px 0;
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.6;
    font-style: italic;
    position: relative;
}

.act-modal-flavor::before {
    content: '"';
    font-size: 2rem;
    color: rgba(139,92,246,0.2);
    position: absolute;
    top: 4px;
    left: 8px;
    font-family: Georgia, serif;
    line-height: 1;
}

.act-modal-fx-section {
    padding: 12px 16px 4px;
}

.act-modal-fx-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.act-modal-fx-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.act-modal-fx-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(243,244,246,0.8);
    border: 1px solid rgba(229,231,235,0.8);
    transition: transform 0.2s;
}

.act-modal-fx-item:hover {
    transform: scale(1.05);
}

.act-modal-fx-item.good {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(52,211,153,0.12));
    border-color: rgba(16,185,129,0.25);
    color: #059669;
}

.act-modal-fx-item.bad {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(248,113,113,0.12));
    border-color: rgba(239,68,68,0.25);
    color: #dc2626;
}

.act-modal-fx-icon {
    font-size: 0.85rem;
}

.act-modal-fx-name {
    opacity: 0.85;
}

.act-modal-fx-val {
    font-weight: 800;
    font-size: 0.78rem;
}

.act-modal-btns {
    display: flex;
    gap: 10px;
    padding: 14px 16px 16px;
}

.act-modal-btn-confirm {
    flex: 1;
    padding: 12px 0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(139,92,246,0.35);
    transition: all 0.2s;
    letter-spacing: 1px;
}

.act-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139,92,246,0.45);
}

.act-modal-btn-confirm:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}

.act-modal-btn-cancel {
    flex: 0.5;
    padding: 12px 0;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(243,244,246,0.9);
    border: 1px solid rgba(229,231,235,0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.act-modal-btn-cancel:hover {
    background: rgba(229,231,235,0.9);
    color: #374151;
}

/* ========== 月度复盘目标预览（游戏面板内） ========== */
.monthly-target-panel {
    margin-top: 28px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(234,179,8,0.1));
    border: 1px solid rgba(245,158,11,0.2);
    animation: slideUp 0.3s ease-out;
}
.monthly-target-panel.all-met {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(52,211,153,0.1));
    border-color: rgba(16,185,129,0.2);
}
.monthly-target-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.monthly-target-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.monthly-target-toggle {
    font-size: 0.6rem;
    color: #92400e;
    transition: transform 0.25s ease;
    display: inline-block;
}
.monthly-target-panel.all-met .monthly-target-toggle {
    color: #065f46;
}
.monthly-target-panel:not(.collapsed) .monthly-target-toggle {
    transform: rotate(90deg);
}
.monthly-target-body {
    overflow: hidden;
    max-height: 300px;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
    opacity: 1;
    margin-top: 8px;
}
.monthly-target-panel.collapsed .monthly-target-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}
.monthly-target-panel.collapsed .monthly-target-header {
    margin-bottom: 0;
}
.monthly-target-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
}
.monthly-target-panel.all-met .monthly-target-title {
    color: #065f46;
}
.monthly-target-count {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}
.count-warn {
    background: rgba(245,158,11,0.15);
    color: #b45309;
}
.count-pass {
    background: rgba(16,185,129,0.15);
    color: #047857;
}
.monthly-target-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.monthly-target-tag {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(200,200,200,0.3);
}
.monthly-target-tag.target-met {
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.08);
    color: #047857;
}
.monthly-target-tag.target-unmet {
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.06);
    color: #b91c1c;
}
.monthly-target-label {
    white-space: nowrap;
}
.monthly-target-val {
    font-weight: 800;
}
.monthly-target-check {
    font-size: 0.6rem;
}
.monthly-target-reward {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.65rem;
    color: #92400e;
}
.monthly-target-panel.all-met .monthly-target-reward {
    color: #065f46;
}
.monthly-target-danger {
    color: #dc2626;
    font-weight: 700;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========== 月度复盘弹窗样式 ========== */
.review-container {
    padding: 4px;
}
.review-header {
    text-align: center;
    margin-bottom: 16px;
    animation: scaleIn 0.6s cubic-bezier(0.16,1,0.3,1);
}
.review-header-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.review-header-title {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.review-header-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.review-status-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s 0.1s both;
}
.review-status-icon {
    font-size: 1.8rem;
}
.review-status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.review-status-main {
    font-size: 1rem;
    font-weight: 900;
}
.review-status-sub {
    font-size: 0.7rem;
    color: #6b7280;
}
.review-status-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,0.05);
}
.review-status-progress-inner {
    height: 100%;
    border-radius: 0 3px 3px 0;
    transition: width 0.6s ease;
}

.review-description {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 14px;
    padding: 0 4px;
    animation: slideUp 0.4s 0.15s both;
}

.review-targets-section {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(200,195,220,0.3);
    padding: 12px;
    margin-bottom: 14px;
    animation: slideUp 0.4s 0.2s both;
}
.review-targets-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 10px;
}

.review-target-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 6px;
    position: relative;
    transition: all 0.2s;
}
.review-target-item:last-child {
    margin-bottom: 0;
}
.review-target-pass {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
}
.review-target-fail {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    animation: shake 0.5s ease-in-out;
}
.review-target-left {
    display: flex;
    align-items: center;
    gap: 6px;
}
.review-target-icon {
    font-size: 1rem;
}
.review-target-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}
.review-target-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.review-target-current {
    font-size: 0.8rem;
    font-weight: 800;
}
.review-target-pass .review-target-current {
    color: #047857;
}
.review-target-fail .review-target-current {
    color: #dc2626;
}
.review-target-separator {
    font-size: 0.65rem;
    color: #9ca3af;
}
.review-target-goal {
    font-size: 0.65rem;
    color: #6b7280;
}
.review-target-status {
    font-size: 0.8rem;
    margin-left: 4px;
}
.review-target-gap {
    position: absolute;
    bottom: -2px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239,68,68,0.1);
    padding: 1px 6px;
    border-radius: 6px;
}

/* 奖励区域 */
.review-reward-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(234,179,8,0.15));
    border: 1px solid rgba(245,158,11,0.25);
    margin-bottom: 14px;
    animation: slideUp 0.4s 0.3s both;
}
.review-reward-icon {
    font-size: 2rem;
    animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.review-reward-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-reward-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
}
.review-reward-detail {
    font-size: 0.85rem;
    font-weight: 900;
    color: #b45309;
}

/* 失败区域 */
.review-fail-section {
    text-align: center;
    padding: 18px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(220,38,38,0.1));
    border: 1px solid rgba(239,68,68,0.25);
    margin-bottom: 14px;
    animation: slideUp 0.4s 0.3s both;
}
.review-fail-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
    animation: shake 0.8s ease-in-out;
}
.review-fail-text {
    font-size: 0.85rem;
    color: #991b1b;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}
.review-fail-hint {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 800;
    animation: blink 1.5s ease-in-out infinite;
}

/* 下月预告 */
.review-next-month {
    padding: 12px;
    border-radius: 12px;
    background: rgba(124,58,237,0.05);
    border: 1px dashed rgba(124,58,237,0.2);
    margin-bottom: 14px;
    animation: slideUp 0.4s 0.35s both;
}
.review-next-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6d28d9;
    margin-bottom: 4px;
}
.review-next-subtitle {
    font-size: 0.7rem;
    color: #7c3aed;
    margin-bottom: 8px;
}
.review-next-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.review-next-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(124,58,237,0.08);
    color: #6d28d9;
    font-weight: 600;
}

/* 复盘按钮 */
.review-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    animation: slideUp 0.4s 0.4s both;
}
.review-btn-pass {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}
.review-btn-pass:active {
    transform: scale(0.97);
}
.review-btn-fail {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}
.review-btn-fail:active {
    transform: scale(0.97);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ========== BGM 控制按钮（重复定义已清理，见文件顶部） ==========*/

/* ========== [v39.0] 三选一命运牌样式 ========== */
.event-candidates-container {
    padding: 0.5rem 0;
}
.event-candidates-header {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}
.event-candidates-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.3rem;
    animation: dice-spin 1s ease-out;
}
@keyframes dice-spin {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0; }
    50% { transform: rotate(360deg) scale(1.2); opacity: 1; }
    100% { transform: rotate(720deg) scale(1); opacity: 1; }
}
.event-candidates-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.3rem;
}
.event-candidates-sub {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

.event-candidates-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 0.75rem;
}

.event-candidate-card {
    position: relative;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.event-candidate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}
.event-candidate-card:active {
    transform: scale(0.97) !important;
}

/* 卡牌颜色主题 */
.event-card-violet {
    background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(167,139,250,0.15));
    border-color: rgba(139,92,246,0.25);
}
.event-card-violet::before {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(167,139,250,0.22));
}
.event-card-amber {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(251,191,36,0.15));
    border-color: rgba(245,158,11,0.25);
}
.event-card-amber::before {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.22));
}
.event-card-emerald {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(52,211,153,0.15));
    border-color: rgba(16,185,129,0.25);
}
.event-card-emerald::before {
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(52,211,153,0.22));
}

.event-candidate-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.event-candidate-emoji {
    font-size: 1.5rem;
    line-height: 1;
}
.event-candidate-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.05em;
}

.event-candidate-preview {
    margin-bottom: 0.5rem;
}
.event-candidate-bg {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-candidate-speaker {
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.event-candidate-action {
    text-align: right;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7c3aed;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.event-candidate-card:active .event-candidate-action {
    opacity: 1;
}

/* 选中/未选中状态 */
.event-candidate-selected {
    border-color: #7c3aed !important;
    box-shadow: 0 0 20px rgba(124,58,237,0.3), 0 4px 12px rgba(124,58,237,0.15);
}
.event-candidate-selected::before { opacity: 1; }

.event-candidate-dimmed {
    filter: grayscale(0.5);
}

.event-candidates-tip {
    text-align: center;
    padding: 0.8rem 1rem 0.3rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* ========== 结局相关卡牌突出设计（桌面端） ========== */
.event-candidate-ending {
    border-color: rgba(245,158,11,0.6) !important;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(251,191,36,0.18), rgba(245,158,11,0.1)) !important;
    box-shadow: 0 0 12px rgba(245,158,11,0.2), 0 2px 8px rgba(245,158,11,0.1), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: ending-card-glow 2s ease-in-out infinite;
}
.event-candidate-ending::before {
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(251,191,36,0.25)) !important;
}
.event-candidate-ending::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(245,158,11,0.7), rgba(251,191,36,0.4), rgba(245,158,11,0.7)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.event-candidate-ending .event-candidate-emoji {
    animation: ending-emoji-shine 2.5s ease-in-out infinite;
}
.event-candidate-ending .event-candidate-action {
    color: #d97706 !important;
    font-weight: 700;
}
.event-candidate-ending-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #d97706;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.22));
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    margin-left: auto;
    letter-spacing: 0.03em;
    animation: badge-pulse 2.5s ease-in-out infinite;
    white-space: nowrap;
}

/* 桌面端hover */
@media (hover: hover) {
    .event-candidate-card:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .event-candidate-card:hover::before { opacity: 1; }
    .event-candidate-card:hover .event-candidate-action { opacity: 1; }
    .event-candidate-ending:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 0 24px rgba(245,158,11,0.35), 0 8px 28px rgba(245,158,11,0.15) !important;
        border-color: rgba(245,158,11,0.8) !important;
    }
}

/* ========================================================================
   角色状态气泡 & 头像场景装饰 — 女性柔美风格
   ======================================================================== */

/* 角色场景容器（包裹头像+气泡+装饰） */
.char-avatar-scene {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 2px 2px 2px;
    width: 100%;
}

/* ---- 状态气泡 ---- */
.char-mood-bubble {
    position: absolute;
    top: -6px;
    right: -18px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px 5px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    z-index: 10;
    animation: bubbleFloat 3s ease-in-out infinite, bubbleFadeIn 0.5s ease-out;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.char-mood-bubble .mood-emoji {
    font-size: 0.9rem;
    line-height: 1;
}
.char-mood-bubble .mood-text {
    line-height: 1.2;
}
/* 气泡小尾巴 */
.mood-bubble-tail {
    position: absolute;
    bottom: -5px;
    left: 22px;
    width: 10px;
    height: 10px;
    border-radius: 0 0 0 3px;
    transform: rotate(-30deg) skewX(-15deg);
    z-index: -1;
}

/* 心情等级配色 */
.mood-great {
    background: linear-gradient(135deg, rgba(167,243,208,0.85), rgba(110,231,183,0.75));
    border: 1.5px solid rgba(52,211,153,0.4);
    color: #065f46;
}
.mood-great .mood-bubble-tail {
    background: rgba(110,231,183,0.75);
}
.mood-good {
    background: linear-gradient(135deg, rgba(196,181,253,0.8), rgba(221,214,254,0.7));
    border: 1.5px solid rgba(167,139,250,0.4);
    color: #5b21b6;
}
.mood-good .mood-bubble-tail {
    background: rgba(221,214,254,0.7);
}
.mood-ok {
    background: linear-gradient(135deg, rgba(253,230,138,0.8), rgba(252,211,77,0.65));
    border: 1.5px solid rgba(251,191,36,0.4);
    color: #92400e;
}
.mood-ok .mood-bubble-tail {
    background: rgba(252,211,77,0.65);
}
.mood-warn {
    background: linear-gradient(135deg, rgba(254,215,170,0.85), rgba(253,186,116,0.75));
    border: 1.5px solid rgba(251,146,60,0.4);
    color: #9a3412;
}
.mood-warn .mood-bubble-tail {
    background: rgba(253,186,116,0.75);
}
.mood-bad {
    background: linear-gradient(135deg, rgba(254,202,202,0.85), rgba(252,165,165,0.75));
    border: 1.5px solid rgba(248,113,113,0.4);
    color: #991b1b;
}
.mood-bad .mood-bubble-tail {
    background: rgba(252,165,165,0.75);
}
.mood-tip {
    background: linear-gradient(135deg, rgba(224,231,255,0.85), rgba(199,210,254,0.7));
    border: 1.5px solid rgba(129,140,248,0.35);
    color: #3730a3;
}
.mood-tip .mood-bubble-tail {
    background: rgba(199,210,254,0.7);
}

/* 气泡浮动动画 */
@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes bubbleFadeIn {
    0% { opacity: 0; transform: translateY(8px) scale(0.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- 装饰元素 ---- */
.avatar-deco {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}
/* 闪烁星星 */
.avatar-deco-star {
    top: 6px;
    left: -8px;
    font-size: 14px;
    color: rgba(251,191,36,0.7);
    animation: decoTwinkle 2.5s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(251,191,36,0.3);
}
/* 小圆点 */
.avatar-deco-dot {
    bottom: 16px;
    left: -12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(249,168,212,0.6);
    animation: decoFloat 3.5s ease-in-out infinite 0.5s;
    box-shadow: 0 0 8px rgba(249,168,212,0.3);
}
/* 小圆环 */
.avatar-deco-ring {
    top: 10px;
    right: -14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(192,132,252,0.45);
    animation: decoFloat 4s ease-in-out infinite 1s;
}

@keyframes decoTwinkle {
    0%, 100% { opacity: 0.5; transform: scale(0.85) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}
@keyframes decoFloat {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* ---- 头像边框增强（柔美渐变） ---- */
.char-avatar-scene .char-avatar-wrapper {
    border: 2.5px solid transparent;
    background-clip: padding-box;
    position: relative;
}
.char-avatar-scene .char-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(249,168,212,0.45), rgba(192,132,252,0.4), rgba(129,140,248,0.35));
    z-index: -1;
    opacity: 0.7;
    animation: borderShimmer 4s ease-in-out infinite;
}
@keyframes borderShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.85; }
}

/* ---- 行动按钮区美化（更柔和的配色） ---- */
.start-action-circle-btn-lg {
    background: linear-gradient(145deg, #c4b5fd, #d8b4fe, #f0abfc) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(139,92,246,0.28), 0 2px 8px rgba(192,132,252,0.2) !important;
}
.start-action-circle-btn-lg:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(139,92,246,0.2) !important;
}
.start-action-ring-lg {
    border-color: rgba(139,92,246,0.25) !important;
}
/* ---- XL行动按钮美化 ---- */
.start-action-circle-btn-xl {
    background: linear-gradient(145deg, #c4b5fd, #d8b4fe, #f0abfc) !important;
    border: none !important;
    box-shadow: 0 6px 28px rgba(139,92,246,0.32), 0 3px 12px rgba(192,132,252,0.22) !important;
    animation: circleBtnGradient 3s ease infinite, circleBtnPulseSoft 2s ease-in-out infinite !important;
}
.start-action-circle-btn-xl:active {
    transform: scale(0.93) !important;
    box-shadow: 0 2px 12px rgba(192,132,252,0.18) !important;
}
.start-action-ring-xl {
    border-color: rgba(192,132,252,0.18) !important;
}
.char-avatar-scene + .char-gender-toggle .gender-btn {
    border-radius: 12px;
    border: 1.5px solid rgba(249,168,212,0.25);
    background: rgba(255,255,255,0.65);
    transition: all 0.25s ease;
}
.char-avatar-scene + .char-gender-toggle .gender-btn.active {
    border-color: rgba(249,168,212,0.5);
    background: linear-gradient(135deg, rgba(249,168,212,0.12), rgba(192,132,252,0.08));
    box-shadow: 0 2px 10px rgba(249,168,212,0.18);
}

/* ---- hero-action-sub提示文字美化 ---- */
.hero-action-sub {
    color: #a78bfa !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

/* ===== 关于游戏 - 右上角按钮 ===== */
.cover-about-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: rgba(139, 92, 246, 0.45);
    border: 1.5px solid rgba(200, 180, 255, 0.7);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.cover-about-link:hover {
    background: rgba(139, 92, 246, 0.6);
    border-color: rgba(220, 200, 255, 0.9);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}
.cover-about-link:active {
    transform: scale(0.96);
    opacity: 0.85;
}
.cover-about-link .cover-about-icon {
    font-size: 0.85rem;
    line-height: 1;
}
.cover-about-link span {
    font-size: 0.82rem;
    color: #ffffff;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(100, 50, 200, 0.7), 0 0 10px rgba(139, 92, 246, 0.4);
}

/* ===== 关于游戏弹窗 ===== */
.about-game-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 27, 58, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    transition: opacity 0.35s ease;
}
.about-game-overlay.hidden {
    display: none;
}
.about-game-overlay.fade-out {
    opacity: 0;
}
.about-game-modal {
    position: relative;
    width: 90%;
    max-width: 340px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 24px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.08);
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.5rem 1.5rem;
}
.about-game-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1;
}
.about-game-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}
.about-game-content {
    text-align: center;
}
.about-game-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.about-game-text {
    margin-bottom: 1.25rem;
}
.about-game-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}
.about-game-text p:last-child {
    margin-bottom: 0;
}
.about-game-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.about-game-qr img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.about-game-qr-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
}
.about-game-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}
.about-game-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-game-footer p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}
