/* ==========================================================================
   Windows Vista / 7 Aero · 全站主题（设置 → 实验性 → 主题样式 = Aero）
   只在 html[data-switch-style="aero"] 时生效，纯 CSS，没有脚本引擎。

   思路：整个网站是 Windows 桌面上的一扇 Aero 窗口。
     · 桌面 = .aurora 那层固定背景，换成 Vista / 7 原版壁纸（img/aero/，设置里可选）。
     · 窗口边框 + 标题栏 = 玻璃：预先模糊好的同一张壁纸（-blur.webp）+ 窗口颜色 + 斜向光带。
       没有用 backdrop-filter：玻璃层都是 position: fixed、铺满视口再 clip-path 出形状，
       和桌面壁纸逐像素对齐，滚动时不需要每帧重新模糊（经典样式顶栏去掉毛玻璃也是为了这个）。
     · 宽屏（≥1260px）：「还原」的窗口，左右露出桌面，两侧 8px 玻璃边框 + 窗口阴影。
       窄屏：「最大化」，没有侧边框，只剩玻璃标题栏。
     · 窗口内容区（客户区）是 Windows 7 的白底；顶栏的导航是 IE8 式的玻璃标签页，
       当前页那一页是白色的，和下面的内容区连成一片。
     · 控件照 Windows 7 的系统控件画：灰色亮面按钮（悬停变浅蓝、按下变深蓝）、默认按钮呼吸的蓝光、
       凹进去的输入框、Explorer 的浅蓝选中块、菜单、气球提示、滚动条、绿色进度条式的开关。
   ========================================================================== */

