/* 龙崽工具箱 v1 · base.css —— 重置与基础排版 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  background-image: var(--bg-grad); background-attachment: fixed;
  font-size: 14.5px; line-height: 1.55; overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { margin: 0; font-weight: 650; letter-spacing: .2px; }
p { margin: 0; }
a { color: var(--gold-2); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding-left: 18px; }
::selection { background: var(--gold-glow); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.gold { color: var(--gold-2); }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: 6px; }
.text-sm { font-size: 12.5px; }
.text-lg { font-size: 16px; }
.text-bold { font-weight: 650; }
.center { text-align: center; }
.ic { flex: none; }

/* 毛玻璃面板 */
.glass {
  background: var(--surface); -webkit-backdrop-filter: var(--glass-blur);
 backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
 backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.gold-line { position: relative; }
.gold-line::before { content: ""; position: absolute; top:0;right:auto;bottom:0;left:0;
 inset:0 auto 0 0; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--gold-2), var(--gold-deep)); opacity: .8; }

/* 焦点可达性 */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
