/* ===== 苏晚 · 状态栏全局美化 ===== */
details {
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease;
}
details:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
details summary {
  padding: 12px 16px;
  font-size: 0.95em;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  background: #f8fafc;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  letter-spacing: 0.04em;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::before {
  content: "▸";
  font-size: 0.8em;
  transition: transform 0.25s ease;
  color: #64748b;
}
details[open] > summary::before {
  transform: rotate(90deg);
}
details > div,
details > pre {
  padding: 14px 18px;
  line-height: 1.8;
  font-size: 0.9em;
  color: #334155;
  background: #ffffff;
}
details details {
  margin: 8px 0;
  border-color: #e2e8f0;
  background: #f8fafc;
}
details details summary {
  font-size: 0.85em;
  padding: 8px 14px;
  background: #f1f5f9;
  color: #475569;
}
details details summary::before {
  color: #64748b;
}
details pre {
  background: transparent;
  margin: 0;
  white-space: pre-wrap;
  font-family: system-ui, -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
  font-size: 0.88em;
  color: #334155;
}
/* 表格 —— 所有行统一样式，无交替色 */
details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  color: #1e293b;
}
details table th {
  background: #f1f5f9;
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #cbd5e1;
  letter-spacing: 0.04em;
}
details table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  color: #1e293b;
  background: #ffffff;
}
details table tr {
  background: #ffffff;
}
details table tr:nth-child(even) td {
  background: #ffffff;
}
details table tr:nth-child(odd) td {
  background: #ffffff;
}
details table tr:first-child td,
details table tr:first-child th {
  border-top: none;
}
/* 进度条 */
.bar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bar-track {
  width: 110px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.affection-fill {
  background: linear-gradient(90deg, #e87979, #f4a0a0);
}
.trust-fill {
  background: linear-gradient(90deg, #7c8db5, #a0b0d0);
}
/* 数值高亮 */
.stat-value {
  font-weight: 700;
  color: #0f172a;
}
.stat-value.rose {
  color: #c06060;
}
/* 心里话模块 */
.tsuki-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0;
  margin-top: 8px;
}
.tsuki-said,
.tsuki-hidden {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tsuki-label {
  font-size: 0.75em;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tsuki-said .tsuki-content {
  color: #1e293b;
  font-size: 0.95em;
  line-height: 1.7;
  padding-left: 14px;
  border-left: 3px solid #64748b;
}
.tsuki-hidden .tsuki-content {
  color: #94a3b8;
  font-size: 0.9em;
  font-style: italic;
  line-height: 1.7;
  padding-left: 14px;
  border-left: 3px dashed #cbd5e1;
}
/* 线索列表 */
.clue-list {
  list-style: none;
  padding-left: 0;
  margin: 4px 0;
}
.clue-list li {
  padding: 4px 0 4px 16px;
  position: relative;
  color: #334155;
  line-height: 1.7;
}
.clue-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #64748b;
  font-weight: bold;
}
.clue-list li.locked {
  color: #94a3b8;
  font-style: italic;
}
.clue-list li.locked::before {
  color: #94a3b8;
}
/* 行动列表 */
details ol,
details ul {
  padding-left: 20px;
  margin: 4px 0;
}
details li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: #334155;
}
details li strong {
  color: #475569;
}
/* 场景信息 */
.scene-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.88em;
  color: #475569;
}
.scene-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  color: #475569;
}
/* 分割线 */
.divider-light {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 12px 0;
}
/* 苏晚纸条 */
.suwan-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.85em;
  color: #64748b;
  font-style: italic;
  letter-spacing: 0.03em;
}
/* 移动端 */
@media (max-width: 480px) {
  details summary {
    padding: 10px 14px;
    font-size: 0.9em;
  }
  details > div,
  details > pre {
    padding: 10px 12px;
    font-size: 0.85em;
  }
  .bar-track {
    width: 80px;
    height: 5px;
  }
}