/* ════════════════════════════════════════════════════════════════════
   转换空间站 · 墨韵风格主题（theme-moyun.css）
   由「小说创作整合」维护：在转换站自身的样式之后加载，覆盖浅色主题变量，
   让转换站的观感与「墨韵」保持一致：暖纸底、墨色文字、金色点缀。
   —— 只覆盖变量与少量安全样式，不改动任何布局逻辑。
   ════════════════════════════════════════════════════════════════════ */
:root { color-scheme: light; }

html[data-theme="light"] {
  /* 底色 / 面板：墨韵的暖纸色系 */
  --bg: #f4f1ea;
  --bg0: #f4f1ea;
  --bg1: #efe9dc;
  --panel: #fbfaf6;
  --panel2: #f6f2e9;
  --panelDeep: #fbfaf6;
  --iconPanel: #efe9dc;
  --tabBg: #f6f2e9;
  --listBg: #f6f2e9;

  /* 线条 / 文字 */
  --line: #ddd6c8;
  --text: #231f1a;
  --textBright: #231f1a;
  --muted: #8a8377;
  --hintMuted: #8a8377;
  --fieldLabel: #4a443c;
  --checkText: #4a443c;
  --previewText: #3d3a33;
  --previewMuted: #6b6357;
  --pillReference: #6b6357;

  /* 主点缀：墨韵的金 —— */
  --cyan: #8f6f36;
  --violet: #9c7b4a;
  --primaryA: #b08d4f;
  --primaryB: #8f6f36;
  --accentCheck: #8f6f36;

  /* 语义色（保持可读性，暖化处理） */
  --green: #2e7d5b;
  --goodA: #2e7d5b;
  --goodB: #358c67;
  --orange: #a86b16;
  --red: #b43f36;
  --statusOk: #226a4c;
  --statusWarn: #8a5c10;
  --statusErr: #a33642;
  --dangerFg: #a33642;
  --securityNote: #226a4c;
  --remoteNotice: #a33642;
  --remoteLink: #8f6f36;
  --noticeFg: #8a5c10;
  --noticeStrong: #6f4a0e;

  /* 胶囊 / 按钮 / 输入 */
  --pillCyan: #6f5a2e;
  --pillGreen: #226a4c;
  --pillAmber: #8a5c10;
  --pillViolet: #8a6a3c;
  --pillSystem: #a5761a;
  --pillUi: #a35a70;
  --btnBorder: #c8bfae;
  --btnBg: #f6f2e9;
  --btnHover: #8f6f36;
  --inputBorder: #c8bfae;
  --inputBg: #ffffff;
  --dropBorder: #c8bfae;
  --modalBorder: #c8bfae;
  --modalPanel: #fbfaf6;
  --chipBg: #efe4cf;
  --stopBg: #7a2a3a;
  --stopHoverFg: #5c1f2b;
  --stopHoverBg: #96374c;
  --white: #ffffff;

  --shadow: 0 16px 44px rgba(35, 31, 26, 0.14);
}

/* 细部：与墨韵一致的圆角气质与标题字重（安全、不改布局） */
html[data-theme="light"] .topbar h1 { letter-spacing: .04em; }
html[data-theme="light"] .topbar h1 span { color: #8f6f36; }
html[data-theme="light"] .card,
html[data-theme="light"] .panel,
html[data-theme="light"] .drop { border-radius: 12px; }
/* ── 小屏弹窗高度保护（2026-09-25）：转换站弹窗不超出视口，避免底部按钮被截 ── */
@media (max-width: 767px) {
  .modal-backdrop { padding: 8px; }
  .modal {
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
  }
}
