    /* 汉代漆器风格卡片 - 兼容版CSS */
.han-card, .han-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "STSong", "SimSun", "FangSong", "仿宋", "楷体", serif;
    text-align: left;
}

.han-card {
    max-width: 900px;
    width: 100%;
    margin: 20px auto;
    display: block;
    clear: both;
    
    background: linear-gradient(135deg, #2b1f1f 0%, #1a1414 100%);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border: 2px solid #5a4a3a;
    z-index: 1;
}

/* GAL对话区域 */
.gal-scene {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: none;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.gal-scene .portrait-img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #fff;
    position: relative;
    top: 20px;
    transition: transform 0.3s ease;
}

.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;
    border-bottom: none;
}

.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;
}

/* CG场景区域 */
.cg-scene {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2b1f1f 0%, #1a1414 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.cg-scene .cg-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 叙述文本区域 */
.narrative-area {
    padding: 25px;
    background: linear-gradient(135deg, #2b1f1f 0%, #1a1414 100%);
    min-height: 80px;
    border-bottom: 1px solid #5a4a3a;
}

.narrative-text {
    font-size: 17px;
    line-height: 1.8;
    color: #c9b896;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 选择按钮区域 */
.choices-area {
    padding: 20px 25px;
    background: #f0ebe0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    background: white;
    border: 2px solid #8b4513;
    color: #5a4a3a;
    padding: 12px 20px;
    border-radius: 0;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.choice-btn:hover {
    background: #8b4513;
    color: white;
    transform: translateX(5px);
}

/* 状态栏模块 */
.status-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    background: #fff;
}

.status-panel {
    flex: 1;
    background: #fafafa;
    border-radius: 0;
    padding: 15px;
    border-left: 4px solid #8b4513;
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.my-status { border-color: #8b4513; }
.linxue-status { border-color: #a0522d; }

.panel-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2a1a0a;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.info-row {
    display: flex;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

.info-label {
    color: #8b4513;
    width: 70px;
    font-weight: bold;
}

/* 记忆区竹简风格 */
.status-panel details {
    background: #F5F5DC;
    border: 1px solid #8b4513;
    padding: 15px;
    margin-top: 10px;
    color: #2a1a0a !important;
}

.status-panel summary {
    color: #8b4513 !important;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 8px;
}

/* 信息输入区域 */
.setup-area {
    background: #f0f0f0;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.setup-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.setup-label {
    width: 80px;
    font-size: 14px;
    color: #666;
}

.setup-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 14px;
    background: #fff;
}

.generate-btn {
    width: 100%;
    padding: 12px;
    background: #8b4513;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.generate-btn:hover { background: #a0522d; }

#config-output {
    display: none;
    margin-top: 10px;
    background: #fff;
    padding: 10px;
    border: 1px dashed #aaa;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    color: #333;
}

/* 对话颜色变色模块 */
em.linxue, .whisper.linxue {
    color: #cd5c5c !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

em.user, .whisper.user {
    color: #2a1a0a !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

em.other, .whisper.other {
    color: #DAA520 !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .gal-scene .portrait-img { height: 280px; }
    .han-card { margin: 10px auto; }
}
