css
/* ============================================ */
/* 🌊 全民航海求生 · 深海航海风全套美化 v1.1    */
/* ============================================ */

/* ---------- 0. 字体加载 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Ma+Shan+Zheng&family=ZCOOL+XiaoWei&display=swap');

/* ---------- 1. 思维链隐藏 ---------- */
think {
  display: none !important;
}

/* ============================================ */
/* 2. 聊天界面气泡美化（用户输入 + AI生成中）   */
/* ============================================ */

/* 用户消息气泡 —— 黄铜信笺质感（全类名覆盖） */
[class*="user"][class*="message"],
[class*="user"][class*="bubble"],
[class*="User"][class*="Message"],
[class*="User"][class*="Bubble"],
[class*="userMsg"],
[class*="user-msg"],
[class*="my-message"],
[class*="self-message"],
[class*="sent"],
.user-message,
.chat-user,
.message-user,
div[class*="user"] > div[class*="content"],
div[class*="user"] > div[class*="text"] {
  background: linear-gradient(135deg, #f5e6c8 0%, #e8d4a0 50%, #d4b87a 100%) !important;
  border: 2px solid #8b6f3a !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow:
    0 4px 12px rgba(60, 40, 10, 0.3),
    inset 0 1px 2px rgba(255, 248, 220, 0.6),
    inset 0 -2px 4px rgba(139, 111, 58, 0.2) !important;
  color: #3a2810 !important;
  font-family: 'ZCOOL XiaoWei', 'Ma Shan Zheng', serif !important;
  position: relative !important;
  padding: 14px 18px !important;
}

/* AI 消息容器 —— 深海羊皮纸（全类名覆盖） */
[class*="ai"][class*="message"],
[class*="ai"][class*="bubble"],
[class*="AI"][class*="Message"],
[class*="AI"][class*="Bubble"],
[class*="assistant"][class*="message"],
[class*="assistant"][class*="bubble"],
[class*="bot-message"],
[class*="bot-bubble"],
[class*="char-message"],
[class*="received"],
.ai-message,
.chat-ai,
.message-ai,
div[class*="assistant"] > div[class*="content"],
div[class*="assistant"] > div[class*="text"] {
  background:
    radial-gradient(ellipse at top left, rgba(78, 134, 168, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(196, 156, 90, 0.12), transparent 60%),
    linear-gradient(160deg, #1a3a52 0%, #0f2438 100%) !important;
  border: 2px solid #c49c5a !important;
  border-radius: 18px 18px 18px 4px !important;
  box-shadow:
    0 6px 24px rgba(0, 20, 40, 0.5),
    inset 0 1px 0 rgba(196, 156, 90, 0.3),
    0 0 0 1px rgba(196, 156, 90, 0.15) !important;
  color: #e8dcc0 !important;
  padding: 16px 20px !important;
  position: relative !important;
}

/* AI 生成中加载动画气泡（全类名覆盖） */
[class*="loading"],
[class*="Loading"],
[class*="typing"],
[class*="Typing"],
[class*="generating"],
[class*="Generating"],
[class*="pending"],
[class*="thinking"],
[class*="waiting"],
[class*="streaming"],
[class*="skeleton"],
[class*="placeholder-message"] {
  background: linear-gradient(160deg, #1a3a52 0%, #0f2438 100%) !important;
  border: 2px dashed #c49c5a !important;
  border-radius: 18px !important;
  padding: 14px 20px !important;
  color: #f5d98a !important;
  animation: shipWave 2s ease-in-out infinite !important;
  position: relative !important;
}

@keyframes shipWave {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(196,156,90,0.3); }
  50% { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(196,156,90,0.5); }
}

/* 加载点动画 */
[class*="loading"]::after,
[class*="typing"]::after,
[class*="generating"]::after {
  content: '⚓ 起锚中...';
  display: inline-block;
  color: #ffd966;
  font-family: 'ZCOOL XiaoWei', serif;
  font-size: 13px;
  margin-left: 8px;
  animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* 输入框美化（强化覆盖） */
textarea,
input[type="text"],
input:not([type]),
[contenteditable="true"],
[class*="input"] textarea,
[class*="Input"] textarea,
[class*="editor"] textarea,
[class*="chat-input"] textarea,
[class*="message-input"] textarea,
[class*="composer"] textarea,
div[class*="input"][contenteditable] {
  background: linear-gradient(180deg, #f5e6c8 0%, #ecd9b0 100%) !important;
  border: 2px solid #8b6f3a !important;
  border-radius: 12px !important;
  color: #3a2810 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  box-shadow:
    inset 0 2px 6px rgba(60, 40, 10, 0.2),
    0 0 0 1px rgba(196, 156, 90, 0.3) !important;
  padding: 10px 14px !important;
  caret-color: #8b3a1a !important;
}

textarea:focus,
input[type="text"]:focus,
input:not([type]):focus,
[contenteditable="true"]:focus,
div[class*="input"][contenteditable]:focus {
  border-color: #d4af4a !important;
  box-shadow:
    inset 0 2px 6px rgba(60, 40, 10, 0.2),
    0 0 0 3px rgba(212, 175, 74, 0.4) !important;
  outline: none !important;
}

/* 输入框 placeholder 颜色 */
textarea::placeholder,
input::placeholder,
[contenteditable="true"]::before {
  color: rgba(60, 40, 10, 0.45) !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  font-style: italic !important;
}

/* 输入框外层容器 */
[class*="input-container"],
[class*="inputContainer"],
[class*="input-wrapper"],
[class*="composer-wrapper"],
[class*="chat-input-area"] {
  background: linear-gradient(180deg, rgba(15, 36, 56, 0.6) 0%, rgba(26, 58, 82, 0.6) 100%) !important;
  border-top: 2px solid rgba(196, 156, 90, 0.5) !important;
  backdrop-filter: blur(8px) !important;
}

/* ============================================ */
/* 2.5 全局加粗文字美化（不限容器）            */
/* ============================================ */

strong,
b,
[class*="message"] strong,
[class*="bubble"] strong,
[class*="message"] b,
[class*="bubble"] b {
  color: #ffd966 !important;
  text-shadow: 0 0 6px rgba(255, 217, 102, 0.4) !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

/* 用户气泡内的加粗 —— 改用深红色（在浅底色上更醒目） */
[class*="user"][class*="message"] strong,
[class*="user"][class*="bubble"] strong,
[class*="userMsg"] strong,
[class*="my-message"] strong,
[class*="user"][class*="message"] b,
[class*="user"][class*="bubble"] b {
  color: #8b3a1a !important;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.5) !important;
}

/* ============================================ */
/* 3. 顶部环境状态栏 —— 舰桥仪表盘            */
/* ============================================ */

details {
  margin: 14px 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  background:
    linear-gradient(160deg, rgba(15, 36, 56, 0.96) 0%, rgba(26, 58, 82, 0.96) 100%) !important;
  border: 2px solid #c49c5a !important;
  box-shadow:
    0 8px 32px rgba(0, 15, 30, 0.6),
    inset 0 1px 0 rgba(196, 156, 90, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

/* 罗盘装饰 —— 状态栏右上角 */
details::before {
  content: '⚓';
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 28px;
  color: rgba(196, 156, 90, 0.25);
  pointer-events: none;
  z-index: 1;
  animation: anchorSway 4s ease-in-out infinite;
}

@keyframes anchorSway {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

/* 海浪流光底纹 */
details::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(196, 156, 90, 0.06) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: waveFlow 8s linear infinite;
  pointer-events: none;
}

@keyframes waveFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

summary {
  cursor: pointer !important;
  padding: 12px 18px !important;
  font-family: 'Cinzel', 'ZCOOL XiaoWei', serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  color: #f5d98a !important;
  background: linear-gradient(180deg, #2d5876 0%, #1a3a52 100%) !important;
  border-bottom: 2px solid #c49c5a !important;
  letter-spacing: 1.5px !important;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 0 12px rgba(245, 217, 138, 0.4) !important;
  position: relative !important;
  list-style: none !important;
  transition: all 0.3s ease !important;
}

summary::-webkit-details-marker {
  display: none !important;
}

summary::before {
  content: '◆';
  display: inline-block;
  margin-right: 10px;
  color: #d4af4a;
  font-size: 12px;
  transform: rotate(0deg);
  transition: transform 0.4s ease;
  text-shadow: 0 0 8px rgba(212, 175, 74, 0.8);
}

details[open] summary::before {
  transform: rotate(90deg);
  color: #ffd966;
}

summary:hover {
  background: linear-gradient(180deg, #3d6886 0%, #2a4a62 100%) !important;
  color: #fff5d0 !important;
  letter-spacing: 2px !important;
}

/* details 内部内容容器 */
details > *:not(summary) {
  padding: 0 18px !important;
}

details > p,
details > ul,
details > ol,
details > hr,
details > table {
  margin: 10px 18px !important;
  color: #e8dcc0 !important;
  font-family: 'ZCOOL XiaoWei', serif !important;
  line-height: 1.8 !important;
  position: relative !important;
  z-index: 2 !important;
}

/* 分隔线 —— 绳结风格 */
details hr {
  border: none !important;
  height: 18px !important;
  background-image:
    linear-gradient(90deg, transparent 0%, #c49c5a 20%, #d4af4a 50%, #c49c5a 80%, transparent 100%) !important;
  background-size: 100% 2px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
}

details hr::before {
  content: '⚓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, #1a3a52 0%, #0f2438 100%);
  padding: 0 10px;
  color: #d4af4a;
  font-size: 14px;
}

/* 列表样式 */
details ul {
  list-style: none !important;
  padding-left: 8px !important;
}

details ul li {
  position: relative !important;
  padding-left: 22px !important;
  margin: 6px 0 !important;
}

details ul li::before {
  content: '⚓';
  position: absolute;
  left: 0;
  color: #c49c5a;
  font-size: 11px;
  top: 3px;
}

/* ============================================ */
/* 4. 表格美化 —— 古海图账册风                 */
/* ============================================ */

details table {
  width: calc(100% - 36px) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: linear-gradient(180deg, rgba(245, 230, 200, 0.08) 0%, rgba(196, 156, 90, 0.05) 100%) !important;
  border: 1px solid #c49c5a !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow:
    inset 0 0 0 1px rgba(196, 156, 90, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3) !important;
  font-size: 14px !important;
}

details table thead {
  background: linear-gradient(180deg, #c49c5a 0%, #a07d3e 100%) !important;
}

details table th {
  padding: 10px 12px !important;
  color: #1a1208 !important;
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  text-align: left !important;
  letter-spacing: 1px !important;
  border-bottom: 2px solid #8b6f3a !important;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.4) !important;
}

details table td {
  padding: 9px 12px !important;
  color: #e8dcc0 !important;
  border-bottom: 1px dashed rgba(196, 156, 90, 0.3) !important;
  transition: background 0.3s ease !important;
}

details table tbody tr:nth-child(even) td {
  background: rgba(196, 156, 90, 0.06) !important;
}

details table tbody tr:hover td {
  background: rgba(245, 217, 138, 0.15) !important;
  color: #fff5d0 !important;
}

details table tbody tr:last-child td {
  border-bottom: none !important;
}

/* ============================================ */
/* 5. 顶部环境栏特殊样式（带罗盘）             */
/* ============================================ */

details[open]:first-of-type {
  background:
    radial-gradient(circle at 90% 30%, rgba(245, 217, 138, 0.12), transparent 40%),
    linear-gradient(160deg, rgba(15, 36, 56, 0.98) 0%, rgba(26, 58, 82, 0.98) 100%) !important;
  border-color: #ffd966 !important;
  box-shadow:
    0 10px 40px rgba(0, 15, 30, 0.7),
    inset 0 1px 0 rgba(255, 217, 102, 0.5),
    0 0 30px rgba(245, 217, 138, 0.15) !important;
}

details:first-of-type::before {
  content: '🧭';
  font-size: 32px;
  animation: compassSpin 12s linear infinite;
}

@keyframes compassSpin {
  0% { transform: rotate(0deg); opacity: 0.3; }
  50% { transform: rotate(180deg); opacity: 0.6; }
  100% { transform: rotate(360deg); opacity: 0.3; }
}

/* ============================================ */
/* 6. 正文区美化 —— 航海日志风                 */
/* ============================================ */

text {
  display: block !important;
  margin: 20px 0 !important;
  padding: 24px 28px 28px 28px !important;
  background:
    radial-gradient(ellipse at top, rgba(196, 156, 90, 0.08), transparent 70%),
    linear-gradient(180deg, #f4e4c1 0%, #e8d4a0 50%, #ddc488 100%) !important;
  background-blend-mode: normal !important;
  border: 3px double #8b6f3a !important;
  border-radius: 6px !important;
  color: #2a1a08 !important;
  font-family: 'ZCOOL XiaoWei', 'Ma Shan Zheng', 'Noto Serif SC', serif !important;
  font-size: 17px !important;
  line-height: 2.0 !important;
  letter-spacing: 0.8px !important;
  text-indent: 2em !important;
  position: relative !important;
  box-shadow:
    0 8px 30px rgba(60, 40, 10, 0.4),
    inset 0 0 60px rgba(139, 111, 58, 0.15),
    inset 0 0 0 1px rgba(196, 156, 90, 0.5) !important;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.4) !important;
}

/* 正文四角铆钉装饰 */
text::before {
  content: '⚓';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, #c49c5a 0%, #8b6f3a 100%);
  color: #f5e6c8;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #5a4220;
  box-shadow:
    0 4px 12px rgba(60, 40, 10, 0.5),
    inset 0 1px 2px rgba(255, 248, 220, 0.5);
  z-index: 3;
}

text::after {
  content: '~ 航海日志 · 第 N 天 ~';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #c49c5a 0%, #a07d3e 100%);
  color: #1a1208;
  font-family: 'Cinzel', serif !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  letter-spacing: 2px;
  border: 1px solid #5a4220;
  box-shadow: 0 2px 8px rgba(60, 40, 10, 0.4);
  text-indent: 0;
  white-space: nowrap;
}

/* 正文内段落首字下沉 */
text p:first-child::first-letter {
  font-size: 3em;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  margin: 6px 8px 0 0;
  color: #8b3a1a;
  font-family: 'Ma Shan Zheng', serif;
  text-shadow:
    1px 1px 0 rgba(60, 40, 10, 0.3),
    0 0 8px rgba(139, 58, 26, 0.3);
}

text p {
  margin: 14px 0 !important;
  text-indent: 2em !important;
}

text strong,
text b {
  color: #8b3a1a !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.5) !important;
  padding: 0 2px !important;
}

text em,
text i {
  color: #3a4a8b !important;
  font-style: italic !important;
}

/* ============================================ */
/* 7. 代码块美化（如有）                       */
/* ============================================ */

details pre,
details code {
  background: linear-gradient(180deg, #0a1828 0%, #14283c 100%) !important;
  border: 1px solid #c49c5a !important;
  border-radius: 6px !important;
  color: #ffd966 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
  padding: 12px !important;
}

/* ============================================ */
/* 8. 移动端适配                                */
/* ============================================ */

@media (max-width: 768px) {
  summary {
    font-size: 14px !important;
    padding: 10px 14px !important;
  }
  details::before {
    font-size: 22px !important;
    top: 6px !important;
    right: 10px !important;
  }
  details table {
    font-size: 12px !important;
    width: calc(100% - 20px) !important;
  }
  details table th,
  details table td {
    padding: 6px 8px !important;
  }
  text {
    padding: 18px 16px 22px 16px !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    letter-spacing: 0.4px !important;
  }
  text::after {
    font-size: 10px !important;
    padding: 3px 12px !important;
  }
  details > p,
  details > ul,
  details > table {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

/* ============================================ */
/* 9. 选中文本颜色                              */
/* ============================================ */

text::selection {
  background: rgba(139, 58, 26, 0.3);
  color: #2a1a08;
}

details ::selection {
  background: rgba(245, 217, 138, 0.4);
  color: #fff5d0;
}