/* ==========================================================================
   Windows Longhorn Build 4074 · 全站主题（设置 → 实验性 → 主题样式 = Windows Longhorn 4074）
   只在 html[data-switch-style="longhorn"] 时生效。2026-11-30 整体重写（旧版是一套青色「烟熏玻璃」，与 4074 实物不符）。

   参照：4074（WinHEC 2004，idx02.040425-1535）的实机截图 ——
     · Jade 视觉样式（4074 默认）：开启 DWM 后窗口是半透明的灰绿色厚边框，标题文字黑色，
       标题栏按钮是 ▼ ▲ ✕ 三个字形；对话框底色浅灰；按钮是浅灰渐变 + 灰蓝细边的小圆角按钮。
     · Jade 里藏着的 Aero 主题：白色半透明边框、黑色玻璃任务栏、蓝色玻璃时钟。
     · Slate（4051 / 4053）石墨灰，Plex（4015–4029）黑色 + 蓝光。→ html[data-lh-color]
     · 资源管理器：标题栏下面是彩色的「预览窗格」（大标题 + 圆形后退按钮 + 面包屑 + 搜索框），
       不同类型的文件夹颜色不同，背景里有缓慢流动的极光（Animated Preview Panel Aurora）。
     · 右侧边栏（Sidebar：搜索、通知区域、磁贴、时钟），底部石墨色任务栏 + 开始菜单
       （深色抬头 + 橙色细线 + 白 / 米色两栏 + 深色底栏），桌面右下角的版本水印。
   结构：
     · 桌面 = .aurora（壁纸，或 lh-aurora.js 画的动态极光）；边栏 / 任务栏 / 开始菜单 / 水印 / 预览窗格标题由 lh-shell.js 插入。
     · 窗口 = #app：宽屏（≥1260px，未选「窗口全屏」）是 1200px 的「还原」窗口，四周露出桌面；否则最大化。
       边栏只在 ≥1400px 且没关掉时显示（窗口让出右侧 172px），任务栏在 ≥721px 显示；手机上底栏（.tabbar）画成任务栏。
     · 窗口边框半透明但不用 backdrop-filter（和 4074 的 DWM 一样不模糊），滚动时不会重新采样。
   ========================================================================== */

