/* ============================================================================
 * ADHD家长课堂 · 10 套主题 themes.css
 * ----------------------------------------------------------------------------
 * 只覆盖 L2 语义 token（§3），选择器一律 html[data-theme="<id>"]。
 * 所有颜色值均为 hex 字面量（§4.1 兼容性要求），不依赖运行时 color-mix 派生。
 * 主题 id 与种子值以 docs/DESIGN-SPEC.md §4.2 为唯一权威。
 * ========================================================================== */

/* 暖木（默认·亮） ｜ 定位：深夜安抚。低压迫、暖调、大留白
   底色 #faf7f2 · 主色 #b45309 · 形态：半径 r-md / 阴影 柔和 / 密度 1.4×1.2 / 衬线标题 / 行长 34ch */
html[data-theme="warmwood"] {
  color-scheme: light;
  --c-canvas:           #faf7f2;
  --c-surface:          #ffffff;
  --c-surface-2:        #f5efe6;
  --c-surface-inset:    #fdfcfa;
  --c-surface-overlay:  #ffffff;
  --c-border:           #e7ded2;
  --c-border-strong:    #88827b;
  --c-divider:          #f0eae0;
  --c-text:             #292524;
  --c-text-muted:       #57534e;
  --c-text-faint:       #79716b;
  --c-text-inverse:     #ffffff;
  --c-accent:           #b45309;
  --c-accent-hover:     #974608;
  --c-accent-active:    #7a3806;
  --c-accent-soft:      #f6e8d6;
  --c-accent-border:    #ecd4c2;
  --c-accent-text:      #aa4f09;
  --c-on-accent:        #ffffff;
  --c-link:             #aa4f09;
  --c-link-hover:       #9c4908;
  --c-link-visited:     #873660;
  --c-focus:            #b45309;
  --c-focus-ring:       #928e8b;
  --c-selection-bg:     #f6e8d6;
  --c-selection-text:   #292524;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               4px;
  --r-sm:               6px;
  --r-md:               8px;
  --r-lg:               12px;
  --r-xl:               16px;
  --r-2xl:              24px;
  --r-full:             999px;
  --sh-1:               0 1px 2px rgba(41,29,15,0.05);
  --sh-2:               0 2px 6px rgba(41,29,15,0.06);
  --sh-3:               0 4px 14px rgba(41,29,15,0.08);
  --sh-4:               0 12px 32px rgba(41,29,15,0.10);
  --sh-focus:           0 0 0 2px #faf7f2, 0 0 0 4px #b45309, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.4;
  --density-pad:        1.2;
  --icon-stroke:        1.7;
  --border-style:       solid;
  --font-display:       "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            34em;
  --measure-wide:       46em;
}

/* 暖木主题衬线标题上岗（R6：--font-display 全站引用数为 0 的修复） */
html[data-theme="warmwood"] .content-header h2,
html[data-theme="warmwood"] #content h2,
html[data-theme="warmwood"] #content h3 { font-family: var(--font-display); }

/* 临床（亮） ｜ 定位：循证感最强，证据标签最突出
   底色 #fcfcfd · 主色 #1d4ed8 · 形态：半径 r-xs / 阴影 无(描边) / 密度 1.0×1.0 / 黑体标题 / 行长 38ch */
