/* 基础变量、重置、全局状态。由 index.php 最先加载。 */

:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #69717d;
  --line: #d9dee5;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --bronze: #9a6a24;
  --bronze-soft: #f5ead6;
  --front-paper: #fffdf8;
  --admin-ink: #172033;
  --admin-muted: #667085;
  --admin-line: #cfd6df;
  --admin-panel: #ffffff;
  --admin-soft: #f7f9fc;
  --admin-accent: #334155;
  --admin-accent-strong: #1f2937;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(32, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #eef2f3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hidden {
  display: none !important;
}

body.is-booting .login-view,
body.is-booting .workspace {
  display: none !important;
}

body.is-booting {
  min-height: 100vh;
  background: #f3f5f2;
}

body[data-mode="front"] .admin-only {
  display: none !important;
}

body[data-mode="front"] #modeSwitch {
  display: none !important;
}
