/* --- 基础容器设定 --- */
main-container {
    display: block;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f4f9f4; /* 极淡的薄荷底色 */
    color: #4a5c4a; /* 深灰绿字体，比纯黑更柔和 */
    padding: 12px;
    border-radius: 12px;
    line-height: 1.6;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0f2e0;
}

/* --- 顶部状态栏 (Status Bar) --- */
status-bar {
    display: block;
    /* 清新的渐变绿背景 */
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(86, 171, 47, 0.2);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 两列布局 */
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2); /* 半透明白底 */
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9em;
}

.status-item span {
    margin-right: 6px;
    font-size: 1.2em;
}

.status-item b {
    margin-right: 4px;
    color: #e8f5e9;
}

/* --- 正文区域 (Text Body) --- */
text-body {
    display: block;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 0 10px 10px 10px;
    margin-bottom: 20px;
    /* 左侧加一道绿色装饰线 */
    border-left: 5px solid #66bb6a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

text-body p {
    margin-bottom: 10px;
    text-align: justify; /* 两端对齐，阅读体验更好 */
}

/* --- 底部区域 (Post Status) --- */
post-status {
    display: block;
}

/* 心声区域 - 像便利贴一样的感觉 */
.thoughts-section {
    background-color: #e8f5e9; /* 浅绿底 */
    border: 1px dashed #81c784; /* 虚线边框 */
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #2e7d32;
    font-style: italic;
    font-size: 0.95em;
}

.thoughts-section h3 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    text-align: center;
    opacity: 0.8;
}

/* --- 折叠面板 (Details & Summary) --- */
details {
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #c8e6c9;
    overflow: hidden;
    transition: all 0.3s ease;
}

summary {
    background-color: #f1f8e9;
    color: #388e3c;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    outline: none;
    position: relative;
    list-style: none; /* 隐藏默认三角 */
}

/* 自定义折叠箭头 - 用CSS画个小叶子或箭头 */
summary::after {
    content: '🌿';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg); /* 打开时旋转 */
}

details[open] summary {
    background-color: #dcedc8;
    color: #33691e;
    border-bottom: 1px solid #c8e6c9;
}

.character-sheet, .memory-bank {
    padding: 15px;
    font-size: 0.9em;
}

/* 网格布局通用 */
.char-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 10px;
}

h4, h5 {
    margin: 10px 0 5px 0;
    color: #558b2f;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 3px;
}

/* 核心状态里的数值高亮 */
.char-stats p {
    margin: 4px 0;
    background: #fafafa;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #a5d6a7;
}

/* 好感度变动文字 */
.favor-change {
    color: #e91e63; /* 用一点粉色撞色，提示重要信息 */
    font-weight: bold;
    margin-left: 5px;
    font-size: 0.9em;
}

/* --- 选项区域 (Options) --- */
.options-section h3 {
    text-align: center;
    color: #558b2f;
    margin-bottom: 10px;
    font-size: 1em;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-grid p {
    background: #ffffff;
    border: 1px solid #81c784;
    padding: 10px 15px;
    border-radius: 25px; /* 胶囊形状 */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 悬停效果 - 移动端点击也会触发 */
.options-grid p:hover {
    background-color: #66bb6a;
    color: #ffffff;
    border-color: #66bb6a;
    transform: translateY(-2px); /* 微微上浮 */
    box-shadow: 0 4px 8px rgba(102, 187, 106, 0.3);
}

/* 选项字母 A/B/C */
.options-grid span {
    background: #e8f5e9;
    color: #2e7d32;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 0.85em;
    flex-shrink: 0;
}

.options-grid p:hover span {
    background: #ffffff;
    color: #66bb6a;
}
/* 强制隐藏思维链核心，防止AI内联样式失效 */
.logic-core {
    display: none !important;
}