/* ========================================================= */
/* ===== 1. 折叠栏整体 ===== */
/* ========================================================= */
details {
  display: block;
  background: #0f0f16;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #1a1a2e;
  border-left: 4px solid #1a1a5e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.40);
  transition: box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
details[open] {
  box-shadow: 0 4px 18px rgba(61,90,254,0.15);
  border-color: #2a2a4e;
}
details:hover {
  border-left-color: #3d5afe;
}

details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  position: relative;
  background: #0a0a0f;
  border-radius: 0;
  padding: 14px 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #c9c9ff;
  font-style: italic;
  font-size: 1.15em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-left: 4px solid #1a1a5e;
  text-align: left;
  user-select: none;
  transition: all .18s ease;
  overflow: hidden;
}
details summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #1a1a5e;
  transition: background .18s ease;
}
details summary::after {
  content: "◆";
  font-size: 0.7em;
  color: #3d5afe;
  text-shadow: 0 0 6px rgba(61,90,254,0.6);
  transition: all .18s ease;
  margin-left: auto;
}
details summary:hover {
  background: #f0ff00;
  color: #0a0a0f;
  border-left-color: #0a0a0f;
  padding-right: 34px;
}
details summary:hover::before { background: #0a0a0f; }
details summary:hover::after {
  content: "▶";
  color: #0a0a0f;
  text-shadow: none;
  transform: translateX(4px);
}
details[open] summary::after { transform: rotate(180deg); }
details summary::-webkit-details-marker { display: none; }
details summary::marker { display: none; content: ""; }

/* ========================================================= */
/* ===== 2. 折叠内容区 · 黑底适配 ===== */
/* ========================================================= */
.details-body {
  background: #14141f;
  color: #d8d8e8;
  padding: 16px 22px;
  font-size: 0.95em;
  line-height: 1.7;
  border-top: 1px solid #1e1e32;
}
.details-body a { color: #7aa2ff; text-decoration: none; }
.details-body a:hover { color: #a8c3ff; text-decoration: underline; }

/* ========================================================= */
/* ===== 3. 对话气泡 · 基础样式 ===== */
/* ========================================================= */
.dialogue-box,
.dialogue-box[data-role] {
  position: relative;
  display: block;
  border-radius: 4px 16px 16px 16px !important;
  padding: 12px 18px 12px 16px !important;
  margin: 14px 0 14px 8px !important;
  text-indent: 0 !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
}
.dialogue-box .speaker,
.dialogue-box[data-role] .speaker {
  display: block;
  font-size: 0.82em;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.dialogue-box .dialogue-text,
.dialogue-box[data-role] .dialogue-text {
  display: block;
  font-size: 1.04em;
  line-height: 1.7;
}

/* 沈念念 · 冰蓝 */
.dialogue-box[data-role="niannian"],
.dialogue-box[data-role="沈念念"] {
  background: linear-gradient(135deg, #f4f8fb 0%, #e8f0f6 100%) !important;
  border-left-color: #7eb8da !important;
  box-shadow: 0 2px 10px rgba(126,184,218,0.14) !important;
}
.dialogue-box[data-role="niannian"] .speaker,
.dialogue-box[data-role="沈念念"] .speaker { color: #5a8faf !important; }
.dialogue-box[data-role="niannian"] .dialogue-text,
.dialogue-box[data-role="沈念念"] .dialogue-text { color: #3d6d8a !important; }

/* 玩家 · 深紫 */
.dialogue-box[data-role="user"],
.dialogue-box[data-role="玩家"] {
  background: linear-gradient(135deg, #f3ecfb 0%, #ece0fa 100%) !important;
  border-left-color: #7a4fbf !important;
  box-shadow: 0 2px 10px rgba(122,79,191,0.12) !important;
}
.dialogue-box[data-role="user"] .speaker,
.dialogue-box[data-role="玩家"] .speaker { color: #5a2f9f !important; }
.dialogue-box[data-role="user"] .dialogue-text,
.dialogue-box[data-role="玩家"] .dialogue-text { color: #7a4fbf !important; }

/* ========================================================= */
/* ===== 4. 数值进度条 ===== */
/* ========================================================= */
.stat-bar { margin: 14px 0; }
.stat-bar .stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.92em;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.stat-bar .stat-label span {
  font-weight: 500;
  font-size: 0.88em;
  color: #555;
}
.stat-bar .bar-track {
  width: 100%;
  height: 14px;
  background: #e2e6ee;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
}
.stat-bar .bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.15) inset;
}
.stat-bar.trust .bar-fill {
  background: linear-gradient(90deg, #3d7bd4 0%, #4fc3c0 100%);
}
.stat-detail-label {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 600;
  color: #2957a2;
  margin-top: 8px;
  margin-right: 4px;
}

/* ========================================================= */
/* ===== 5. 时间锚点 ===== */
/* ========================================================= */
.time-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 40%, #2c3e50 100%);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  color: #ecf0f1;
  box-shadow: 0 4px 20px rgba(30,40,50,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.time-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.time-row-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.time-icon { font-size: 1.6em; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.time-day { font-size: 1.5em; font-weight: 700; letter-spacing: 1px; color: #fff; }
.time-sep { font-size: 1.3em; color: #7f8c8d; margin: 0 2px; }
.time-period { font-size: 1.2em; font-weight: 600; color: #e8d5a3; }
.time-clock {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f7efe0 0%, #efe5d0 100%);
  color: #5a4a3a; font-family: 'Georgia', serif;
  font-size: 0.92em; font-weight: 600; letter-spacing: 0.5px;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid #d8c9ac;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  margin-left: 4px;
}
.time-row-loc { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 0.9em; }
.time-loc-icon { font-size: 1em; }
.time-loc-text { color: #bdc3c7; letter-spacing: 0.5px; }
.time-row-weather { display: flex; align-items: center; gap: 6px; font-size: 0.85em; }
.time-weather-icon { font-size: 1em; }
.time-weather-text { color: #95a5a6; }
.time-row-surroundings { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.85em; }
.time-surroundings-icon { font-size: 1em; }
.time-surroundings-text { color: #95a5a6; letter-spacing: 0.5px; font-style: italic; }
.time-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.15) 80%, transparent 100%);
  margin: 14px 0 12px 0;
}
.time-row-budget { display: flex; align-items: center; gap: 10px; font-size: 0.85em; flex-wrap: wrap; }
.budget-icon { font-size: 1em; }
.budget-label { color: #95a5a6; margin-right: 6px; }
.budget-item { font-weight: 600; letter-spacing: 0.3px; padding: 2px 10px; border-radius: 12px; font-size: 0.9em; }
.budget-item.niannian { color: #9dc8de; background: rgba(126,184,218,0.15); }

/* ========================================================= */
/* ===== 6. 全局包裹卡片 ===== */
/* ========================================================= */
.narrative-p { text-indent: 2em; line-height: 1.9; margin: 0.8em 0; }

.khorra-output {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fffdf9 0%, #fefaf4 30%, #fdf7ee 100%);
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid #e8ddd0;
  box-shadow:
    0 2px 8px rgba(140,110,70,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.8);
  line-height: 1.85;
  color: #3d3226;
}

/* ========================================================= */
/* ===== 7. 内心独白 ===== */
/* ========================================================= */
.inner-monologue {
  font-style: italic;
  color: #7a6a5c;
  background: linear-gradient(135deg, #fefaf4 0%, #fdf6ed 100%);
  border-left: 3px solid #c9a85c;
  padding: 12px 18px;
  margin: 16px 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.95em;
  line-height: 1.7;
  text-indent: 0;
}

/* ========================================================= */
/* ===== 8. 预算迷你条 ===== */
/* ========================================================= */
.budget-mini {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 14px 0; padding: 8px 14px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
  border-radius: 10px; border: 1px solid #dce0e8;
}
.budget-mini-label { font-size: 0.82em; font-weight: 700; color: #3d5a80; white-space: nowrap; }
.budget-mini-bar { flex: 1; height: 8px; background: #dce0e8; border-radius: 999px; overflow: hidden; }
.budget-mini-fill {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #f0a050 0%, #e07040 100%);
  transition: width .5s ease;
}
.budget-mini-num { font-size: 0.82em; font-weight: 700; color: #e07040; white-space: nowrap; }

/* ========================================================= */
/* ===== 9. 副数值进度条 ===== */
/* ========================================================= */
.stat-bar.desire .bar-fill { background: linear-gradient(90deg, #b8c9d8 0%, #6b7d8e 100%); }
.stat-bar.desire.locked .bar-fill { background: #2a2a3a; }

/* ========================================================= */
/* ===== 10. 响应式 ===== */
/* ========================================================= */
@media (max-width: 600px) {
  .time-row-main { flex-wrap: wrap; gap: 4px; }
  .time-row-budget { gap: 6px; flex-wrap: wrap; }
  .budget-item { font-size: 0.85em; padding: 2px 8px; }
  .khorra-output { padding: 12px 14px; }
  .stat-label { flex-wrap: wrap; gap: 4px; }
  .dialogue-box, .dialogue-box[data-role] { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ========================================================= */
/* ===== 11. 场景插图 ===== */
/* ========================================================= */
.scene-illustration {
  width: 100%; max-width: 420px; margin: 18px auto;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(30,20,10,0.18);
  border: 2px solid #d4c5a9; background: #faf7f2; text-align: center;
}
.scene-illustration img { width: 100%; height: auto; display: block; object-fit: cover; }
.scene-caption {
  display: block; padding: 8px 14px; font-size: 0.82em; font-weight: 600;
  color: #8d6e63;
  background: linear-gradient(180deg, #fdf8f3 0%, #f5efe4 100%);
  letter-spacing: 0.5px; border-top: 1px solid #e8ddd0;
}

/* ========================================================= */
/* ===== 12. 解锁提醒 ===== */
/* ========================================================= */
.unlock-notice {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 14px 0 18px 0; padding: 12px 20px;
  background: linear-gradient(135deg, #fdf6e8 0%, #f9edd0 100%);
  border: 1px solid #d4b85c; border-radius: 10px;
  font-size: 0.92em; color: #5d4037;
  box-shadow: 0 2px 10px rgba(176,141,47,0.12);
}
.unlock-icon { font-size: 1.3em; }
.unlock-text strong { color: #8b6f2e; font-weight: 700; }

/* ========================================================= */
/* ===== 13. 强制换行 ===== */
/* ========================================================= */
details, details > * { word-wrap: break-word; overflow-wrap: anywhere; word-break: break-word; white-space: normal; max-width: 100%; }
.stat-panel, .stat-block, .stat-row { max-width: 100%; word-wrap: break-word; overflow-wrap: anywhere; }
.stat-label, .stat-label span, .stat-detail-label { word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; max-width: 100%; }
.stat-bar, .bar-track, .bar-fill { min-width: 0; max-width: 100%; }
.budget-mini { flex-wrap: wrap; }
.unlock-notice { flex-wrap: wrap; text-align: center; }

/* ========================================================= */
/* ===== 14. 黑底折叠内容区 · 组件深色覆盖 ===== */
/* ========================================================= */
.details-body .stat-bar .stat-label { color: #f0f0ff !important; }
.details-body .stat-bar .stat-label span { color: #a0a0d0 !important; }
.details-body .bar-track { background: #2a2a45 !important; box-shadow: inset 0 1px 3px rgba(0,0,0,0.4) !important; }
.details-body .stat-detail-label { color: #7aa2ff !important; }
.details-body .budget-mini {
  background: linear-gradient(135deg, #161625 0%, #1c1c2e 100%) !important;
  border-color: #2a2a45 !important;
}
.details-body .budget-mini-label { color: #a0a0d0 !important; }
.details-body .budget-mini-bar { background: #2a2a45 !important; }
.details-body .budget-mini-num { color: #ffb347 !important; }
.details-body .unlock-notice {
  background: linear-gradient(135deg, #1a1a25 0%, #252038 100%) !important;
  border-color: #d4b85c !important; color: #e8d8b8 !important;
}
.details-body .unlock-text strong { color: #f0ff00 !important; }

/* ========================================================= */
/* ===== 15. 信息行 ===== */
/* ========================================================= */
.info-line { display: block; width: 100%; margin: 6px 0; line-height: 1.6; }
.info-line .stat-detail-label { display: inline; margin-right: 4px; }
.info-line.note { color: #8888aa; font-size: 0.9em; font-style: italic; }

/* ========================================================= */
/* ===== 16. 分支选项 · 便签墙 ===== */
/* ========================================================= */
.choice-panel.corkboard {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.04) 0%, transparent 50%, rgba(0,0,0,0.06) 100%),
    linear-gradient(180deg, #c4a87c 0%, #b8996a 30%, #c4a87c 60%, #b0935e 100%);
  border: 8px solid #8b6914;
  border-image: linear-gradient(180deg, #9e7a30 0%, #7a5c1e 50%, #9e7a30 100%) 8;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(255,255,255,0.04),
    inset 0 2px 10px rgba(0,0,0,0.3);
  padding: 20px 24px 18px 24px;
  position: relative;
  overflow: visible;
  transform: none;
  border-radius: 4px;
}
.choice-panel.corkboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(0,0,0,0.08) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(0,0,0,0.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(0,0,0,0.07) 1px, transparent 1px),
    radial-gradient(circle at 35% 85%, rgba(0,0,0,0.05) 1.5px, transparent 1.5px),
    radial-gradient(circle at 90% 55%, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px, 60px 60px, 40px 40px, 70px 70px, 45px 45px;
  pointer-events: none;
  z-index: 0;
}
.choice-panel.corkboard > * { transform: none; position: relative; z-index: 1; }

.choice-panel.corkboard .choice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.choice-panel.corkboard .choice-icon {
  font-size: 1.3em;
  color: #f5e6c8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.choice-panel.corkboard .choice-title {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f5e6c8;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  text-transform: none;
  font-style: normal;
}

.choice-panel.corkboard .choice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.choice-panel.corkboard .choice-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(175deg, #fef9e8 0%, #fdf3d2 100%);
  border: 1px solid #e0d5b0;
  box-shadow:
    1px 3px 8px rgba(0,0,0,0.25),
    0 1px 2px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  transform: none;
  border-radius: 3px;
}
.choice-panel.corkboard .choice-card::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 20px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #d4a56a 0%, #b88540 60%, #8b6018 100%);
  border-radius: 50%;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  z-index: 2;
}
.choice-panel.corkboard .choice-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.choice-panel.corkboard .choice-card[data-choice="1"] { transform: rotate(-0.6deg); }
.choice-panel.corkboard .choice-card[data-choice="2"] { transform: rotate(0.4deg); }
.choice-panel.corkboard .choice-card[data-choice="3"] { transform: rotate(-0.5deg); }

.choice-panel.corkboard .choice-card:hover {
  transform: rotate(0deg) scale(1.02) !important;
  box-shadow:
    2px 8px 20px rgba(0,0,0,0.35),
    0 2px 4px rgba(0,0,0,0.2);
  z-index: 5;
  background: linear-gradient(175deg, #fffef6 0%, #fef8e0 100%);
}

.choice-panel.corkboard .choice-card[data-choice="1"] { border-left: 4px solid #f0a0a0; }
.choice-panel.corkboard .choice-card[data-choice="2"] { border-left: 4px solid #a0c0f0; }
.choice-panel.corkboard .choice-card[data-choice="3"] { border-left: 4px solid #a0d8b0; }

.choice-panel.corkboard .choice-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  z-index: 1;
  min-width: 0;
}
.choice-panel.corkboard .choice-label {
  display: inline-block;
  width: fit-content;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.choice-panel.corkboard .choice-card[data-choice="1"] .choice-label { background: #e08888; }
.choice-panel.corkboard .choice-card[data-choice="2"] .choice-label { background: #7098c8; }
.choice-panel.corkboard .choice-card[data-choice="3"] .choice-label { background: #68a878; }

.choice-panel.corkboard .choice-text {
  font-size: 0.9em;
  color: #4a3f2e;
  line-height: 1.5;
  font-family: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
  font-style: italic;
}
.choice-panel.corkboard .choice-card:hover .choice-text { color: #2a1f0e; }

.choice-panel.corkboard .choice-arrow {
  font-size: 0.85em;
  color: #c8a860;
  flex-shrink: 0;
  transition: transform .2s ease;
  z-index: 1;
}
.choice-panel.corkboard .choice-card:hover .choice-arrow {
  color: #8b6018;
  transform: translateX(3px);
}

.choice-panel.corkboard .choice-note {
  margin-top: 14px;
  font-size: 0.78em;
  color: #e0d0b0;
  font-style: italic;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ========================================================= */
/* ===== 17. 学生证折叠框 ===== */
/* ========================================================= */
details.student-id-details {
  background: transparent;
  border: none;
  border-left: none;
  box-shadow: none;
  margin-bottom: 12px;
}
details.student-id-details[open] { box-shadow: none; border-color: transparent; }
details.student-id-details:hover { border-left-color: transparent; }

details.student-id-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  position: relative;
  background: #1a2740;
  border-radius: 10px 10px 0 0;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #d4c89a;
  font-style: normal;
  font-size: 0.95em;
  width: 100%;
  box-sizing: border-box;
  border-left: none;
  text-align: left;
  user-select: none;
  transition: border-radius .15s ease;
}
details.student-id-details > summary::before {
  content: "清源大学";
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(212,200,154,0.7);
  position: absolute;
  top: 6px;
  left: 18px;
}
details.student-id-details > summary::after {
  content: attr(data-id-type);
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f0e8c8;
  background: rgba(212,200,154,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212,200,154,0.25);
  margin-left: auto;
  text-shadow: none;
  transform: none;
  transition: none;
}
details.student-id-details[open] > summary { border-radius: 10px 10px 0 0; }
details.student-id-details[open] > summary::after { content: attr(data-id-type); transform: none; }
details.student-id-details > summary:hover {
  background: #1e2e4a;
  color: #e8d8a8;
  border-left: none;
  padding-right: 18px;
}
details.student-id-details > summary:hover::before { color: rgba(232,216,168,0.8); }
details.student-id-details > summary:hover::after {
  color: #e8d8a8;
  border-color: rgba(232,216,168,0.35);
}
details.student-id-details > summary::-webkit-details-marker { display: none; }
details.student-id-details > summary::marker { display: none; content: ""; }

.id-card-body {
  background: linear-gradient(170deg, #fdfdfd 0%, #f6f8fa 100%) !important;
  border-radius: 0 0 10px 10px !important;
  border: 1px solid #d8dce2 !important;
  border-top: none !important;
  color: #2c2c38 !important;
  padding: 14px 20px !important;
}
.id-card-body::before {
  content: "Qingyuan University";
  display: block;
  font-size: 0.56em;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #8c94a0;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8ebf0;
}

.id-card-name {
  font-size: 1.3em;
  font-weight: 700;
  color: #1a1a28;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.id-card-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.84em;
  margin: 0 0 6px 0;
  color: #2c2c38;
}
.id-card-row span {
  color: #9098a4;
  font-weight: 500;
  min-width: 34px;
  flex-shrink: 0;
}
.id-card-row span + span { margin-left: 14px; }

.id-card-rel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px 0;
  padding: 7px 10px;
  background: #f4f6f9;
  border-radius: 6px;
  font-size: 0.78em;
  color: #3d5a80;
}
.id-card-rel span { color: #8c94a0; font-weight: 500; }
.id-card-rel span::before { content: "🔗 "; }
.id-card-rel em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.88em;
  color: #5a8faf;
  font-weight: 600;
  background: rgba(126,184,218,0.12);
  padding: 2px 8px;
  border-radius: 10px;
}

.id-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #e8ebf0;
  font-size: 0.68em;
  color: #8c94a0;
  margin: 0;
}
.id-card-foot span {
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px;
  color: #b0b8c4;
}

.details-body .id-card-body {
  background: linear-gradient(170deg, #fdfdfd 0%, #f6f8fa 100%) !important;
  color: #2c2c38 !important;
  border-color: #d8dce2 !important;
}
.details-body .id-card-name { color: #1a1a28 !important; }
.details-body .id-card-row { color: #2c2c38 !important; }
.details-body .id-card-row span { color: #9098a4 !important; }
.details-body .id-card-rel { background: #f4f6f9 !important; color: #3d5a80 !important; }
.details-body .id-card-rel span { color: #8c94a0 !important; }
.details-body .id-card-rel em { color: #5a8faf !important; }
.details-body .id-card-foot { border-top-color: #e8ebf0 !important; color: #8c94a0 !important; }
.details-body .id-card-foot span { color: #b0b8c4 !important; }

/* ========================================================= */
/* ===== 18. 沈念念 · 学生档案折叠框 ===== */
/* ========================================================= */
details.archive-details {
  background: transparent;
  border: none;
  border-left: none;
  box-shadow: none;
  margin-bottom: 12px;
}
details.archive-details[open] { box-shadow: none; border-color: transparent; }
details.archive-details:hover { border-left-color: transparent; }

details.archive-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  position: relative;
  background: #1a2740;
  border-radius: 10px 10px 0 0;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #d4c89a;
  font-style: normal;
  font-size: 0.95em;
  width: 100%;
  box-sizing: border-box;
  border-left: none;
  text-align: left;
  user-select: none;
  transition: border-radius .15s ease;
}
details.archive-details > summary::before { display: none; }
details.archive-details > summary::after {
  content: "▾";
  font-size: 0.75em;
  color: rgba(212,200,154,0.7);
  text-shadow: none;
  margin-left: auto;
  transition: transform .2s ease;
}
details.archive-details[open] > summary { border-radius: 10px 10px 0 0; }
details.archive-details[open] > summary::after { transform: rotate(180deg); }
details.archive-details > summary:hover {
  background: #1e2e4a;
  color: #e8d8a8;
  border-left: none;
  padding-right: 18px;
}
details.archive-details > summary:hover::after { color: #e8d8a8; text-shadow: none; transform: none; }
details.archive-details > summary:hover::before { background: transparent; }
details.archive-details > summary::-webkit-details-marker { display: none; }
details.archive-details > summary::marker { display: none; content: ""; }
details.archive-details[open] > summary:hover::after { transform: rotate(180deg); }

.archive-body {
  background: linear-gradient(170deg, #fdfdfd 0%, #f6f8fa 100%) !important;
  border-radius: 0 0 10px 10px !important;
  border: 1px solid #d8dce2 !important;
  border-top: none !important;
  color: #2c2c38 !important;
  padding: 0 !important;
}

.archive-body::before {
  content: "清源大学  ·  Qingyuan University  ·  ARC-2024-001";
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #1a2740;
  border-bottom: 1px solid #e0e4ea;
}

.archive-main {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #e8ebf0;
}
.archive-portrait {
  width: 90px;
  min-width: 90px;
  height: 120px;
  border-radius: 6px;
  border: 1px solid #d8dce2;
  background: #eef1f5;
  object-fit: cover;
}
.archive-info { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-width: 0; }
.archive-name {
  font-size: 1.3em;
  font-weight: 700;
  color: #1a1a28;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}
.archive-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82em;
  margin: 0;
  color: #2c2c38;
}
.archive-row span {
  color: #9098a4;
  font-weight: 500;
  min-width: 32px;
  flex-shrink: 0;
}
.archive-sub { font-weight: 400; color: #8c94a0; font-size: 0.9em; margin-left: 4px; }
.archive-row em {
  font-style: normal;
  color: #5a8faf;
  font-weight: 700;
  background: rgba(126,184,218,0.12);
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 0.95em;
}

.archive-status {
  padding: 14px 20px;
  border-bottom: 1px solid #e8ebf0;
}
.archive-status::before {
  content: "📋 当前状态";
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  color: #6a7a8e;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.archive-status .archive-row { margin-bottom: 5px; }
.archive-status .archive-row:last-child { margin-bottom: 0; }

.archive-body > details {
  display: block;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-left: none;
  box-shadow: none;
  border-top: 1px solid #e0e4ea;
}
.archive-body > details[open] { box-shadow: none; border-color: transparent; }
.archive-body > details > summary {
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  background: #f5f6f8;
  padding: 10px 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #4a5a6e;
  font-style: normal;
  font-size: 0.82em;
  border-left: none;
  text-align: left;
  user-select: none;
  transition: all .15s ease;
}
.archive-body > details > summary::before { display: none; }
.archive-body > details > summary::after {
  content: "▾";
  font-size: 0.7em;
  color: #8c96a4;
  margin-left: auto;
  transition: transform .2s ease;
}
.archive-body > details[open] > summary {
  background: #eef0f4;
  border-bottom: 1px solid #dde0e6;
}
.archive-body > details[open] > summary::after { transform: rotate(180deg); }
.archive-body > details > summary:hover {
  color: #2c3e50;
  background: #e8ebf0;
  border-left: none;
}
.archive-body > details > summary:hover::after { color: #3d5a80; }
.archive-body > details > summary::-webkit-details-marker { display: none; }
.archive-body > details > summary::marker { display: none; content: ""; }

.archive-body > details > .details-body {
  background: #f9fafb !important;
  color: #2a2a3a !important;
  padding: 14px 20px !important;
  border: none !important;
}
.archive-body > details > .details-body p {
  font-size: 0.83em;
  color: #3a3a4e;
  line-height: 1.7;
  margin: 0 0 6px 0;
}
.archive-body > details > .details-body p:last-child { margin-bottom: 0; }
.archive-body > details > .details-body b {
  color: #1a5a8a;
  font-weight: 700;
}
.archive-body > details > .details-body hr {
  border: none;
  height: 1px;
  background: #dde0e6;
  margin: 6px 0;
}

.archive-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 10px 20px;
  border-top: 1px solid #e8ebf0;
  font-size: 0.66em;
  color: #8c94a0;
  margin: 0;
}
.archive-foot span {
  font-family: 'Courier New', monospace;
  letter-spacing: 1.2px;
  color: #b0b8c4;
}

.details-body .archive-body {
  background: linear-gradient(170deg, #fdfdfd 0%, #f6f8fa 100%) !important;
  color: #2c2c38 !important;
  border-color: #d8dce2 !important;
}
.details-body .archive-name { color: #1a1a28 !important; }
.details-body .archive-row { color: #2c2c38 !important; }
.details-body .archive-row span { color: #9098a4 !important; }
.details-body .archive-row em { color: #5a8faf !important; }
.details-body .archive-foot { border-top-color: #e8ebf0 !important; color: #8c94a0 !important; }
.details-body .archive-foot span { color: #b0b8c4 !important; }
.details-body .archive-body > details > .details-body {
  background: #f9fafb !important;
  color: #2a2a3a !important;
}
.details-body .archive-body > details > .details-body p { color: #3a3a4e !important; }
.details-body .archive-body > details > .details-body b { color: #1a5a8a !important; }

/* ========================================================= */
/* ===== 19. 数值状态 · 黑板样式 ===== */
/* ========================================================= */
details.chalkboard-details {
  background: transparent;
  border: 6px solid #5a3e2b;
  border-image: linear-gradient(180deg, #6b4c32 0%, #4a3020 50%, #6b4c32 100%) 6;
  border-left: 6px solid #5a3e2b;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(255,255,255,0.03);
  margin-bottom: 14px;
  border-radius: 4px;
  overflow: hidden;
}
details.chalkboard-details[open] {
  box-shadow:
    0 6px 24px rgba(0,0,0,0.55),
    inset 0 0 0 2px rgba(255,255,255,0.03);
  border-color: #5a3e2b;
}
details.chalkboard-details:hover { border-left-color: #7a5e4b; }

details.chalkboard-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  position: relative;
  background: linear-gradient(180deg, #2d5a3e 0%, #1e3d2a 100%);
  border-radius: 0;
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e8e4d8;
  font-style: italic;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  border-left: none;
  text-align: left;
  user-select: none;
  transition: all .18s ease;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 0 6px rgba(255,255,240,0.15);
}
details.chalkboard-details > summary::before { display: none; }
details.chalkboard-details > summary::after {
  content: "▾";
  font-size: 0.7em;
  color: rgba(232,228,216,0.5);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.3),
    0 0 4px rgba(255,255,240,0.1);
  margin-left: auto;
  transition: transform .2s ease;
}
details.chalkboard-details[open] > summary::after { transform: rotate(180deg); }
details.chalkboard-details > summary:hover {
  background: linear-gradient(180deg, #356a48 0%, #254d30 100%);
  color: #f5f2e8;
  border-left: none;
  padding-right: 22px;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.5),
    0 0 10px rgba(255,255,240,0.2);
}
details.chalkboard-details > summary:hover::after {
  color: rgba(245,242,232,0.7);
}
details.chalkboard-details > summary::-webkit-details-marker { display: none; }
details.chalkboard-details > summary::marker { display: none; content: ""; }

.chalkboard-body {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.015) 0%, transparent 50%, rgba(0,0,0,0.03) 100%),
    linear-gradient(180deg, #2c4a3a 0%, #234030 50%, #1e3a2a 100%) !important;
  color: #e0dcc8 !important;
  padding: 18px 22px !important;
  border-top: 2px solid rgba(255,255,240,0.06) !important;
  font-family: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
  position: relative;
}
.chalkboard-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 40% 85%, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 70% 15%, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 50px 50px, 70px 70px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.chalkboard-body > * { position: relative; z-index: 1; }

.chalkboard-body p,
.chalkboard-body span,
.chalkboard-body div {
  color: #e0dcc8 !important;
  text-shadow:
    0 1px 1px rgba(0,0,0,0.3),
    0 0 4px rgba(255,255,240,0.08);
}

.chalkboard-body::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,228,216,0.2) 40%, rgba(232,228,216,0.2) 60%, transparent 100%);
  margin-top: 14px;
}

.chalkboard-body .budget-mini {
  background: rgba(255,255,240,0.04) !important;
  border: 1px dashed rgba(232,228,216,0.2) !important;
  border-radius: 4px;
}
.chalkboard-body .budget-mini-label {
  color: #d4cfb8 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.chalkboard-body .budget-mini-bar {
  background: rgba(0,0,0,0.3) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.chalkboard-body .budget-mini-fill {
  background: linear-gradient(90deg, #e8d48c 0%, #f0e0a0 100%) !important;
  box-shadow: 0 0 6px rgba(232,212,140,0.3);
}
.chalkboard-body .budget-mini-num {
  color: #f0e0a0 !important;
  text-shadow: 0 0 4px rgba(240,224,160,0.3);
}

.chalkboard-body .stat-bar .stat-label {
  color: #e0dcc8 !important;
}
.chalkboard-body .stat-bar .stat-label span {
  color: #c8c4a8 !important;
}
.chalkboard-body .bar-track {
  background: rgba(0,0,0,0.35) !important;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,240,0.03);
  border-radius: 3px;
}
.chalkboard-body .stat-bar.trust .bar-fill {
  background: linear-gradient(90deg, #f0d8c0 0%, #e8b890 100%) !important;
  box-shadow:
    0 0 8px rgba(232,184,144,0.25),
    0 1px 2px rgba(0,0,0,0.3);
}
.chalkboard-body .stat-bar.desire .bar-fill {
  background: linear-gradient(90deg, #c8d8e0 0%, #9ab8c8 100%) !important;
  box-shadow:
    0 0 8px rgba(154,184,200,0.25),
    0 1px 2px rgba(0,0,0,0.3);
}
.chalkboard-body .stat-bar.desire.locked .bar-fill {
  background: rgba(255,255,240,0.06) !important;
  box-shadow: none;
}
.chalkboard-body .stat-detail-label {
  color: #d4cfb8 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.chalkboard-body .info-line {
  color: #c8c4a8 !important;
}
.chalkboard-body .info-line .stat-detail-label {
  color: #d4cfb8 !important;
}

.details-body .chalkboard-body {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.015) 0%, transparent 50%, rgba(0,0,0,0.03) 100%),
    linear-gradient(180deg, #2c4a3a 0%, #234030 50%, #1e3a2a 100%) !important;
  color: #e0dcc8 !important;
}

/* ========================================================= */
/* ===== 20. 微信消息折叠框 ===== */
/* ========================================================= */
details.wechat-details {
  background: transparent;
  border: none;
  border-left: none;
  box-shadow: none;
  margin-bottom: 14px;
}
details.wechat-details[open] { box-shadow: none; border-color: transparent; }
details.wechat-details:hover { border-left-color: transparent; }

details.wechat-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  position: relative;
  background: linear-gradient(180deg, #2eae4e 0%, #1e9a3a 100%);
  border-radius: 10px 10px 0 0;
  padding: 12px 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  font-style: normal;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  border-left: none;
  text-align: left;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
details.wechat-details > summary::before {
  content: "💬";
  font-size: 1em;
  text-shadow: none;
}
details.wechat-details > summary::after {
  content: "▾";
  font-size: 0.7em;
  color: rgba(255,255,255,0.75);
  text-shadow: none;
  margin-left: auto;
  transition: transform .2s ease;
}
details.wechat-details[open] > summary { border-radius: 10px 10px 0 0; }
details.wechat-details[open] > summary::after { transform: rotate(180deg); }
details.wechat-details > summary:hover {
  background: linear-gradient(180deg, #3ab85a 0%, #28a644 100%);
  color: #fff;
  border-left: none;
  padding-right: 18px;
}
details.wechat-details > summary:hover::after { color: #fff; }
details.wechat-details > summary::-webkit-details-marker { display: none; }
details.wechat-details > summary::marker { display: none; content: ""; }

.wechat-body {
  background: #ededed !important;
  border-radius: 0 0 10px 10px !important;
  border: 1px solid #d0d0d0 !important;
  border-top: none !important;
  padding: 0 !important;
  color: #333 !important;
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
}

.wechat-chat-section { display: block; }

.wechat-chat-header {
  text-align: center;
  font-size: 0.75em;
  color: #888;
  padding: 10px 0 6px 0;
  background: #f6f6f6;
  border-bottom: 1px solid #e0e0e0;
  letter-spacing: 0.5px;
}

.wechat-chat-divider {
  height: 6px;
  background: #d9d9d9;
  border-top: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
}

.wechat-msg-list {
  padding: 10px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ededed;
}

.wechat-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-start;
}
.wechat-msg.left { flex-direction: row; }
.wechat-msg.right { flex-direction: row-reverse; }

.wechat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 600;
}

.wechat-bubble {
  background: #fff;
  padding: 8px 12px;
  border-radius: 3px 10px 10px 10px;
  font-size: 0.82em;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.wechat-msg.right .wechat-bubble { border-radius: 10px 3px 10px 10px; }
.wechat-bubble.self { background: #95ec69; }

.details-body.wechat-body { background: #ededed !important; color: #333 !important; border-color: #d0d0d0 !important; }
.details-body .wechat-chat-header { color: #888 !important; background: #f6f6f6 !important; }
.details-body .wechat-msg-list { background: #ededed !important; }
.details-body .wechat-bubble { color: #333 !important; background: #fff !important; }
.details-body .wechat-bubble.self { background: #95ec69 !important; }

/* ========================================================= */
/* ===== 21. 记忆区 · 备注提示 ===== */
/* ========================================================= */
.memory-note {
  font-size: 0.72em;
  color: #8888aa;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-style: italic;
  text-align: center;
}

/* ========================================================= */
/* ===== 22. 思维链可见折叠面板 ===== */
/* ========================================================= */
.cot-exec-content {
  font-size: 0.82em;
  color: #b0b0c8;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ========================================================= */
/* ===== 23. 记忆汇总面板 ===== */
/* ========================================================= */
.memory-summary {
  background: #0f141a;
  border: 1px solid #1e3040;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
}
.memory-summary-header {
  background: #0a0f14;
  border-bottom: 1px solid #1e3040;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
}
.memory-summary-icon { font-size: 1.1em; }
.memory-summary-title {
  font-weight: 700;
  color: #c9c9ff;
  letter-spacing: 1px;
}
.memory-summary-body {
  padding: 18px;
  font-size: 0.88em;
  line-height: 1.8;
  color: #c8d8e4;
}
.memory-summary-footer {
  background: #0a0f14;
  border-top: 1px solid #1e3040;
  padding: 10px 18px;
  font-size: 0.72em;
  color: #6a8a9e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono, monospace);
}

/* ========================================================= */
/* ===== 24. 记忆回廊 · 嵌套折叠 ===== */
/* ========================================================= */
.memory-config {
  margin-bottom: 10px;
}
.memory-config summary {
  font-size: 0.78em;
  font-weight: 600;
  color: #b0b0c8;
  cursor: pointer;
  padding: 4px 0;
}
.memory-config-body {
  font-family: var(--font-mono, monospace);
  font-size: 0.7em;
  color: #7a8a9a;
  line-height: 1.7;
  padding: 6px 0;
}
.memory-stm {
  margin-bottom: 8px;
}
.memory-stm summary,
.memory-ltm summary {
  font-size: 0.78em;
  font-weight: 600;
  color: #b0b0c8;
  cursor: pointer;
  padding: 4px 0;
}
.memory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72em;
  margin-top: 6px;
}
.memory-table th {
  text-align: left;
  padding: 4px 8px;
  font-weight: 600;
  color: #8888aa;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.memory-table td {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #a8a8c0;
  vertical-align: top;
  line-height: 1.5;
}
.memory-table tr:last-child td {
  border-bottom: none;
}