/* ========================================================
   牧神引擎 V3.0 - 终极完全体内置 CSS 核心包 (绝对无删减)
   包含：界面美化、表格重构、粉红发光正文、全屏突破级特效
   ======================================================== */

/* ================= 突破级全屏背景发生器 ================= */
/* 强制突破聊天框限制，铺满整个视口 */
.global-bg-layer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -9999 !important; /* 强制沉底 */
    pointer-events: none !important; /* 绝对防穿透，不影响点击按钮 */
    background-color: #030005 !important; /* 极渊黑底色覆盖 */
}

/* 底部深渊业火特效 (Hellfire) */
.hellfire-layer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60vh !important; /* 覆盖屏幕下半截 */
    background: linear-gradient(to top, rgba(255, 0, 85, 0.45) 0%, rgba(139, 0, 48, 0.15) 50%, transparent 100%) !important;
    filter: blur(15px) !important;
    animation: firePulse 4s ease-in-out infinite alternate !important;
}

@keyframes firePulse {
    0% { opacity: 0.6; transform: translateY(10vh) scaleY(0.9); }
    100% { opacity: 1; transform: translateY(0) scaleY(1.1); }
}

/* 纯 CSS 海量修真灵气粒子 (径向渐变黑魔法) */
.particle-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 200vh !important; /* 双倍高度无缝滚动 */
    background-image: 
        radial-gradient(2.5px 2.5px at 10% 20%, #ff0055 50%, transparent),
        radial-gradient(3.5px 3.5px at 30% 50%, #00ffcc 50%, transparent),
        radial-gradient(1.5px 1.5px at 40% 10%, #ff0055 50%, transparent),
        radial-gradient(2.5px 2.5px at 60% 80%, #ff99bb 50%, transparent),
        radial-gradient(4.5px 4.5px at 80% 40%, #ff0055 50%, transparent),
        radial-gradient(2px 2px at 90% 90%, #00ffcc 50%, transparent),
        radial-gradient(2.5px 2.5px at 20% 70%, #ff0055 50%, transparent),
        radial-gradient(3.5px 3.5px at 50% 30%, #ff99bb 50%, transparent),
        radial-gradient(1.5px 1.5px at 70% 10%, #ff0055 50%, transparent),
        radial-gradient(3px 3px at 85% 75%, #ff0055 50%, transparent) !important;
    background-size: 120px 120px !important;
    animation: particleUp 20s linear infinite !important;
    opacity: 0.7 !important;
}

/* 第二层粒子：景深差错落感 */
.particle-layer.layer2 {
    background-size: 200px 200px !important;
    animation: particleUp 15s linear infinite !important;
    opacity: 0.9 !important;
    filter: blur(1.5px) !important;
    transform-origin: center;
    transform: rotate(180deg);
}

@keyframes particleUp {
    0% { background-position: 0 0; }
    100% { background-position: 0 -100vh; }
}

/* ================= 聊天气泡界面 UI 美化 ================= */

/* 手风琴折叠面板基底 */
details {
    background: rgba(10, 0, 5, 0.8) !important;
    border: 1px solid rgba(255, 0, 85, 0.3) !important;
    border-radius: 8px !important;
    margin-bottom: 18px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(4px) !important;
}

details[open] {
    border-color: #ff0055 !important;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.25), 0 0 10px rgba(255, 0, 85, 0.15) inset !important;
}

summary {
    background: linear-gradient(90deg, rgba(40, 0, 20, 0.95), rgba(15, 0, 5, 0.95)) !important;
    padding: 15px 20px !important;
    font-weight: 900 !important;
    color: #ff99bb !important;
    cursor: pointer !important;
    list-style: none !important;
    border-bottom: 1px solid transparent !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.5) !important;
    transition: 0.3s !important;
    user-select: none !important;
}

summary::-webkit-details-marker {
    display: none !important;
}

summary:hover {
    background: linear-gradient(90deg, rgba(70, 0, 35, 0.95), rgba(20, 0, 10, 0.95)) !important;
    color: #ff0055 !important;
    text-shadow: 0 0 15px #ff0055 !important;
}

details[open] summary {
    border-bottom: 1px solid #ff0055 !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055 !important;
}

/* 顶部情报状态栏 */
.top-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    background: rgba(20, 0, 10, 0.9) !important;
    border-bottom: 2px solid #ff0055 !important;
    padding: 15px !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 0 5px 20px rgba(255, 0, 85, 0.3) !important;
    margin-bottom: 20px !important;
    backdrop-filter: blur(8px) !important;
}

.tb-item {
    color: #00ffcc !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-shadow: 0 0 8px rgba(0, 255, 204, 0.6) !important;
    background: rgba(0, 255, 204, 0.1) !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    border: 1px dashed #00ffcc !important;
    transition: 0.3s !important;
}

.tb-item:hover {
    background: rgba(0, 255, 204, 0.25) !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5) !important;
    transform: translateY(-2px) !important;
}

.tb-item b {
    color: #ffffff !important;
    text-shadow: 0 0 5px #ffffff !important;
}

/* ================= 极道修真正文气泡框 ================= */
.story-bubble {
    background: rgba(10, 0, 5, 0.95) !important;
    border: 2px solid #ff0055 !important;
    border-radius: 8px !important;
    padding: 25px !important;
    color: #ffffff !important; /* 强制纯白字体 */
    font-size: 16px !important;
    line-height: 2.0 !important;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.25) inset, 0 8px 20px rgba(0, 0, 0, 0.9) !important;
    margin-bottom: 25px !important;
    text-shadow: 0 0 3px #000000 !important;
    backdrop-filter: blur(5px) !important;
}

/* 强制覆盖内部段落颜色，防止平台样式污染 */
.story-bubble p {
    color: #ffffff !important;
    margin-bottom: 18px !important;
}

/* ================= 硬核表格重塑 ================= */
table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
    border: 1px solid #550022 !important;
}

th {
    background: rgba(255, 0, 85, 0.2) !important;
    color: #ff99bb !important;
    padding: 14px !important;
    font-size: 14px !important;
    border: 1px solid rgba(255, 0, 85, 0.4) !important;
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.8) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

td {
    padding: 12px 14px !important;
    font-size: 13px !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    line-height: 1.7 !important;
}

tr:hover td {
    background: rgba(255, 0, 85, 0.15) !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px #ff0055 !important;
}

/* ================= 情报网面板与呼吸灯 ================= */
.panel {
    padding: 20px !important;
    background: rgba(5, 0, 2, 0.7) !important;
}

.panel p {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    color: #cccccc !important;
    line-height: 1.8 !important;
}

.panel b {
    color: #00ffcc !important;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5) !important;
}

/* 大盘高亮呼吸动画 */
@keyframes pulseText {
    0% { text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc; transform: scale(1); }
    100% { text-shadow: 0 0 15px #00ffcc, 0 0 30px #00ffcc, 0 0 5px #ffffff; transform: scale(1.05); }
}

.intel-panel b {
    display: inline-block !important;
    animation: pulseText 1.5s infinite alternate !important;
}

/* ================= 底部行动接口按钮 ================= */
.action-panel {
    background: rgba(15, 0, 5, 0.95) !important;
    border: 1px dashed #ff0055 !important;
    padding: 25px !important;
    border-radius: 8px !important;
    margin-top: 30px !important;
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.15) inset !important;
}

.action-item {
    background: rgba(255, 0, 85, 0.08) !important;
    border: 1px solid rgba(255, 0, 85, 0.5) !important;
    padding: 15px 20px !important;
    margin-bottom: 15px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.action-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 85, 0.3), transparent) !important;
    transition: 0.5s !important;
}

.action-item:hover {
    background: rgba(255, 0, 85, 0.2) !important;
    border-color: #ff0055 !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5) !important;
    transform: translateX(10px) !important;
}

.action-item:hover::before {
    left: 100% !important;
}

.action-item p {
    margin: 0 !important;
    color: #ff99bb !important;
    font-size: 15px !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
}

.action-item:hover p {
    color: #ffffff !important;
    text-shadow: 0 0 10px #ff0055 !important;
}

/* ================= 暗箱运算代码折叠 (防止出戏) ================= */
.think-panel summary {
    background: #050505 !important;
    color: #555555 !important;
    text-shadow: none !important;
    font-size: 12px !important;
    border-bottom: none !important;
    padding: 8px 15px !important;
}
.think-panel summary:hover {
    color: #888888 !important;
    background: #0a0a0a !important;
}
.think-panel think {
    display: block !important;
    padding: 15px !important;
    color: #666666 !important;
    font-family: monospace !important;
    font-size: 12px !important;
    background: #020202 !important;
    border-top: 1px dashed #222222 !important;
    line-height: 1.6 !important;
}