html[data-theme="clinical"] {
  color-scheme: light;
  --c-canvas:           #fcfcfd;
  --c-surface:          #ffffff;
  --c-surface-2:        #f4f6f8;
  --c-surface-inset:    #fefefe;
  --c-surface-overlay:  #ffffff;
  --c-border:           #d9dee5;
  --c-border-strong:    #757b86;
  --c-divider:          #e9edf1;
  --c-text:             #111827;
  --c-text-muted:       #374151;
  --c-text-faint:       #6b7280;
  --c-text-inverse:     #ffffff;
  --c-accent:           #1d4ed8;
  --c-accent-hover:     #1944bd;
  --c-accent-active:    #163ba2;
  --c-accent-soft:      #e3ebfb;
  --c-accent-border:    #c6d3f5;
  --c-accent-text:      #1d4ed8;
  --c-on-accent:        #ffffff;
  --c-link:             #1d4ed8;
  --c-link-hover:       #1b48c7;
  --c-link-visited:     #4835be;
  --c-focus:            #1d4ed8;
  --c-focus-ring:       #868a92;
  --c-selection-bg:     #e3ebfb;
  --c-selection-text:   #111827;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               2px;
  --r-sm:               3px;
  --r-md:               4px;
  --r-lg:               6px;
  --r-xl:               8px;
  --r-2xl:              12px;
  --r-full:             999px;
  --sh-1:               none;
  --sh-2:               none;
  --sh-3:               none;
  --sh-4:               none;
  --sh-focus:           0 0 0 2px #fcfcfd, 0 0 0 4px #1d4ed8, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.0;
  --density-pad:        1.0;
  --icon-stroke:        1.7;
  --border-style:       solid;
  --font-display:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            38em;
  --measure-wide:       50em;
}

/* 靛夜（暗） ｜ 定位：夜间主力暗色，低饱和不刺眼
   底色 #10131a · 主色 #8b95f6 · 形态：半径 r-md / 阴影 柔和 / 密度 1.4×1.2 / 黑体标题 / 行长 34ch */
html[data-theme="indigo-night"] {
  color-scheme: dark;
  --c-canvas:           #10131a;
  --c-surface:          #191d28;
  --c-surface-2:        #222633;
  --c-surface-inset:    #151922;
  --c-surface-overlay:  #2b2f39;
  --c-border:           #2c3140;
  --c-border-strong:    #888c98;
  --c-divider:          #232836;
  --c-text:             #e5e8f0;
  --c-text-muted:       #a9b1c4;
  --c-text-faint:       #7c8497;
  --c-text-inverse:     #10131a;
  --c-accent:           #8b95f6;
  --c-accent-hover:     #848de9;
  --c-accent-active:    #7c85dc;
  --c-accent-soft:      #252b4e;
  --c-accent-border:    #dcdffc;
  --c-accent-text:      #8b95f6;
  --c-on-accent:        #0e1128;
  --c-link:             #f3f4fe;
  --c-link-hover:       #e5e8fd;
  --c-link-visited:     #dcd4fe;
  --c-focus:            #8b95f6;
  --c-focus-ring:       #7a7e85;
  --c-selection-bg:     #252b4e;
  --c-selection-text:   #e5e8f0;
  --c-danger:           #ef4444;
  --c-danger-hover:     #fef0f0;
  --c-danger-soft:      #3b1212;
  --c-danger-border:    #7f1d1d;
  --c-danger-text:      #fca5a5;
  --c-warn:             #f59e0b;
  --c-warn-soft:        #362711;
  --c-warn-border:      #a16207;
  --c-warn-text:        #fcd34d;
  --c-ok:               #22c55e;
  --c-ok-soft:          #0f2a1a;
  --c-ok-border:        #166534;
  --c-ok-text:          #86efac;
  --c-info:             #3b82f6;
  --c-info-soft:        #12233f;
  --c-info-border:      #1e40af;
  --c-info-text:        #93c5fd;
  --c-emergency-bg:     #450a0a;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffdcdc;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #4ade80;
  --c-ev-e1-bg:         #255c3e;
  --c-ev-e1-border:     #4ade80;
  --c-ev-e1-text:       #b9f0cd;
  --c-ev-e2:            #93c5fd;
  --c-ev-e2-bg:         #0b1226;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #bfd3fe;
  --c-ev-p1:            #fbbf24;
  --c-ev-p1-bg:         #b8862e;
  --c-ev-p1-border:     #fbbf24;
  --c-ev-p1-text:       #2a1e06;
  --r-xs:               4px;
  --r-sm:               6px;
  --r-md:               8px;
  --r-lg:               12px;
  --r-xl:               16px;
  --r-2xl:              24px;
  --r-full:             999px;
  --sh-1:               0 1px 2px rgba(0,0,0,0.50);
  --sh-2:               0 4px 10px rgba(0,0,0,0.45);
  --sh-3:               0 10px 24px rgba(0,0,0,0.50);
  --sh-4:               0 20px 48px rgba(0,0,0,0.55);
  --sh-focus:           0 0 0 2px #10131a, 0 0 0 4px #8b95f6, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.4;
  --density-pad:        1.2;
  --icon-stroke:        1.7;
  --border-style:       solid;
  --font-display:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            34em;
  --measure-wide:       46em;
}

