/* ============================================================
   姒涙垵銇囬悳?OS 閳?閺嶅嘲绱＄悰?   闂嗘湹绶风挧?璺?閻滆崵鎷戦幏鐔糕偓?璺?閸欘垱瀚嬮幏鐣岀崶閸?   ============================================================ */

:root{
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --win-bg: rgba(20, 22, 32, .72);
  --win-border: rgba(255,255,255,.13);
  --text: #e9edf6;
  --text-dim: rgba(233,237,246,.62);
  --radius: 14px;
  --sb-h: 30px;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05060a;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
               "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button{ font-family: inherit; }
::selection{ background: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ---------- 閼冲本娅欓敍姘€崗?---------- */
#aurora{
  position: fixed; inset: -25%;
  z-index: 0; filter: blur(70px) saturate(140%);
  opacity: .85; pointer-events: none;
}
#aurora i{
  position: absolute; display: block; border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite;
  will-change: transform;
}
#aurora .b1{ width: 55vw; height: 55vw; left: 5%;  top: 8%;   background: radial-gradient(circle, #0ea5e9 0%, transparent 65%); }
#aurora .b2{ width: 50vw; height: 50vw; right: 2%; top: 0;    background: radial-gradient(circle, #7c3aed 0%, transparent 65%); animation-delay: -6s; }
#aurora .b3{ width: 48vw; height: 48vw; left: 25%; bottom: -12%; background: radial-gradient(circle, #14b8a6 0%, transparent 65%); animation-delay: -12s; }
#aurora .b4{ width: 40vw; height: 40vw; right: 8%; bottom: 2%; background: radial-gradient(circle, #db2777 0%, transparent 68%); animation-delay: -17s; }

@keyframes drift{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  33%    { transform: translate3d(4vw,-3vw,0) scale(1.12); }
  66%    { transform: translate3d(-3vw,3vw,0) scale(.94); }
}

.vignette{
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(3,4,8,.82) 100%);
}

body[data-wall="dusk"] #aurora .b1{ background: radial-gradient(circle, #f97316 0%, transparent 65%); }
body[data-wall="dusk"] #aurora .b2{ background: radial-gradient(circle, #db2777 0%, transparent 65%); }
body[data-wall="dusk"] #aurora .b3{ background: radial-gradient(circle, #7c3aed 0%, transparent 65%); }
body[data-wall="dusk"] #aurora .b4{ background: radial-gradient(circle, #f59e0b 0%, transparent 68%); }

body[data-wall="mono"] #aurora{ opacity: .28; filter: blur(90px) grayscale(1); }
body[data-wall="mono"] .vignette{ background: radial-gradient(ellipse at 50% 45%, transparent 20%, rgba(0,0,0,.9) 100%); }

/* ---------- 閺勭喓鈹?---------- */
#stars{ position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ---------- 閻樿埖鈧焦鐖?---------- */
#statusbar{
  position: fixed; top: 0; left: 0; right: 0; height: var(--sb-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 9000;
  font-size: 12.5px; color: rgba(255,255,255,.86);
  background: linear-gradient(to bottom, rgba(8,10,18,.62), rgba(8,10,18,.18));
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  user-select: none;
}
.sb-left, .sb-right{ display: flex; align-items: center; gap: 10px; }
.sb-logo{ color: var(--accent); font-size: 13px; }
.sb-left strong{ font-weight: 600; letter-spacing: .3px; }
.menus{ display: flex; gap: 2px; margin-left: 6px; }
.menus button{
  background: none; border: 0; color: rgba(255,255,255,.62);
  font-size: 12.5px; padding: 3px 8px; border-radius: 6px; cursor: pointer;
}
.menus button:hover{ background: rgba(255,255,255,.12); color: #fff; }
.sb-right{ gap: 12px; }
#wifi svg, #battery svg{ display: block; opacity: .9; }
#clock{ font-variant-numeric: tabular-nums; letter-spacing: .2px; }

/* ---------- 濡楀矂娼?---------- */
#desktop{ position: fixed; inset: var(--sb-h) 0 0 0; z-index: 5; }

#desktop-icons{
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.desk-icon{
  width: 88px; padding: 9px 4px 8px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; transition: background .16s ease, transform .16s ease;
  border: 1px solid transparent;
}
.desk-icon:hover{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.desk-icon:active{ transform: scale(.96); }
.desk-icon .glyph{
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.22);
}
.desk-icon .glyph svg{ width: 24px; height: 24px; }
.desk-icon span{
  font-size: 11.5px; line-height: 1.2; text-align: center;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 4px rgba(0,0,0,.75);
  max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

#hint{
  position: absolute; left: 24px; bottom: 96px;
  font-size: 12px; color: rgba(255,255,255,.4);
  letter-spacing: .3px; user-select: none;
  transition: opacity .6s ease;
}

/* ---------- Dock ---------- */
#dock{
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 10px;
  padding: 10px 14px; border-radius: 22px; z-index: 9100;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
}
.dock-item{
  position: relative; width: 52px; height: 52px; border: 0; padding: 0;
  border-radius: 15px; cursor: pointer; background: none;
  transition: transform .24s cubic-bezier(.2,.9,.3,1.5);
  display: grid; place-items: center;
}
.dock-item:hover{ transform: translateY(-11px) scale(1.14); }
.dock-item:active{ transform: translateY(-4px) scale(1.02); }
.dock-item .glyph{
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.dock-item .glyph svg{ width: 25px; height: 25px; }
.dock-item .label{
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px);
  padding: 4px 9px; border-radius: 7px; font-size: 11.5px; white-space: nowrap;
  background: rgba(12,14,22,.9); border: 1px solid rgba(255,255,255,.14);
  color: #fff; opacity: 0; pointer-events: none; transition: .15s ease;
  backdrop-filter: blur(10px);
}
.dock-item:hover .label{ opacity: 1; transform: translateX(-50%) translateY(0); }
.dock-item .dot{
  position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0;
  transition: opacity .2s;
}
.dock-item.running .dot{ opacity: .9; }

/* ---------- 缁愭褰?---------- */
.window{
  position: fixed; display: flex; flex-direction: column;
  min-width: 300px; min-height: 170px;
  background: var(--win-bg);
  border: 1px solid var(--win-border);
  border-radius: var(--radius);
  box-shadow: 0 34px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  overflow: hidden;
  animation: winIn .16s ease-out;
  will-change: transform, left, top;
}
@keyframes winIn{
  from{ opacity: 0; transform: scale(.97) translateY(6px); }
  to  { opacity: 1; transform: none; }
}
/* 注意：这里不能写 animation:none —— 松手时移除 .dragging 会让 winIn 动画重播，窗口会闪一下 */
.window.dragging .titlebar{ cursor: default; }

