/* ============================================================
   reset.css — 设计变量 + 全局重置
   ============================================================ */

:root {
  /* 背景层次：越靠上层越亮 */
  --bg:            #0d0d0f;
  --bg-panel:      #141417;
  --bg-elevated:   #1a1a1f;
  --bg-input:      #17171b;

  /* 描边 */
  --border:        #26262d;
  --border-strong: #35353f;

  /* 文字 */
  --text:          #e8e5de;
  --text-dim:      #99958c;
  --text-faint:    #6a6760;

  /* 金色点缀 */
  --gold:          #d4af37;
  --gold-bright:   #edc65e;
  --gold-soft:     rgba(212, 175, 55, 0.14);
  --gold-line:     rgba(212, 175, 55, 0.30);

  /* 状态 */
  --green:         #38d39f;
  --red:           #f0525f;

  /* 尺寸 */
  --topbar-h:      56px;
  --shell-max:     1080px;
  --radius:        10px;
  --radius-sm:     6px;

  /* 间距 */
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 阴影 */
  --shadow-panel: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

::selection {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a4a56;
}