/* 墨纸（亮） ｜ 定位：编辑杂志风，黑白高对比
   底色 #ffffff · 主色 #111111 · 形态：半径 r-none / 阴影 硬偏移 / 密度 1.0×1.0 / 衬线标题 / 行长 32ch */
html[data-theme="ink"] {
  color-scheme: light;
  --c-canvas:           #ffffff;
  --c-surface:          #ffffff;
  --c-surface-2:        #f5f5f4;
  --c-surface-inset:    #ffffff;
  --c-surface-overlay:  #ffffff;
  --c-border:           #111111;
  --c-border-strong:    #111111;
  --c-divider:          #e5e5e5;
  --c-text:             #111111;
  --c-text-muted:       #404040;
  --c-text-faint:       #6b6b6b;
  --c-text-inverse:     #ffffff;
  --c-accent:           #111111;
  --c-accent-hover:     #020202;
  --c-accent-active:    #000000;
  --c-accent-soft:      #f0f0f0;
  --c-accent-border:    #515151;
  --c-accent-text:      #111111;
  --c-on-accent:        #ffffff;
  --c-link:             #111111;
  --c-link-hover:       #101010;
  --c-link-visited:     #421a64;
  --c-focus:            #111111;
  --c-focus-ring:       #888888;
  --c-selection-bg:     #f0f0f0;
  --c-selection-text:   #111111;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               0px;
  --r-sm:               0px;
  --r-md:               0px;
  --r-lg:               0px;
  --r-xl:               0px;
  --r-2xl:              0px;
  --r-full:             999px;
  --sh-1:               3px 3px 0 #111111;
  --sh-2:               4px 4px 0 #111111;
  --sh-3:               6px 6px 0 #111111;
  --sh-4:               8px 8px 0 #111111;
  --sh-focus:           0 0 0 2px #ffffff, 0 0 0 4px #111111, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.0;
  --density-pad:        1.0;
  --icon-stroke:        2.0;
  --border-style:       double;
  --font-display:       "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-body:          "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --measure:            32em;
  --measure-wide:       44em;
}

/* 苔庭（亮） ｜ 定位：自然疗愈，有机感
   底色 #f4f6f2 · 主色 #3f6212 · 形态：半径 r-lg / 阴影 柔和 / 密度 1.4×1.3 / 衬线标题 / 行长 34ch */
html[data-theme="moss"] {
  color-scheme: light;
  --c-canvas:           #f4f6f2;
  --c-surface:          #ffffff;
  --c-surface-2:        #ebefe6;
  --c-surface-inset:    #fbfbfa;
  --c-surface-overlay:  #ffffff;
  --c-border:           #d8decf;
  --c-border-strong:    #7c8478;
  --c-divider:          #e6eadc;
  --c-text:             #212b20;
  --c-text-muted:       #4b5548;
  --c-text-faint:       #6e7a6a;
  --c-text-inverse:     #ffffff;
  --c-accent:           #3f6212;
  --c-accent-hover:     #2e480d;
  --c-accent-active:    #1e2e09;
  --c-accent-soft:      #e6edd5;
  --c-accent-border:    #84ce26;
  --c-accent-text:      #3f6212;
  --c-on-accent:        #ffffff;
  --c-link:             #3f6212;
  --c-link-hover:       #3a5a11;
  --c-link-visited:     #573e64;
  --c-focus:            #3f6212;
  --c-focus-ring:       #8a9089;
  --c-selection-bg:     #e6edd5;
  --c-selection-text:   #212b20;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               6px;
  --r-sm:               10px;
  --r-md:               14px;
  --r-lg:               18px;
  --r-xl:               24px;
  --r-2xl:              32px;
  --r-full:             999px;
  --sh-1:               0 1px 2px rgba(28,42,20,0.05);
  --sh-2:               0 4px 10px rgba(28,42,20,0.07);
  --sh-3:               0 8px 24px rgba(28,42,20,0.10);
  --sh-4:               0 16px 40px rgba(28,42,20,0.12);
  --sh-focus:           0 0 0 2px #f4f6f2, 0 0 0 4px #3f6212, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.4;
  --density-pad:        1.3;
  --icon-stroke:        1.7;
  --border-style:       solid;
  --font-display:       "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            34em;
  --measure-wide:       46em;
}

