/* ===================================
   末日系统主容器：废土PDA终端
=================================== */
yx {
    display: block;
    background-color: #0b0c10; /* 更深邃的深渊黑 */
    /* 模拟微弱的终端屏幕扫描线 */
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px);
    color: #c5c6c7;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    padding: 14px;
    border: 1px solid #1f2833;
    border-radius: 6px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(20, 20, 20, 0.8);
    line-height: 1.6;
}

/* ===================================
   正文与剧情表现类
=================================== */
.roco-story {
    display: block;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.5px;
    padding: 16px 18px;
    margin: 15px 0;
    /* 玻璃拟物化阅读背景 */
    background: linear-gradient(135deg, rgba(31, 40, 51, 0.8) 0%, rgba(11, 12, 16, 0.9) 100%);
    border-left: 4px solid #8b0000;
    border-right: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 4px 10px 10px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.char-dialogue {
    color: #f2a900; /* 末日琥珀金，更具穿透力 */
    font-weight: 600;
    text-shadow: 0 0 4px rgba(242, 169, 0, 0.25);
}

.inner-thought {
    color: #66b2ff; /* 冰蓝色，拉开情绪温差 */
    font-style: italic;
    opacity: 0.9;
}

/* 危险隔离带风格系统提示 */
.system-alert {
    display: block;
    background: repeating-linear-gradient(
        -45deg,
        rgba(139, 0, 0, 0.15),
        rgba(139, 0, 0, 0.15) 12px,
        rgba(0, 0, 0, 0.3) 12px,
        rgba(0, 0, 0, 0.3) 24px
    );
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-left: 5px solid #ff3333;
    padding: 12px 16px;
    margin: 15px 0;
    color: #ff6666;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.2);
}

/* ===================================
   状态栏 (折叠面板) 深度美化
=================================== */
.coser-panel {
    background: rgba(20, 24, 32, 0.6);
    border: 1px solid #232a35;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px); /* 磨砂玻璃效果 */
}

.coser-panel summary {
    background: linear-gradient(90deg, #181d26 0%, #11141a 100%);
    padding: 12px 14px;
    font-size: 14.5px;
    font-weight: bold;
    color: #b0c4de;
    cursor: pointer;
    border-left: 4px solid #455a64;
    user-select: none;
    outline: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.coser-panel summary:hover {
    background: #1f2633;
    color: #ffffff;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

.coser-panel[open] summary {
    border-bottom: 1px solid #2a3441;
    margin-bottom: 5px;
}

/* 文本与列表安全边距与防撞墙优化 */
.coser-panel p, .coser-panel div {
    padding: 0 14px 10px 14px;
    font-size: 13.5px;
    color: #a8b2c1;
}

.coser-panel ul, .coser-panel ol {
    padding-left: 30px; 
    padding-right: 14px;
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: #a8b2c1;
}

.coser-panel li {
    margin-bottom: 6px;
    line-height: 1.65;
    position: relative;
}

.coser-panel li::marker {
    color: #45f3ff; 
    font-size: 1.1em;
}

/* ===================================
   🚀 修复重构：科技感分类标签 <t>
=================================== */
t {
    display: block; /* 强制块级，解决手机端居中与计算乱飞的BUG */
    width: auto;
    box-sizing: border-box;
    /* 赛博朋克光带背景 */
    background: linear-gradient(90deg, rgba(69, 243, 255, 0.15) 0%, rgba(69, 243, 255, 0.02) 60%, transparent 100%);
    color: #45f3ff;
    font-size: 13.5px;
    font-weight: 800;
    padding: 6px 12px 6px 16px;
    margin: 16px 0 10px 0; /* 外部下压留白，无需水平边距 */
    border-left: 4px solid #45f3ff;
    border-bottom: 1px solid rgba(69, 243, 255, 0.1);
    border-radius: 0 4px 4px 0;
    text-shadow: 0 0 8px rgba(69, 243, 255, 0.4);
    text-align: left !important; /* 绝对禁止居中对齐 */
    position: relative;
    letter-spacing: 1px;
}
/* 装饰锚点 */
t::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: #ffffff;
    box-shadow: 0 0 5px #45f3ff;
    opacity: 0.8;
}

/* ===================================
   靶向面板主题色涂装
=================================== */
.scene-panel summary { border-left-color: #00ffaa; color: #ccffeb; }
.scene-panel[open] { border-color: rgba(0, 255, 170, 0.3); }

.memory-panel summary { border-left-color: #b000ff; color: #ebd1ff; }
.memory-panel[open] { border-color: rgba(176, 0, 255, 0.3); }

.player-panel summary, .comment-panel summary { border-left-color: #f2a900; color: #fff1cc; }
.player-panel[open], .comment-panel[open] { border-color: rgba(242, 169, 0, 0.3); }

.action-panel summary { border-left-color: #ff3333; color: #ffe6e6; }
.action-panel[open] { box-shadow: 0 0 10px rgba(255,51,51,0.1); border-color: rgba(255, 51, 51, 0.4); }

/* ===================================
   社交软件/网络论坛模拟器 UI
=================================== */
.sim-phone {
    background: #111216;
    border: 1px solid #333b47;
    border-radius: 12px;
    padding: 12px;
    margin: 18px auto;
    max-width: 100%;
    font-family: sans-serif;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), inset 0 0 10px rgba(255,255,255,0.02);
}
.sim-header {
    text-align: center;
    border-bottom: 1px solid #2a3441;
    padding-bottom: 10px;
    margin-bottom: 12px;
    color: #e0e6ed;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
}
.sim-msg-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.sim-name { font-size: 11px; color: #788796; margin-bottom: 4px; }
.sim-bubble {
    background: #1f2833;
    color: #d1d8e0;
    padding: 10px 14px;
    border-radius: 4px 14px 14px 14px;
    font-size: 14px;
    max-width: 88%;
    display: inline-block;
    border: 1px solid #2a3441;
    line-height: 1.5;
}
.sim-self { align-items: flex-end; }
.sim-self .sim-name { text-align: right; }
.sim-self .sim-bubble {
    background: #1a362b;
    color: #e6ffed;
    border-color: #264f3e;
    border-radius: 14px 4px 14px 14px;
}
.sim-forum-post { border-bottom: 1px dashed #333b47; padding: 10px 0; margin-bottom: 8px;}
.sim-forum-title { color: #f2a900; font-size: 15px; font-weight: bold; margin-bottom: 6px;}
.sim-forum-info { color: #788796; font-size: 12px;}

/* ===================================
   📱 移动端自适应收缩装甲
=================================== */
@media screen and (max-width: 768px) {
    yx {
        padding: 8px; /* 极致压榨屏幕空间 */
    }
    .roco-story {
        font-size: 14.5px;
        padding: 12px 14px;
        border-left-width: 3px;
    }
    .coser-panel summary {
        font-size: 14px;
        padding: 10px 12px;
    }
    .coser-panel p, .coser-panel div {
        padding: 0 10px 8px 10px;
        font-size: 13px;
    }
    .coser-panel ul, .coser-panel ol {
        font-size: 13px;
        padding-left: 24px;
        padding-right: 10px;
    }
    t {
        font-size: 13px;
        padding: 5px 10px 5px 12px;
        margin: 12px 0 8px 0; /* 绝对0左右边距，防溢出 */
    }
    .sim-phone {
        padding: 10px;
        border-radius: 8px;
    }
    .sim-bubble {
        font-size: 13.5px;
        padding: 8px 12px;
    }
}