/* =========================================
   1. 全局重置与基础风格 (纸张/古风质感)
   ========================================= */
* {
    font-family: "宋体", "SimSun", "楷体", "KaiTi", "微软雅黑", "Microsoft YaHei", sans-serif !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: color 0.2s ease, background-color 0.3s ease, border-color 0.3s ease !important;
}
body, .main-container {
    background: linear-gradient(135deg, #f8f4e9 0%, #e8f4f8 50%, #f0f8f0 100%) !important;
    color: #5d4037 !important;
    font-family: "宋体", "SimSun", serif !important;
    line-height: 1.6 !important;
    padding: 15px !important;
    margin: 0 !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    position: relative !important;
}
body::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: 
        radial-gradient(#a1887f 0.5px, transparent 0.5px),
        radial-gradient(#a1887f 0.5px, transparent 0.5px) !important;
    background-size: 20px 20px !important;
    background-position: 0 0, 10px 10px !important;
    opacity: 0.03 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
/* 标题样式 */
h1, h2, h3, h4 {
    color: #8b7355 !important;
    border-bottom: 2px solid #a1887f !important;
    padding-bottom: 8px !important;
    margin-top: 20px !important;
    margin-bottom: 16px !important;
    font-family: "楷体", "KaiTi", serif !important;
    text-shadow: 1px 1px 2px rgba(139, 115, 85, 0.1) !important;
}
/* =========================================
   3. 内容块与小说样式
   ========================================= */
.content-block {
    background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%) !important;
    border-left: 4px solid #a1887f !important;
    padding: 20px !important;
    margin: 16px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 15px rgba(139, 115, 85, 0.1), 0 1px 3px rgba(0,0,0,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}
.content-block::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(161, 136, 127, 0.3), transparent) !important;
}
.dialogue {
    color: #e65100 !important;
    font-weight: bold !important;
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.4) 0%, rgba(255, 245, 220, 0.6) 100%) !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border-left: 3px solid #ff9800 !important;
    margin: 8px 0 !important;
    font-family: "楷体", "KaiTi", serif !important;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.1) !important;
    position: relative !important;
}
.dialogue::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: -3px !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 70% !important;
    background: linear-gradient(to bottom, transparent, #ff9800, transparent) !important;
    border-radius: 2px !important;
}
.options-list {
    list-style: none !important;
    padding: 0 !important;
}
.options-list li {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    margin: 8px 0 !important;
    padding: 14px !important;
    border: 2px solid #a1887f !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.08), inset 0 1px 0 rgba(255,255,255,0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}
.options-list li::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(161, 136, 127, 0.1) 0%, transparent 50%, rgba(161, 136, 127, 0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}
.options-list li:hover {
    transform: translateY(-3px) !important;
    border-color: #8b7355 !important;
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.15), inset 0 1px 0 rgba(255,255,255,0.9) !important;
    background: #f1f8e9 !important;
}
.options-list li:hover::before {
    opacity: 1 !important;
}
/* =========================================
   4. 微信/终端聊天界面
   ========================================= */
.pc-wx-wrapper {
    display: flex !important;
    width: 100% !important;
    height: 550px !important;
    background-color: #f5f5f5 !important;
    border: 1px solid rgba(214, 214, 214, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08) !important;
    font-family: "Microsoft YaHei", sans-serif !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 15px !important;
}
.pc-wx-wrapper::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent) !important;
    z-index: 25 !important;
}
/* 隐藏的 Radio */
.pc-wx-wrapper input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}
/* 左侧侧边栏 */
.wx-sidebar {
    width: 220px !important;
    background: linear-gradient(135deg, #2e2e2e 0%, #3a3a3a 100%) !important;
    border-right: 1px solid rgba(0,0,0,0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    z-index: 20 !important;
    position: relative !important;
}
.wx-sidebar::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 1px !important;
    height: 100% !important;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3), transparent) !important;
}
.wx-sidebar-top {
    padding: 15px 10px !important;
    background-color: #eee !important;
    font-size: 12px !important;
    color: #999 !important;
    border-bottom: 1px solid #dcdcdc !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
}
.wx-user-item {
    display: flex !important;
    align-items: center !important;
    padding: 15px 12px !important;
    cursor: pointer !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    user-select: none !important;
}
.wx-user-item:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%) !important;
    transform: translateX(2px) !important;
}
.wx-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: linear-gradient(45deg, #999, #bbb) !important;
    margin-right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}
