/* ============ 思维链隐藏（输出但不可见）============ */
think {
  display: none !important;
}

/* ============ 全局·暖黄基底 ============ */
body {
  background: #fdf6e8;
}

/* ============ 正文叙事·宣纸底 ============ */
story-text {
  display: block;
  position: relative;
  margin: 8px 0;
  padding: 22px 20px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 22%, rgba(200, 160, 100, .06) 0, transparent 9px),
    radial-gradient(circle at 72% 64%, rgba(190, 140, 80, .05) 0, transparent 11px),
    linear-gradient(135deg, #fdf8ed 0%, #faf0db 100%);
  border: 1px solid #e0cfa0;
  box-shadow: 0 2px 10px rgba(160, 120, 70, .10), inset 0 0 30px rgba(220, 190, 140, .12);
  color: #3a2e22;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .5px;
}
story-text::before {
  content: "";
  position: absolute; top: 6px; left: 6px; right: 6px; bottom: 6px;
  border: 1px solid rgba(180, 140, 90, .20);
  border-radius: 4px;
  pointer-events: none;
}
story-text p {
  margin: 0 0 14px;
  text-indent: 2em;
}
story-text p:last-child { margin-bottom: 0; }

/* ============ 双色台词渲染 ============ */
.user {
  color: #2a6b9e;
  font-weight: 600;
  text-shadow: 0 0 1px rgba(42, 107, 158, .20);
}
.裴清蝉 {
  color: #b83a3a;
  font-weight: 600;
  text-shadow: 0 0 1px rgba(184, 58, 58, .20);
}

/* ============ 裴清蝉·人物图片框 ============ */
.heroine-box img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  margin: 12px auto 8px;
  border-radius: 8px;
  border: 2px solid #e8d5b8;
  box-shadow: 0 3px 12px rgba(160, 110, 60, .18), 0 0 0 4px rgba(245, 225, 190, .40);
  object-fit: contain;
  background: #fef9f0;
}