/* ---------------------------------------------------------------- 设计变量：Jade（默认） */
html[data-switch-style="longhorn"] {
  --lh-sb-w: 0px;
  --lh-tb-h: 0px;
  --lh-win: calc(100vw - var(--lh-sb-w));
  --lh-fw: 0px;                         /* 窗口边框宽度（还原时 6px） */
  --lh-inner: calc(var(--lh-win) - var(--lh-fw) * 2);
  --nav-h: 34px;

  /* 窗口边框 / 标题栏 */
  --lh-frame: rgb(146 170 140 / .82);
  --lh-title: linear-gradient(180deg, #c3d2be 0%, #aabea4 48%, #9db494 52%, #95ad8e 100%);
  --lh-frame-edge: #45573f;
  --lh-frame-hi: rgb(255 255 255 / .5);
  --lh-title-ink: #0d140b;
  --lh-title-shadow: 0 1px 0 rgb(255 255 255 / .45);
  --lh-cap-ink: #23301f;
  --lh-hot: rgb(255 255 255 / .38);
  --lh-hot-edge: rgb(255 255 255 / .65);
  --lh-down: rgb(0 0 0 / .14);

  /* 客户区 */
  --lh-client: #ffffff;
  --lh-face: #f0f1f2;
  --lh-face-2: #e3e6e9;
  --lh-face-lo: #c9ced4;
  --lh-ink: #000000;
  --lh-gray-ink: #8d939a;
  --lh-edge: #a3acb6;
  --lh-btn-edge: #63758b;
  --lh-btn: linear-gradient(180deg, #ffffff 0%, #f5f6f8 45%, #e6e9ed 55%, #eef0f3 100%);
  --lh-btn-hot: linear-gradient(180deg, #f8fcff 0%, #e4f0fb 45%, #cfe3f7 55%, #e2eefa 100%);
  --lh-btn-hot-edge: #3f7fc6;
  --lh-btn-down: linear-gradient(180deg, #c9dcf0 0%, #d8e7f6 50%, #e3eefa 100%);
  --lh-sel: linear-gradient(180deg, #e7f1fc 0%, #cfe3f8 100%);
  --lh-sel-flat: #cfe3f8;
  --lh-sel-edge: #84aedc;
  --lh-sel-ink: #000000;
  --lh-head: #1d3a5f;
  --lh-link: #1d5bbf;
  --lh-link-hot: #3a85e4;
  --lh-on: #3d9b3a;                     /* 开关 / 复选框：4074 开始按钮的翡翠绿 */
  --lh-on-2: #69c45f;
  --lh-info: #ffffe1;

  /* 外壳 */
  --lh-taskbar: linear-gradient(180deg, #74797e 0%, #4b5055 6%, #383c40 50%, #2a2d30 100%);
  --lh-taskbar-edge: #1b1d1f;
  --lh-sidebar: rgb(78 82 87 / .9);
  --lh-sidebar-line: rgb(0 0 0 / .35);
  --lh-sidebar-hi: rgb(255 255 255 / .1);
  --lh-start: linear-gradient(180deg, #8fd27a 0%, #4ea43c 45%, #378a28 55%, #2b7420 100%);

  /* 站点令牌 */
  --bg: var(--lh-face);
  --bg-deep: #e4e7ea;
  --surface: var(--lh-client);
  --surface-solid: var(--lh-client);
  --surface-2: #f5f6f7;
  --surface-hover: #f1f5fa;
  --surface-elevated: var(--lh-client);
  --text: #111418;
  --text-2: #3b434c;
  --text-3: #66707b;
  --line: #d3d8de;
  --line-strong: #aeb6bf;
  --accent: var(--lh-link);
  --accent-2: #3a85e4;
  --accent-soft: rgb(29 91 191 / .1);
  --accent-line: rgb(29 91 191 / .42);
  --accent-glow: none;
  --glow: none;
  --green: #2c8a2c;
  --red: #c4261d;
  --shadow-1: none;
  --shadow-2: 0 2px 6px rgb(0 0 0 / .14);
  --shadow-3: 0 6px 18px rgb(0 0 0 / .28);
  --glass-blur: none;
  --r-xl: 6px;
  --r-lg: 4px;
  --r-md: 3px;
  --r-sm: 3px;
  --font: "Segoe UI", Tahoma, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-sans: var(--font);
  --font-light: "Segoe UI Light", "Segoe UI", "Microsoft YaHei UI Light", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-mono: Consolas, "Lucida Console", ui-monospace, monospace;
  --apple-nav-ink: var(--lh-title-ink);
  --apple-nav-ink-strong: var(--lh-title-ink);
  --apple-panel-bg: var(--lh-client);
  --apple-panel-line: var(--lh-edge);
  --apple-panel-shadow: 0 3px 10px rgb(0 0 0 / .25);
  --apple-hover: var(--lh-sel-flat);
  color-scheme: light;
}

/* Aero：4074 里藏着的 Aero 主题 —— 白色半透明边框、黑色玻璃任务栏 */
html[data-switch-style="longhorn"][data-lh-color="aero"] {
  --lh-frame: rgb(214 226 236 / .58);
  --lh-title: linear-gradient(180deg, #f6f9fb 0%, #e3eaf0 48%, #d3dde6 52%, #dbe4ec 100%);
  --lh-frame-edge: #4b5a68;
  --lh-frame-hi: rgb(255 255 255 / .8);
  --lh-title-ink: #0f1d2a;
  --lh-cap-ink: #2a3846;
  --lh-hot: rgb(255 255 255 / .7);
  --lh-taskbar: linear-gradient(180deg, rgb(110 120 130 / .96) 0%, rgb(42 48 54 / .97) 8%, rgb(14 16 19 / .98) 55%, #050607 100%);
  --lh-sidebar: rgb(22 28 36 / .66);
  --lh-sidebar-hi: rgb(255 255 255 / .16);
  --lh-start: radial-gradient(circle at 50% 30%, #6f7c88 0%, #2a3139 55%, #0d1013 100%);
}
/* Slate：4051 / 4053 的石墨灰 */
html[data-switch-style="longhorn"][data-lh-color="slate"] {
  --lh-frame: rgb(70 76 83 / .9);
  --lh-title: linear-gradient(180deg, #7b8188 0%, #5c6269 48%, #4b5157 52%, #41464c 100%);
  --lh-frame-edge: #1c1f22;
  --lh-frame-hi: rgb(255 255 255 / .22);
  --lh-title-ink: #ffffff;
  --lh-title-shadow: 0 1px 1px rgb(0 0 0 / .6);
  --lh-cap-ink: #eef1f4;
  --lh-hot: rgb(255 255 255 / .16);
  --lh-hot-edge: rgb(255 255 255 / .3);
  --lh-down: rgb(0 0 0 / .3);
  --lh-sidebar: rgb(44 48 52 / .92);
  --lh-start: linear-gradient(180deg, #8ab3e0 0%, #3f73b6 45%, #2c5b99 55%, #24508a 100%);
}
/* Plex：4015–4029 的黑色 + 蓝色光边 */
html[data-switch-style="longhorn"][data-lh-color="plex"] {
  --lh-frame: rgb(20 26 38 / .9);
  --lh-title: linear-gradient(180deg, #46536d 0%, #263044 48%, #161d2c 52%, #111826 100%);
  --lh-frame-edge: #000000;
  --lh-frame-hi: rgb(110 160 255 / .55);
  --lh-title-ink: #ffffff;
  --lh-title-shadow: 0 1px 1px rgb(0 0 0 / .7);
  --lh-cap-ink: #dbe7ff;
  --lh-hot: rgb(120 170 255 / .22);
  --lh-hot-edge: rgb(140 185 255 / .5);
  --lh-down: rgb(0 0 0 / .35);
  --lh-taskbar: linear-gradient(180deg, #3d4a63 0%, #1a2232 8%, #0c111b 55%, #05070b 100%);
  --lh-sidebar: rgb(12 16 26 / .9);
  --lh-sidebar-hi: rgb(110 160 255 / .2);
  --lh-start: radial-gradient(circle at 50% 30%, #7fb0ff 0%, #2559c7 55%, #0f2a6b 100%);
}

/* 深色外观：客户区换成 Slate 式的深灰（窗口配色保留，Jade / Aero 边框压暗一些） */
html[data-switch-style="longhorn"][data-theme="dark"] {
  --lh-client: #202327;
  --lh-face: #2a2e33;
  --lh-face-2: #33383e;
  --lh-face-lo: #171a1d;
  --lh-ink: #eceef1;
  --lh-gray-ink: #7d848c;
  --lh-edge: #555d66;
  --lh-btn-edge: #121416;
  --lh-btn: linear-gradient(180deg, #5a6068 0%, #464c53 45%, #393e44 55%, #3f454b 100%);
  --lh-btn-hot: linear-gradient(180deg, #5f7590 0%, #4b6280 45%, #3c5372 55%, #445b79 100%);
  --lh-btn-hot-edge: #8db4e6;
  --lh-btn-down: linear-gradient(180deg, #2c3a4c 0%, #33445a 100%);
  --lh-sel: linear-gradient(180deg, #3d5878 0%, #34506f 100%);
  --lh-sel-flat: #34506f;
  --lh-sel-edge: #5f8bc0;
  --lh-sel-ink: #ffffff;
  --lh-head: #a9c8ef;
  --lh-link: #8cb8f2;
  --lh-link-hot: #b5d2f7;
  --lh-on: #4fb447;
  --lh-on-2: #7fd673;
  --lh-info: #3b3820;
  --bg: var(--lh-face);
  --bg-deep: #1b1e21;
  --surface: var(--lh-client);
  --surface-solid: var(--lh-client);
  --surface-2: #272b30;
  --surface-hover: #2d3238;
  --surface-elevated: #2a2e33;
  --text: #eceef1;
  --text-2: #c5cad0;
  --text-3: #959ca4;
  --line: #3c4248;
  --line-strong: #555c64;
  --accent: var(--lh-link);
  --accent-2: #6aa2ea;
  --accent-soft: rgb(140 184 242 / .14);
  --accent-line: rgb(140 184 242 / .45);
  --green: #6fd46a;
  --red: #ff7b72;
  color-scheme: dark;
}
html[data-switch-style="longhorn"][data-theme="dark"][data-lh-color="jade"],
html[data-switch-style="longhorn"][data-theme="dark"]:not([data-lh-color]) {
  --lh-frame: rgb(86 104 82 / .88);
  --lh-title: linear-gradient(180deg, #7d9177 0%, #64785e 48%, #56694f 52%, #4f6249 100%);
  --lh-frame-edge: #161d14;
  --lh-frame-hi: rgb(255 255 255 / .22);
  --lh-title-ink: #f3f8f1;
  --lh-title-shadow: 0 1px 1px rgb(0 0 0 / .55);
  --lh-cap-ink: #eef5ec;
  --lh-hot: rgb(255 255 255 / .16);
  --lh-hot-edge: rgb(255 255 255 / .3);
}
html[data-switch-style="longhorn"][data-theme="dark"][data-lh-color="aero"] {
  --lh-frame: rgb(56 66 78 / .66);
  --lh-title: linear-gradient(180deg, #5d6a78 0%, #45515e 48%, #36414d 52%, #3b4653 100%);
  --lh-frame-edge: #0b0f13;
  --lh-frame-hi: rgb(255 255 255 / .3);
  --lh-title-ink: #ffffff;
  --lh-title-shadow: 0 0 6px rgb(0 0 0 / .7);
  --lh-cap-ink: #f2f6fa;
  --lh-hot: rgb(255 255 255 / .16);
  --lh-hot-edge: rgb(255 255 255 / .35);
}
/* 设置里选了强调色：开关、复选框、滑块用它 */
html[data-switch-style="longhorn"][data-desk-tint]:not([data-desk-tint="theme"]) {
  --lh-on: var(--desk-tint);
  --lh-on-2: color-mix(in srgb, var(--desk-tint) 70%, #fff);
}

/* ---------------------------------------------------------------- DWM 玻璃（标题栏 + 资源管理器顶部 + 窗口边框 + 任务栏 + 边栏）
   还原窗口时是透明玻璃（模糊、提亮饱和的桌面 + 一层白色光泽），标题文字黑色带白色光晕（同 longhorn.ms 的窗口）；
   窗口最大化（窄屏 / 「窗口全屏」）时，标题栏和任务栏变成不透明的黑色 —— 4074 的 DWM 就是这样。 */
html[data-switch-style="longhorn"] {
  --lh-glass-bg: linear-gradient(180deg, rgb(255 255 255 / .62) 0%, rgb(240 245 250 / .44) 42%, rgb(222 231 240 / .38) 100%);
  --lh-glass-sheen: linear-gradient(104deg, rgb(255 255 255 / 0) 8%, rgb(255 255 255 / .3) 18%, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0) 58%, rgb(255 255 255 / .18) 66%, rgb(255 255 255 / 0) 76%);
  --lh-glass-filter: blur(10px) saturate(1.7) brightness(1.04);
  --lh-glass-ink: #000000;
  --lh-glass-glow: 0 0 7px rgb(255 255 255 / .95), 0 0 2px rgb(255 255 255 / .9);
  --lh-glass-edge: rgb(0 0 0 / .62);
  --lh-glass-hi: rgb(255 255 255 / .75);
  --lh-glass-hot: rgb(255 255 255 / .42);
  --lh-glass-hot-edge: rgb(255 255 255 / .8);
  --lh-glass-down: rgb(0 0 0 / .12);
  --lh-tb-bg: linear-gradient(180deg, rgb(70 78 88 / .62) 0%, rgb(20 24 30 / .62) 48%, rgb(6 8 10 / .7) 52%, rgb(10 12 16 / .66) 100%);
  --lh-tb-filter: blur(8px) saturate(1.5);
  --lh-sb-bg: linear-gradient(90deg, rgb(10 14 20 / .5) 0%, rgb(14 18 26 / .38) 100%);
  --lh-sb-filter: blur(9px) saturate(1.4);
}
html[data-switch-style="longhorn"][data-lh-color="jade"] {
  --lh-glass-bg: linear-gradient(180deg, rgb(201 216 195 / .82) 0%, rgb(166 186 158 / .76) 50%, rgb(146 168 138 / .78) 100%);
  --lh-glass-sheen: linear-gradient(104deg, rgb(255 255 255 / 0) 10%, rgb(255 255 255 / .16) 20%, rgb(255 255 255 / 0) 32%);
  --lh-glass-filter: blur(6px) saturate(1.2);
  --lh-glass-ink: #0d140b;
  --lh-glass-glow: 0 1px 0 rgb(255 255 255 / .5);
  --lh-glass-edge: #45573f;
  --lh-glass-hi: rgb(255 255 255 / .5);
  --lh-tb-bg: linear-gradient(180deg, rgb(116 121 126 / .9) 0%, rgb(75 80 85 / .9) 6%, rgb(56 60 64 / .92) 50%, rgb(42 45 48 / .94) 100%);
  --lh-sb-bg: rgb(78 82 87 / .86);
}
html[data-switch-style="longhorn"][data-lh-color="slate"] {
  --lh-glass-bg: linear-gradient(180deg, rgb(120 127 135 / .82) 0%, rgb(80 86 93 / .82) 50%, rgb(62 67 73 / .86) 100%);
  --lh-glass-sheen: linear-gradient(104deg, rgb(255 255 255 / 0) 10%, rgb(255 255 255 / .1) 20%, rgb(255 255 255 / 0) 32%);
  --lh-glass-filter: blur(8px) saturate(1.2);
  --lh-glass-ink: #ffffff;
  --lh-glass-glow: 0 1px 2px rgb(0 0 0 / .7);
  --lh-glass-edge: #15181a;
  --lh-glass-hi: rgb(255 255 255 / .25);
  --lh-glass-hot: rgb(255 255 255 / .16);
  --lh-glass-hot-edge: rgb(255 255 255 / .35);
  --lh-glass-down: rgb(0 0 0 / .3);
  --lh-sb-bg: rgb(40 44 48 / .86);
}
html[data-switch-style="longhorn"][data-lh-color="plex"] {
  --lh-glass-bg: linear-gradient(180deg, rgb(64 78 106 / .86) 0%, rgb(30 38 56 / .86) 48%, rgb(14 19 30 / .9) 52%, rgb(16 22 36 / .9) 100%);
  --lh-glass-sheen: linear-gradient(104deg, rgb(120 170 255 / 0) 10%, rgb(120 170 255 / .14) 20%, rgb(120 170 255 / 0) 32%);
  --lh-glass-filter: blur(8px) saturate(1.3);
  --lh-glass-ink: #ffffff;
  --lh-glass-glow: 0 0 6px rgb(60 120 255 / .7), 0 1px 1px #000;
  --lh-glass-edge: #000000;
  --lh-glass-hi: rgb(110 160 255 / .55);
  --lh-glass-hot: rgb(120 170 255 / .22);
  --lh-glass-hot-edge: rgb(140 185 255 / .5);
  --lh-glass-down: rgb(0 0 0 / .35);
  --lh-sb-bg: rgb(10 14 24 / .82);
}
/* 深色外观：玻璃压暗一些，标题文字换成白色 */
html[data-switch-style="longhorn"][data-theme="dark"]:is([data-lh-color="aero"], :not([data-lh-color])) {
  --lh-glass-bg: linear-gradient(180deg, rgb(96 108 124 / .62) 0%, rgb(54 62 74 / .6) 48%, rgb(34 40 50 / .64) 100%);
  --lh-glass-sheen: linear-gradient(104deg, rgb(255 255 255 / 0) 8%, rgb(255 255 255 / .12) 18%, rgb(255 255 255 / 0) 30%);
  --lh-glass-ink: #ffffff;
  --lh-glass-glow: 0 0 8px rgb(0 0 0 / .85), 0 1px 2px rgb(0 0 0 / .8);
  --lh-glass-edge: rgb(0 0 0 / .8);
  --lh-glass-hi: rgb(255 255 255 / .3);
  --lh-glass-hot: rgb(255 255 255 / .16);
  --lh-glass-hot-edge: rgb(255 255 255 / .38);
  --lh-glass-down: rgb(0 0 0 / .3);
}
html[data-switch-style="longhorn"][data-theme="dark"][data-lh-color="jade"] {
  --lh-glass-bg: linear-gradient(180deg, rgb(125 145 119 / .86) 0%, rgb(86 105 79 / .86) 50%, rgb(79 98 73 / .9) 100%);
  --lh-glass-ink: #f3f8f1;
  --lh-glass-glow: 0 1px 1px rgb(0 0 0 / .55);
  --lh-glass-edge: #161d14;
  --lh-glass-hi: rgb(255 255 255 / .22);
  --lh-glass-hot: rgb(255 255 255 / .16);
  --lh-glass-hot-edge: rgb(255 255 255 / .3);
}
/* 窗口最大化（窄屏，或「窗口全屏」）：标题栏 / 资源管理器顶部 / 任务栏 / 边栏都变成不透明的黑色 */
@media (max-width: 1259.98px) {
  html[data-switch-style="longhorn"] {
    --lh-glass-bg: linear-gradient(180deg, #3b3e43 0%, #1d1f22 46%, #050506 50%, #0b0c0d 100%);
    --lh-glass-sheen: none;
    --lh-glass-filter: none;
    --lh-glass-ink: #ffffff;
    --lh-glass-glow: 0 1px 1px #000;
    --lh-glass-edge: #000;
    --lh-glass-hi: rgb(255 255 255 / .2);
    --lh-glass-hot: rgb(255 255 255 / .16);
    --lh-glass-hot-edge: rgb(255 255 255 / .32);
    --lh-glass-down: rgb(255 255 255 / .06);
    --lh-tb-bg: linear-gradient(180deg, #2c2e31 0%, #0d0e0f 50%, #000 51%, #000 100%);
    --lh-tb-filter: none;
    --lh-sb-bg: #0b0c0d;
    --lh-sb-filter: none;
  }
}
html[data-switch-style="longhorn"][data-desk-width="full"] {
  --lh-glass-bg: linear-gradient(180deg, #3b3e43 0%, #1d1f22 46%, #050506 50%, #0b0c0d 100%);
  --lh-glass-sheen: none;
  --lh-glass-filter: none;
  --lh-glass-ink: #ffffff;
  --lh-glass-glow: 0 1px 1px #000;
  --lh-glass-edge: #000;
  --lh-glass-hi: rgb(255 255 255 / .2);
  --lh-glass-hot: rgb(255 255 255 / .16);
  --lh-glass-hot-edge: rgb(255 255 255 / .32);
  --lh-glass-down: rgb(255 255 255 / .06);
  --lh-tb-bg: linear-gradient(180deg, #2c2e31 0%, #0d0e0f 50%, #000 51%, #000 100%);
  --lh-tb-filter: none;
  --lh-sb-bg: #0b0c0d;
  --lh-sb-filter: none;
}
/* 最小化以后桌面全露出来：任务栏 / 边栏回到透明玻璃 */
html[data-switch-style="longhorn"].win-minimized {
  --lh-tb-bg: linear-gradient(180deg, rgb(70 78 88 / .62) 0%, rgb(20 24 30 / .62) 48%, rgb(6 8 10 / .7) 52%, rgb(10 12 16 / .66) 100%);
  --lh-tb-filter: blur(8px) saturate(1.5);
  --lh-sb-bg: linear-gradient(90deg, rgb(10 14 20 / .5) 0%, rgb(14 18 26 / .38) 100%);
  --lh-sb-filter: blur(9px) saturate(1.4);
}

/* 几何：任务栏 / 边栏 / 还原窗口 */
@media (min-width: 721px) {
  html[data-switch-style="longhorn"] { --lh-tb-h: 32px; }
}
@media (min-width: 1400px) {
  html[data-switch-style="longhorn"]:not([data-lh-sidebar="off"]) { --lh-sb-w: 172px; }
}
@media (min-width: 1260px) {
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) {
    --lh-win: min(1200px, calc(100vw - var(--lh-sb-w) - 48px));
    --lh-fw: 6px;
  }
}

/* 其余地方一律不用毛玻璃（只有 DWM 玻璃区单独打开，见下面的 .lh-glass 规则），滚动时不必重新模糊 */
html[data-switch-style="longhorn"] *,
html[data-switch-style="longhorn"] *::before,
html[data-switch-style="longhorn"] *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 只有 Longhorn 用到的节点，在别的主题下一律隐藏（切换主题后 lh-shell.js 会移除，这里兜底） */
html:not([data-switch-style="longhorn"]) :is(.lh-sidebar, .lh-taskbar, .lh-startmenu, .lh-watermark, .lh-pane, .lh-band, .lh-aurora-canvas) { display: none !important; }

/* ---------------------------------------------------------------- 基础排版 */
html[data-switch-style="longhorn"] body {
  font-family: var(--font);
  letter-spacing: 0;
  color: var(--text);
  background: #2b086e;
  padding-right: var(--lh-sb-w);
  padding-bottom: var(--lh-tb-h);
}
html[data-switch-style="longhorn"] :is(h1, h2, h3, h4, h5) { font-family: var(--font); letter-spacing: 0; }
html[data-switch-style="longhorn"] ::selection { background: #3a78c9; color: #fff; }
html[data-switch-style="longhorn"] a:not(.btn):not(.nav-link):hover { text-decoration: underline; }
html[data-switch-style="longhorn"] :is(header.nav, .section-nav, .nav-menu, .segmented, .footer .cols, .aero-chrome, .lh-sidebar, .lh-taskbar, .lh-startmenu, .admin-ai-split) a:hover,
html[data-switch-style="longhorn"] a.card:hover,
html[data-switch-style="longhorn"] a:has(> .card):hover { text-decoration: none; }
html[data-switch-style="longhorn"] .scroll-progress { display: none; }

/* ---------------------------------------------------------------- 桌面：壁纸 / 动态极光 / 水印 */
html[data-switch-style="longhorn"] .aurora { visibility: visible !important; }
html[data-switch-style="longhorn"]:not([data-desk-bg="site"]) .aurora {
  background: #2b086e var(--lh-wall, none) center / cover no-repeat !important;
}
html[data-switch-style="longhorn"]:not([data-desk-bg="site"]) .aurora i,
html[data-switch-style="longhorn"]:not([data-desk-bg="site"]) .personal-background { display: none !important; }
html[data-switch-style="longhorn"][data-desk-bg="site"] body.has-personal-background .aurora { background: none !important; }
html[data-switch-style="longhorn"][data-desk-bg="site"] body.has-personal-background .aurora i { display: none; }
html[data-switch-style="longhorn"] .lh-aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
html[data-switch-style="longhorn"] .lh-watermark {
  position: fixed;
  right: calc(var(--lh-sb-w) + 14px);
  bottom: calc(var(--lh-tb-h) + 10px);
  z-index: 0;
  display: none;
  text-align: right;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  text-shadow: 1px 1px 1px rgb(0 0 0 / .7);
  pointer-events: none;
}
html[data-switch-style="longhorn"] .lh-watermark b { display: block; font-weight: 700; }
html[data-switch-style="longhorn"] .lh-watermark span { display: block; }
/* 只在窗口右边留得下水印时显示（否则会从窗口边上露出半截） */
@media (min-width: 1900px) {
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) .lh-watermark { display: block; }
}
@media (min-width: 1740px) {
  html[data-switch-style="longhorn"][data-lh-sidebar="off"]:not([data-desk-width="full"]) .lh-watermark { display: block; }
}
html[data-switch-style="longhorn"].win-minimized .lh-watermark { display: block; }

/* ---------------------------------------------------------------- 窗口 */
html[data-switch-style="longhorn"] #app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--lh-win);
  margin-inline: auto;
  min-height: calc(100dvh - var(--lh-tb-h));
  display: flex;
  flex-direction: column;
  background: var(--lh-face);
  overflow-x: clip;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .22s ease;
  transform-origin: 6% 100%;
}
/* 还原的窗口：左右和底边是一圈玻璃边框（两条细的玻璃 + 底边），中间的内容区不透明 */
@media (min-width: 1260px) {
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) #app {
    width: var(--lh-win);
    margin-top: 14px;
    margin-bottom: 14px;
    min-height: calc(100dvh - var(--lh-tb-h) - 28px);
    padding: 0 var(--lh-fw) var(--lh-fw);
    border-radius: 8px 8px 4px 4px;
    background: transparent;
    box-shadow: 0 0 0 1px var(--lh-glass-edge), 0 12px 38px rgb(0 0 0 / .5);
  }
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) #app::before,
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) #app::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    width: var(--lh-fw);
    background: var(--lh-glass-sheen), var(--lh-glass-bg);
    -webkit-backdrop-filter: var(--lh-glass-filter) !important;
    backdrop-filter: var(--lh-glass-filter) !important;
    pointer-events: none;
  }
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) #app::before { left: 0; border-radius: 8px 0 0 4px; box-shadow: inset 1px 0 var(--lh-glass-hi); }
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) #app::after { right: 0; border-radius: 0 8px 4px 0; box-shadow: inset -1px 0 var(--lh-glass-hi); }
  /* 底边：页脚下面那 6px */
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) #foot { box-shadow: 0 var(--lh-fw) 0 0 color-mix(in srgb, var(--lh-face) 0%, transparent); }
}
html[data-switch-style="longhorn"].win-minimized #app {
  transform: translate3d(-30vw, 46vh, 0) scale(.1);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-switch-style="longhorn"] #app { transition: opacity .15s linear; }
  html[data-switch-style="longhorn"].win-minimized #app { transform: none; }
}

/* ---------------------------------------------------------------- 标题栏（顶栏）：品牌 = 窗口图标 + 标题，导航 = 菜单栏 */
html[data-switch-style="longhorn"] header.nav,
html[data-switch-style="longhorn"][data-theme="dark"] header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  padding: 0;
  border: 0;
  background: var(--lh-glass-sheen), var(--lh-glass-bg);
  -webkit-backdrop-filter: var(--lh-glass-filter) !important;
  backdrop-filter: var(--lh-glass-filter) !important;
  box-shadow: inset 0 1px var(--lh-glass-hi);
  color: var(--lh-glass-ink);
}
html[data-switch-style="longhorn"] header.nav::before,
html[data-switch-style="longhorn"] header.nav::after { display: none !important; }
html[data-switch-style="longhorn"] header.nav.is-scrolled { box-shadow: inset 0 1px var(--lh-glass-hi), 0 1px 0 var(--lh-glass-edge), 0 3px 8px rgb(0 0 0 / .25); }
@media (min-width: 1260px) {
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) header.nav {
    margin-inline: calc(var(--lh-fw) * -1);
    border-radius: 8px 8px 0 0;
  }
}
html[data-switch-style="longhorn"] header.nav .nav-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 0 6px 0 10px;
  gap: 6px;
}
html[data-switch-style="longhorn"] header.nav .nav-inner::after { display: none !important; }
html[data-switch-style="longhorn"] header.nav :is(.brand, .brand .name, .review-qq, .nav-link, .icon-btn, .nav-status) {
  color: var(--lh-glass-ink);
  text-shadow: var(--lh-glass-glow);
}
html[data-switch-style="longhorn"] header.nav .brand { gap: 6px; }
html[data-switch-style="longhorn"] header.nav .brand .logo { width: 18px; height: 18px; border-radius: 0; background: none; box-shadow: none; }
html[data-switch-style="longhorn"] header.nav .brand .logo img { width: 16px; height: 16px; }
html[data-switch-style="longhorn"] header.nav .brand .name { font-size: 13px; font-weight: 700; letter-spacing: 0; }
html[data-switch-style="longhorn"] header.nav .brand .ver {
  color: var(--lh-glass-ink);
  border: 0;
  background: none;
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  opacity: .7;
}
html[data-switch-style="longhorn"] header.nav .nav-links { flex: 0 1 auto; justify-content: flex-start; gap: 1px; margin-left: 14px; margin-right: auto; }
html[data-switch-style="longhorn"] header.nav .nav-links .nav-link {
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 400;
  transition: none;
}
html[data-switch-style="longhorn"] header.nav .nav-links .nav-link:hover,
html[data-switch-style="longhorn"] header.nav .nav-group:hover > .nav-link,
html[data-switch-style="longhorn"] header.nav .nav-group:focus-within > .nav-link {
  background: var(--lh-glass-hot);
  border-color: var(--lh-glass-hot-edge);
}
html[data-switch-style="longhorn"] header.nav .nav-links .nav-link.active {
  background: var(--lh-glass-down);
  border-color: rgb(0 0 0 / .18);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .2);
  font-weight: 600;
}
html[data-switch-style="longhorn"] header.nav .nav-link::after,
html[data-switch-style="longhorn"] header.nav .nav-links .nav-link.active::after { display: none; }
html[data-switch-style="longhorn"] header.nav .nav-link .caret { width: 8px; height: 6px; opacity: .75; }
html[data-switch-style="longhorn"] header.nav .review-qq { font-size: 11.5px; opacity: .85; }
html[data-switch-style="longhorn"] header.nav .nav-actions { gap: 3px; }
html[data-switch-style="longhorn"] header.nav .icon-btn {
  width: 26px;
  height: 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}
html[data-switch-style="longhorn"] header.nav .icon-btn svg { width: 15px; height: 15px; }
html[data-switch-style="longhorn"] header.nav .icon-btn:hover { background: var(--lh-glass-hot); border-color: var(--lh-glass-hot-edge); transform: none; }
html[data-switch-style="longhorn"] header.nav .icon-btn:active { background: var(--lh-glass-down); }
html[data-switch-style="longhorn"] header.nav [data-user-menu] { width: 30px !important; height: 26px !important; }
html[data-switch-style="longhorn"] header.nav [data-user-menu] .avatar { width: 22px; height: 22px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); }
html[data-switch-style="longhorn"] header.nav .nav-actions > .btn,
html[data-switch-style="longhorn"] header.nav .nav-actions > .btn:hover {
  height: 22px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 12px;
  text-shadow: none;
}
html[data-switch-style="longhorn"] header.nav .nav-actions > .btn-ghost { background: transparent; border-color: transparent; color: var(--lh-glass-ink); text-shadow: var(--lh-glass-glow); }
html[data-switch-style="longhorn"] header.nav .nav-actions > .btn-ghost:hover { background: var(--lh-glass-hot); border-color: var(--lh-glass-hot-edge); box-shadow: none; }
html[data-switch-style="longhorn"] header.nav .nav-status { border-radius: 3px; font-size: 11.5px; }
html[data-switch-style="longhorn"] .notify-badge { border-radius: 8px; background: #d4361f; color: #fff; box-shadow: 0 0 0 1px #fff; }

/* 标题栏按钮：4074 的 ▼ ▲ ✕（Aero 时是一组玻璃小按钮，关闭键悬停变红） */
html[data-switch-style="longhorn"] header.nav .win-nav-caps {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  order: 99;
  flex: none;
  margin-left: 6px;
}
html[data-switch-style="longhorn"] header.nav .win-cap {
  width: 26px;
  height: 20px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--lh-glass-ink);
  cursor: pointer;
  position: relative;
}
html[data-switch-style="longhorn"] header.nav .win-cap::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 8px;
  background: currentColor;
  -webkit-mask: var(--lh-glyph) center / contain no-repeat;
  mask: var(--lh-glyph) center / contain no-repeat;
}
html[data-switch-style="longhorn"] .win-cap.min,
html[data-switch-style="longhorn"] .lh-glyph-min { --lh-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M.5 1h9L5 7z'/%3E%3C/svg%3E"); }
html[data-switch-style="longhorn"] .win-cap.max { --lh-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M.5 7h9L5 1z'/%3E%3C/svg%3E"); }
html[data-switch-style="longhorn"] .win-cap.cls,
html[data-switch-style="longhorn"] .lh-glyph-close { --lh-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 1.2l7.6 7.6M8.8 1.2L1.2 8.8' stroke='%23000' stroke-width='1.9'/%3E%3C/svg%3E"); }
html[data-switch-style="longhorn"] header.nav .win-cap.cls::before { width: 9px; height: 9px; }
html[data-switch-style="longhorn"] header.nav .win-cap:hover { background: var(--lh-glass-hot); border-color: var(--lh-glass-hot-edge); }
html[data-switch-style="longhorn"] header.nav .win-cap.cls:hover { background: linear-gradient(180deg, #e8806b 0%, #cf4a33 50%, #b8321d 100%); border-color: #7a1c0e; color: #fff; }
html[data-switch-style="longhorn"] header.nav .win-cap:active { background: var(--lh-glass-down); }
html[data-switch-style="longhorn"] header.nav .win-cap:focus-visible { outline: 1px dotted var(--lh-glass-ink); outline-offset: -3px; }

html[data-switch-style="longhorn"]:is([data-lh-color="aero"], :not([data-lh-color])) header.nav .win-nav-caps {
  gap: 0;
  border: 1px solid rgb(0 0 0 / .45);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / .5);
}
html[data-switch-style="longhorn"]:is([data-lh-color="aero"], :not([data-lh-color])) header.nav .win-cap {
  height: 18px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .22) 48%, rgb(0 0 0 / .06) 52%, rgb(255 255 255 / .18) 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / .55);
}
html[data-switch-style="longhorn"]:is([data-lh-color="aero"], :not([data-lh-color])) header.nav .win-cap + .win-cap { box-shadow: inset 1px 0 rgb(0 0 0 / .3), inset 0 1px rgb(255 255 255 / .55); }
html[data-switch-style="longhorn"]:is([data-lh-color="aero"], :not([data-lh-color])) header.nav .win-cap.cls { width: 40px; }
html[data-switch-style="longhorn"]:is([data-lh-color="aero"], :not([data-lh-color])) header.nav .win-cap:hover { background: linear-gradient(180deg, rgb(225 240 255 / .9) 0%, rgb(150 200 245 / .7) 50%, rgb(90 160 230 / .7) 51%, rgb(140 200 250 / .75) 100%); }

/* 下拉菜单 / 账号菜单 / 通知面板：白底、灰边、浅蓝高亮 */
html[data-switch-style="longhorn"] header.nav :is(.nav-menu, .user-menu, .notify-panel),
html[data-switch-style="longhorn"][data-theme="dark"] header.nav :is(.nav-menu, .user-menu, .notify-panel),
html[data-switch-style="longhorn"] :is(.msg-menu, .fm-menu) {
  background: var(--lh-client);
  border: 1px solid #7d8790;
  border-radius: 3px;
  padding: 3px;
  box-shadow: 2px 3px 10px rgb(0 0 0 / .28);
  color: var(--text);
}
html[data-switch-style="longhorn"][data-theme="dark"] :is(header.nav :is(.nav-menu, .user-menu, .notify-panel), .msg-menu, .fm-menu) { border-color: #0c0e10; }
html[data-switch-style="longhorn"] header.nav .nav-menu { top: calc(100% + 2px); }
html[data-switch-style="longhorn"] header.nav .nav-menu a,
html[data-switch-style="longhorn"] header.nav .user-menu :is(.nav-link, .row) {
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text);
  text-shadow: none;
  box-shadow: none;
  background: transparent;
}
html[data-switch-style="longhorn"] header.nav .nav-menu a :is(.mt, .md) { color: inherit; }
html[data-switch-style="longhorn"] header.nav .nav-menu a .md { color: var(--text-3); }
html[data-switch-style="longhorn"] header.nav .nav-menu a .mi { color: var(--lh-link); }
html[data-switch-style="longhorn"] header.nav .nav-menu a:hover,
html[data-switch-style="longhorn"] header.nav .user-menu :is(.nav-link, .row):hover,
html[data-switch-style="longhorn"] :is(.msg-menu, .fm-menu) :is(button, a):hover {
  background: var(--lh-sel);
  border-color: var(--lh-sel-edge);
  color: var(--lh-sel-ink) !important;
  text-decoration: none;
}
html[data-switch-style="longhorn"] header.nav .user-menu [data-logout] { color: var(--red) !important; }
html[data-switch-style="longhorn"] header.nav .nav-drawer {
  background: var(--lh-client);
  border: 1px solid #7d8790;
  box-shadow: 2px 3px 10px rgb(0 0 0 / .28);
}
html[data-switch-style="longhorn"] header.nav .nav-drawer a { border-radius: 3px; color: var(--text); text-shadow: none; border: 1px solid transparent; }
html[data-switch-style="longhorn"] header.nav .nav-drawer a:is(:hover, .active) { background: var(--lh-sel); border-color: var(--lh-sel-edge); color: var(--lh-sel-ink); }

/* ---------------------------------------------------------------- 资源管理器顶部（.aero-chrome + lh-shell.js 插入的 .lh-pane / .lh-band）
   照 4074 Aero 的资源管理器：上半截和标题栏连成一片玻璃 —— 左边大的圆形后退按钮，旁边是大标题、下面一行面包屑，右上角搜索框；
   下半截是一条按栏目换色的预览窗格，背景里流动着极光（Animated Preview Panel Aurora）。 */
html[data-switch-style="longhorn"] {
  --lh-pane: linear-gradient(180deg, #2f236f 0%, #4a3a98 55%, #6d5bbd 100%);
  --lh-pane-ink: #ffffff;
}
html[data-switch-style="longhorn"][data-lh-pane="gray"] { --lh-pane: linear-gradient(180deg, #56657b 0%, #6f7e95 55%, #8998af 100%); }
html[data-switch-style="longhorn"][data-lh-pane="blue"] { --lh-pane: linear-gradient(180deg, #173f7a 0%, #2b5ea3 55%, #4d84c8 100%); }
html[data-switch-style="longhorn"][data-lh-pane="green"] { --lh-pane: linear-gradient(180deg, #2c5a25 0%, #46803a 55%, #6ea35c 100%); }
html[data-switch-style="longhorn"][data-lh-pane="amber"] { --lh-pane: linear-gradient(180deg, #6a4515 0%, #8f6329 55%, #b38645 100%); }
html[data-switch-style="longhorn"][data-lh-pane="teal"] { --lh-pane: linear-gradient(180deg, #145a63 0%, #217a83 55%, #449ea5 100%); }
html[data-switch-style="longhorn"][data-lh-pane="red"] { --lh-pane: linear-gradient(180deg, #6e1010 0%, #9c2222 55%, #c24a4a 100%); }
html[data-switch-style="longhorn"][data-lh-pane="graphite"] { --lh-pane: linear-gradient(180deg, #33383e 0%, #4b5158 55%, #697078 100%); }

html[data-switch-style="longhorn"] .aero-chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "nav title refresh search" "nav crumbs crumbs crumbs" "band band band band";
  column-gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 6px 12px 0;
  background: var(--lh-glass-sheen), var(--lh-glass-bg);
  -webkit-backdrop-filter: var(--lh-glass-filter) !important;
  backdrop-filter: var(--lh-glass-filter) !important;
  color: var(--lh-glass-ink);
}
@media (min-width: 1260px) {
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) .aero-chrome { margin-inline: calc(var(--lh-fw) * -1); padding-inline: calc(12px + var(--lh-fw)); }
}
html[data-switch-style="longhorn"] .aero-chrome :is(.aero-tb, .w2k-tools, .w2k-addr) { display: none !important; }
html[data-switch-style="longhorn"] .aero-addr { display: contents; }
html[data-switch-style="longhorn"] .aero-navs { grid-area: nav; display: inline-flex; align-items: center; gap: 1px; }
/* 圆形玻璃后退 / 前进按钮 */
html[data-switch-style="longhorn"] .aero-nav {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgb(0 0 0 / .6);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.5 3.5L5 8l4.5 4.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    radial-gradient(ellipse 78% 52% at 50% 20%, rgb(255 255 255 / .85), rgb(255 255 255 / 0) 72%),
    radial-gradient(circle at 50% 85%, #9cc6f2 0%, #3a74bf 50%, #183a6e 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), 0 1px 3px rgb(0 0 0 / .45), 0 0 6px rgb(255 255 255 / .5);
  cursor: pointer;
}
html[data-switch-style="longhorn"] .aero-nav.fwd {
  width: 24px;
  height: 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 3.5L11 8l-4.5 4.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    radial-gradient(ellipse 78% 52% at 50% 20%, rgb(255 255 255 / .8), rgb(255 255 255 / 0) 72%),
    radial-gradient(circle at 50% 85%, #9cc6f2 0%, #3a74bf 50%, #183a6e 100%);
}
html[data-switch-style="longhorn"] .aero-nav:hover { filter: brightness(1.15) saturate(1.15); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), 0 1px 3px rgb(0 0 0 / .45), 0 0 10px rgb(120 190 255 / .9); }
html[data-switch-style="longhorn"] .aero-nav:active { filter: brightness(.85); }
html[data-switch-style="longhorn"] .aero-nav:focus-visible { outline: 1px dotted var(--lh-glass-ink); outline-offset: 2px; }
html[data-switch-style="longhorn"] .lh-pane { grid-area: title; min-width: 0; align-self: end; }
html[data-switch-style="longhorn"] .lh-pane-title {
  display: block;
  font-family: var(--font-light);
  font-size: 25px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--lh-glass-ink);
  text-shadow: var(--lh-glass-glow);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-switch-style="longhorn"] .aero-crumbs {
  grid-area: crumbs;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  margin-left: -4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--lh-glass-ink);
  font-size: 12px;
  text-shadow: var(--lh-glass-glow);
}
html[data-switch-style="longhorn"] .aero-crumbs img { width: 16px; height: 16px; flex: none; }
html[data-switch-style="longhorn"] .aero-crumbs :is(a, .aero-cur) { color: var(--lh-glass-ink); padding: 1px 4px; border-radius: 3px; border: 1px solid transparent; }
html[data-switch-style="longhorn"] .aero-crumbs a:hover { background: var(--lh-glass-hot); border-color: var(--lh-glass-hot-edge); text-decoration: none; }
html[data-switch-style="longhorn"] .aero-crumbs .aero-cur { overflow: hidden; text-overflow: ellipsis; }
html[data-switch-style="longhorn"] .aero-sep {
  width: 5px;
  height: 8px;
  flex: none;
  background: currentColor;
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 8'%3E%3Cpath d='M0 0l5 4-5 4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 8'%3E%3Cpath d='M0 0l5 4-5 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-switch-style="longhorn"] .aero-sep[hidden] { display: none; }
html[data-switch-style="longhorn"] .aero-refresh {
  grid-area: refresh;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--lh-glass-ink);
  cursor: pointer;
  position: relative;
}
html[data-switch-style="longhorn"] .aero-refresh::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8a5 5 0 1 1-1.5-3.6' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M13.5 1.5v4.5H9z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8a5 5 0 1 1-1.5-3.6' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M13.5 1.5v4.5H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-switch-style="longhorn"] .aero-refresh:hover { background: var(--lh-glass-hot); border-color: var(--lh-glass-hot-edge); }
html[data-switch-style="longhorn"] .aero-search { grid-area: search; position: relative; width: 220px; display: flex; }
html[data-switch-style="longhorn"] .aero-search input {
  width: 100%;
  height: 24px;
  padding: 0 26px 0 8px;
  border: 1px solid rgb(0 0 0 / .45);
  border-radius: 3px;
  background: rgb(255 255 255 / .88);
  color: #111;
  font: 12px var(--font);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .2), 0 1px 0 rgb(255 255 255 / .4);
  outline: none;
}
html[data-switch-style="longhorn"] .aero-search input::placeholder { color: #6b737c; font-style: italic; }
html[data-switch-style="longhorn"] .aero-search input:focus { background: #fff; border-color: #2a5ea8; }
html[data-switch-style="longhorn"] .aero-search button {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 24px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.2' fill='none' stroke='%232b4a72' stroke-width='1.8'/%3E%3Cpath d='M9.6 9.6l4.4 4.4' stroke='%232b4a72' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  cursor: pointer;
}
/* 预览窗格：按栏目换色，背景里一层缓慢平移的细光柱（只动 transform）+ 右侧几道弯曲的亮线 */
html[data-switch-style="longhorn"] .lh-band {
  grid-area: band;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: 48px;
  margin: 8px -12px 0;
  padding: 0 18px;
  background: var(--lh-pane);
  color: #fff;
  box-shadow: inset 0 1px rgb(0 0 0 / .45), inset 0 2px rgb(255 255 255 / .18), inset 0 -1px rgb(0 0 0 / .35);
}
@media (min-width: 1260px) {
  html[data-switch-style="longhorn"]:not([data-desk-width="full"]) .lh-band { margin-inline: calc(-12px - var(--lh-fw) + var(--lh-fw)); }
}
html[data-switch-style="longhorn"] .lh-band-label {
  position: relative;
  font-family: var(--font-light);
  font-size: 21px;
  font-weight: 300;
  text-shadow: 0 1px 3px rgb(0 0 0 / .4);
  white-space: nowrap;
}
html[data-switch-style="longhorn"] .lh-pane-sub {
  position: relative;
  min-width: 0;
  font-size: 12px;
  opacity: .85;
  text-shadow: 0 1px 1px rgb(0 0 0 / .35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-switch-style="longhorn"] .lh-pane-aurora {
  position: absolute;
  top: -60px;
  bottom: -10px;
  left: -46px;
  width: calc(100% + 1200px);
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      rgb(255 255 255 / 0) 0, rgb(255 255 255 / 0) 31px, rgb(255 255 255 / .08) 36px, rgb(255 255 255 / 0) 44px,
      rgb(255 255 255 / 0) 71px, rgb(255 255 255 / .14) 74px, rgb(255 255 255 / 0) 79px,
      rgb(255 255 255 / 0) 109px, rgb(255 255 255 / .06) 118px, rgb(255 255 255 / 0) 140px);
  -webkit-mask: linear-gradient(180deg, rgb(0 0 0 / .3) 0%, #000 60%, rgb(0 0 0 / .7) 100%);
  mask: linear-gradient(180deg, rgb(0 0 0 / .3) 0%, #000 60%, rgb(0 0 0 / .7) 100%);
  animation: lhPaneDrift 48s linear infinite;
  will-change: transform;
}
@keyframes lhPaneDrift { to { transform: translate3d(-560px, 0, 0); } }
html[data-switch-style="longhorn"] .lh-band::after {
  content: "";
  position: absolute;
  right: 4%;
  top: -30px;
  width: 140px;
  height: calc(100% + 40px);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 120' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath d='M30 0C34 40 44 80 40 120' stroke-opacity='.55' stroke-width='1.2'/%3E%3Cpath d='M44 0C42 45 52 85 50 120' stroke-opacity='.35' stroke-width='3'/%3E%3Cpath d='M58 0C60 40 54 80 60 120' stroke-opacity='.5' stroke-width='1'/%3E%3Cpath d='M96 0C92 50 104 90 100 120' stroke-opacity='.25' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  animation: lhPaneGlow 7s ease-in-out infinite alternate;
}
@keyframes lhPaneGlow { from { opacity: .45; } to { opacity: .95; } }
@media (prefers-reduced-motion: reduce) {
  html[data-switch-style="longhorn"] .lh-pane-aurora,
  html[data-switch-style="longhorn"] .lh-band::after { animation: none; }
}
@media (max-width: 720px) {
  html[data-switch-style="longhorn"] .aero-chrome {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "nav title search" "band band band";
    padding: 5px 8px 0;
  }
  html[data-switch-style="longhorn"] :is(.aero-crumbs, .aero-refresh) { display: none; }
  html[data-switch-style="longhorn"] .aero-search { width: 120px; }
  html[data-switch-style="longhorn"] .aero-nav { width: 30px; height: 30px; }
  html[data-switch-style="longhorn"] .lh-pane-title { font-size: 19px; }
  html[data-switch-style="longhorn"] .lh-band { height: 34px; margin: 6px -8px 0; padding: 0 12px; }
  html[data-switch-style="longhorn"] .lh-band-label { font-size: 16px; }
}

/* ---------------------------------------------------------------- 客户区 */
html[data-switch-style="longhorn"] #view.page {
  flex: 1 0 auto;
  max-width: none;
  width: auto;
  margin: 0;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
  background: var(--lh-client);
  position: relative;
  z-index: 1;
}
html[data-switch-style="longhorn"][data-workspace-layout="edge"] #view.page.workspace-page { padding: 0; }

/* 首页分区导航 = 预览窗格下面的命令栏 */
html[data-switch-style="longhorn"] .section-nav.home-section-nav,
html[data-switch-style="longhorn"][data-theme="dark"] .section-nav.home-section-nav {
  width: var(--lh-inner);
  max-width: none;
  margin-left: calc(50% - var(--lh-inner) / 2);
  margin-right: 0;
  padding: 0 12px;
  height: 30px;
  gap: 1px;
  align-items: center;
  top: var(--nav-h);
  background: linear-gradient(180deg, #fdfdfd 0%, #eef0f3 55%, #e2e6ea 100%);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -1px #b7bfc8, 0 1px 2px rgb(0 0 0 / .06);
  z-index: 50;
}
html[data-switch-style="longhorn"][data-theme="dark"] .section-nav.home-section-nav { background: linear-gradient(180deg, #3c4248 0%, #30353a 100%); box-shadow: inset 0 -1px #111, inset 0 1px rgb(255 255 255 / .06); }
html[data-switch-style="longhorn"] .section-nav.home-section-nav a {
  height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  background: none;
  box-shadow: none;
}
html[data-switch-style="longhorn"] .section-nav.home-section-nav a:hover { background: var(--lh-btn-hot); border-color: var(--lh-sel-edge); color: var(--text); }
html[data-switch-style="longhorn"] .section-nav.home-section-nav a.active,
html[data-switch-style="longhorn"][data-theme="dark"] .section-nav.home-section-nav a.active {
  background: var(--lh-btn-down);
  border-color: var(--lh-sel-edge);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .15);
  color: var(--text);
}
html[data-switch-style="longhorn"] .section-nav.home-section-nav a::after { display: none; }
html[data-switch-style="longhorn"] .section-nav.home-section-nav .section-nav-icon { color: var(--lh-link); }
html[data-switch-style="longhorn"] .zone { scroll-margin-top: calc(var(--nav-h) + 42px); }

/* 标题 */
html[data-switch-style="longhorn"] :is(.page-head h1, .hero h1) {
  font-family: var(--font-light);
  font-weight: 300;
  color: var(--lh-head);
  letter-spacing: -.01em;
}
html[data-switch-style="longhorn"] .grad-text,
html[data-switch-style="longhorn"][data-theme="dark"] .grad-text,
html[data-switch-style="longhorn"][data-palette] .grad-text {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--lh-link) !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none;
}
html[data-switch-style="longhorn"] :is(.card-title, .page-head h2, .section-title, h2.title, .zone-head h2) { color: var(--lh-head); font-weight: 600; }
html[data-switch-style="longhorn"] :is(.zone-no, .eyebrow) { color: var(--lh-link); letter-spacing: .06em; }

/* 面板：白底细灰边的 4074 分组框 */
html[data-switch-style="longhorn"] :is(.card, .hero-panel, .stat-strip, .auth-card, .team-card, .metric, .player-list-wrap, .review-card,
    .resource-card, .xt-stat, .team-slot, .hub-block, .flow > div, .ticker, .lat-chart-wrap, .messages-shell) {
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--lh-client) 0%, var(--surface-2) 100%);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06);
  color: var(--text);
}
html[data-switch-style="longhorn"] .card .card,
html[data-switch-style="longhorn"] .card :is(.resource-card, .xt-stat, .team-slot) { background: var(--lh-client); box-shadow: none; border-color: var(--line); }
html[data-switch-style="longhorn"] .card.clickable:hover,
html[data-switch-style="longhorn"] a.card:hover { transform: none; border-color: var(--lh-sel-edge); background: linear-gradient(180deg, var(--lh-client) 0%, var(--surface-hover) 100%); box-shadow: 0 0 0 1px rgb(63 127 198 / .2), 0 2px 5px rgb(0 0 0 / .1); }
/* 首页右侧面板的抬头 = 一小块预览窗格 */
html[data-switch-style="longhorn"] .hero-panel { overflow: hidden; }
html[data-switch-style="longhorn"] .hero-panel .top {
  background: linear-gradient(180deg, #56657b 0%, #7a89a0 100%);
  color: #fff;
  border-bottom: 1px solid rgb(0 0 0 / .35);
  --text: #fff;
  --text-2: #fff;
  --text-3: rgb(255 255 255 / .85);
}
html[data-switch-style="longhorn"] .hero-panel .top :is(div, span, b, strong) { color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / .3); }
/* 横幅 = 紫色极光 */
html[data-switch-style="longhorn"] .cta-band,
html[data-switch-style="longhorn"][data-palette] .cta-band {
  border-radius: 4px;
  border: 1px solid #1d0c4d;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0) 0 40px, rgb(255 255 255 / .06) 46px, rgb(255 255 255 / 0) 54px 97px),
    linear-gradient(180deg, #2b086e 0%, #4a1f8a 55%, #8a52bd 88%, #e9d6f8 92%, #b682d6 100%);
  animation: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / .2);
  color: #fff;
}
html[data-switch-style="longhorn"] .cta-band :is(h2, h3, p, .grad-text) { color: #fff !important; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
html[data-switch-style="longhorn"] .divider { height: 1px; background: var(--line); border: 0; }
html[data-switch-style="longhorn"] :is(.pill, .badge, .tag, .chip) { border-radius: 3px; }
html[data-switch-style="longhorn"] .notice { border-radius: 3px; border: 1px solid #c9b46a; background: var(--lh-info); color: var(--text); }
html[data-switch-style="longhorn"][data-theme="dark"] .notice { border-color: #6b6030; }

/* 页脚 = 资源管理器底部的详细信息栏 */
html[data-switch-style="longhorn"] .footer,
html[data-switch-style="longhorn"][data-theme="dark"] .footer {
  background: linear-gradient(180deg, var(--lh-face-2) 0%, var(--lh-face) 40%);
  border-top: 1px solid var(--line-strong);
  box-shadow: inset 0 1px rgb(255 255 255 / .6);
  color: var(--text-2);
  font-size: 12px;
}
html[data-switch-style="longhorn"][data-theme="dark"] .footer { box-shadow: inset 0 1px rgb(255 255 255 / .05); }
html[data-switch-style="longhorn"] .footer b { color: var(--text); }
html[data-switch-style="longhorn"] .footer a { color: var(--lh-link); }

/* ---------------------------------------------------------------- 按钮：4074 Jade 的浅灰渐变按钮（灰蓝细边、悬停浅蓝） */
html[data-switch-style="longhorn"] .btn {
  --btn-bg: var(--lh-face);
  --btn-fg: var(--lh-ink);
  height: 26px;
  min-height: 0;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--lh-btn-edge);
  border-radius: 3px;
  background: var(--lh-btn);
  color: var(--lh-ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55);
  transform: none;
  transition: none;
  animation: none;
}
html[data-switch-style="longhorn"][data-theme="dark"] .btn { box-shadow: inset 0 1px rgb(255 255 255 / .12); }
html[data-switch-style="longhorn"] .btn-sm { height: 23px; padding: 0 10px; font-size: 12px; }
html[data-switch-style="longhorn"] .btn-lg { height: 30px; padding: 0 20px; font-size: 13.5px; }
html[data-switch-style="longhorn"] .btn:hover { background: var(--lh-btn-hot); border-color: var(--lh-btn-hot-edge); color: var(--lh-ink); transform: none; filter: none; }
html[data-switch-style="longhorn"] .btn:active { background: var(--lh-btn-down); border-color: var(--lh-btn-hot-edge); box-shadow: inset 0 1px 2px rgb(0 0 0 / .25); transform: none; }
html[data-switch-style="longhorn"] .btn:focus-visible { outline: 1px dotted var(--lh-ink); outline-offset: -4px; }
html[data-switch-style="longhorn"] .btn .ripple { display: none; }
html[data-switch-style="longhorn"] .btn:is([disabled], :disabled) { color: var(--lh-gray-ink); border-color: var(--lh-face-lo); background: var(--lh-face); box-shadow: none; }
/* 默认按钮：外面一圈浅蓝光边 */
html[data-switch-style="longhorn"] .btn-primary { border-color: #2f62a3; box-shadow: inset 0 0 0 1px #9cc4ee, inset 0 0 0 2px rgb(255 255 255 / .5); }
html[data-switch-style="longhorn"][data-theme="dark"] .btn-primary { border-color: #0b1a2c; box-shadow: inset 0 0 0 1px #6f9bd2; }
html[data-switch-style="longhorn"] .btn-primary:hover { box-shadow: inset 0 0 0 1px #7fb2ea; }
html[data-switch-style="longhorn"] :is(.btn-ghost, .btn-tint) { background: transparent; border-color: transparent; color: var(--text); box-shadow: none; }
html[data-switch-style="longhorn"] :is(.btn-ghost, .btn-tint):hover { background: var(--lh-btn-hot); border-color: var(--lh-sel-edge); color: var(--text); }
html[data-switch-style="longhorn"] .btn-danger { color: #b0200c; }
html[data-switch-style="longhorn"][data-theme="dark"] .btn-danger { color: #ff8a7a; }
html[data-switch-style="longhorn"] .btn-success { color: #1d7a1d; }
html[data-switch-style="longhorn"][data-theme="dark"] .btn-success { color: #7fdc7f; }
html[data-switch-style="longhorn"] .icon-btn { border-radius: 3px; transform: none; }
html[data-switch-style="longhorn"] #view .icon-btn:hover { background: var(--lh-btn-hot); box-shadow: inset 0 0 0 1px var(--lh-sel-edge); transform: none; }
html[data-switch-style="longhorn"] #view .icon-btn:active { background: var(--lh-btn-down); }

/* ---------------------------------------------------------------- 输入框 / 组合框 */
html[data-switch-style="longhorn"] :is(.input, .textarea, .select) {
  border-radius: 2px;
  border: 1px solid var(--lh-edge);
  background: var(--lh-client);
  color: var(--text);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / .06);
  font-family: var(--font);
  transition: none;
}
html[data-switch-style="longhorn"] :is(.input, .textarea, .select):hover { border-color: #7d9cc0; }
html[data-switch-style="longhorn"] :is(.input, .textarea, .select):focus { border-color: #3f7fc6; box-shadow: inset 0 1px 1px rgb(0 0 0 / .06), 0 0 0 1px rgb(63 127 198 / .25); outline: none; background: var(--lh-client); }
html[data-switch-style="longhorn"] :is(.input, .textarea)[disabled] { background: var(--lh-face); color: var(--lh-gray-ink); }
/* survey.css 对所有 select 用了 !important，这里同样要用 */
html[data-switch-style="longhorn"] select:not([multiple]) {
  border-radius: 2px !important;
  border: 1px solid var(--lh-edge) !important;
  padding-right: 24px !important;
  color: var(--text);
  box-shadow: none !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M.5 1.5h9L5 6.5z' fill='%23444c56'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #eef0f3 50%, #dde2e7 100%),
    linear-gradient(var(--lh-client), var(--lh-client)) !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center, right 1px top 1px, 0 0 !important;
  background-size: 8px 6px, 17px calc(100% - 2px), 100% 100% !important;
}
html[data-switch-style="longhorn"][data-theme="dark"] select:not([multiple]) {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M.5 1.5h9L5 6.5z' fill='%23d7dce2'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #555b62, #3e444a),
    linear-gradient(var(--lh-client), var(--lh-client)) !important;
}
html[data-switch-style="longhorn"] select:not([multiple]):focus { border-color: #3f7fc6 !important; outline: none; }
html[data-switch-style="longhorn"] select option { background: var(--lh-client); color: var(--text); }
html[data-switch-style="longhorn"] .field > :is(label, .field-label) { color: var(--text); font-weight: 600; }
html[data-switch-style="longhorn"] input[type="checkbox"]:not(.switch input),
html[data-switch-style="longhorn"] input[type="radio"] { accent-color: var(--lh-on); }

/* 开关：4074 没有开关控件，画成一条细槽 + 银色圆钮；打开时槽是翡翠绿的光泽条 */
html[data-switch-style="longhorn"] .dsh-switch,
html[data-switch-style="longhorn"] .switch input {
  border-radius: 10px;
  border: 1px solid #7f8a96;
  background: linear-gradient(180deg, #c9ced4 0%, #e9ecef 60%, #f4f6f8 100%);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .2);
}
html[data-switch-style="longhorn"] .dsh-switch::after,
html[data-switch-style="longhorn"] .switch input::after {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #eef1f4 45%, #c3cad2 100%);
  border: 1px solid #6c7782;
  box-shadow: 0 1px 2px rgb(0 0 0 / .3);
}
html[data-switch-style="longhorn"] .dsh-switch:hover::after { border-color: var(--lh-btn-hot-edge); }
html[data-switch-style="longhorn"] .dsh-switch[aria-checked="true"],
html[data-switch-style="longhorn"] .switch input:checked {
  border-color: color-mix(in srgb, var(--lh-on) 65%, #000);
  background: linear-gradient(180deg, var(--lh-on-2) 0%, var(--lh-on) 55%, color-mix(in srgb, var(--lh-on) 80%, #000) 100%);
}
html[data-switch-style="longhorn"][data-theme="dark"] :is(.dsh-switch:not([aria-checked="true"]), .switch input:not(:checked)) {
  border-color: #0e1012;
  background: linear-gradient(180deg, #16181b 0%, #24282c 100%);
}

/* 分段控件 = 一组工具栏按钮（当前项按下去、浅蓝底） */
html[data-switch-style="longhorn"] .segmented {
  padding: 1px;
  gap: 1px;
  border-radius: 3px;
  border: 1px solid var(--lh-edge);
  background: linear-gradient(180deg, #fbfbfc 0%, #e8ebee 100%);
  box-shadow: none;
}
html[data-switch-style="longhorn"][data-theme="dark"] .segmented { background: linear-gradient(180deg, #3c4248, #2d3237); border-color: #111; }
html[data-switch-style="longhorn"] .segmented button {
  height: 22px;
  padding: 0 11px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
html[data-switch-style="longhorn"] .segmented button:hover { background: var(--lh-btn-hot); border-color: var(--lh-sel-edge); }
html[data-switch-style="longhorn"] .segmented button.active { background: var(--lh-btn-down); border-color: var(--lh-sel-edge); box-shadow: inset 0 1px 2px rgb(0 0 0 / .15); color: var(--text); font-weight: 600; }
html[data-switch-style="longhorn"] .segmented :is(.seg-glider, .lgx-thumb) { display: none; }
html[data-switch-style="longhorn"] :is(.ui-range, .lgx-range > input[type="range"]) { accent-color: var(--lh-on); }

/* 页面里其余自带大圆角的按钮 / 输入框收成 4074 的小圆角 */
html[data-switch-style="longhorn"] #view :is(button, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea):not(.dsh-switch):not(.segmented button) { border-radius: 3px; }
html[data-switch-style="longhorn"] #view :is(.input, .textarea, select) { border-radius: 2px; }
html[data-switch-style="longhorn"] .experimental-preview { border-radius: 4px; }

/* ---------------------------------------------------------------- 对话框 = 一扇 Jade 窗口（浅灰对话框底） */
html[data-switch-style="longhorn"] .modal-back { background: rgb(0 0 0 / .3); }
html[data-switch-style="longhorn"] .modal {
  border-radius: 7px 7px 3px 3px;
  border: 0;
  padding: 0 5px 5px;
  background: var(--lh-frame);
  box-shadow: 0 0 0 1px var(--lh-frame-edge), inset 0 0 0 1px var(--lh-frame-hi), 0 12px 34px rgb(0 0 0 / .45);
  overflow: hidden;
}
html[data-switch-style="longhorn"] .modal-head {
  min-height: 30px;
  margin: 0 -5px;
  padding: 4px 6px 4px 11px;
  align-items: center;
  background: var(--lh-title);
  border: 0;
  border-radius: 7px 7px 0 0;
  box-shadow: inset 0 1px var(--lh-frame-hi);
  color: var(--lh-title-ink);
}
html[data-switch-style="longhorn"] .modal-head h3 { font-size: 13px; font-weight: 700; color: var(--lh-title-ink); text-shadow: var(--lh-title-shadow); }
html[data-switch-style="longhorn"] .modal-head .sub { color: var(--lh-title-ink); opacity: .75; }
html[data-switch-style="longhorn"] .modal-head .icon-btn {
  width: 26px;
  height: 20px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--lh-cap-ink);
  box-shadow: none;
  position: relative;
}
html[data-switch-style="longhorn"] .modal-head .icon-btn svg { display: none; }
html[data-switch-style="longhorn"] .modal-head .icon-btn::before,
html[data-switch-style="longhorn"] .log-drawer-close::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 1.2l7.6 7.6M8.8 1.2L1.2 8.8' stroke='%23000' stroke-width='1.9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.2 1.2l7.6 7.6M8.8 1.2L1.2 8.8' stroke='%23000' stroke-width='1.9'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-switch-style="longhorn"] :is(.modal-head .icon-btn, .log-drawer-close):hover { background: linear-gradient(180deg, #e8806b 0%, #cf4a33 50%, #b8321d 100%); border-color: #7a1c0e; color: #fff; }
html[data-switch-style="longhorn"] .modal-body { background: var(--lh-face); padding: 16px 14px; border: 0; }
html[data-switch-style="longhorn"] .modal-foot { background: var(--lh-face); border: 0; border-top: 1px solid var(--line); padding: 8px 10px; }

/* 通知 = 气球提示 */
html[data-switch-style="longhorn"] #toasts { top: calc(var(--nav-h) + 16px); }
html[data-switch-style="longhorn"] .toast {
  border-radius: 6px;
  border: 1px solid #6b7177;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 100%);
  color: #111;
  box-shadow: 2px 3px 8px rgb(0 0 0 / .3);
  font-weight: 400;
}
html[data-switch-style="longhorn"][data-theme="dark"] .toast { background: linear-gradient(180deg, #3a4046, #2b3035); color: var(--text); border-color: #0c0e10; }

/* 侧栏 = 资源管理器左侧窗格 */
/* 背景色走变量：之前「侧栏模式」的选择器更具体，深色外观的覆盖规则压不住它，深色下侧栏还是浅灰底 + 白字 */
html[data-switch-style="longhorn"] { --lh-side-bg: linear-gradient(180deg, #f6f8fa 0%, #e9edf1 100%); }
html[data-switch-style="longhorn"][data-theme="dark"] { --lh-side-bg: linear-gradient(180deg, #2b3035 0%, #23272b 100%); }
html[data-switch-style="longhorn"] .admin-directory,
html[data-switch-style="longhorn"][data-workspace-layout="edge"] .workspace-page .admin-directory {
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--lh-side-bg);
  box-shadow: none;
  overflow: hidden;
  color: var(--text);
}
html[data-switch-style="longhorn"] .admin-directory-head { background: var(--lh-pane); border-bottom: 1px solid rgb(0 0 0 / .3); }
html[data-switch-style="longhorn"] .admin-directory-head :is(*, .admin-directory-label) { color: #fff !important; text-shadow: 0 1px 1px rgb(0 0 0 / .3); }
html[data-switch-style="longhorn"] .admin-directory-link { border-radius: 3px; color: var(--text); border: 1px solid transparent; }
html[data-switch-style="longhorn"] .admin-directory-link:hover { background: var(--lh-btn-hot); border-color: var(--lh-sel-edge); color: var(--text); }
html[data-switch-style="longhorn"] .admin-directory-link.active,
html[data-switch-style="longhorn"] .admin-directory nav .admin-directory-link.active { background: var(--lh-sel); border-color: var(--lh-sel-edge); color: var(--lh-sel-ink); box-shadow: none; }
html[data-switch-style="longhorn"] .admin-directory-link.active::before,
html[data-switch-style="longhorn"] .admin-directory-glider { display: none; }

/* 表格：列表视图的列标题 */
html[data-switch-style="longhorn"] .table th { background: linear-gradient(180deg, #ffffff 0%, #eceff2 100%); box-shadow: inset 0 -1px #c4cad1, inset -1px 0 #dde1e5; border: 0; color: var(--text-2); font-weight: 400; }
html[data-switch-style="longhorn"][data-theme="dark"] .table th { background: linear-gradient(180deg, #3a4046, #2e3338); box-shadow: inset 0 -1px #15181a, inset -1px 0 #444b52; }
html[data-switch-style="longhorn"] .table tbody tr:hover td { background: rgb(63 127 198 / .1); }

/* 登录页的选项卡 */
html[data-switch-style="longhorn"] .auth-tabs { gap: 1px; padding: 1px; border-radius: 3px; background: linear-gradient(180deg, #fbfbfc, #e8ebee); border: 1px solid var(--lh-edge); box-shadow: none; }
html[data-switch-style="longhorn"][data-theme="dark"] .auth-tabs { background: linear-gradient(180deg, #3c4248, #2d3237); border-color: #111; }
html[data-switch-style="longhorn"] .auth-tabs a { border-radius: 2px; border: 1px solid transparent; color: var(--text); font-weight: 400; background: none; box-shadow: none; transform: none; }
html[data-switch-style="longhorn"] .auth-tabs a:hover { background: var(--lh-btn-hot); border-color: var(--lh-sel-edge); text-decoration: none; }
html[data-switch-style="longhorn"] .auth-tabs a.active { background: var(--lh-btn-down); border-color: var(--lh-sel-edge); font-weight: 600; box-shadow: inset 0 1px 2px rgb(0 0 0 / .15); }

/* ---------------------------------------------------------------- 滚动条：Jade 的银灰滚动条 */
html[data-switch-style="longhorn"] ::-webkit-scrollbar { width: 16px; height: 16px; background: #eef0f2; }
html[data-switch-style="longhorn"][data-theme="dark"] ::-webkit-scrollbar { background: #1b1e21; }
html[data-switch-style="longhorn"] ::-webkit-scrollbar-thumb {
  border: 1px solid #8c96a1;
  border-radius: 3px;
  min-height: 24px;
  background:
    repeating-linear-gradient(180deg, #ffffff 0 1px, #9aa4ae 1px 2px, transparent 2px 3px) center / 7px 8px no-repeat,
    linear-gradient(90deg, #f6f7f9 0%, #dde2e7 60%, #cfd5db 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7);
}
html[data-switch-style="longhorn"] ::-webkit-scrollbar-thumb:horizontal {
  background:
    repeating-linear-gradient(90deg, #ffffff 0 1px, #9aa4ae 1px 2px, transparent 2px 3px) center / 8px 7px no-repeat,
    linear-gradient(180deg, #f6f7f9 0%, #dde2e7 60%, #cfd5db 100%);
}
html[data-switch-style="longhorn"] ::-webkit-scrollbar-thumb:hover { border-color: #3f7fc6; }
html[data-switch-style="longhorn"][data-theme="dark"] ::-webkit-scrollbar-thumb {
  border-color: #0d0f11;
  background:
    repeating-linear-gradient(180deg, #8a939c 0 1px, #2a2e33 1px 2px, transparent 2px 3px) center / 7px 8px no-repeat,
    linear-gradient(90deg, #5a6168 0%, #464c53 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
}
html[data-switch-style="longhorn"] ::-webkit-scrollbar-corner { background: var(--lh-face); }
html[data-switch-style="longhorn"] :is(.segmented, .section-nav)::-webkit-scrollbar { display: none; }
@supports not selector(::-webkit-scrollbar) {
  html[data-switch-style="longhorn"] { scrollbar-color: #b8c0c8 #eef0f2; }
  html[data-switch-style="longhorn"][data-theme="dark"] { scrollbar-color: #555c63 #1b1e21; }
}

/* ==========================================================================
   外壳：任务栏 / 开始菜单 / 边栏（lh-shell.js）
   ========================================================================== */
html[data-switch-style="longhorn"] .lh-taskbar {
  position: fixed;
  left: 0;
  right: var(--lh-sb-w);
  bottom: 0;
  z-index: 95;
  height: 32px;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 4px;
  background: var(--lh-tb-bg);
  -webkit-backdrop-filter: var(--lh-tb-filter) !important;
  backdrop-filter: var(--lh-tb-filter) !important;
  border-top: 1px solid rgb(0 0 0 / .75);
  box-shadow: inset 0 1px rgb(255 255 255 / .28);
  color: #fff;
  font-size: 12px;
}
@media (min-width: 721px) {
  html[data-switch-style="longhorn"] .lh-taskbar { display: flex; }
  /* 有任务栏时不需要左下角的「还原」浮钮，任务按钮就是它 */
  html[data-switch-style="longhorn"] .win-min-dock { display: none !important; }
}
/* 开始按钮：4074 Aero 的圆形玻璃球（里面是四色旗），比任务栏高一点、压在任务栏上沿 */
html[data-switch-style="longhorn"] .lh-start {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  margin: -9px 2px 0 0;
  border: 1px solid rgb(0 0 0 / .8);
  border-radius: 50%;
  background: radial-gradient(ellipse 72% 46% at 50% 18%, rgb(255 255 255 / .62), rgb(255 255 255 / 0) 72%), var(--lh-start);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28), inset 0 -6px 10px rgb(80 150 255 / .25), 0 1px 4px rgb(0 0 0 / .6);
  color: #fff;
  cursor: pointer;
}
html[data-switch-style="longhorn"] .lh-start span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-switch-style="longhorn"] .lh-start svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .5)); }
html[data-switch-style="longhorn"] .lh-start:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35), inset 0 -6px 12px rgb(110 190 255 / .55), 0 0 10px rgb(110 180 255 / .75); }
html[data-switch-style="longhorn"] .lh-start[aria-expanded="true"] { filter: brightness(.85); box-shadow: inset 0 2px 5px rgb(0 0 0 / .6); }
html[data-switch-style="longhorn"] .lh-start:focus-visible { outline: 1px dotted #fff; outline-offset: 2px; }
html[data-switch-style="longhorn"] .lh-tb-sep { width: 2px; height: 22px; box-shadow: inset 1px 0 rgb(0 0 0 / .5), inset -1px 0 rgb(255 255 255 / .15); margin: 0 2px; }
html[data-switch-style="longhorn"] .lh-task {
  height: 25px;
  width: min(190px, 30vw);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgb(0 0 0 / .65);
  border-radius: 3px;
  background: linear-gradient(180deg, rgb(255 255 255 / .22) 0%, rgb(255 255 255 / .08) 50%, rgb(255 255 255 / 0) 51%, rgb(255 255 255 / .08) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  color: #fff;
  font: 12px var(--font);
  text-align: left;
  cursor: pointer;
}
html[data-switch-style="longhorn"] .lh-task span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-switch-style="longhorn"] .lh-task img { width: 16px; height: 16px; flex: none; }
html[data-switch-style="longhorn"] .lh-task:hover { background: linear-gradient(180deg, rgb(255 255 255 / .3) 0%, rgb(255 255 255 / .12) 50%, rgb(255 255 255 / .04) 51%, rgb(255 255 255 / .1) 100%); }
html[data-switch-style="longhorn"] .lh-task.is-on { background: linear-gradient(180deg, rgb(255 255 255 / .36) 0%, rgb(255 255 255 / .16) 50%, rgb(255 255 255 / .06) 51%, rgb(140 190 255 / .22) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 0 6px rgb(120 180 255 / .35); font-weight: 600; }
html[data-switch-style="longhorn"] .lh-tray { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 8px; box-shadow: inset 1px 0 rgb(0 0 0 / .4), inset 2px 0 rgb(255 255 255 / .1); }
html[data-switch-style="longhorn"] .lh-tray-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #c8ccd0 45%, #6b7177 100%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .5);
  cursor: pointer;
  position: relative;
}
html[data-switch-style="longhorn"] .lh-tray-btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, #2c3136 50%, transparent 50%);
}
html[data-switch-style="longhorn"] .lh-tray-btn:hover { filter: brightness(1.15); }
html[data-switch-style="longhorn"] .lh-tray-time { color: #fff; font-size: 12px; white-space: nowrap; text-shadow: 0 1px 1px rgb(0 0 0 / .6); }
/* 边栏开着时时钟在边栏里，任务栏只留按钮 */
@media (min-width: 1400px) {
  html[data-switch-style="longhorn"]:not([data-lh-sidebar="off"]) .lh-tray-time { display: none; }
}

/* 开始菜单（4074 Jade）：深色抬头 + 橙色细线 + 白 / 米色两栏 + 深色底栏 */
html[data-switch-style="longhorn"] .lh-startmenu {
  position: fixed;
  left: 0;
  bottom: var(--lh-tb-h);
  z-index: 96;
  width: min(430px, 100vw);
  max-height: calc(100dvh - var(--lh-tb-h) - 10px);
  display: flex;
  flex-direction: column;
  border: 1px solid #23272b;
  border-radius: 6px 6px 0 0;
  background: #fff;
  box-shadow: 2px -2px 14px rgb(0 0 0 / .45);
  overflow: hidden;
  color: #111;
  font-size: 12px;
  animation: lhStartIn .14s ease-out;
}
@keyframes lhStartIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { html[data-switch-style="longhorn"] .lh-startmenu { animation: none; } }
html[data-switch-style="longhorn"] .lh-sm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #686e74 0%, #4a4f54 45%, #3a3e42 100%);
  border-bottom: 2px solid #f28c1e;
  box-shadow: inset 0 1px rgb(255 255 255 / .25), 0 1px 0 #f6c07a;
  color: #fff;
}
html[data-switch-style="longhorn"] .lh-sm-head b { font-size: 15px; font-weight: 700; text-shadow: 1px 1px 2px rgb(0 0 0 / .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-switch-style="longhorn"] .lh-sm-pic {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid #f4f4f4;
  border-radius: 4px;
  background: linear-gradient(180deg, #c9d3dd, #8a98a6);
  box-shadow: 0 1px 3px rgb(0 0 0 / .5);
  color: #fff;
  overflow: hidden;
}
html[data-switch-style="longhorn"] .lh-sm-pic > svg { width: 26px; height: 26px; }
html[data-switch-style="longhorn"] .lh-sm-pic .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 18px; }
html[data-switch-style="longhorn"] .lh-sm-body { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; overflow: auto; }
html[data-switch-style="longhorn"] .lh-sm-left { padding: 6px 4px; background: #fff; }
html[data-switch-style="longhorn"] .lh-sm-right { padding: 6px 4px; background: #fbf3df; box-shadow: inset 1px 0 #e3d6b6; }
html[data-switch-style="longhorn"] .lh-sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #111;
  text-decoration: none;
}
html[data-switch-style="longhorn"] .lh-sm-item:is(:hover, :focus-visible) { background: var(--lh-sel); border-color: #84aedc; color: #000; outline: none; text-decoration: none; }
html[data-switch-style="longhorn"] .lh-sm-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 4px; background: linear-gradient(180deg, #eef4fb, #cfdff0); box-shadow: inset 0 0 0 1px #9fb8d4; color: #2a5ea8; }
html[data-switch-style="longhorn"] .lh-sm-right .lh-sm-ic { width: 20px; height: 20px; background: none; box-shadow: none; color: #5b4a1d; }
html[data-switch-style="longhorn"] .lh-sm-ic svg { width: 16px; height: 16px; }
html[data-switch-style="longhorn"] .lh-sm-tx { min-width: 0; display: grid; }
html[data-switch-style="longhorn"] .lh-sm-tx b { font-weight: 600; font-size: 12px; }
html[data-switch-style="longhorn"] .lh-sm-right .lh-sm-tx b { font-weight: 700; color: #1c2a3c; }
html[data-switch-style="longhorn"] .lh-sm-tx small { color: #6a7380; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-switch-style="longhorn"] .lh-sm-sep { display: block; height: 1px; margin: 4px 8px; background: linear-gradient(90deg, transparent, #d6c69e, transparent); }
html[data-switch-style="longhorn"] .lh-sm-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #5d6268 0%, #44494e 50%, #383c40 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / .2);
}
html[data-switch-style="longhorn"] .lh-sm-ver { margin-right: auto; color: rgb(255 255 255 / .55); font-size: 11px; }
html[data-switch-style="longhorn"] .lh-sm-btn {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font: 12px var(--font);
  text-decoration: none;
  cursor: pointer;
}
html[data-switch-style="longhorn"] .lh-sm-btn:hover { background: rgb(255 255 255 / .15); border-color: rgb(255 255 255 / .3); text-decoration: none; color: #fff; }
html[data-switch-style="longhorn"] .lh-sm-btn i { width: 20px; height: 20px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35), inset 0 1px rgb(255 255 255 / .4); }
html[data-switch-style="longhorn"] .lh-sm-btn i.k { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='5.5' cy='8' r='3' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3Cpath d='M8.5 8h6M12.5 8v2.5' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(180deg, #ffc35a, #e07a12); }
html[data-switch-style="longhorn"] .lh-sm-btn i.p { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 4.5a5 5 0 1 0 6 0' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M8 2v6' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(180deg, #ff8a6a, #c9341c); }
@media (max-width: 720px) {
  html[data-switch-style="longhorn"] .lh-startmenu { display: none; }
}

/* 边栏 */
html[data-switch-style="longhorn"] .lh-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 94;
  width: var(--lh-sb-w);
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 0 6px;
  background: var(--lh-sb-bg);
  -webkit-backdrop-filter: var(--lh-sb-filter) !important;
  backdrop-filter: var(--lh-sb-filter) !important;
  box-shadow: inset 1px 0 rgb(0 0 0 / .55), inset 2px 0 rgb(255 255 255 / .16);
  color: #fff;
  font-size: 12px;
  overflow: hidden auto;
  scrollbar-width: none;
}
html[data-switch-style="longhorn"] .lh-sidebar::-webkit-scrollbar { display: none; }
@media (min-width: 1400px) {
  html[data-switch-style="longhorn"]:not([data-lh-sidebar="off"]) .lh-sidebar { display: flex; }
}
html[data-switch-style="longhorn"] .lh-sb-top { display: flex; justify-content: flex-end; height: 18px; padding: 2px 4px 0; }
html[data-switch-style="longhorn"] .lh-sb-hide {
  width: 18px;
  height: 14px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M2 1l4 3-4 3' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3Cpath d='M5 1l4 3-4 3' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") center / 9px no-repeat;
  opacity: .75;
  cursor: pointer;
}
html[data-switch-style="longhorn"] .lh-sb-hide:hover { opacity: 1; border-color: rgb(255 255 255 / .3); background-color: rgb(255 255 255 / .12); }
html[data-switch-style="longhorn"] .lh-sb-search { padding: 2px 8px 8px; }
html[data-switch-style="longhorn"] .lh-sb-search input {
  width: 100%;
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgb(0 0 0 / .55);
  border-radius: 3px;
  background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .2));
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .35), 0 1px 0 rgb(255 255 255 / .1);
  color: #fff;
  font: 12px var(--font);
  outline: none;
}
html[data-switch-style="longhorn"] .lh-sb-search input::placeholder { color: rgb(255 255 255 / .7); }
html[data-switch-style="longhorn"] .lh-sb-search input:focus { background: #fff; color: #111; }
html[data-switch-style="longhorn"] .lh-sb-tray {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border-top: 1px solid rgb(0 0 0 / .3);
  border-bottom: 1px solid rgb(0 0 0 / .3);
  box-shadow: inset 0 1px rgb(255 255 255 / .08), 0 1px rgb(255 255 255 / .08);
}
html[data-switch-style="longhorn"] .lh-sb-tray a {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #e9eef3;
}
html[data-switch-style="longhorn"] .lh-sb-tray a svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .5)); }
html[data-switch-style="longhorn"] .lh-sb-tray a:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .28); }
html[data-switch-style="longhorn"] .lh-tile {
  display: grid;
  gap: 4px;
  margin: 8px 8px 0;
  padding: 6px 7px 7px;
  border: 1px solid rgb(0 0 0 / .45);
  border-radius: 4px;
  background: linear-gradient(180deg, rgb(255 255 255 / .12) 0%, rgb(255 255 255 / .04) 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / .14);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
html[data-switch-style="longhorn"] :is(a, button).lh-tile { cursor: pointer; }
html[data-switch-style="longhorn"] :is(a, button).lh-tile:hover { background: linear-gradient(180deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .08) 100%); border-color: rgb(0 0 0 / .6); text-decoration: none; color: #fff; }
html[data-switch-style="longhorn"] :is(a, button).lh-tile:focus-visible { outline: 1px dotted #fff; outline-offset: -3px; }
html[data-switch-style="longhorn"] .lh-tile-cap { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: rgb(255 255 255 / .75); text-transform: uppercase; }
html[data-switch-style="longhorn"] .lh-tile-note { font-size: 11px; color: rgb(255 255 255 / .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-switch-style="longhorn"] .lh-srv { display: flex; align-items: baseline; gap: 2px; }
html[data-switch-style="longhorn"] .lh-srv b { font-family: var(--font-light); font-size: 26px; font-weight: 300; line-height: 1; }
html[data-switch-style="longhorn"] .lh-srv small { font-size: 11px; color: rgb(255 255 255 / .8); }
html[data-switch-style="longhorn"] .lh-spark { width: 100%; height: 26px; }
html[data-switch-style="longhorn"] .lh-spark path { fill: none; stroke: #8fd27a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
html[data-switch-style="longhorn"] .lh-slide-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border: 1px solid #0c0d0e;
  background: #111;
  box-shadow: 0 1px 0 rgb(255 255 255 / .12);
  overflow: hidden;
}
html[data-switch-style="longhorn"] .lh-slide-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
html[data-switch-style="longhorn"] .lh-tile-slide:not(.show-b) [data-lh-slide-a],
html[data-switch-style="longhorn"] .lh-tile-slide.show-b [data-lh-slide-b] { opacity: 1; }
html[data-switch-style="longhorn"] .lh-sb-fill { flex: 1; min-height: 8px; }
html[data-switch-style="longhorn"] .lh-tile-clock { justify-items: center; border-color: transparent; background: none; box-shadow: none; padding-top: 0; }
html[data-switch-style="longhorn"] .lh-clock-face { width: 112px; height: 112px; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .5)); }
html[data-switch-style="longhorn"] .lh-clock-text { font-size: 11.5px; line-height: 1.4; white-space: pre-line; text-align: center; color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / .6); }

/* ---------------------------------------------------------------- 右下角浮钮 / 日志窗：给任务栏和边栏让位 */
html[data-switch-style="longhorn"] :is(.to-top, .admin-ai, .admin-ai-split) {
  right: calc(26px + var(--lh-sb-w));
  bottom: calc(22px + var(--lh-tb-h));
}
html[data-switch-style="longhorn"] :is(.admin-ai, .admin-ai-split).has-back-top { right: calc(82px + var(--lh-sb-w)); }
html[data-switch-style="longhorn"] :is(.admin-ai, .to-top) {
  width: 40px;
  height: 40px;
  border: 1px solid rgb(0 0 0 / .55);
  border-radius: 50%;
  color: #fff;
  transform: none;
}
html[data-switch-style="longhorn"] .admin-ai { background: radial-gradient(ellipse 75% 50% at 50% 18%, rgb(255 255 255 / .6), rgb(255 255 255 / 0) 70%), var(--lh-start); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 2px 6px rgb(0 0 0 / .4); }
html[data-switch-style="longhorn"] .to-top { background: radial-gradient(ellipse 75% 50% at 50% 18%, rgb(255 255 255 / .6), rgb(255 255 255 / 0) 70%), radial-gradient(circle at 50% 80%, #8fb8e6 0%, #3466a8 55%, #1b3d70 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3), 0 2px 6px rgb(0 0 0 / .4); }
html[data-switch-style="longhorn"] :is(.admin-ai, .to-top):hover { color: #fff; transform: none; filter: brightness(1.12); }
html[data-switch-style="longhorn"] :is(.admin-ai, .to-top):active { filter: brightness(.88); }
html[data-switch-style="longhorn"] :is(.admin-ai, .to-top) svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .45)); }
html[data-switch-style="longhorn"] .admin-ai-split {
  height: 36px;
  gap: 1px;
  padding: 0 4px;
  border: 1px solid var(--lh-taskbar-edge);
  border-radius: 4px;
  background: var(--lh-taskbar);
  box-shadow: inset 0 1px rgb(255 255 255 / .2), 0 2px 6px rgb(0 0 0 / .4);
}
html[data-switch-style="longhorn"] .admin-ai-split a { width: 32px; height: 28px; border-radius: 3px; color: #fff; background: transparent; border: 1px solid transparent; }
html[data-switch-style="longhorn"] .admin-ai-split a:is(:hover, :focus-visible) { background: rgb(255 255 255 / .15); border-color: rgb(255 255 255 / .3); color: #fff; outline: none; }
html[data-switch-style="longhorn"] .admin-ai-split .aa-special { color: #ffd27a; }
html[data-switch-style="longhorn"] .admin-ai-split .aa-sep { width: 2px; height: 22px; opacity: 1; background: none; box-shadow: inset 1px 0 rgb(0 0 0 / .5), inset -1px 0 rgb(255 255 255 / .15); margin: 0 2px; }
html[data-switch-style="longhorn"] :is(.admin-ai-tooltip, .admin-ai-split .aa-tip) {
  border-radius: 4px;
  border: 1px solid #6b7177;
  background: linear-gradient(180deg, #fff, #eef0f2);
  color: #111;
  box-shadow: 1px 2px 5px rgb(0 0 0 / .3);
  font-size: 11.5px;
  font-weight: 400;
  padding: 3px 7px;
  text-shadow: none;
}

/* 服务器日志 = 一扇「命令提示符」窗口 */
html[data-switch-style="longhorn"] .log-drawer {
  border-radius: 7px 7px 3px 3px;
  border: 0;
  padding: 0 5px 5px;
  background: var(--lh-frame);
  box-shadow: 0 0 0 1px var(--lh-frame-edge), inset 0 0 0 1px var(--lh-frame-hi), 0 12px 34px rgb(0 0 0 / .45);
  overflow: hidden;
}
html[data-switch-style="longhorn"] .log-drawer-head {
  min-height: 30px;
  margin: 0 -5px;
  padding: 4px 6px 4px 10px;
  border: 0;
  border-radius: 7px 7px 0 0;
  background: var(--lh-title);
  box-shadow: inset 0 1px var(--lh-frame-hi);
  color: var(--lh-title-ink);
}
html[data-switch-style="longhorn"] .log-drawer-title { font-size: 13px; font-weight: 700; text-shadow: var(--lh-title-shadow); color: var(--lh-title-ink); }
html[data-switch-style="longhorn"] .log-drawer-link { height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 3px; border: 1px solid var(--lh-hot-edge); background: var(--lh-hot); color: var(--lh-title-ink); font-size: 11.5px; text-decoration: none; }
html[data-switch-style="longhorn"] .log-drawer-link:hover { text-decoration: none; filter: brightness(1.08); }
html[data-switch-style="longhorn"] .log-drawer-close { position: relative; width: 26px; height: 20px; border-radius: 3px; border: 1px solid transparent; font-size: 0; color: var(--lh-cap-ink); background: transparent; box-shadow: none; }
html[data-switch-style="longhorn"] .log-drawer-close svg { display: none; }
html[data-switch-style="longhorn"] .log-drawer-body { background: var(--lh-face); padding: 6px 5px 5px; }
html[data-switch-style="longhorn"] .server-log-view { border: 1px solid var(--lh-edge); border-radius: 2px; background: #0c0c0c; box-shadow: none; }

/* ---------------------------------------------------------------- 手机：底栏 = 任务栏，窗口始终最大化 */
@media (max-width: 720px) {
  html[data-switch-style="longhorn"] .tabbar {
    background: var(--lh-taskbar) !important;
    border-top: 1px solid var(--lh-taskbar-edge);
    border-radius: 0;
    box-shadow: inset 0 1px rgb(255 255 255 / .2);
  }
  html[data-switch-style="longhorn"] .tabbar a {
    border-radius: 3px;
    color: #fff;
    text-shadow: 0 1px 1px rgb(0 0 0 / .5);
    border: 1px solid transparent;
    margin: 3px 1px;
  }
  html[data-switch-style="longhorn"] .tabbar a.active { background: linear-gradient(180deg, rgb(0 0 0 / .45), rgb(0 0 0 / .25)); border-color: rgb(0 0 0 / .55); box-shadow: inset 1px 1px 3px rgb(0 0 0 / .6); color: #fff; font-weight: 600; }
  html[data-switch-style="longhorn"] header.nav .nav-inner { padding: 0 4px 0 8px; }
  html[data-switch-style="longhorn"] header.nav .win-nav-caps { display: none; }
}

/* ---------------------------------------------------------------- 设置页：壁纸 / 配色选择 */
html[data-switch-style="longhorn"] .aero-wall-opt { border-radius: 3px; border: 1px solid transparent; color: var(--text); background: transparent; }
html[data-switch-style="longhorn"] .aero-wall-opt:hover { background: var(--lh-btn-hot); border-color: var(--lh-sel-edge); }
html[data-switch-style="longhorn"] .aero-wall-opt[aria-checked="true"] { background: var(--lh-sel); border-color: var(--lh-sel-edge); color: var(--lh-sel-ink); }
html[data-switch-style="longhorn"] .aero-wall-opt img { border: 1px solid #6f7881; border-radius: 0; box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
html[data-switch-style="longhorn"] .aero-picker-group { color: var(--lh-head); border-bottom-color: var(--line); }
html[data-switch-style="longhorn"] .desk-switch-row { border: 1px solid var(--line-strong); border-radius: 4px; background: linear-gradient(180deg, var(--lh-client) 0%, var(--surface-2) 100%); box-shadow: none; }
html[data-switch-style="longhorn"] .desk-tint-opt { border: 1px solid var(--lh-btn-edge); border-radius: 3px; }
html[data-switch-style="longhorn"] .desk-tint-opt.is-theme { background: var(--lh-btn); color: var(--lh-ink); }
html[data-switch-style="longhorn"] .desk-tint-opt[aria-checked="true"] { outline: 2px solid #3f7fc6; outline-offset: 2px; }
.lh-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.lh-color-opt {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 150px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
/* 预览：一小段这个配色的窗口边框 + 标题栏按钮 */
.lh-color-opt i {
  display: block;
  width: 100%;
  height: 26px;
  border-radius: 5px 5px 0 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M2 1.5h7L5.5 6.5zM15 6.5h7l-3.5-5zM29 1.5l5 5M34 1.5l-5 5' fill='%23000' stroke='%23000' stroke-width='.8' opacity='.6'/%3E%3C/svg%3E") right 6px center / 40px 8px no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--swatch) 55%, #fff) 0%, var(--swatch) 55%, color-mix(in srgb, var(--swatch) 85%, #000) 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35), inset 0 2px rgb(255 255 255 / .35);
}
.lh-color-opt:hover { border-color: var(--lh-sel-edge, #84aedc); }
.lh-color-opt[aria-checked="true"] { border-color: var(--lh-sel-edge, #84aedc); background: var(--lh-sel, #cfe3f8); color: var(--lh-sel-ink, #000); }
.lh-color-opt:focus-visible { outline: 1px dotted var(--text); outline-offset: 1px; }
