/* ═══════════════════════════════════════
   🍮 奶油布丁 · Cream Pudding Theme
   完整版：内容 + 平台UI + 加载框
   无动画版
   ═══════════════════════════════════════ */

/* ── 顶部场景栏 ── */
header {
  background: linear-gradient(135deg, #fff4ec, #ffe8d6);
  color: #4a3728;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 14px 20px;
  margin: 0 0 16px 0;
  border: 2px solid #c4b5a0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(180, 160, 130, 0.15);
  position: relative;
}

header::before {
  content: '🍮';
  position: absolute;
  top: -10px;
  right: 18px;
  font-size: 1.1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* ═══════════════════════════════════════
   正文区域 · 强化纸张质感
   ═══════════════════════════════════════ */
text {
  display: block;
  position: relative;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8f0 30%, #fff4ec 60%, #fffdf7 100%);
  color: #3d2e1f;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  padding: 28px 24px;
  margin: 0 0 16px 0;
  border: 2px solid #d9ccba;
  border-radius: 20px;
  box-shadow:
    0 3px 12px rgba(180, 160, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(180, 160, 130, 0.08);
  overflow: hidden;
}

/* 纸张纹理 */
text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(180, 160, 130, 0.018) 0px,
      transparent 1px,
      transparent 3px,
      rgba(180, 160, 130, 0.018) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(180, 160, 130, 0.012) 0px,
      transparent 1px,
      transparent 3px,
      rgba(180, 160, 130, 0.012) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* 左上角暖光装饰 */
text::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 100px;
  height: 100px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 114, 138, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(196, 138, 92, 0.04) 0%, transparent 50%);
  border-radius: 20px 0 0 0;
  pointer-events: none;
  z-index: 0;
}

text p {
  margin: 0 0 14px 0;
  text-indent: 2em;
  text-align: justify;
  word-break: break-word;
  color: #3d2e1f;
  position: relative;
  z-index: 1;
}

text p:last-child {
  margin-bottom: 0;
}

/* 角色对话通用样式 */
text font {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 加粗高亮 */
text p b,
text p strong {
  color: #d4728a;
  font-weight: 700;
}

/* 内心独白 */
text p i,
text p em {
  display: block;
  color: #9b7ec8;
  font-style: italic;
  font-weight: 500;
  padding: 6px 14px;
  margin: 8px 0;
  border-left: 3px solid rgba(155, 126, 200, 0.4);
  background: linear-gradient(90deg, rgba(155, 126, 200, 0.05), transparent 80%);
  border-radius: 0 8px 8px 0;
  position: relative;
  z-index: 1;
}

text p em::after {
  content: '♡';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  opacity: 0.2;
  font-style: normal;
}

/* ═══════════════════════════════════════
   折叠面板通用
   ═══════════════════════════════════════ */
details {
  background: #fffdf7;
  margin: 0 0 12px 0;
  border: 2px solid #d9ccba;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(180, 160, 130, 0.1);
  overflow: hidden;
}

details:hover {
  border-color: #c48a5c;
  box-shadow: 0 3px 12px rgba(196, 138, 92, 0.15);
}

summary {
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #4a3728;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-bottom: 1.5px solid transparent;
  position: relative;
  letter-spacing: 0.02em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '›';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 1.1rem;
  font-weight: 700;
  color: #c4b5a0;
}

details[open] > summary::after {
  transform: translateY(-50%) rotate(270deg);
  color: #c48a5c;
}

details[open] > summary {
  border-bottom: 1.5px solid #e8ddd0;
  background: rgba(255, 244, 236, 0.5);
}

summary:hover {
  background: rgba(255, 244, 236, 0.6);
}

/* 面板内部 */
details > :not(summary) {
  padding: 0 18px;
}

details p {
  margin: 5px 0;
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 500;
  color: #4a3728;
  word-break: break-word;
}

details strong {
  color: #c48a5c;
  font-weight: 700;
}

details hr {
  border: none;
  border-top: 1.5px solid #e8ddd0;
  margin: 10px 0;
}

details ul {
  padding: 0 0 0 6px;
  margin: 4px 0;
}

details li {
  list-style: none;
  font-size: 0.86rem;
  line-height: 1.6;
  font-weight: 500;
  padding: 3px 0;
  color: #4a3728;
  border-bottom: 1px solid #f0e8dd;
}

details li:last-child {
  border-bottom: none;
}

details li::before {
  content: '·';
  color: #d4728a;
  font-weight: 700;
  margin-right: 6px;
}

details code {
  background: #fff4ec;
  color: #c48a5c;
  font-weight: 700;
  padding: 1px 6px;
  border: 1.5px solid #d9ccba;
  border-radius: 6px;
  font-size: 0.84rem;
  font-family: inherit;
}

details > :last-child {
  padding-bottom: 14px;
}

/* ═══════════════════════════════════════
   面板差异化配色
   ═══════════════════════════════════════ */

/* 思维链 · 淡奶茶 */
details:nth-of-type(1) { background: #fdf6ee; border-color: #ddd0be; }
details:nth-of-type(1) > summary { color: #7a6248; border-left: 3px solid #c48a5c; }
details:nth-of-type(1):hover { border-color: #c9a87c; }

/* 林晚晴 · 淡樱粉 */
details:nth-of-type(2) { background: #fff6f6; border-color: #e8c4c4; }
details:nth-of-type(2) > summary { color: #8a4a5c; border-left: 3px solid #d4728a; }
details:nth-of-type(2):hover { border-color: #d4728a; box-shadow: 0 3px 12px rgba(212, 114, 138, 0.12); }

/* 主角 · 淡天蓝 */
details:nth-of-type(3) { background: #f6f9ff; border-color: #c4cedb; }
details:nth-of-type(3) > summary { color: #4a5c72; border-left: 3px solid #7a9ec4; }
details:nth-of-type(3):hover { border-color: #7a9ec4; box-shadow: 0 3px 12px rgba(122, 158, 196, 0.12); }

/* 交互对象 · 淡薰衣草 */
details:nth-of-type(4),
details:nth-of-type(5),
details:nth-of-type(6) { background: #f9f6ff; border-color: #d0c4e0; }
details:nth-of-type(4) > summary,
details:nth-of-type(5) > summary,
details:nth-of-type(6) > summary { color: #6a5a80; border-left: 3px solid #9b7ec8; }
details:nth-of-type(4):hover,
details:nth-of-type(5):hover,
details:nth-of-type(6):hover { border-color: #9b7ec8; box-shadow: 0 3px 12px rgba(155, 126, 200, 0.12); }

/* 记忆区 · 淡蜜糖 */
details:nth-last-of-type(5) { background: #fef9ef; border-color: #ddd0ae; }
details:nth-last-of-type(5) > summary { color: #7a6a3a; border-left: 3px solid #c4a050; }
details:nth-last-of-type(5):hover { border-color: #c4a050; box-shadow: 0 3px 12px rgba(196, 160, 80, 0.12); }

/* 关系图谱 · 淡玫瑰 */
details:nth-last-of-type(4) { background: #fff5f8; border-color: #e0bfc8; }
details:nth-last-of-type(4) > summary { color: #8a4a5c; border-left: 3px solid #d4728a; }
details:nth-last-of-type(4):hover { border-color: #d4728a; box-shadow: 0 3px 12px rgba(212, 114, 138, 0.12); }

/* 人物档案 · 淡抹茶 */
details:nth-last-of-type(3) { background: #f6faf4; border-color: #bcd4b4; }
details:nth-last-of-type(3) > summary { color: #4a6a42; border-left: 3px solid #7aaa6c; }
details:nth-last-of-type(3):hover { border-color: #7aaa6c; box-shadow: 0 3px 12px rgba(122, 170, 108, 0.12); }

/* 日常节奏 · 淡奶茶 */
details:nth-last-of-type(2) { background: #fdf8f0; border-color: #ddd0be; }
details:nth-last-of-type(2) > summary { color: #7a6248; border-left: 3px solid #c48a5c; }
details:nth-last-of-type(2):hover { border-color: #c48a5c; }

/* 日常选择 · 淡蓝莓 */
details:nth-last-of-type(1) { background: #f4f6ff; border-color: #c4c8e0; }
details:nth-last-of-type(1) > summary { color: #5a5a80; border-left: 3px solid #8080c4; }
details:nth-last-of-type(1):hover { border-color: #8080c4; }

/* 日常选择按钮 */
details:nth-last-of-type(1) div[data-action] {
  background: #fffdf7;
  border: 1.5px solid #d9ccba;
  border-radius: 12px;
  padding: 11px 16px;
  margin: 6px 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4a3728;
  cursor: pointer;
  line-height: 1.5;
}

details:nth-last-of-type(1) div[data-action]:hover {
  background: #fff4ec;
  border-color: #c48a5c;
  box-shadow: 0 2px 8px rgba(196, 138, 92, 0.15);
  transform: translateY(-1px);
}

details:nth-last-of-type(1) div[data-action]:nth-child(2) { border-left: 3px solid #d4728a; }
details:nth-last-of-type(1) div[data-action]:nth-child(3) { border-left: 3px solid #c48a5c; }
details:nth-last-of-type(1) div[data-action]:nth-child(4) { border-left: 3px solid #7aaa6c; }
details:nth-last-of-type(1) div[data-action]:nth-child(5) { border-left: 3px solid #c4a050; }
details:nth-last-of-type(1) div[data-action]:nth-child(6) { border-left: 3px solid #9b7ec8; }

details:nth-last-of-type(1) div[data-action]:active {
  transform: translateY(0);
  background: #ffe8d6;
}

/* ═══════════════════════════════════════
   间距
   ═══════════════════════════════════════ */
header + details { margin-top: 0; }
text + details { margin-top: 16px; }
details + details { margin-top: 0; }
details summary + * { margin-top: 8px; }
details:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
   内容区移动端适配
   ═══════════════════════════════════════ */
@media screen and (max-width: 768px) {
  header { font-size: 0.85rem; padding: 12px 16px; border-radius: 14px; }
  text { font-size: 0.93rem; padding: 20px 16px; line-height: 1.85; border-radius: 16px; }
  details { margin: 0 0 10px 0; border-radius: 16px; }
  summary { font-size: 0.86rem; padding: 11px 16px; }
  details > :not(summary) { padding: 0 14px; }
  details p { font-size: 0.84rem; }
  details li { font-size: 0.83rem; }
  details:nth-last-of-type(1) div[data-action] { padding: 9px 12px; border-radius: 10px; }
}


/* ═══════════════════════════════════════
   🧁 平台UI美化 · 奶油布丁风格
   ═══════════════════════════════════════ */

/* ── 输入框 ── */
textarea,
input[type="text"],
input[type="search"] {
  background: #fffdf7 !important;
  border: 1.5px solid #d9ccba !important;
  border-radius: 14px !important;
  color: #3d2e1f !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  box-shadow:
    inset 0 2px 4px rgba(180, 160, 130, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus {
  background: #fff !important;
  border-color: #d4728a !important;
  box-shadow:
    inset 0 2px 4px rgba(180, 160, 130, 0.06),
    0 0 0 3px rgba(212, 114, 138, 0.1) !important;
  outline: none !important;
}

textarea::placeholder,
input::placeholder {
  color: #b8a898 !important;
  opacity: 0.7 !important;
}

/* ── 按钮 ── */
button,
.button,
[role="button"] {
  background: linear-gradient(135deg, #fff4ec, #fffdf7) !important;
  color: #c48a5c !important;
  border: 1.5px solid #d9ccba !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(180, 160, 130, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

button:hover {
  background: linear-gradient(135deg, #d4728a, #c45a72) !important;
  color: #fff !important;
  border-color: #d4728a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(212, 114, 138, 0.2) !important;
}

button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 4px rgba(180, 160, 130, 0.1) !important;
}

button[type="submit"],
button.primary,
.button-primary {
  background: linear-gradient(135deg, #d4728a, #c45a72) !important;
  color: #fff !important;
  border-color: #c45a72 !important;
  font-weight: 700 !important;
}

button[type="submit"]:hover,
button.primary:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #c45a72, #a84860) !important;
  box-shadow: 0 4px 14px rgba(212, 114, 138, 0.25) !important;
}

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

/* ── 下拉选择器 ── */
select {
  background: #fffdf7 !important;
  border: 1.5px solid #d9ccba !important;
  border-radius: 12px !important;
  padding: 10px 36px 10px 14px !important;
  font-size: 14px !important;
  color: #3d2e1f !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(180, 160, 130, 0.1) !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='%23c48a5c' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}

select:hover { border-color: #c48a5c !important; }
select:focus { border-color: #d4728a !important; box-shadow: 0 0 0 3px rgba(212, 114, 138, 0.1) !important; outline: none !important; }

option {
  background: #fffdf7 !important;
  color: #3d2e1f !important;
  padding: 8px 12px !important;
}

/* ── 评论区 ── */
.comment,
.comment-item,
[class*="comment"] {
  background: #fffdf7 !important;
  border: 1.5px solid #d9ccba !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 6px rgba(180, 160, 130, 0.08) !important;
  position: relative !important;
}

.comment:hover {
  border-color: #c48a5c !important;
  box-shadow: 0 3px 10px rgba(196, 138, 92, 0.12) !important;
}

.comment::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 3px !important;
  height: 100% !important;
  background: linear-gradient(180deg, #d4728a, #c48a5c) !important;
  border-radius: 14px 0 0 14px !important;
  opacity: 0 !important;
}

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

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

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

/* ── 卡片容器 ── */
.card,
.panel,
[class*="card-"] {
  background: #fffdf7 !important;
  border: 1.5px solid #d9ccba !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 10px rgba(180, 160, 130, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(180, 160, 130, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* ── 分隔线 ── */
hr {
  border: none !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #d9ccba, transparent) !important;
  margin: 20px 0 !important;
  position: relative !important;
}

hr::after {
  content: '♡' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #fffdf7 !important;
  padding: 0 10px !important;
  color: #d4728a !important;
  font-size: 10px !important;
}

/* ── 链接 ── */
a {
  color: #c48a5c !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
}

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

/* ── 复选框/单选框 ── */
input[type="checkbox"],
input[type="radio"] {
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #d9ccba !important;
  border-radius: 4px !important;
  background: #fffdf7 !important;
  cursor: pointer !important;
  position: relative !important;
}

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

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

input[type="checkbox"]:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #fff !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: #fff !important;
  border-radius: 50% !important;
}

/* ── 滑块 ── */
input[type="range"] {
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: #d9ccba !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: #d4728a !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(212, 114, 138, 0.3) !important;
}

/* ── 标签 ── */
.tag,
.label,
.badge,
[class*="tag-"] {
  display: inline-block !important;
  padding: 4px 12px !important;
  background: #fff4ec !important;
  color: #c48a5c !important;
  border: 1px solid #d9ccba !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.tag:hover {
  background: #d4728a !important;
  color: #fff !important;
  border-color: #d4728a !important;
}

/* ── 通知/提示框 ── */
.notification,
.alert,
.toast,
[class*="notification-"],
[class*="alert-"] {
  background: #fffdf7 !important;
  border: 1.5px solid #d9ccba !important;
  border-left: 4px solid #d4728a !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 3px 10px rgba(180, 160, 130, 0.1) !important;
  font-size: 14px !important;
  color: #3d2e1f !important;
}

/* ── 模态框 ── */
.modal,
.dialog,
[class*="modal-"] {
  background: #fffdf7 !important;
  border: 2px solid #d9ccba !important;
  border-radius: 20px !important;
  padding: 28px 32px !important;
  box-shadow: 0 12px 48px rgba(180, 160, 130, 0.2) !important;
  max-width: 600px !important;
  margin: 20px auto !important;
  position: relative !important;
}

/* ── 代码块 ── */
pre, code {
  background: #2e2820 !important;
  color: #e8e0d6 !important;
  border: 1px solid #4a3f35 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  overflow-x: auto !important;
}

code {
  padding: 2px 6px !important;
  display: inline !important;
  border-radius: 4px !important;
}

/* ── 引用块 ── */
blockquote {
  background: #fff8f0 !important;
  border-left: 4px solid #d4728a !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 16px 20px !important;
  margin: 16px 0 !important;
  color: #6a5a4a !important;
  font-style: italic !important;
  position: relative !important;
}

blockquote::before {
  content: '"' !important;
  position: absolute !important;
  top: 8px !important;
  left: 12px !important;
  font-size: 48px !important;
  color: #d4728a !important;
  opacity: 0.12 !important;
  font-family: Georgia, serif !important;
}

/* ── 表格 ── */
table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fffdf7 !important;
  border: 1.5px solid #d9ccba !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

thead {
  background: linear-gradient(135deg, #fff4ec, #fffdf7) !important;
}

th {
  padding: 12px 16px !important;
  font-weight: 700 !important;
  color: #c48a5c !important;
  text-align: left !important;
  border-bottom: 2px solid #d9ccba !important;
}

td {
  padding: 10px 16px !important;
  border-bottom: 1px solid #f0e8dd !important;
  color: #3d2e1f !important;
}

tr:last-child td { border-bottom: none !important; }
tr:hover { background: #fff8f0 !important; }

/* ── 进度条 ── */
progress {
  appearance: none !important;
  width: 100% !important;
  height: 8px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #d9ccba !important;
  overflow: hidden !important;
}

progress::-webkit-progress-bar {
  background: #d9ccba !important;
  border-radius: 999px !important;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, #d4728a, #c48a5c) !important;
  border-radius: 999px !important;
}


/* ═══════════════════════════════════════
   🍰 加载框 · 奶油布丁（无动画）
   ═══════════════════════════════════════ */

/* 隐藏原生加载圆点 */
.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;
  width: min(94%, 520px) !important;
  min-width: min(94%, 300px) !important;
  max-width: 520px !important;
  height: 140px !important;
  min-height: 140px !important;
  max-height: 140px !important;
  margin: auto !important;
  padding: 24px 48px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #d9ccba !important;
  border-radius: 24px !important;
  color: #4a3728 !important;
  background: linear-gradient(135deg, #fffdf7 0%, #fff4ec 50%, #fffdf7 100%) !important;
  box-shadow:
    0 8px 30px rgba(180, 160, 130, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(255, 248, 240, 0.9) !important;
  overflow: hidden !important;
}

/* 装饰内框 */
.flex.gap-2.w-full.h-full.items-center.justify-center::before {
  content: '' !important;
  position: absolute !important;
  inset: 8px 20px !important;
  border: 1.5px solid rgba(212, 114, 138, 0.12) !important;
  border-radius: 18px !important;
  pointer-events: none !important;
  background: radial-gradient(ellipse at 30% 40%, rgba(212, 114, 138, 0.03) 0%, transparent 60%) !important;
}

/* 加载文字 */
.flex.gap-2.w-full.h-full.items-center.justify-center::after {
  content: '🍮 正在为你准备故事...' !important;
  display: block !important;
  position: relative !important;
  padding: 8px 20px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em !important;
  color: #4a3728 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 236, 0.8) 20%, rgba(255, 244, 236, 0.9) 50%, rgba(255, 244, 236, 0.8) 80%, transparent) !important;
  border-top: 1px solid rgba(196, 138, 92, 0.2) !important;
  border-bottom: 1px solid rgba(196, 138, 92, 0.2) !important;
  border-radius: 8px !important;
}

/* 加载框移动端 */
@media (max-width: 768px) {
  .flex.gap-2.w-full.h-full.items-center.justify-center {
    width: calc(100% - 40px) !important;
    min-width: 260px !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    padding: 20px 30px !important;
    border-radius: 20px !important;
  }
  .flex.gap-2.w-full.h-full.items-center.justify-center::after {
    content: '🍮 准备中...' !important;
    font-size: 14px !important;
    padding: 6px 14px !important;
    letter-spacing: 0.06em !important;
  }
}

/* ═══════════════════════════════════════
   平台UI移动端适配
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  button, .button {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
  .card, .panel {
    padding: 16px !important;
  }
  .modal, .dialog {
    padding: 20px 16px !important;
    margin: 12px !important;
  }
}

/* ═══════════════════════════════════════ */