/* 全站配色：Pantone 粉色系，依功能分色。
   每頁在 <body data-theme="..."> 指定是哪一類，這裡把那一類的顏色套到共用變數上。
   淡色（--tint）當底色，深一點的（--accent）當文字、按鈕，才看得清楚。 */
:root {
  --cloud-dancer: #f0eee9;   /* 11-4201 底色 */
  --nimbus-cloud: #d5d5d8;   /* 13-4108 邊框 */
  --peach-dust: #f0d8cc;     /* 12-1107 班級管理 */
  --ice-melt: #d1dfef;       /* 13-4306 出題 */
  --almost-aqua: #cad3c1;    /* 13-6006 學生教材 */
  --orchid-tint: #dbd3de;    /* 13-3802 歌曲 */
  --lemon-icing: #f6ebc8;    /* 11-0515 簡報 */
  --raindrops: #ebd9dd;      /* 11-1400 Raindrops on Roses */

  --bg: #f7f6f2; --card: #fff; --line: #e2e0dc; --text: #3a3836; --muted: #77736e;
  --tint: #ecebe6; --accent: #5f5b56; --accent-fill: #77736e; --accent-bg: #f0eee9;
  /* 評語產生器原本的變數名稱 */
  --border: var(--line); --text-soft: var(--muted);
}
body[data-theme] {
  --accent-bg: var(--tint);
  --green: var(--accent-fill); --green-dark: var(--accent); --green-light: var(--tint);
  --border: var(--line); --text-soft: var(--muted);
}
body[data-theme="manage"]   { --tint: #f6e7df; --accent: #a5644a; --accent-fill: #c4866b; }
body[data-theme="exam"]     { --tint: #e3ecf6; --accent: #46688f; --accent-fill: #6a8db5; }
body[data-theme="material"] { --tint: #e3e9de; --accent: #567150; --accent-fill: #7a9572; }
body[data-theme="songs"]    { --tint: #ebe5ee; --accent: #75608a; --accent-fill: #9681aa; }
body[data-theme="slides"]   { --tint: #faf3dc; --accent: #8a6d1c; --accent-fill: #b39535; }
body[data-theme="games"]    { --tint: #f6e9ec; --accent: #9b4f63; --accent-fill: #bf7488; }
body[data-theme="tutor"]    { --tint: #fff4e6; --accent: #c2255c; --accent-fill: #e64980; }
body[data-theme="home"]     { --tint: #f0eee9; --accent: #4f4b46; --accent-fill: #6e6a64; }
/* 頁首工具列用分類的淡色，一眼看出是哪一類功能 */
body[data-theme] .toolbar { background: var(--tint); border-bottom-color: var(--line); }
body[data-theme] .brand { color: var(--accent); }
/* 家教作業：她要「繽紛」的，頁首用彩虹漸層 */
body[data-theme="tutor"] .toolbar { background: linear-gradient(90deg, #ffe3e3, #fff3bf, #d3f9d8, #d0ebff, #e5dbff); }
