/* ============================================================
   班级幻兽学院 · 设计令牌
   设计方向：纸感奇幻养成手账 — 纸张、印章、票根、手绘幻兽
   双皮肤：sweet（萌系）/ fantasy（简约奇幻）
   ============================================================ */

:root {
  /* 基础色 */
  --ink: #2e2a26;
  --ink-2: #5c554c;
  --muted: #918a7e;
  --white: #ffffff;
  --paper: #fcf7ec;
  --paper-2: #f5eddc;
  --surface: #fffdf9;
  --line: #e8dcc8;
  --line-soft: #f1e7d7;

  --accent: #e9a03b;
  --accent-strong: #d9862a;
  --accent-soft: #fbebd2;
  --on-accent: #fffdf8;
  --accent-2: #4e9c86;
  --accent-2-soft: #e3f2ec;
  --seal: #c7556c;
  --seal-soft: #f8e6e8;

  --good: #3f8f6f;
  --good-soft: #e4f2ea;
  --bad: #c7556c;
  --bad-soft: #f8e6e8;
  --warn: #b97b23;
  --warn-soft: #fbf0d8;

  /* 场景色：班级（冷调） */
  --sky: #e9f1f5;
  --sky-2: #dbe8ee;
  --cool-ink: #22394a;
  --cool-line: #cddde6;

  /* 场景色：家庭（暖调） */
  --warm: #fff6e8;
  --warm-2: #ffeed8;
  --warm-line: #f2ddc0;

  /* 形状 */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --bw: 1.5px;
  --shadow: 0 20px 44px -30px rgba(86, 60, 22, 0.55);
  --shadow-sm: 0 8px 20px -14px rgba(86, 60, 22, 0.5);

  /* 字体 */
  --font-display: "ZCOOL KuaiLe", "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "Nunito", "DIN Alternate", "Avenir Next", "PingFang SC", sans-serif;

  /* 纹理 */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

html[data-skin="sweet"] {
  --radius: 22px;
  --radius-sm: 15px;
  --bw: 1.5px;
  --font-display: "ZCOOL KuaiLe", "Noto Serif SC", "Songti SC", serif;
  --paper: #fcf7ec;
  --surface: #fffdf9;
  --line: #e8dcc8;
  --accent: #e9a03b;
  --accent-strong: #d9862a;
  --accent-soft: #fbebd2;
  --on-accent: #fffdf8;
  --accent-2: #4e9c86;
  --accent-2-soft: #e3f2ec;
}

html[data-skin="fantasy"] {
  --radius: 12px;
  --radius-sm: 9px;
  --bw: 1px;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --paper: #f3f1ea;
  --surface: #fefdfa;
  --line: #ddd8c9;
  --accent: #2f6f6b;
  --accent-strong: #245a57;
  --accent-soft: #e2efec;
  --on-accent: #f7fbf9;
  --accent-2: #c99a4b;
  --accent-2-soft: #f7eed9;
  --shadow: 0 24px 60px -38px rgba(20, 40, 45, 0.6);
  --shadow-sm: 0 10px 24px -18px rgba(20, 40, 45, 0.55);
}

/* 字体角色 */
html[data-skin="sweet"] .display {
  letter-spacing: 0.02em;
}
html[data-skin="fantasy"] .display {
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* 数字统一 */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
