.tw-text p {
    text-indent: 2em;
    margin: 14px 0;
    line-height: 1.95;
    font-size: 15.2px;
    color: #4a3c2f;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(139, 69, 19, 0.08);
    background: linear-gradient(to bottom, transparent, rgba(245, 236, 220, 0.4));
    padding: 2px 8px;
    border-radius: 2px;
}

/* 对话 - 樱红雅紫（日式温柔） */
.tw-text .f {
    color: #c05b7c;                     /* 樱花红调 */
    font-weight: 700;
    text-shadow: 0 0 12px rgba(192, 91, 124, 0.25);
}

.tw-text .f em {
    color: #9b4f6f;
    font-style: italic;
}

/* ===== 折叠面板 - 日式障子 + 磨砂 ===== */
details {
    margin: 12px 0;
    background: rgba(255, 248, 240, 0.75);   /* 和纸米白 */
    border: 1px solid #d2b48c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(6px);
}

details:hover {
    border-color: #c05b7c;
    box-shadow: 0 6px 20px rgba(192, 91, 124, 0.15);
}

details > summary {
    background: rgba(245, 236, 220, 0.9);
    color: #4a3c2f;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #d2b48c;
}

details[open] > summary {
    color: #9b2e4a;
    background: rgba(255, 240, 230, 0.95);
}

/* 记忆回廊 - 特殊樱色边框 */
details.star-memory {
    background: rgba(255, 240, 245, 0.7);
    border-color: #e8b4c8;
}

details.star-memory > summary {
    color: #c05b7c;
}

/* 行动推荐 - 淡竹绿 */
details.action {
    background: rgba(230, 245, 235, 0.8) !important;
    border-color: #8fbc8f !important;
}

details.action > summary {
    color: #2e5c4d !important;
}

/* 表格美化 - 日式木纹感 */
details table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13.8px;
    background: rgba(255, 248, 240, 0.6);
}

details th {
    background: #e8d5b8;
    color: #4a3c2f;
    padding: 10px;
    font-weight: 700;
    border-bottom: 2px solid #c05b7c;
}

details td {
    padding: 9px 12px;
    border-bottom: 1px solid #d2b48c;
}

details tr:hover td {
    background: rgba(192, 91, 124, 0.08);
}

/* 角色卡 - 和风卡片 */
.character-block {
    background: rgba(255, 248, 240, 0.85);
    border: 1px solid #d2b48c;
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.12);
}

/* 思维链 */
.chain-block {
    padding: 12px;
    margin: 10px 0;
    border-left: 4px solid #c05b7c;
    background: rgba(255, 240, 230, 0.7);
    border-radius: 0 6px 6px 0;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .tw-text p { font-size: 14.5px; line-height: 1.9; }
    details > summary { font-size: 13.5px; padding: 11px 16px; }
}