/* ============================================================
 * theme.css — 白底马卡龙配色变量 / reset / 字体 / 全局禁用复制
 * 与现有 physics-lab 项目共用同一套色板，保持视觉一致。
 * ============================================================ */
:root {
  /* 马卡龙主色（沿用色板） */
  --pink: #FFB3BA;
  --peach: #FFD8A8;
  --cream: #FFF3BF;
  --mint: #B8E8D0;
  --sky: #BFE3F5;
  --lavender: #D0C4E8;
  /* 第七分类专用：由樱花粉 + 薰衣草紫调和的浅雾紫，仍属马卡龙柔和色域 */
  --mauve: #E4D8EE;

  /* 文字与背景：白底 / 极浅灰白 */
  --ink: #3a4250;
  --ink-2: #5a6472;
  --ink-3: #8b95a3;
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-soft: #fcfdfe;

  /* 描边 / 阴影 / 圆角 */
  --line: #e8edf2;
  --line-2: #dce4ec;
  --shadow: 0 2px 8px rgba(88, 108, 132, .05), 0 10px 24px rgba(88, 108, 132, .055);
  --shadow-hover: 0 4px 14px rgba(88, 108, 132, .08), 0 14px 30px rgba(88, 108, 132, .07);
  --r-lg: 18px;
  --r-md: 13px;
  --r-sm: 9px;

  /* 放大后的字号阶梯（基准 16px） */
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 30px;
  --fs-3xl: 36px;

  --sidebar-w: 330px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
/* 触控：消除 300ms 点击延迟与双击缩放干扰 */
button, summary, [role="button"], input[type="range"] { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }

/* 全局禁用选中 / 复制 / 拖动；输入框仍可正常输入与选中文本 */
*, *::before, *::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
input, textarea { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }

/* 键盘可达：保留清晰焦点环 */
:focus-visible {
  outline: 2px solid #7FB3D5;
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: var(--lavender); color: var(--ink); }

/* 细窄浅色滚动条 */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: #cbd6e2; }
