@import "./site-theme.css";

/* 独立功能页沿用 Plume 的背景、文字、字体和 12px 卡片。 */
:root {
  --vp-c-bg: #fffaf0;
  --vp-c-bg-soft: #f3ead4;
  --vp-c-divider: #e6d8b8;
  --vp-c-text-1: #342e25;
  --vp-c-text-2: #766957;
  --vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --tool-primary: var(--vp-c-brand-1);
  --tool-primary-text: #fff;
  --tool-error: #b8272c;
  --match-bg: #fff0bf;
  --match-text: #754300;
  --bg: var(--vp-c-bg);
  --page: #f5ecd6;
  --text: var(--vp-c-text-1);
  --muted: var(--vp-c-text-2);
  --line: var(--vp-c-divider);
  --link: var(--vp-c-brand-1);
  --soft: var(--vp-c-bg-soft);
  color-scheme: light;
  font-optical-sizing: auto;
}
[data-theme="dark"] {
  --page: #10151e;
  --vp-c-bg: #171b24;
  --vp-c-bg-soft: #202127;
  --vp-c-divider: #2e2e32;
  --vp-c-text-1: rgb(255 255 245 / 0.86);
  --vp-c-text-2: rgb(235 235 245 / 0.6);
  --tool-primary: var(--vp-c-brand-2);
  --tool-primary-text: #1b1b1f;
  --tool-error: #ffadb0;
  --match-bg: #5a431c;
  --match-text: #ffe2a0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.tool-page { margin: 0; min-width: 0; background: var(--page); color: var(--text); font: 14px/1.6 var(--vp-font-family-base); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
a { color: var(--link); }
button, input, select { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.tool-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.tool-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; }
.tool-brand img { flex: none; }
.tool-header nav { display: flex; align-items: center; gap: 18px; flex: none; }
.tool-home { font-size: 14px; font-weight: 500; text-decoration: none; }
.tool-theme { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 520px) {
  .tool-header { min-height: 60px; padding: 10px 16px; gap: 8px; }
  .tool-brand { gap: 7px; font-size: 14px; }
  .tool-brand span { max-width: 185px; }
  .tool-header nav { gap: 8px; }
  .tool-home { display: none; }
  .tool-theme { width: 40px; height: 40px; border-radius: 20px; }
}
