/* ============================================================
   JC_基础.css —— 重置 / 开机屏 / 桌面 / 窗口 / 菜单 / 对话框
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --tb-h: 40px;
  --accent: #0078d7;
  --accent-soft: rgba(0,120,215,.22);
  --face: #f0f0f0;
  --face2: #e6e6e6;
  --hi: #fff;
  --sh: #a0a0a0;
  --line: #d0d0d0;
  --win-bg: #fff;
  --text: #111;
  --title-bg: #f5f5f5;
  --title-fg: #111;
  --tb-bg: #1f1f1f;
  --tb-fg: #fff;
  --start-bg: #f2f2f2;
  --start-fg: #111;
  --radius: 0px;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --font: "Segoe UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;
  --font-old: Tahoma,"Microsoft YaHei","SimSun","Noto Sans CJK SC",sans-serif;
  --font-mono: Consolas,"Courier New",monospace;
}

html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: #000;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: default; border: none; background: none; }
input, textarea { user-select: text; }
svg { display: block; }
.hidden { display: none !important; }
.fullscreen { position: absolute; inset: 0; z-index: 9000; }
.dim { opacity: .55; }

/* ============================================================
   开机：BIOS
   ============================================================ */
.bscreen {
  position: absolute; inset: 0; z-index: 9500;
  background: #000; color: #cfcfcf;
  font-family: var(--font-mono); font-size: 15px; line-height: 1.5;
  padding: 28px 40px; display: flex; flex-direction: column;
  letter-spacing: .3px;
}
.bios-head { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 16px; position: relative; }
.bios-logo {
  position: absolute; right: 0; top: -6px;
  border: 1px solid #3c6e3c; color: #7ec97e; padding: 2px 10px;
  font-size: 13px; letter-spacing: 1px;
}
.bios-brand { color: #fff; font-size: 17px; }
.bios-copy { color: #8a8a8a; font-size: 13px; }
.bios-body { flex: 1; font-size: 14px; }
.bios-row { color: #bdbdbd; white-space: pre-wrap; }
.bios-row b { color: #fff; font-weight: normal; }
.bios-gap { height: 12px; }
.bios-keys { color: #9fd39f; }
.bios-foot { border-top: 1px solid #333; padding-top: 8px; display: flex; justify-content: space-between; color: #8a8a8a; font-size: 13px; }
.bios-tip { color: #e8d27a; }
#biosMemOk { color: #7ec97e; }

/* ============================================================
   开机：启动管理器
   ============================================================ */
.bscreen.dark {
  background: #071426;
  padding: 0;
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center;
}
.bm-inner { width: 78%; max-width: 900px; color: #e8eef6; }
.bm-bar { width: 72px; height: 4px; background: #6fb3e8; margin-bottom: 14px; }
.bm-title { font-size: 24px; font-weight: 300; letter-spacing: .5px; }
.bm-sub { color: #9fb3c8; margin: 6px 0 22px; font-size: 13px; }
.bm-list { border-top: 1px solid #23405e; }
.bm-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-bottom: 1px solid #12283e;
  font-size: 15px; color: #c8d6e5; cursor: default;
}
.bm-item.sel { background: #12385c; color: #fff; }
.bm-arrow { width: 14px; color: #7fc4ff; font-size: 11px; }
.bm-name { flex: 0 0 220px; }
.bm-meta { font-size: 12px; color: #7f97ad; }
.bm-item.sel .bm-meta { color: #a8c8e8; }
.bm-help {
  margin-top: 26px; padding-top: 12px; border-top: 1px solid #23405e;
  font-size: 12.5px; color: #8fa8bf; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.bm-foot { margin-top: 18px; font-size: 12px; color: #6f8aa3; }

/* ============================================================
   OOBE
   ============================================================ */
.oobe { display: flex; align-items: center; justify-content: center; background: #dfe9f3; }
.ob-shell {
  width: 780px; max-width: 94vw; height: 560px; max-height: 92vh;
  background: #fff; display: flex; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  border-radius: 8px;
}
.ob-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ob-titlebar { padding: 12px 26px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #e2e8ee; color: #37475a; }
.ob-body { flex: 1; padding: 30px 42px; overflow: auto; }
.ob-foot {
  padding: 14px 26px; border-top: 1px solid #e6ebf0; background: #f7f9fb;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cfd8e3; }
.ob-dots i.on { background: var(--accent); }
.ob-btns { display: flex; gap: 10px; }
.ob-btns button {
  min-width: 92px; padding: 8px 16px; border-radius: 4px;
  border: 1px solid #b8c4d0; background: #fff; font-size: 13px;
}
.ob-btns button.ob-next { background: var(--accent); border-color: var(--accent); color: #fff; }
.ob-btns button.ob-next:disabled { opacity: .45; }
.ob-btns button:hover { filter: brightness(1.05); }

.ob-welcome { text-align: left; padding-top: 30px; }
.ob-welcome h1 { font-size: 34px; font-weight: 300; margin: 18px 0 10px; color: #1f2b3a; }
.ob-welcome p { color: #4a5a6b; font-size: 14px; line-height: 1.7; }
.ob-note { margin-top: 22px; color: #7b8a99; font-size: 12.5px; }
.ob-logo { height: 64px; }

.ob-license h2, .ob-account h2, .ob-theme h2, .ob-done h2 { font-size: 22px; font-weight: 400; margin-bottom: 6px; color: #1f2b3a; }
.ob-sub { color: #6b7b8c; font-size: 13px; margin-bottom: 16px; }
.ob-license-box {
  height: 230px; overflow: auto; border: 1px solid #d5dde6; background: #fbfcfd;
  padding: 14px 16px; font-size: 12.5px; line-height: 1.85; color: #3c4a5a;
}
.ob-license-box p { margin-bottom: 6px; }
.ob-dim { color: #8794a3; }
.ob-agree { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; }

.ob-form { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; align-items: center; max-width: 460px; }
.ob-form label { font-size: 13px; color: #4a5a6b; }
.ob-form input {
  padding: 8px 10px; border: 1px solid #c4cfda; border-radius: 4px; background: #fff; outline: none;
}
.ob-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ob-avatar { margin-top: 20px; }
.ob-avatar > span { font-size: 13px; color: #4a5a6b; }
.ob-avgrid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ob-av { width: 52px; height: 52px; border-radius: 50%; padding: 2px; border: 2px solid transparent; opacity: .75; }
.ob-av:hover { opacity: 1; }
.ob-av.on { border-color: var(--accent); opacity: 1; background: var(--accent-soft); }
.ob-av-upload { display: flex; align-items: center; justify-content: center; background: #eef3f8; color: #5b6b7b; cursor: pointer; overflow: hidden; position: relative; }
.ob-av-upload:hover { background: #e2ebf4; }
.ob-av-upload img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ob-av-plus { font-size: 26px; font-weight: 300; line-height: 1; }
.ob-avatar-tip { margin-top: 9px; font-size: 11.5px; color: #6b7c8d; }
.ob-avatar-tip button { color: #2f6fb5; text-decoration: underline; font-size: 11.5px; }
.avatar-img { display: block; object-fit: cover; border-radius: 50%; background: #fff; }

.ob-theme .ob-colors { display: flex; gap: 10px; margin: 18px 0 24px; flex-wrap: wrap; }
.ob-color { width: 44px; height: 44px; border-radius: 6px; border: 3px solid transparent; }
.ob-color.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.ob-preview { height: 120px; border-radius: 6px; background: var(--accent); position: relative; overflow: hidden; }
.ob-preview span { position: absolute; background: rgba(255,255,255,.85); border-radius: 3px; }
.ob-preview span:nth-child(1) { left: 16px; top: 18px; width: 150px; height: 12px; }
.ob-preview span:nth-child(2) { left: 16px; top: 40px; width: 90px; height: 10px; opacity: .6; }
.ob-preview span:nth-child(3) { right: 16px; top: 16px; width: 52px; height: 52px; border-radius: 50%; }
.ob-check { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; }

.ob-progress { height: 6px; background: #e3e9f0; border-radius: 3px; margin: 20px 0 18px; overflow: hidden; }
.ob-progress i { display: block; height: 100%; width: 8%; background: var(--accent); border-radius: 3px; }
.ob-list { list-style: none; font-size: 12.5px; color: #6b7b8c; line-height: 2; }
.ob-list li::before { content: "· "; color: var(--accent); }

/* --- 经典 OOBE --- */
.oobe-classic { background: #008080; }
.oobe-classic .ob-shell {
  background: #c0c0c0; border-radius: 0; box-shadow: 2px 2px 0 #000, inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  border: 1px solid #000; height: 520px;
}
.oobe-classic .ob-titlebar {
  background: linear-gradient(90deg,#000080,#1084d0); color: #fff; font-weight: bold;
  padding: 4px 8px; font-size: 12px; height: 22px; display: flex; align-items: center;
}
.oobe-classic .ob-body { background: #c0c0c0; padding: 24px 30px; }
.oobe-classic .ob-foot { background: #c0c0c0; border-top: 1px solid #808080; padding: 10px 16px; }
.oobe-classic .ob-btns button {
  border-radius: 0; background: #c0c0c0; border: 1px solid;
  border-color: #dfdfdf #000 #000 #dfdfdf; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
  padding: 4px 14px; min-width: 76px;
}
.oobe-classic .ob-btns button:active { border-color: #000 #dfdfdf #dfdfdf #000; box-shadow: none; }
.oobe-classic .ob-btns button.ob-next { background: #c0c0c0; color: #000; border-color: #dfdfdf #000 #000 #dfdfdf; }
.oobe-classic h1, .oobe-classic h2 { font-size: 18px; font-weight: bold; color: #000; }
.oobe-classic .ob-welcome p, .oobe-classic .ob-sub { color: #000; }
.oobe-classic .ob-form input { border-radius: 0; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; padding: 4px 6px; }
.oobe-classic .ob-license-box { background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080; border-radius: 0; height: 200px; }
.oobe-classic .ob-av { border-radius: 0; }
.oobe-classic .ob-dots i { border-radius: 0; width: 12px; height: 12px; background: #fff; border: 1px solid #808080; }
.oobe-classic .ob-dots i.on { background: #000080; }

/* --- XP OOBE --- */
.oobe-xp { background: linear-gradient(180deg,#0b4fa5 0%,#2f7cc4 55%,#79b9e6 100%); }
.oobe-xp .ob-shell { width: 820px; height: 580px; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ob-xp-side {
  width: 250px; background: linear-gradient(180deg,#0f4fa8,#3f8fd8);
  color: #fff; padding: 26px 22px; display: flex; flex-direction: column;
}
.ob-xp-brand { font-size: 22px; line-height: 1.25; font-weight: 300; }
.ob-xp-brand span { font-weight: 700; font-style: italic; color: #ffd34d; }
.ob-xp-steps { margin-top: auto; }
.ob-xp-steps div { font-size: 13px; padding: 7px 0; opacity: .55; border-top: 1px solid rgba(255,255,255,.18); }
.ob-xp-steps div.on { opacity: 1; font-weight: bold; }
.oobe-xp .ob-titlebar { display: none; }
.oobe-xp .ob-body { padding: 34px 40px; }
.oobe-xp .ob-foot { background: #f3f7fb; }
.oobe-xp .ob-btns button.ob-next { background: linear-gradient(#3f9be0,#1a5fb0); border: 1px solid #14487f; border-radius: 3px; }

/* --- Vista / 7 OOBE --- */
.oobe-vista { background: radial-gradient(circle at 50% 0%,#dff0ff,#a9cde8 40%,#6aa3cf 100%); }
.oobe-vista .ob-shell {
  width: 760px; height: 540px; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,20,40,.45), 0 0 0 1px rgba(255,255,255,.6) inset;
  background: rgba(250,252,255,.96);
}
.oobe-vista .ob-titlebar { color: #33506b; }

/* --- 8 / 10 / 11 OOBE --- */
.oobe-tiles { background: var(--accent); }
.oobe-tiles .ob-shell {
  background: transparent; box-shadow: none; width: 820px; height: 600px; color: #fff;
}
.oobe-tiles .ob-titlebar { color: rgba(255,255,255,.8); border-bottom-color: rgba(255,255,255,.2); }
.oobe-tiles .ob-body { padding: 10px 10px 0; }
.oobe-tiles .ob-foot { background: transparent; border-top-color: rgba(255,255,255,.18); }
.oobe-tiles .ob-dots i { background: rgba(255,255,255,.35); }
.oobe-tiles .ob-dots i.on { background: #fff; }
.oobe-tiles h1, .oobe-tiles h2 { color: #fff; font-weight: 300; }
.oobe-tiles p, .oobe-tiles .ob-sub { color: rgba(255,255,255,.82); }
.oobe-tiles .ob-btns button { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.oobe-tiles .ob-btns button.ob-next { background: #fff; color: #1c3d5a; border-color: #fff; }
.oobe-tiles .ob-form input { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.oobe-tiles .ob-form input::placeholder { color: rgba(255,255,255,.5); }
.oobe-tiles .ob-license-box { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.9); }
.oobe-tiles .ob-av.on { border-color: #fff; background: rgba(255,255,255,.2); }
.oobe-tiles .ob-preview { box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.oobe-tiles .ob-list { color: rgba(255,255,255,.75); }
.oobe-tiles .ob-color.on { box-shadow: 0 0 0 2px #fff; }

/* ============================================================
   登录
   ============================================================ */
.login { z-index: 9200; overflow: hidden; }

/* 经典登录框 */
.login-dialog { background: #008080; display: flex; align-items: center; justify-content: center; }
.lg-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%,#0a9a9a,#006666 70%); }
.lg-dialog {
  position: relative; width: 420px; background: #c0c0c0;
  border: 1px solid #000; box-shadow: 2px 2px 0 #000, inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}
.lg-d-title {
  height: 22px; background: linear-gradient(90deg,#000080,#1084d0); color: #fff;
  font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: space-between; padding: 0 6px;
}
.lg-d-title button { width: 16px; height: 14px; background: #c0c0c0; border: 1px solid; border-color: #dfdfdf #000 #000 #dfdfdf; font-size: 10px; line-height: 10px; color: #000; }
.lg-d-body { padding: 18px 20px; display: grid; grid-template-columns: 56px 1fr; gap: 10px 14px; }
.lg-d-logo { grid-row: span 2; }
.lg-d-fields { display: flex; flex-direction: column; gap: 4px; }
.lg-d-fields label { font-size: 12px; }
.lg-d-fields input { padding: 4px 6px; border: 1px solid; border-color: #808080 #fff #fff #808080; background: #fff; outline: none; font-size: 12px; }
.lg-d-hint { font-size: 11px; color: #404040; margin-top: 4px; }
.lg-d-btns { grid-column: 2; display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.lg-d-btns button { min-width: 70px; padding: 3px 10px; background: #c0c0c0; border: 1px solid; border-color: #dfdfdf #000 #000 #dfdfdf; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080; font-size: 12px; }

/* XP 欢迎屏 */
.login-welcome { background: linear-gradient(180deg,#0a4a9e 0%,#2f7cc4 50%,#7fc0ea 100%); color: #fff; }
.lg-xp { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lg-xp-top { height: 92px; border-bottom: 2px solid #ffb52e; display: flex; align-items: center; padding: 0 46px; background: linear-gradient(180deg,#0b3f8c,#1557a8); }
.lg-xp-logo { font-size: 26px; font-weight: 300; letter-spacing: .5px; }
.lg-xp-logo span { font-weight: 700; font-style: italic; color: #ffd34d; margin-left: 4px; }
.lg-xp-body { flex: 1; display: flex; }
.lg-xp-left { width: 46%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 70px; border-right: 1px solid rgba(255,255,255,.35); }
.lg-xp-hint { font-size: 15px; color: #eaf4ff; }
.lg-xp-right { flex: 1; display: flex; align-items: center; justify-content: center; }
.lg-xp-user { text-align: center; }
.lg-xp-av { width: 76px; height: 76px; margin: 0 auto 10px; border: 3px solid rgba(255,255,255,.75); border-radius: 6px; overflow: hidden; }
.lg-xp-name { font-size: 18px; margin-bottom: 12px; }
.lg-xp-pw { display: flex; gap: 4px; justify-content: center; }
.lg-xp-pw input { width: 170px; padding: 5px 8px; border-radius: 3px; border: 1px solid #7f9db9; outline: none; font-size: 13px; }
.lg-xp-pw button {
  width: 26px; border-radius: 3px; background: linear-gradient(#5cb832,#3d8b1e);
  color: #fff; border: 1px solid #2e6b14; font-size: 14px;
}
.lg-xp-foot { height: 56px; background: linear-gradient(180deg,#0b3f8c,#0a3577); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; font-size: 12px; color: #cfe3fb; }
.lg-xp-off { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); padding: 4px 12px; border-radius: 3px; font-size: 12px; }

/* 锁屏 */
.login-lock { background-size: cover; background-position: center; }
.lg-lock { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lg-lock-shade { position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.lg-clock { position: absolute; left: 62px; top: 48px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.lg-clock b { display: block; font-size: 64px; font-weight: 200; line-height: 1; }
.lg-clock span { display: block; font-size: 15px; margin-top: 6px; opacity: .9; }
.lg-lock-hint { position: absolute; left: 0; right: 0; bottom: 76px; text-align: center; color: rgba(255,255,255,.75); font-size: 12px; }
.lg-loginbox {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; color: #fff;
  opacity: 0; pointer-events: none; transition: .35s;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.lg-lock:not(.locked) .lg-loginbox { opacity: 1; pointer-events: auto; }
.lg-l-av { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.55); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.lg-l-name { font-size: 24px; font-weight: 300; margin: 14px 0 12px; }
.lg-l-pass { display: flex; gap: 0; }
.lg-l-pass input {
  width: 240px; padding: 9px 14px; border-radius: 20px 0 0 20px; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.9); color: #111; outline: none; font-size: 13px;
}
.lg-l-pass button {
  width: 44px; border-radius: 0 20px 20px 0; background: rgba(255,255,255,.9); color: #333;
  border: 1px solid rgba(255,255,255,.5); border-left: none; font-size: 16px;
}
.lg-l-hint { font-size: 12px; opacity: .75; margin-top: 10px; }
.lg-l-foot { position: absolute; right: 34px; bottom: 26px; }
.lg-l-foot button { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.25); color: #fff; display: flex; align-items: center; justify-content: center; }
.lg-lock.locked .lg-clock { opacity: 1; }
.lg-lock.static .lg-loginbox { opacity: 1; pointer-events: auto; }

/* 欢迎 */
.login-welcome { background: #000; }
.login.login-welcome { background: radial-gradient(circle at 50% 42%, #1b3a5c 0%, #0a1622 60%, #05090d 100%); }
.lg-welcome { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 12px; }
.lg-w-logo { margin-bottom: 8px; }
.lg-w-txt { font-size: 34px; font-weight: 200; letter-spacing: 3px; }
.lg-w-name { font-size: 14px; color: #9fc4e8; margin-top: 4px; }
.lg-w-spin { display: flex; gap: 6px; margin-top: 10px; }
.lg-w-spin i { width: 7px; height: 7px; border-radius: 50%; background: #7fc4ff; animation: wspin 1.1s infinite ease-in-out; }
.lg-w-spin i:nth-child(2) { animation-delay: .15s; }
.lg-w-spin i:nth-child(3) { animation-delay: .3s; }
.lg-w-spin i:nth-child(4) { animation-delay: .45s; }
@keyframes wspin { 0%,80%,100% { opacity: .2; transform: scale(.8);} 40% { opacity: 1; transform: scale(1.15);} }

.shake { animation: shake .38s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-9px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-6px)} 80%{transform:translateX(4px)} }

/* ============================================================
   关机 / 重启
   ============================================================ */
.power-off { background: #000; z-index: 9600; color: #fff; }
.po-old { font-family: var(--font-mono); font-size: 18px; color: #ffb000; text-align: center; margin-top: 34vh; }
.po-restart {
  position: absolute; left: 50%; bottom: 26vh; transform: translateX(-50%);
  font-family: var(--font-old); font-size: 13px; padding: 5px 18px;
  background: #c0c0c0; color: #000; border: 2px solid; border-color: #dfdfdf #000 #000 #dfdfdf;
}
.po-xp { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(180deg,#0a4a9e,#1b5da8); }
.po-logo { opacity: .9; }
.po-txt { font-size: 18px; font-weight: 300; color: #fff; }
.po-bar { width: 220px; height: 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; padding: 2px; }
.po-bar i { display: block; height: 100%; width: 30%; background: repeating-linear-gradient(90deg,#fff 0 10px,transparent 10px 14px); animation: pobar 1.6s infinite linear; }
@keyframes pobar { 0% { margin-left: -30%; } 100% { margin-left: 100%; } }
.po-modern { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #0a0a0a; }
.po-spin { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.18); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.po-black { position: absolute; inset: 0; background: #000; }
.po-power { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #666; }
.po-btn { width: 68px; height: 68px; border-radius: 50%; border: 2px solid #555; color: #ddd; display: flex; align-items: center; justify-content: center; }
.po-btn:hover { border-color: #8fc7ff; color: #fff; box-shadow: 0 0 24px rgba(120,190,255,.35); }

/* ============================================================
   桌面
   ============================================================ */
#desktop { position: absolute; inset: 0; overflow: hidden; }
#wall { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #0a2a4a; }
#icons { position: absolute; inset: 0 0 var(--tb-h) 0; z-index: 1; }
.dicon {
  position: absolute; width: 78px; min-height: 74px; padding: 3px 1px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: default; border: 1px solid transparent; touch-action: none;
}
.dicon-img { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); pointer-events: none; }
.dicon-label {
  font-size: 11.5px; line-height: 1.25; color: #fff; text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 4px rgba(0,0,0,.6);
  padding: 1px 3px; border-radius: 2px; max-width: 76px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dicon.sel .dicon-img { filter: drop-shadow(0 0 2px #fff) brightness(.82); }
.dicon.sel .dicon-label { background: rgba(10,60,150,.85); outline: 1px dotted rgba(255,255,255,.85); }
.os-win7 .dicon.sel .dicon-label, .os-vista .dicon.sel .dicon-label { background: rgba(120,190,255,.45); outline: 1px solid rgba(255,255,255,.7); }
.os-win10 .dicon.sel .dicon-label, .os-win11 .dicon.sel .dicon-label { background: rgba(0,120,215,.35); }
.dicon.dragging { opacity: .55; }
.dicon.drag-origin { opacity: 0; pointer-events: none; }
.dicon.drag-ghost { opacity: 1; pointer-events: none; cursor: grabbing; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.dicon.drop-target { border-color: rgba(130,195,255,.95); background: rgba(0,120,215,.22); border-radius: 4px; }
.dicon.drop-target .dicon-label { background: rgba(0,120,215,.78); outline: 1px dotted rgba(255,255,255,.9); }

#marquee { position: absolute; display: none; border: 1px solid rgba(120,190,255,.9); background: rgba(80,150,230,.25); z-index: 5; pointer-events: none; }

#snapPreview { position: fixed; display: none; z-index: 7000; background: rgba(120,190,255,.28); border: 1px solid rgba(160,210,255,.8); pointer-events: none; border-radius: 3px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tb-h) + 26px); transform: translate(-50%,14px);
  background: rgba(28,32,38,.92); color: #fff; padding: 9px 18px; border-radius: 4px;
  font-size: 12.5px; opacity: 0; pointer-events: none; transition: .22s; z-index: 9800;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: 70vw;
}
#toast.show { opacity: 1; transform: translate(-50%,0); }

/* ============================================================
   任务栏
   ============================================================ */
#taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb-h); z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--tb-bg); color: var(--tb-fg);
  font-family: var(--font); padding-right: 4px;
}
.tb-left { display: flex; align-items: center; height: 100%; flex: 1; min-width: 0; }
.tb-divider { width: 2px; height: 60%; margin: 0 3px; background: var(--sh); box-shadow: 1px 1px 0 var(--hi); }
#tbTasks { display: flex; align-items: center; gap: 2px; height: 100%; flex: 1; min-width: 0; overflow: hidden; padding: 0 3px; }
.tb-task {
  display: flex; align-items: center; gap: 6px; height: calc(var(--tb-h) - 8px);
  min-width: 0; max-width: 190px; padding: 0 9px; color: inherit; font-size: 12px;
  background: transparent; border: 1px solid transparent; overflow: hidden; white-space: nowrap;
}
.tb-task-t { overflow: hidden; text-overflow: ellipsis; }
.tb-task-ico { flex: 0 0 auto; display: flex; }
.tb-task.active { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.22); }
.tb-task.min { opacity: .75; }
.tb-tray { display: flex; align-items: center; gap: 6px; padding: 0 8px; height: 100%; flex: 0 0 auto; margin-left: auto; }
.tray-ico { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--tb-fg); opacity: .9; }
.tray-ico:hover { background: rgba(255,255,255,.16); border-radius: 2px; }
.tray-clock { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 10px 0 8px; font-size: 12px; line-height: 1.2; color: var(--tb-fg); height: 100%; }
.tray-date { font-size: 10.5px; opacity: .85; }
.tray-lang { font-size: 10px; border: 1px solid var(--tb-fg); padding: 0 2px; opacity: .8; }
.startbtn { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 10px; color: inherit; gap: 5px; }
.startbtn span { font-size: 13px; }
.starte-btn:hover { background: rgba(255,255,255,.14); }
.start-hot { position: absolute; left: 0; bottom: 0; width: 4px; height: 4px; z-index: 8001; }
.showdesk { width: 12px; height: 100%; border-left: 1px solid rgba(255,255,255,.25); background: transparent; }
.showdesk:hover { background: rgba(255,255,255,.2); }

.tb-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; height: 100%; max-width: 78%; }
.tb-center #tbTasks { flex: 0 1 auto; padding: 0; }
.tb-search, .tb-taskview { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: inherit; border-radius: 4px; }
.tb-searchbox { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 3px; background: rgba(255,255,255,.12); color: #cfd8e3; margin-right: 4px; }
.tb-searchbox em { font-style: normal; font-size: 12px; }
.tb-searchbox:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   开始菜单基础
   ============================================================ */
#startmenu {
  position: absolute; left: 0; bottom: var(--tb-h); z-index: 8500;
  background: var(--start-bg); color: var(--start-fg);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(10px); transition: opacity .16s, transform .16s;
  max-height: calc(100vh - var(--tb-h) - 10px);
  pointer-events: none;
}
#startmenu.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#startmenu.kind-tiles {
  left: 0; right: 0; top: 0; bottom: var(--tb-h); max-height: none;
  transform: none; opacity: 0; transition: opacity .2s;
  background: var(--accent); color: #fff; overflow: hidden;
}
#startmenu.kind-tiles.show { opacity: 1; }
#startmenu.kind-win11 { transform: translateX(-50%) translateY(26px) scale(.975); transform-origin: 50% 100%; }
#startmenu.kind-win11.show { transform: translateX(-50%) translateY(0) scale(1); }

/* ============================================================
   右键菜单 / 下拉菜单
   ============================================================ */
.ctx-menu, .dropdown {
  position: fixed; z-index: 9900; min-width: 170px;
  background: var(--face); color: var(--text);
  border: 1px solid var(--sh);
  box-shadow: 2px 2px 6px rgba(0,0,0,.35);
  padding: 2px; font-size: 12px;
}
.ctx-menu.modern, .dropdown { border-radius: 6px; padding: 4px; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 4px 16px 4px 12px; white-space: nowrap; cursor: default;
}
.dd-item:hover { background: var(--accent); color: #fff; }
.dd-item.disabled { color: #999; pointer-events: none; }
.dd-item.bold { font-weight: bold; }
.dd-item em { font-style: normal; font-size: 11px; opacity: .7; }
.dd-item.checked::before { content: "✓"; position: absolute; margin-left: -10px; }
.dd-sep { height: 1px; background: var(--sh); margin: 3px 2px; box-shadow: 0 1px 0 var(--hi); }

/* ============================================================
   窗口基础
   ============================================================ */
.win {
  position: absolute; display: flex; flex-direction: column;
  background: var(--win-bg); color: var(--text);
  box-shadow: var(--shadow);
  min-width: 220px; min-height: 120px;
  will-change: left, top, width, height;
}
.win.open { animation: winOpen .14s ease-out; }
@keyframes winOpen { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }
.win.closing { animation: winClose .12s ease-in forwards; }
@keyframes winClose { to { opacity: 0; transform: scale(.98); } }
.win.minimized { transform: scale(.85); opacity: 0; transition: .14s; }
.win.dragging, .win.resizing { transition: none; }
.win-tb {
  height: 30px; flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 0 4px 0 8px; background: var(--title-bg); color: var(--title-fg);
  user-select: none; cursor: default;
}
.win-ico { width: 16px; height: 16px; flex: 0 0 auto; display: flex; align-items: center; }
.win-title { flex: 1; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-btns { display: flex; gap: 2px; flex: 0 0 auto; }
.wbtn {
  width: 24px; height: 22px; display: flex; align-items: center; justify-content: center;
  color: var(--title-fg); border-radius: 2px;
}
.wbtn svg { width: 10px; height: 10px; }
.wbtn:hover { background: rgba(255,255,255,.22); }
.wbtn.wclose:hover { background: #e81123; color: #fff; }
.win-body { flex: 1; overflow: auto; position: relative; background: var(--win-bg); }
.win-status { flex: 0 0 auto; height: 23px; display: flex; align-items: center; gap: 14px; padding: 0 8px; font-size: 11px; background: var(--face); border-top: 1px solid var(--sh); color: var(--text); }
.rz { position: absolute; z-index: 20; }
.rz-n { top: -3px; left: 4px; right: 4px; height: 6px; cursor: n-resize; }
.rz-s { bottom: -3px; left: 4px; right: 4px; height: 6px; cursor: s-resize; }
.rz-e { right: -3px; top: 4px; bottom: 4px; width: 6px; cursor: e-resize; }
.rz-w { left: -3px; top: 4px; bottom: 4px; width: 6px; cursor: w-resize; }
.rz-ne { right: -3px; top: -3px; width: 8px; height: 8px; cursor: ne-resize; }
.rz-nw { left: -3px; top: -3px; width: 8px; height: 8px; cursor: nw-resize; }
.rz-se { right: -3px; bottom: -3px; width: 12px; height: 12px; cursor: se-resize; }
.rz-sw { left: -3px; bottom: -3px; width: 8px; height: 8px; cursor: sw-resize; }

/* ============================================================
   菜单栏 / 工具栏 / 状态栏（应用通用）
   ============================================================ */
.menubar { display: flex; align-items: center; height: 23px; background: var(--face); border-bottom: 1px solid var(--line); flex: 0 0 auto; padding: 0 2px; }
.mb-item { padding: 2px 9px; font-size: 12px; color: var(--text); border-radius: 2px; }
.mb-item:hover, .mb-item.on { background: var(--accent); color: #fff; }
.toolbar { display: flex; align-items: center; gap: 4px; padding: 3px 6px; background: var(--face); border-bottom: 1px solid var(--line); flex: 0 0 auto; flex-wrap: wrap; }
.tb-btn { display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 3px; font-size: 12px; color: var(--text); border: 1px solid transparent; }
.tb-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.tb-btn.on { background: var(--accent-soft); border-color: var(--accent); }
.tb-btn:disabled { opacity: .4; }
.tb-sep { width: 1px; height: 18px; background: var(--sh); margin: 0 3px; }
.statusbar { display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--text); }

/* ============================================================
   对话框 / 模态
   ============================================================ */
#modal { position: fixed; inset: 0; z-index: 9700; pointer-events: none; }
.overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; pointer-events: auto;
  opacity: 0; transition: .12s;
}
.overlay.show { opacity: 1; }
.overlay.closing { opacity: 0; }
.dlg {
  background: var(--face); color: var(--text); border: 1px solid var(--sh);
  box-shadow: 0 20px 60px rgba(0,0,0,.45); max-width: 92vw;
  border-radius: var(--radius);
  animation: dlgIn .14s ease-out;
}
@keyframes dlgIn { from { transform: translateY(8px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.dlg-tb {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 12.5px;
  background: var(--title-bg); color: var(--title-fg); font-weight: 600;
}
.dlg-ico { display: flex; }
.dlg-body { padding: 18px 20px; background: var(--win-bg); font-size: 13px; }
.msg-txt { line-height: 1.7; margin-bottom: 12px; white-space: normal; }
.dlg-input { width: 100%; padding: 6px 8px; border: 1px solid var(--sh); background: #fff; color: #111; outline: none; }
.dlg-input:focus { border-color: var(--accent); }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; background: var(--face); border-top: 1px solid var(--line); }
.dlg-btn {
  min-width: 78px; padding: 5px 14px; font-size: 12.5px;
  background: var(--face); color: var(--text); border: 1px solid var(--sh);
  border-radius: calc(var(--radius) / 2);
}
.dlg-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.dlg-btn:hover { filter: brightness(1.05); }

/* 文件对话框 */
.fd { height: 320px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.fd-bar { display: flex; gap: 6px; align-items: center; padding: 5px; background: var(--face); border-bottom: 1px solid var(--line); }
.fd-bar button { padding: 3px 8px; border: 1px solid var(--sh); background: var(--face2); font-size: 12px; }
.fd-path { flex: 1; font-size: 12px; padding: 3px 8px; background: #fff; color: #111; border: 1px solid var(--sh); overflow: hidden; white-space: nowrap; }
.fd-list { flex: 1; overflow: auto; background: #fff; color: #111; }
.fd-row { display: grid; grid-template-columns: 24px 1fr 90px; align-items: center; gap: 6px; padding: 4px 8px; font-size: 12.5px; }
.fd-row:hover { background: #e8f2fd; }
.fd-row.sel { background: #cfe6fb; }
.fd-sz { text-align: right; color: #6a7683; font-size: 11px; }
.fd-empty { padding: 30px; text-align: center; color: #8a96a3; }
.fd-foot { display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--face); border-top: 1px solid var(--line); font-size: 12px; }
.fd-name { flex: 1; padding: 3px 6px; border: 1px solid var(--sh); background: #fff; color: #111; }

/* ============================================================
   飞窗
   ============================================================ */
#flyout { position: absolute; z-index: 8600; display: none; }
#flyout.show { display: block; }
.flyout {
  background: rgba(30,34,40,.96); color: #eee; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 40px rgba(0,0,0,.45); border-radius: 6px; padding: 10px;
}
.calendar-flyout { width: 290px; background: rgba(40,44,52,.98); }
.cf-time { font-size: 26px; font-weight: 300; }
.cf-date { font-size: 12px; color: #a8b4c2; margin-bottom: 10px; }
.cf-month { text-align: center; font-size: 12px; margin: 6px 0; color: #cfd8e3; }
.cf-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; text-align: center; font-size: 11px; }
.cf-grid b { color: #8ea0b4; font-weight: normal; padding: 3px 0; }
.cf-grid span, .cf-grid i { display: block; padding: 4px 0; border-radius: 3px; font-style: normal; }
.cf-grid span:hover { background: rgba(255,255,255,.14); }
.cf-grid .today { background: var(--accent); color: #fff; }
.cf-foot { font-size: 10px; color: #7f8b99; text-align: center; margin-top: 8px; }
.vol-flyout { width: 260px; }
.vf-title { font-size: 12px; color: #cfd8e3; margin-bottom: 8px; }
.vf-row { display: flex; align-items: center; gap: 8px; }
.vf-row input { flex: 1; }
.vf-num { width: 28px; text-align: right; font-size: 12px; }
.vf-app { margin-top: 10px; font-size: 11px; color: #9aa6b4; border-top: 1px solid rgba(255,255,255,.12); padding-top: 6px; }
.search-flyout { width: 420px; padding: 0; overflow: hidden; }
.sf-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sf-box input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 13px; }
.sf-res { max-height: 320px; overflow: auto; padding: 6px; }
.sf-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 4px; font-size: 12.5px; }
.sf-item:hover { background: rgba(255,255,255,.14); }
.sf-none { padding: 16px 12px; color: #9aa6b4; font-size: 12px; }
.taskview { width: 620px; padding: 14px; }
.tv-title { font-size: 13px; margin-bottom: 10px; color: #cfd8e3; }
.tv-grid { display: flex; gap: 10px; min-height: 120px; flex-wrap: wrap; }
.tv-card { width: 140px; height: 110px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #eee; }
.tv-card:hover { background: rgba(255,255,255,.16); }
.tv-card b { font-size: 11px; font-weight: normal; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-none { color: #8b97a5; font-size: 12px; }
.tv-actions { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.tv-new { font-size: 12px; color: #9fc4e8; }
.notif-flyout { width: 320px; }
.nf-title { font-size: 13px; margin-bottom: 6px; }
.nf-item { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.nf-item b { display: block; margin-bottom: 3px; }
.nf-item span { color: #a8b4c2; }
.nf-empty { padding: 14px; text-align: center; color: #7f8b99; font-size: 11px; }

/* 8 的超级按钮栏 */
.charms { position: absolute; right: 0; top: 0; bottom: var(--tb-h); width: 86px; z-index: 8300; transform: translateX(100%); transition: transform .2s; background: #1e1e1e; }
.charms.show { transform: none; }
.charms-bar { display: flex; flex-direction: column; gap: 6px; padding: 40px 6px; }
.charms-bar button { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; font-size: 10px; padding: 10px 0; }
.charms-bar button:hover { background: rgba(255,255,255,.12); }

/* 运行对话框 */
.run-row { display: flex; align-items: center; gap: 8px; }
.run-row span { flex: 0 0 auto; }
.run-in { flex: 1; padding: 6px 8px; border: 1px solid var(--sh); background: #fff; color: #111; outline: none; }
.run-tip { margin-top: 10px; font-size: 11px; color: #7a8694; }

/* 属性表 */
.props-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.props-head b { font-size: 14px; }
.props table, .cp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.props td, .cp-table td, .cp-table th { padding: 5px 8px; border-bottom: 1px solid #e6ebf0; text-align: left; vertical-align: top; }
.props td:first-child, .cp-table td:first-child { color: #5b6b7b; width: 96px; }
.cp-table th { color: #5b6b7b; font-weight: normal; border-bottom: 1px solid #cfd8e3; }

/* 电源菜单 */
.power-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-user { grid-column: span 2; font-size: 13px; color: #5b6b7b; margin-bottom: 4px; }
.power-menu button { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #d5dde6; border-radius: 4px; background: #fafcfe; font-size: 12.5px; }
.power-menu button:hover { border-color: var(--accent); background: #f0f7ff; }

/* 滚动条（现代主题更细） */
::-webkit-scrollbar { width: 15px; height: 15px; }
::-webkit-scrollbar-track { background: #f0f0f0; border-left: 1px solid #d8d8d8; }
::-webkit-scrollbar-thumb { background: #c7c7c7; border: 3px solid #f0f0f0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
::-webkit-scrollbar-corner { background: #f0f0f0; }
.os-win10 ::-webkit-scrollbar, .os-win11 ::-webkit-scrollbar { width: 10px; height: 10px; }
.os-win10 ::-webkit-scrollbar-track, .os-win11 ::-webkit-scrollbar-track { background: transparent; border: none; }
.os-win10 ::-webkit-scrollbar-thumb, .os-win11 ::-webkit-scrollbar-thumb { background: #9aa3ad; border: 2px solid transparent; background-clip: padding-box; }