.wx-avatar::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.1) 100%) !important;
}
.wx-avatar.sys { background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important; }
.wx-avatar.girl { background: linear-gradient(135deg, #F472B6, #DB2777) !important; }
.wx-info {
    flex: 1 !important;
    overflow: hidden !important;
    min-width: 0 !important;
    pointer-events: none !important;
}
.wx-name {
    display: block !important;
    font-size: 14px !important;
    color: #fff !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.wx-preview {
    display: block !important;
    font-size: 12px !important;
    color: #999 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
/* 右侧聊天主窗口 */
.wx-main {
    flex: 1 !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f2f5 100%) !important;
    display: none !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}
.wx-header {
    height: 50px !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #f8f9fa 100%) !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    position: relative !important;
}
.wx-header-title {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #000 !important;
}
.wx-header-opts {
    color: #999 !important;
    font-size: 20px !important;
    letter-spacing: 3px !important;
}
.wx-scroll-area {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f2f5 100%) !important;
    overscroll-behavior: contain !important;
}
.wx-scroll-area::-webkit-scrollbar { width: 6px !important; }
.wx-scroll-area::-webkit-scrollbar-track { background: rgba(0,0,0,0.03) !important; border-radius: 3px !important; }
.wx-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c8c8c8, #b0b0b0) !important;
    border-radius: 3px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
.wx-scroll-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #a8a8a8, #909090) !important;
}
.wx-input-area {
    height: auto !important;
    min-height: 50px !important;
    border-top: 1px solid rgba(0,0,0,0.08) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fcfcfc 100%) !important;
    padding: 10px 15px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.03) !important;
}
.wx-tools {
    color: #7f7f7f !important;
    margin-bottom: 5px !important;
    font-size: 18px !important;
}
.wx-fake-input {
    color: #ccc !important;
    font-size: 13px !important;
    height: 30px !important;
    background: linear-gradient(135deg, #f0f0f0 0%, #f8f8f8 100%) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
    padding-left: 10px !important;
    line-height: 30px !important;
}
/* 气泡样式 */
.w-row {
    display: flex !important;
    margin-bottom: 15px !important;
    align-items: flex-start !important;
    animation: messageSlideIn 0.3s ease-out !important;
}
.w-row.center {
    justify-content: center !important;
    margin-bottom: 10px !important;
}
.w-time {
    background: linear-gradient(135deg, #dadada 0%, #c8c8c8 100%) !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    font-weight: 500 !important;
}
.w-av {
    width: 36px !important;
    height: 36px !important;
    border-radius: 4px !important;
    background: #ccc !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 12px !important;
}
.w-bub {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #000 !important;
    line-height: 1.5 !important;
    position: relative !important;
    max-width: 85% !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    word-wrap: break-word !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05) !important;
    position: relative !important;
    overflow: hidden !important;
}
.w-bub::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, transparent 30%, rgba(255,255,255,0.3) 100%) !important;
    pointer-events: none !important;
}
/* 三角 */
.w-row:not(.self) .w-bub::before {
    content: "" !important;
    position: absolute !important;
    left: -6px !important;
    top: 12px !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-right: 6px solid #ffffff !important;
}
.w-row.self {
    flex-direction: row-reverse !important;
}
.w-row.self .w-av {
    margin-right: 0 !important;
    margin-left: 10px !important;
    background: #e0e0e0 !important;
    color: #333 !important;
}
.w-row.self .w-bub {
    background: linear-gradient(135deg, #95ec69 0%, #7de64e 100%) !important;
    border-color: #78d247 !important;
}
.w-row.self .w-bub::before {
    content: "" !important;
    position: absolute !important;
    left: auto !important;
    right: -6px !important;
    top: 12px !important;
    border-left: 6px solid #95ec69 !important;
    border-right: none !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
}
/* 逻辑：选中 Radio 切换界面 */
#chat-1:checked ~ .wx-sidebar label[for="chat-1"],
#chat-2:checked ~ .wx-sidebar label[for="chat-2"],
#chat-3:checked ~ .wx-sidebar label[for="chat-3"] {
    background: linear-gradient(135deg, rgba(149, 236, 105, 0.15) 0%, rgba(149, 236, 105, 0.05) 100%) !important;
    border-left: 3px solid #95ec69 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1) !important;
}
/* 显示对应的聊天窗口 */
#chat-1:checked ~ .content-1,
#chat-2:checked ~ .content-2,
#chat-3:checked ~ .content-3 {
    display: flex !important;
    animation: fadeIn 0.3s ease !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes gentlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.wx-user-item:active {
    animation: gentlePulse 0.3s ease !important;
}
/* =========================================
   5. 手机端深度适配
   ========================================= */