/* ---------------------------------------------------------------- 设计变量 */
html[data-switch-style="aero"] {
  --aero-rgb: 116 184 252;            /* 窗口颜色（下面按 data-aero-color 覆盖） */
  --aero-a: .40;                      /* 颜色浓度 */
  --aero-win: 100vw;                  /* 窗口宽度（窄屏 = 最大化） */
  --aero-frame: 0px;                  /* 左右玻璃边框宽度 */
  --aero-client: #ffffff;
  --aero-client-2: #f1f6fb;
  --aero-heading: #1e395b;            /* Windows 7 控制面板标题蓝 */
  --aero-ink: #000;
  --aero-glow: 0 0 7px rgb(255 255 255 / .9), 0 0 2px rgb(255 255 255 / .9);
  --aero-sheen: linear-gradient(112deg,
      transparent 0 14%, rgb(255 255 255 / .11) 19%, transparent 25% 44%,
      rgb(255 255 255 / .08) 49%, rgb(255 255 255 / .02) 53%, transparent 56% 71%,
      rgb(255 255 255 / .10) 77%, transparent 84%);
  --aero-veil: rgb(255 255 255 / .14);
  /* 玻璃里垫的那张预先模糊的壁纸；桌面改用网站背景（data-desk-bg="site"）时不用壁纸，只剩窗口颜色 */
  --aero-glass-img: var(--aero-wall-blur, none);
  /* 壁纸按「铺满视口（cover）」时的实际尺寸：不用 background-attachment: fixed 也能让玻璃里的壁纸和桌面对齐
     （fixed 会让 Chrome 每滚一帧都重画整块玻璃，Aero 首页滚动掉帧就是它） */
  --wall-ar: 1.3333;
  --wall-avg: #4f7fae;
  --cover-w: max(100vw, 100vh * var(--wall-ar));
  --cover-h: max(100vh, 100vw / var(--wall-ar));
  --aero-glass:
    linear-gradient(180deg, rgb(255 255 255 / .34) 0, rgb(255 255 255 / .10) 40px, rgb(255 255 255 / 0) 110px),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / var(--aero-a)), rgb(var(--aero-rgb) / var(--aero-a))),
    linear-gradient(var(--aero-veil), var(--aero-veil)),
    var(--aero-glass-img) center / cover no-repeat,
    #6f9fcf;

  /* Windows 7 系统控件的配色 */
  --aero-btn: linear-gradient(#f2f2f2 0%, #ebebeb 49%, #dddddd 50%, #cfcfcf 100%);
  --aero-btn-line: #707070;
  --aero-btn-hover: linear-gradient(#eaf6fd 0%, #d9f0fc 49%, #bee6fd 50%, #a7d9f5 100%);
  --aero-btn-hover-line: #3c7fb1;
  --aero-btn-down: linear-gradient(#e5f4fc 0%, #c4e5f6 49%, #98d1ef 50%, #68b3db 100%);
  --aero-btn-down-line: #2c628b;
  --aero-btn-ink: #000;
  --aero-sel: linear-gradient(#dcebfc, #c1dbfc);
  --aero-sel-line: #7da2ce;
  --aero-hot: linear-gradient(#fafbfd, #ebf3fd);
  --aero-hot-line: #b8d6fb;
  --aero-field: #ffffff;
  --aero-field-line: #abadb3;
  --aero-field-top: #8e8f8f;
  --aero-menu: #f0f0f0;
  --aero-menu-line: #979797;
  --aero-group-line: #d5dfe5;
  --aero-cmd: linear-gradient(#fafcfd 0%, #e6f0fa 49%, #dce6f4 50%, #dde9f7 100%);
  --aero-cmd-line: #a0afc3;
  --aero-progress: linear-gradient(#e2f6df 0%, #9de38f 30%, #37c22e 31%, #06b025 60%, #2bcb3f 100%);

  /* 站点令牌：让没单独处理的组件也自动变成 Windows 7 的样子 */
  --bg: #dfe9f5;
  --bg-deep: #d3e0ef;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #ffffff;
  --surface-2: #f5f8fb;
  --surface-hover: #e5f3fb;
  --surface-elevated: #ffffff;
  --text: #1e1e1e;
  --text-2: #4d5b6a;
  --text-3: #6d7a88;
  --line: #d9e2ec;
  --line-strong: #a9b8c9;
  --accent: #0066cc;
  --accent-2: #3399ff;
  --accent-soft: rgba(51, 153, 255, .14);
  --accent-line: rgba(51, 153, 255, .5);
  --accent-glow: 0 0 0 1px rgba(51, 153, 255, .45);
  --glow: 0 0 0 1px rgba(61, 123, 173, .28);
  --green: #06b025;
  --red: #c42b1c;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, .09);
  --shadow-2: 0 2px 10px rgba(0, 0, 0, .16);
  --shadow-3: 0 6px 28px rgba(0, 0, 0, .45);
  --glass-blur: none;
  --r-xl: 8px;
  --r-lg: 6px;
  --r-md: 4px;
  --r-sm: 3px;
  --font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "微软雅黑", Tahoma, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-mono: Consolas, "Lucida Console", "SF Mono", ui-monospace, Menlo, monospace;
  /* nav-apple.css 的顶栏变量 */
  --apple-nav-ink: #000;
  --apple-nav-ink-strong: #000;
  --apple-panel-bg: var(--aero-menu);
  --apple-panel-line: var(--aero-menu-line);
  --apple-panel-shadow: 2px 3px 6px rgba(0, 0, 0, .35);
  --apple-hover: #e5f3fb;
  color-scheme: light;
}

/* 深色：Windows 7 没有深色模式，这里是「深色玻璃 + 深色客户区」的延伸 */
html[data-switch-style="aero"][data-theme="dark"] {
  --aero-a: .34;
  --aero-veil: rgb(0 0 0 / .42);
  --aero-client: #1d232c;
  --aero-client-2: #161b22;
  --aero-heading: #9cc9f7;
  --aero-ink: #fff;
  --aero-glow: 0 0 7px rgb(0 0 0 / .85), 0 0 2px rgb(0 0 0 / .8);
  --aero-btn: linear-gradient(#5b6572 0%, #4a535f 49%, #3a424d 50%, #414a56 100%);
  --aero-btn-line: #15191f;
  --aero-btn-hover: linear-gradient(#5b8fc4 0%, #3f77b2 49%, #2c639f 50%, #3a75b0 100%);
  --aero-btn-hover-line: #0f2c4c;
  --aero-btn-down: linear-gradient(#2a5689 0%, #234a78 49%, #1b3c64 50%, #24497a 100%);
  --aero-btn-down-line: #0a1a2e;
  --aero-btn-ink: #fff;
  --aero-sel: linear-gradient(#2f5d93, #24497a);
  --aero-sel-line: #4f7fb8;
  --aero-hot: linear-gradient(#2a3442, #253040);
  --aero-hot-line: #44607f;
  --aero-field: #11151b;
  --aero-field-line: #4a5666;
  --aero-field-top: #2a313b;
  --aero-menu: #262d37;
  --aero-menu-line: #121519;
  --aero-group-line: #343e4b;
  --aero-cmd: linear-gradient(#2e3846 0%, #273140 49%, #212a37 50%, #252f3d 100%);
  --aero-cmd-line: #0e1217;

  --bg: #0f141b;
  --bg-deep: #0b0f14;
  --surface: rgba(36, 43, 53, .96);
  --surface-solid: #242b35;
  --surface-2: #1b212a;
  --surface-hover: #2b3747;
  --surface-elevated: #2a323d;
  --text: #e9eef4;
  --text-2: #b4c0cd;
  --text-3: #8e9aa8;
  --line: #343e4b;
  --line-strong: #4b596b;
  --accent: #66b3ff;
  --accent-2: #3399ff;
  --accent-soft: rgba(51, 153, 255, .2);
  --apple-nav-ink: #fff;
  --apple-nav-ink-strong: #fff;
  --apple-hover: #2b3747;
  color-scheme: dark;
}

/* 窗口颜色（Windows 7「窗口颜色和外观」） */
html[data-switch-style="aero"][data-aero-color="sky"] { --aero-rgb: 116 184 252; }
html[data-switch-style="aero"][data-aero-color="vista"] { --aero-rgb: 30 52 74; --aero-a: .62; }
html[data-switch-style="aero"][data-aero-color="twilight"] { --aero-rgb: 50 103 184; --aero-a: .5; }
html[data-switch-style="aero"][data-aero-color="sea"] { --aero-rgb: 20 166 170; --aero-a: .46; }
html[data-switch-style="aero"][data-aero-color="leaf"] { --aero-rgb: 79 165 43; --aero-a: .46; }
html[data-switch-style="aero"][data-aero-color="lime"] { --aero-rgb: 145 209 60; --aero-a: .44; }
html[data-switch-style="aero"][data-aero-color="sun"] { --aero-rgb: 250 220 14; --aero-a: .42; }
html[data-switch-style="aero"][data-aero-color="pumpkin"] { --aero-rgb: 255 156 0; --aero-a: .46; }
html[data-switch-style="aero"][data-aero-color="ruby"] { --aero-rgb: 206 15 15; --aero-a: .48; }
html[data-switch-style="aero"][data-aero-color="fuchsia"] { --aero-rgb: 255 0 204; --aero-a: .4; }
html[data-switch-style="aero"][data-aero-color="blush"] { --aero-rgb: 252 199 248; --aero-a: .5; }
html[data-switch-style="aero"][data-aero-color="violet"] { --aero-rgb: 110 59 161; --aero-a: .52; }
html[data-switch-style="aero"][data-aero-color="lavender"] { --aero-rgb: 141 90 148; --aero-a: .5; }
html[data-switch-style="aero"][data-aero-color="taupe"] { --aero-rgb: 152 132 77; --aero-a: .5; }
html[data-switch-style="aero"][data-aero-color="chocolate"] { --aero-rgb: 79 28 28; --aero-a: .6; }
html[data-switch-style="aero"][data-aero-color="slate"] { --aero-rgb: 85 85 85; --aero-a: .55; }
html[data-switch-style="aero"][data-aero-color="frost"] { --aero-rgb: 252 252 252; --aero-a: .55; }

/* 宽屏：还原的窗口，两侧露出桌面 */
@media (min-width: 1260px) {
  html[data-switch-style="aero"] { --aero-win: 1200px; --aero-frame: 8px; }
}

/* ---------------------------------------------------------------- 基础排版 */
html[data-switch-style="aero"] body {
  font-family: var(--font);
  letter-spacing: 0;
  background: var(--bg);
  -webkit-font-smoothing: auto;
}
html[data-switch-style="aero"] :is(h1, h2, h3, h4, h5) { letter-spacing: 0; }
html[data-switch-style="aero"] ::selection { background: #3399ff; color: #fff; }
html[data-switch-style="aero"] a:not(.btn):not(.nav-link):hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
html[data-switch-style="aero"] :is(header.nav, .section-nav, .admin-directory, .nav-menu, .segmented, .footer .cols) a:hover,
html[data-switch-style="aero"] a.card:hover,
html[data-switch-style="aero"] a:has(> .card):hover { text-decoration: none; }

/* ---------------------------------------------------------------- 桌面（壁纸） */
html[data-switch-style="aero"] .aurora { visibility: visible !important; }
html[data-switch-style="aero"]:not([data-desk-bg="site"]) .aurora {
  background: #1c4f7e var(--aero-wall, none) center / cover no-repeat !important;
}
html[data-switch-style="aero"]:not([data-desk-bg="site"]) .aurora i { display: none !important; }
html[data-switch-style="aero"]:not([data-desk-bg="site"])[data-theme="dark"] .aurora {
  background: linear-gradient(rgb(0 0 0 / .22), rgb(0 0 0 / .22)), #0c2338 var(--aero-wall, none) center / cover no-repeat !important;
}
/* Aero 有自己的桌面壁纸，个性化背景先让开（切回其他主题样式会恢复） */
html[data-switch-style="aero"]:not([data-desk-bg="site"]) .personal-background { display: none !important; }
/* 桌面用网站背景（设置 → 外观与个性化）：个性化图片 / 颜色照常显示，窗口边框只剩窗口颜色 */
html[data-switch-style="aero"][data-desk-bg="site"] { --aero-glass-img: none; }
html[data-switch-style="aero"][data-desk-bg="site"] body.has-personal-background .aurora { background: none !important; }
html[data-switch-style="aero"][data-desk-bg="site"] body.has-personal-background .aurora i { display: none; }
html[data-switch-style="aero"] .aurora::before,
html[data-switch-style="aero"] .aurora::after { z-index: 1; }
/* DreamScene：桌面上的循环视频（switch-style.js 插入）；静帧先垫着，视频真正开始播放后再淡入 */
.aero-dream { display: none; }
html[data-switch-style="aero"]:not([data-desk-bg="site"]) .aero-dream {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
html[data-switch-style="aero"] .aero-dream.is-on { opacity: 1; }
html[data-switch-style="aero"][data-theme="dark"] .aero-dream.is-on { opacity: .78; }

/* 窗口玻璃边框 + 轮廓 + 阴影（宽屏才有：窄屏是最大化窗口，没有侧边框） */
@media (min-width: 1260px) {
  html[data-switch-style="aero"] .aurora::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--aero-glass);
    clip-path: inset(0 calc(50% - var(--aero-win) / 2));
    pointer-events: none;
  }
  html[data-switch-style="aero"] .aurora::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: calc(50% - var(--aero-win) / 2);
    width: var(--aero-win);
    border: 1px solid rgb(0 0 0 / .62);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .42), 0 0 26px 3px rgb(0 0 0 / .42);
    pointer-events: none;
  }
}

/* 窗口全屏（设置里的「窗口全屏」开关）：任何宽度都是最大化的窗口，没有左右边框 */
html[data-switch-style="aero"][data-desk-width="full"] { --aero-win: 100vw; --aero-frame: 0px; }
html[data-switch-style="aero"][data-desk-width="full"] .aurora::before,
html[data-switch-style="aero"][data-desk-width="full"] .aurora::after { content: none; }

/* ---------------------------------------------------------------- 窗口客户区 */
html[data-switch-style="aero"] #app {
  width: 100%;
  max-width: calc(var(--aero-win) - var(--aero-frame) * 2);
  margin-inline: auto;
  background:
    linear-gradient(180deg, var(--aero-client) 0, var(--aero-client) 260px, var(--aero-client-2) 900px, var(--aero-client-2)) 0 var(--nav-h) / 100% calc(100% - var(--nav-h)) no-repeat;
}
@media (min-width: 1260px) {
  html[data-switch-style="aero"]:not([data-desk-width="full"]) #app {
    background:
      linear-gradient(to right, rgb(0 0 0 / .45) 0 1px, transparent 1px calc(100% - 1px), rgb(0 0 0 / .45) calc(100% - 1px)) 0 var(--nav-h) / 100% calc(100% - var(--nav-h)) no-repeat,
      linear-gradient(180deg, var(--aero-client) 0, var(--aero-client) 260px, var(--aero-client-2) 900px, var(--aero-client-2)) 0 var(--nav-h) / 100% calc(100% - var(--nav-h)) no-repeat;
  }
}

/* ---------------------------------------------------------------- 标题栏（顶栏） */
html[data-switch-style="aero"] header.nav,
html[data-switch-style="aero"][data-theme="dark"] header.nav {
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* 玻璃画在一层固定的、铺满视口的伪元素上，再剪成标题栏的形状：和桌面上的边框玻璃完全对齐 */
html[data-switch-style="aero"] header.nav::before,
html[data-switch-style="aero"][data-theme="dark"] header.nav::before {
  content: "";
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -1;
  background: var(--aero-glass);
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  clip-path: inset(0 calc(50% - var(--aero-win) / 2) calc(100% - var(--nav-h)));
  pointer-events: none;
}
/* 标题栏和客户区之间的那条深色分界线 */
html[data-switch-style="aero"] header.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgb(0 0 0 / .4);
  box-shadow: 0 -1px 0 rgb(255 255 255 / .35);
  pointer-events: none;
  z-index: 0;
}
html[data-switch-style="aero"] header.nav .nav-inner { position: relative; z-index: 1; }

/* 玻璃上的字：黑字 + 白色光晕（深色模式：白字 + 黑色光晕） */
html[data-switch-style="aero"] header.nav :is(.brand, .brand .name, .review-qq, .nav-link, .icon-btn, .nav-status) {
  color: var(--aero-ink);
  text-shadow: var(--aero-glow);
}
html[data-switch-style="aero"] header.nav .brand .name { font-weight: 600; font-size: 15px; }
html[data-switch-style="aero"] header.nav .brand .ver {
  color: var(--aero-ink);
  border-color: rgb(0 0 0 / .3);
  background: rgb(255 255 255 / .35);
  border-radius: 3px;
  text-shadow: none;
}
html[data-switch-style="aero"][data-theme="dark"] header.nav .brand .ver { border-color: rgb(255 255 255 / .3); background: rgb(0 0 0 / .3); }
html[data-switch-style="aero"] header.nav .brand .logo {
  border-radius: 4px;
  filter: drop-shadow(0 0 4px rgb(255 255 255 / .9));
}
html[data-switch-style="aero"][data-theme="dark"] header.nav .brand .logo { filter: drop-shadow(0 0 4px rgb(0 0 0 / .8)); }
html[data-switch-style="aero"] header.nav :is(.icon-btn, .nav-link) svg { filter: drop-shadow(0 0 3px rgb(255 255 255 / .95)); }
html[data-switch-style="aero"][data-theme="dark"] header.nav :is(.icon-btn, .nav-link) svg { filter: drop-shadow(0 0 3px rgb(0 0 0 / .9)); }

/* 导航链接 = IE8 的玻璃标签页；当前页是白色标签，和下面的客户区连成一片 */
html[data-switch-style="aero"] header.nav .nav-links {
  align-self: stretch;
  align-items: flex-end;
  gap: 2px;
}
html[data-switch-style="aero"] header.nav .nav-links > .nav-group { align-self: flex-end; display: flex; }
html[data-switch-style="aero"] header.nav .nav-links .nav-link {
  height: 31px;
  padding: 0 16px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgb(0 0 0 / .42);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--aero-ink);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .5) 0%, rgb(255 255 255 / .24) 49%, rgb(255 255 255 / .1) 50%, rgb(255 255 255 / .2) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .65), inset 1px 0 0 rgb(255 255 255 / .3), inset -1px 0 0 rgb(255 255 255 / .3);
  transition: background .18s ease, box-shadow .18s ease;
}
html[data-switch-style="aero"][data-theme="dark"] header.nav .nav-links .nav-link {
  border-color: rgb(0 0 0 / .6);
  background: linear-gradient(180deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .08) 49%, rgb(0 0 0 / .08) 50%, rgb(255 255 255 / .05) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28);
}
html[data-switch-style="aero"] header.nav .nav-links .nav-link:hover,
html[data-switch-style="aero"] header.nav .nav-group:hover > .nav-link {
  background:
    radial-gradient(120% 90% at 50% 100%, rgb(var(--aero-rgb) / .55), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .7) 0%, rgb(255 255 255 / .4) 49%, rgb(255 255 255 / .22) 50%, rgb(255 255 255 / .38) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), inset 0 0 6px rgb(255 255 255 / .6);
}
html[data-switch-style="aero"] header.nav .nav-links .nav-link.active {
  height: 33px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  font-weight: 600;
  background: var(--aero-client);
  color: var(--text);
  text-shadow: none;
  box-shadow: inset 0 1px 0 #fff, 0 -1px 4px rgb(0 0 0 / .12);
}
html[data-switch-style="aero"][data-theme="dark"] header.nav .nav-links .nav-link.active { box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
html[data-switch-style="aero"] header.nav .nav-links .nav-link.active svg { filter: none; }
html[data-switch-style="aero"] header.nav .nav-link::after,
html[data-switch-style="aero"] header.nav .nav-links .nav-link.active::after { display: none; }

/* 标题栏右侧：工具栏式的玻璃小按钮 */
html[data-switch-style="aero"] header.nav .icon-btn {
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  transform: none;
}
html[data-switch-style="aero"] header.nav .icon-btn:hover {
  background: linear-gradient(rgb(255 255 255 / .55), rgb(255 255 255 / .25) 49%, rgb(255 255 255 / .12) 50%, rgb(255 255 255 / .3));
  border-color: rgb(0 0 0 / .38);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 8px rgb(255 255 255 / .55);
  transform: none;
}
html[data-switch-style="aero"] header.nav .icon-btn:active {
  background: linear-gradient(rgb(0 0 0 / .08), rgb(255 255 255 / .2));
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .4);
}
html[data-switch-style="aero"] header.nav .nav-actions > .btn { height: 26px; font-size: 12.5px; }
html[data-switch-style="aero"] header.nav .nav-actions > .btn-ghost {
  color: var(--aero-ink);
  text-shadow: var(--aero-glow);
}
html[data-switch-style="aero"] header.nav .nav-actions > .btn-ghost:hover {
  color: var(--aero-ink);
  background: linear-gradient(rgb(255 255 255 / .55), rgb(255 255 255 / .25) 49%, rgb(255 255 255 / .12) 50%, rgb(255 255 255 / .3));
  border-color: rgb(0 0 0 / .38);
}
html[data-switch-style="aero"] .scroll-progress {
  height: 2px;
  opacity: 1;
  top: calc(var(--nav-h) - 2px);
  background: var(--aero-progress);
}

/* 下拉菜单：Windows 7 的菜单 */
html[data-switch-style="aero"] header.nav :is(.nav-menu, .user-menu, .notify-panel),
html[data-switch-style="aero"][data-theme="dark"] header.nav :is(.nav-menu, .user-menu, .notify-panel) {
  background: var(--aero-menu);
  border: 1px solid var(--aero-menu-line);
  border-radius: 0;
  box-shadow: 2px 3px 6px rgb(0 0 0 / .35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--text);
  text-shadow: none;
}
html[data-switch-style="aero"] header.nav .nav-menu { padding: 2px; top: calc(100% + 1px); }
html[data-switch-style="aero"] header.nav .nav-menu a,
html[data-switch-style="aero"] header.nav .user-menu .nav-link {
  border: 1px solid transparent;
  border-radius: 3px;
  text-shadow: none;
  color: var(--text);
}
html[data-switch-style="aero"] header.nav .nav-menu a:hover,
html[data-switch-style="aero"] header.nav .user-menu .nav-link:hover {
  background: var(--aero-sel);
  border-color: var(--aero-sel-line);
  text-decoration: none;
}
html[data-switch-style="aero"] header.nav .nav-menu a .mi { opacity: .85; filter: none; }

/* 窄屏抽屉菜单 */
html[data-switch-style="aero"] header.nav .nav-drawer {
  background: var(--aero-menu);
  border-bottom: 1px solid var(--aero-menu-line);
  box-shadow: 0 6px 18px rgb(0 0 0 / .35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: none;
}
html[data-switch-style="aero"] header.nav .nav-drawer a { border: 1px solid transparent; border-radius: 3px; color: var(--text); }
html[data-switch-style="aero"] header.nav .nav-drawer a:is(:hover, .active) { background: var(--aero-sel); border-color: var(--aero-sel-line); }

/* ---------------------------------------------------------------- 首页分区导航 = Explorer 的命令栏 */
html[data-switch-style="aero"] .section-nav.home-section-nav,
html[data-switch-style="aero"][data-theme="dark"] .section-nav.home-section-nav {
  width: calc(var(--aero-win) - var(--aero-frame) * 2);
  max-width: 100vw;
  margin-left: calc(50% - (var(--aero-win) - var(--aero-frame) * 2) / 2);
  padding: 0 max(18px, calc((var(--aero-win) - var(--aero-frame) * 2 - 1076px) / 2));
  height: 34px;
  gap: 2px;
  align-items: center;
  background: var(--aero-cmd);
  border-bottom: 1px solid var(--aero-cmd-line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (max-width: 1259.98px) {
  html[data-switch-style="aero"] .section-nav.home-section-nav,
  html[data-switch-style="aero"][data-theme="dark"] .section-nav.home-section-nav {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 max(14px, calc((100vw - 1076px) / 2));
  }
}
html[data-switch-style="aero"][data-theme="dark"] .section-nav.home-section-nav { box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
html[data-switch-style="aero"] .section-nav.home-section-nav a {
  height: 26px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--aero-heading);
  font-size: 12.5px;
}
html[data-switch-style="aero"] .section-nav.home-section-nav a:hover {
  background: var(--aero-hot);
  border-color: var(--aero-hot-line);
  color: var(--aero-heading);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6);
}
html[data-switch-style="aero"] .section-nav.home-section-nav a.active,
html[data-switch-style="aero"][data-theme="dark"] .section-nav.home-section-nav a.active {
  background: var(--aero-sel);
  border-color: var(--aero-sel-line);
  color: var(--aero-heading);
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .12);
}
html[data-switch-style="aero"] .section-nav.home-section-nav a::after { display: none; }
html[data-switch-style="aero"] .zone { scroll-margin-top: calc(var(--nav-h) + 50px); }

/* ---------------------------------------------------------------- 标题 */
html[data-switch-style="aero"] :is(.page-head h1, .hero h1) {
  font-weight: 400;
  color: var(--aero-heading);
  letter-spacing: -.01em;
}
html[data-switch-style="aero"] .grad-text {
  background: linear-gradient(180deg, #3a8ee6 0%, #1d5fae 52%, #173f73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
html[data-switch-style="aero"][data-theme="dark"] .grad-text { background-image: linear-gradient(180deg, #bfe1ff 0%, #7ab9f5 55%, #4f95dc 100%); }
html[data-switch-style="aero"] :is(.card-title, .page-head h2, .section-title, h2.title) { color: var(--aero-heading); font-weight: 400; }
html[data-switch-style="aero"] .card-title { font-size: 16px; }
html[data-switch-style="aero"] .zone-head h2 { color: var(--aero-heading); font-weight: 500; }
html[data-switch-style="aero"] .zone-no { color: #3a7bc8; }
html[data-switch-style="aero"] .eyebrow { color: var(--text-3); letter-spacing: .04em; }

/* ---------------------------------------------------------------- 卡片和面板 */
/* 顶层面板：Windows 7 的白色窗格，细蓝灰边框 */
html[data-switch-style="aero"] :is(.card, .hero-panel, .stat-strip, .cta-band, .auth-card, .team-card, .metric, .player-list-wrap, .review-card) {
  border-radius: 4px;
  border: 1px solid var(--aero-group-line);
  box-shadow: 0 1px 3px rgb(0 0 0 / .08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-switch-style="aero"] :is(.card, .hero-panel, .auth-card, .review-card) { background: var(--surface-solid); }
/* glass-restore.css 给这些面板补了一层真实模糊；Aero 的客户区是实色，不需要（也省掉滚动时的重绘） */
html[data-switch-style="aero"] :is(.card, .hero-panel, .auth-card, .team-card, .review-card, .resource-card, .resource-admin-card,
    .xt-stat, .xt-result, .team-slot, .verify-token-box, .file-editor, .lat-chart-wrap, .ticker,
    .messages-shell, .hub-block, .player-list-wrap, .flow > div, .stat-strip, [data-player-stats],
    .msg-menu, .fm-menu, .line-detail, .xt-toc, .messages-people, .messages-chat-head, .messages-compose) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-switch-style="aero"] :is(.resource-card, .xt-stat, .team-slot, .hub-block, .flow > div, .ticker, .lat-chart-wrap) {
  border-radius: 4px;
  border-color: var(--aero-group-line);
}
html[data-switch-style="aero"] :is(.msg-menu, .fm-menu) {
  background: var(--aero-menu);
  border: 1px solid var(--aero-menu-line);
  border-radius: 0;
  box-shadow: 2px 3px 6px rgb(0 0 0 / .35);
  padding: 2px;
}

/* 号召横幅 = 一块嵌在窗口里的玻璃（Windows 7「入门」窗口那种） */
html[data-switch-style="aero"] .cta-band,
html[data-switch-style="aero"][data-palette] .cta-band {
  border: 1px solid rgb(0 0 0 / .45);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .45) 0, rgb(255 255 255 / .12) 46px, rgb(255 255 255 / 0) 120px),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / .45), rgb(var(--aero-rgb) / .45)),
    linear-gradient(var(--aero-veil), var(--aero-veil)),
    var(--aero-glass-img) center / cover no-repeat,
    #6f9fcf;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 2px 10px rgb(0 0 0 / .2);
}
html[data-switch-style="aero"] .cta-band :is(h2, h3, p) { color: var(--aero-ink); text-shadow: var(--aero-glow); }
html[data-switch-style="aero"] .cta-band h2 { font-weight: 500; }
html[data-switch-style="aero"] .cta-band .btn { --btn-fg: var(--aero-btn-ink); color: var(--aero-btn-ink); text-shadow: none; }

/* 回到顶部 = 小号的玻璃圆钮 */
html[data-switch-style="aero"] .to-top {
  border: 1px solid rgb(0 0 0 / .5);
  background:
    radial-gradient(70% 45% at 50% 18%, rgb(255 255 255 / .85), rgb(255 255 255 / .1) 100%),
    radial-gradient(90% 60% at 50% 100%, rgb(var(--aero-rgb) / .9), rgb(var(--aero-rgb) / .35));
  color: #0d2a4a;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 2px 6px rgb(0 0 0 / .35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-switch-style="aero"] .to-top:hover { color: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 0 10px rgb(var(--aero-rgb) / .9); }

/* 手机底栏 = Windows 7 任务栏 */
@media (max-width: 720px) {
  html[data-switch-style="aero"] .tabbar {
    background:
      linear-gradient(180deg, rgb(255 255 255 / .22) 0, rgb(255 255 255 / .06) 49%, rgb(0 0 0 / .12) 50%, rgb(0 0 0 / .04) 100%),
      linear-gradient(rgb(var(--aero-rgb) / .3), rgb(var(--aero-rgb) / .3)),
      linear-gradient(rgb(8 18 30 / .62), rgb(8 18 30 / .62)),
      var(--aero-glass-img) center bottom / cover no-repeat,
      #1d3650 !important;
    border-top: 1px solid rgb(0 0 0 / .7);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .35);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html[data-switch-style="aero"] .tabbar a {
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    text-shadow: 0 1px 3px rgb(0 0 0 / .9);
  }
  html[data-switch-style="aero"] .tabbar a .ti { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .8)); }
  html[data-switch-style="aero"] .tabbar a.active {
    color: #fff;
    border-color: rgb(0 0 0 / .55);
    background:
      radial-gradient(90% 70% at 50% 100%, rgb(var(--aero-rgb) / .75), transparent 75%),
      linear-gradient(180deg, rgb(255 255 255 / .38), rgb(255 255 255 / .12) 49%, rgb(255 255 255 / .04) 50%, rgb(255 255 255 / .14));
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4);
  }
}
html[data-switch-style="aero"] :is(.stat-strip, .cta-band, .team-card, .metric, .player-list-wrap) { background: linear-gradient(180deg, var(--surface-solid), var(--surface-2)); }
html[data-switch-style="aero"] .card.clickable:hover,
html[data-switch-style="aero"] a.card:hover {
  transform: none;
  border-color: var(--aero-hot-line);
  box-shadow: 0 0 0 1px var(--aero-hot-line), 0 2px 6px rgb(0 0 0 / .1);
  background: linear-gradient(180deg, #fff, #f3f8fe);
}
html[data-switch-style="aero"][data-theme="dark"] .card.clickable:hover,
html[data-switch-style="aero"][data-theme="dark"] a.card:hover { background: linear-gradient(180deg, #2a3442, #253040); }
html[data-switch-style="aero"] .card .card { box-shadow: none; }

/* 面板自己的标题条 = 迷你玻璃标题栏 */
html[data-switch-style="aero"] .hero-panel .top {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .6) 0, rgb(255 255 255 / .18) 26px, rgb(255 255 255 / .06) 60%, rgb(255 255 255 / .2) 100%),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / .75), rgb(var(--aero-rgb) / .75)),
    #8fb6dd;
  border-bottom: 1px solid rgb(0 0 0 / .35);
  color: var(--aero-ink);
  text-shadow: var(--aero-glow);
}
html[data-switch-style="aero"][data-theme="dark"] .hero-panel .top {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .18) 0, rgb(255 255 255 / .04) 26px, rgb(0 0 0 / .06) 60%, rgb(255 255 255 / .04) 100%),
    linear-gradient(rgb(var(--aero-rgb) / .4), rgb(var(--aero-rgb) / .4)),
    #1b2735;
}
html[data-switch-style="aero"] .hero-panel .top :is(.pill, .badge) { text-shadow: none; }

