/* ============ 思维链 ============ */
.think-box {
  margin: 8px 0;
  border: none;
  background: transparent;
}
.think-box > summary {
  font-size: 0.7rem;
  color: #555;
  cursor: pointer;
  list-style: none;
  padding: 4px 8px;
  letter-spacing: 0.08em;
}
.think-box > summary::-webkit-details-marker { display: none; }
think { display: block; font-size: 0.68rem; color: #666; padding: 6px 10px; line-height: 1.6; }

/* ============ 顶部信息栏 ============ */
.info-bar {
  display: flex;
  gap: 0;
  margin: 10px 0;
  background: #1a1a2a;
  border: 2.5px solid #f5e642;
  position: relative;
  overflow: hidden;
}
.info-bar::before {
  content: '';
  position: absolute;
  top: -8px; right: -8px;
  width: 24px; height: 24px;
  background: #f5e642;
  transform: rotate(45deg);
}
.info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  flex: 1;
  border-right: 1.5px solid #333;
  position: relative;
}
.info-item:last-child { border-right: none; }
.info-icon { font-size: 0.85rem; }
.info-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f0ece0;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.04em;
}
.info-time { border-bottom: 2px solid #f5e642; }
.info-weather { border-bottom: 2px solid #42c5f5; }
.info-loc { border-bottom: 2px solid #7fff6e; }

/* ============ 正文区域 ============ */
article.prose {
  background: #13111e;
  border: 2px solid #2a2040;
  border-left: 4px solid #c084fc;
  margin: 10px 0;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
article.prose::before {
  content: '// STORY';
  position: absolute;
  top: 6px; right: 10px;
  font-size: 0.6rem;
  color: #3a2f5a;
  font-weight: 900;
  letter-spacing: 0.15em;
}
article.prose::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #c084fc transparent;
}
article.prose p {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 0.95rem;
  line-height: 2;
  color: #e8dcc8;
  margin: 0 0 12px 0;
  text-indent: 2em;
  letter-spacing: 0.03em;
}
article.prose p:last-child { margin-bottom: 0; }

/* ============ 外层大折叠块通用 ============ */
.outer-block {
  margin: 8px 0;
  border: 2px solid #333;
  position: relative;
  overflow: hidden;
  background: #111118;
}
.outer-block > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: 'Noto Sans SC', sans-serif;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.outer-block > summary::-webkit-details-marker { display: none; }
.outer-block[open] > summary { border-bottom-color: currentColor; }
.block-icon { font-size: 1.1rem; position: relative; z-index: 1; }
.block-title {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.outer-block > summary::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 42px;
  opacity: 0.15;
  transition: width 0.2s;
}
.outer-block[open] > summary::before { width: 100%; opacity: 0.08; }
.outer-block > summary::after {
  content: '▶';
  margin-left: auto;
  font-size: 0.65rem;
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}
.outer-block[open] > summary::after { transform: rotate(90deg); }

/* User块 - 青色主题 */
.block-user { border-color: #42c5f5; }
.block-user > summary { color: #42c5f5; }
.block-user > summary::before { background: #42c5f5; }
.block-user::after {
  content: 'USER';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #42c5f5;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* NPC块 - 粉色主题 */
.block-npc { border-color: #f472b6; }
.block-npc > summary { color: #f472b6; }
.block-npc > summary::before { background: #f472b6; }
.block-npc::after {
  content: 'NPC';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #f472b6;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* 路线块 - 黄色主题 */
.block-route { border-color: #f5e642; }
.block-route > summary { color: #f5e642; }
.block-route > summary::before { background: #f5e642; }
.block-route::after {
  content: 'ROUTE';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #f5e642;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* 成就块 - 金色主题 */
.block-achieve { border-color: #fbbf24; }
.block-achieve > summary { color: #fbbf24; }
.block-achieve > summary::before { background: #fbbf24; }
.block-achieve::after {
  content: 'ACH';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* 记忆块 - 紫色主题 */
.block-memory { border-color: #a78bfa; }
.block-memory > summary { color: #a78bfa; }
.block-memory > summary::before { background: #a78bfa; }
.block-memory::after {
  content: 'MEM';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #a78bfa;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* 建议块 - 绿色主题 */
.block-hint { border-color: #7fff6e; }
.block-hint > summary { color: #7fff6e; }
.block-hint > summary::before { background: #7fff6e; }
.block-hint::after {
  content: 'HINT';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #7fff6e;
  opacity: 0.06;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* ============ 角色卡片（第二层） ============ */
.char-card {
  margin: 8px 10px;
  background: #16141f;
  border: 1.5px solid #2a2a3a;
  position: relative;
  overflow: hidden;
}
.char-card > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  list-style: none;
  background: #1e1c2e;
  border-left: 4px solid;
  transition: background 0.2s;
}
.char-card > summary::-webkit-details-marker { display: none; }
.char-card[open] > summary { background: #252338; }
.char-badge { font-size: 1rem; }
.char-name {
  font-size: 0.84rem;
  font-weight: 900;
  color: #e8dcc8;
  letter-spacing: 0.08em;
  font-family: 'Noto Sans SC', sans-serif;
}
.char-card > summary::after {
  content: '▶';
  margin-left: auto;
  font-size: 0.6rem;
  color: #666;
  transition: transform 0.2s;
}
.char-card[open] > summary::after { transform: rotate(90deg); }

/* 角色专属左边框色 */
.char-siyu > summary { border-left-color: #f472b6; }
.char-mengyao > summary { border-left-color: #c084fc; }
.char-shenyunjia > summary { border-left-color: #fb923c; }
.char-linchen > summary { border-left-color: #42c5f5; }

/* 角色卡片右下角装饰 */
.char-siyu::after { content: '💕'; position: absolute; bottom: 8px; right: 12px; font-size: 2.5rem; opacity: 0.05; pointer-events: none; }
.char-mengyao::after { content: '🌸'; position: absolute; bottom: 8px; right: 12px; font-size: 2.5rem; opacity: 0.05; pointer-events: none; }
.char-shenyunjia::after { content: '🌹'; position: absolute; bottom: 8px; right: 12px; font-size: 2.5rem; opacity: 0.05; pointer-events: none; }
.char-linchen::after { content: '👨'; position: absolute; bottom: 8px; right: 12px; font-size: 2.5rem; opacity: 0.05; pointer-events: none; }

/* ============ npc-card内容区 ============ */
.npc-card {
  padding: 12px 14px;
  background: #16141f;
}
.npc-card > p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 5px 0;
  font-size: 0.8rem;
  color: #c8c0b0;
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
}

/* ============ label标签 ============ */
.label {
  display: inline-block;
  background: #f5e642;
  color: #111;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 2px 8px 2px 6px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Noto Sans SC', sans-serif;
  margin-top: 2px;
}

/* ============ 分隔线 ============ */
.card-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, #f5e642 0%, rgba(245,230,66,0.1) 60%, transparent 100%);
  margin: 8px 0;
  opacity: 0.35;
}

/* ============ 进度条 ============ */
.stat-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 6px 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}
.stat-bar::before { display: none !important; }
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
  min-width: 76px;
  font-family: 'Noto Sans SC', sans-serif;
  letter-spacing: 0.03em;
}
.stat-value {
  font-size: 0.72rem;
  font-weight: 900;
  color: #f5e642;
  white-space: nowrap;
  min-width: 54px;
  font-family: 'Noto Sans SC', sans-serif;
}
.progress {
  flex: 1;
  height: 6px;
  background: #222;
  position: relative;
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 3px 100%);
  min-width: 60px;
}
.progress::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #f5e642, #ff3f5b);
  transition: width 0.4s ease;
}
.stat-bar[data-stat*="好感度"] .progress::after { background: linear-gradient(90deg, #c084fc, #42c5f5); }
.stat-bar[data-stat*="好感度"] .stat-value { color: #c084fc; }
.stat-bar[data-stat="警惕值"] .progress::after { background: linear-gradient(90deg, #fb923c, #ff3f5b); }
.stat-bar[data-stat="警惕值"] .stat-value { color: #ff3f5b; }
.stat-bar[data-stat="堕落值"] .progress::after { background: linear-gradient(90deg, #7c3aed, #ff3f5b); }
.stat-bar[data-stat="堕落值"] .stat-value { color: #a78bfa; }
.stat-bar[data-stat="耐心值"] .progress::after { background: linear-gradient(90deg, #7fff6e, #f5e642); }
.stat-bar[data-stat="耐心值"] .stat-value { color: #7fff6e; }
.stat-bar[data-stat="愉悦值"] .progress::after { background: linear-gradient(90deg, #f472b6, #fbbf24); }
.stat-bar[data-stat="愉悦值"] .stat-value { color: #f472b6; }

/* ============ 身体开发度 ============ */
.body-dev {
  margin: 8px 0;
  border: 1.5px solid #2a1a1a;
  background: #120e0e;
}
.body-dev > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  cursor: pointer;
  list-style: none;
  background: #1a0f0f;
  border-left: 3px solid #ff3f5b;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ff3f5b;
  letter-spacing: 0.1em;
  font-family: 'Noto Sans SC', sans-serif;
}
.body-dev > summary::-webkit-details-marker { display: none; }
.body-dev > summary::after {
  content: '▶';
  margin-left: auto;
  font-size: 0.58rem;
  transition: transform 0.2s;
}
.body-dev[open] > summary::after { transform: rotate(90deg); }

.body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.body-item {
  background: #1c1414;
  border: 1px solid #2a1f1f;
  border-top: 2px solid #ff3f5b;
  padding: 8px 10px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.part-header {
  font-size: 0.72rem;
  font-weight: 900;
  color: #ff3f5b;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: 'Noto Sans SC', sans-serif;
}
.body-item > p {
  font-size: 0.71rem;
  color: #b0a090;
  margin: 3px 0;
  line-height: 1.55;
  font-family: 'Noto Sans SC', sans-serif;
}
.body-item .label {
  background: #ff3f5b;
  color: #fff;
  font-size: 0.6rem;
}

/* ============ 路线卡片 ============ */
.route-card {
  margin: 6px 10px;
  background: #161208;
  border: 1.5px solid #2a2408;
  position: relative;
  overflow: hidden;
}
.route-card > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
  background: #1e1a08;
  border-left: 4px solid #f5e642;
  font-family: 'Noto Sans SC', sans-serif;
}
.route-card > summary::-webkit-details-marker { display: none; }
.route-card > summary::after {
  content: '▶';
  margin-left: auto;
  font-size: 0.6rem;
  color: #f5e642;
  transition: transform 0.2s;
}
.route-card[open] > summary::after { transform: rotate(90deg); }
.route-icon { font-size: 0.9rem; }
.route-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f5e642;
  letter-spacing: 0.06em;
}
.route-taming > summary { border-left-color: #42c5f5; }
.route-taming .route-name { color: #42c5f5; }
.route-taming > summary::after { color: #42c5f5; }
.route-expo > summary { border-left-color: #f472b6; }
.route-expo .route-name { color: #f472b6; }
.route-expo > summary::after { color: #f472b6; }
.route-live > summary { border-left-color: #fb923c; }
.route-live .route-name { color: #fb923c; }
.route-live > summary::after { color: #fb923c; }
.route-ntr > summary { border-left-color: #ff3f5b; }
.route-ntr .route-name { color: #ff3f5b; }
.route-ntr > summary::after { color: #ff3f5b; }

.route-body {
  padding: 10px 14px;
  background: #161208;
}
.route-body > p {
  font-size: 0.8rem;
  color: #c8b880;
  margin: 5px 0;
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ============ 成就区 ============ */
.achieve-body {
  padding: 10px 14px;
}
.achieve-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  margin: 5px 0;
  background: #1a1508;
  border: 1px solid #3a2f08;
  border-left: 3px solid #fbbf24;
  font-size: 0.8rem;
  color: #f5e642;
  font-weight: 700;
  font-family: 'Noto Sans SC', sans-serif;
  position: relative;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.achieve-item::before {
  content: '★';
  color: #fbbf24;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============ 记忆区 ============ */
.memory-body { padding: 8px 10px; }
.mem-fold {
  margin: 5px 0;
  border: 1.5px solid #2a2040;
  background: #110f1a;
}
.mem-fold > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  cursor: pointer;
  list-style: none;
  background: #18152a;
  border-left: 3px solid #a78bfa;
  font-family: 'Noto Sans SC', sans-serif;
}
.mem-fold > summary::-webkit-details-marker { display: none; }
.mem-fold > summary::after {
  content: '▶';
  margin-left: auto;
  font-size: 0.58rem;
  color: #a78bfa;
  transition: transform 0.2s;
}
.mem-fold[open] > summary::after { transform: rotate(90deg); }
.mem-icon { font-size: 0.85rem; }
.mem-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.06em;
}
.mem-list { padding: 8px 12px; }
.mem-item {
  font-size: 0.76rem;
  color: #9090a8;
  margin: 5px 0;
  padding: 5px 10px;
  border-left: 2px solid;
  line-height: 1.65;
  font-family: 'Noto Sans SC', sans-serif;
  background: #15131e;
  display: block !important;
}
.mem-item.stm { border-left-color: #a78bfa; color: #b8b0d0; }
.mem-item.ltm { border-left-color: #fbbf24; color: #c8b870; }

/* ============ 下一步建议 ============ */
.hint-body { padding: 10px 14px; }
.hint-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  margin: 6px 0;
  background: #0f1a0f;
  border: 1px solid #1a2f1a;
  border-left: 3px solid #7fff6e;
  font-size: 0.8rem;
  color: #a0c8a0;
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.65;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.hint-item::before {
  content: '→';
  color: #7fff6e;
  font-weight: 900;
  flex-shrink: 0;
}

/* ============ 移动端 ============ */
@media (max-width: 500px) {
  .body-grid { grid-template-columns: 1fr; }
  .stat-label { min-width: 60px; }
  .info-item { padding: 6px 8px; }
  .info-val { font-size: 0.7rem; }
  article.prose p { font-size: 0.88rem; }
}