@media (max-width: 768px) {
    .pc-wx-wrapper {
        height: 75vh !important;
        max-height: 600px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    /* 侧边栏变为窄图标栏 */
    .wx-sidebar {
        width: 65px !important;
        min-width: 65px !important;
        background-color: #2e2e2e !important;
        border-right: none !important;
        border-radius: 16px 0 0 16px !important;
        overflow-x: hidden !important;
    }
    .wx-sidebar-top {
        display: none !important;
    }
    .wx-user-item {
        padding: 15px 0 !important;
        justify-content: center !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        width: 100% !important;
        height: 65px !important;
    }
    #chat-1:checked ~ .wx-sidebar label[for="chat-1"],
    #chat-2:checked ~ .wx-sidebar label[for="chat-2"],
    #chat-3:checked ~ .wx-sidebar label[for="chat-3"] {
        background-color: #000000 !important;
        border-left: 3px solid #95ec69 !important;
    }
    .wx-info {
        display: none !important;
    }
    .wx-avatar {
        margin: 0 !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.4) !important;
        font-size: 14px !important;
    }
    /* 右侧聊天窗口 */
    .wx-main {
        width: calc(100% - 65px) !important;
        border-radius: 0 16px 16px 0 !important;
    }
    .wx-header {
        padding: 0 10px !important;
    }
    .wx-scroll-area {
        padding: 10px !important;
    }
    .w-bub {
        font-size: 13px !important;
        padding: 8px 10px !important;
        border-radius: 14px !important;
        line-height: 1.5 !important;
    }
    /* 底部输入区简化 */
    .wx-input-area {
        height: 50px !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center !important;
    }
    .wx-tools {
        display: none !important;
    }
    .wx-fake-input {
        margin: 0 !important;
        width: 100% !important;
        height: 34px !important;
        line-height: 34px !important;
        background: #f0f0f0 !important;
        padding-left: 10px !important;
        border-radius: 4px !important;
    }
}
/* =========================================
   6. 紧急修复：强制展开所有聊天窗口 (平铺模式)
   ========================================= */