/* 苔原主题衬线标题上岗（R6） */
html[data-theme="moss"] .content-header h2,
html[data-theme="moss"] #content h2,
html[data-theme="moss"] #content h3 { font-family: var(--font-display); }

/* 陶土（亮） ｜ 定位：大地色系，手工温暖，纸纹质感
   底色 #f7f1e8 · 主色 #9a3412 · 形态：半径 r-lg / 阴影 柔和 / 密度 1.4×1.3 / 衬线标题 / 行长 33ch */
html[data-theme="clay"] {
  color-scheme: light;
  --c-canvas:           #f7f1e8;
  --c-surface:          #fffdf9;
  --c-surface-2:        #f0e7d8;
  --c-surface-inset:    #fcf8f2;
  --c-surface-overlay:  #fffefc;
  --c-border:           #e0d4c2;
  --c-border-strong:    #8a7e70;
  --c-divider:          #ede4d4;
  --c-text:             #33271e;
  --c-text-muted:       #5c4f42;
  --c-text-faint:       #8a7a68;
  --c-text-inverse:     #ffffff;
  --c-accent:           #9a3412;
  --c-accent-hover:     #7f2b0f;
  --c-accent-active:    #63210c;
  --c-accent-soft:      #f3e2d2;
  --c-accent-border:    #e6ccc4;
  --c-accent-text:      #9a3412;
  --c-on-accent:        #fff8f0;
  --c-link:             #9a3412;
  --c-link-hover:       #8e3011;
  --c-link-visited:     #802a64;
  --c-focus:            #9a3412;
  --c-focus-ring:       #958c83;
  --c-selection-bg:     #f3e2d2;
  --c-selection-text:   #33271e;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               6px;
  --r-sm:               10px;
  --r-md:               14px;
  --r-lg:               18px;
  --r-xl:               24px;
  --r-2xl:              32px;
  --r-full:             999px;
  --sh-1:               0 1px 2px rgba(51,39,30,0.05);
  --sh-2:               0 3px 8px rgba(51,39,30,0.07);
  --sh-3:               0 6px 20px rgba(51,39,30,0.09);
  --sh-4:               0 14px 36px rgba(51,39,30,0.11);
  --sh-focus:           0 0 0 2px #f7f1e8, 0 0 0 4px #9a3412, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.4;
  --density-pad:        1.3;
  --icon-stroke:        1.7;
  --border-style:       solid;
  --font-display:       "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            33em;
  --measure-wide:       45em;
}

/* 陶土主题衬线标题上岗（R6） */
html[data-theme="clay"] .content-header h2,
html[data-theme="clay"] #content h2,
html[data-theme="clay"] #content h3 { font-family: var(--font-display); }

/* 天青（亮） ｜ 定位：清爽轻快，年轻家长
   底色 #f6fafe · 主色 #0369a1 · 形态：半径 r-xl / 阴影 柔和 / 密度 1.5×1.35 / 黑体标题 / 行长 36ch */
