/* ═══════════════════════════════════════
   「风铃悬于无风之夏」内置CSS 完整版
   场景·正文·状态栏·平台UI·加载动画
   ═══════════════════════════════════════ */

/* ──────────────────────────────
   场景标签 · 旧时光胶片风
   ────────────────────────────── */
scene {
  display: block;
  margin: 0 0 2px 0;
  padding: 14px 18px;
  background: rgba(240, 230, 208, 0.88);
  border-top: 2px solid #5a4030;
  border-bottom: 2px solid #5a4030;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 3px 14px rgba(90, 64, 48, 0.08);
  position: relative;
  font-family: "Noto Serif SC", "Source Han Serif CN", "STSong", serif;
}

scene::before {
  content: "🎐";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.4;
}

scene p {
  margin: 4px 0;
  color: #5a4030;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

/* ──────────────────────────────
   正文区域 · 暖纸卷页
   三重选择器确保命中
   ────────────────────────────── */
body-ui,
.wl-body,
text {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 16px 0;
  padding: 30px 24px 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(250, 245, 235, 0.96) 100%);
  border: 1px solid rgba(212, 168, 124, 0.34);
  border-left: 5px solid #d4a87c;
  border-radius: 0 16px 16px 2px;
  box-shadow:
    0 6px 24px rgba(90, 64, 48, 0.10),
    0 1px 4px rgba(90, 64, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body-ui::before,
.wl-body::before,
text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4a87c 0%, rgba(212,168,124,0.25) 35%, rgba(196,138,138,0.28) 75%, #c48a8a 100%);
}

body-ui::after,
.wl-body::after,
text::after {
  content: "🎐";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 14px;
  opacity: 0.16;
  pointer-events: none;
}

body-ui p,
.wl-body p,
text p {
  margin: 0 0 18px 0;
  color: #3e2f20;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.35px;
  text-align: justify;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

body-ui p:last-child,
.wl-body p:last-child,
text p:last-child {
  margin-bottom: 0;
}

body-ui p:first-of-type::first-letter,
.wl-body p:first-of-type::first-letter,
text p:first-of-type::first-letter {
  float: left;
  font-size: 2.15em;
  line-height: 1;
  margin: 2px 8px 0 0;
  color: #9e5050;
  font-family: "Noto Serif SC", "Source Han Serif CN", "STSong", serif;
  font-weight: 700;
}

body-ui p + p,
.wl-body p + p,
text p + p {
  margin-top: 2px;
}

/* 正文内对话 */
body-ui font,
.wl-body font,
text font {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 正文内心声 */
body-ui i font,
.wl-body i font,
text i font {
  font-size: 14px;
  letter-spacing: 0.5px;
  background: rgba(158, 80, 80, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border-left: 2px solid rgba(158, 80, 80, 0.35);
}

/* ──────────────────────────────
   状态栏总容器
   ────────────────────────────── */
status {
  display: block;
  margin: 12px 0 0 0;
}

/* ──────────────────────────────
   动画
   ────────────────────────────── */
@keyframes breathGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────
   状态栏通用基底 · 玻璃态
   ────────────────────────────── */
status details {
  display: block;
  margin: 10px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(180, 205, 225, 0.3);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(120, 150, 180, 0.1);
}

status summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 12px 42px 12px 16px;
  border-left: 4px solid #7ca7c0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #2d3436;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  transition: all 0.3s ease;
}

status summary::-webkit-details-marker { display: none; }
status summary::marker { content: ""; }

status summary::after {
  content: "▸";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

status details[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
  opacity: 1;
}

status summary:hover {
  border-left-width: 6px;
  padding-left: 14px;
}

status details[open] summary {
  border-bottom: 1px solid rgba(180, 205, 225, 0.2);
  border-radius: 12px 12px 0 0;
}

status details p {
  margin: 0;
  padding: 5px 16px;
  color: #3a3a3a;
  font-size: 13.5px;
  line-height: 1.72;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

status details p:first-of-type { padding-top: 13px; }
status details p:last-of-type { padding-bottom: 14px; }

status details[open] > p {
  animation: fadeSlideUp 0.35s ease;
}

status details b {
  color: #5a7a8a;
  font-size: 13.5px;
  font-weight: 700;
}

/* ══════════════════════════════
   ① 风铃低语 · 靛蓝
   ══════════════════════════════ */
status details:nth-of-type(1) summary {
  border-left-color: #6b8cae;
  background: rgba(235, 242, 250, 0.82);
  animation: breathGlow 3s ease-in-out infinite;
}
status details:nth-of-type(1) summary::after { content: "♪"; color: #6b8cae; }
status details:nth-of-type(1) summary:hover {
  background: rgba(225, 235, 248, 0.92);
  border-left-color: #5a7a9e;
  box-shadow: inset 0 0 12px rgba(107, 140, 174, 0.08);
}
status details:nth-of-type(1)[open] summary::after { color: #4a6a8e; }
status details:nth-of-type(1) p:nth-of-type(1) { color: #b06a6a; font-weight: 600; }
status details:nth-of-type(1) p:nth-of-type(2) { color: #5a7a9e; font-weight: 600; }
status details:nth-of-type(1) p:nth-of-type(3) { color: #6a6a6a; font-weight: 600; }

/* ══════════════════════════════
   ② 叶铃音·此刻 · 樱粉
   ══════════════════════════════ */
status details:nth-of-type(2) summary {
  border-left-color: #c48a8a;
  background: rgba(250, 240, 240, 0.82);
  animation: breathGlow 3.5s ease-in-out infinite;
}
status details:nth-of-type(2) summary::after { content: "❀"; color: #c48a8a; }
status details:nth-of-type(2) summary:hover {
  background: rgba(248, 232, 232, 0.92);
  border-left-color: #b07a7a;
  box-shadow: inset 0 0 12px rgba(196, 138, 138, 0.08);
}
status details:nth-of-type(2)[open] summary::after { color: #a06a6a; }
status details:nth-of-type(2) p { background: rgba(255, 248, 248, 0.5); }

/* ══════════════════════════════
   ③ 用户轮廓 · 暖棕
   ══════════════════════════════ */
status details:nth-of-type(3) summary {
  border-left-color: #9a7a5a;
  background: rgba(248, 242, 235, 0.82);
}
status details:nth-of-type(3) summary::after { content: "◈"; color: #9a7a5a; }
status details:nth-of-type(3) summary:hover {
  background: rgba(245, 238, 228, 0.92);
  border-left-color: #8a6a4a;
  box-shadow: inset 0 0 12px rgba(154, 122, 90, 0.08);
}
status details:nth-of-type(3)[open] summary::after { color: #7a5a3a; }
status details:nth-of-type(3) p { background: rgba(252, 248, 242, 0.5); }

/* ══════════════════════════════
   ④-⑥ NPC状态栏 · 草绿
   ══════════════════════════════ */
status details:nth-of-type(n+4):nth-last-of-type(n+6) summary {
  border-left-color: #7a9a7a;
  background: rgba(240, 248, 240, 0.82);
}
status details:nth-of-type(n+4):nth-last-of-type(n+6) summary::after { content: "✿"; color: #7a9a7a; }
status details:nth-of-type(n+4):nth-last-of-type(n+6) summary:hover {
  background: rgba(232, 245, 232, 0.92);
  border-left-color: #6a8a6a;
  box-shadow: inset 0 0 12px rgba(122, 154, 122, 0.08);
}
status details:nth-of-type(n+4):nth-last-of-type(n+6)[open] summary::after { color: #5a7a5a; }
status details:nth-of-type(n+4):nth-last-of-type(n+6) p { background: rgba(245, 252, 245, 0.5); }

/* ══════════════════════════════
   ⑦ 记忆区 · 琥珀
   ══════════════════════════════ */
status details:nth-last-of-type(5) summary {
  border-left-color: #b89a60;
  background: rgba(250, 245, 235, 0.82);
}
status details:nth-last-of-type(5) summary::after { content: "◇"; color: #b89a60; }
status details:nth-last-of-type(5) summary:hover {
  background: rgba(248, 240, 225, 0.92);
  border-left-color: #a88a50;
  box-shadow: inset 0 0 12px rgba(184, 154, 96, 0.08);
}
status details:nth-last-of-type(5)[open] summary::after { color: #987a40; }
status details:nth-last-of-type(5) p { background: rgba(255, 250, 240, 0.5); }

/* ══════════════════════════════
   ⑧ 关系图谱 · 薰衣草
   ══════════════════════════════ */
status details:nth-last-of-type(4) summary {
  border-left-color: #8a7aaa;
  background: rgba(245, 240, 252, 0.82);
}
status details:nth-last-of-type(4) summary::after { content: "∞"; color: #8a7aaa; }
status details:nth-last-of-type(4) summary:hover {
  background: rgba(240, 235, 250, 0.92);
  border-left-color: #7a6a9a;
  box-shadow: inset 0 0 12px rgba(138, 122, 170, 0.08);
}
status details:nth-last-of-type(4)[open] summary::after { color: #6a5a8a; }
status details:nth-last-of-type(4) p { background: rgba(250, 248, 255, 0.5); }

/* ══════════════════════════════
   ⑨ 人物档案 · 淡橘
   ══════════════════════════════ */
status details:nth-last-of-type(3) summary {
  border-left-color: #c0886a;
  background: rgba(252, 244, 238, 0.82);
}
status details:nth-last-of-type(3) summary::after { content: "☘"; color: #c0886a; }
status details:nth-last-of-type(3) summary:hover {
  background: rgba(250, 240, 232, 0.92);
  border-left-color: #b0785a;
  box-shadow: inset 0 0 12px rgba(192, 136, 106, 0.08);
}
status details:nth-last-of-type(3)[open] summary::after { color: #a0684a; }
status details:nth-last-of-type(3) p { background: rgba(255, 250, 245, 0.5); }

/* ══════════════════════════════
   ⑩ 地图 · 青瓷
   ══════════════════════════════ */
status details:nth-last-of-type(2) summary {
  border-left-color: #6a9a9a;
  background: rgba(238, 248, 248, 0.82);
}
status details:nth-last-of-type(2) summary::after { content: "⊕"; color: #6a9a9a; }
status details:nth-last-of-type(2) summary:hover {
  background: rgba(230, 245, 245, 0.92);
  border-left-color: #5a8a8a;
  box-shadow: inset 0 0 12px rgba(106, 154, 154, 0.08);
}
status details:nth-last-of-type(2)[open] summary::after { color: #4a7a7a; }
status details:nth-last-of-type(2) p {
  background: rgba(245, 252, 252, 0.5);
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 12.5px;
  line-height: 1.65;
  letter-spacing: 0;
}

/* ══════════════════════════════
   ⑪ 风向建议 · 暖金
   ══════════════════════════════ */
status details:last-of-type summary {
  border-left-color: #b8a050;
  background: rgba(252, 248, 235, 0.82);
}
status details:last-of-type summary::after { content: "✦"; color: #b8a050; }
status details:last-of-type summary:hover {
  background: rgba(250, 245, 225, 0.92);
  border-left-color: #a89040;
  box-shadow: inset 0 0 12px rgba(184, 160, 80, 0.08);
}
status details:last-of-type[open] summary::after { color: #988030; }
status details:last-of-type p {
  background: rgba(255, 252, 242, 0.5);
  font-family: "Noto Serif SC", "Source Han Serif CN", "STSong", serif;
  font-style: italic;
  color: #6a5a4a;
}

status details:last-of-type div[data-action] {
  display: inline;
  cursor: pointer;
  border-bottom: 1px dashed rgba(184, 160, 80, 0.4);
  transition: all 0.2s ease;
  padding-bottom: 1px;
}

status details:last-of-type div[data-action]:hover {
  border-bottom-color: rgba(184, 160, 80, 0.8);
  color: #8a7030;
}

status details:last-of-type div[data-action]:active {
  opacity: 0.7;
}

/* ──────────────────────────────
   移动端适配
   ────────────────────────────── */
@media screen and (max-width: 768px) {
  scene {
    padding: 12px 14px;
    margin: 0 0 2px 0;
  }
  scene p { font-size: 13px; }

  body-ui, .wl-body, text {
    padding: 22px 16px 20px;
  }
  body-ui p, .wl-body p, text p {
    font-size: 14.5px;
    line-height: 1.85;
    margin: 0 0 14px 0;
  }
  body-ui p:first-of-type::first-letter,
  .wl-body p:first-of-type::first-letter,
  text p:first-of-type::first-letter {
    font-size: 1.9em;
    margin: 2px 6px 0 0;
  }

  status details {
    margin: 8px 0;
    border-radius: 10px;
  }
  status summary {
    padding: 10px 38px 10px 13px;
    font-size: 13.5px;
  }
  status summary::after { right: 14px; }
  status details p {
    padding: 4px 13px;
    font-size: 13px;
  }
  status details:nth-last-of-type(2) p { font-size: 11.5px; }
}

/* ──────────────────────────────
   backdrop-filter 降级
   ────────────────────────────── */
@supports not (backdrop-filter: blur(10px)) {
  body-ui, .wl-body, text {
    background: rgba(252, 248, 240, 0.97);
  }
  status summary {
    background: rgba(246, 249, 252, 0.96) !important;
  }
  status details p {
    background: rgba(248, 250, 252, 0.94) !important;
  }
}

/* ═══════════════════════════════════════
   🎐 平台UI美化系统
   ═══════════════════════════════════════ */

/* ═══════════════════════════════
   1. 输入框美化
   ═══════════════════════════════ */
textarea,
input[type="text"],
input[type="search"] {
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.4) !important;
  border-radius: 12px !important;
  color: #3a2818 !important;
  padding: 12px 16px !important;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  box-shadow:
    inset 0 2px 6px rgba(90, 64, 48, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s ease !important;
}

textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus {
  background: #fff !important;
  border-color: #d4a87c !important;
  box-shadow:
    inset 0 2px 6px rgba(90, 64, 48, 0.04),
    0 0 0 3px rgba(212, 168, 124, 0.18) !important;
  outline: none !important;
}

textarea::placeholder,
input::placeholder {
  color: #b0a898 !important;
  opacity: 0.6 !important;
}

/* ═══════════════════════════════
   2. 按钮美化
   ═══════════════════════════════ */
button,
.button,
[role="button"] {
  background: linear-gradient(135deg, #faf5ef 0%, #f0e6d0 100%) !important;
  color: #8b4040 !important;
  border: 1px solid rgba(210, 180, 140, 0.4) !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-family: "Noto Serif SC", "Source Han Serif CN", serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow:
    0 2px 8px rgba(90, 64, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  position: relative !important;
  overflow: hidden !important;
}

button::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
  transition: left 0.5s ease !important;
}

button:hover {
  background: linear-gradient(135deg, #8b4040 0%, #6a2e2e 100%) !important;
  color: #faf5ef !important;
  border-color: #8b4040 !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 4px 16px rgba(139, 64, 64, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

button:hover::before {
  left: 100% !important;
}

button:active {
  transform: translateY(0) !important;
  box-shadow:
    0 2px 6px rgba(90, 64, 48, 0.1),
    inset 0 2px 4px rgba(90, 64, 48, 0.08) !important;
}

button:disabled {
  background: #e0d8cc !important;
  color: #b0a898 !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.6 !important;
}

button[type="submit"],
button.primary,
.button-primary {
  background: linear-gradient(135deg, #8b4040 0%, #6a2e2e 100%) !important;
  color: #faf5ef !important;
  border-color: #6a2e2e !important;
  font-weight: 600 !important;
}

button[type="submit"]:hover,
button.primary:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #6a2e2e 0%, #4a1e1e 100%) !important;
  box-shadow:
    0 6px 20px rgba(139, 64, 64, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ═══════════════════════════════
   3. 评论区美化
   ═══════════════════════════════ */
.comment,
.comment-item,
[class*="comment"] {
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.3) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 2px 8px rgba(90, 64, 48, 0.06) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.comment::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 4px !important;
  height: 100% !important;
  background: linear-gradient(180deg, #d4a87c, #c48a8a) !important;
  border-radius: 12px 0 0 12px !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.comment:hover {
  box-shadow: 0 4px 16px rgba(90, 64, 48, 0.1) !important;
  transform: translateX(4px) !important;
}

.comment:hover::before {
  opacity: 1 !important;
}

.comment-author {
  font-weight: 600 !important;
  color: #8b4040 !important;
  font-size: 14px !important;
}

.comment-time {
  font-size: 12px !important;
  color: #b0a898 !important;
}

.comment-content,
.comment-body {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #3a2818 !important;
}

/* ═══════════════════════════════
   4. 模组选择器美化
   ═══════════════════════════════ */
select {
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.4) !important;
  border-radius: 10px !important;
  padding: 10px 36px 10px 14px !important;
  font-family: "Noto Serif SC", "Source Han Serif CN", serif !important;
  font-size: 14px !important;
  color: #3a2818 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow:
    0 2px 6px rgba(90, 64, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b4040' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

select:hover { border-color: #d4a87c !important; }

select:focus {
  border-color: #d4a87c !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 124, 0.18) !important;
  outline: none !important;
}

option {
  background: #faf5ef !important;
  color: #3a2818 !important;
}

/* ═══════════════════════════════
   5. 链接美化
   ═══════════════════════════════ */
a {
  color: #8b4040 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}

a:hover {
  color: #6a2e2e !important;
  border-bottom-color: #6a2e2e !important;
}

/* ═══════════════════════════════
   6. 分隔线美化
   ═══════════════════════════════ */
hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(210, 180, 140, 0.4), transparent) !important;
  margin: 24px 0 !important;
  position: relative !important;
}

hr::after {
  content: "🎐" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #f0e6d0 !important;
  padding: 0 12px !important;
  font-size: 10px !important;
  opacity: 0.4 !important;
}

/* ═══════════════════════════════
   7. 复选框 / 单选框
   ═══════════════════════════════ */
input[type="checkbox"],
input[type="radio"] {
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid rgba(210, 180, 140, 0.5) !important;
  border-radius: 4px !important;
  background: #faf5ef !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.2s ease !important;
}

input[type="radio"] { border-radius: 50% !important; }

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: #8b4040 !important;
  border-color: #8b4040 !important;
}

input[type="checkbox"]:checked::after {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #faf5ef !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

input[type="radio"]:checked::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 8px !important;
  height: 8px !important;
  background: #faf5ef !important;
  border-radius: 50% !important;
}

/* ═══════════════════════════════
   8. 滑块美化
   ═══════════════════════════════ */
input[type="range"] {
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: rgba(210, 180, 140, 0.4) !important;
  border-radius: 999px !important;
  outline: none !important;
  cursor: pointer !important;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  background: #8b4040 !important;
  border: 2px solid #faf5ef !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(139, 64, 64, 0.3) !important;
  transition: all 0.2s ease !important;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2) !important;
  box-shadow: 0 3px 10px rgba(139, 64, 64, 0.4) !important;
}

/* ═══════════════════════════════
   9. 表格美化
   ═══════════════════════════════ */
table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.3) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

thead {
  background: linear-gradient(135deg, rgba(212, 168, 124, 0.12), rgba(196, 138, 138, 0.08)) !important;
}

th {
  padding: 14px 16px !important;
  font-weight: 600 !important;
  color: #8b4040 !important;
  text-align: left !important;
  border-bottom: 2px solid rgba(210, 180, 140, 0.25) !important;
  font-family: "Noto Serif SC", "Source Han Serif CN", serif !important;
}

td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(210, 180, 140, 0.15) !important;
  color: #3a2818 !important;
}

tr:last-child td { border-bottom: none !important; }
tr:hover { background: rgba(232, 168, 124, 0.06) !important; }

/* ═══════════════════════════════
   10. 代码块美化
   ═══════════════════════════════ */
pre, code {
  background: #2e2520 !important;
  color: #e8dcc8 !important;
  border: 1px solid #4a3f35 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: "SF Mono", "Menlo", "Consolas", monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  overflow-x: auto !important;
}

code { padding: 2px 6px !important; display: inline !important; }

/* ═══════════════════════════════
   11. 引用块美化
   ═══════════════════════════════ */
blockquote {
  background: rgba(212, 168, 124, 0.06) !important;
  border-left: 4px solid #d4a87c !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 16px 20px !important;
  margin: 16px 0 !important;
  color: #5a4030 !important;
  font-style: italic !important;
  font-family: "Noto Serif SC", "Source Han Serif CN", serif !important;
  position: relative !important;
}

blockquote::before {
  content: "\201C" !important;
  position: absolute !important;
  top: 8px !important;
  left: 12px !important;
  font-size: 48px !important;
  color: #d4a87c !important;
  opacity: 0.15 !important;
  font-family: Georgia, serif !important;
}

/* ═══════════════════════════════
   12. 进度条美化
   ═══════════════════════════════ */
progress {
  appearance: none !important;
  width: 100% !important;
  height: 8px !important;
  border: none !important;
  border-radius: 999px !important;
  background: rgba(210, 180, 140, 0.3) !important;
  overflow: hidden !important;
}

progress::-webkit-progress-bar {
  background: rgba(210, 180, 140, 0.3) !important;
  border-radius: 999px !important;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, #d4a87c, #c48a8a) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 8px rgba(212, 168, 124, 0.4) !important;
}

/* ═══════════════════════════════
   13. 通知/提示框
   ═══════════════════════════════ */
.notification,
.alert,
.toast,
[class*="notification-"],
[class*="alert-"] {
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.3) !important;
  border-left: 4px solid #d4a87c !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 16px rgba(90, 64, 48, 0.08) !important;
  font-size: 14px !important;
  color: #3a2818 !important;
  animation: fl-slideIn 0.4s ease !important;
}

@keyframes fl-slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════
   14. 加载状态
   ═══════════════════════════════ */
.loading,
.spinner,
[class*="loading"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #8b4040 !important;
  font-size: 14px !important;
}

.loading::before {
  content: "" !important;
  width: 16px !important;
  height: 16px !important;
  border: 2px solid rgba(210, 180, 140, 0.4) !important;
  border-top-color: #8b4040 !important;
  border-radius: 50% !important;
  animation: fl-spin 0.8s linear infinite !important;
}

@keyframes fl-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════
   15. 隐藏原生加载三圆点 + 自定义加载框
   ═══════════════════════════════ */
.flex.gap-2.w-full.h-full.items-center.justify-center > span {
  display: none !important;
}

.flex.gap-2.w-full.h-full.items-center.justify-center {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
  isolation: isolate !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  width: min(94%, 580px) !important;
  min-width: min(94%, 300px) !important;
  max-width: 580px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  margin: auto !important;
  padding: 24px 60px !important;
  align-items: center !important;
  justify-content: center !important;
  writing-mode: horizontal-tb !important;
  border: 1px solid rgba(210, 180, 140, 0.5) !important;
  border-radius: 16px !important;
  color: #5a4030 !important;
  background-color: #f0e6d0 !important;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212, 168, 124, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 75%, rgba(196, 138, 138, 0.08) 0 2px, transparent 3px),
    linear-gradient(135deg, #f5ead5 0%, #faf5ef 30%, #f0e6d0 60%, #faf5ef 85%, #ead8c0 100%) !important;
  box-shadow:
    inset 0 0 0 3px rgba(255, 250, 240, 0.6),
    inset 0 0 20px rgba(90, 64, 48, 0.08),
    0 8px 32px rgba(90, 64, 48, 0.15),
    0 0 0 1px rgba(255, 248, 230, 0.6) !important;
  animation: fl-frame-breathe 3.6s ease-in-out infinite !important;
}

.flex.gap-2.w-full.h-full.items-center.justify-center::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 8px 20px !important;
  border: 1px solid rgba(212, 168, 124, 0.3) !important;
  border-radius: 10px !important;
  pointer-events: none !important;
  background: transparent !important;
  box-shadow: inset 0 0 16px rgba(212, 168, 124, 0.06) !important;
  animation: fl-inner-glow 4s ease-in-out infinite !important;
}

.flex.gap-2.w-full.h-full.items-center.justify-center::after {
  content: "🎐  风铃轻摇 · 故事将至  🎐" !important;
  display: block !important;
  position: relative !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  padding: 8px 20px !important;
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  text-align: center !important;
  font-family: "Noto Serif SC", "Source Han Serif CN", "STSong", serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.2em !important;
  color: #5a4030 !important;
  border-top: 1px solid rgba(212, 168, 124, 0.3) !important;
  border-bottom: 1px solid rgba(212, 168, 124, 0.3) !important;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.7) 20%, rgba(255, 248, 235, 0.85) 50%, rgba(255, 250, 240, 0.7) 80%, transparent) !important;
  text-shadow: 0 1px 0 rgba(255, 250, 230, 0.9) !important;
  animation: fl-text-breathe 2.4s ease-in-out infinite !important;
}

@keyframes fl-frame-breathe {
  0%, 100% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 250, 240, 0.6),
      inset 0 0 20px rgba(90, 64, 48, 0.08),
      0 8px 24px rgba(90, 64, 48, 0.12),
      0 0 0 1px rgba(255, 248, 230, 0.6) !important;
  }
  50% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 252, 245, 0.8),
      inset 0 0 28px rgba(90, 64, 48, 0.12),
      0 12px 32px rgba(90, 64, 48, 0.18),
      0 0 12px rgba(212, 168, 124, 0.15) !important;
  }
}

@keyframes fl-inner-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes fl-text-breathe {
  0%, 100% {
    color: #5a4030 !important;
    letter-spacing: 0.18em !important;
    opacity: 0.75 !important;
  }
  50% {
    color: #8b4040 !important;
    letter-spacing: 0.24em !important;
    opacity: 1 !important;
  }
}

/* ═══════════════════════════════
   16. 模态框
   ═══════════════════════════════ */
.modal,
.dialog,
[class*="modal-"] {
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.4) !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  box-shadow:
    0 12px 48px rgba(90, 64, 48, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  max-width: 600px !important;
  margin: 20px auto !important;
  position: relative !important;
}

.modal::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #d4a87c, #c48a8a, #d4a87c) !important;
  border-radius: 16px 16px 0 0 !important;
}

/* ═══════════════════════════════
   17. 卡片容器
   ═══════════════════════════════ */
.card,
.panel,
[class*="card-"] {
  background: #faf5ef !important;
  border: 1px solid rgba(210, 180, 140, 0.3) !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 3px 12px rgba(90, 64, 48, 0.06) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #d4a87c, #c48a8a, #d4a87c) !important;
  transform: scaleX(0) !important;
  transition: transform 0.4s ease !important;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(90, 64, 48, 0.1) !important;
  transform: translateY(-3px) !important;
}

.card:hover::before { transform: scaleX(1) !important; }

/* ═══════════════════════════════
   18. 标签
   ═══════════════════════════════ */
.tag,
.label,
.badge,
[class*="tag-"] {
  display: inline-block !important;
  padding: 4px 12px !important;
  background: rgba(212, 168, 124, 0.12) !important;
  color: #8b4040 !important;
  border: 1px solid rgba(210, 180, 140, 0.3) !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.tag:hover {
  background: #8b4040 !important;
  color: #faf5ef !important;
  border-color: #8b4040 !important;
}

/* ═══════════════════════════════
   19. 加载框移动端适配
   ═══════════════════════════════ */
@media (max-width: 768px) {
  .flex.gap-2.w-full.h-full.items-center.justify-center {
    width: min(520px, calc(100vw - 150px)) !important;
    min-width: min(520px, calc(100vw - 150px)) !important;
    max-width: min(520px, calc(100vw - 150px)) !important;
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
    position: relative !important;
    margin: 12px 0 12px 0 !important;
    padding: 18px 36px !important;
    left: 78px !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    align-self: flex-start !important;
    flex: none !important;
    transform: none !important;
  }

  .flex.gap-2.w-full.h-full.items-center.justify-center::before {
    inset: 7px 14px !important;
  }

  .flex.gap-2.w-full.h-full.items-center.justify-center::after {
    content: "🎐 风铃轻摇 · 故事将至 🎐" !important;
    font-size: clamp(13px, 3.5vw, 15px) !important;
    letter-spacing: 0.1em !important;
    padding: 7px 10px !important;
  }

  button, .button {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  .card, .panel { padding: 16px !important; }

  .modal, .dialog {
    padding: 20px 16px !important;
    margin: 12px !important;
  }
}

@media (max-width: 360px) {
  .flex.gap-2.w-full.h-full.items-center.justify-center {
    min-width: 250px !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    padding: 16px 24px !important;
  }

  .flex.gap-2.w-full.h-full.items-center.justify-center::after {
    content: "🎐 故事将至 🎐" !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flex.gap-2.w-full.h-full.items-center.justify-center,
  .flex.gap-2.w-full.h-full.items-center.justify-center::before,
  .flex.gap-2.w-full.h-full.items-center.justify-center::after {
    animation: none !important;
  }
}

/* ═══════════════════════════════
   完整CSS结束
   ═══════════════════════════════ */
   /* 取消正文首字放大 */
body-ui p:first-of-type::first-letter,
.wl-body p:first-of-type::first-letter,
text p:first-of-type::first-letter {
  float: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
}
/* ═══════════════════════════════
   状态栏滑动闪烁修复
   原因：backdrop-filter + 动画 + 透明叠层会触发移动端频繁重绘
   ═══════════════════════════════ */

/* 稳定状态栏渲染层 */
status,
status details,
status summary,
status details p {
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
}

/* 关闭状态栏呼吸动画，避免滑动时闪烁 */
status details summary {
  animation: none !important;
}

/* 关闭展开内容动画，避免details区域重绘闪烁 */
status details[open] > p {
  animation: none !important;
}

/* 移除状态栏区域的backdrop-filter，改为稳定实色半透明 */
status summary {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
}

status details p {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
}

/* 移动端进一步降载 */
@media screen and (max-width: 768px) {
  status details {
    box-shadow: 0 2px 8px rgba(120, 150, 180, 0.08) !important;
  }

  status summary {
    transition: border-left-color 0.2s ease, background-color 0.2s ease !important;
  }

  status summary:hover {
    border-left-width: 4px !important;
    padding-left: 13px !important;
  }
}