.titlebar{
  flex: 0 0 42px; height: 42px;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,.015));
  border-bottom: 1px solid rgba(255,255,255,.07);
  cursor: default; user-select: none;
}
.lights{ display: flex; gap: 8px; flex: 0 0 auto; }
.lights i{
  width: 12px; height: 12px; border-radius: 50%; display: block; cursor: pointer;
  transition: filter .15s;
}
.lights i:hover{ filter: brightness(1.25); }
.lights .r{ background: #ff5f57; }
.lights .y{ background: #febc2e; }
.lights .g{ background: #28c840; }
.titlebar .title{
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.78); letter-spacing: .3px;
  margin-right: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.win-body{ flex: 1; overflow: auto; padding: 18px; position: relative; }
.win-body::-webkit-scrollbar{ width: 8px; height: 8px; }
.win-body::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.16); border-radius: 8px; }
.win-body::-webkit-scrollbar-track{ background: transparent; }

.resize{
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  cursor: nwse-resize; border-right: 2px solid rgba(255,255,255,.22);
  border-bottom: 2px solid rgba(255,255,255,.22);
  border-bottom-right-radius: var(--radius);
}

.window.max{
  left: 8px !important; top: 38px !important;
  width: calc(100vw - 16px) !important; height: calc(100vh - 118px) !important;
}

/* ---------- 闁氨鏁?UI ---------- */
h3{ margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.muted{ color: var(--text-dim); font-size: 12.5px; line-height: 1.7; }
.chip{
  display: inline-block; padding: 3px 9px; margin: 3px 4px 0 0;
  border-radius: 99px; font-size: 11.5px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
}
.btn{
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08);
  color: var(--text); padding: 7px 14px; border-radius: 9px; font-size: 12.5px; cursor: pointer;
  transition: .15s;
}
.btn:hover{ background: rgba(255,255,255,.16); }
.btn.primary{ background: var(--accent); border-color: transparent; color: #04231f; font-weight: 600; }
.btn.primary:hover{ filter: brightness(1.1); }

/* ---------- 閸忓厖绨?---------- */
.about{ display: flex; gap: 16px; align-items: flex-start; }
.avatar{
  width: 74px; height: 74px; flex: 0 0 74px; border-radius: 22px;
  display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #04231f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(45,212,191,.28);
}
.stats{ display: flex; gap: 22px; margin-top: 16px; }
.stats div b{ display: block; font-size: 19px; font-weight: 600; }
.stats div span{ font-size: 11px; color: var(--text-dim); }
.links{ margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.links a{
  text-decoration: none; color: var(--text); font-size: 12px;
  padding: 6px 12px; border-radius: 9px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
}
.links a:hover{ background: rgba(255,255,255,.15); }

/* ---------- 闂婂厖绠?---------- */
.player{ display: flex; flex-direction: column; height: 100%; min-height: 330px; }
.cover{
  width: 100%; aspect-ratio: 1/1; max-height: 190px; border-radius: 16px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: grid; place-items: center; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.cover::after{
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(45,212,191,.5), transparent 40%);
  animation: spin 8s linear infinite; opacity: .55;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.cover .note{ font-size: 44px; position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.track-info{ margin-top: 14px; text-align: center; }
.track-info b{ font-size: 15px; }
.track-info p{ margin: 3px 0 0; font-size: 12px; color: var(--text-dim); }
.bar{ height: 5px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 14px; overflow: hidden; }
.bar i{ display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.time{ display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); margin-top: 6px; font-variant-numeric: tabular-nums; }
.controls{ display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 12px; }
.ctrl{ width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.ctrl:hover{ background: rgba(255,255,255,.16); }
.ctrl.play{ width: 50px; height: 50px; background: var(--accent); color: #04231f; border: 0; font-size: 17px; }
.ctrl.play:hover{ filter: brightness(1.08); }
.eq{ display: flex; gap: 3px; align-items: flex-end; height: 16px; justify-content: center; margin-top: 10px; }
.eq i{ width: 3px; height: 30%; background: var(--accent); border-radius: 2px; opacity: .35; }
.eq i:nth-child(1){ height: 42%; }
.eq i:nth-child(2){ height: 72%; }
.eq i:nth-child(3){ height: 100%; }
.eq i:nth-child(4){ height: 58%; }
.eq i:nth-child(5){ height: 84%; }
.playing .eq i{ animation: bounce .9s ease-in-out infinite; opacity: 1; }
.eq i:nth-child(2){ animation-delay: .12s; }
.eq i:nth-child(3){ animation-delay: .24s; }
.eq i:nth-child(4){ animation-delay: .36s; }
.eq i:nth-child(5){ animation-delay: .48s; }
@keyframes bounce{ 0%,100%{ height: 25%; } 50%{ height: 100%; } }
.playlist{ margin-top: 14px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.playlist div{
  padding: 7px 10px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  display: flex; justify-content: space-between; color: rgba(255,255,255,.72);
}
.playlist div:hover{ background: rgba(255,255,255,.08); }
.playlist div.on{ color: var(--accent); background: rgba(45,212,191,.1); }

/* ---------- 閸氬牏瀹冲Ο鈩冨珯 ---------- */
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field{ display: flex; flex-direction: column; gap: 5px; }
.field label{ font-size: 11px; color: var(--text-dim); }
.field input, .field select{
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; outline: none;
}
.field input:focus, .field select:focus{ border-color: var(--accent); }
input[type="range"]{ accent-color: var(--accent); }
.seg{ display: flex; gap: 6px; }
.seg button{
  flex: 1; padding: 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-dim);
}
.seg button.on{ background: rgba(45,212,191,.18); border-color: var(--accent); color: var(--accent); }
.result{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.result div{ background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.result span{ display: block; font-size: 10.5px; color: var(--text-dim); margin-bottom: 3px; }
.result b{ font-size: 16px; font-variant-numeric: tabular-nums; }
.up{ color: #34d399; } .down{ color: #f87171; }
#contractChart{ width: 100%; height: 110px; margin-top: 12px; display: block; }

/* ---------- GMGN ---------- */
.gmgn-table{ width: 100%; border-collapse: collapse; font-size: 12px; }
.gmgn-table th{ text-align: left; color: var(--text-dim); font-weight: 400; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.gmgn-table td{ padding: 8px; border-bottom: 1px solid rgba(255,255,255,.05); font-variant-numeric: tabular-nums; }
.gmgn-table tr:hover td{ background: rgba(255,255,255,.04); }
.gmgn-table .sym{ font-weight: 600; }
.gmgn-table .sym i{ font-style: normal; font-size: 10px; color: var(--text-dim); margin-left: 5px; }
.spark{ width: 70px; height: 22px; }

/* ---------- 濞戝牊绉锋稊?---------- */
.m3{ display: flex; flex-direction: column; gap: 10px; height: 100%; }
.m3-head{ display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.m3-head b{ color: var(--accent); font-size: 15px; }
.m3-grid{
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  flex: 1; min-height: 260px;
}
.m3-cell{
  border-radius: 7px; cursor: pointer; transition: transform .12s, opacity .12s, box-shadow .12s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 6px rgba(0,0,0,.3);
}
.m3-cell:hover{ transform: scale(1.06); }
.m3-cell.sel{ box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255,255,255,.7); transform: scale(1.08); }
.m3-cell.boom{ animation: boom .18s ease-out forwards; }
@keyframes boom{ to{ transform: scale(.4); opacity: 0; } }

/* ---------- 閸︽澘娴?---------- */
.map-wrap{ position: relative; height: 100%; min-height: 320px; border-radius: 12px; overflow: hidden;
  background-color: rgba(8,12,20,.45);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(45,212,191,.10), transparent 65%),
    radial-gradient(rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  border: 1px solid rgba(255,255,255,.06);
}
.map-wrap svg.lines{ position: absolute; inset: 0; width: 100%; height: 100%; }
.map-wrap .node{
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  box-shadow: 0 0 0 0 rgba(45,212,191,.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(45,212,191,.5); }
  70%{ box-shadow: 0 0 0 16px rgba(45,212,191,0); }
  100%{ box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}
.map-wrap .node span{
  position: absolute; left: 18px; top: -4px; font-size: 11px; white-space: nowrap;
  color: rgba(255,255,255,.8); background: rgba(10,12,20,.7); padding: 2px 7px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
}
.map-info{
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(10,12,20,.82); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px 14px; font-size: 12px; color: var(--text-dim);
  backdrop-filter: blur(14px);
}
.map-info b{ color: #fff; font-size: 13px; }

/* ---------- 缂佸牏顏?---------- */
.term{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; color: #b8f5e9;
  background: rgba(0,0,0,.35); border-radius: 10px; padding: 12px;
  height: 100%; min-height: 300px; overflow: auto; display: flex; flex-direction: column;
}
.term-line{ white-space: pre-wrap; word-break: break-word; }
.term-line.err{ color: #fca5a5; }
#term-out{ flex: 1; overflow: auto; min-height: 0; }
#term-out::-webkit-scrollbar{ width: 6px; }
#term-out::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.16); border-radius: 6px; }
.term-input{ display: flex; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.07); }
.term-input span{ color: var(--accent); }
.term-input input{
  flex: 1; background: none; border: 0; outline: none; color: #e5fff9;
  font-family: inherit; font-size: inherit;
}

/* ---------- 鐠佸墽鐤?---------- */
.set-row{ display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.set-row:last-child{ border-bottom: 0; }
.swatches{ display: flex; gap: 8px; }
.sw{
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; border: 2px solid transparent;
}
.sw.on{ border-color: #fff; }
.wall-opts{ display: flex; gap: 10px; }
.wall-opt{
  width: 64px; height: 40px; border-radius: 8px; cursor: pointer; border: 2px solid transparent;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
}
.wall-opt.dusk{ background: linear-gradient(135deg, #f97316, #db2777); }
.wall-opt.mono{ background: linear-gradient(135deg, #4b5563, #111827); }
.wall-opt.on{ border-color: #fff; }

/* ---------- 閸氼垰濮╅悽濠氭桨 ---------- */
#boot{
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: #05060a;
  transition: opacity .55s ease, visibility .55s ease;
}
#boot.gone{ opacity: 0; visibility: hidden; }
.boot-inner{ display: flex; flex-direction: column; align-items: center; gap: 14px; }
.boot-mark{
  font-size: 46px; color: var(--accent);
  filter: drop-shadow(0 0 20px rgba(45,212,191,.75));
  animation: bootPulse 1.7s ease-in-out infinite;
}
@keyframes bootPulse{
  0%,100%{ opacity: .55; transform: scale(.94); }
  50%    { opacity: 1;   transform: scale(1.05); }
}
.boot-name{ font-size: 15px; letter-spacing: 5px; color: rgba(255,255,255,.82); text-indent: 5px; }
.boot-bar{ width: 186px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.boot-bar i{
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: bootLoad 1.45s ease forwards;
}
@keyframes bootLoad{ to{ width: 100%; } }
.boot-tip{ font-size: 11px; color: rgba(255,255,255,.35); letter-spacing: 1px; }

/* ---------- 閹靛婧€缁?---------- */
@media (max-width: 760px){
  #desktop-icons{
    position: static; display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; padding: 18px 14px; top: auto; right: auto;
  }
  #hint{
    display: block; position: static; margin: 6px 0 0;
    text-align: center; font-size: 11.5px; opacity: .5;
  }
  #statusbar .menus{ display: none; }
  #aurora{ filter: blur(58px) saturate(150%); opacity: .95; }
  #aurora .b1, #aurora .b2, #aurora .b3{ width: 82vh; height: 82vh; }
  #aurora .b4{ width: 62vh; height: 62vh; }
  .vignette{ background: radial-gradient(ellipse at 50% 34%, transparent 58%, rgba(3,4,8,.62) 100%); }
  .window{
    left: 6px !important; top: 40px !important;
    width: calc(100vw - 12px) !important;
    height: auto !important;
    max-height: calc(100vh - 158px) !important;
    border-radius: 14px;
  }
  .resize{ display: none; }
  #dock{
    gap: 5px; padding: 8px 10px; bottom: 8px;
    max-width: calc(100vw - 16px); overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  #dock::-webkit-scrollbar{ display: none; }
  .dock-item, .dock-item .glyph{ width: 42px; height: 42px; }
  .cover{ max-height: 150px; }
}

@media (prefers-reduced-motion: reduce){
  #aurora i, .cover::after, .map-wrap .node, .m3-cell, .dock-item{ animation: none !important; transition: none !important; }
}

/* ============================================================
   闁夸礁鐫?/ 鐏炲彉绗滄竟浣虹剨閿涘澊2閿?   ============================================================ */

/* 壁纸层 */
#wall{ position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #05060a; }

body[data-wall="dunes"] #wall{
  background:
    linear-gradient(180deg,
      #241339 0%,
      #331c43 14%,
      #452a52 28%,
      #5c3a5c 40%,
      #7a4f6b 52%,
      #96637c 62%,
      #b07e92 72%,
      #c49aab 82%,
      #b48d9f 90%,
      #9b7a8d 100%);
}

/* 静态壁纸 dunes：沙丘 */
#waves{ position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
body[data-wall="dunes"] #waves{ display: block; }

/* 极光 aurora / dusk 壁纸 */
#aurora{ display: none; }
body[data-wall="aurora"] #aurora,
body[data-wall="dusk"] #aurora{ display: block; }

body[data-wall="dunes"] .vignette{
  background: radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(16,6,26,.42) 100%);
}

#stars{ opacity: .9; }

/* ---------- 锁屏 ---------- */
#lock{
  position: fixed; inset: 0; z-index: 100;
  color: #fff;
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
body:not(.locked) #lock{ opacity: 0; transform: scale(1.03); visibility: hidden; pointer-events: none; }

#desktop{ transition: opacity .55s ease; }
#statusbar{ transition: opacity .55s ease; }
body.locked #desktop,
body.locked #statusbar{ opacity: 0; pointer-events: none; }

.lock-top{
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 13.5px; color: rgba(255,255,255,.94);
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.lt-left{ display: flex; align-items: center; gap: 10px; }
.lock-logo{ display: inline-flex; width: 21px; height: 21px; color: #fff; }
.lock-logo svg{ width: 21px; height: 21px; }
.lt-name{ font-weight: 600; letter-spacing: .4px; font-size: 14px; }

.lt-right{ display: flex; align-items: center; gap: 15px; }
.lt-bat{ display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.lt-bat i{
  position: relative; display: block; width: 25px; height: 12px;
  border: 1.5px solid rgba(255,255,255,.8); border-radius: 3.5px;
}
.lt-bat i::after{
  content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px;
  width: calc((100% - 4px) * var(--bat-level, 1));
  background: var(--bat-color, #30d158); border-radius: 1.5px;
}
.lt-ico{ display: inline-flex; opacity: .92; }
.lt-ico svg{ width: 17px; height: 17px; display: block; }
.lt-date{ font-variant-numeric: tabular-nums; }
.lt-time{ font-variant-numeric: tabular-nums; }

.lock-clock{
  position: absolute; left: 0; right: 0; top: 12.5%;
  text-align: center; user-select: none;
}
.lc-date{
  font-size: clamp(15px, 1.45vw, 21px); font-weight: 500; letter-spacing: .6px;
  color: rgba(255,255,255,.96); text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.lc-time{
  margin-top: 4px;
  font-size: clamp(86px, 12.6vw, 198px); font-weight: 500; line-height: 1.02;
  letter-spacing: -.022em; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 50px rgba(0,0,0,.3);
}

.lock-user{
  position: absolute; left: 0; right: 0; top: 62.5%;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
}
.lc-avatar{
  width: 94px; height: 94px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(140deg, #f4c95d, #e2893f);
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.38), inset 0 2px 10px rgba(255,255,255,.35);
  font-size: 44px; line-height: 1;
}
.lc-avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-name{
  font-size: 26px; font-weight: 600; letter-spacing: 1.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.lc-enter{
  margin-top: 8px; padding: 11px 36px; border-radius: 999px;
  font-size: 15px; color: #fff; cursor: pointer; letter-spacing: .5px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.3);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background .18s ease, transform .18s ease;
}
.lc-enter:hover{ background: rgba(255,255,255,.24); transform: translateY(-1px); }
.lc-enter:active{ transform: translateY(0) scale(.98); }

/* 濡楀矂娼伴幓鎰仛閸︺劍绁懝鎻掑寳娑撴ü绗傜憰浣藉厴閻绔?*/
#hint{ color: rgba(255,255,255,.7); text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* 鐠佸墽鐤嗛柌宀€娈戞竟浣虹剨妫板嫯顫?*/
.wall-opt.dunes{ background: linear-gradient(160deg, #331c43, #b07e92); }

/* 閹靛婧€缁旑垶鏀ｇ仦?*/
@media (max-width: 760px){
  .lock-top{ padding: 0 14px; font-size: 12.5px; }
  .lt-right{ gap: 10px; }
  .lt-date{ display: none; }
  .lc-time{ font-size: clamp(64px, 22vw, 120px); }
  .lc-date{ font-size: 14px; }
  .lock-clock{ top: 14%; }
  .lock-user{ top: 58%; }
  .lc-avatar{ width: 82px; height: 82px; font-size: 38px; }
  .lc-name{ font-size: 22px; }
  .lt-ico:nth-child(3){ display: none; }
}

/* ============================================================
   濞村懓澹婄粣妤€褰涙稉濠氼暯閿涘牆顕鎰斧缁旀瑱绱?   ============================================================ */
.window{
  background: rgba(250,250,252,.95);
  border: 1px solid rgba(0,0,0,.10);
  color: #1b1b1f;
  box-shadow: 0 32px 90px rgba(12,6,24,.45), inset 0 1px 0 rgba(255,255,255,.95);
}
.titlebar{
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.titlebar .title{ color: rgba(0,0,0,.6); font-weight: 500; }
.titlebar .titlebar{ border: 0; }
.win-body{ color: #1b1b1f; }
.muted{ color: #6b7280; }
.chip{ background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.08); color: #374151; }
.btn{ border-color: rgba(0,0,0,.13); background: rgba(0,0,0,.045); color: #1b1b1f; }
.btn:hover{ background: rgba(0,0,0,.09); }
.btn.primary{ background: #0f766e; border-color: #0f766e; color: #fff; }
.links a{ background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.08); color: #1b1b1f; }
.links a:hover{ background: rgba(0,0,0,.1); }
.field label{ color: #6b7280; }
.field input, .field select{ background: #fff; border-color: rgba(0,0,0,.13); color: #1b1b1f; }
.field input:focus, .field select:focus{ border-color: #0d9488; }
.seg button{ background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.1); color: #6b7280; }
.seg button.on{ background: rgba(13,148,136,.12); border-color: #0d9488; color: #0f766e; }
.result div{ background: #f5f6f8; border-color: rgba(0,0,0,.06); }
.result span{ color: #6b7280; }
.up{ color: #059669; } .down{ color: #dc2626; }
.win-body::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.18); }
.stats div span{ color: #6b7280; }

/* 闂婂厖绠?*/
.time{ color: #6b7280; }
.playlist{ border-top-color: rgba(0,0,0,.08); }
.playlist div{ color: #374151; }
.playlist div:hover{ background: rgba(0,0,0,.05); }
.playlist div.on{ color: #0f766e; background: rgba(13,148,136,.1); }
.ctrl{ background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: #1b1b1f; }
.ctrl:hover{ background: rgba(0,0,0,.1); }
.ctrl.play{ background: #0f766e; color: #fff; border: 0; }
.bar{ background: rgba(0,0,0,.1); }

/* 鐞涖劍鐗?*/
.gmgn-table th{ color: #6b7280; border-bottom-color: rgba(0,0,0,.08); }
.gmgn-table td{ border-bottom-color: rgba(0,0,0,.05); }
.gmgn-table tr:hover td{ background: rgba(0,0,0,.03); }

/* 濞戝牊绉锋稊?*/
.m3-cell{ box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 3px rgba(0,0,0,.18); }

/* 缂佸牏顏穱婵囧瘮濞ｈ精澹婇敍鍫㈢矒缁旑垱婀伴弶銉ユ皑鏉╂瑦鐗遍敍?*/
.term{ background: #10131a; color: #a7f3e4; border: 1px solid rgba(0,0,0,.15); }
.term-input input{ color: #e6fffa; }
.term-input{ border-top-color: rgba(255,255,255,.08); }

/* 閸︽澘娴樻惔鏃傛暏 */
.map-app{ display: flex; gap: 0; height: calc(100% + 36px); min-height: 380px; margin: -18px; }
.map-side{
  width: 232px; flex: 0 0 232px; border-right: 1px solid rgba(0,0,0,.07);
  background: #f7f8fa; display: flex; flex-direction: column; padding: 14px 12px; gap: 12px;
}
.map-search{
  width: 100%; padding: 9px 11px; border-radius: 9px; font-size: 12.5px;
  background: #fff; border: 1px solid rgba(0,0,0,.12); color: #1b1b1f; outline: none;
}
.map-search:focus{ border-color: #0d9488; }
.map-side h4{ margin: 0 0 2px; font-size: 11px; font-weight: 600; color: #6b7280; letter-spacing: .5px; }
.map-list{ display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.map-item{ padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.map-item:hover{ background: rgba(0,0,0,.05); }
.map-item.on{ background: #e8f2f0; }
.map-item b{ display: block; font-size: 13px; font-weight: 600; color: #1b1b1f; }
.map-item span{ display: block; font-size: 11px; color: #6b7280; margin-top: 2px; }
.map-canvas{ position: relative; flex: 1; background: #e8eef2; overflow: hidden; }
.map-canvas iframe{ width: 100%; height: 100%; border: 0; display: block; filter: saturate(.95); }
.map-card{
  position: absolute; left: 16px; bottom: 16px; min-width: 220px;
  background: rgba(255,255,255,.96); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1px solid rgba(0,0,0,.06);
}
.map-card b{ display: block; font-size: 13.5px; }
.map-card span{ display: block; font-size: 11.5px; color: #6b7280; margin-top: 3px; }
.map-zoom{ position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 1px; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.map-zoom button{ width: 30px; height: 28px; border: 0; background: #fff; cursor: pointer; font-size: 15px; color: #374151; }
.map-zoom button:hover{ background: #f1f5f9; }

/* 閻樿埖鈧焦鐖妴灞藉瀵扳偓閵?*/
.sb-go{
  margin-left: 4px; font-size: 12.5px; color: rgba(255,255,255,.72);
  text-decoration: none; padding: 3px 8px; border-radius: 6px; cursor: pointer;
}
.sb-go:hover{ background: rgba(255,255,255,.14); color: #fff; }

/* 闁夸礁鐫嗙憴鍡氼潕瀵邦喛鐨?*/
.lock-clock{ top: 15%; }
.lock-user{ top: 67%; }

/* 濞ｉ亶鎽奸幒銉ф纯閹恒儴绻樺宀勬桨閺冩儼鐑︽潻鍥ㄨ窗閸戝搫濮╅悽浼欑礄娓氬じ绨崚鍡曢煩/閹搭亜娴橀敍?*/
body.skip-fade #lock,
body.skip-fade .window{ transition: none !important; animation: none !important; }


/* 娴呰壊涓婚涓嬬殑缁嗚妭淇 */
.cover .note{ color: #eafffb; }
.eq i{ opacity: .55; }
.gmgn-table td{ color: #1b1b1f; }
.gmgn-table .sym{ color: #111827; }
.gmgn-table .sym i{ color: #9ca3af; }

/* 鍦板浘鐡︾墖 */
.map-tiles{ position: absolute; inset: 0; overflow: hidden; }
.map-tiles .tile{ position: absolute; width: 256px; height: 256px; user-select: none; pointer-events: none; }
.map-canvas{ touch-action: none; cursor: grab; }
.map-canvas:active{ cursor: grabbing; }
.map-pin{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -92%);
  pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));
}

/* 绐勫睆 Dock 鏀剁缉锛岄伩鍏嶅浘鏍囪鎴柇 */
@media (max-width: 480px){
  #dock{ gap: 4px; padding: 7px 8px; }
  .dock-item, .dock-item .glyph{ width: 38px; height: 38px; }
  .dock-item .glyph svg{ width: 20px; height: 20px; }
  .lc-time{ font-size: clamp(62px, 21vw, 104px); }
}

/* ============================================================
   macOS 澶栧３ 2.0
   ============================================================ */

/* 妗岄潰鍥炬爣涓ゅ垪锛堝榻愬師绔欙級 */
#desktop-icons{
  display: grid; grid-template-columns: repeat(2, 92px);
  grid-auto-flow: row; grid-template-rows: repeat(4, auto);
  gap: 2px 6px; right: 14px; top: 10px;
}
.desk-icon{ width: 92px; padding: 7px 3px 6px; }
.desk-icon .glyph{ width: 54px; height: 54px; border-radius: 14px; }
.desk-icon .glyph svg{ width: 30px; height: 30px; }
.desk-icon span{ font-size: 11px; }
.desk-icon.selected{ background: rgba(255,255,255,.18); }

/* 鐘舵€佹爮鎸夐挳 */
.sb-item{
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 2px 4px; border-radius: 6px;
  color: rgba(255,255,255,.9); cursor: pointer; font-size: 12.5px;
}
.sb-item:hover{ background: rgba(255,255,255,.14); }
.sb-item svg{ width: 17px; height: 17px; display: block; }
.bat-ico{
  position: relative; display: inline-block; width: 25px; height: 12px;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 3.5px;
}
.bat-ico i{
  position: absolute; left: 2px; top: 2px; bottom: 2px;
  width: calc((100% - 4px) * var(--bat-level, 1));
  background: var(--bat-color, #30d158);
  border-radius: 1.5px;
  transition: width .3s ease, background .3s ease;
}
.sb-date, .sb-time{ font-variant-numeric: tabular-nums; }
.sb-go{
  background: none; border: 0; color: rgba(255,255,255,.72);
  font-size: 12.5px; padding: 3px 8px; border-radius: 6px; cursor: pointer;
}
.sb-go:hover{ background: rgba(255,255,255,.14); color: #fff; }

/* 涓嬫媺鑿滃崟 / 鍙抽敭鑿滃崟 */
.menu{
  position: fixed; z-index: 9800; min-width: 190px; padding: 6px;
  background: rgba(246,246,248,.92); border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.32);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}
.menu button{
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; text-align: left; background: none; border: 0;
  padding: 6px 10px; border-radius: 7px; font-size: 13px; color: #1b1b1f; cursor: pointer;
}
.menu button:hover{ background: #0a84ff; color: #fff; }
.menu hr{ border: 0; border-top: 1px solid rgba(0,0,0,.1); margin: 5px 6px; }
.menu .kbd{ opacity: .55; font-size: 11.5px; }

/* 鑱氱劍鎼滅储 */
.overlay{
  position: fixed; inset: 0; z-index: 9700; display: flex;
  align-items: flex-start; justify-content: center; padding-top: 12vh;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(3px);
}
.spot-box{
  width: min(560px, 90vw); background: rgba(246,246,248,.94);
  border: 1px solid rgba(0,0,0,.1); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  backdrop-filter: blur(40px) saturate(180%);
}
#spotInput{
  width: 100%; border: 0; outline: none; background: none;
  padding: 15px 18px; font-size: 16px; color: #1b1b1f;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.spot-list{ max-height: 320px; overflow: auto; padding: 6px; }
.spot-item{
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #1b1b1f;
}
.spot-item.on{ background: #0a84ff; color: #fff; }
.spot-ico{ width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.spot-ico svg{ width: 16px; height: 16px; color: #fff; }
.spot-empty{ padding: 18px; text-align: center; color: #8e8e93; font-size: 13px; }

/* 鎺у埗涓績 */
.cc{
  position: fixed; top: 38px; right: 12px; z-index: 9800; width: 320px;
  padding: 12px; border-radius: 18px;
  background: rgba(246,246,248,.9); border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(40px) saturate(180%);
}
.cc-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-tile{ background: rgba(255,255,255,.65); border-radius: 12px; padding: 10px; }
.cc-line{ display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.cc-line b{ display: block; font-size: 12px; color: #1b1b1f; }
.cc-line em{ display: block; font-size: 10.5px; color: #8e8e93; font-style: normal; }
.cc-ico{
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; color: #fff; flex: 0 0 26px;
}
.cc-ico.blue{ background: #0a84ff; }
.cc-actions{ display: flex; flex-direction: column; gap: 6px; }
.cc-actions button{
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.6); border: 0; border-radius: 9px;
  padding: 7px 10px; font-size: 12px; color: #1b1b1f; cursor: pointer;
}
.cc-actions button em{ font-style: normal; color: #8e8e93; font-size: 11px; }
.cc-slider{ margin-top: 10px; background: rgba(255,255,255,.65); border-radius: 12px; padding: 10px 12px; }
.cc-slider-head{ display: flex; justify-content: space-between; font-size: 12px; color: #1b1b1f; margin-bottom: 6px; }
.cc-slider input{ width: 100%; accent-color: #0a84ff; }

/* 鐢垫睜 / Wi-Fi 寮瑰眰 */
.pop{
  position: fixed; z-index: 9800; width: 280px; padding: 12px 14px;
  background: rgba(246,246,248,.92); border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.32);
  backdrop-filter: blur(40px) saturate(180%);
  font-size: 12.5px; color: #1b1b1f;
}
.pop-head{ display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 8px; }
.pop-row{ display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: #3a3a3c; }
.pop-row b{ font-weight: 500; }
.pop-ok{ color: #0a84ff; }
.toggle{
  width: 38px; height: 22px; border-radius: 99px; background: #d8d8de; position: relative; display: inline-block;
  cursor: pointer; transition: background .2s ease; flex: 0 0 auto;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.07);
}
.toggle i{
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease;
}
.toggle.on{ background: #34c759; }
.toggle.on i{ transform: translateX(16px); }

/* 红绿灯 hover 符号 */
.lights i{ position: relative; }
.lights i::after{
  content: ""; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: rgba(0,0,0,.55); opacity: 0; transition: opacity .12s;
}
.lights:hover i::after{ opacity: 1; }
.lights .r::after{ content: "\00d7"; }
.lights .y::after{ content: "\2212"; }
.lights .g::after{ content: "+"; }

/* ---------- 微信 ---------- */
.wx{ display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; }
.wx-qr{ width: 240px; height: 240px; object-fit: contain; border-radius: 10px; background: #fff; padding: 8px; }
.wx-tip{ margin: 0; font-size: 12.5px; color: #6b7280; }

/* ---------- X ---------- */
.xc{ display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 12px; }
.xc-avatar{
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-size: 38px; background: linear-gradient(150deg,#e8e8ed,#c7c7cc);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}
.xc h2{ margin: 12px 0 6px; font-size: 22px; }
.xc-chip{
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  background: rgba(0,0,0,.06); font-size: 12px; color: #3a3a3c;
}
.xc-bio{ margin: 14px 0 18px; font-size: 13px; line-height: 1.8; color: #6b7280; }
.xc-actions{ display: flex; gap: 10px; }
.xc-btn{
  padding: 9px 20px; border-radius: 99px; font-size: 13px; cursor: pointer;
  border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.05); color: #1b1b1f;
  text-decoration: none;
}
.xc-btn.primary{ background: #34c759; border-color: #34c759; color: #fff; font-weight: 600; }
.xc-btn:hover{ filter: brightness(1.05); }

/* ---------- 閭欢 ---------- */
.mail{ display: flex; height: 100%; min-height: 420px; margin: -18px; }
.mail-side{
  width: 186px; flex: 0 0 186px; border-right: 1px solid rgba(0,0,0,.08);
  background: #f5f6f8; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px;
}
.mail-write{
  background: #0a84ff; color: #fff; border: 0; border-radius: 8px;
  padding: 8px; font-size: 12.5px; cursor: pointer; margin-bottom: 8px;
}
.mail-box{ padding: 7px 9px; border-radius: 7px; font-size: 12.5px; color: #3a3a3c; cursor: pointer; }
.mail-box.on{ background: rgba(0,0,0,.08); font-weight: 600; }
.mail-box i{ float: right; font-style: normal; color: #8e8e93; }
.mail-foot{ margin-top: auto; font-size: 10.5px; color: #8e8e93; line-height: 1.6; }
.mail-list{ width: 270px; flex: 0 0 270px; border-right: 1px solid rgba(0,0,0,.08); overflow: auto; }
.mail-search{ display: flex; gap: 6px; padding: 10px; }
.mail-search input{
  flex: 1; border: 1px solid rgba(0,0,0,.12); border-radius: 7px; padding: 6px 9px;
  font-size: 12px; outline: none;
}
.mail-search button{ border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 7px; width: 30px; cursor: pointer; }
.mail-row{ padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.05); cursor: pointer; }
.mail-row.on{ background: #0a84ff; color: #fff; }
.mail-row-top{ display: flex; justify-content: space-between; font-size: 11.5px; }
.mail-row.on .mail-row-top span, .mail-row.on .mail-prev{ color: rgba(255,255,255,.8); }
.mail-subj{ font-size: 12.5px; font-weight: 600; margin: 3px 0; }
.mail-prev{ font-size: 11.5px; color: #8e8e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-detail{ flex: 1; overflow: auto; padding: 14px 18px; }
.mail-detail-top{ display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8e8e93; }
.mail-from{ display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.mail-ava{
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #0a84ff; color: #fff; font-size: 14px;
}
.mail-from b{ display: block; font-size: 13px; }
.mail-from em{ font-style: normal; font-size: 11px; color: #8e8e93; }
.mail-detail h3{ margin: 8px 0 12px; font-size: 18px; }
.mail-body{
  font-family: inherit; font-size: 13px; line-height: 1.9; color: #3a3a3c;
  white-space: pre-wrap; margin: 0;
}

/* ---------- Safari ---------- */
.saf{ display: flex; flex-direction: column; height: 100%; min-height: 420px; margin: -18px; }
.saf-bar{ display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #f2f2f5; border-bottom: 1px solid rgba(0,0,0,.07); }
.saf-nav{ width: 28px; height: 26px; border: 0; background: none; color: #8e8e93; font-size: 15px; cursor: pointer; border-radius: 6px; }
.saf-nav:hover{ background: rgba(0,0,0,.06); }
.saf-url{
  flex: 1; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.1);
  background: #fff; padding: 0 12px; font-size: 12.5px; outline: none; color: #1b1b1f;
}
.saf-tab{ padding: 6px 12px 0; background: #f2f2f5; }
.saf-tab span{
  display: inline-block; background: #fff; border-radius: 7px 7px 0 0;
  padding: 6px 16px; font-size: 12px; color: #3a3a3c;
}
.saf-page{ flex: 1; overflow: auto; background: #fff; padding: 26px 34px; }
.saf-page h3{ font-size: 22px; margin: 0 0 18px; }
.saf-search{ display: flex; gap: 8px; max-width: 520px; }
.saf-search input{
  flex: 1; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,.14);
  font-size: 12.5px; outline: none;
}
.saf-search button{
  padding: 0 18px; border-radius: 8px; border: 0; background: #0a84ff; color: #fff;
  font-size: 12.5px; cursor: pointer;
}
.saf-marks{ display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.saf-mark{ display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.saf-mark-ico{
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 700;
}
.saf-mark em{ font-style: normal; font-size: 11.5px; color: #3a3a3c; }

/* ---------- MyGo Music ---------- */
.mu{ display: flex; flex-direction: column; height: 100%; min-height: 460px; margin: -18px; }
.mu-body{ flex: 1; display: flex; min-height: 0; }
.mu-side{
  width: 196px; flex: 0 0 196px; border-right: 1px solid rgba(0,0,0,.07);
  background: #f6f6f8; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow: auto;
}
.mu-brand{ font-size: 13px; font-weight: 600; color: #1b1b1f; padding: 2px 6px 8px; }
.mu-search{
  width: 100%; border: 1px solid rgba(0,0,0,.1); border-radius: 7px;
  padding: 6px 9px; font-size: 11.5px; outline: none; margin-bottom: 8px;
}
.mu-nav{ padding: 6px 9px; border-radius: 7px; font-size: 12.5px; color: #3a3a3c; cursor: pointer; }
.mu-nav.on{ background: rgba(0,0,0,.07); font-weight: 600; }
.mu-nav i{ float: right; font-style: normal; color: #8e8e93; }
.mu-side-title{ margin: 12px 6px 4px; font-size: 11px; color: #8e8e93; display: flex; justify-content: space-between; }
.mu-pl{ padding: 6px 9px; border-radius: 7px; font-size: 12px; color: #3a3a3c; display: flex; align-items: center; gap: 8px; }
.mu-pl i{ width: 10px; height: 10px; border-radius: 3px; display: block; }
.mu-pl em{ margin-left: auto; font-style: normal; color: #8e8e93; }
.mu-side-foot{ margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #8e8e93; padding-top: 10px; }
.mu-side-foot a{ color: #0a84ff; text-decoration: none; }

.mu-main{ flex: 1; overflow: auto; padding: 18px 22px 12px; background: #fff; }
.mu-head{ display: flex; justify-content: space-between; align-items: flex-start; }
.mu-head h2{ margin: 0; font-size: 24px; }
.mu-day{ font-size: 11.5px; color: #8e8e93; margin-top: 4px; }
.mu-import{
  background: #ff3b30; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 14px; font-size: 12.5px; cursor: pointer;
}
.mu-sec{ margin-top: 20px; font-size: 14px; font-weight: 600; }
.mu-note{ margin-top: 4px; font-size: 11.5px; color: #8e8e93; }
.mu-list{ margin-top: 10px; }
.mu-row{
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 9px; cursor: pointer; font-size: 12.5px;
}
.mu-row:hover{ background: rgba(0,0,0,.04); }
.mu-row.on{ background: rgba(255,59,48,.07); }
.mu-idx{ width: 18px; color: #8e8e93; font-size: 11.5px; }
.mu-thumb{ width: 38px; height: 38px; border-radius: 8px; display: block; flex: 0 0 38px; }
.mu-name{ flex: 0 0 190px; min-width: 0; }
.mu-name b{ display: block; font-size: 12.5px; }
.mu-name em{ font-style: normal; font-size: 11px; color: #8e8e93; }
.mu-album{ flex: 1; color: #6b7280; font-size: 11.5px; }
.mu-heart, .mu-plus{ color: #b0b0b6; font-size: 14px; }
.mu-dur{ color: #8e8e93; font-variant-numeric: tabular-nums; }
.mu-bar{
  height: 66px; flex: 0 0 66px; border-top: 1px solid rgba(0,0,0,.08);
  background: #fafafb; display: flex; align-items: center; gap: 18px; padding: 0 16px;
}
.mu-now{ display: flex; align-items: center; gap: 10px; width: 230px; }
.mu-cover{ width: 42px; height: 42px; border-radius: 8px; display: block; }
.mu-now b{ display: block; font-size: 12.5px; }
.mu-now em{ font-style: normal; font-size: 11px; color: #8e8e93; }
.mu-ctrl{ display: flex; align-items: center; gap: 12px; }
.mu-ctrl button{
  width: 30px; height: 30px; border: 0; background: none; cursor: pointer;
  font-size: 14px; color: #3a3a3c; border-radius: 50%;
}
.mu-ctrl button:hover{ background: rgba(0,0,0,.06); }
.mu-ctrl button.play{ width: 38px; height: 38px; background: #ff3b30; color: #fff; font-size: 15px; }
.mu-right{ margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #8e8e93; }
.mu-bar-line{ width: 140px; height: 4px; background: rgba(0,0,0,.1); border-radius: 4px; overflow: hidden; }
.mu-bar-line i{ display: block; height: 100%; width: 0; background: #ff3b30; }
.mu-ico{ font-size: 13px; }
.mu-vol{ display: flex; align-items: center; gap: 5px; }
.mu-vol i{ display: block; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg,#ff3b30 85%, rgba(0,0,0,.12) 85%); }

/* ---------- X 鎻掍欢 ---------- */
.pl{ margin: -18px; padding: 18px 20px; height: calc(100% + 36px); overflow: auto; }
.pl-head{ display: flex; justify-content: space-between; align-items: flex-start; }
.pl-head h2{ margin: 0; font-size: 20px; }
.pl-head p{ margin: 4px 0 0; font-size: 12px; color: #8e8e93; }
.pl-actions{ display: flex; gap: 8px; }
.pl-list{ margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pl-card{
  background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.pl-card-top{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pl-card h3{ margin: 0; font-size: 14.5px; }
.pl-date{ font-size: 11px; color: #8e8e93; }
.pl-card p{ margin: 6px 0 10px; font-size: 12.5px; color: #6b7280; line-height: 1.7; }
.pl-tags{ display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pl-tags span{
  font-size: 10.5px; padding: 2px 8px; border-radius: 99px;
  background: rgba(99,102,241,.1); color: #4f46e5;
}
.pl-dl{
  display: inline-block; font-size: 12px; padding: 6px 14px; border-radius: 8px;
  background: #0a84ff; color: #fff; text-decoration: none;
}
.pl-dl.disabled{ background: rgba(0,0,0,.06); color: #8e8e93; }
.pl-loading, .pl-offline{ font-size: 12px; color: #8e8e93; padding: 10px 0; }
.pl-offline{ background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 10px 12px; }

/* ---------- 鍏充簬鏈満 ---------- */
.about-mac{ display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px; }
.am-logo{ font-size: 44px; }
.about-mac h3{ margin: 8px 0 2px; }
.am-rows{ width: 100%; margin-top: 16px; }
.am-rows div{ display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(0,0,0,.06); font-size: 12.5px; }
.am-rows span{ color: #8e8e93; }

.hidden{ display: none !important; }

@media (max-width: 760px){
  #desktop-icons{ grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .desk-icon{ width: auto; }
  .mail-side, .mu-side{ display: none; }
  .mail-list{ flex: 1; }
  .mu-bar{ height: auto; padding: 8px; flex-wrap: wrap; gap: 8px; }
  .mu-now{ width: auto; }
  .mu-right{ display: none; }
  .cc{ width: calc(100vw - 24px); }
  .pop{ width: calc(100vw - 24px); }
}

/* 绐楀彛涓嶉€忔槑搴︿慨姝ｏ細閬垮厤澹佺焊閫忚繃鍙戠矇 */
.window{
  background: rgba(251,251,253,.985);
  backdrop-filter: blur(30px) saturate(110%);
  -webkit-backdrop-filter: blur(30px) saturate(110%);
}
.xc-avatar{ font-size: 34px; font-weight: 700; color: #3a3a3c; letter-spacing: 0; }

/* 娣遍摼鎺ヨ繘鍏ユ椂锛屾闈?鐘舵€佹爮涔熻烦杩囨贰鍏ワ紝閬垮厤鎴浘鍋滃湪鍗婇€忔槑 */
body.skip-fade #lock,
body.skip-fade #desktop,
body.skip-fade #statusbar,
body.skip-fade #dock,
body.skip-fade .window{
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
}
body.skip-fade #lock{
  opacity: 0 !important;
  visibility: hidden !important;
}
.window{ background: #fbfbfd; }
.xc-avatar{ background: linear-gradient(150deg,#ffe7a3,#f5b942); overflow: hidden; }
.xc-avatar img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-avatar{ background: linear-gradient(140deg,#ffd479,#e2893f); }

/* ---------- 閭欢锛氬啓淇?---------- */
.mail-detail{ display: flex; flex-direction: column; }
.mail-compose{ display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.mc-row{ display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.mc-row label{ width: 42px; flex: 0 0 42px; color: #8e8e93; }
.mc-row input{
  flex: 1; border: 1px solid rgba(0,0,0,.12); border-radius: 7px;
  padding: 7px 10px; font-size: 12.5px; outline: none; color: #1b1b1f;
}
.mc-row input:focus{ border-color: #0a84ff; }
.mc-to{ color: #3a3a3c; }
.mail-compose textarea{
  flex: 1; min-height: 160px; resize: none; outline: none;
  border: 1px solid rgba(0,0,0,.12); border-radius: 8px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.8;
  font-family: inherit; color: #1b1b1f;
}
.mail-compose textarea:focus{ border-color: #0a84ff; }
.mc-actions{ display: flex; gap: 8px; align-items: center; }
.mc-state{ font-size: 12px; color: #6b7280; }
.mail-empty{ padding: 40px 20px; text-align: center; color: #8e8e93; font-size: 12.5px; }
.mail-row.on .mail-prev{ color: rgba(255,255,255,.75); }

/* ---------- 鐪熷疄鍥炬爣绱犳潗 ---------- */
.glyph.has-img{
  background: none !important;
  box-shadow: none !important;
  display: block;
}
.glyph.has-img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 22%;
}
.spot-ico img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 22%;
}

/* ============================================================
   鍔ㄦ€佸绾革細灞变笜缂撴參婕傜Щ + 鍏夋檿娓歌蛋
   ============================================================ */
#waves{
  transform: scale(1.06);
  transform-origin: 50% 60%;
  will-change: transform;
}
#waves .wave{
  animation: waveDrift 42s ease-in-out infinite alternate;
  will-change: transform;
}
#waves .wave:nth-of-type(2){ animation-duration: 58s; animation-delay: -8s; }
#waves .wave:nth-of-type(3){ animation-duration: 51s; animation-delay: -3s; animation-direction: alternate-reverse; }
#waves .wave:nth-of-type(4){ animation-duration: 66s; animation-delay: -14s; }
#waves .wave:nth-of-type(5){ animation-duration: 47s; animation-delay: -6s; animation-direction: alternate-reverse; }

@keyframes waveDrift{
  0%   { transform: translate3d(-26px, 2px, 0); }
  50%  { transform: translate3d(8px, -6px, 0); }
  100% { transform: translate3d(30px, 4px, 0); }
}

.wall-glow{
  position: absolute;
  left: 50%; top: 34%;
  width: 120vmax; height: 120vmax;
  margin: -60vmax 0 0 -60vmax;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 232, .16) 0%, rgba(255, 190, 220, .07) 32%, transparent 62%);
  mix-blend-mode: screen;
  animation: glowMove 28s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes glowMove{
  0%   { transform: translate3d(-14%, -6%, 0) scale(1);    opacity: .55; }
  50%  { transform: translate3d(6%, 4%, 0) scale(1.12);    opacity: .85; }
  100% { transform: translate3d(16%, -2%, 0) scale(1.02);  opacity: .6; }
}

/* 鏆傚仠鍔ㄦ€佸绾?*/
body.no-anim #waves .wave,
body.no-anim .wall-glow,
body.no-anim #stars{
  animation-play-state: paused !important;
}

/* 鎾斁鍣細寰芥爣 / 鍙偣鍑绘帶浠?*/
.mu-badge{ display: block; font-style: normal; font-size: 10px; color: #9aa0a6; margin-top: 2px; }
.mu-vol{ cursor: pointer; user-select: none; }
.mu-bar-line{ cursor: pointer; }
.mu-row{ cursor: pointer; }

/* ---------- X 鎻掍欢锛氭暀绋嬫鏂?---------- */
.pl-body{
  margin: 4px 0 12px;
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 10px;
  font-size: 12.8px;
  line-height: 1.85;
  color: #374151;
}
.pl-body p{ margin: 6px 0; }
.pl-body h1, .pl-body h2, .pl-body h3{ margin: 12px 0 6px; font-size: 14px; color: #111827; }
.pl-body ul, .pl-body ol{ margin: 6px 0; padding-left: 20px; }
.pl-body li{ margin: 2px 0; }
.pl-body img{
  display: block;
  max-width: 100%;
  margin: 10px 0;
  border-radius: 9px;
  border: 1px solid rgba(0,0,0,.06);
}
.pl-body code{ background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.pl-foot{ display: flex; align-items: center; gap: 10px; }
.pl-more{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #374151;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.pl-more:hover{ background: #f3f4f6; }
.pl-body img{ max-height: 260px; width: auto; max-width: 100%; }


/* 邮件侧栏分组标题 */
.mail-section{
  font-size: 11px;
  color: #8e8e93;
  padding: 6px 10px 4px;
  letter-spacing: .3px;
  user-select: none;
}

/* ---------- X 插件：列表 / 详情 ---------- */
.pl-card{ cursor: pointer; transition: box-shadow .15s ease, border-color .15s ease; }
.pl-card:hover{ border-color: rgba(0,0,0,.14); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.pl-open{ font-size: 12px; color: #0a84ff; }
.pl-filetag{ font-size: 11px; color: #6b7280; }

.pl-detail{ outline: none; }
.pl-back{
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(0,0,0,.12); background: #fff; color: #374151;
  font-size: 12.5px; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  margin-bottom: 14px;
}
.pl-back:hover{ background: #f3f4f6; }
.pl-detail-title{ margin: 0 0 6px; font-size: 21px; line-height: 1.35; }
.pl-detail-meta{ font-size: 12px; color: #8e8e93; margin-bottom: 18px; }
.pl-detail-body{ font-size: 13.2px; line-height: 1.9; color: #374151; }
.pl-detail-body p{ margin: 9px 0; }
.pl-detail-body h1,.pl-detail-body h2,.pl-detail-body h3{ margin: 18px 0 8px; font-size: 16px; color: #111827; }
.pl-detail-body ul,.pl-detail-body ol{ margin: 8px 0; padding-left: 22px; }
.pl-detail-body img{
  display: block; max-width: 100%; max-height: 420px;
  margin: 14px 0; border-radius: 10px; border: 1px solid rgba(0,0,0,.06);
}
.pl-detail-body code{ background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.pl-detail-body a{ color: #0a84ff; }
.pl-detail-foot{ margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.07); }

/* 去掉窗口实时模糊：点击置顶时 z-index 变化会重算背景，导致闪一下 */
.window{
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  will-change: auto;
}

/* ---------- 红绿灯：按 macOS 的细节重做 ---------- */
.lights i{
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12);
}
.lights i::after{ pointer-events: none; }
.lights i svg{
  width: 12px; height: 12px; display: block;
  opacity: 0; transition: opacity .12s ease;
  pointer-events: none;
}
.lights:hover i svg{ opacity: 1; }
.lights i:active{ filter: brightness(.88); }

/* 非焦点窗口：三个灯变灰，鼠标移上去恢复彩色（和 macOS 一致） */
.window:not(.active) .lights i{ background: #e3e3e6; }
.window:not(.active) .lights:hover i.r{ background: #ff5f57; }
.window:not(.active) .lights:hover i.y{ background: #febc2e; }
.window:not(.active) .lights:hover i.g{ background: #28c840; }

/* 标题栏：普通箭头（macOS 不用抓手），拖拽时不换光标 */
.titlebar{ cursor: default !important; }
.window.dragging .titlebar{ cursor: default !important; }

/* ---------- 消除点击/轻击时的闪一下 ---------- */
html, body, .window, .window *{
  -webkit-tap-highlight-color: transparent;
}
.window :focus, .window:focus{ outline: none; }
/* 列表行、标题栏这类"按钮式"元素不要触发文字选中 */
.titlebar, .mu-row, .mail-row, .mail-box, .dock-item, .desk-icon, .pl-card{
  -webkit-user-select: none;
  user-select: none;
}

/* 锁屏不显示 Dock（macOS 也是这样） */
#dock{ transition: opacity .3s ease, visibility .3s ease; }
body.locked #dock{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- 手机端状态栏重排 ---------- */
@media (max-width: 760px){
  #statusbar{ padding: 0 10px; font-size: 12px; gap: 8px; }
  .sb-left{ flex: 1 1 auto; min-width: 0; gap: 7px; overflow: hidden; }
  .sb-right{ flex: 0 0 auto; gap: 8px; }
  .sb-logo svg{ width: 18px; height: 18px; }
  .sb-left strong{
    white-space: nowrap; font-size: 12.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis;
  }
  .sb-go{ display: none; }
  #batText{ display: none; }
  .sb-date{ display: none; }
  .sb-item{ padding: 2px 2px; }
  .sb-item svg{ width: 16px; height: 16px; }
  .sb-time{ font-size: 12px; white-space: nowrap; }
  .bat-ico{ width: 22px; height: 11px; }
  .desk-icon span{ font-size: 10.5px; }
}

/* ---------- 手机端：邮件布局与 Dock 尺寸 ---------- */
@media (max-width: 760px){
  .window{ max-width: calc(100vw - 12px); }
  .mail{ min-width: 0; }
  .mail-list{ flex: 1 1 46%; min-width: 0; }
  .mail-detail{ flex: 1 1 54%; min-width: 0; padding: 12px 14px; }
  .mail-row{ padding: 8px 10px; }
  .mail-subj{ font-size: 12px; }
  .mail-prev{ font-size: 11px; }
  .mail-detail h3{ font-size: 16px; margin: 6px 0 10px; }
  .mail-body{ font-size: 12.5px; word-break: break-word; }
  .mail-detail-top .btn{ padding: 4px 10px; font-size: 11.5px; }

  #dock{
    gap: 5px; padding: 8px 10px;
    max-width: calc(100vw - 16px);
  }
  .dock-item, .dock-item .glyph{ width: 38px; height: 38px; }
  .dock-item .glyph svg{ width: 19px; height: 19px; }
}

/* ---------- 触摸设备：禁用 hover 残留 ---------- */
@media (hover: none), (pointer: coarse){
  .desk-icon:hover{
    background: transparent !important;
    border-color: transparent !important;
  }
  .desk-icon:hover .glyph{ box-shadow: 0 8px 20px rgba(0,0,0,.45); }

  .dock-item:hover{
    transform: none !important;
  }
  .dock-item:hover .label{ opacity: 0 !important; }

  .mu-row:hover, .mail-row:hover{ background: transparent !important; }
  .pl-card:hover{
    border-color: rgba(0,0,0,.07) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
  }
  .mail-box:hover{ background: transparent; }
  .menu button:hover{ background: none; color: #1b1b1f; }

  /* 触摸时用 :active 给一点按压反馈 */
  .desk-icon:active{ background: rgba(255,255,255,.16) !important; }
  .dock-item:active{ transform: scale(.94) !important; }
}

/* Wi-Fi 关闭态 */
.pop-ok.off{ color: #8e8e93 !important; }
.sb-item.wifi-off svg{ opacity: .35; }

/* ---------- 控制中心 2.0 ---------- */
.cc{ width: 332px; padding: 12px; }
.cc-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-card{
  background: #fff; border-radius: 14px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.cc-row{
  display: flex; align-items: center; gap: 9px;
  background: none; border: 0; width: 100%; text-align: left;
  padding: 7px 8px; border-radius: 10px; cursor: pointer;
  font: inherit; color: inherit;
}
.cc-row:hover{ background: rgba(0,0,0,.045); }
.cc-row:active{ background: rgba(0,0,0,.09); }
.cc-ico{
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: #ececf1; color: #48484a;
}
.cc-ico.blue{ background: #0a84ff; color: #fff; }
.cc-ico svg{ width: 16px; height: 16px; }
.cc-row.off .cc-ico{ background: #ececf1; color: #b0b0b5; }
.cc-txt{ display: flex; flex-direction: column; min-width: 0; }
.cc-txt b{ font-size: 12px; font-weight: 600; color: #1b1b1f; white-space: nowrap; }
.cc-txt em{ font-style: normal; font-size: 10.5px; color: #8e8e93; white-space: nowrap; }
.cc-row.on .cc-txt em{ color: #0a84ff; }
.cc-sl{ display: flex; align-items: center; gap: 6px; }
.cc-sl svg{ width: 15px; height: 15px; color: #8e8e93; }
.cc-slider{ background: #fff; }

/* 亮度用变量，方便专注模式叠乘 */
#wall{ filter: brightness(var(--bright, 1)); transition: filter .25s ease; }
body.focus-mode #wall{ filter: brightness(calc(var(--bright, 1) * .72)) saturate(.75); }

/* 控制中心：开启状态图标高亮（蓝底白图标） */
.cc-row.on .cc-ico{
  background: #0a84ff;
  color: #fff;
}
.cc-row.on .cc-txt em{ color: #0a84ff; }
.cc-row.off .cc-ico{
  background: #ececf1;
  color: #b0b0b5;
}
.cc-row.off .cc-txt em{ color: #b0b0b5; }
.cc-row:hover .cc-ico{ filter: brightness(1.02); }

/* ---------- 桌面框选 ---------- */
#marquee{
  position: fixed;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
  border-radius: 3px;
  pointer-events: none;
  z-index: 6;
}
body.selecting, body.selecting .desk-icon{ user-select: none; }
body.selecting{ cursor: default; }
.desk-icon.selected{
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.30);
}

/* ---------- 手机端：写新邮件入口 ---------- */
.mail-write-mini{ display: none; }
@media (max-width: 760px){
  .mail-search{ display: flex; align-items: center; gap: 6px; }
  .mail-search input{ flex: 1 1 auto; min-width: 0; }
  .mail-search .mail-write-mini{
    display: grid; place-items: center;
    flex: 0 0 auto;
    width: 28px; height: 28px; border-radius: 8px;
    border: 0; background: #0a84ff; color: #fff;
    font-size: 16px; line-height: 1; cursor: pointer;
  }
  .mail-write-mini:active{ filter: brightness(.9); }

  /* 写邮件时列表让位，正文占满 */
  .mail.composing .mail-list{ display: none; }
  .mail.composing .mail-detail{ flex: 1 1 100%; }
  .mail-compose textarea{ min-height: 140px; }
}

/* ---------- 状态栏：正在播放胶囊 ---------- */
.now-playing{
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 250px; padding: 3px 11px 3px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 11.5px; line-height: 1.5;
  cursor: pointer; overflow: hidden; flex: 0 0 auto;
  font-family: inherit;
}
.now-playing:hover{ background: rgba(255,255,255,.26); }
.now-playing .np-ico{ font-size: 10.5px; opacity: .9; flex: 0 0 auto; }
.now-playing .np-text{
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
@media (max-width: 760px){
  .now-playing{ display: none !important; }
}

/* 胶囊里的跳动音柱 */
.now-playing .np-eq{
  display: inline-flex; align-items: flex-end; gap: 2px;
  width: 12px; height: 11px; flex: 0 0 auto;
}
.now-playing .np-eq i{
  display: block; width: 2px; height: 100%;
  border-radius: 1px; background: #fff; opacity: .92;
  transform-origin: bottom center;
  animation: npBar .9s ease-in-out infinite;
}
.now-playing .np-eq i:nth-child(2){ animation-duration: .74s; animation-delay: -.18s; }
.now-playing .np-eq i:nth-child(3){ animation-duration: 1.06s; animation-delay: -.36s; opacity: .68; }

@keyframes npBar{
  0%, 100%{ transform: scaleY(.3); }
  50%     { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce){
  .now-playing .np-eq i{ animation: none; transform: scaleY(.75); }
}

/* 锁屏层级：盖住所有窗口与弹层 */
#lock{ z-index: 20000; }
body.locked .window{ visibility: hidden; }
body.locked #desktop-icons,
body.locked #hint{ visibility: hidden; }

/* ---------- 音乐：收藏 / 加入队列 / 空态 / 循环按钮 ---------- */
.mu-heart{ cursor: pointer; color: #b0b0b5; }
.mu-heart.on{ color: #ff3b30; }
.mu-plus{ cursor: pointer; color: #8e8e93; }
.mu-plus:hover{ color: #0a84ff; }
.mu-nav[data-view]{ cursor: pointer; }
.mu-pl[data-view]{ cursor: pointer; }
.mu-empty{
  padding: 40px 0; text-align: center; color: #8e8e93; font-size: 13px;
}
.mu-bar button.on{ color: #0a84ff; }
.mu-vol.off{ opacity: .5; }

/* ---------- 在线音乐搜索 ---------- */
.ms{ padding: 2px 0 20px; }
.ms-hint{ font-size: 11.5px; color: #8e8e93; margin-bottom: 10px; }
.ms-bar{ display: flex; gap: 8px; }
.ms-bar input{
  flex: 1; min-width: 0; border: 1px solid rgba(0,0,0,.12); border-radius: 10px;
  padding: 9px 12px; font-size: 13px; outline: none; font-family: inherit;
}
.ms-bar input:focus{ border-color: #0a84ff; }
.ms-bar button{
  flex: 0 0 auto; border: 0; background: #ff3b30; color: #fff;
  padding: 0 20px; border-radius: 10px; font-size: 13px; cursor: pointer;
}
.ms-bar button:active{ filter: brightness(.92); }
.ms-src{ display: flex; gap: 8px; margin-top: 10px; }
.ms-src button{
  border: 1px solid rgba(0,0,0,.1); background: #fff; color: #3a3a3c;
  padding: 6px 14px; border-radius: 99px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.ms-src button.on{ background: #0a84ff; border-color: #0a84ff; color: #fff; }
.ms-hot{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ms-hot button{
  border: 1px solid rgba(0,0,0,.08); background: #f6f6f8; color: #6b7280;
  padding: 4px 12px; border-radius: 99px; font-size: 11.5px; cursor: pointer; font-family: inherit;
}
.ms-hot button:hover{ background: #eceef2; }
.ms-count{ font-size: 11.5px; color: #8e8e93; margin: 16px 0 6px; }
.ms-empty{ padding: 36px 0; text-align: center; color: #8e8e93; font-size: 12.5px; }
.ms-row{
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.ms-row:hover{ background: rgba(0,0,0,.04); }
.ms-cover{
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg,#4facfe,#00f2fe); flex: 0 0 auto;
}
.ms-name{ flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ms-name b{ font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-name em{ font-style: normal; font-size: 11.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-tag{
  flex: 0 0 auto; font-size: 10.5px; padding: 2px 7px; border-radius: 4px;
  background: rgba(52,199,89,.14); color: #248a3d;
}
.ms-row .ms-tag:empty{ display: none; }
.ms-album{ flex: 0 0 auto; width: 150px; font-size: 11.5px; color: #8e8e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-dur{ flex: 0 0 auto; font-size: 11.5px; color: #8e8e93; width: 42px; text-align: right; }
.ms-play{ flex: 0 0 auto; color: #0a84ff; font-size: 11px; }

/* 在线搜索结果：不可播放的置灰 */
.ms-row.off{ opacity: .45; cursor: not-allowed; }
.ms-row.off .ms-play{ display: none; }
.ms-row.off .ms-tag{ background: rgba(255,59,48,.12); color: #c0392b; }

/* ---------- 原厂风格动态壁纸（canvas） ---------- */
#bgCanvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none; z-index: 0;
}
body[data-wall="live"] #bgCanvas{ display: block; }
body[data-wall="live"] #waves,
body[data-wall="live"] #aurora,
body[data-wall="live"] #stars,
body[data-wall="live"] .wall-glow,
body[data-wall="live"] .vignette{ display: none; }

/* ---------- 天气 ---------- */
.wth{ display: flex; height: calc(100% + 36px); margin: -18px; overflow: hidden; }
.wx-side{
  width: 196px; flex: 0 0 auto; border-right: 1px solid rgba(0,0,0,.07);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 8px;
  overflow: auto; background: #f7f7f9;
}
.wx-brand{ font-size: 15px; font-weight: 700; padding: 2px 6px 4px; }
.wx-search{ display: flex; gap: 6px; }
.wx-search input{
  flex: 1; min-width: 0; border: 1px solid rgba(0,0,0,.12); border-radius: 8px;
  padding: 6px 9px; font-size: 12px; outline: none; font-family: inherit;
}
.wx-search button{
  border: 0; background: #0a84ff; color: #fff; border-radius: 8px;
  width: 30px; cursor: pointer; font-size: 15px; line-height: 1;
}
.wx-hits{ display: flex; flex-direction: column; gap: 4px; }
.wx-hit{
  text-align: left; border: 1px solid rgba(0,0,0,.08); background: #fff;
  border-radius: 8px; padding: 6px 8px; cursor: pointer; font-family: inherit;
}
.wx-hit b{ display: block; font-size: 12px; }
.wx-hit em{ font-style: normal; font-size: 10.5px; color: #8e8e93; }
.wx-hint{ font-size: 11px; color: #8e8e93; padding: 4px 2px; }
.wx-cities{ display: flex; flex-direction: column; gap: 6px; }
.wx-city{
  text-align: left; border: 0; background: #fff; border-radius: 12px;
  padding: 10px 12px; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.wx-city b{ display: block; font-size: 13px; color: #1b1b1f; }
.wx-city em{ font-style: normal; font-size: 10.5px; color: #8e8e93; }
.wx-city.on{ background: #0a84ff; }
.wx-city.on b, .wx-city.on em{ color: #fff; }
.wx-main{ flex: 1; min-width: 0; overflow: auto; padding: 16px; background: #f2f4f8; }
.wx-loading{ padding: 40px; text-align: center; color: #8e8e93; font-size: 13px; }
.wx-hero{ border-radius: 18px; padding: 18px 20px; color: #fff; }
.wx-hero.sun{ background: linear-gradient(160deg,#3aa0ff,#0a6ff0); }
.wx-hero.cloud{ background: linear-gradient(160deg,#8fa6bd,#4a6280); }
.wx-hero.rain{ background: linear-gradient(160deg,#4a6a8f,#22384f); }
.wx-hero.snow{ background: linear-gradient(160deg,#9fc4e6,#5b7fa6); }
.wx-hero.night{ background: linear-gradient(160deg,#2b3a63,#111a33); }
.wx-hero-top{ display: flex; justify-content: space-between; align-items: flex-start; }
.wx-cityname{ font-size: 20px; font-weight: 700; }
.wx-region{ font-size: 11.5px; opacity: .82; }
.wx-icon{ font-size: 34px; line-height: 1; }
.wx-temp{ font-size: 64px; font-weight: 300; line-height: 1.05; margin-top: 4px; }
.wx-temp span{ font-size: 30px; vertical-align: super; }
.wx-cond{ font-size: 14px; }
.wx-hl{ font-size: 12px; opacity: .82; margin-top: 2px; }
.wx-card{ margin-top: 12px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.wx-card-title{ font-size: 12px; color: #8e8e93; margin-bottom: 8px; }
.wx-hours{ display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
.wx-hour{ display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px; font-size: 11px; color: #3a3a3c; }
.wx-hour b{ font-size: 16px; font-weight: 400; }
.wx-hour em{ font-style: normal; font-size: 13px; font-weight: 600; }
.wx-hour i{ font-style: normal; font-size: 10px; color: #0a84ff; }
.wx-day{ display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(0,0,0,.05); font-size: 12.5px; }
.wx-day:first-of-type{ border-top: 0; }
.wx-day span{ width: 92px; color: #3a3a3c; }
.wx-day b{ font-size: 15px; font-weight: 400; }
.wx-day em{ margin-left: auto; font-style: normal; font-weight: 600; }
.wx-tiles{ margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wx-tile{ background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.wx-tile span{ display: block; font-size: 11px; color: #8e8e93; }
.wx-tile b{ display: block; font-size: 20px; font-weight: 600; margin: 2px 0; color: #1b1b1f; }
.wx-tile em{ font-style: normal; font-size: 10.5px; color: #a1a1a6; }

@media (max-width: 760px){
  .wth{ margin: -14px; }
  .wx-side{ display: none; }
  .wx-tiles{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 播放条 2.0（对齐原版） ---------- */
.mu-bar{ display: flex; align-items: center; gap: 18px; padding: 10px 16px; }
.mu-now{ display: flex; align-items: center; gap: 10px; width: 200px; flex: 0 0 auto; }
.mu-now-txt{ min-width: 0; }
.mu-now-line{ display: flex; align-items: center; gap: 4px; }
.mu-like{
  border: 0; background: none; cursor: pointer; font-size: 14px;
  color: #b0b0b5; padding: 0 2px; line-height: 1; font-family: inherit;
}
.mu-like:hover{ color: #8e8e93; }
.mu-like.on{ color: #ff3b30; }
.mu-mid{ flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mu-progress{ display: flex; align-items: center; gap: 10px; width: 100%; max-width: 540px; font-size: 11px; color: #8e8e93; }
.mu-progress .mu-bar-line{ flex: 1 1 auto; margin: 0; }
.mu-right{ display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* 歌词 / 评论面板 */
.mu-panel{ padding: 4px 2px 16px; }
.mu-back{
  border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 8px;
  padding: 5px 12px; font-size: 12px; cursor: pointer; margin-bottom: 10px; font-family: inherit;
}
.mu-back:hover{ background: #f3f4f6; }
.mu-lyric-list{ max-height: 430px; overflow: auto; padding: 4px 0; }
.mu-lyric{ padding: 7px 4px; font-size: 13.5px; color: #a1a1a6; }
.mu-lyric.on{ color: #1b1b1f; font-weight: 600; }
.mu-comments{ max-height: 430px; overflow: auto; }
.mu-cmt{ padding: 10px 2px; border-top: 1px solid rgba(0,0,0,.06); }
.mu-cmt b{ font-size: 12.5px; color: #0a84ff; font-weight: 600; }
.mu-cmt p{ margin: 4px 0 0; font-size: 13px; color: #3a3a3c; line-height: 1.6; }
.mu-cmt em{ font-style: normal; font-size: 11px; color: #a1a1a6; }
.mu-cmt-total{ font-size: 11.5px; color: #8e8e93; padding: 4px 2px 8px; }

/* 列表里正在播放的音柱 */
.mu-eq{ display: inline-flex; align-items: flex-end; gap: 2px; width: 12px; height: 12px; }
.mu-eq i{
  width: 2px; height: 100%; background: #ff3b30; border-radius: 1px;
  transform-origin: bottom center; animation: muEq .8s ease-in-out infinite;
}
.mu-eq i:nth-child(2){ animation-duration: .62s; animation-delay: -.15s; }
.mu-eq i:nth-child(3){ animation-duration: .95s; animation-delay: -.3s; }
@keyframes muEq{ 0%,100%{ transform: scaleY(.28); } 50%{ transform: scaleY(1); } }

/* 播放条右侧图标与音量 */
.mu-ico-btn{
  border: 0; background: none; cursor: pointer; color: #6b7280;
  width: 26px; height: 26px; display: grid; place-items: center; padding: 0;
  border-radius: 6px; font-size: 14px; font-family: inherit;
}
.mu-ico-btn:hover{ background: rgba(0,0,0,.06); color: #1b1b1f; }
.mu-ico-btn svg{ width: 17px; height: 17px; }
.mu-ico-btn.on{ color: #ff3b30; }
.mu-vol-range{
  width: 76px; accent-color: #ff3b30; cursor: pointer; height: 16px;
}

/* 播放条紧凑化 + 音量滑杆 */
.mu-vol-range{
  -webkit-appearance: auto; appearance: auto;
  width: 70px; height: 14px; margin: 0;
  accent-color: #ff3b30; cursor: pointer; background: transparent;
}
.mu-bar{ padding: 8px 14px; gap: 14px; }
.mu-now{ width: 190px; gap: 9px; }
.mu-now .mu-cover{ width: 40px; height: 40px; border-radius: 9px; }
.mu-mid{ gap: 3px; }
.mu-ctrl{ gap: 14px; }
.mu-progress{ max-width: 520px; margin-top: -2px; }
.mu-bar-line{ height: 3px; }
.mu-right{ gap: 8px; }
.mu-ico-btn{ width: 24px; height: 24px; }
.mu-vol-range{ -webkit-appearance: none; appearance: none; background: transparent; width: 70px; height: 14px; }
.mu-vol-range::-webkit-slider-runnable-track{ height: 4px; border-radius: 2px; background: #e3e3e8; }
.mu-vol-range::-webkit-slider-thumb{
  -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px;
  border-radius: 50%; background: #ff3b30; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

/* Dock 点击弹跳 */
@keyframes dockBounce{
  0%{ transform: translateY(0); }
  20%{ transform: translateY(-18px); }
  40%{ transform: translateY(0); }
  60%{ transform: translateY(-9px); }
  80%{ transform: translateY(0); }
  100%{ transform: translateY(0); }
}
.dock-item.bounce .glyph{ animation: dockBounce .7s ease-out; }

/* Safari：内嵌浏览 */
.saf{ display: flex; flex-direction: column; height: 100%; margin: -18px; }
.saf-bar{ flex: 0 0 auto; }
.saf-page{ flex: 1 1 auto; overflow: auto; }
.saf-frame{ flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
.saf-ext{
  margin-left: auto; border: 1px solid rgba(0,0,0,.12); background: #fff;
  border-radius: 7px; padding: 3px 9px; font-size: 11px; cursor: pointer; font-family: inherit;
}
.saf-ext:hover{ background: #f3f4f6; }
.saf-tab{ display: flex; align-items: center; gap: 8px; }
.bm-row{ display: grid; grid-template-columns: 1fr 1.4fr 70px 90px 84px; gap: 8px; }

/* ---------- 扫雷 ---------- */
.ms{ display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 6px 0 10px; }
.ms-top{ display: flex; align-items: center; gap: 18px; }
.ms-lcd{
  font-family: ui-monospace, Consolas, monospace; font-size: 22px; letter-spacing: 2px;
  background: #2b2b2b; color: #ff3b30; padding: 3px 10px; border-radius: 6px; min-width: 68px; text-align: center;
}
.ms-face{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15);
  background: #f5c542; font-size: 20px; cursor: pointer; line-height: 1;
}
.ms-face:active{ transform: scale(.94); }
.ms-levels{ display: flex; gap: 8px; }
.ms-lv{
  border: 1px solid rgba(0,0,0,.12); background: #fff; color: #3a3a3c;
  padding: 5px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.ms-lv.on{ background: #0a84ff; border-color: #0a84ff; color: #fff; }
.ms-board{
  display: grid; gap: 2px; padding: 8px; background: #e5e7eb;
  border-radius: 10px; max-width: 100%; overflow: auto;
}
.ms-cell{
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px;
  background: #c7cbd1; cursor: pointer; font-size: 13px; font-weight: 700;
  display: grid; place-items: center; font-family: inherit; color: #1b1b1f;
}
.ms-cell:hover{ background: #d4d8de; }
.ms-cell.open{ background: #f3f4f6; cursor: default; }
.ms-cell.open:hover{ background: #f3f4f6; }
.ms-cell.flag{ background: #c7cbd1; }
.ms-cell.mine{ background: #ff453a; }
.ms-cell.n1{ color: #0a84ff; } .ms-cell.n2{ color: #248a3d; }
.ms-cell.n3{ color: #ff3b30; } .ms-cell.n4{ color: #5e5ce6; }
.ms-cell.n5{ color: #b45309; } .ms-cell.n6{ color: #0891b2; }
.ms-cell.n7{ color: #6b7280; } .ms-cell.n8{ color: #111827; }
.ms-tip{ font-size: 11px; color: #8e8e93; }

/* 扫雷结果条 */
.ms-result{
  display: flex; align-items: center; gap: 14px; justify-content: center;
  padding: 10px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
}
.ms-result.good{ background: rgba(52,199,89,.14); color: #1d7a36; }
.ms-result.bad{ background: rgba(255,59,48,.12); color: #b3261e; }
.ms-again{
  border: 0; background: #0a84ff; color: #fff; border-radius: 8px;
  padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.ms-again:hover{ filter: brightness(1.05); }

/* 新建歌单输入框 */
.mu-side-title button{
  border: 0; background: none; color: #8e8e93; cursor: pointer;
  font-size: 14px; padding: 0 2px; font-family: inherit;
}
.mu-side-title button:hover{ color: #0a84ff; }
.mu-pl-new{ padding: 2px 0 4px; }
.mu-pl-new input{
  width: 100%; border: 1px solid #0a84ff; border-radius: 8px;
  padding: 6px 9px; font-size: 12px; outline: none; font-family: inherit;
  background: #fff; color: #1b1b1f;
}

/* 专辑 / 歌手 网格 */
.mu-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 14px; padding: 6px 2px 20px; }
.mu-card{ border: 0; background: none; padding: 0; cursor: pointer; text-align: left; font-family: inherit; }
.mu-card-cv{
  display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  color: #fff; font-size: 34px; font-weight: 600;
}
.mu-card-cv.round{ border-radius: 50%; }
.mu-card b{ display: block; margin-top: 8px; font-size: 13px; color: #1b1b1f; font-weight: 600; }
.mu-card em{ display: block; font-style: normal; font-size: 11.5px; color: #8e8e93; margin-top: 2px; }
.mu-card:hover .mu-card-cv{ filter: brightness(1.06); }


/* 邮件：在线状态绿字 */
.mail-foot.live{ color: #1f8f45; }
.mail-foot .mail-dot{
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #9aa0a6; margin-right: 6px; vertical-align: 1px;
}
.mail-foot.live .mail-dot{ background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.16); }


/* 红绿灯符号：鼠标进入窗口或标题栏时出现 */
.titlebar:hover .lights i::after,
.lights:hover i::after{ opacity: 1; }
.lights i{ transition: filter .12s ease; }
.lights i:hover{ filter: brightness(1.12) saturate(1.05); }
.lights .r:hover{ background: #ff6b64; }
.lights .y:hover{ background: #ffc94a; }
.lights .g:hover{ background: #3ad552; }

/* 手机端：单击即打开，不再显示选中重影 */
@media (max-width: 760px){
  .desk-icon.selected,
  .desk-icon:hover{
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
  .desk-icon:active{ transform: scale(.96); }
}


/* 启动画面：用头像代替符号 */
.boot-mark img{
  width: 76px; height: 76px; border-radius: 50%; display: block; object-fit: cover;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 40px rgba(120,190,255,.25);
}
.boot-mark{ display: grid; place-items: center; }


/* 启动画面：头像 */
img.boot-wolf{
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 34px rgba(120,190,255,.28);
}