html[data-theme="sky"] {
  color-scheme: light;
  --c-canvas:           #f6fafe;
  --c-surface:          #ffffff;
  --c-surface-2:        #eaf3fb;
  --c-surface-inset:    #fbfdff;
  --c-surface-overlay:  #ffffff;
  --c-border:           #d3e3f2;
  --c-border-strong:    #72869a;
  --c-divider:          #e5f0f9;
  --c-text:             #102a43;
  --c-text-muted:       #46617a;
  --c-text-faint:       #6b8299;
  --c-text-inverse:     #ffffff;
  --c-accent:           #0369a1;
  --c-accent-hover:     #025583;
  --c-accent-active:    #024265;
  --c-accent-soft:      #e0f0fa;
  --c-accent-border:    #c0dae8;
  --c-accent-text:      #0369a1;
  --c-on-accent:        #ffffff;
  --c-link:             #0369a1;
  --c-link-hover:       #036194;
  --c-link-visited:     #3c41a5;
  --c-focus:            #0369a1;
  --c-focus-ring:       #8392a0;
  --c-selection-bg:     #e0f0fa;
  --c-selection-text:   #102a43;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               8px;
  --r-sm:               12px;
  --r-md:               16px;
  --r-lg:               22px;
  --r-xl:               28px;
  --r-2xl:              36px;
  --r-full:             999px;
  --sh-1:               0 1px 2px rgba(16,42,67,0.04);
  --sh-2:               0 2px 6px rgba(16,42,67,0.05);
  --sh-3:               0 4px 12px rgba(16,42,67,0.07);
  --sh-4:               0 10px 28px rgba(16,42,67,0.09);
  --sh-focus:           0 0 0 2px #f6fafe, 0 0 0 4px #0369a1, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.5;
  --density-pad:        1.35;
  --icon-stroke:        1.6;
  --border-style:       solid;
  --font-display:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            36em;
  --measure-wide:       48em;
}

/* 余烬（暗·暖） ｜ 定位：暖色暗模式，护眼夜读
   底色 #1a1614 · 主色 #f59e0b · 形态：半径 r-sm / 阴影 柔和 / 密度 1.0×1.0 / 黑体标题 / 行长 32ch */
html[data-theme="ember"] {
  color-scheme: dark;
  --c-canvas:           #1a1614;
  --c-surface:          #241f1b;
  --c-surface-2:        #2c2620;
  --c-surface-inset:    #201b18;
  --c-surface-overlay:  #36312d;
  --c-border:           #3a322a;
  --c-border-strong:    #948b82;
  --c-divider:          #2e2822;
  --c-text:             #ede4da;
  --c-text-muted:       #c0b2a4;
  --c-text-faint:       #96897b;
  --c-text-inverse:     #1a1614;
  --c-accent:           #f59e0b;
  --c-accent-hover:     #e1910a;
  --c-accent-active:    #ce8509;
  --c-accent-soft:      #3a2c0d;
  --c-accent-border:    #fce2b6;
  --c-accent-text:      #f59e0b;
  --c-on-accent:        #231a02;
  --c-link:             #fef5e7;
  --c-link-hover:       #fdeac9;
  --c-link-visited:     #e1d5f2;
  --c-focus:            #f59e0b;
  --c-focus-ring:       #847d77;
  --c-selection-bg:     #3a2c0d;
  --c-selection-text:   #ede4da;
  --c-danger:           #ef4444;
  --c-danger-hover:     #fef0f0;
  --c-danger-soft:      #3b1212;
  --c-danger-border:    #7f1d1d;
  --c-danger-text:      #fca5a5;
  --c-warn:             #f59e0b;
  --c-warn-soft:        #362711;
  --c-warn-border:      #a16207;
  --c-warn-text:        #fcd34d;
  --c-ok:               #22c55e;
  --c-ok-soft:          #0f2a1a;
  --c-ok-border:        #166534;
  --c-ok-text:          #86efac;
  --c-info:             #3b82f6;
  --c-info-soft:        #12233f;
  --c-info-border:      #1e40af;
  --c-info-text:        #93c5fd;
  --c-emergency-bg:     #450a0a;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffdcdc;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #4ade80;
  --c-ev-e1-bg:         #255c3e;
  --c-ev-e1-border:     #4ade80;
  --c-ev-e1-text:       #b9f0cd;
  --c-ev-e2:            #93c5fd;
  --c-ev-e2-bg:         #0b1226;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #bfd3fe;
  --c-ev-p1:            #fbbf24;
  --c-ev-p1-bg:         #b8862e;
  --c-ev-p1-border:     #fbbf24;
  --c-ev-p1-text:       #2a1e06;
  --r-xs:               3px;
  --r-sm:               5px;
  --r-md:               7px;
  --r-lg:               10px;
  --r-xl:               14px;
  --r-2xl:              20px;
  --r-full:             999px;
  --sh-1:               0 1px 2px rgba(0,0,0,0.50);
  --sh-2:               0 4px 10px rgba(0,0,0,0.45);
  --sh-3:               0 10px 24px rgba(0,0,0,0.50);
  --sh-4:               0 20px 48px rgba(0,0,0,0.55);
  --sh-focus:           0 0 0 2px #1a1614, 0 0 0 4px #f59e0b, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.0;
  --density-pad:        1.0;
  --icon-stroke:        1.7;
  --border-style:       solid;
  --font-display:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            32em;
  --measure-wide:       44em;
}

