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

/* ============ 正文叙事 ============ */
text {
  display: block;
  background: linear-gradient(135deg, #fffafb, #fff5f8);
  border-left: 3px solid #ffb3d1;
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  line-height: 2;
  color: #3d1f2d;
  margin: 10px 0;
}
text p {
  margin: 0 0 10px 0;
}
text p:last-child {
  margin-bottom: 0;
}

/* ============ 折叠卡片通用 ============ */
details {
  background: #fff8fb;
  border: 1px solid #ffdde9;
  border-radius: 14px;
  margin: 6px 0;
  overflow: hidden;
  transition: box-shadow .3s;
}
details[open] {
  box-shadow: 0 4px 16px rgba(255, 100, 150, .10);
}
details summary {
  background: linear-gradient(135deg, #ffe8f2, #ffd6e7);
  padding: 11px 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #b83060;
  letter-spacing: .6px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  transition: background .25s;
}
details summary:hover {
  background: linear-gradient(135deg, #ffd6e7, #ffc5d9);
}
details summary::-webkit-details-marker {
  display: none;
}

/* ============ 场景卡片 ============ */
.sw-scene {
  padding: 10px 14px;
}
.sw-scene p {
  margin: 4px 0;
  font-size: 13px;
  color: #7a3550;
  font-weight: 500;
}

/* ============ 通用信息列表 ============ */
.sw-info {
  padding: 10px 14px;
}
.sw-info p {
  margin: 5px 0;
  font-size: 13px;
  color: #4a2535;
  line-height: 1.7;
  border-bottom: 1px dashed #ffe0ec;
  padding-bottom: 4px;
}
.sw-info p:last-child {
  border-bottom: none;
}

/* ============ 人物图片美化（姝婉等）============ */
.sw-stat > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  margin: 8px auto 10px;
  border-radius: 14px;
  border: 2px solid #ffc5d9;
  box-shadow:
    0 2px 10px rgba(200, 80, 120, .14),
    0 0 0 5px rgba(255, 210, 225, .20);
  object-fit: contain;
  background: #fef8fa;
}

/* ============ 着装 ============ */
.sw-dress {
  background: #fff0f6;
  margin: 0 10px;
  border-radius: 10px;
  padding: 10px 14px;
}
.sw-dress-title {
  font-size: 12px;
  font-weight: 700;
  color: #c0385a;
  letter-spacing: .8px;
  margin: 0 0 6px 0 !important;
  border-bottom: none !important;
}
.sw-dress p {
  margin: 4px 0 !important;
  font-size: 13px;
  color: #5a2a3a;
  border-bottom: none !important;
}

/* ============ 姿势 ============ */
.sw-pose {
  background: linear-gradient(135deg, #fdf0f8, #fce8f4);
  margin: 8px 10px 0;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #f0c5df;
}
.sw-pose-title {
  font-size: 12px;
  font-weight: 700;
  color: #c0385a;
  letter-spacing: .8px;
  margin: 0 0 6px 0 !important;
  border-bottom: none !important;
}
.sw-pose p {
  margin: 4px 0 !important;
  font-size: 13px;
  color: #5a2a3a;
  border-bottom: none !important;
}

/* ============ 性器官 ============ */
.sw-body {
  background: linear-gradient(135deg, #fff5f8, #ffe8f2);
  margin: 8px 10px 10px;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #ffc5d9;
}
.sw-body-title {
  font-size: 12px;
  font-weight: 700;
  color: #c0385a;
  letter-spacing: .8px;
  margin: 0 0 8px 0 !important;
  border-bottom: none !important;
}
.sw-body p {
  margin: 5px 0 !important;
  font-size: 12.5px;
  color: #5a2535;
  line-height: 1.7;
  border-bottom: 1px dashed #ffd6e7;
  padding-bottom: 4px !important;
}
.sw-body p:last-child {
  border-bottom: none !important;
}

/* ============ 远程模式隐藏敏感区块 ============ */
.sw-stat-remote .sw-dress {
  display: none;
}
.sw-stat-remote .sw-pose {
  display: none;
}
.sw-stat-remote .sw-body {
  display: none;
}

/* ============ 子宫状态（姝婉/李弄月共用）============ */
.sw-pose-title ~ p:has(> :not(span)) {
  /* 针对“子宫：...”这类独立段落，挂载在姿势标题之后 */
  margin: 6px 10px 10px !important;
  padding: 8px 14px;
  background: #fff0f6;
  border-radius: 10px;
  font-size: 12.5px;
  color: #b83060;
  line-height: 1.6;
  border: 1px solid #ffd6e7;
}

/* ============ 李弄月角色块 ============ */
details.sw-stat > p {
  margin: 5px 14px;
  font-size: 13px;
  color: #4a2535;
  line-height: 1.7;
}
details.sw-stat > p:first-of-type {
  margin-top: 10px;
}

/* ============ 三日Cosplay动态·微信式布局 ============ */
.sw-chat {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Cosplay图片展示区（CSS图库）===== */
.sw-cos-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 3/4;
  margin: 0 auto 6px auto;
  border-radius: 16px;
  border: 2px solid #ffc5d9;
  box-shadow:
    0 4px 16px rgba(255, 100, 150, .18),
    0 0 0 5px rgba(255, 210, 225, .25);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fef8fa;
  position: relative;
  overflow: hidden;
}
.sw-cos-photo.cos-nalan {
  background-image: url('https://origin.picgo.net/2026/06/16/IMG_20260616_15163833f4e1c0aeb02c3a.png');
}
.sw-cos-photo.cos-raiden {
  background-image: url('https://origin.picgo.net/2026/06/16/IMG_20260616_131635cb2ae3a1766b49a2.png');
}
.sw-cos-photo.cos-saber {
  background-image: url('https://origin.picgo.net/2026/06/16/IMG_20260616_1726596dcf0845a26610b6.png');
}
.sw-cos-photo.cos-yaya {
  background-image: url('https://origin.picgo.net/2026/06/16/IMG_20260616_13185640868a9dabe798ec.png');
}
.sw-cos-photo.cos-mikasa {
  background-image: url('https://origin.picgo.net/2026/06/16/IMG_20260616_1704462dbc497e16d662f1.png');
}
.sw-cos-photo.cos-hanekawa {
  background-image: url('https://origin.picgo.net/2026/06/16/IMG_20260616_163744672f8175b935f1d6.png');
}
.sw-cos-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 180, 210, .15) 100%);
  pointer-events: none;
}

.sw-row {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 8px;
}
.sw-bubble {
  background: linear-gradient(135deg, #ff7aab, #ff4d8d);
  color: #fff;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 78%;
  box-shadow: 0 3px 10px rgba(255, 77, 141, .25);
  word-wrap: break-word;
}
.sw-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3d1, #ff6b9d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 157, .3);
}
.sw-time {
  text-align: right;
  font-size: 11px;
  color: #c08098;
  padding-right: 4px;
  margin-top: 2px;
}

/* ============ 记忆回廊 ============ */
.sw-memory {
  padding: 10px 14px;
}
.sw-mem-title {
  font-size: 12px;
  font-weight: 700;
  color: #c0385a;
  letter-spacing: .8px;
  margin: 8px 0 6px 0;
  padding: 0;
}
.sw-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  border-radius: 8px;
}
.sw-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 360px;
}
.sw-table-wrap th {
  background: linear-gradient(135deg, #ffd6e7, #ffc5d9);
  color: #b83060;
  padding: 7px 10px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.sw-table-wrap td {
  background: #fffafb;
  color: #4a2535;
  padding: 6px 10px;
  border-bottom: 1px solid #ffe0ec;
  vertical-align: top;
  line-height: 1.6;
}
.sw-table-wrap tr:last-child td {
  border-bottom: none;
}
.sw-table-wrap tr:hover td {
  background: #fff0f6;
}

/* ============ 剧情分支 ============ */
details:has(summary:contains("剧情分支")) summary {
  background: linear-gradient(135deg, #ffe8f2, #ffd6e7);
}
details:has(summary:contains("剧情分支")) > p {
  margin: 6px 12px;
  padding: 10px 14px;
  background: #fff5f8;
  border: 1px solid #ffd6e7;
  border-radius: 10px;
  font-size: 14px;
  color: #4a2535;
  line-height: 1.6;
  cursor: pointer;
  transition: all 0.2s ease;
}
details:has(summary:contains("剧情分支")) > p:hover {
  background: linear-gradient(135deg, #ffe4ef, #ffd6e7);
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(255, 100, 150, .15);
  border-color: #ffb3d1;
}
details:has(summary:contains("剧情分支")) > p:last-child {
  margin-bottom: 10px;
}

/* ============ 行动推荐 ============ */
details:has(summary:contains("🌸行动推荐")) summary {
  background: linear-gradient(135deg, #ffe8f2, #ffd6e7);
}
details:has(summary:contains("🌸行动推荐")) > p {
  margin: 6px 12px;
  padding: 10px 14px;
  background: #fff5f8;
  border: 1px solid #ffd6e7;
  border-radius: 10px;
  font-size: 14px;
  color: #4a2535;
  line-height: 1.6;
  cursor: pointer;
  transition: all 0.2s ease;
}
details:has(summary:contains("🌸行动推荐")) > p:hover {
  background: linear-gradient(135deg, #ffe4ef, #ffd6e7);
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(255, 100, 150, .15);
  border-color: #ffb3d1;
}
details:has(summary:contains("🌸行动推荐")) > p:last-child {
  margin-bottom: 10px;
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .sw-stat > img {
    max-height: 240px;
  }
  .sw-cos-photo {
    max-width: 280px;
  }
  details:has(summary:contains("剧情分支")) > p,
  details:has(summary:contains("🌸行动推荐")) > p {
    margin: 5px 8px;
    padding: 8px 12px;
    font-size: 13.5px;
  }
}