/* ============ 折叠状态栏·通用框 ============ */
.ui-box {
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #e0caa0;
  background: linear-gradient(160deg, #fdf5e2, #f8ecd0);
  box-shadow: 0 1px 6px rgba(160, 120, 70, .10);
  overflow: hidden;
}
.ui-box summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, #b8895a, #d4ab6a);
  position: relative;
  user-select: none;
  transition: filter .25s ease;
}
.ui-box summary::-webkit-details-marker { display: none; }
.ui-box summary::after {
  content: "❖";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 12px; opacity: .8;
  transition: transform .3s ease;
}
.ui-box[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.ui-box summary:hover { filter: brightness(1.08); }
.ui-box p {
  margin: 6px 0;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #4a3a28;
}
.ui-box p:first-of-type { margin-top: 12px; }
.ui-box p:last-of-type { margin-bottom: 12px; }

/* ============ 各栏色调区分（左侧色条） ============ */
.scene-box summary { background: linear-gradient(90deg, #8ea87e, #a8c098); }
.profile-box summary { background: linear-gradient(90deg, #a08a60, #c4ae80); }
.heroine-box summary { background: linear-gradient(90deg, #c06a7a, #d49595); }
.memory-box summary { background: linear-gradient(90deg, #a090b8, #c0b0d0); }
.branch-box summary { background: linear-gradient(90deg, #c49a50, #ddb870); }

/* ============ 子标题·着装分隔 ============ */
.ui-box .sub-title {
  margin: 10px 16px 4px;
  padding: 3px 10px;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #8b4a2b;
  background: rgba(220, 180, 120, .18);
  border-left: 3px solid #c49a50;
  border-radius: 0 3px 3px 0;
  text-indent: 0;
}

/* ============ 清蝉的备忘录·手机状态栏风格 ============ */
note-app {
  display: block;
  margin: 14px 0;
  border-radius: 12px;
  border: 1.5px solid #e0cfa0;
  background: linear-gradient(170deg, #fefbf5, #f9efd8);
  box-shadow: 0 3px 14px rgba(160, 120, 70, .14);
  overflow: hidden;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

note-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #faf0db, #f5e4c8);
  border-bottom: 1px solid #e5d0a8;
}

note-icon {
  font-size: 18px;
}

note-title {
  font-size: 15px;
  font-weight: 700;
  color: #5a3e28;
  letter-spacing: .5px;
}

note-date {
  margin-left: auto;
  font-size: 12px;
  color: #8a6e50;
  font-weight: 500;
  background: rgba(255, 255, 255, .55);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #e5d0a8;
}

note-card {
  display: block;
  margin: 10px 14px;
  padding: 12px 14px;
  background: rgba(255, 252, 245, .70);
  border: 1px solid #ecdcc0;
  border-radius: 10px;
}

card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #c49a50;
  padding: 2px 9px;
  border-radius: 10px;
  letter-spacing: .5px;
}

card-time {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #8a6e50;
  font-weight: 500;
}

card-content {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #4a3628;
}

card-content mood {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a6e50;
}

note-footer {
  display: block;
  padding: 10px 16px 12px;
  border-top: 1px dashed #e5d0a8;
}

relation-stage {
  font-size: 12px;
  color: #a08060;
  font-weight: 500;
  background: rgba(255, 255, 255, .50);
  padding: 2px 10px;
  border-radius: 10px;
}

/* 今天卡片可折叠 */
.today card-content {
  display: none;
}
.today[open] card-content {
  display: block;
}
.today {
  cursor: pointer;
  position: relative;
}
.today::after {
  content: "▶";
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 10px;
  color: #b09060;
  transition: transform .25s ease;
}
.today[open]::after {
  transform: rotate(90deg);
}

/* ============ 记忆回廊·表格 ============ */
.memory-box mem-wrap { display: block; padding: 8px 12px 14px; }
.memory-box .mem-title {
  margin: 12px 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #6a5a8a;
  text-align: center;
  letter-spacing: 1px;
}
.memory-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: rgba(255, 252, 242, .60);
  border-radius: 5px;
  overflow: hidden;
}
.memory-box th {
  padding: 7px 6px;
  background: linear-gradient(90deg, #a090b8, #c0b0d0);
  color: #fff;
  font-weight: 600;
  letter-spacing: .5px;
}
.memory-box td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(200, 170, 130, .30);
  color: #4a3a28;
  text-align: center;
  vertical-align: top;
}
.memory-box tr:last-child td { border-bottom: none; }
.memory-box tr:nth-child(even) td { background: rgba(220, 190, 140, .08); }

/* ============ 行动推荐·选项 ============ */
.branch-box p {
  margin: 6px 12px;
  padding: 9px 12px;
  background: rgba(255, 252, 242, .55);
  border: 1px solid #e0ca9f;
  border-left: 3px solid #c49a50;
  border-radius: 5px;
  color: #6b4423;
  font-size: 13.5px;
  transition: background .2s ease, transform .2s ease;
}
.branch-box p:hover {
  background: rgba(220, 180, 110, .18);
  transform: translateX(3px);
}

/* ============ 移动端适配 ============ */
@media (max-width: 480px) {
  story-text {
    padding: 16px 14px;
    font-size: 15px;
    line-height: 1.85;
  }
  story-text p { text-indent: 2em; }
  .ui-box summary { font-size: 14px; padding: 10px 14px; }
  .ui-box p { font-size: 13.5px; padding: 0 14px; }
  .heroine-box img { max-height: 240px; }
  note-app { margin: 10px 0; }
  note-header { padding: 10px 12px; }
  note-card { margin: 8px 10px; padding: 10px 12px; }
  .memory-box table { font-size: 11px; }
  .memory-box th, .memory-box td { padding: 5px 3px; }
  .ui-box .sub-title { margin: 8px 14px 4px; }
}