/* 紫藤（亮） ｜ 定位：柔和治愈，圆润亲和
   底色 #faf8fc · 主色 #7e22ce · 形态：半径 r-2xl / 阴影 柔和 / 密度 1.5×1.35 / 黑体标题 / 行长 36ch */
html[data-theme="wisteria"] {
  color-scheme: light;
  --c-canvas:           #faf8fc;
  --c-surface:          #ffffff;
  --c-surface-2:        #f3eff8;
  --c-surface-inset:    #fdfcfe;
  --c-surface-overlay:  #ffffff;
  --c-border:           #e3dbee;
  --c-border-strong:    #868093;
  --c-divider:          #efeaf5;
  --c-text:             #2a2438;
  --c-text-muted:       #5b5470;
  --c-text-faint:       #847a9b;
  --c-text-inverse:     #ffffff;
  --c-accent:           #7e22ce;
  --c-accent-hover:     #6e1eb4;
  --c-accent-active:    #5e1999;
  --c-accent-soft:      #efe3f9;
  --c-accent-border:    #dfc8f3;
  --c-accent-text:      #7e22ce;
  --c-on-accent:        #ffffff;
  --c-link:             #7e22ce;
  --c-link-hover:       #741fbe;
  --c-link-visited:     #7421b9;
  --c-focus:            #7e22ce;
  --c-focus-ring:       #928e9a;
  --c-selection-bg:     #efe3f9;
  --c-selection-text:   #2a2438;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #854d0e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #166534;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #14532d;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #422c05;
  --r-xs:               10px;
  --r-sm:               14px;
  --r-md:               18px;
  --r-lg:               24px;
  --r-xl:               30px;
  --r-2xl:              40px;
  --r-full:             999px;
  --sh-1:               0 1px 3px rgba(42,36,56,0.04);
  --sh-2:               0 4px 12px rgba(42,36,56,0.06);
  --sh-3:               0 10px 30px rgba(42,36,56,0.08);
  --sh-4:               0 20px 50px rgba(42,36,56,0.10);
  --sh-focus:           0 0 0 2px #faf8fc, 0 0 0 4px #7e22ce, 0 1px 3px rgba(0,0,0,0.25);
  --density-row:        1.5;
  --density-pad:        1.35;
  --icon-stroke:        1.6;
  --border-style:       solid;
  --font-display:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            36em;
  --measure-wide:       48em;
}

/* 清朗（高对比无障碍） ｜ 定位：低视力 / 阅读困难 / 强光环境，字号/行高/字重整体上浮（§4.4）
   底色 #ffffff · 主色 #0b3b8c · 形态：半径 r-sm / 阴影 无(描边) / 密度 1.6×1.4 / 黑体标题 / 行长 30ch */
