/* 容器与基础样式 */
.fy-wrapper {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    padding: 10px;
    background: #fdfdfd;
}

/* 状态栏通用样式 */
.fy-s-box {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.fy-s-box summary {
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fy-s-box summary::after {
    content: '▼';
    font-size: 10px;
    transition: 0.3s;
}

.fy-s-box[open] summary::after {
    transform: rotate(180deg);
}

/* 不同模块的配色 */
.s-yellow { background: #fffdf0; border-left: 5px solid #ffcc00; }
.s-yellow summary { color: #856404; background: #fff9db; }

.s-blue { background: #f0f7ff; border-left: 5px solid #007bff; }
.s-blue summary { color: #004085; background: #e7f1ff; }

.s-green { background: #f6fff8; border-left: 5px solid #28a745; }
.s-green summary { color: #155724; background: #d4edda; }

.s-wx { background: #ededed; border-left: 5px solid #07c160; }
.s-wx summary { color: #07c160; background: #ffffff; }

/* 内容区域样式 */
.s-content {
    padding: 12px;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
}

.s-content span {
    color: #000;
    font-weight: 500;
    margin-right: 5px;
    display: inline-block;
}

.npc-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

/* 微信聊天模拟 */
.wx-container {
    padding: 10px;
    background: #ededed;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wx-msg {
    display: flex;
    gap: 8px;
    max-width: 90%;
}

.msg-left { align-self: flex-start; }
.msg-right { align-self: flex-end; justify-content: flex-end; }

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background: #fff;
}

.bubble-wrap {
    display: flex;
    flex-direction: column;
}

.nickname {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.bubble {
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
    color: #000;
    word-break: break-all;
}

.bubble::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 10px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #fff;
}

.bubble-me {
    background: #95ec69;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
    color: #000;
}

.bubble-me::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 10px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid #95ec69;
}

/* 正文美化 */
.main-story-text {
    display: block;
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 15px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    white-space: pre-wrap;
}