.pc-wx-wrapper.force-expand {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}
.pc-wx-wrapper.force-expand .wx-sidebar,
.pc-wx-wrapper.force-expand .wx-sidebar-top,
.pc-wx-wrapper.force-expand input[name="wx-tab"] {
    display: none !important;
}
.pc-wx-wrapper.force-expand .wx-main {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 350px !important;
    margin-bottom: 30px !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    background-color: #f5f5f5 !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}
.pc-wx-wrapper.force-expand .wx-header {
    background: linear-gradient(to right, #f5f5f5, #fff) !important;
    border-radius: 12px 12px 0 0 !important;
}
.pc-wx-wrapper.force-expand .wx-scroll-area {
    overflow: visible !important;
    height: auto !important;
    flex: none !important;
}
/* =========================================
   7. 全局选项计数器
   ========================================= */
.markdown-body {
    counter-reset: option-counter;
}
pre {
    position: relative !important;
    margin: 15px 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 55px;
}
pre div[class*="border-b"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2;
    pointer-events: none;
}
pre div[class*="border-b"] > div:first-child {
    display: none !important;
}
pre div[data-tooltip-id] {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    pointer-events: auto;
    z-index: 3;
}
pre div[data-tooltip-id] .style_copyIcon__GJL9e {
    display: none !important;
}
pre div[node="[object Object]"] {
    position: relative;
    z-index: 1;
    display: block !important;
    pointer-events: none;
    background: #f5f5f5 !important;
    border: 2px solid #555555 !important;
    box-shadow: 4px 4px 0 #777777 !important;
    color: #333333 !important;
    font-family: "Kosugi Maru", sans-serif !important;
    font-size: 1.1em !important;
    padding: 10px 20px 10px 60px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 55px;
    white-space: pre-wrap;
    word-break: break-word;
    transition: all 0.3s ease;
    counter-increment: option-counter;
}
pre div[node="[object Object]"]::before {
    content: counter(option-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #555555;
    color: #f5f5f5;
    border-radius: 50%;
    font-size: 1em;
    font-weight: bold;
    border: 2px solid #f5f5f5;
    box-shadow: 1px 1px 0 #777777;
    z-index: 2;
}
pre div[node="[object Object]"] code {
    display: block;
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    white-space: pre-wrap;
}
pre:hover div[node="[object Object]"] {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #777777 !important;
    background: #e5e5e5 !important;
}
pre:active div[node="[object Object]"] {
    transform: translate(2px, 2px) !important;
    box-shadow: 1px 1px 0 #777777 !important;
    background: #d5d5d5 !important;
}
pre div[data-tooltip-id]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
    z-index: 4;
}
pre div[data-tooltip-id]:active::after {
    content: '✅ 已复制';
    opacity: 1;
}
/* =========================================
   小红书风格样式 (已保留，均为浅色)
   ========================================= */
.xhs-post-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    padding: 15px;
    max-width: 500px;
    color: #333;
}
.xhs-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.xhs-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    border: 1px solid #eee;
}
.xhs-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xhs-post-user {
    flex-grow: 1;
}
.xhs-post-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}
.xhs-post-time {
    font-size: 12px;
    color: #999;
}
.xhs-post-follow {
    background-color: #ff2d55;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.xhs-post-content {
    margin-bottom: 15px;
}
.xhs-post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
}
.xhs-post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    white-space: pre-wrap;
}
.xhs-post-tags {
    margin-top: 10px;
    font-size: 13px;
}
.xhs-post-tags span {
    display: inline-block;
    background-color: #f0f0f0;
    color: #888;
    padding: 4px 8px;
    border-radius: 5px;
    margin-right: 7px;
    margin-bottom: 7px;
}
.xhs-post-stats {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.xhs-post-stats span {
    display: flex;
    align-items: center;
}
.xhs-post-stats span::before {
    margin-right: 5px;
    font-size: 16px;
}
.xhs-post-stats span:nth-child(1)::before {
    content: "🔥";
}
.xhs-post-stats span:nth-child(2)::before {
    content: "❤️";
}
.xhs-post-stats span:nth-child(3)::before {
    content: "⭐";
}
.xhs-post-stats span:nth-child(4)::before {
    content: "💬";
}
.xhs-comments-section {
    margin-top: 15px;
}
.xhs-comment-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}
.xhs-comment-item {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.xhs-comment-item .c-name {
    font-weight: bold;
    color: #555;
}
.xhs-comment-item .c-text {
    color: #444;
}
/* Chat Window CSS (小红书聊天窗口，保留浅色) */
.xhs-chat-window {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    max-width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}
.chat-back {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}
.chat-title {
    flex-grow: 1;
    text-align: center;
}
.chat-menu {
    font-size: 20px;
    margin-left: 15px;
    cursor: pointer;
}
.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.chat-time {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 10px 0;
}
.chat-msg {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-end;
}
.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.4;
}
.msg-left .msg-avatar {
    margin-right: 8px;
}
.msg-left .msg-bubble {
    background-color: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.msg-right {
    justify-content: flex-end;
}
.msg-right .msg-avatar {
    margin-left: 8px;
}
.msg-right .msg-bubble {
    background-color: #ff2d55;
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.chat-input-area {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
}
.chat-input-fake {
    flex-grow: 1;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 10px 15px;
    color: #999;
    font-size: 15px;
    cursor: text;
}
.chat-icon {
    font-size: 24px;
    color: #ff2d55;
    margin-left: 10px;
    cursor: pointer;
}
/* =========================================
   场景相关样式 (全部改为浅色)
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333; /* 深色文字 */
    background: #f9f9f9; /* 浅灰背景 */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
/* Scene Header */
.scene-header {
    background: linear-gradient(135deg, #f0f0f0, #ffffff);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
    font-size: 1.1em;
}
.scene-header b {
    color: #d45a4a; /* 保留暖色点缀 */
}
/* Main Content Area */
.main-content {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 30px auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
/* Dialogue Styles */
.user-dialogue, .partner-dialogue, .npc-dialogue, .inner-thought {
    margin: 15px 0;
    padding: 12px 18px;
    border-radius: 10px;
    position: relative;
    font-size: 1.05em;
    line-height: 1.7;
}
.user-dialogue {
    background-color: #f5f5f5;
    color: #333;
    border-left: 4px solid #6cb6ff;
}
.partner-dialogue {
    background-color: #f5f5f5;
    color: #333;
    border-left: 4px solid #ff9a8d;
}
.npc-dialogue {
    background-color: #f5f5f5;
    color: #333;
    border-left: 4px solid #8e8e8e;
}
.inner-thought {
    background-color: #ececec;
    color: #555;
    font-style: italic;
    border-left: 4px solid #ffdb58;
}
/* Action Box */
.action-box {
    background: linear-gradient(45deg, #f9f9f9, #ffffff);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
}
.action-box b {
    color: #d45a4a;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: block;
}
.action-box ol {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
}
.action-box li {
    margin-bottom: 8px;
    font-size: 1em;
    color: #555;
}
.action-box li b {
    color: #d45a4a;
    font-size: 1em;
    display: inline;
}
/* NTR Status Panel */
.ntr-status {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 12px;
    padding: 20px 25px;
    margin-top: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #333;
}
.ntr-status-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #d45a4a;
    margin-bottom: 15px;
    text-align: center;
}
.ntr-status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95em;
}
.ntr-status-row span {
    flex: 1;
    text-align: center;
}
.ntr-status-row b {
    color: #d45a4a;
}
/* Details/Summary for Status and Memory */
details {
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
summary {
    cursor: pointer;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #d45a4a;
    background-color: #f0f0f0;
    border-radius: 12px;
    user-select: none;
    outline: none;
}
summary:hover {
    background-color: #e0e0e0;
}
.status-details {
    padding: 15px 20px;
    color: #555;
    font-size: 0.95em;
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.status-grid div {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.status-grid b {
    color: #d45a4a;
}
.body-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.body-tag {
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #d45a4a;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.memory-item {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}
.memory-item:last-child {
    border-bottom: none;
}
.memory-item b {
    color: #d45a4a;
}
hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}