html[data-theme="clarity"] {
  color-scheme: light;
  --c-canvas:           #ffffff;
  --c-surface:          #ffffff;
  --c-surface-2:        #f2f2f2;
  --c-surface-inset:    #ffffff;
  --c-surface-overlay:  #ffffff;
  --c-border:           #333333;
  --c-border-strong:    #1a1a1a;
  --c-divider:          #b3b3b3;
  --c-text:             #000000;
  --c-text-muted:       #333333;
  --c-text-faint:       #4d4d4d;
  --c-text-inverse:     #ffffff;
  --c-accent:           #0b3b8c;
  --c-accent-hover:     #092f70;
  --c-accent-active:    #072353;
  --c-accent-soft:      #d9e5f8;
  --c-accent-border:    #c2cee2;
  --c-accent-text:      #0b3b8c;
  --c-on-accent:        #ffffff;
  --c-link:             #0b3b8c;
  --c-link-hover:       #0a3681;
  --c-link-visited:     #402d9b;
  --c-focus:            #0b3b8c;
  --c-focus-ring:       #808080;
  --c-selection-bg:     #d9e5f8;
  --c-selection-text:   #000000;
  --c-danger:           #dc2626;
  --c-danger-hover:     #cf2424;
  --c-danger-soft:      #fee2e2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #941a1a;
  --c-warn:             #d97706;
  --c-warn-soft:        #fef3c7;
  --c-warn-border:      #fcd34d;
  --c-warn-text:        #75450e;
  --c-ok:               #16a34a;
  --c-ok-soft:          #dcfce7;
  --c-ok-border:        #86efac;
  --c-ok-text:          #145f30;
  --c-info:             #2563eb;
  --c-info-soft:        #dbeafe;
  --c-info-border:      #93c5fd;
  --c-info-text:        #1e40af;
  --c-emergency-bg:     #7f1d1d;
  --c-emergency-border: #991b1b;
  --c-emergency-text:   #ffffff;
  --c-emergency-action: #ffe4e4;
  /* 证据分级底色三组是全局固定值（红线 2：标签识别不随主题漂移），故意不随主题变化 */
  --c-ev-e1:            #15803d;
  --c-ev-e1-bg:         #a9dcb4;
  --c-ev-e1-border:     #2f7d46;
  --c-ev-e1-text:       #104526;
  --c-ev-e2:            #1d4ed8;
  --c-ev-e2-bg:         #e9f1fc;
  --c-ev-e2-border:     #3b82f6;
  --c-ev-e2-text:       #1e3a8a;
  --c-ev-p1:            #b45309;
  --c-ev-p1-bg:         #dfa94f;
  --c-ev-p1-border:     #8a5a12;
  --c-ev-p1-text:       #342505;
  --r-xs:               3px;
  --r-sm:               5px;
  --r-md:               7px;
  --r-lg:               10px;
  --r-xl:               14px;
  --r-2xl:              20px;
  --r-full:             999px;
  --sh-1:               none;
  --sh-2:               none;
  --sh-3:               none;
  --sh-4:               none;
  --sh-focus:           0 0 0 2px #ffffff, 0 0 0 5px #0b3b8c, 0 1px 3px rgba(0,0,0,0.25);
  --focus-ring-w:       3px;   /* 本主题 --sh-focus 内环 spread=5px（外缘 2~5px），其余 9 套为 2px */
  --density-row:        1.6;
  --density-pad:        1.4;
  --icon-stroke:        2.2;
  --border-style:       solid;
  --font-display:       -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --measure:            30em;
  --measure-wide:       42em;
  --fs-2xs:             clamp(14px, 13.4px + 0.3vw, 15px);
  --fs-xs:              clamp(15px, 14.2px + 0.4vw, 16.5px);
  --fs-sm:              clamp(16px, 15px + 0.5vw, 18px);
  --fs-base:            clamp(18px, 16.5px + 0.75vw, 22px);
  --fs-lg:              clamp(20px, 18px + 1vw, 25px);
  --fs-xl:              clamp(23px, 20px + 1.5vw, 30px);
  --fs-2xl:             clamp(27px, 21.5px + 2.75vw, 38px);
  --fs-3xl:             clamp(31px, 22px + 4.5vw, 48px);
  --fs-4xl:             clamp(36px, 23px + 6.5vw, 60px);
  /* §4.4 无障碍档强制项：行高与字重同步上浮（不止字号） */
  --lh-flat:            1.2;
  --lh-tight:           1.4;
  --lh-snug:            1.6;
  --lh-normal:          1.75;
  --lh-relaxed:         1.95;
  --lh-loose:           2.05;
  --fw-normal:          var(--p-fw-500);
  --fw-medium:          var(--p-fw-600);
  --fw-semibold:        var(--p-fw-700);
  --fw-bold:            var(--p-fw-700);
}
