/* --- 基础与重置 --- */
.style_default {
    /* 全局字体颜色修改点。改回 #333 即可恢复。*/
    color: #4A4A6A;
    background-color: #f4f4f8; border-radius: 12px;
    padding: 16px; font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    border: 1px solid #e0e0e0;
}
.style_default i, .style_default em { font-style: normal !important; }
.style_default cot { display: none; }
.style_default p { margin: 8px 0; line-height: 1.7; }

/* --- 顶部信息栏 --- */
.style_default .top-info-bar {
    background-color: rgba(255, 255, 255, 0.7); border-radius: 8px;
    padding: 10px 15px; margin-bottom: 16px; font-size: 0.9em; border: 1px solid #ddd;
}
.style_default .top-info-bar span { display: block; }
.style_default .top-info-bar .time-info { margin-bottom: 5px; color: #555; }

/* --- [标准1] 面板标题 --- */
.style_default summary {
    font-weight: bold; color: #FE2198; padding: 12px 15px; cursor: pointer;
    list-style: revert; outline: none; border-bottom: 1px solid #eee;
}
.style_default details[open] > summary { border-bottom: 1px solid #ddd; }
.style_default summary::-webkit-details-marker { display: revert; }

/* --- 内容包裹器 --- */
.style_default .content-wrapper {
    padding: 8px 18px 0 18px;
}

/* --- [标准2] 人物信息面板 --- */
.style_default details:first-of-type p > strong {
    color: #FE2198; font-weight: bold;
}
.style_default details:first-of-type p:has(strong:contains("性器官")) + div p,
.style_default details:first-of-type p:has(strong:contains("性器官")) + div p * {
    color: #FE2198 !important; font-weight: bold;
}
.style_default details:first-of-type .full-color,
.style_default details:first-of-type .full-color * {
    color: #FE2198 !important; font-weight: normal;
}
.style_default details:first-of-type .full-color > strong {
    font-weight: bold;
}
/* [修正1] 分割线终极选择器 */
.style_default details:first-of-type hr {
    display: block !important; border: 0; border-top: 1px dashed #ccc;
    margin: 16px 18px; /* 使用外边距以适应任何情况 */
}

/* --- [标准3] 目标面板 --- */
.style_default details:nth-of-type(2) p > strong,
.style_default details:nth-of-type(2) div > p > strong {
    color: #FE2198; font-weight: bold;
}

/* --- [标准4 & 5] 交互选项 --- */
/* [修正2] #actions (行动推荐) 使用CSS计数器 */
.style_default #actions .content-wrapper {
    counter-reset: action-counter; /* 初始化一个名为 action-counter 的计数器 */
}
.style_default #actions .content-wrapper p {
    background-color: #fde7f3; border: 1px solid #FE2198; padding: 10px 15px 10px 30px; /* 增加左侧内边距给序号留出空间 */
    border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
    position: relative; /* 为序号定位提供基准 */
    font-weight: normal;
}
.style_default #actions .content-wrapper p::before {
    counter-increment: action-counter; /* 计数器+1 */
    content: counter(action-counter) "."; /* 显示 "1." "2." 等 */
    color: #FE2198; /* 序号颜色 */
    font-weight: bold; /* 序号加粗 */
    position: absolute; /* 绝对定位 */
    left: 12px; /* 距离左侧边框12px */
    top: 10px; /* 与内容顶部对齐 */
}
.style_default #actions .content-wrapper p:hover {
    background-color: #fcd9ec; box-shadow: 0 0 8px rgba(254, 33, 152, 0.3);
    transform: translateY(-2px);
}

/* #scenes (切换场景) */
.style_default #scenes .content-wrapper p {
    background-color: #fde7f3; border: 1px solid #FE2198; padding: 10px 15px;
    border-radius: 6px; cursor: pointer; transition: all 0.2s ease;
    color: #c4137a; font-weight: bold;
}
.style_default #scenes .content-wrapper p:hover {
    background-color: #fcd9ec; box-shadow: 0 0 8px rgba(254, 33, 152, 0.3);
    transform: translateY(-2px);
}
.style_default #scenes .content-wrapper p[style*="display: none"] {
    display: none !important;
}

/* --- [标准6] 记忆面板 --- */
.style_default #memory .content-wrapper > p {
    padding: 10px 0 5px 0; margin-top: 15px; border-top: 1px solid #eee;
}
.style_default #memory .content-wrapper > p:first-of-type {
    margin-top: 5px; border-top: none;
}
.style_default #memory .content-wrapper > p > strong {
    font-size: 1.1em; color: #4A4A6A; font-weight: bold;
}
.style_default #memory table {
    width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 0.9em;
}
.style_default #memory th, .style_default #memory td {
    border: 1px solid #ccc; padding: 8px 10px; text-align: left;
    vertical-align: top; font-weight: normal; color: #4A4A6A;
}
.style_default #memory th {
    background-color: #f8f9fa; color: #FE2198; font-weight: bold;
}

/* --- 进度条 --- */
.style_default .status-item { display: flex; align-items: center; padding: 8px 0; gap: 12px; flex-wrap: wrap; }
.style_default .status-item .label { color: #FE2198; font-weight: bold; }
.style_default .progress-bar { flex-grow: 1; height: 12px; background-color: #e9ecef; border-radius: 6px; border: 1px solid #ced4da; overflow: hidden; min-width: 150px; }
.style_default .progress-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease-in-out; }
.style_default .progress-fill.resistance { background: linear-gradient(90deg, #5c97ff, #3a7bd5); }
.style_default .progress-fill.corruption { background: linear-gradient(90deg, #ff7eb9, #ff4d6d); }
.style_default .status-item .value { font-weight: bold; font-size: 0.9em; min-width: 45px; text-align: right; font-family: monospace; }
.style_default .status-item > p { flex-basis: 100%; margin: 4px 0 0 0; padding: 0; font-size: 0.85em; color: #666; line-height: 1.4; }