/* 页脚 = Explorer 的详细信息窗格 */
html[data-switch-style="aero"] .footer,
html[data-switch-style="aero"][data-theme="dark"] .footer {
  background: linear-gradient(180deg, #fdfeff 0%, #eef3fa 45%, #dfe8f4 100%);
  border-top: 1px solid #b6c6d8;
  box-shadow: inset 0 1px 0 #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-switch-style="aero"][data-theme="dark"] .footer {
  background: linear-gradient(180deg, #232c38 0%, #1c242e 45%, #161c24 100%);
  border-top-color: #0b0e12;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
}
html[data-switch-style="aero"] .footer b { color: var(--aero-heading); font-weight: 600; }

/* 提示条 */
html[data-switch-style="aero"] .notice {
  border-radius: 3px;
  border: 1px solid #a8c8e8;
  background: linear-gradient(180deg, #f5faff, #e3f0fd);
}
html[data-switch-style="aero"] .notice.warn { border-color: #e3c46b; background: linear-gradient(180deg, #fffbe9, #fff1bd); }
html[data-switch-style="aero"] .notice.err { border-color: #e0a3a3; background: linear-gradient(180deg, #fff5f5, #fde0e0); }
html[data-switch-style="aero"] .notice.ok { border-color: #9fd39a; background: linear-gradient(180deg, #f4fcf2, #dcf5d7); }
html[data-switch-style="aero"][data-theme="dark"] .notice { background: #1f3147; border-color: #35557a; }
html[data-switch-style="aero"][data-theme="dark"] .notice.warn { background: #3a3220; border-color: #6d5a2a; }
html[data-switch-style="aero"][data-theme="dark"] .notice.err { background: #3a2222; border-color: #6d3434; }
html[data-switch-style="aero"][data-theme="dark"] .notice.ok { background: #1f3622; border-color: #356b3b; }

/* 标签（Windows 7 没有胶囊，统一成小圆角的浅色块） */
html[data-switch-style="aero"] :is(.pill, .badge, .tag, .chip) { border-radius: 3px; }

/* ---------------------------------------------------------------- 按钮：Windows 7 系统按钮 */
html[data-switch-style="aero"] .btn {
  --btn-bg: var(--aero-btn);
  --btn-fg: var(--aero-btn-ink);
  --btn-line: var(--aero-btn-line);
  height: 30px;
  padding: 0 16px;
  border-radius: 3px;
  border: 1px solid var(--aero-btn-line);
  background: var(--aero-btn);
  color: var(--aero-btn-ink);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .72);
  transform: none;
  transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
html[data-switch-style="aero"][data-theme="dark"] .btn { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
html[data-switch-style="aero"] .btn-sm { height: 26px; padding: 0 12px; font-size: 12.5px; }
html[data-switch-style="aero"] .btn-lg { height: 36px; padding: 0 22px; font-size: 15px; }
html[data-switch-style="aero"] .btn:hover {
  background: var(--aero-btn-hover);
  border-color: var(--aero-btn-hover-line);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6);
  transform: none;
}
html[data-switch-style="aero"] .btn:active {
  background: var(--aero-btn-down);
  border-color: var(--aero-btn-down-line);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(0 0 0 / .08);
  transform: none;
}
html[data-switch-style="aero"] .btn:focus-visible { outline: 1px dotted var(--text); outline-offset: -4px; }
html[data-switch-style="aero"] .btn .ripple { display: none; }

/* 默认按钮（主要按钮）：Vista / 7 默认按钮那圈缓慢呼吸的蓝光 */
html[data-switch-style="aero"] .btn-primary {
  border-color: #3c7fb1;
  background: linear-gradient(#ecf7fe 0%, #dcf1fd 49%, #c4e8fd 50%, #b1dcf6 100%);
  color: #000;
  animation: aeroDefaultPulse 2.4s ease-in-out infinite alternate;
}
html[data-switch-style="aero"][data-theme="dark"] .btn-primary {
  border-color: #0f2c4c;
  background: linear-gradient(#6aa5e0 0%, #4b8bd0 49%, #2f6fb8 50%, #3c7fc6 100%);
  color: #fff;
}
@keyframes aeroDefaultPulse {
  from { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), inset 0 0 2px 2px rgb(85 175 240 / .25); }
  to   { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), inset 0 0 3px 3px rgb(85 175 240 / .75); }
}
html[data-switch-style="aero"] .btn-primary:hover { background: var(--aero-btn-hover); border-color: var(--aero-btn-hover-line); animation: none; }
html[data-switch-style="aero"] .btn-primary:active { background: var(--aero-btn-down); border-color: var(--aero-btn-down-line); animation: none; }
html[data-switch-style="aero"] header.nav .nav-actions > .btn-primary { background: linear-gradient(#ecf7fe 0%, #dcf1fd 49%, #c4e8fd 50%, #b1dcf6 100%); color: #000; }
html[data-switch-style="aero"] header.nav .nav-actions > .btn-primary:hover { background: var(--aero-btn-hover); }

/* 次要按钮：命令栏按钮（平时只有字，悬停才出现浅蓝底） */
html[data-switch-style="aero"] :is(.btn-ghost, .btn-tint) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--accent);
}
html[data-switch-style="aero"] .btn-ghost { color: var(--text); border-color: var(--aero-group-line); background: linear-gradient(rgb(255 255 255 / .6), rgb(255 255 255 / 0)); }
html[data-switch-style="aero"][data-theme="dark"] .btn-ghost { background: linear-gradient(rgb(255 255 255 / .06), rgb(255 255 255 / 0)); }
html[data-switch-style="aero"] :is(.btn-ghost, .btn-tint):hover {
  background: var(--aero-hot);
  border-color: var(--aero-hot-line);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55);
}
html[data-switch-style="aero"] :is(.btn-ghost, .btn-tint):active {
  background: var(--aero-sel);
  border-color: var(--aero-sel-line);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .2);
}

/* 危险 / 成功：Windows 7 关闭按钮的红、进度条的绿 */
html[data-switch-style="aero"] .btn-danger {
  border-color: #6d1a12;
  background: linear-gradient(#f0a99b 0%, #d9705b 49%, #c43c22 50%, #d45e3c 100%);
  color: #fff;
  text-shadow: 0 0 4px rgb(80 0 0 / .8);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
html[data-switch-style="aero"] .btn-danger:hover { background: linear-gradient(#f7b8aa 0%, #e67f69 49%, #d8472a 50%, #e86c48 100%); border-color: #6d1a12; }
html[data-switch-style="aero"] .btn-danger:active { background: linear-gradient(#c2614f, #a8321b 50%, #b8452a); border-color: #4b100a; }
html[data-switch-style="aero"] .btn-success {
  border-color: #1f6b16;
  background: linear-gradient(#b8f0ae 0%, #6fd760 49%, #2db51f 50%, #48c83a 100%);
  color: #fff;
  text-shadow: 0 0 4px rgb(0 60 0 / .8);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
html[data-switch-style="aero"] .btn-success:hover { background: linear-gradient(#c8f6c0 0%, #80e271 49%, #36c427 50%, #56d548 100%); border-color: #1f6b16; }

/* 普通图标按钮（内容区里的） */
html[data-switch-style="aero"] .icon-btn { border-radius: 3px; border: 1px solid transparent; transform: none; }
html[data-switch-style="aero"] .icon-btn:hover { background: var(--aero-hot); border-color: var(--aero-hot-line); transform: none; }
html[data-switch-style="aero"] .icon-btn:active { background: var(--aero-sel); border-color: var(--aero-sel-line); }

/* ---------------------------------------------------------------- 输入框 */
html[data-switch-style="aero"] :is(.input, .textarea, .select) {
  border-radius: 2px;
  border: 1px solid var(--aero-field-line);
  border-top-color: var(--aero-field-top);
  background: var(--aero-field);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: border-color .2s ease;
}
html[data-switch-style="aero"] :is(.input, .textarea, .select):hover { border-color: #7eb4ea; border-top-color: #5c93c9; }
html[data-switch-style="aero"] :is(.input, .textarea, .select):focus {
  border-color: #569de5;
  border-top-color: #3d7bad;
  box-shadow: none;
  background: var(--aero-field);
  outline: none;
}
/* 下拉框 = Windows 7 组合框（survey.css 对所有 select 用了 !important，这里同样要用） */
html[data-switch-style="aero"] select:not([multiple]) {
  border-radius: 3px !important;
  padding-right: 30px !important;
  border: 1px solid var(--aero-btn-line) !important;
  color: var(--aero-btn-ink);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(rgb(0 0 0 / .18), rgb(0 0 0 / .18)),
    var(--aero-btn) !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center, right 24px center, 0 0 !important;
  background-size: 7px 4px, 1px 60%, 100% 100% !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65);
}
html[data-switch-style="aero"][data-theme="dark"] select:not([multiple]) {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%23fff'/%3E%3C/svg%3E"),
    linear-gradient(rgb(0 0 0 / .4), rgb(0 0 0 / .4)),
    var(--aero-btn) !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
}
html[data-switch-style="aero"] select:not([multiple]):hover {
  border-color: var(--aero-btn-hover-line) !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M0 0h7L3.5 4z' fill='%23000'/%3E%3C/svg%3E"),
    linear-gradient(rgb(60 127 177 / .5), rgb(60 127 177 / .5)),
    var(--aero-btn-hover) !important;
}
html[data-switch-style="aero"] select:not([multiple]):focus { border-radius: 3px !important; border-color: var(--aero-btn-hover-line) !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65), 0 0 0 1px rgb(86 157 229 / .45); }
html[data-switch-style="aero"] select option { background: var(--aero-field); color: var(--text); }
html[data-switch-style="aero"] .field > label { color: var(--text); font-weight: 400; }

/* 复选框 */
html[data-switch-style="aero"] input[type="checkbox"]:not(.switch input),
html[data-switch-style="aero"] input[type="radio"] { accent-color: var(--aero-check); }

/* 强调色（设置里的「强调色」色块，html[data-desk-tint] + --desk-tint）：
   主题原版 = Windows 7 的绿色进度条；选了颜色就把开关、复选框、滑块和选中的分段按钮都换成那个颜色 */
html[data-switch-style="aero"] {
  --aero-on: var(--aero-progress);
  --aero-on-line: #3f8f37;
  --aero-check: #2c628b;
  --aero-range: #2c8be0;
}
html[data-switch-style="aero"][data-desk-tint]:not([data-desk-tint="theme"]) {
  --aero-on: linear-gradient(180deg, color-mix(in srgb, var(--desk-tint) 30%, #fff) 0%, color-mix(in srgb, var(--desk-tint) 60%, #fff) 30%, var(--desk-tint) 31%, color-mix(in srgb, var(--desk-tint) 85%, #000) 60%, var(--desk-tint) 100%);
  --aero-on-line: color-mix(in srgb, var(--desk-tint) 65%, #000);
  --aero-check: var(--desk-tint);
  --aero-range: var(--desk-tint);
}

/* ---------------------------------------------------------------- 开关：凹槽 + 亮面滑块，打开时是 Windows 7 的绿色进度条 */
html[data-switch-style="aero"] .dsh-switch,
html[data-switch-style="aero"] .switch input {
  border-radius: 3px;
  border: 1px solid #8e8f8f;
  background: linear-gradient(180deg, #d4d4d4, #f3f3f3 60%, #ffffff);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .25);
}
html[data-switch-style="aero"][data-theme="dark"] :is(.dsh-switch:not([aria-checked="true"]), .switch input:not(:checked)) {
  border-color: #0d1014;
  background: linear-gradient(180deg, #0d1116, #1c232c);
}
html[data-switch-style="aero"] .dsh-switch::after,
html[data-switch-style="aero"] .switch input::after {
  border-radius: 2px;
  background: var(--aero-btn);
  border: 1px solid var(--aero-btn-line);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 1px 2px rgb(0 0 0 / .25);
}
html[data-switch-style="aero"] .dsh-switch::after { top: 1px; left: 1px; width: 22px; height: 22px; }
html[data-switch-style="aero"] .dsh-switch[aria-checked="true"],
html[data-switch-style="aero"] .switch input:checked {
  background: var(--aero-on);
  border-color: var(--aero-on-line);
}
html[data-switch-style="aero"] .dsh-switch:hover::after,
html[data-switch-style="aero"] .switch:hover input::after { background: var(--aero-btn-hover); border-color: var(--aero-btn-hover-line); }

/* ---------------------------------------------------------------- 分段控件：工具栏按钮组 */
html[data-switch-style="aero"] .segmented {
  padding: 0;
  gap: 0;
  border-radius: 3px;
  border: 1px solid var(--aero-btn-line);
  background: var(--aero-btn);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6);
}
html[data-switch-style="aero"] .segmented button {
  height: 26px;
  padding: 0 13px;
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--aero-btn-ink);
  box-shadow: none;
  border-left: 1px solid rgb(0 0 0 / .18);
}
html[data-switch-style="aero"] .segmented button:first-child { border-left: 0; }
html[data-switch-style="aero"] .segmented button:hover { background: var(--aero-btn-hover); color: var(--aero-btn-ink); }
html[data-switch-style="aero"] .segmented button.active {
  background: var(--aero-btn-down);
  color: var(--aero-btn-ink);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / .4);
}
html[data-switch-style="aero"] .segmented button.active .n { color: inherit; }

/* 滑块 */
html[data-switch-style="aero"] :is(.ui-range, .lgx-range > input[type="range"]) { accent-color: var(--aero-range); }
/* 选了强调色时，选中的分段按钮底部加一道强调色 */
html[data-switch-style="aero"][data-desk-tint]:not([data-desk-tint="theme"]) .segmented button.active { box-shadow: inset 0 1px 3px rgb(0 0 0 / .4), inset 0 -3px var(--desk-tint); }

/* ---------------------------------------------------------------- 弹窗：真正的 Aero 对话框（玻璃边框 + 标题在玻璃上） */
html[data-switch-style="aero"] .modal-back { background: rgb(0 0 0 / .25); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-switch-style="aero"] .modal {
  border-radius: 7px;
  border: 1px solid rgb(0 0 0 / .7);
  padding: 0 7px 7px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .42) 0, rgb(255 255 255 / .12) 36px, rgb(255 255 255 / 0) 90px),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / .55), rgb(var(--aero-rgb) / .55));
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 6px 30px rgb(0 0 0 / .55);
  overflow: hidden;
}
html[data-switch-style="aero"][data-theme="dark"] .modal {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .16) 0, rgb(255 255 255 / 0) 80px),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / .3), rgb(var(--aero-rgb) / .3)),
    rgb(10 14 20 / .55);
}
html[data-switch-style="aero"] .modal-head {
  padding: 8px 6px 9px;
  align-items: center;
  color: var(--aero-ink);
  text-shadow: var(--aero-glow);
}
html[data-switch-style="aero"] .modal-head h3 { font-size: 14.5px; font-weight: 400; }
html[data-switch-style="aero"] .modal-head .sub { color: var(--aero-ink); opacity: .85; }
html[data-switch-style="aero"] .modal-head .icon-btn {
  width: 43px;
  height: 20px;
  border-radius: 0 4px 4px 4px;
  border: 1px solid #5c1d14;
  color: #fff;
  text-shadow: none;
  background: linear-gradient(#e9a99c 0%, #d47e66 45%, #c4472b 46%, #d0573a 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
html[data-switch-style="aero"] .modal-head .icon-btn svg { width: 13px; height: 13px; filter: drop-shadow(0 0 1px rgb(0 0 0 / .8)); }
html[data-switch-style="aero"] .modal-head .icon-btn:hover { background: linear-gradient(#f5c0b2 0%, #e88d73 45%, #e0502e 46%, #ec7350 100%); border-color: #5c1d14; }
html[data-switch-style="aero"] .modal-body {
  background: var(--aero-client);
  border: 1px solid rgb(0 0 0 / .4);
  border-bottom: 0;
  padding: 18px 20px;
}
html[data-switch-style="aero"] .modal-foot {
  background: var(--surface-2);
  border: 1px solid rgb(0 0 0 / .4);
  border-top: 1px solid var(--aero-group-line);
  padding: 10px 12px;
}
html[data-switch-style="aero"] .modal-body:last-child { border-bottom: 1px solid rgb(0 0 0 / .4); }
html[data-switch-style="aero"] .modal > :not(.modal-head):not(.modal-body):not(.modal-foot) { background-color: var(--aero-client); }

/* ---------------------------------------------------------------- 通知：Windows 7 的气球提示 */
html[data-switch-style="aero"] .toast {
  border-radius: 4px;
  border: 1px solid #767676;
  background: linear-gradient(180deg, #ffffff 0%, #e4e5f0 100%);
  box-shadow: 2px 3px 6px rgb(0 0 0 / .35);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #1e1e1e;
  font-weight: 400;
}
html[data-switch-style="aero"][data-theme="dark"] .toast { background: linear-gradient(180deg, #2c3541, #1f262f); border-color: #0b0e12; color: var(--text); }
html[data-switch-style="aero"] .toast .ic { border-radius: 50%; box-shadow: inset 0 1px 1px rgb(255 255 255 / .6), 0 0 0 1px rgb(0 0 0 / .25); }

/* ---------------------------------------------------------------- 工作区侧边栏 = Explorer 导航窗格 */
html[data-switch-style="aero"] .admin-directory {
  border-radius: 4px;
  border: 1px solid var(--aero-group-line);
  background: linear-gradient(180deg, var(--surface-solid), var(--surface-2));
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-switch-style="aero"][data-workspace-layout="edge"] .workspace-page .admin-directory {
  border: 0;
  border-right: 1px solid var(--aero-group-line);
  border-radius: 0;
  background: linear-gradient(90deg, var(--surface-solid), var(--surface-2));
}
html[data-switch-style="aero"] .admin-directory-link {
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text);
}
html[data-switch-style="aero"] .admin-directory-link:hover {
  background: var(--aero-hot);
  border-color: var(--aero-hot-line);
  text-decoration: none;
}
html[data-switch-style="aero"] .admin-directory-link.active,
html[data-switch-style="aero"] .admin-directory nav .admin-directory-link.active {
  background: var(--aero-sel);
  border-color: var(--aero-sel-line);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5);
}
html[data-switch-style="aero"] .admin-directory-link.active::before,
html[data-switch-style="aero"] .admin-directory-glider { display: none; }
html[data-switch-style="aero"] .admin-directory-label { color: var(--aero-heading); }

/* ---------------------------------------------------------------- 表格 */
html[data-switch-style="aero"] .table th {
  background: linear-gradient(#ffffff, #f1f2f4);
  border-bottom: 1px solid #d5d5d5;
  color: #4c607a;
  font-weight: 400;
}
html[data-switch-style="aero"][data-theme="dark"] .table th { background: linear-gradient(#2b333e, #222932); border-bottom-color: #3a4453; color: var(--text-2); }
html[data-switch-style="aero"] .table tbody tr:hover td { background: #e5f3fb; }
html[data-switch-style="aero"][data-theme="dark"] .table tbody tr:hover td { background: #243246; }

/* ---------------------------------------------------------------- 滚动条：Windows 7 */
html[data-switch-style="aero"] ::-webkit-scrollbar { width: 17px; height: 17px; background: #f0f0f0; }
html[data-switch-style="aero"] ::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #e3e3e3, #eeeeee 20%, #f5f5f5 80%, #e9e9e9);
  border-left: 1px solid #e0e0e0;
}
html[data-switch-style="aero"] ::-webkit-scrollbar-track:horizontal { background: linear-gradient(180deg, #e3e3e3, #eeeeee 20%, #f5f5f5 80%, #e9e9e9); }
html[data-switch-style="aero"] ::-webkit-scrollbar-thumb {
  border: 1px solid #959595;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #f3f3f3 0%, #e8e8e8 49%, #d6d6d6 50%, #e2e2e2 100%) padding-box;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7);
  min-height: 24px;
}
html[data-switch-style="aero"] ::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(180deg, #f3f3f3 0%, #e8e8e8 49%, #d6d6d6 50%, #e2e2e2 100%) padding-box; }
html[data-switch-style="aero"] ::-webkit-scrollbar-thumb:hover {
  border-color: #3c7fb1;
  background: linear-gradient(90deg, #e3f4fc 0%, #d6eef9 49%, #a9d9f2 50%, #c4e6f7 100%) padding-box;
}
html[data-switch-style="aero"] ::-webkit-scrollbar-thumb:horizontal:hover { background: linear-gradient(180deg, #e3f4fc 0%, #d6eef9 49%, #a9d9f2 50%, #c4e6f7 100%) padding-box; }
html[data-switch-style="aero"] ::-webkit-scrollbar-thumb:active {
  border-color: #2c628b;
  background: linear-gradient(90deg, #cde6f6 0%, #b5dbf1 49%, #7fc0e6 50%, #99cde9 100%) padding-box;
}
html[data-switch-style="aero"] ::-webkit-scrollbar-corner { background: #f0f0f0; }
html[data-switch-style="aero"][data-theme="dark"] ::-webkit-scrollbar,
html[data-switch-style="aero"][data-theme="dark"] ::-webkit-scrollbar-corner { background: #1b2028; }
html[data-switch-style="aero"][data-theme="dark"] ::-webkit-scrollbar-track { background: #1b2028; border-left-color: #11151b; }
html[data-switch-style="aero"][data-theme="dark"] ::-webkit-scrollbar-thumb { border-color: #0b0e12; background: linear-gradient(90deg, #4c5563, #3c4451 50%, #343b47) padding-box; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
html[data-switch-style="aero"][data-theme="dark"] ::-webkit-scrollbar-thumb:hover { border-color: #0f2c4c; background: linear-gradient(90deg, #5b8fc4, #3f77b2 50%, #2c639f) padding-box; }
/* 侧边栏、分区导航这些故意藏起来的细滚动条保持原样 */
html[data-switch-style="aero"] :is(.segmented, .section-nav)::-webkit-scrollbar { display: none; }
@supports not selector(::-webkit-scrollbar) {
  html[data-switch-style="aero"] { scrollbar-color: #c2c2c2 #f0f0f0; }
  html[data-switch-style="aero"][data-theme="dark"] { scrollbar-color: #4c5563 #1b2028; }
}

/* ---------------------------------------------------------------- 设置页里的 Aero 选项 */
.aero-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.aero-wall-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  font-size: 12px;
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
}
.aero-wall-opt img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgb(0 0 0 / .35);
  box-shadow: 0 1px 3px rgb(0 0 0 / .25);
  background: var(--surface-hover);
}
.aero-wall-opt:hover { border-color: #b8d6fb; background: linear-gradient(#fafbfd, #ebf3fd); }
.aero-wall-opt[aria-checked="true"] { border-color: #7da2ce; background: linear-gradient(#dcebfc, #c1dbfc); color: var(--text); }
html[data-theme="dark"] .aero-wall-opt:hover { border-color: #44607f; background: #253040; }
html[data-theme="dark"] .aero-wall-opt[aria-checked="true"] { border-color: #4f7fb8; background: linear-gradient(#2f5d93, #24497a); }
.aero-wall-opt:focus-visible { outline: 1px dotted var(--text); outline-offset: 1px; }
.aero-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.aero-color-opt {
  width: 44px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid rgb(0 0 0 / .45);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .6) 0%, rgb(255 255 255 / .2) 49%, rgb(255 255 255 / 0) 50%, rgb(255 255 255 / .15) 100%),
    var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5);
  cursor: pointer;
}
.aero-color-opt:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 0 0 2px #b8d6fb; }
.aero-color-opt[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 0 0 2px #3c7fb1; }
.aero-color-opt:focus-visible { outline: 1px dotted var(--text); outline-offset: 3px; }
.aero-credit { font-size: 11.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html[data-switch-style="aero"] .btn-primary { animation: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), inset 0 0 3px 2px rgb(85 175 240 / .5); }
}
.field > .field-label { font-size: 13px; font-weight: 560; color: var(--text-2); }
html[data-switch-style="aero"] .field > .field-label { color: var(--text); font-weight: 400; }

/* ---------------------------------------------------------------- 登录 / 注册页 */
html[data-switch-style="aero"] .auth-card h2 { color: var(--aero-heading); font-weight: 400; }
html[data-switch-style="aero"] .auth-tabs {
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border-bottom: 1px solid #898c95;
}
html[data-switch-style="aero"] .auth-tabs a {
  margin-bottom: -1px;
  padding: 5px 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  font-weight: 400;
  color: var(--text);
}
html[data-switch-style="aero"] .auth-tabs a:hover { background: var(--aero-btn-hover); border-color: var(--aero-btn-hover-line); text-decoration: none; }
html[data-switch-style="aero"] .auth-tabs a.active {
  background: var(--surface-solid);
  border-color: #898c95;
  box-shadow: none;
}

/* ==========================================================================
   Windows Aero · StyleStar 风格（主题样式 = Aero → html[data-aero-skin="star"]）
   上面的 Windows Basic 规则照样生效（按钮、输入框、菜单、滚动条……），这里只改「窗口」：
     · 不再是一整扇窗口：深色桌面上浮着几扇独立的玻璃窗口，窗口之间露出壁纸。
     · 顶栏 = 玻璃外框里的一条深色玻璃工具栏，上沿有一道从左扫到右的高光。
     · 主窗口 = 玻璃标题栏（标题 + 最小化/最大化/关闭）+ 资源管理器地址栏（js/core/aero-chrome.js）
       + 白色客户区；首页分区导航 = 深蓝色命令栏；页脚 = 深色玻璃窗口。
     · 玻璃用预先模糊的壁纸 + background-attachment: fixed，和桌面逐像素对齐（触屏设备不支持 fixed，只留颜色）。
   ========================================================================== */
.aero-chrome { display: none; }

html[data-switch-style="aero"][data-aero-skin="star"] {
  --nav-h: 54px;
  --star-gap: 12px;
  --star-wall: var(--aero-glass-img);
  --star-cmd:
    linear-gradient(180deg, rgb(255 255 255 / .24) 0, rgb(255 255 255 / .07) 49%, rgb(255 255 255 / 0) 50%),
    radial-gradient(60% 160% at 82% 100%, rgb(120 205 255 / .38), transparent 62%),
    linear-gradient(#1f5f86, #0b3b5e);
  --star-gadget:
    radial-gradient(120% 60% at 30% 0, rgb(120 190 255 / .30), transparent 60%),
    radial-gradient(90% 50% at 100% 100%, rgb(60 140 220 / .35), transparent 70%),
    linear-gradient(180deg, #123d66, #0a2848 60%, #0c3157);
  --star-outline: 0 0 0 1px rgb(0 0 0 / .72);
  --star-shadow: 0 8px 28px rgb(0 0 0 / .5);
  --star-hi: inset 0 0 0 1px rgb(255 255 255 / .42);
  --aero-win: calc(100vw - 32px);
}
@media (min-width: 1240px) { html[data-switch-style="aero"][data-aero-skin="star"] { --aero-win: 1200px; } }
/* 玻璃：同一张预先模糊的壁纸，按「铺满视口」的尺寸、减去元素自己在视口里的位置（--gx / --gy）来摆放，
   这样静止时和桌面逐像素对齐，又不需要 background-attachment: fixed（那会让每次滚动都重画整块玻璃）。
   顶栏是 sticky 的、永远在 --star-gap 处，所以始终对齐；下面跟着页面滚动的窗口在第一屏对齐，
   往下滚时玻璃跟着窗口走（只有 7px 的边框，又是模糊的，看不出来），壁纸用完的地方渐变成壁纸的平均色。 */
html[data-switch-style="aero"][data-aero-skin="star"] :is(header.nav, .aero-chrome, #view.page, #foot.footer) {
  --gx: calc((100vw - var(--aero-win)) / 2);
  --star-glass:
    linear-gradient(180deg, rgb(255 255 255 / .36) 0, rgb(255 255 255 / .10) 30px, rgb(255 255 255 / 0) 90px),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / var(--aero-a)), rgb(var(--aero-rgb) / var(--aero-a))),
    linear-gradient(var(--aero-veil), var(--aero-veil)),
    var(--star-fade, linear-gradient(transparent, transparent)),
    var(--star-wall) calc((100vw - var(--cover-w)) / 2 - var(--gx)) calc((100vh - var(--cover-h)) / 2 - var(--gy, 0px)) / var(--cover-w) var(--cover-h) no-repeat,
    var(--wall-avg);
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav { --gy: var(--star-gap); }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-chrome { --gy: calc(var(--star-gap) * 2 + var(--nav-h)); }
html[data-switch-style="aero"][data-aero-skin="star"] #view.page {
  --gx: calc((100vw - var(--aero-win)) / 2 + 7px);
  --gy: calc(var(--star-gap) * 2 + var(--nav-h) + 66px);
  --star-fade: linear-gradient(180deg, transparent calc((100vh + var(--cover-h)) / 2 - var(--gy) - 45vh), var(--wall-avg) calc((100vh + var(--cover-h)) / 2 - var(--gy)));
}
html[data-switch-style="aero"][data-aero-skin="star"] #foot.footer { --star-wall: none; }

/* Basic 的「整扇窗口」去掉 */
html[data-switch-style="aero"][data-aero-skin="star"] .aurora::before,
html[data-switch-style="aero"][data-aero-skin="star"] .aurora::after { content: none; }
html[data-switch-style="aero"][data-aero-skin="star"] #app {
  max-width: var(--aero-win);
  padding-top: var(--star-gap);
  background: none;
}

/* ---------------------------------------------------------------- 顶栏：玻璃外框 + 深色工具栏 */
html[data-switch-style="aero"][data-aero-skin="star"] header.nav,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav {
  --aero-ink: #fff;
  --aero-glow: 0 0 6px rgb(0 0 0 / .85), 0 1px 2px rgb(0 0 0 / .9);
  top: var(--star-gap);
  height: var(--nav-h);
  margin-bottom: var(--star-gap);
  border-radius: 7px;
  background: var(--star-glass);
  box-shadow: var(--star-outline), var(--star-hi), var(--star-shadow);
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav::before,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav::before {
  --gx: calc((100vw - var(--aero-win)) / 2 + 5px);
  --gy: calc(var(--star-gap) + 5px);
  --star-dark:
    linear-gradient(180deg, rgb(255 255 255 / .2) 0, rgb(255 255 255 / .05) 48%, rgb(0 0 0 / .18) 50%, rgb(0 0 0 / .05) 100%),
    linear-gradient(rgb(6 14 26 / .72), rgb(6 14 26 / .72)),
    var(--star-wall) calc((100vw - var(--cover-w)) / 2 - var(--gx)) calc((100vh - var(--cover-h)) / 2 - var(--gy)) / var(--cover-w) var(--cover-h) no-repeat,
    #0d1b2b;
  position: absolute;
  inset: 5px;
  z-index: 0;
  border-radius: 3px;
  clip-path: none;
  background:
    radial-gradient(38% 120% at 88% 110%, rgb(110 255 190 / .28), transparent 70%),
    radial-gradient(30% 90% at 70% -10%, rgb(110 200 255 / .30), transparent 70%),
    var(--star-dark);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .28);
}
/* 上沿那道从左扫到右的高光 */
html[data-switch-style="aero"][data-aero-skin="star"] header.nav::after {
  top: -1px;
  bottom: auto;
  left: 8px;
  right: 8px;
  height: 3px;
  box-shadow: none;
  z-index: 3;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / .95) 50%, rgb(255 255 255 / 0)) no-repeat;
  background-size: 22% 100%;
  background-position: -40% 0;
  filter: drop-shadow(0 0 3px rgb(190 235 255 / .9));
  animation: aeroGlint 4.5s ease-in-out .8s infinite;
}
/* 换页 / 鼠标移上顶栏时 aero-chrome.js 切换 .glint-b，换成同样的关键帧名字 → 立刻从头再扫一遍 */
html[data-switch-style="aero"][data-aero-skin="star"] header.nav.glint-b::after { animation-name: aeroGlintB; animation-delay: 0s; }
@keyframes aeroGlintB {
  0% { background-position: -40% 0; opacity: 0; }
  4% { opacity: 1; }
  38% { background-position: 140% 0; opacity: 1; }
  42%, 100% { background-position: 140% 0; opacity: 0; }
}
@keyframes aeroGlint {
  0% { background-position: -40% 0; opacity: 0; }
  4% { opacity: 1; }
  38% { background-position: 140% 0; opacity: 1; }
  42%, 100% { background-position: 140% 0; opacity: 0; }
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-inner { max-width: none; padding: 0 16px; }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .name {
  font-size: 19px;
  font-weight: 300;
  letter-spacing: .01em;
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .ver { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); color: #fff; }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .logo { filter: drop-shadow(0 0 6px rgb(140 210 255 / .8)); }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav :is(.icon-btn, .nav-link) svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .9)); }
/* 工具栏按钮（取代 Basic 的标签页） */
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links { align-self: center; align-items: center; }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > .nav-group { align-self: center; }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav .nav-links .nav-link {
  height: 28px;
  padding: 0 11px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link:hover,
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-group:hover > .nav-link,
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link.active,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav .nav-links .nav-link.active {
  height: 28px;
  margin: 0;
  color: #fff;
  text-shadow: var(--aero-glow);
  border-color: rgb(255 255 255 / .38);
  background:
    radial-gradient(90% 80% at 50% 100%, rgb(var(--aero-rgb) / .45), transparent 72%),
    linear-gradient(180deg, rgb(255 255 255 / .26), rgb(255 255 255 / .08) 49%, rgb(255 255 255 / .02) 50%, rgb(255 255 255 / .12));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .3);
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link.active { font-weight: 600; }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .icon-btn:hover {
  background: linear-gradient(180deg, rgb(255 255 255 / .26), rgb(255 255 255 / .08) 49%, rgb(255 255 255 / .02) 50%, rgb(255 255 255 / .12));
  border-color: rgb(255 255 255 / .38);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35);
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn-ghost:hover {
  color: #fff;
  border-color: rgb(255 255 255 / .38);
  background: linear-gradient(180deg, rgb(255 255 255 / .26), rgb(255 255 255 / .08) 49%, rgb(255 255 255 / .02) 50%, rgb(255 255 255 / .12));
}
html[data-switch-style="aero"][data-aero-skin="star"] .scroll-progress { display: none; }

/* ---------------------------------------------------------------- 主窗口：标题栏 + 地址栏（aero-chrome.js） */
html[data-switch-style="aero"][data-aero-skin="star"] .aero-chrome {
  display: block;
  position: relative;
  z-index: 2;
  padding: 0 7px 6px;
  border-radius: 7px 7px 0 0;
  background: var(--star-glass);
  box-shadow: var(--star-outline), inset 0 1px 0 rgb(255 255 255 / .5), inset 1px 0 0 rgb(255 255 255 / .35), inset -1px 0 0 rgb(255 255 255 / .35);
}
.aero-chrome :is(.w2k-tools, .w2k-addr) { display: none; }
.aero-tb { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 1px; }
.aero-tb-ic { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.aero-tb-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: #000;
  text-shadow: 0 0 7px rgb(255 255 255 / .95), 0 0 2px #fff;
}
.aero-caps { display: flex; align-self: flex-start; margin-top: -1px; flex: none; }
.aero-caps :is(i, button) {
  padding: 0;
  cursor: pointer;
  display: block;
  width: 27px;
  height: 19px;
  border: 1px solid rgb(0 0 0 / .58);
  border-left-width: 0;
  background:
    var(--cap-glyph) center / 11px 9px no-repeat,
    linear-gradient(180deg, rgb(255 255 255 / .55) 0, rgb(255 255 255 / .2) 49%, rgb(255 255 255 / .06) 50%, rgb(255 255 255 / .28) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
.aero-caps :is(i, button).min { border-left-width: 1px; border-radius: 0 0 0 5px; --cap-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Crect x='1.5' y='5.5' width='8' height='2.6' fill='%23fff' stroke='%23233' stroke-width='.8'/%3E%3C/svg%3E"); }
.aero-caps :is(i, button).max { --cap-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Crect x='1.5' y='1' width='8' height='7' fill='none' stroke='%23233' stroke-width='2.6'/%3E%3Crect x='1.5' y='1' width='8' height='7' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E"); }
.aero-caps :is(i, button).cls {
  width: 45px;
  border-radius: 0 0 5px 0;
  --cap-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23400' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background:
    var(--cap-glyph) center / 11px 9px no-repeat,
    linear-gradient(180deg, #e9a99c 0%, #d47e66 45%, #c4472b 46%, #d0573a 100%);
  border-color: #5c1d14;
}
.aero-addr { display: flex; align-items: center; gap: 6px; height: 32px; }
.aero-navs { display: flex; align-items: center; flex: none; margin-right: 2px; }
.aero-nav {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #1a3f6f;
  background:
    var(--nav-glyph) center / 12px 12px no-repeat,
    radial-gradient(80% 55% at 50% 22%, rgb(255 255 255 / .85), rgb(255 255 255 / 0) 72%),
    radial-gradient(90% 70% at 50% 100%, #7cc4ff, #1f62b5 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), 0 1px 2px rgb(0 0 0 / .35);
  cursor: pointer;
}
.aero-nav.back { --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M10.5 6H2.5M6 2.5L2.5 6 6 9.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.aero-nav.fwd {
  margin-left: -3px;
  --nav-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6h8M6 2.5L9.5 6 6 9.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background:
    var(--nav-glyph) center / 12px 12px no-repeat,
    radial-gradient(80% 55% at 50% 22%, rgb(255 255 255 / .8), rgb(255 255 255 / 0) 72%),
    radial-gradient(90% 70% at 50% 100%, #b6c8dc, #6d86a3 70%);
  border-color: #3d5068;
}
.aero-nav:hover { filter: brightness(1.12) saturate(1.15); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 8px rgb(110 190 255 / .9); }
.aero-nav:active { filter: brightness(.9); }
.aero-nav:focus-visible, .aero-refresh:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.aero-crumbs {
  flex: 1;
  min-width: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 6px;
  border: 1px solid rgb(0 0 0 / .42);
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(255 255 255 / .94), rgb(236 243 250 / .9));
  box-shadow: inset 0 1px 0 #fff;
  font-size: 12.5px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
}
.aero-crumbs img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.aero-crumbs a, .aero-cur {
  padding: 1px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aero-crumbs a:hover { border-color: #b8d6fb; background: linear-gradient(#fafbfd, #e3effc); text-decoration: none !important; }
.aero-sep {
  width: 12px;
  height: 12px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2.5L8 6 4 9.5z' fill='%23000'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.aero-sep[hidden], .aero-cur[hidden] { display: none; }
.aero-refresh {
  width: 26px;
  height: 24px;
  flex: none;
  border: 1px solid rgb(0 0 0 / .42);
  border-radius: 2px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M11 5.5A4.5 4.5 0 1 0 11.4 9' fill='none' stroke='%231d5fae' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M11.8 1.8v4h-4' fill='none' stroke='%231d5fae' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(180deg, rgb(255 255 255 / .8), rgb(220 232 246 / .7));
  cursor: pointer;
}
.aero-refresh:hover { border-color: #3c7fb1; background-color: #d9f0fc; }
.aero-search { position: relative; width: 240px; flex: none; margin: 0; }
.aero-search input {
  width: 100%;
  height: 24px;
  padding: 0 26px 0 7px;
  border: 1px solid rgb(0 0 0 / .42);
  border-radius: 2px;
  background: linear-gradient(180deg, rgb(255 255 255 / .94), rgb(236 243 250 / .9));
  font-size: 12.5px;
  color: #000;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.aero-search input::placeholder { color: #6d7a88; font-style: italic; }
.aero-search input:focus { background: #fff; border-color: #3d7bad; }
.aero-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.aero-search button {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 24px;
  height: 22px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='5.8' cy='5.8' r='3.8' fill='%23e8f4ff' stroke='%231d5fae' stroke-width='1.6'/%3E%3Cpath d='M8.6 8.6l3.6 3.6' stroke='%23374a5e' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  cursor: pointer;
}
/* 主窗口的其余部分：左右下三条玻璃边框 + 白色客户区 */
html[data-switch-style="aero"][data-aero-skin="star"] #view.page {
  max-width: none;
  width: auto;
  margin: 0;
  padding: 0 calc(22px + 7px) 48px;
  border: solid transparent;
  border-width: 0 7px 7px;
  border-radius: 0 0 7px 7px;
  background:
    radial-gradient(1100px 340px at 88% 0, rgb(206 230 250 / .75), transparent 70%) padding-box,
    linear-gradient(180deg, var(--aero-client) 0, var(--aero-client) 380px, var(--aero-client-2) 1200px) padding-box,
    var(--star-glass);
  box-shadow: var(--star-outline), var(--star-shadow), inset 0 0 0 1px rgb(0 0 0 / .45);
  position: relative;
  z-index: 1;
}
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] #view.page {
  background:
    radial-gradient(1100px 340px at 88% 0, rgb(40 80 130 / .35), transparent 70%) padding-box,
    linear-gradient(180deg, var(--aero-client) 0, var(--aero-client) 380px, var(--aero-client-2) 1200px) padding-box,
    var(--star-glass);
}
html[data-switch-style="aero"][data-aero-skin="star"] #view.page { padding-inline: 22px; }
html[data-switch-style="aero"][data-workspace-layout="edge"][data-aero-skin="star"] #view.page.workspace-page { padding: 0; }
html[data-switch-style="aero"][data-workspace-layout="edge"][data-aero-skin="star"] #view.page.workspace-page .section-nav { margin-inline: 0; }

/* 首页分区导航 = StyleStar 的深蓝色命令栏 */
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .section-nav.home-section-nav {
  top: calc(var(--nav-h) + var(--star-gap));
  width: auto;
  max-width: none;
  margin: 0 -22px;
  padding: 0 14px;
  height: 32px;
  background: var(--star-cmd);
  border-bottom: 1px solid #06233a;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35);
}
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav a,
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav a:hover,
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav a.active,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .section-nav.home-section-nav a.active {
  height: 24px;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .8);
}
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav a:hover,
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav a.active,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .section-nav.home-section-nav a.active {
  border-color: rgb(255 255 255 / .4);
  background: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / .1) 49%, rgb(255 255 255 / .03) 50%, rgb(255 255 255 / .14));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25);
}

/* 客户区里的标题：StyleStar 的标题蓝，字重更轻 */
html[data-switch-style="aero"][data-aero-skin="star"] :is(.page-head h1, .hero h1) { font-weight: 300; }
html[data-switch-style="aero"][data-aero-skin="star"] :is(.zone-head h2, .card-title, .auth-card h2) { color: #1f6fb4; font-weight: 400; }
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] :is(.zone-head h2, .card-title, .auth-card h2) { color: #8cc4f5; }

/* 面板标题条：深蓝命令栏（Basic 是迷你玻璃标题栏） */
html[data-switch-style="aero"][data-aero-skin="star"] .hero-panel .top,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .hero-panel .top {
  background: var(--star-cmd);
  border-bottom: 1px solid #06233a;
  --aero-ink: #fff;
  --text-2: rgb(255 255 255 / .82);
  --text-3: rgb(255 255 255 / .7);
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .8);
}
html[data-switch-style="aero"][data-aero-skin="star"] .hero-panel .top :is(div, span, small, p, b, strong) { color: #fff; }
html[data-switch-style="aero"][data-aero-skin="star"] .hero-panel .top :is(.muted, .dim, .tiny, .small) { color: rgb(255 255 255 / .82); }
html[data-switch-style="aero"][data-aero-skin="star"] .hero-panel .top :is(.pill, .badge) { color: #fff; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .3); }

/* 号召横幅：StyleStar「欢迎中心」那种绿蓝渐变玻璃 */
html[data-switch-style="aero"][data-aero-skin="star"] .cta-band,
html[data-switch-style="aero"][data-aero-skin="star"][data-palette] .cta-band {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .35) 0, rgb(255 255 255 / .08) 50px, rgb(255 255 255 / 0) 120px),
    var(--aero-sheen),
    linear-gradient(100deg, rgb(40 120 190 / .85), rgb(60 160 150 / .78) 55%, rgb(110 190 90 / .8)),
    #2d7fb3;
}
html[data-switch-style="aero"][data-aero-skin="star"] .cta-band :is(h2, h3, p) { color: #fff; text-shadow: 0 0 8px rgb(0 40 80 / .8), 0 1px 2px rgb(0 0 0 / .6); }
html[data-switch-style="aero"][data-aero-skin="star"] .cta-band h2 { font-weight: 300; }

/* 侧栏目录 = StyleStar 右边的「菜单」小工具 */
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory,
html[data-switch-style="aero"][data-aero-skin="star"][data-workspace-layout="edge"] .workspace-page .admin-directory {
  background: var(--star-gadget);
  border: 1px solid #06192c;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18);
  color: #fff;
}
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory :is(.admin-directory-label, .admin-directory-head, .admin-directory-head *) { color: #cfe6ff; text-shadow: 0 1px 2px rgb(0 0 0 / .7); }
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory-link,
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory-toggle { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .7); }
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory-link:hover,
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory-link.active,
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory nav .admin-directory-link.active {
  color: #fff;
  border-color: rgb(255 255 255 / .4);
  background: linear-gradient(180deg, rgb(255 255 255 / .28), rgb(255 255 255 / .1) 49%, rgb(255 255 255 / .03) 50%, rgb(255 255 255 / .14));
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3);
}
html[data-switch-style="aero"][data-aero-skin="star"] .admin-directory :is(.admin-directory-sep, .admin-directory-page) { border-color: rgb(255 255 255 / .15); }

/* ---------------------------------------------------------------- 页脚：深色玻璃窗口 */
html[data-switch-style="aero"][data-aero-skin="star"] #foot.footer,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] #foot.footer {
  margin: var(--star-gap) 0 var(--star-gap);
  border: solid transparent;
  border-width: 5px;
  border-radius: 7px;
  background: var(--star-glass);
  /* 内侧的深色玻璃用 inset 阴影铺满（只画在边框里面），外圈 5px 留给浅色玻璃边框 */
  box-shadow: var(--star-outline), var(--star-shadow), inset 0 0 0 1px rgb(0 0 0 / .8),
    inset 0 1px 0 1px rgb(255 255 255 / .22), inset 0 0 0 3000px rgb(6 16 30 / .78);
  color: #dfeaf6;
  --text: #fff;
  --text-2: #dfeaf6;
  --text-3: #b9cbe0;
}
html[data-switch-style="aero"][data-aero-skin="star"] #foot.footer :is(b, strong, h3, h4, .row span) { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .8); }
html[data-switch-style="aero"][data-aero-skin="star"] #foot.footer :is(a, div, p, span) { color: #cfe0f2; }
html[data-switch-style="aero"][data-aero-skin="star"] #foot.footer a:hover { color: #fff; text-shadow: 0 0 6px rgb(140 210 255 / .9); }

/* ---------------------------------------------------------------- 对话框：StyleStar 的大标题玻璃窗 */
html[data-switch-style="aero"][data-aero-skin="star"] .modal {
  padding: 0 14px 12px;
  border-radius: 9px;
}
html[data-switch-style="aero"][data-aero-skin="star"] .modal-head { padding: 14px 4px 12px; }
html[data-switch-style="aero"][data-aero-skin="star"] .modal-head h3 {
  font-size: 24px;
  font-weight: 300;
  color: #222;
  text-shadow: 0 0 10px rgb(255 255 255 / .95), 0 0 3px #fff;
}
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .modal-head h3 { color: #fff; text-shadow: 0 0 10px rgb(0 0 0 / .9); }
html[data-switch-style="aero"][data-aero-skin="star"] .modal-body {
  border: 1px solid rgb(0 0 0 / .38);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .9), 0 1px 4px rgb(0 0 0 / .2);
  padding: 22px 26px;
}
html[data-switch-style="aero"][data-aero-skin="star"] .modal-body:last-child { border-bottom: 1px solid rgb(0 0 0 / .38); }
html[data-switch-style="aero"][data-aero-skin="star"] .modal-foot {
  background: none;
  border: 0;
  padding: 12px 0 0;
}

/* ==========================================================================
   v1.36 · Aero（StyleStar）精修：参考 StyleStar 论坛
     · 顶栏 = 两层的「横幅窗口」：上面是深色玻璃横幅（水晶球徽标 + 大号细体标题和倒影 + 右侧的极光光带），
       下面是深色命令栏（带彩色小图标的导航 + 水晶质感的按钮）。往下滚时横幅跟着滚走，只把命令栏钉在顶上
       （sticky 的 top 是负的横幅高度，不需要 JS，也不会让页面跳动）。顶栏高光改在命令栏上沿扫过。
     · 主窗口：标题栏右上角是 Windows 7 那种会发光的「宝石」按钮（最小化 / 最大化 / 红色关闭），
       地址栏的后退 / 前进是带高光的蓝色水晶球；窗口有更明显的投影和内侧高光，客户区上沿有一道细阴影。
     · 修正「窗口内容左边被切」：客户区以前没有上内边距，页面内容直接贴着地址栏；
       文档 / 设置这类工作区页面里侧栏紧贴窗口左边框、顶栏还压在窗口上、窗口底边被裁掉。
   ========================================================================== */
html[data-switch-style="aero"][data-aero-skin="star"] {
  --star-banner: 0px;
  --star-head: calc(var(--star-banner) + var(--nav-h));
  --jewel-blue:
    radial-gradient(70% 45% at 50% 14%, rgb(255 255 255 / .95), rgb(255 255 255 / .25) 60%, rgb(255 255 255 / 0) 72%),
    radial-gradient(85% 55% at 50% 100%, rgb(150 235 255 / .95), rgb(150 235 255 / 0) 70%),
    linear-gradient(180deg, #5aa7ea 0%, #1f63c2 52%, #0f4aa6 53%, #2b7fdc 100%);
  --jewel-smoke:
    radial-gradient(70% 45% at 50% 12%, rgb(255 255 255 / .55), rgb(255 255 255 / .08) 62%, rgb(255 255 255 / 0) 74%),
    radial-gradient(85% 55% at 50% 100%, rgb(120 200 255 / .45), rgb(120 200 255 / 0) 70%),
    linear-gradient(180deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .06) 50%, rgb(0 0 0 / .18) 51%, rgb(255 255 255 / .06) 100%);
}
@media (min-width: 761px) {
  html[data-switch-style="aero"][data-aero-skin="star"] { --star-banner: 58px; --nav-h: 46px; }
}

/* ---------------------------------------------------------------- 顶栏：横幅 + 命令栏 */
@media (min-width: 761px) {
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav,
  html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav {
    top: calc(var(--star-gap) - var(--star-banner));
    height: var(--star-head);
    box-shadow: var(--star-outline), var(--star-hi), 0 10px 30px rgb(0 0 0 / .55);
  }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav::before,
  html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav::before {
    background:
      /* 命令栏：上半截亮、下半截暗的玻璃，下沿一道青色的光 */
      linear-gradient(180deg, rgb(255 255 255 / .2) 0, rgb(255 255 255 / .07) 48%, rgb(0 0 0 / .2) 50%, rgb(0 0 0 / .05) 100%) 0 100% / 100% calc(var(--nav-h) - 5px) no-repeat,
      radial-gradient(50% 100% at 50% 100%, rgb(110 200 255 / .28), transparent 75%) 0 100% / 100% calc(var(--nav-h) - 5px) no-repeat,
      /* 横幅和命令栏之间的分隔：一道黑线 + 一道亮线 */
      linear-gradient(rgb(0 0 0 / .85), rgb(0 0 0 / .85)) 0 calc(100% - var(--nav-h) + 5px) / 100% 1px no-repeat,
      linear-gradient(rgb(255 255 255 / .22), rgb(255 255 255 / .22)) 0 calc(100% - var(--nav-h) + 6px) / 100% 1px no-repeat,
      /* 横幅右边的极光光带 */
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%238fe3ff' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%23bff3ff' stop-opacity='.9'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='.2'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%234dffa8' stop-opacity='0'/%3E%3Cstop offset='.6' stop-color='%237dffb9' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23d0ffe6' stop-opacity='.1'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%232f8dff' stop-opacity='0'/%3E%3Cstop offset='.7' stop-color='%2358a8ff' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%239fd0ff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='f' x='-10%25' y='-60%25' width='120%25' height='220%25'%3E%3CfeGaussianBlur stdDeviation='3.2'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23f)' opacity='.9'%3E%3Cpath d='M40 62 C220 58 380 30 640 -6' stroke='url(%23b)' stroke-width='14' fill='none'/%3E%3Cpath d='M150 64 C300 52 450 26 640 8' stroke='url(%23g)' stroke-width='7' fill='none'/%3E%3C/g%3E%3Cpath d='M60 62 C240 56 400 28 640 -4' stroke='url(%23a)' stroke-width='1.6' fill='none'/%3E%3Cpath d='M120 63 C290 54 440 30 640 6' stroke='url(%23a)' stroke-width='1' fill='none' opacity='.8'/%3E%3Cpath d='M210 64 C350 52 490 32 640 20' stroke='url(%23g)' stroke-width='1.4' fill='none'/%3E%3Cpath d='M300 64 C420 56 540 40 640 34' stroke='url(%23a)' stroke-width='.8' fill='none' opacity='.7'/%3E%3C/svg%3E") 100% 0 / 62% var(--star-banner) no-repeat,
      radial-gradient(28% 90% at 86% 40%, rgb(120 255 200 / .22), transparent 70%) 0 0 / 100% var(--star-banner) no-repeat,
      radial-gradient(40% 120% at 18% -20%, rgb(140 210 255 / .32), transparent 70%) 0 0 / 100% var(--star-banner) no-repeat,
      var(--star-dark);
  }
  /* 横幅：徽标 + 标题占第一行，导航和按钮在第二行（命令栏） */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: var(--star-banner) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    height: 100%;
    padding: 0 12px 5px 14px;
  }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand { grid-column: 1 / -1; grid-row: 1; justify-self: start; align-self: center; margin-top: 0; gap: 12px; }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 2px; margin: 0; }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions { grid-column: 2; grid-row: 2; }
  /* 水晶球徽标 */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .logo {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    filter: none;
    background:
      radial-gradient(60% 38% at 50% 16%, rgb(255 255 255 / .95), rgb(255 255 255 / .3) 60%, rgb(255 255 255 / 0) 75%),
      radial-gradient(75% 50% at 50% 100%, rgb(120 230 255 / .95), rgb(120 230 255 / 0) 72%),
      radial-gradient(circle at 50% 45%, #3f9ae6 0%, #135ab0 55%, #062c66 100%);
    box-shadow:
      0 0 0 1px rgb(0 0 0 / .75),
      inset 0 0 0 2px rgb(210 240 255 / .75),
      inset 0 0 0 3px rgb(10 50 110 / .6),
      inset 0 -6px 10px rgb(80 210 255 / .45),
      0 0 14px rgb(90 190 255 / .75),
      0 2px 4px rgb(0 0 0 / .6);
    transition: box-shadow .25s ease, transform .25s ease;
  }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .logo img {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / .7)) brightness(1.15);
  }
  /* 球面上那块弯弯的高光盖在徽标图上面 */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .logo::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 6px;
    right: 6px;
    top: 3px;
    height: 46%;
    border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
    background: linear-gradient(180deg, rgb(255 255 255 / .78), rgb(255 255 255 / .08));
    pointer-events: none;
  }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand:hover .logo {
    transform: none;
    box-shadow:
      0 0 0 1px rgb(0 0 0 / .75),
      inset 0 0 0 2px rgb(230 250 255 / .9),
      inset 0 0 0 3px rgb(10 50 110 / .6),
      inset 0 -6px 12px rgb(110 230 255 / .7),
      0 0 22px rgb(120 210 255 / .95),
      0 2px 4px rgb(0 0 0 / .6);
  }
  /* 大号细体标题 + 倒影 */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .name {
    font-family: "Segoe UI Light", "Segoe UI", "Microsoft YaHei UI Light", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 29px;
    font-weight: 300;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 0 10px rgb(120 200 255 / .55), 0 1px 2px rgb(0 0 0 / .9);
    -webkit-box-reflect: below -13px linear-gradient(transparent 66%, rgb(255 255 255 / .3));
  }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .brand .ver {
    align-self: flex-end;
    margin-bottom: 9px;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgb(255 255 255 / .35);
    background: linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / .05) 50%, rgb(0 0 0 / .1) 51%, rgb(255 255 255 / .08));
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3);
  }
  /* 命令栏上的导航：彩色小图标 + 文字，悬停 / 当前页是一块发亮的玻璃 */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link,
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link:hover,
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link.active,
  html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav .nav-links .nav-link.active { height: 28px; padding: 0 10px 0 8px; gap: 6px; }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > a.nav-link::before,
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > .nav-group > .nav-link::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: var(--cmd-ic) center / 16px 16px no-repeat;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / .6));
  }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > a.nav-link[href="/"] { --cmd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237fd0ff'/%3E%3Cstop offset='1' stop-color='%231767c9'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23cfe0f2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3.5 7.5v6.5h9V7.5' fill='url(%23w)' stroke='%235c6f86' stroke-width='.8'/%3E%3Cpath d='M1 8.2L8 2l7 6.2' fill='none' stroke='url(%23r)' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Crect x='6.6' y='10' width='2.8' height='4' fill='%232a7ad8'/%3E%3C/svg%3E"); }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > .nav-group[data-group="1"] { --cmd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4f7fb'/%3E%3Cstop offset='1' stop-color='%239fb0c4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='2.5' y='1.5' width='11' height='4' rx='1' fill='url(%23s)' stroke='%234a5c72' stroke-width='.8'/%3E%3Crect x='2.5' y='6' width='11' height='4' rx='1' fill='url(%23s)' stroke='%234a5c72' stroke-width='.8'/%3E%3Crect x='2.5' y='10.5' width='11' height='4' rx='1' fill='url(%23s)' stroke='%234a5c72' stroke-width='.8'/%3E%3Ccircle cx='11.3' cy='3.5' r='.9' fill='%2338e05a'/%3E%3Ccircle cx='11.3' cy='8' r='.9' fill='%2338e05a'/%3E%3Ccircle cx='11.3' cy='12.5' r='.9' fill='%23ffb020'/%3E%3C/svg%3E"); }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > .nav-group[data-group="2"] { --cmd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='10.5' cy='4.6' r='2.6' fill='%23f0c090' stroke='%238a5a30' stroke-width='.6'/%3E%3Cpath d='M6.5 15c0-3.2 1.8-5 4-5s4 1.8 4 5z' fill='%23e07a20' stroke='%238a4a10' stroke-width='.6'/%3E%3Ccircle cx='5.2' cy='5.6' r='2.6' fill='%23f5cfa4' stroke='%238a5a30' stroke-width='.6'/%3E%3Cpath d='M1 15.5c0-3.3 1.9-5.2 4.2-5.2s4.2 1.9 4.2 5.2z' fill='%232f7fd8' stroke='%23164a8a' stroke-width='.6'/%3E%3C/svg%3E"); }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links > a.nav-link[href="/contact"] { --cmd-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fffbe8'/%3E%3Cstop offset='1' stop-color='%23f1d98a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1.5' y='3.5' width='13' height='9.5' rx='1' fill='url(%23m)' stroke='%239a7a2a' stroke-width='.8'/%3E%3Cpath d='M1.8 4l6.2 5 6.2-5' fill='none' stroke='%239a7a2a' stroke-width='.8'/%3E%3C/svg%3E"); }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link:hover,
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-group:hover > .nav-link,
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-links .nav-link.active,
  html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] header.nav .nav-links .nav-link.active {
    border-color: rgb(255 255 255 / .45);
    background: var(--jewel-smoke);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .45), 0 0 8px rgb(110 200 255 / .35);
  }
  /* 命令栏钉住后，把还露在上面的那一小条横幅裁掉（左右和下面放宽，留住投影；aero-chrome.js 负责加 .star-stuck） */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav.star-stuck {
    clip-path: inset(calc(var(--star-banner) - 6px) -24px -48px -24px round 7px 7px 0 0);
  }
  /* 命令栏上沿那道高光：从左扫到右（每 4.5 秒，换页 / 鼠标移上来时立即再扫） */
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav::after {
    top: calc(var(--star-banner) - 1px);
    left: 6px;
    right: 6px;
  }
}

/* ---------------------------------------------------------------- 顶栏右侧的按钮：水晶 / 宝石质感 */
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn,
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn:hover {
  height: 26px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1px solid rgb(0 0 0 / .7);
  color: #fff;
  font-size: 12.5px;
  text-shadow: 0 1px 2px rgb(0 0 0 / .85);
  background: var(--jewel-smoke);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38), 0 1px 0 rgb(255 255 255 / .12);
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn-primary,
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn-primary:hover {
  border-color: #062a5c;
  background: var(--jewel-blue);
  box-shadow: inset 0 0 0 1px rgb(200 240 255 / .65), 0 0 10px rgb(80 180 255 / .7);
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn:hover { filter: brightness(1.15) saturate(1.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 12px rgb(120 210 255 / .85); }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .nav-actions > .btn:active { filter: brightness(.88); }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .icon-btn { border-radius: 50%; }
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .icon-btn:hover {
  border-color: rgb(255 255 255 / .45);
  background: var(--jewel-smoke);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .35), 0 0 10px rgb(120 210 255 / .6);
}

/* ---------------------------------------------------------------- 主窗口：标题栏的宝石按钮 + 水晶后退 / 前进 */
html[data-switch-style="aero"][data-aero-skin="star"] .aero-chrome {
  padding: 0 9px 7px;
  box-shadow: var(--star-outline), inset 0 1px 0 rgb(255 255 255 / .6), inset 1px 0 0 rgb(255 255 255 / .4), inset -1px 0 0 rgb(255 255 255 / .4), 0 10px 30px rgb(0 0 0 / .45);
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-tb { height: 30px; }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-tb-title { font-size: 13px; }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-caps { margin-top: -1px; margin-right: -2px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-caps :is(i, button) {
  padding: 0;
  cursor: pointer;
  display: block;
  width: 28px;
  height: 20px;
  border-color: rgb(0 0 0 / .62);
  background:
    var(--cap-glyph) center / 11px 9px no-repeat,
    radial-gradient(80% 60% at 50% 100%, rgb(190 235 255 / .75), rgb(190 235 255 / 0) 70%),
    linear-gradient(180deg, rgb(255 255 255 / .75) 0, rgb(255 255 255 / .35) 48%, rgb(150 190 225 / .25) 50%, rgb(255 255 255 / .2) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6);
  transition: box-shadow .2s ease, background-color .2s ease;
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-caps :is(i, button):hover {
  background-color: rgb(80 170 255 / .55);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .85), inset 0 -4px 8px rgb(140 230 255 / .9);
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-caps :is(i, button).cls {
  width: 46px;
  border-color: #4a120a;
  background:
    var(--cap-glyph) center / 11px 9px no-repeat,
    radial-gradient(70% 70% at 50% 105%, rgb(255 190 120 / .95), rgb(255 150 90 / 0) 70%),
    linear-gradient(180deg, #f3b8a8 0%, #e0806a 46%, #c13b1f 50%, #d14d2e 100%);
  box-shadow: inset 0 0 0 1px rgb(255 210 200 / .6), 0 0 6px rgb(255 90 50 / .35);
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-caps :is(i, button).cls:hover {
  box-shadow: inset 0 0 0 1px rgb(255 230 220 / .85), inset 0 -5px 10px rgb(255 200 120 / .95), 0 0 12px rgb(255 90 50 / .75);
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-addr { height: 34px; gap: 7px; }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-navs { margin-left: 1px; }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-nav {
  width: 28px;
  height: 28px;
  border: 1px solid #0b2f63;
  background:
    var(--nav-glyph) center / 13px 13px no-repeat,
    var(--jewel-blue);
  box-shadow: inset 0 0 0 1px rgb(210 240 255 / .7), 0 0 6px rgb(90 180 255 / .55), 0 1px 2px rgb(0 0 0 / .45);
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-nav.fwd {
  margin-left: -4px;
  border-color: #3a4c62;
  background:
    var(--nav-glyph) center / 13px 13px no-repeat,
    radial-gradient(70% 45% at 50% 14%, rgb(255 255 255 / .9), rgb(255 255 255 / .2) 60%, rgb(255 255 255 / 0) 72%),
    radial-gradient(85% 55% at 50% 100%, rgb(210 230 250 / .9), rgb(210 230 250 / 0) 70%),
    linear-gradient(180deg, #b9c9dc 0%, #7189a6 52%, #56708f 53%, #8aa2bf 100%);
  box-shadow: inset 0 0 0 1px rgb(240 248 255 / .6), 0 1px 2px rgb(0 0 0 / .4);
}
html[data-switch-style="aero"][data-aero-skin="star"] .aero-nav:hover { filter: brightness(1.12) saturate(1.2); box-shadow: inset 0 0 0 1px rgb(230 250 255 / .9), 0 0 12px rgb(110 200 255 / .95), 0 1px 2px rgb(0 0 0 / .45); }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-crumbs,
html[data-switch-style="aero"][data-aero-skin="star"] .aero-search input,
html[data-switch-style="aero"][data-aero-skin="star"] .aero-refresh { height: 26px; box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgb(255 255 255 / .35); }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-search button { height: 24px; }

/* ---------------------------------------------------------------- 主窗口客户区：上内边距、投影、上沿细阴影 */
html[data-switch-style="aero"][data-aero-skin="star"] #view.page {
  padding-top: 20px;
  box-shadow: var(--star-outline), 0 10px 30px rgb(0 0 0 / .5), inset 0 0 0 1px rgb(0 0 0 / .45), inset 0 1px 0 1px rgb(0 0 0 / .12), inset 0 3px 4px -2px rgb(0 40 90 / .25);
}
/* 首页第一行是钉住的命令栏，直接贴着地址栏 */
html[data-switch-style="aero"][data-aero-skin="star"] #view.page:has(> .page-view > .home-section-nav:first-child) { padding-top: 0; }
html[data-switch-style="aero"][data-aero-skin="star"] .aero-chrome { --gy: calc(var(--star-gap) * 2 + var(--star-head)); }
html[data-switch-style="aero"][data-aero-skin="star"] #view.page { --gy: calc(var(--star-gap) * 2 + var(--star-head) + 71px); }
html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav,
html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .section-nav.home-section-nav {
  height: 34px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .3) 0, rgb(255 255 255 / .1) 48%, rgb(255 255 255 / 0) 50%),
    radial-gradient(55% 150% at 80% 100%, rgb(120 215 255 / .45), transparent 62%),
    linear-gradient(#22648c, #0a3858);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .35);
}

/* ---------------------------------------------------------------- 工作区页面（文档、设置、管理台……）：侧栏和内容离开窗口边框 */
html[data-switch-style="aero"][data-workspace-layout="edge"][data-aero-skin="star"] #view.page.workspace-page { padding: 8px; }
html[data-switch-style="aero"][data-aero-skin="star"][data-workspace-layout="edge"] .workspace-page .admin-directory {
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .25), inset 0 0 0 1px rgb(255 255 255 / .18), inset 0 1px 0 rgb(255 255 255 / .35), 0 2px 6px rgb(0 0 0 / .3);
}
/* 固定高度的工作区：#app 是不滚动的盒子，sticky 顶栏在里面会多往下挪一个内边距、压住下面的窗口，
   窗口高度也没算上 Aero 的窗口缝隙和地址栏，底边被裁掉。这里让顶栏就地摆放，按实际高度算窗口。 */
html[data-switch-style="aero"][data-aero-skin="star"][data-workspace-layout="edge"] body.workspace-fixed header.nav { position: relative; top: 0; }
html[data-switch-style="aero"][data-aero-skin="star"][data-workspace-layout="edge"] body.workspace-fixed #view.workspace-page {
  height: calc(100dvh - var(--star-gap) * 3 - var(--star-head) - 71px);
}
@media (max-width: 760px) {
  html[data-switch-style="aero"][data-aero-skin="star"][data-workspace-layout="edge"] body.workspace-fixed #view.workspace-page { height: calc(100dvh - var(--star-head) - 63px); }
  html[data-switch-style="aero"][data-workspace-layout="edge"][data-aero-skin="star"] #view.page.workspace-page { padding: 4px; }
  html[data-switch-style="aero"][data-aero-skin="star"] #view.page { padding-top: 14px; }
  html[data-switch-style="aero"][data-aero-skin="star"] .aero-chrome { padding: 0 6px 5px; }
}

/* ---------------------------------------------------------------- 窄屏：窗口最大化 */
@media (max-width: 760px) {
  html[data-switch-style="aero"][data-aero-skin="star"] { --aero-win: 100vw; --star-gap: 0px; --nav-h: 50px; }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav { top: 0; border-radius: 0; }
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav::before { inset: 3px; }
  html[data-switch-style="aero"][data-aero-skin="star"] .aero-chrome { border-radius: 0; padding: 0 6px 5px; }
  html[data-switch-style="aero"][data-aero-skin="star"] :is(.aero-caps, .aero-search, .aero-refresh) { display: none; }
  html[data-switch-style="aero"][data-aero-skin="star"] #view.page { border-width: 0 4px 4px; border-radius: 0; padding-inline: 16px; }
  html[data-switch-style="aero"][data-aero-skin="star"] .section-nav.home-section-nav,
  html[data-switch-style="aero"][data-aero-skin="star"][data-theme="dark"] .section-nav.home-section-nav { top: var(--nav-h); margin: 0 -16px; }
  html[data-switch-style="aero"][data-aero-skin="star"] #foot.footer { border-radius: 0; margin: 0; }
}
@media (max-width: 760px) and (min-width: 0) {
  html[data-switch-style="aero"][data-aero-skin="star"] .aero-tb { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav::after,
  html[data-switch-style="aero"][data-aero-skin="star"] header.nav.glint-b::after { animation: none; opacity: 0; }
}

/* 窗口全屏：Aero 的几扇窗口都铺满浏览器，窗口之间不留缝，没有圆角和左右边框 */
html[data-switch-style="aero"][data-aero-skin="star"][data-desk-width="full"] { --aero-win: 100vw; --star-gap: 0px; }
html[data-switch-style="aero"][data-aero-skin="star"][data-desk-width="full"] header.nav { border-radius: 0; }
html[data-switch-style="aero"][data-aero-skin="star"][data-desk-width="full"] .aero-chrome { border-radius: 0; }
html[data-switch-style="aero"][data-aero-skin="star"][data-desk-width="full"] #view.page { border-width: 0 0 7px; border-radius: 0; --gx: 0px; }
html[data-switch-style="aero"][data-aero-skin="star"][data-desk-width="full"] #foot.footer { border-radius: 0; margin: 0; }

/* ---------------------------------------------------------------- 每张壁纸的宽高比与平均色（玻璃对齐、壁纸用完处的渐变色） */
html[data-switch-style="aero"][data-aero-wall="img10"] { --wall-avg: #d21a02; }
html[data-switch-style="aero"][data-aero-wall="img16"] { --wall-avg: #72809c; }
html[data-switch-style="aero"][data-aero-wall="img17"] { --wall-avg: #5f3522; }
html[data-switch-style="aero"][data-aero-wall="img19"] { --wall-avg: #78a765; }
html[data-switch-style="aero"][data-aero-wall="img20"] { --wall-avg: #a78767; }
html[data-switch-style="aero"][data-aero-wall="img21"] { --wall-avg: #7a9398; }
html[data-switch-style="aero"][data-aero-wall="img22"] { --wall-avg: #686158; }
html[data-switch-style="aero"][data-aero-wall="img23"] { --wall-avg: #1c504a; }
html[data-switch-style="aero"][data-aero-wall="img24"] { --wall-avg: #309d7f; }
html[data-switch-style="aero"][data-aero-wall="img25"] { --wall-avg: #b25d65; }
html[data-switch-style="aero"][data-aero-wall="img26"] { --wall-avg: #eac134; }
html[data-switch-style="aero"][data-aero-wall="img27"] { --wall-avg: #449d67; }
html[data-switch-style="aero"][data-aero-wall="img28"] { --wall-avg: #96a4c3; }
html[data-switch-style="aero"][data-aero-wall="img29"] { --wall-avg: #6ea6ac; }
html[data-switch-style="aero"][data-aero-wall="img5"] { --wall-avg: #348ccd; }
html[data-switch-style="aero"][data-aero-wall="img6"] { --wall-avg: #77b860; }
html[data-switch-style="aero"][data-aero-wall="win7-img0"] { --wall-ar: 1.6; --wall-avg: #1992e4; }
html[data-switch-style="aero"][data-aero-wall="ds-1337"] { --wall-ar: 1.7778; --wall-avg: #51ab7e; }
html[data-switch-style="aero"][data-aero-wall="ds-1999"] { --wall-ar: 1.7778; --wall-avg: #202633; }
html[data-switch-style="aero"][data-aero-wall="ds-7997"] { --wall-ar: 1.7778; --wall-avg: #7fa699; }
html[data-switch-style="aero"][data-aero-wall="ds-7999"] { --wall-ar: 1.7778; --wall-avg: #8f5313; }
html[data-switch-style="aero"][data-aero-wall="ds-8895"] { --wall-ar: 1.7778; --wall-avg: #51616f; }
html[data-switch-style="aero"][data-aero-wall="ds-8896"] { --wall-ar: 1.7778; --wall-avg: #2b3028; }
html[data-switch-style="aero"][data-aero-wall="ds-8897"] { --wall-ar: 1.7778; --wall-avg: #b17422; }
html[data-switch-style="aero"][data-aero-wall="ds-8898"] { --wall-ar: 1.7778; --wall-avg: #101a35; }
html[data-switch-style="aero"][data-aero-wall="ds-8899"] { --wall-ar: 1.7778; --wall-avg: #455030; }
html[data-switch-style="aero"][data-aero-wall="ds-8987"] { --wall-ar: 1.7778; --wall-avg: #5c4c4a; }
html[data-switch-style="aero"][data-aero-wall="ds-8988"] { --wall-ar: 1.7778; --wall-avg: #584240; }
html[data-switch-style="aero"][data-aero-wall="ds-8989"] { --wall-ar: 1.7778; --wall-avg: #5a6587; }
html[data-switch-style="aero"][data-aero-wall="ds-9898"] { --wall-ar: 1.7778; --wall-avg: #242316; }
html[data-switch-style="aero"][data-aero-wall="ds-9899"] { --wall-ar: 1.7778; --wall-avg: #ce7a13; }

/* ==========================================================================
   v1.36 · 右下角浮钮：特别空间 / Debug 模式的「日志 · 特别空间」二合一 / 回到顶部
   Windows Basic：Vista 开始按钮那样的玻璃圆钮；二合一 = IE7 / 资源管理器「后退 · 前进」那种连体玻璃按钮。
   Windows Aero：Windows 7 任务栏按钮——深色烟熏玻璃，悬停时从底部亮起窗口颜色的光。
   提示气泡统一成 Windows 7 的工具提示。
   ========================================================================== */
html[data-switch-style="aero"] :is(.admin-ai, .admin-ai-split, .to-top) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-shadow: none;
}
/* ---- Basic：玻璃圆钮 */
html[data-switch-style="aero"] .admin-ai {
  width: 46px;
  height: 46px;
  border: 1px solid rgb(0 0 0 / .62);
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .78) 0%, rgb(255 255 255 / .26) 47%, rgb(255 255 255 / 0) 50%),
    radial-gradient(75% 55% at 50% 100%, rgb(var(--aero-rgb) / .95), rgb(var(--aero-rgb) / 0) 78%),
    radial-gradient(circle at 50% 60%, #2c6fb2 0%, #12396a 70%, #0b2648 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), inset 0 -2px 6px rgb(0 0 0 / .25), 0 2px 8px rgb(0 0 0 / .45);
  transition: right .4s var(--spring), opacity .3s var(--ease), transform .4s var(--spring), visibility .3s, box-shadow .25s ease, filter .25s ease;
}
html[data-switch-style="aero"] .admin-ai svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .8)); }
html[data-switch-style="aero"] .admin-ai:hover {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .85) 0%, rgb(255 255 255 / .32) 47%, rgb(255 255 255 / 0) 50%),
    radial-gradient(80% 60% at 50% 100%, rgb(var(--aero-rgb) / 1), rgb(var(--aero-rgb) / 0) 82%),
    radial-gradient(circle at 50% 60%, #3a86d0 0%, #174a86 70%, #0e2f58 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .65), 0 0 14px 2px rgb(var(--aero-rgb) / .85), 0 2px 8px rgb(0 0 0 / .4);
  transform: none;
}
html[data-switch-style="aero"] .admin-ai:active { filter: brightness(.86); box-shadow: inset 0 2px 6px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .35); }
/* ---- Basic：连体玻璃按钮（左 日志 · 右 特别空间） */
html[data-switch-style="aero"] .admin-ai-split {
  height: 40px;
  padding: 0;
  gap: 0;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid rgb(0 0 0 / .62);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .75) 0%, rgb(255 255 255 / .25) 47%, rgb(255 255 255 / 0) 50%),
    linear-gradient(rgb(var(--aero-rgb) / .55), rgb(var(--aero-rgb) / .55)),
    linear-gradient(#2a66a6, #0f3463);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 2px 8px rgb(0 0 0 / .45);
}
html[data-switch-style="aero"] .admin-ai-split a {
  width: 46px;
  height: 38px;
  border-radius: 0;
  color: #fff;
  transition: background .2s ease, box-shadow .2s ease;
}
html[data-switch-style="aero"] .admin-ai-split a:first-child { border-radius: 19px 0 0 19px; }
html[data-switch-style="aero"] .admin-ai-split a:last-child { border-radius: 0 19px 19px 0; }
html[data-switch-style="aero"] .admin-ai-split .aa-ico svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .85)); }
html[data-switch-style="aero"] .admin-ai-split a:hover,
html[data-switch-style="aero"] .admin-ai-split a:focus-visible {
  color: #fff;
  background:
    radial-gradient(80% 75% at 50% 100%, rgb(var(--aero-rgb) / .95), rgb(var(--aero-rgb) / 0) 80%),
    linear-gradient(180deg, rgb(255 255 255 / .18), rgb(255 255 255 / 0) 50%);
  box-shadow: inset 0 0 8px rgb(255 255 255 / .35);
}
html[data-switch-style="aero"] .admin-ai-split a:active { background: linear-gradient(rgb(0 0 0 / .28), rgb(0 0 0 / .12)); box-shadow: inset 0 2px 4px rgb(0 0 0 / .5); }
html[data-switch-style="aero"] .admin-ai-split .aa-special { color: #fff; }
html[data-switch-style="aero"] .admin-ai-split .aa-sep {
  width: 2px;
  height: 100%;
  opacity: 1;
  background: linear-gradient(90deg, rgb(0 0 0 / .45) 0 1px, rgb(255 255 255 / .38) 1px 2px);
}
/* ---- 两种皮肤共用：Windows 7 工具提示 */
html[data-switch-style="aero"] :is(.admin-ai-tooltip, .admin-ai-split .aa-tip) {
  border-radius: 3px;
  border: 1px solid #767676;
  background: linear-gradient(180deg, #ffffff 0%, #e4e5f0 100%);
  color: #575757;
  box-shadow: 1px 2px 4px rgb(0 0 0 / .3);
  font-size: 12px;
  font-weight: 400;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html[data-switch-style="aero"][data-theme="dark"] :is(.admin-ai-tooltip, .admin-ai-split .aa-tip) { background: linear-gradient(180deg, #2c3541, #1f262f); border-color: #0b0e12; color: #dfe6ee; }

/* ---- Aero（StyleStar）：Windows 7 任务栏按钮 */
html[data-switch-style="aero"][data-aero-skin="star"] :is(.admin-ai, .admin-ai-split, .to-top) {
  border: 1px solid rgb(0 0 0 / .85);
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .24) 0%, rgb(255 255 255 / .07) 48%, rgb(0 0 0 / .16) 50%, rgb(0 0 0 / .04) 100%),
    radial-gradient(90% 60% at 50% 110%, rgb(var(--aero-rgb) / .35), transparent 70%),
    rgb(12 24 40 / .86);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), inset 0 1px 0 rgb(255 255 255 / .35), 0 3px 12px rgb(0 0 0 / .5);
}
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai { width: 48px; height: 44px; }
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai:hover,
html[data-switch-style="aero"][data-aero-skin="star"] .to-top:hover {
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .3) 0%, rgb(255 255 255 / .1) 48%, rgb(0 0 0 / .1) 50%, rgb(0 0 0 / 0) 100%),
    radial-gradient(85% 75% at 50% 100%, rgb(120 205 255 / .75), rgb(var(--aero-rgb) / .25) 60%, transparent 80%),
    rgb(16 34 56 / .9);
  border-color: rgb(0 0 0 / .9);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38), 0 0 12px rgb(110 200 255 / .55), 0 3px 12px rgb(0 0 0 / .5);
}
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split { height: 44px; padding: 3px; gap: 3px; }
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split a { width: 42px; height: 36px; border-radius: 4px; border: 1px solid transparent; }
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split a:first-child,
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split a:last-child { border-radius: 4px; }
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split a:hover,
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split a:focus-visible {
  border-color: rgb(255 255 255 / .35);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / .05) 48%, rgb(0 0 0 / .05) 50%),
    radial-gradient(90% 80% at 50% 100%, rgb(120 205 255 / .8), transparent 75%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .4), 0 0 8px rgb(110 200 255 / .5);
}
html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split .aa-sep { width: 1px; height: 26px; align-self: center; background: rgb(255 255 255 / .18); box-shadow: 1px 0 0 rgb(0 0 0 / .5); }
html[data-switch-style="aero"][data-aero-skin="star"] .to-top svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .8)); }
@media (max-width: 720px) {
  html[data-switch-style="aero"] .admin-ai { width: 42px; height: 42px; }
  html[data-switch-style="aero"] .admin-ai-split a { width: 40px; height: 36px; }
  html[data-switch-style="aero"][data-aero-skin="star"] .admin-ai-split a { width: 38px; height: 34px; }
}

/* ==========================================================================
   v1.36 · 服务器日志（内嵌窗口式）= 一扇 Aero 窗口
   玻璃边框 + 标题栏（标题在玻璃上，红色关闭按钮），正文是白色客户区。
   抽屉是 position: fixed，玻璃里的壁纸按它在视口中的位置摆放（不用 fixed 背景，不会拖慢滚动）。
   ========================================================================== */
html[data-switch-style="aero"] .log-drawer {
  --dw: min(760px, calc(100vw - 48px));
  --dh: min(60vh, 520px);
  --gx: calc(100vw - 24px - var(--dw));
  --gy: calc(100vh - 84px - var(--dh));
  padding: 0 7px 7px;
  border-radius: 8px;
  border: 1px solid rgb(0 0 0 / .72);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .42) 0, rgb(255 255 255 / .12) 34px, rgb(255 255 255 / 0) 90px),
    var(--aero-sheen),
    linear-gradient(rgb(var(--aero-rgb) / var(--aero-a)), rgb(var(--aero-rgb) / var(--aero-a))),
    linear-gradient(var(--aero-veil), var(--aero-veil)),
    var(--aero-glass-img) calc((100vw - var(--cover-w)) / 2 - var(--gx)) calc((100vh - var(--cover-h)) / 2 - var(--gy)) / var(--cover-w) var(--cover-h) no-repeat,
    var(--wall-avg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), 0 8px 34px rgb(0 0 0 / .55);
}
html[data-switch-style="aero"] .log-drawer-head {
  padding: 6px 0 7px 4px;
  border-bottom: 0;
  color: var(--aero-ink);
  text-shadow: var(--aero-glow);
}
html[data-switch-style="aero"] .log-drawer-title { font-size: 13px; font-weight: 400; display: inline-flex; align-items: center; gap: 7px; }
html[data-switch-style="aero"] .log-drawer-title::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background:
    linear-gradient(#fff, #fff) 3px 4px / 10px 1px no-repeat,
    linear-gradient(#fff, #fff) 3px 7px / 8px 1px no-repeat,
    linear-gradient(#fff, #fff) 3px 10px / 10px 1px no-repeat,
    linear-gradient(180deg, #4f8fd8, #1d4f91);
  border: 1px solid #12335c;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35);
}
html[data-switch-style="aero"] .log-drawer-actions { gap: 6px; align-self: flex-start; margin-top: -7px; }
html[data-switch-style="aero"] .log-drawer-link {
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgb(0 0 0 / .45);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  color: var(--aero-ink);
  text-shadow: var(--aero-glow);
  font-size: 12px;
  background: linear-gradient(180deg, rgb(255 255 255 / .5) 0, rgb(255 255 255 / .2) 49%, rgb(255 255 255 / .06) 50%, rgb(255 255 255 / .26) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4);
}
html[data-switch-style="aero"] .log-drawer-link:hover { text-decoration: none; background: linear-gradient(180deg, rgb(255 255 255 / .7) 0, rgb(255 255 255 / .38) 49%, rgb(255 255 255 / .2) 50%, rgb(255 255 255 / .4) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 8px rgb(255 255 255 / .6); }
html[data-switch-style="aero"] .log-drawer-close {
  width: 45px;
  height: 20px;
  border-radius: 0 0 5px 5px;
  border: 1px solid #5c1d14;
  border-top: 0;
  font-size: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23400' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px 9px no-repeat,
    linear-gradient(180deg, #e9a99c 0%, #d47e66 45%, #c4472b 46%, #d0573a 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
html[data-switch-style="aero"] .log-drawer-close:hover {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23400' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px 9px no-repeat,
    linear-gradient(180deg, #f5c0b2 0%, #e88d73 45%, #e0502e 46%, #ec7350 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 0 10px rgb(255 90 60 / .8);
}
html[data-switch-style="aero"] .log-drawer-body {
  padding: 10px 12px 12px;
  border: 1px solid rgb(0 0 0 / .45);
  background: var(--aero-client);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .35);
}
@media (max-width: 720px) {
  html[data-switch-style="aero"] .log-drawer {
    --dw: calc(100vw - 20px);
    --dh: min(58vh, 460px);
    --gx: 10px;
    --gy: calc(100vh - 78px - var(--dh));
  }
}
/* Aero（StyleStar）：深色玻璃标题，和顶栏工具栏一个调子 */
html[data-switch-style="aero"][data-aero-skin="star"] .log-drawer-head { --aero-ink: #fff; --aero-glow: 0 0 6px rgb(0 0 0 / .85), 0 1px 2px rgb(0 0 0 / .9); }
html[data-switch-style="aero"][data-aero-skin="star"] .log-drawer-title { font-size: 15px; font-weight: 300; }

/* ---------------------------------------------------------------- 设置页：Windows 主题的两个开关、DreamScene 分组 */
.desk-switches { display: grid; gap: 8px; }
.desk-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 10px);
  background: color-mix(in srgb, var(--surface-2, transparent) 60%, transparent);
}
.desk-switch-text { display: grid; gap: 3px; min-width: 0; }
.desk-switch-name { font-size: 14px; color: var(--text); }
.desk-switch-row .hint { margin: 0; }
.desk-switch-row .dsh-switch { flex: none; }
.desk-switches > .hint { margin: 2px 0 0; }
.desk-switches.is-idle .desk-switch-row { opacity: .72; }
.aero-picker-group {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
}
html[data-switch-style="aero"] .aero-picker-group { color: var(--aero-heading); border-bottom-color: var(--aero-group-line); }
.aero-wall-opt.is-dream::after {
  content: "动态";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgb(0 0 0 / .62);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.5;
}
.w2k-none-thumb { display: block; width: 100%; height: 96px; background: #3a6ea5; border: 1px solid rgb(0 0 0 / .35); }

/* 强调色色块（四个 Windows 主题共用；各主题在自己的 CSS 里再改成对应的样子） */
.desk-tint-row { flex-wrap: wrap; }
.desk-tint-row .desk-switch-text { flex: 1 1 240px; }
.desk-tints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.desk-tint-opt {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgb(0 0 0 / .35);
  border-radius: 4px;
  background: var(--swatch, #888);
  box-shadow: inset 0 1px rgb(255 255 255 / .45), inset 0 -8px 8px -6px rgb(0 0 0 / .25);
  cursor: pointer;
}
.desk-tint-opt.is-theme {
  width: auto;
  padding: 0 7px;
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: linear-gradient(135deg, #0a246a 0 33%, #2fbf2f 33% 66%, #37c22e 66%) 0 100% / 100% 4px no-repeat, var(--surface-2, #eee);
}
.desk-tint-custom { display: inline-flex; align-items: center; gap: 4px; }
.desk-tint-opt.is-custom { background: conic-gradient(from 90deg, #e0353a, #f08a00, #22a346, #2f7bf5, #8b55e0, #e5489b, #e0353a); }
.desk-tint-opt.is-custom[aria-checked="true"] { background: var(--custom, #2f7bf5); }
.desk-tint-custom input[type="color"] { width: 34px; height: 26px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-2, #fff); cursor: pointer; }
.desk-tint-opt[aria-checked="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.desk-tint-opt:focus-visible { outline: 2px dotted var(--text); outline-offset: 3px; }


/* ---------------------------------------------------------------- 窗口最小化 / 还原（Aero & Basic 共用基础 + Aero 皮肤外观） */
.win-nav-caps { display: none; }
html[data-switch-style="aero"][data-aero-skin="basic"] header.nav .win-nav-caps {
  display: inline-flex;
  align-items: center;
  order: 99;
  flex: none;
  margin-left: 6px;
}
html[data-switch-style="aero"][data-aero-skin="star"] header.nav .win-nav-caps { display: none; }
html[data-switch-style="aero"][data-aero-skin="basic"] header.nav .win-nav-caps .win-cap {
  width: 26px;
  height: 19px;
  padding: 0;
  border: 1px solid rgb(0 0 0 / .48);
  border-left-width: 0;
  cursor: pointer;
  background:
    var(--cap-glyph) center / 11px 9px no-repeat,
    linear-gradient(180deg, rgb(255 255 255 / .62) 0, rgb(255 255 255 / .24) 49%, rgb(255 255 255 / .08) 50%, rgb(255 255 255 / .26) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45);
}
html[data-switch-style="aero"][data-aero-skin="basic"] header.nav .win-nav-caps .win-cap.min {
  border-left-width: 1px;
  border-radius: 0 0 0 5px;
  --cap-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Crect x='1.5' y='5.5' width='8' height='2.6' fill='%23fff' stroke='%23233' stroke-width='.8'/%3E%3C/svg%3E");
}
html[data-switch-style="aero"][data-aero-skin="basic"] header.nav .win-nav-caps .win-cap.max {
  --cap-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Crect x='1.5' y='1' width='8' height='7' fill='none' stroke='%23233' stroke-width='2.6'/%3E%3Crect x='1.5' y='1' width='8' height='7' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
}
html[data-switch-style="aero"][data-aero-skin="basic"] header.nav .win-nav-caps .win-cap.cls {
  width: 42px;
  border-radius: 0 0 5px 0;
  --cap-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23400' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M2 1l7 7M9 1L2 8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background:
    var(--cap-glyph) center / 11px 9px no-repeat,
    linear-gradient(180deg, #e9a99c 0%, #d47e66 45%, #c4472b 46%, #d0573a 100%);
  border-color: #5c1d14;
}
html[data-switch-style="aero"][data-aero-skin="basic"] header.nav .win-nav-caps .win-cap:hover {
  filter: brightness(1.12);
}

html[data-switch-style="aero"] #app {
  transition: transform .36s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
  transform-origin: left bottom;
}
html[data-switch-style="aero"].win-minimized #app {
  transform: translate3d(-24vw, 42vh, 0) scale(0.12);
  opacity: 0;
  pointer-events: none;
}
html[data-switch-style="aero"].win-minimized .aurora::before,
html[data-switch-style="aero"].win-minimized .aurora::after {
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.win-min-dock[hidden] { display: none !important; }
html[data-switch-style="aero"] .win-min-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  max-width: min(300px, calc(100vw - 32px));
  padding: 0 14px 0 11px;
  border-radius: 6px;
  border: 1px solid rgb(255 255 255 / .52);
  background:
    linear-gradient(180deg, rgb(255 255 255 / .46) 0%, rgb(255 255 255 / .18) 49%, rgb(255 255 255 / .08) 50%, rgb(255 255 255 / .22) 100%),
    rgb(18 42 74 / .68);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .75), inset 0 0 0 1px rgb(0 0 0 / .28), 0 8px 24px rgb(0 0 0 / .45);
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / .8);
  font-size: 13px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
html[data-switch-style="aero"] .win-min-dock:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -6px 12px rgb(120 210 255 / .55), 0 10px 28px rgb(0 0 0 / .52);
  transform: translateY(-1px);
}
.win-min-dock-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.win-min-dock-hint { font-size: 11px; opacity: .78; flex: none; }
