        body, html {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    background-attachment: fixed !important;
}
/* 尝试让平台的外层容器透明，露出背景 */
body > div, main, article {
    background: transparent !important;
}

/* === 2. 核心卡片样式（参考偶像卡写法，解决字体颜色） === */
/* 关键点：在容器最外层直接定义字体颜色和背景，解决“白字隐形”问题 */
.linxue-card {
    max-width: 900px;
    width: 100%;
    margin: 20px auto !important;
    
    /* 核心修复：这里直接定调“白底黑字” */
    background: #FFFFFF !important;
    color: #333333 !important; /* 强制继承深灰色，不再依赖平台默认 */
    
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    line-height: 1.6;
    
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: block;
    clear: both;
}

/* 内部重置，确保不跑偏 */
.linxue-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* --- GAL对话区域 --- */
.gal-scene {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #FEFEF9; /* 立绘背景 */
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}
.gal-scene .portrait-img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #FEFEF9;
    position: relative;
    top: 30px;
}
.gal-scene .portrait-img:hover { animation: cute-bounce 0.8s ease-in-out infinite; }
@keyframes cute-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.dialog-box {
    position: relative;
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffb7c5;
    padding: 15px 20px;
    box-shadow: 0 -5px 15px rgba(255, 107, 157, 0.2);
    margin-top: -50px;
    z-index: 10;
    font-size: 15px;
    line-height: 1.7;
    border-radius: 8px 8px 0 0;
}
.speaker-tag { display: inline-block; background: #ff6b9d; color: #fff; padding: 4px 12px; font-size: 14px; font-weight: bold; border-radius: 15px; margin-bottom: 8px; }
.dialogue-text { color: #333; font-size: 16px; }

/* --- 叙述文本区域 (裸奔版) --- */
/* 关键：不再使用 p 标签，样式直接写在容器上，继承父级的黑色字体 */
.narrative-area {
    padding: 25px;
    background: #fff !important; 
    min-height: 80px;
    border-bottom: 1px solid #eee;
    
    /* 继承 .linxue-card 的黑色字体，确保显示 */
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap; /* 支持回车换行 */
}

/* --- 其他模块 --- */
.choices-area { padding: 20px 25px; background: #fafafa; display: flex; flex-direction: column; gap: 10px; }
.choice-btn { background: white; border: 2px solid #6c5ce7; color: #6c5ce7; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; text-align: left; transition: all 0.2s; }
.choice-btn:hover { background: #6c5ce7; color: white; transform: translateX(5px); }

/* 状态栏 (强制上下排列) */
.status-container { display: flex; flex-direction: column; padding: 20px; gap: 20px; background: #fff; }
.status-panel { width: 100%; background: #fafafa; border-radius: 8px; padding: 15px; border-top: 3px solid #ddd; }
.my-status { border-color: #6c5ce7; }
.linxue-status { border-color: #ff6b9d; }
.panel-title { font-weight: bold; margin-bottom: 10px; color: #333; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.info-row { display: flex; font-size: 13px; margin-bottom: 6px; color: #555; }
.info-label { color: #888; width: 60px; }

/* CG模块 */
.cg-scene { width: 100%; height: 400px; background: #FEFEF9; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.cg-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* 移动端适配 */
@media (max-width: 600px) {
    .gal-scene .portrait-img { height: 280px; }
    body { background: #f3e5f5 !important; }
}
/* --- 对话颜色变色模块 (轻量版) --- */

/* 1. 林雪 (粉色) */
em.linxue, 
.whisper.linxue {
    color: #ff6b9d !important; /* 粉色 */
    font-style: normal !important;
    font-weight: 600 !important;
}

/* 2. 主角/我 (蓝色) */
em.user, 
.whisper.user {
    color: #2196F3 !important; /* 蓝色 */
    font-style: normal !important;
    font-weight: 600 !important;
}

/* 3. 男2/配角 (紫色) */
em.other, 
.whisper.other {
    color: #9C27B0 !important; /* 紫色 */
    font-style: normal !important;
    font-weight: 600 !important;
}

/* 4. 旁白/环境音 (灰色/默认) */
/* 这里的样式是继承您原本的设置，如果需要特别指定可以取消注释 */
/*
em.narrator {
    color: #888 !important;
    font-style: italic !important;
}