/* =========================================================================
   NEON STRIKE · macOS 风格大厅
   顶部菜单栏 / 霓虹壁纸 / 桌面卡片 / Dock / 可拖动窗口
   深色为默认（霓虹夜战），浅色跟随 :root[data-theme="light"]
   ========================================================================= */

:root {
  --mac-glass: rgba(11, 20, 30, .58);
  --mac-glass-strong: rgba(11, 20, 30, .86);
  --mac-border: rgba(120, 210, 255, .18);
  --mac-border-strong: rgba(120, 210, 255, .34);
  --mac-text: #e8f6ff;
  --mac-muted: #8aa5ba;
  --mac-hover: rgba(85, 224, 255, .12);
  --mac-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --mac-titlebar: linear-gradient(180deg, rgba(44, 74, 98, .42), rgba(10, 18, 27, .08));
}

:root[data-theme="light"] {
  --mac-glass: rgba(255, 255, 255, .66);
  --mac-glass-strong: rgba(255, 255, 255, .94);
  --mac-border: rgba(24, 70, 100, .16);
  --mac-border-strong: rgba(24, 120, 160, .34);
  --mac-text: #17303f;
  --mac-muted: #5f7688;
  --mac-hover: rgba(20, 140, 190, .10);
  --mac-shadow: 0 26px 70px rgba(24, 60, 90, .18);
  --mac-titlebar: linear-gradient(180deg, rgba(220, 238, 248, .9), rgba(245, 250, 253, .5));
}

/* ---------------------------------------------------------------- 桌面 */
#menu.overlay {
  display: none;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
}
#menu.overlay.show { display: block; }

.mac-desktop { color: var(--mac-text); }

.mac-wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 720px at 78% 14%, rgba(46, 230, 255, .30), transparent 60%),
    radial-gradient(980px 640px at 10% 88%, rgba(126, 90, 255, .28), transparent 62%),
    radial-gradient(760px 520px at 26% 8%, rgba(255, 90, 180, .15), transparent 60%),
    radial-gradient(620px 430px at 56% 62%, rgba(20, 120, 200, .13), transparent 72%),
    linear-gradient(160deg, #04070c 0%, #071119 46%, #04080f 100%);
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .62;
  pointer-events: none;
  animation: macAurora 20s ease-in-out infinite alternate;
}
.aurora.a1 { width: 560px; height: 420px; right: -90px; top: -80px; background: rgba(46, 230, 255, .5); }
.aurora.a2 { width: 520px; height: 460px; left: -120px; bottom: -120px; background: rgba(126, 90, 255, .42); animation-delay: -6s; }
.aurora.a3 { width: 380px; height: 300px; left: 38%; bottom: 4%; background: rgba(255, 92, 190, .22); animation-delay: -12s; }
@keyframes macAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, 36px, 0) scale(1.12); }
}
.wall-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(85, 224, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 224, 255, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 46%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 46%, #000 20%, transparent 78%);
}
.wall-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, transparent 34%, rgba(0, 0, 0, .58) 100%);
  pointer-events: none;
}

/* ---------------------------------------------------------------- 菜单栏 */
.mac-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  font-size: 12.5px;
  color: #cfe8f6;
  background: rgba(7, 13, 20, .58);
  border-bottom: 1px solid rgba(120, 210, 255, .12);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mb-left { gap: 2px; }
.mb-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 2px;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: #dff6ff;
}
.mb-logo-mark { color: var(--cyan); text-shadow: 0 0 12px rgba(85, 224, 255, .8); font-size: 14px; }
.mb-logo b { font-weight: 700; }

.mb-menu { position: relative; }
.mb-menu-btn,
.mb-status {
  font-family: inherit;
  font-size: 12.5px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.mb-menu-btn:hover, .mb-menu:hover .mb-menu-btn,
.mb-status:hover { background: var(--mac-hover); color: #fff; }

.mb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 208px;
  padding: 6px;
  background: var(--mac-glass-strong);
  border: 1px solid var(--mac-border-strong);
  border-radius: 11px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  z-index: 90;
}
.mb-menu:hover .mb-dropdown,
.mb-menu:focus-within .mb-dropdown { display: block; }
.mb-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 11px;
  text-align: left;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--mac-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.mb-dropdown button:hover { background: var(--mac-hover); color: #fff; }
.mb-sep { height: 1px; margin: 5px 8px; background: var(--mac-border); }

.mb-badge {
  display: none;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 9px;
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}
.mb-badge.show { display: inline-block; }
.mb-clock {
  padding: 0 4px 0 10px;
  font-size: 12px;
  letter-spacing: .5px;
  color: #9db8ca;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mb-theme { font-size: 13px; }

/* ---------------------------------------------------------------- 桌面 */
.desktop-area {
  position: absolute;
  inset: 34px 0 0;
  z-index: 10;
  pointer-events: none;
}
.desktop-area > * { pointer-events: auto; }

.desk-widget {
  position: absolute;
  background: var(--mac-glass);
  border: 1px solid var(--mac-border);
  border-radius: 18px;
  box-shadow: var(--mac-shadow);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

/* macOS 按钮 */
.mac-btn {
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: .5px;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--mac-text);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--mac-border);
  transition: background .14s, border-color .14s, color .14s, transform .1s;
  white-space: nowrap;
}
.mac-btn:hover { background: var(--mac-hover); border-color: rgba(85, 224, 255, .55); color: #fff; }
.mac-btn:active { transform: translateY(1px); }
.mac-btn:disabled { opacity: .6; cursor: default; }
.mac-btn.primary {
  color: #eefaff;
  font-weight: 600;
  background: linear-gradient(180deg, #2f86b4, #1b5a7d);
  border-color: rgba(85, 224, 255, .5);
  box-shadow: 0 6px 18px rgba(24, 100, 140, .25);
}
.mac-btn.primary:hover { background: linear-gradient(180deg, #3b9ac9, #21688e); color: #fff; }
.mac-btn.ghost { background: transparent; }
.mac-btn.ghost:hover { background: var(--mac-hover); }

/* 账号卡片 */
.account-widget {
  top: 22px;
  left: 22px;
  width: 336px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 12;
}
.aw-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aw-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #04202c;
  background: radial-gradient(circle at 32% 28%, #a8f4ff, #22a8d8 70%);
  box-shadow: 0 0 22px rgba(46, 230, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.aw-main { min-width: 0; flex: 1; }
.aw-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--mac-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-level {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  flex-wrap: wrap; row-gap: 6px;
}
.aw-level b { font-size: 12.5px; color: #7dffb0; letter-spacing: .5px; flex: none; }
.aw-level em { font-size: 11px; color: var(--mac-muted); font-style: normal; flex: none; margin-left: auto; }
.aw-level .aw-xp {
  flex: 1 0 100%; height: 5px; border-radius: 999px;
  background: rgba(120, 160, 190, .25); overflow: hidden;
  order: 3;
}
.aw-level .aw-xp i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #3fd68a, #7dffb0); transition: width .3s;
}
.aw-sign {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--mac-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-btns { display: flex; gap: 8px; }
.aw-btns .mac-btn { flex: 1; padding: 8px 10px; font-size: 12px; }

/* 排行榜卡片 */
.ranking-widget {
  top: 22px;
  right: 22px;
  width: 322px;
  padding: 14px 16px 16px;
  z-index: 12;
}
.rw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rw-title { font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.rw-tip { font-size: 10.5px; color: var(--mac-muted); }
.rw-tabs { display: flex; gap: 6px; margin: 10px 0; }
.rw-tab {
  flex: 1;
  padding: 5px 0;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--mac-muted);
  background: transparent;
  border: 1px solid var(--mac-border);
  border-radius: 7px;
  cursor: pointer;
  transition: .12s;
}
.rw-tab:hover { color: var(--mac-text); border-color: var(--mac-border-strong); }
.rw-tab.active {
  color: #062330;
  font-weight: 700;
  background: linear-gradient(180deg, #9beaff, #4fc8ee);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(46, 230, 255, .35);
}
.rw-body {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(120, 210, 255, .22);
  border-radius: 11px;
  padding: 10px;
}
.rw-empty { text-align: center; font-size: 12px; color: var(--mac-muted); line-height: 1.7; }
.rw-empty span { display: block; font-size: 22px; filter: grayscale(.2); margin-bottom: 2px; }
.rw-empty i { font-style: normal; font-size: 10.5px; opacity: .8; }

/* 中央开始游戏 */
.hero-start {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 430px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  color: var(--mac-text);
  background: transparent;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6);
  transition: transform .18s ease;
}
.hero-start:hover { transform: translate(-50%, -50%) scale(1.035); }
.hero-start:active { transform: translate(-50%, -50%) scale(.99); }
.hs-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 255, .16), transparent 62%);
  box-shadow: 0 0 80px rgba(46, 230, 255, .18), inset 0 0 60px rgba(46, 230, 255, .12);
  border: 1px solid rgba(120, 230, 255, .16);
  animation: heroPulse 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroPulse {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: .95; transform: translate(-50%, -50%) scale(1.04); }
}
.hs-brand {
  font-size: 11px;
  letter-spacing: 7px;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(85, 224, 255, .6);
}
.hs-title {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: 12px;
  line-height: 1.06;
  text-indent: 12px;
  color: #f2fbff;
  text-shadow: 0 0 46px rgba(85, 224, 255, .5), 0 6px 30px rgba(0, 0, 0, .8);
}
.hs-sub { font-size: 12.5px; letter-spacing: 4px; color: var(--mac-muted); }

/* 最近打开 */
.recent-bar {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 48px);
  padding: 8px 12px;
  background: var(--mac-glass);
  border: 1px solid var(--mac-border);
  border-radius: 14px;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--mac-shadow);
  z-index: 11;
}
.recent-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--mac-muted);
  white-space: nowrap;
  padding-left: 4px;
}
.recent-items { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.recent-empty { font-size: 11px; color: var(--mac-muted); opacity: .7; padding-right: 4px; }
.recent-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--mac-text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--mac-border);
  border-radius: 9px;
  cursor: pointer;
  transition: .12s;
}
.recent-chip:hover { background: var(--mac-hover); border-color: var(--mac-border-strong); }
.recent-chip i { font-style: normal; font-size: 13px; }

/* ---------------------------------------------------------------- Dock */
.mac-dock {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: calc(100vw - 24px);
  padding: 9px 13px;
  background: rgba(9, 17, 26, .62);
  border: 1px solid rgba(120, 210, 255, .2);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.dock-item {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 1;
  color: inherit;
  background: linear-gradient(180deg, rgba(64, 112, 145, .42), rgba(10, 22, 33, .5));
  border: 1px solid rgba(120, 210, 255, .18);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), border-color .16s, box-shadow .16s;
  user-select: none;
}
.dock-item:hover {
  transform: translateY(-11px) scale(1.14);
  border-color: rgba(85, 224, 255, .6);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .5), 0 0 26px rgba(46, 230, 255, .22);
}
.dock-item:active { transform: translateY(-4px) scale(1.02); }
.dock-item.running::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.dock-badge {
  display: none;
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  font-family: "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.dock-badge.show { display: block; }
#friendBtn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  letter-spacing: 0;
}
#friendBtn .badge.show { display: inline-block; }

/* ---------------------------------------------------------------- 窗口 */
.mac-window {
  position: absolute;
  display: none;
  flex-direction: column;
  min-width: 320px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 120px);
  background: var(--mac-glass-strong);
  border: 1px solid var(--mac-border-strong);
  border-radius: 14px;
  box-shadow: 0 34px 96px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  overflow: hidden;
  z-index: 30;
}
.mac-window.open { display: flex; animation: macWinPop .16s ease-out; }
.mac-window.min { display: none; }
.mac-window.focused {
  border-color: rgba(85, 224, 255, .46);
  box-shadow: 0 36px 110px rgba(0, 0, 0, .7), 0 0 0 1px rgba(85, 224, 255, .22);
}
@keyframes macWinPop {
  from { opacity: 0; transform: scale(.965) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.win-titlebar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: var(--mac-titlebar);
  border-bottom: 1px solid var(--mac-border);
  cursor: grab;
  touch-action: none;
}
.win-titlebar:active { cursor: grabbing; }
.win-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--mac-text);
  white-space: nowrap;
}
.win-sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--mac-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-body {
  flex: 1;
  min-height: 0;
  padding: 16px 18px 18px;
  overflow: auto;
}
.win-footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--mac-border);
  background: rgba(255, 255, 255, .02);
}
.win-foot-hint { font-size: 11.5px; color: var(--mac-muted); }
.win-start {
  flex: none;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-indent: 5px;
  box-shadow: 0 10px 30px rgba(30, 110, 150, .35);
}
/* 覆盖旧版 #startBtn 的整宽/上边距规则 */
.mac-window .win-footer #startBtn {
  width: auto;
  margin-top: 0;
  padding: 12px 30px;
  font-size: 14px;
  letter-spacing: 5px;
  text-indent: 5px;
}

/* 窗口尺寸 */
#win-game { width: min(1020px, 92vw); height: min(800px, calc(100vh - 118px)); }
#win-chat { width: min(830px, 94vw); height: min(580px, calc(100vh - 126px)); }
#win-ranking { width: min(560px, 92vw); max-height: 560px; }
#win-settings { width: min(690px, 94vw); height: min(760px, calc(100vh - 118px)); }
#win-weapons { width: min(760px, 94vw); height: min(620px, calc(100vh - 124px)); }
#win-mail { width: min(660px, 92vw); max-height: 600px; }
#win-photos { width: min(780px, 94vw); height: min(590px, calc(100vh - 124px)); }
#win-account { width: min(540px, 92vw); max-height: 620px; }

/* ---------------------------------------------------------------- 聊天 */
.chat-body {
  display: flex;
  padding: 0;
  overflow: hidden;
}
.chat-side {
  flex: none;
  width: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid var(--mac-border);
  background: rgba(255, 255, 255, .025);
}
.chat-side-title {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--mac-muted);
  padding: 0 8px 2px;
}
.chat-tabs { display: flex; flex-direction: column; gap: 4px; }
.chat-tab {
  padding: 8px 10px;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  color: var(--mac-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: .12s;
}
.chat-tab:hover { background: var(--mac-hover); color: var(--mac-text); }
.chat-tab.active { background: var(--mac-hover); color: var(--cyan); font-weight: 700; }
.chat-side-foot {
  margin-top: auto;
  padding: 8px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--mac-muted);
  opacity: .75;
}
.chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.55;
}
.chat-row:hover { background: rgba(255, 255, 255, .035); }
.chat-row.mine { background: rgba(85, 224, 255, .07); }
.chat-name {
  flex: none;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}
.chat-row.mine .chat-name { color: #7ff0c0; }
.chat-text { flex: 1; min-width: 0; color: var(--mac-text); word-break: break-word; white-space: pre-wrap; }
.chat-time { flex: none; font-size: 10px; color: var(--mac-muted); opacity: .7; font-variant-numeric: tabular-nums; }
.chat-empty {
  margin: auto;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--mac-muted);
}
.chat-empty b { display: block; font-size: 24px; margin-bottom: 2px; filter: grayscale(.3); }
.chat-hint {
  min-height: 18px;
  padding: 0 16px;
  font-size: 11px;
  color: #ff9d9d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--mac-border);
}
.chat-compose input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--mac-text);
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--mac-border);
  border-radius: 9px;
  outline: none;
}
.chat-compose input:focus { border-color: var(--mac-border-strong); box-shadow: 0 0 16px rgba(46, 230, 255, .12); }
.chat-compose .mac-btn { flex: none; padding: 9px 18px; }

/* ---------------------------------------------------------------- 排行榜窗口 */
.rank-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.rank-tab {
  flex: 1;
  padding: 8px 0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--mac-muted);
  background: transparent;
  border: 1px solid var(--mac-border);
  border-radius: 9px;
  cursor: pointer;
  transition: .12s;
}
.rank-tab:hover { color: var(--mac-text); border-color: var(--mac-border-strong); }
.rank-tab.active {
  color: #062330;
  font-weight: 700;
  background: linear-gradient(180deg, #9beaff, #4fc8ee);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(46, 230, 255, .3);
}
.rank-empty {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: 1px dashed var(--mac-border);
  border-radius: 14px;
  padding: 24px;
}
.rank-empty-icon { font-size: 40px; opacity: .8; }
.rank-empty-title { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--mac-text); }
.rank-empty-sub { font-size: 11.5px; color: var(--mac-muted); }

/* ---------------------------------------------------------------- 设置 */
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-grid.theme-grid-3 { grid-template-columns: repeat(3, 1fr); }
.themeOpt {
  padding: 13px 14px;
  text-align: left;
  font-family: inherit;
  color: var(--mac-text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--mac-border);
  border-radius: 11px;
  cursor: pointer;
  transition: .12s;
}
.themeOpt:hover { border-color: var(--mac-border-strong); }
.themeOpt.active {
  border-color: var(--cyan);
  background: rgba(46, 230, 255, .12);
  box-shadow: 0 0 20px rgba(46, 230, 255, .18);
}
.themeOpt b { display: block; font-size: 13px; letter-spacing: 1px; }
.themeOpt span { display: block; margin-top: 4px; font-size: 11px; color: var(--mac-muted); }

/* ---------------------------------------------------------------- 武器库 */
.weapons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.weapon-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--mac-border);
  border-radius: 12px;
}
.wIcon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 11px;
  background: rgba(46, 230, 255, .1);
  border: 1px solid rgba(85, 224, 255, .22);
}
.wBody { min-width: 0; }
.wName { font-size: 13.5px; font-weight: 700; letter-spacing: .5px; color: var(--mac-text); }
.wMeta { margin-top: 3px; font-size: 10.5px; letter-spacing: .5px; color: var(--cyan); opacity: .9; }
.wDesc { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--mac-muted); }

/* ---------------------------------------------------------------- 邮件 */
.mail-list { display: flex; flex-direction: column; gap: 8px; }
.mail-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--mac-border);
  border-radius: 11px;
  cursor: pointer;
  transition: .12s;
}
.mail-item:hover { border-color: var(--mac-border-strong); background: var(--mac-hover); }
.mail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mailTitle { font-size: 13px; font-weight: 700; color: var(--mac-text); }
.mailDate { flex: none; font-size: 10.5px; color: var(--mac-muted); }
.mailPreview { margin-top: 4px; font-size: 11.5px; color: var(--mac-muted); line-height: 1.6; }
.mailBody { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--mac-border); font-size: 12px; line-height: 1.75; color: var(--mac-text); }
.mail-item.open .mailBody { display: block; }
.mail-item.open .mailPreview { display: none; }

/* ---------------------------------------------------------------- 相册 */
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-card { min-width: 0; }
.photo-thumb {
  position: relative;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, var(--c, #2ee6ff) 0%, transparent 46%),
    linear-gradient(135deg, var(--a, #06141c), var(--b, #0d3a4c));
  border: 1px solid var(--mac-border);
}
.photo-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 16px);
}
.photo-cap { margin-top: 6px; font-size: 11.5px; color: var(--mac-muted); letter-spacing: .5px; }

/* ---------------------------------------------------------------- 账号窗口 */
.account-body { display: flex; flex-direction: column; gap: 14px; }
.acc-hero { display: flex; align-items: center; gap: 14px; }
.acc-avatar {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #04202c;
  background: radial-gradient(circle at 32% 28%, #a8f4ff, #22a8d8 70%);
  box-shadow: 0 0 24px rgba(46, 230, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.acc-hero-info { min-width: 0; flex: 1; }
.acc-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; color: var(--mac-text); }
.acc-info { margin-top: 4px; font-size: 12px; color: var(--mac-muted); line-height: 1.5; }
.acc-info b { color: var(--cyan); }
.acc-info .accStats { display: block; margin: 4px 0 0; color: var(--mac-muted); }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acc-stat {
  padding: 10px 8px;
  text-align: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--mac-border);
  border-radius: 10px;
}
.acc-stat b { display: block; font-size: 19px; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.acc-stat span { display: block; margin-top: 2px; font-size: 10.5px; letter-spacing: 1px; color: var(--mac-muted); }
.acc-sign-row { display: flex; align-items: center; gap: 8px; }
.acc-sign-row label { flex: none; font-size: 11px; letter-spacing: 2px; color: var(--mac-muted); }
.acc-sign-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--mac-text);
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--mac-border);
  border-radius: 9px;
  outline: none;
}
.acc-sign-row input:focus { border-color: var(--mac-border-strong); }
.acc-sign-row .mac-btn { flex: none; }
.acc-tip { font-size: 10.5px; line-height: 1.6; color: var(--mac-muted); opacity: .8; }
.btnRow { display: flex; gap: 10px; margin-top: 2px; }
.btnRow .mac-btn { flex: 1; padding: 11px 12px; }
.mac-btn.hide { display: none; }

/* ---------------------------------------------------------------- 弹窗（登录 / 好友）macOS 化 */
#authModal, #friendModal {
  z-index: 70;
  background: rgba(3, 7, 12, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#authModal .card.mac-dialog,
#friendModal .card.mac-dialog {
  position: relative;
  padding-top: 40px;
  background: var(--mac-glass-strong);
  border: 1px solid var(--mac-border-strong);
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}




#authModal .card.mac-dialog .brand,
#friendModal .card.mac-dialog .brand { margin-top: 2px; }

/* ---------------------------------------------------------------- 浅色主题 */
:root[data-theme="light"] .mac-wallpaper {
  background:
    radial-gradient(1100px 640px at 76% 16%, rgba(120, 220, 250, .5), transparent 64%),
    radial-gradient(880px 560px at 12% 86%, rgba(150, 170, 255, .38), transparent 66%),
    radial-gradient(680px 460px at 26% 10%, rgba(255, 190, 220, .32), transparent 62%),
    linear-gradient(160deg, #eef6fb 0%, #dcebf5 48%, #e9f2f8 100%);
}
:root[data-theme="light"] .wall-grid {
  background-image:
    linear-gradient(rgba(20, 120, 170, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 120, 170, .08) 1px, transparent 1px);
}
:root[data-theme="light"] .wall-vignette {
  background: radial-gradient(ellipse at 50% 44%, transparent 40%, rgba(120, 150, 175, .28) 100%);
}
:root[data-theme="light"] .mac-menubar {
  background: rgba(250, 253, 255, .62);
  border-bottom-color: rgba(24, 80, 110, .14);
  color: #26404f;
}
:root[data-theme="light"] .mb-logo { color: #17303f; }
:root[data-theme="light"] .mb-menu-btn:hover,
:root[data-theme="light"] .mb-menu:hover .mb-menu-btn,
:root[data-theme="light"] .mb-status:hover { color: #0b2534; }
:root[data-theme="light"] .mb-clock { color: #5f7688; }
:root[data-theme="light"] .mb-dropdown button:hover { color: #0b2534; }

:root[data-theme="light"] .aw-avatar,
:root[data-theme="light"] .acc-avatar {
  color: #062330;
  box-shadow: 0 0 20px rgba(46, 180, 230, .35), inset 0 1px 0 rgba(255, 255, 255, .8);
}
:root[data-theme="light"] .hs-title {
  color: #0f2a3a;
  text-shadow: 0 0 40px rgba(46, 200, 240, .4), 0 6px 26px rgba(255, 255, 255, .6);
}
:root[data-theme="light"] .hs-brand { color: #0b7d9e; }
:root[data-theme="light"] .hs-ring {
  background: radial-gradient(circle, rgba(46, 200, 240, .16), transparent 62%);
  box-shadow: 0 0 70px rgba(46, 200, 240, .16), inset 0 0 60px rgba(46, 200, 240, .12);
  border-color: rgba(20, 140, 190, .22);
}
:root[data-theme="light"] .mac-dock {
  background: rgba(250, 253, 255, .66);
  border-color: rgba(24, 80, 110, .18);
  box-shadow: 0 26px 60px rgba(24, 60, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .8);
}
:root[data-theme="light"] .dock-item {
  background: linear-gradient(180deg, #ffffff, #eaf3f9);
  border-color: rgba(24, 80, 110, .16);
}
:root[data-theme="light"] .dock-item:hover { border-color: rgba(20, 140, 190, .5); box-shadow: 0 16px 26px rgba(24, 60, 90, .2); }
:root[data-theme="light"] .mac-btn {
  color: #1d2c38;
  background: #fff;
  border-color: rgba(24, 80, 110, .2);
}
:root[data-theme="light"] .mac-btn:hover { background: #eaf5fb; color: #0d2536; }
:root[data-theme="light"] .mac-btn.primary {
  color: #eefaff;
  background: linear-gradient(180deg, #2c82a8, #1b5f80);
  border-color: rgba(24, 90, 120, .35);
}
:root[data-theme="light"] .mac-btn.primary:hover { background: linear-gradient(180deg, #3595bd, #216b8e); }
:root[data-theme="light"] .mac-window {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 80px rgba(24, 60, 90, .22);
}
:root[data-theme="light"] .mac-window.focused { box-shadow: 0 32px 90px rgba(24, 60, 90, .26), 0 0 0 1px rgba(20, 140, 190, .2); }
:root[data-theme="light"] .win-titlebar { border-bottom-color: rgba(24, 80, 110, .12); }
:root[data-theme="light"] .win-title { color: #17303f; }
:root[data-theme="light"] .win-sub { color: #5f7688; }
:root[data-theme="light"] .chat-side { background: rgba(240, 247, 251, .6); }
:root[data-theme="light"] .chPreviewBox {
  border-color: rgba(24, 70, 100, .18);
  background: radial-gradient(circle at 50% 45%, #e6f2fa, #f7fbfe 72%);
}
:root[data-theme="light"] .win-footer { background: rgba(240, 247, 251, .5); }
:root[data-theme="light"] .chat-compose input,
:root[data-theme="light"] .acc-sign-row input {
  background: rgba(255, 255, 255, .92);
  color: #17303f;
  border-color: rgba(24, 70, 100, .2);
}
:root[data-theme="light"] .acc-stat,
:root[data-theme="light"] .weapon-card,
:root[data-theme="light"] .mail-item,
:root[data-theme="light"] .themeOpt {
  background: #f7fbfe;
  border-color: rgba(24, 70, 100, .16);
}
:root[data-theme="light"] .themeOpt.active {
  background: #e2f4fd;
  border-color: rgba(20, 140, 190, .55);
  box-shadow: 0 0 18px rgba(46, 200, 240, .15);
}
:root[data-theme="light"] .mail-item:hover { background: #eef7fc; }
:root[data-theme="light"] .photo-thumb { border-color: rgba(24, 70, 100, .16); }
:root[data-theme="light"] .chat-row:hover { background: rgba(24, 70, 100, .04); }
:root[data-theme="light"] .chat-row.mine { background: rgba(46, 200, 240, .10); }
:root[data-theme="light"] .chat-name { color: #0b7d9e; }
:root[data-theme="light"] .chat-row.mine .chat-name { color: #0b8a63; }
:root[data-theme="light"] .wMeta { color: #0b7d9e; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .account-widget { width: 312px; }
}
@media (max-width: 900px) {
  .ranking-widget { display: none; }
}
@media (max-width: 820px) {
  .mb-menu { display: none; }
  .recent-bar { display: none; }
  .account-widget { left: 12px; top: 12px; width: calc(100vw - 24px); max-width: 420px; }
  .hero-start { top: 50%; width: calc(100vw - 48px); }
  .hs-title { font-size: 40px; letter-spacing: 8px; text-indent: 8px; }
  .hs-ring { width: 230px; height: 230px; }
  .dock-item { width: 44px; height: 44px; font-size: 22px; }
  .mac-dock { gap: 6px; padding: 8px 10px; }
  .win-title { letter-spacing: .5px; }
  .win-sub { display: none; }
  .weapons-grid, .theme-grid, .theme-grid.theme-grid-3 { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   访达（本人账号） / 启动台（更多 App） / App 图标
   ========================================================================= */

/* 桌面账号卡片的访达头像 */
.aw-avatar.aw-finder {
  background: none;
  box-shadow: none;
  border-radius: 12px;
  color: transparent;
  font-size: 0;
}
.aw-avatar.aw-finder .finder-mark {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  filter: drop-shadow(0 4px 14px rgba(20, 110, 220, .45));
}

/* Dock 里的访达 / 启动台 */
.dock-item.dock-finder,
.dock-item.dock-launchpad {
  font-size: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.dock-item.dock-finder:hover,
.dock-item.dock-launchpad:hover {
  background: rgba(255, 255, 255, .06);
  border-color: transparent;
  box-shadow: none;
}
.dock-finder .finder-mark {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 9px;
  filter: drop-shadow(0 4px 12px rgba(20, 110, 220, .5));
}
.dock-launchpad {
  background: linear-gradient(160deg, #d9e4ef, #7d90a5) !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  font-size: 22px !important;
  color: #1d3040;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px rgba(0, 0, 0, .35);
}
.dock-sep {
  width: 1px;
  height: 38px;
  align-self: center;
  margin: 0 2px;
  background: rgba(120, 210, 255, .22);
}

/* App 图标（Dock / 启动台 / 最近打开 共用配色） */
.icon-game { background: linear-gradient(160deg, #ffb066, #e0443e) !important; }
.icon-chat { background: linear-gradient(160deg, #4ee0b0, #0f9f7a) !important; }
.icon-friends { background: linear-gradient(160deg, #7fc9ff, #2a6ee0) !important; }
.icon-ranking { background: linear-gradient(160deg, #ffd36e, #e08a1e) !important; }
.icon-weapons { background: linear-gradient(160deg, #c39bff, #6a3dd8) !important; }
.icon-events { background: linear-gradient(160deg, #7dffb0, #1f9d63) !important; }
.icon-mail { background: linear-gradient(160deg, #8fc0ff, #2b6fd6) !important; }
.icon-photos { background: linear-gradient(160deg, #ff9ecd, #c53d9e) !important; }
.icon-settings { background: linear-gradient(160deg, #c6d3e2, #5a6d82) !important; }
.dock-item[class*="icon-"] > svg { width: 22px; height: 22px; display: block; }
.dock-item[class*="icon-"] {
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px rgba(0, 0, 0, .35);
}
.dock-item[class*="icon-"]:hover {
  border-color: rgba(255, 255, 255, .45);
}

/* 最近打开的小图标 */
.recent-chip .recent-ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-style: normal;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

/* ---------------- 启动台 ---------------- */
.launchpad {
  position: absolute;
  inset: 0;
  z-index: 66;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 12, .52);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}
.launchpad.show { display: flex; animation: lpIn .18s ease-out; }
@keyframes lpIn {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}
.lp-inner {
  width: min(940px, 90vw);
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  overflow: auto;
  padding: 20px 0;
}
.lp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 248px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(12, 22, 32, .6);
  border: 1px solid rgba(120, 210, 255, .22);
  backdrop-filter: blur(20px);
}
.lp-search-icon { font-size: 12px; opacity: .8; }
.lp-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--mac-text);
}
.lp-search input::placeholder { color: rgba(200, 225, 245, .5); }
.lp-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px 18px;
  justify-items: center;
}
.lp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
  color: #eaf6ff;
  transition: background .12s;
}
.lp-item:hover { background: rgba(255, 255, 255, .06); }
.lp-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 10px 24px rgba(0, 0, 0, .42);
  transition: transform .15s cubic-bezier(.2, .8, .2, 1);
}
.lp-item:hover .lp-icon { transform: scale(1.1); }
.lp-icon .finder-mark { width: 64px; height: 64px; display: block; border-radius: 16px; }
.lp-name {
  font-size: 12px;
  letter-spacing: .5px;
  color: #eaf6ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  white-space: nowrap;
}
.lp-empty {
  grid-column: 1 / -1;
  padding: 34px;
  font-size: 12.5px;
  color: var(--mac-muted);
}
.lp-hint { font-size: 11px; letter-spacing: 1px; color: rgba(215, 238, 255, .55); }

/* ---------------- 访达窗口 ---------------- */
#win-account { width: min(780px, 94vw); height: min(560px, calc(100vh - 130px)); max-height: none; }
.win-body.finder-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.finder-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--mac-border);
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
  color: var(--mac-muted);
}
.ft-arrows { letter-spacing: 4px; opacity: .6; font-size: 14px; }
.ft-title { flex: 1; text-align: center; font-weight: 600; color: var(--mac-text); letter-spacing: .5px; }
.ft-search { opacity: .6; font-size: 12px; }
.finder-main { flex: 1; min-height: 0; display: flex; }
.finder-side {
  flex: none;
  width: 176px;
  padding: 8px 8px 12px;
  border-right: 1px solid var(--mac-border);
  background: rgba(255, 255, 255, .03);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fs-group {
  padding: 9px 9px 3px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--mac-muted);
}
.finder-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
  color: var(--mac-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.finder-side-item:hover { background: var(--mac-hover); }
.finder-side-item.active { background: rgba(85, 224, 255, .14); color: var(--cyan); font-weight: 600; }
.fs-note { padding: 6px 9px; font-size: 11px; line-height: 1.55; color: var(--mac-muted); }
.finder-content { flex: 1; min-width: 0; overflow: auto; padding: 18px 20px; }
.finder-pane { display: none; }
.finder-pane.active { display: block; }
.finder-pane .acc-hero { margin-bottom: 16px; }
.finder-pane .btnRow { margin-top: 14px; }
.pane-title {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--mac-muted);
}
.finder-recents { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-recent-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 12px;
  color: var(--mac-text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--mac-border);
  border-radius: 9px;
  cursor: pointer;
}
.finder-recent-item:hover { background: var(--mac-hover); border-color: var(--mac-border-strong); }
.finder-empty { font-size: 12px; color: var(--mac-muted); }

/* 启动台 / 访达的浅色主题 */
:root[data-theme="light"] .launchpad {
  background: rgba(235, 244, 251, .55);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
}
:root[data-theme="light"] .lp-search { background: rgba(255, 255, 255, .7); border-color: rgba(24, 70, 100, .18); }
:root[data-theme="light"] .lp-search input { color: #17303f; }
:root[data-theme="light"] .lp-search input::placeholder { color: #78909f; }
:root[data-theme="light"] .lp-name { color: #17303f; text-shadow: 0 1px 6px rgba(255, 255, 255, .7); }
:root[data-theme="light"] .lp-hint { color: #5f7688; }
:root[data-theme="light"] .lp-item:hover { background: rgba(24, 70, 100, .06); }
:root[data-theme="light"] .finder-side { background: rgba(240, 247, 251, .65); }
:root[data-theme="light"] .finder-toolbar { background: rgba(250, 253, 255, .6); }
:root[data-theme="light"] .finder-recent-item { background: #f7fbfe; border-color: rgba(24, 70, 100, .16); }
:root[data-theme="light"] .finder-side-item.active { background: rgba(46, 200, 240, .16); color: #0b7d9e; }
:root[data-theme="light"] .dock-item[class*="icon-"] > svg { width: 22px; height: 22px; display: block; }
.dock-item[class*="icon-"] { border-color: rgba(24, 70, 100, .12); }
:root[data-theme="light"] .dock-sep { background: rgba(24, 70, 100, .18); }

@media (max-width: 820px) {
  .lp-grid { grid-template-columns: repeat(4, 1fr); gap: 20px 12px; }
  .lp-icon { width: 54px; height: 54px; font-size: 26px; }
  .lp-icon .finder-mark { width: 54px; height: 54px; }
  .dock-sep { height: 30px; }
  #win-account { width: calc(100vw - 24px); height: min(520px, calc(100vh - 120px)); }
  .finder-side { width: 140px; }
}

/* 矢量 App 图标：不依赖系统 emoji 字体 */
.dock-item .app-glyph {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}
.dock-item .app-glyph svg { width: 26px; height: 26px; display: block; }
.lp-icon { color: #fff; }
.lp-icon svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .22)); }
.recent-ico { color: #fff; }
.recent-ico svg { width: 13px; height: 13px; display: block; }
.finder-recent-item .recent-ico { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.launchpad-mark { width: 28px; height: 28px; display: block; color: #1d3040; }
.dock-item.dock-launchpad { font-size: 0; }

/* =========================================================================
   社交头像：账号卡片 / Dock / 访达 / 启动台 / 聊天与好友
   ========================================================================= */
.social-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(0, 0, 0, .3);
  user-select: none;
}
.aw-avatar.social-avatar { width: 44px; height: 44px; font-size: 18px; cursor: pointer; transition: transform .12s; }
.aw-avatar.social-avatar:hover { transform: scale(1.06); }
.acc-avatar.social-avatar { width: 58px; height: 58px; font-size: 24px; cursor: pointer; transition: transform .12s; }
.acc-avatar.social-avatar:hover { transform: scale(1.04); }
.dock-avatar { width: 42px; height: 42px; font-size: 18px; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px rgba(255, 255, 255, .26), 0 4px 14px rgba(0, 0, 0, .32); }
.app-avatar { width: 64px; height: 64px; font-size: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; text-shadow: 0 2px 4px rgba(0, 0, 0, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px rgba(0, 0, 0, .35); }

.chat-avatar {
  flex: none;
  align-self: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, #8fd8ff, #2a6ee0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.friend-avatar {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(160deg, #8fd8ff, #2a6ee0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* 头像选择浮层 */
.avatar-picker {
  position: absolute;
  inset: 0;
  z-index: 76;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 12, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.avatar-picker.show { display: flex; }
.avatar-card {
  width: min(460px, 92vw);
  padding: 18px 20px 16px;
  background: var(--mac-glass-strong);
  border: 1px solid var(--mac-border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}
.ap-title { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--mac-text); }
.ap-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.ap-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--mac-border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s;
}
.ap-item:hover { border-color: var(--cyan); transform: scale(1.06); }
.ap-item.active { border-color: var(--cyan); background: rgba(85, 224, 255, .16); box-shadow: 0 0 14px rgba(85, 224, 255, .25); }
.ap-hint { margin-top: 12px; min-height: 16px; font-size: 11px; line-height: 1.6; color: var(--mac-muted); }
.ap-actions { margin-top: 14px; display: flex; justify-content: space-between; gap: 10px; }

:root[data-theme="light"] .avatar-card { background: rgba(255, 255, 255, .96); box-shadow: 0 30px 80px rgba(24, 60, 90, .25); }
:root[data-theme="light"] .ap-item { background: #f7fbfe; border-color: rgba(24, 70, 100, .16); }
:root[data-theme="light"] .ap-item.active { background: #e2f4fd; border-color: rgba(20, 140, 190, .55); }
:root[data-theme="light"] .chat-avatar,
:root[data-theme="light"] .friend-avatar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }


/* Dock 图标上方显示 App 名字（macOS 悬停标签） */
.dock-item { position: relative; }
.dock-item .dock-label {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px);
  padding: 3px 9px; border-radius: 8px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .5px; color: #eaf6ff;
  background: rgba(12, 22, 32, .92); border: 1px solid rgba(120, 200, 240, .28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 3;
}
.dock-item .dock-label::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(12, 22, 32, .92);
}
.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 窗口边缘缩放手柄：四条边 + 四个角 */
.mac-window .rz { position: absolute; z-index: 6; }
.mac-window .rz-n { top: 0; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.mac-window .rz-s { bottom: 0; left: 10px; right: 10px; height: 6px; cursor: ns-resize; }
.mac-window .rz-w { left: 0; top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.mac-window .rz-e { right: 0; top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; }
.mac-window .rz-nw { left: 0; top: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.mac-window .rz-ne { right: 0; top: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.mac-window .rz-sw { left: 0; bottom: 0; width: 12px; height: 12px; cursor: nesw-resize; }

/* 窗口右下角缩放手柄 */
.mac-window .win-resize {
  position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px;
  cursor: nwse-resize; z-index: 7; opacity: .5;
  background:
    linear-gradient(135deg, transparent 46%, rgba(180, 225, 245, .75) 46%, rgba(180, 225, 245, .75) 54%, transparent 54%),
    linear-gradient(135deg, transparent 70%, rgba(180, 225, 245, .5) 70%, rgba(180, 225, 245, .5) 78%, transparent 78%);
}
.mac-window:hover .win-resize { opacity: .9; }
.mac-window.resizing { transition: none; }


/* 可点击元素统一用「手」光标（浏览器默认按钮是箭头） */
.mac-desktop button,
.mac-desktop [data-open],
.mac-desktop .chat-tab,
.mac-desktop .rank-tab,
.mac-desktop .mac-btn { cursor: pointer; }

/* macOS 的红绿灯是普通箭头，不是手型，也没有提示气泡 */
.mac-desktop .tl,
.mac-desktop .tl:hover { cursor: default; }





/* 每个 App 窗口左上角的「返回」按钮 */
.win-back {
  flex: none;
  height: 24px;
  padding: 0 10px;
  margin-right: 4px;
  border-radius: 8px;
  border: 1px solid var(--mac-border);
  background: rgba(255, 255, 255, .07);
  color: inherit;
  font-size: 12px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .12s, transform .12s;
}
.win-back:hover { background: rgba(255, 255, 255, .16); transform: translateX(-1px); }
.win-back:active { transform: scale(.96); }
:root[data-theme="light"] .win-back { background: rgba(20, 60, 90, .06); }
:root[data-theme="light"] .win-back:hover { background: rgba(20, 60, 90, .14); }


/* ================= 设置窗口：操作说明卡片 ================= */
.win-settings .section { margin-bottom: 18px; }
.ctrlGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ctrlCard {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(120, 190, 230, .05);
  border: 1px solid rgba(120, 190, 230, .14);
}
.ctrlCardTitle {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mac-accent, #5fe3ff);
  margin-bottom: 7px;
  opacity: .9;
}
.ctrlLine {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(214, 234, 246, .86);
}
.ctrlLine .keys {
  flex: none;
  min-width: 42px;
  text-align: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(95, 227, 255, .1);
  border: 1px solid rgba(95, 227, 255, .28);
  color: #bff4ff;
  font-size: 11.5px;
  letter-spacing: .5px;
}
.ctrlLine em { font-style: normal; color: rgba(190, 214, 230, .75); }

/* ================= 按键设置：分组 ================= */
.bindGrid { display: flex; flex-direction: column; gap: 12px; }
.bindGroup {}
.bindGroupTitle {
  font-size: 11.5px;
  letter-spacing: 3px;
  color: rgba(150, 200, 225, .7);
  margin: 2px 0 7px;
  padding-left: 2px;
}
.bindGroupBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.bindRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(120, 190, 230, .045);
  border: 1px solid rgba(120, 190, 230, .12);
  transition: background .12s, border-color .12s;
}
.bindRow:hover { background: rgba(120, 190, 230, .1); border-color: rgba(120, 190, 230, .28); }
.bindRow .bName { font-size: 12.5px; color: rgba(214, 234, 246, .88); }
.bindKey {
  flex: none;
  min-width: 62px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(95, 227, 255, .3);
  background: rgba(95, 227, 255, .1);
  color: #bff4ff;
  font-size: 12px;
  letter-spacing: .5px;
  cursor: pointer;
  transition: background .12s, transform .12s;
}
.bindKey:hover { background: rgba(95, 227, 255, .2); transform: translateY(-1px); }
.bindKey.isMouse { border-color: rgba(255, 196, 120, .45); background: rgba(255, 196, 120, .12); color: #ffd9a0; }
.bindKey.listening {
  border-color: rgba(120, 255, 200, .8);
  background: rgba(120, 255, 200, .18);
  color: #b6ffe4;
  animation: bindPulse 1s ease-in-out infinite;
}
@keyframes bindPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.bindActions { margin-top: 12px; }


/* 武器库：3D 渲染缩略图 */
.wIcon .wThumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
.weapon-card .wIcon { padding: 4px; width: 64px; height: 64px; border-radius: 14px; }


/* ================= 武器库 · 背包 ================= */
.bpBar {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(95, 227, 255, .06);
  border: 1px solid rgba(95, 227, 255, .2);
  margin-bottom: 2px;
}
.bpBarTitle {
  font-size: 11.5px;
  letter-spacing: 2px;
  color: rgba(150, 210, 235, .85);
  margin-bottom: 8px;
}
.bpSlots { display: flex; flex-wrap: wrap; gap: 7px; }
.bpSlot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(95, 227, 255, .12);
  border: 1px solid rgba(95, 227, 255, .3);
  color: #c8f4ff;
  font-size: 12px;
}
.bpSlot b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: rgba(95, 227, 255, .22);
  font-size: 10.5px;
}
.weapon-card { position: relative; }
.weapon-card.equipped {
  border-color: rgba(95, 227, 255, .5);
  box-shadow: inset 0 0 0 1px rgba(95, 227, 255, .25);
}
.weaponEquip {
  flex: none;
  align-self: flex-start;
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(95, 227, 255, .32);
  background: rgba(95, 227, 255, .1);
  color: #bff4ff;
  font-size: 12px;
  cursor: pointer;
  transition: background .12s, transform .12s;
}
.weaponEquip:hover { background: rgba(95, 227, 255, .2); transform: translateY(-1px); }
.weaponEquip.on {
  background: rgba(95, 227, 255, .22);
  border-color: rgba(95, 227, 255, .6);
  color: #e6fbff;
}

/* =========================================================================
   战术绿主题（data-theme="tactical"）
   军绿迷彩背景 + 战术绿高亮：基于深色主题派生，先统一变量色板，
   再覆盖深色主题里写死的深蓝 / 霓虹青数值，保证三套主题互不影响
   ========================================================================= */
:root[data-theme="tactical"] {
  color-scheme: dark;
  --cyan: #7dff9c;
  --line: rgba(125, 255, 156, .22);
  --panel: rgba(8, 20, 12, .92);
  --mac-glass: rgba(9, 20, 13, .62);
  --mac-glass-strong: rgba(8, 18, 11, .92);
  --mac-border: rgba(150, 220, 155, .2);
  --mac-border-strong: rgba(150, 220, 155, .4);
  --mac-text: #e4f2e2;
  --mac-muted: #9cb4a0;
  --mac-hover: rgba(120, 220, 140, .13);
  --mac-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  --mac-titlebar: linear-gradient(180deg, rgba(40, 76, 46, .46), rgba(6, 14, 9, .1));
}

/* ---- 桌面壁纸：丛林军绿 + 战术网格 ---- */
:root[data-theme="tactical"] body { background: #050c07; color: #d9e9d8; }
:root[data-theme="tactical"] .mac-wallpaper {
  background:
    repeating-linear-gradient(135deg, rgba(130, 220, 140, .022) 0 2px, transparent 2px 7px),
    radial-gradient(1200px 720px at 78% 14%, rgba(96, 224, 118, .26), transparent 60%),
    radial-gradient(980px 640px at 10% 88%, rgba(46, 130, 62, .32), transparent 62%),
    radial-gradient(760px 520px at 26% 8%, rgba(176, 198, 96, .12), transparent 60%),
    radial-gradient(620px 430px at 56% 62%, rgba(24, 110, 54, .18), transparent 72%),
    linear-gradient(160deg, #06110a 0%, #0a1c10 46%, #050d07 100%);
}
:root[data-theme="tactical"] .aurora.a1 { background: rgba(110, 240, 132, .45); }
:root[data-theme="tactical"] .aurora.a2 { background: rgba(70, 160, 88, .4); }
:root[data-theme="tactical"] .aurora.a3 { background: rgba(186, 206, 92, .16); }
:root[data-theme="tactical"] .wall-grid {
  background-image:
    linear-gradient(rgba(130, 230, 150, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 230, 150, .06) 1px, transparent 1px);
}
:root[data-theme="tactical"] .wall-vignette {
  background: radial-gradient(ellipse at 50% 44%, transparent 32%, rgba(0, 0, 0, .62) 100%);
}

/* ---- 菜单栏 / Dock ---- */
:root[data-theme="tactical"] .mac-menubar {
  color: #d3e8d2;
  background: rgba(6, 14, 9, .6);
  border-bottom-color: rgba(150, 220, 155, .14);
}
:root[data-theme="tactical"] .mb-logo { color: #eaf7e6; }
:root[data-theme="tactical"] .mb-clock { color: #9cb4a0; }
:root[data-theme="tactical"] .mac-dock {
  background: rgba(8, 18, 12, .64);
  border-color: rgba(150, 220, 155, .22);
}
:root[data-theme="tactical"] .dock-item {
  background: linear-gradient(180deg, rgba(46, 88, 54, .46), rgba(8, 18, 12, .55));
  border-color: rgba(150, 220, 155, .2);
}
:root[data-theme="tactical"] .dock-item:hover {
  border-color: rgba(125, 255, 156, .6);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .5), 0 0 26px rgba(96, 230, 120, .22);
}
:root[data-theme="tactical"] .dock-sep { background: rgba(150, 220, 155, .22); }

/* ---- 中央「开始游戏」 ---- */
:root[data-theme="tactical"] .hs-ring {
  background: radial-gradient(circle, rgba(96, 230, 120, .16), transparent 62%);
  box-shadow: 0 0 80px rgba(96, 230, 120, .18), inset 0 0 60px rgba(96, 230, 120, .12);
  border-color: rgba(125, 255, 156, .16);
}
:root[data-theme="tactical"] .hs-brand { text-shadow: 0 0 18px rgba(125, 255, 156, .55); }
:root[data-theme="tactical"] .hs-title {
  color: #f2fbef;
  text-shadow: 0 0 46px rgba(110, 240, 130, .45), 0 6px 30px rgba(0, 0, 0, .8);
}

/* ---- 弹窗 / 卡片（主菜单与暂停界面共用） ---- */
:root[data-theme="tactical"] .overlay {
  background: radial-gradient(circle at 50% 40%, rgba(14, 34, 20, .74), rgba(3, 8, 4, .94));
}
:root[data-theme="tactical"] .card {
  border-color: rgba(125, 255, 156, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .68), inset 0 0 60px rgba(30, 100, 55, .1);
}
:root[data-theme="tactical"] h1 { color: #effaea; text-shadow: 0 0 28px rgba(110, 240, 130, .32); }
:root[data-theme="tactical"] .sub { color: #8ba594; }
:root[data-theme="tactical"] .sectionTitle { color: #7f9787; }
:root[data-theme="tactical"] .mac-window.focused {
  border-color: rgba(125, 255, 156, .45);
  box-shadow: 0 36px 110px rgba(0, 0, 0, .72), 0 0 0 1px rgba(125, 255, 156, .2);
}

/* ---- 模式 / 地图 / 阵营选择 ---- */
:root[data-theme="tactical"] .modeBtn {
  background: linear-gradient(180deg, rgba(34, 64, 42, .5), rgba(14, 26, 17, .5));
  border-color: rgba(140, 200, 145, .28);
}
:root[data-theme="tactical"] .modeBtn:hover { box-shadow: 0 10px 26px rgba(60, 180, 90, .18); }
:root[data-theme="tactical"] .modeBtn.active {
  background: linear-gradient(180deg, rgba(46, 100, 58, .6), rgba(18, 46, 26, .7));
  box-shadow: 0 0 24px rgba(60, 190, 100, .22);
}
:root[data-theme="tactical"] .modeBtn .name { color: #e9f7e6; }
:root[data-theme="tactical"] .modeBtn .desc { color: #8ba594; }
:root[data-theme="tactical"] .modeBtn .tag { background: rgba(125, 255, 156, .1); }
:root[data-theme="tactical"] .mapBtn {
  background: rgba(16, 30, 20, .7);
  border-color: rgba(140, 200, 145, .25);
}
:root[data-theme="tactical"] .mapBtn:hover { border-color: rgba(125, 255, 156, .7); }
:root[data-theme="tactical"] .mapBtn.active { box-shadow: 0 0 22px rgba(60, 190, 100, .24); }
:root[data-theme="tactical"] .mName { color: #e9f7e6; }
:root[data-theme="tactical"] .mDesc { color: #8ba594; }
:root[data-theme="tactical"] .sideBtn {
  background: rgba(16, 30, 20, .72);
  border-color: rgba(140, 200, 145, .25);
}
:root[data-theme="tactical"] .sideBtn b { color: #e5f6e1; }
:root[data-theme="tactical"] .sideBtn span { color: #8ba594; }
:root[data-theme="tactical"] .sideBtn:hover { border-color: rgba(125, 255, 156, .7); }
:root[data-theme="tactical"] .sideBtn.active {
  background: rgba(30, 74, 44, .68);
  box-shadow: 0 0 20px rgba(60, 190, 100, .2);
}

/* ---- 主题选择 ---- */
:root[data-theme="tactical"] .themeOpt { background: rgba(150, 220, 155, .05); }
:root[data-theme="tactical"] .themeOpt.active {
  background: rgba(96, 230, 120, .12);
  box-shadow: 0 0 20px rgba(96, 230, 120, .18);
}

/* ---- 通用按钮 ---- */
:root[data-theme="tactical"] .btn {
  background: rgba(22, 38, 26, .6);
  border-color: rgba(140, 200, 145, .3);
  color: #dbead8;
}
:root[data-theme="tactical"] .btn:hover { background: rgba(30, 62, 38, .7); }
:root[data-theme="tactical"] .btn.primary,
:root[data-theme="tactical"] .netRefresh.primary {
  background: linear-gradient(180deg, #3f8f5c, #235c3b);
  border-color: rgba(125, 255, 156, .5);
}
:root[data-theme="tactical"] .btn.primary:hover,
:root[data-theme="tactical"] .netRefresh.primary:hover {
  background: linear-gradient(180deg, #4aa66a, #2a6f48);
}
:root[data-theme="tactical"] #startBtn { box-shadow: 0 10px 30px rgba(30, 110, 60, .3); }
:root[data-theme="tactical"] .mac-btn.primary {
  background: linear-gradient(180deg, #3f8f5c, #235c3b);
  border-color: rgba(125, 255, 156, .5);
  box-shadow: 0 6px 18px rgba(30, 100, 50, .28);
}
:root[data-theme="tactical"] .mac-btn.primary:hover { background: linear-gradient(180deg, #4aa66a, #2a6f48); }
:root[data-theme="tactical"] .mac-btn:hover { border-color: rgba(125, 255, 156, .55); }
:root[data-theme="tactical"] .win-start { box-shadow: 0 10px 30px rgba(30, 110, 60, .35); }
:root[data-theme="tactical"] .netRefresh {
  background: rgba(30, 74, 44, .5);
  border-color: rgba(125, 255, 156, .3);
  color: #c8f8d2;
}
:root[data-theme="tactical"] .netRefresh:hover { background: rgba(40, 96, 56, .7); }
:root[data-theme="tactical"] .lobbyRefresh { color: #9fd3ad; border-color: rgba(140, 200, 145, .3); }
:root[data-theme="tactical"] .lobbyRefresh:hover { border-color: rgba(125, 255, 156, .6); }
:root[data-theme="tactical"] .liJoin {
  color: #c8f8d2;
  background: rgba(30, 74, 44, .65);
  border-color: rgba(125, 255, 156, .35);
}
:root[data-theme="tactical"] .liJoin:hover { background: rgba(46, 110, 64, .8); }
:root[data-theme="tactical"] .rank-tab.active,
:root[data-theme="tactical"] .rw-tab.active {
  color: #06230f;
  background: linear-gradient(180deg, #b4ffc4, #4fd47a);
  box-shadow: 0 0 18px rgba(96, 230, 120, .32);
}

/* ---- 输入框 / 列表 ---- */
:root[data-theme="tactical"] .netRow input,
:root[data-theme="tactical"] .netAdv input,
:root[data-theme="tactical"] .authFields input,
:root[data-theme="tactical"] .friendSearch input,
:root[data-theme="tactical"] .acc-sign-row input,
:root[data-theme="tactical"] .chat-compose input {
  background: rgba(8, 20, 12, .8);
  color: #dff4e2;
  border-color: rgba(140, 200, 145, .28);
}
:root[data-theme="tactical"] .netRow input:focus,
:root[data-theme="tactical"] .authFields input:focus,
:root[data-theme="tactical"] .friendSearch input:focus,
:root[data-theme="tactical"] .chat-compose input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(60, 190, 100, .2);
}
:root[data-theme="tactical"] .accountBar,
:root[data-theme="tactical"] .bindRow {
  background: rgba(16, 30, 20, .72);
  border-color: rgba(140, 200, 145, .25);
}
:root[data-theme="tactical"] .accInfo { color: #bcd3c0; }
:root[data-theme="tactical"] .accInfo .accStats { color: #8ba594; }
:root[data-theme="tactical"] .bindRow .bName { color: #8ba594; }
:root[data-theme="tactical"] .bindKey {
  color: #dff4e2;
  background: rgba(96, 230, 120, .1);
  border-color: rgba(125, 255, 156, .35);
}
:root[data-theme="tactical"] .bindKey:hover { background: rgba(96, 230, 120, .2); }
:root[data-theme="tactical"] .bindHint { color: #8ba594; }
:root[data-theme="tactical"] .lobby {
  background: rgba(10, 22, 13, .55);
  border-color: rgba(140, 200, 145, .22);
}
:root[data-theme="tactical"] .lobbyHead { color: #8ba594; border-bottom-color: rgba(140, 200, 145, .16); }
:root[data-theme="tactical"] .lobbyItem:hover { background: rgba(40, 80, 44, .3); }
:root[data-theme="tactical"] .liName { color: #dff1e0; }
:root[data-theme="tactical"] .liRoom { color: #8ba594; }
:root[data-theme="tactical"] .lobbyEmpty { color: #8ba594; }
:root[data-theme="tactical"] .netHint { color: #8ba594; }
:root[data-theme="tactical"] .netHint b { color: #c8f8d2; }
:root[data-theme="tactical"] .controls { color: #8ba594; }
:root[data-theme="tactical"] .controls b { color: #c8d8c4; }
:root[data-theme="tactical"] .keys { border-color: rgba(140, 200, 145, .18); color: #cfe4cf; }
:root[data-theme="tactical"] .chControls label { color: #8ba594; }
:root[data-theme="tactical"] .chControls input[type="range"],
:root[data-theme="tactical"] .chControls input[type="checkbox"] { accent-color: #7dff9c; }
:root[data-theme="tactical"] .chResetBtn {
  color: #c8d8c4;
  background: rgba(150, 220, 155, .06);
  border-color: rgba(140, 200, 145, .3);
}
:root[data-theme="tactical"] .chResetBtn:hover { color: #e6fbe0; border-color: rgba(125, 255, 156, .5); }

/* ---- 聊天 / 好友 / 账号 ---- */
:root[data-theme="tactical"] .chat-row.mine { background: rgba(96, 230, 120, .08); }
:root[data-theme="tactical"] .chat-row.mine .chat-name { color: #b8ffc6; }
:root[data-theme="tactical"] .friendItem { background: rgba(16, 30, 20, .72); border-color: rgba(140, 200, 145, .22); }
:root[data-theme="tactical"] .fName { color: #e5f6e1; }
:root[data-theme="tactical"] .fMeta,
:root[data-theme="tactical"] .fWait,
:root[data-theme="tactical"] .friendEmpty { color: #8ba594; }
:root[data-theme="tactical"] .fBtn {
  color: #c8f8d2;
  background: rgba(96, 230, 120, .08);
  border-color: rgba(125, 255, 156, .3);
}
:root[data-theme="tactical"] .aw-avatar:not(.aw-finder),
:root[data-theme="tactical"] .acc-avatar {
  color: #06230f;
  background: radial-gradient(circle at 32% 28%, #b6ffc4, #2f9e58 70%);
  box-shadow: 0 0 22px rgba(96, 230, 120, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ---- 访达 / 启动台 / 通知 ---- */
:root[data-theme="tactical"] .launchpad { background: rgba(4, 10, 6, .55); }
:root[data-theme="tactical"] .lp-search { background: rgba(10, 22, 13, .62); border-color: rgba(150, 220, 155, .22); }
:root[data-theme="tactical"] .lp-search input { color: var(--mac-text); }
:root[data-theme="tactical"] .lp-search input::placeholder { color: rgba(200, 230, 202, .5); }
:root[data-theme="tactical"] .lp-item { color: #eaf7e4; }
:root[data-theme="tactical"] .lp-name { color: #eaf7e4; }
:root[data-theme="tactical"] .lp-hint { color: rgba(210, 235, 205, .55); }
:root[data-theme="tactical"] .finder-side { background: rgba(255, 255, 255, .03); }
:root[data-theme="tactical"] .finder-toolbar { background: rgba(255, 255, 255, .025); }
:root[data-theme="tactical"] .finder-side-item.active { background: rgba(96, 230, 120, .14); color: var(--cyan); }
:root[data-theme="tactical"] .finder-recent-item { border-color: rgba(150, 220, 155, .2); }
:root[data-theme="tactical"] .jf { background: rgba(8, 20, 12, .9); border-color: rgba(150, 220, 155, .38); }
:root[data-theme="tactical"] .jf b { color: #e9f7e6; }
:root[data-theme="tactical"] .jf .jfSub { color: #8ba594; }

/* ---- 武器库 / 背包 / 键位分组 ---- */
:root[data-theme="tactical"] .wIcon { background: rgba(96, 230, 120, .1); border-color: rgba(125, 255, 156, .22); }
:root[data-theme="tactical"] .bindGroupTitle { color: rgba(170, 215, 175, .7); }
:root[data-theme="tactical"] .bpBar { background: rgba(96, 230, 120, .06); border-color: rgba(125, 255, 156, .2); }
:root[data-theme="tactical"] .bpBarTitle { color: rgba(180, 225, 185, .85); }
:root[data-theme="tactical"] .bpSlot {
  background: rgba(96, 230, 120, .12);
  border-color: rgba(125, 255, 156, .3);
  color: #d5fddf;
}
:root[data-theme="tactical"] .bpSlot b { background: rgba(96, 230, 120, .22); }
:root[data-theme="tactical"] .weapon-card.equipped {
  border-color: rgba(125, 255, 156, .5);
  box-shadow: inset 0 0 0 1px rgba(125, 255, 156, .25);
}
:root[data-theme="tactical"] .weaponEquip {
  border-color: rgba(125, 255, 156, .32);
  background: rgba(96, 230, 120, .1);
  color: #c9fbd3;
}
:root[data-theme="tactical"] .weaponEquip:hover { background: rgba(96, 230, 120, .2); }
:root[data-theme="tactical"] .weaponEquip.on {
  background: rgba(96, 230, 120, .22);
  border-color: rgba(125, 255, 156, .6);
  color: #eaffef;
}

/* ---- 游戏内 HUD ---- */
:root[data-theme="tactical"] #hpFill { background: linear-gradient(90deg, #35d6a4, #7dff9c); }



/* ---------------- 英文界面排版修正 ---------------- */
:root[lang="en"] .hs-title {
  font-size: 46px;
  letter-spacing: 7px;
  text-indent: 7px;
  white-space: nowrap;
}
:root[lang="en"] .hs-sub { letter-spacing: 3px; }
.recent-chip { white-space: nowrap; flex: 0 0 auto; }


/* ---------------- 团队死斗匹配状态（大厅左下空余区） ---------------- */
.match-widget {
  position: fixed;
  left: 28px;
  bottom: 108px;
  z-index: 2147483000 !important;   /* 匹配时间板块始终在最顶层，不受任何 App 窗口 / 皮肤窗口影响 */
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  padding: 12px 14px;
  background: var(--mac-glass);
  border: 1px solid var(--mac-border-strong);
  border-radius: 14px;
  box-shadow: var(--mac-shadow);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.match-widget.show { opacity: 1; transform: none; pointer-events: auto; }
.mw-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: mwPulse 1.2s ease-in-out infinite;
  flex: none;
}
@keyframes mwPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.mw-body { flex: 1; min-width: 0; }
.mw-title { font-size: 12px; letter-spacing: 1px; color: var(--mac-text); white-space: nowrap; }
.mw-meta {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 4px; font-size: 11px; color: var(--mac-muted);
}
.mw-meta b {
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
  color: var(--cyan); font-variant-numeric: tabular-nums;
}
.mw-meta i { font-style: normal; opacity: .5; }
.mw-cancel {
  flex: none; padding: 7px 11px; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 11px; color: var(--mac-text);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--mac-border);
  transition: .12s;
}
.mw-cancel:hover { background: var(--mac-hover); border-color: var(--mac-border-strong); }

@media (max-width: 760px) {
  .match-widget { left: 14px; right: 14px; bottom: 96px; min-width: 0; }
}


/* ---------------- 武器皮肤库（全屏） ---------------- */
#skinPreview , #charPreview  {
  position: fixed; inset: 0; z-index: 5200; display: none;
  background: radial-gradient(circle at 60% 40%, rgba(12, 30, 44, .96), rgba(3, 7, 11, .98));
  backdrop-filter: blur(8px);
}
#skinPreview.show { display: block; }
#skinPreview .sp-shell , #charPreview .sp-shell  {
  display: grid; grid-template-columns: 280px 1fr 320px;
  height: 100%; width: 100%; gap: 0;
}
#skinPreview .sp-left , #charPreview .sp-left  {
  padding: 26px 18px 24px; overflow-y: auto;
  border-right: 1px solid rgba(120, 170, 200, .14);
  background: rgba(7, 12, 18, .78);
}
#skinPreview .sp-left::-webkit-scrollbar , #charPreview .sp-left::-webkit-scrollbar  { width: 6px; }
#skinPreview .sp-left::-webkit-scrollbar-thumb , #charPreview .sp-left::-webkit-scrollbar-thumb  { background: rgba(120, 170, 200, .25); border-radius: 3px; }
#skinPreview .sp-weapon , #charPreview .sp-weapon  {
  font-size: 12px; letter-spacing: 3px; color: #7f97a8; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(120, 170, 200, .12);
}
#skinPreview .sp-skins , #charPreview .sp-skins  { display: flex; flex-direction: column; gap: 6px; }
#skinPreview .sp-skin , #charPreview .sp-skin  {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 46px; padding: 10px 14px; cursor: pointer; text-align: left; font: inherit;
  border-radius: 9px; border: 1px solid transparent;
  background: rgba(22, 31, 41, .55);
  color: #cfe4f2; transition: background .14s, border-color .14s, transform .1s;
}
#skinPreview .sp-skin:hover , #charPreview .sp-skin:hover  { background: rgba(34, 48, 62, .7); border-color: rgba(120, 200, 240, .35); }
#skinPreview .sp-skin.on , #charPreview .sp-skin.on  {
  border-color: rgba(255, 190, 90, .8); color: #fff;
  background: linear-gradient(100deg, rgba(74, 52, 24, .9), rgba(28, 21, 13, .92));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 130, .18), 0 6px 18px rgba(0, 0, 0, .35);
}
#skinPreview .sp-skin i , #charPreview .sp-skin i  { width: 12px; height: 12px; border-radius: 50%; flex: none; }
#skinPreview .sp-skin-name , #charPreview .sp-skin-name  { flex: 1; font-size: 13.5px; }
#skinPreview .sp-skin-tag , #charPreview .sp-skin-tag  { font-size: 10.5px; color: #8ba3b6; letter-spacing: 1px; }
#skinPreview .sp-skin-own , #charPreview .sp-skin-own  { font-size: 10.5px; color: #7dffb0; font-weight: 600; }

#skinPreview .sp-center , #charPreview .sp-center  { position: relative; display: flex; flex-direction: column; }
#skinPreview .sp-stage , #charPreview .sp-stage  { flex: 1; min-height: 0; }
#skinPreview .sp-stage canvas , #charPreview .sp-stage canvas  { width: 100%; height: 100%; display: block; }
#skinPreview .sp-hint , #charPreview .sp-hint  {
  text-align: center; font-size: 11px; letter-spacing: 2px; color: #52646f; padding: 12px 0 18px;
}

#skinPreview .sp-right , #charPreview .sp-right  {
  padding: 30px 26px 24px; border-left: 1px solid rgba(120, 170, 200, .14);
  background: rgba(7, 12, 18, .8); display: flex; flex-direction: column;
}
#skinPreview .sp-tag , #charPreview .sp-tag  {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 2px; color: #ffd27f;
  border: 1px solid rgba(255, 190, 90, .45); background: rgba(60, 44, 18, .5);
}
#skinPreview .sp-title , #charPreview .sp-title  {
  margin-top: 14px; font-size: 26px; font-weight: 900; letter-spacing: 2px; color: #eaf8ff;
}
#skinPreview .sp-desc , #charPreview .sp-desc  {
  margin-top: 18px; font-size: 13px; line-height: 1.9; color: #9db4c6; flex: 1;
  padding-top: 16px; border-top: 1px solid rgba(120, 170, 200, .12);
}
#skinPreview .sp-right .btn , #charPreview .sp-right .btn  { margin-top: 10px; width: 100%; flex: none; height: 46px; }

@media (max-width: 900px) {
  #skinPreview .sp-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  #skinPreview .sp-left { max-height: 30vh; }
  #skinPreview .sp-right { padding: 16px; }
}

#skinPreview .sp-right .btn.applied , #charPreview .sp-right .btn.applied  {
  background: linear-gradient(180deg, #2f8f5e, #1d5f3f) !important;
  border-color: rgba(125, 255, 176, .6) !important;
  color: #eafff2 !important;
}

/* ---------------- 等级面板 ---------------- */
#levelPanel {
  position: fixed; inset: 0; z-index: 5300; display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 8, 13, .6); backdrop-filter: blur(6px);
}
#levelPanel.show { display: flex; }
#levelPanel .lp-box {
  width: min(520px, 94vw); max-height: 88vh; overflow-y: auto;
  padding: 22px 24px 18px; border-radius: 16px;
  background: rgba(10, 16, 23, .97); border: 1px solid rgba(85, 224, 255, .22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .62);
}
#levelPanel .lp-head { display: flex; align-items: center; justify-content: space-between; }
#levelPanel .lp-title { font-size: 16px; font-weight: 800; letter-spacing: 2px; color: #eaf8ff; }
#levelPanel .lp-close { border: none; background: transparent; color: #8ba3b6; font-size: 15px; cursor: pointer; }

#levelPanel .lp-hero { display: flex; gap: 18px; align-items: center; margin-top: 18px; }
#levelPanel .lp-badge {
  width: 92px; height: 92px; flex: none; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(30, 120, 90, .85), rgba(12, 52, 40, .9));
  border: 1px solid rgba(125, 255, 176, .45);
  box-shadow: 0 0 26px rgba(80, 255, 170, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
}
#levelPanel .lp-badge b { font-size: 40px; line-height: 1; color: #b6ffd6; text-shadow: 0 0 22px rgba(80, 255, 170, .55); }
#levelPanel .lp-badge span { margin-top: 4px; font-size: 9px; letter-spacing: 2px; color: rgba(180, 255, 215, .7); }
#levelPanel .lp-hero-info { flex: 1; min-width: 0; }
#levelPanel .lp-name { font-size: 18px; font-weight: 800; color: #eaf8ff; }
#levelPanel .lp-xpbar {
  margin-top: 12px; height: 9px; border-radius: 999px;
  background: rgba(120, 160, 190, .22); overflow: hidden;
}
#levelPanel .lp-xpbar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2ec98a, #8cffc2);
  transition: width .35s;
}
#levelPanel .lp-xptext { margin-top: 7px; font-size: 12px; color: #8fa6b8; letter-spacing: .5px; }

#levelPanel .lp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px;
}
#levelPanel .lp-stat {
  padding: 10px 8px; border-radius: 10px; text-align: center;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(140, 170, 195, .18);
}
#levelPanel .lp-stat b { display: block; font-size: 16px; color: #eaf8ff; }
#levelPanel .lp-stat span { font-size: 11px; color: #8095a8; }

#levelPanel .lp-section { margin-top: 18px; font-size: 11px; letter-spacing: 2px; color: #7f97a8; }
#levelPanel .lp-track { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
#levelPanel .lp-node {
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #b9cddb;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(140, 170, 195, .2);
}
#levelPanel .lp-node.done { color: #9dffc8; border-color: rgba(125, 255, 176, .5); background: rgba(30, 90, 66, .55); }
#levelPanel .lp-node.now {
  color: #0a1a14; background: linear-gradient(160deg, #8cffc2, #2ec98a);
  border-color: #b6ffd6; box-shadow: 0 0 16px rgba(80, 255, 170, .45);
}
#levelPanel .lp-tip { margin-top: 16px; font-size: 11.5px; line-height: 1.7; color: #7f97a8; }

/* 音乐音量滑条 */
.music-vol-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.music-vol-row > span { font-size: 12px; color: var(--mac-muted); flex: none; }
.music-vol-row input[type="range"] { flex: 1; accent-color: #55e0ff; height: 18px; }
.music-vol-row > b { font-size: 12px; color: #cfe4f2; width: 38px; text-align: right; }

/* 操作 / 画面 自由调节 */
.prefRow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.prefRow > span { font-size: 12px; color: var(--mac-muted); flex: none; width: 84px; }
.prefRow input[type="range"] { flex: 1; accent-color: #55e0ff; height: 18px; }
.prefRow > b { font-size: 12px; color: #cfe4f2; width: 46px; text-align: right; }

/* 皮肤锁定态 */
#skinPreview .sp-skin.locked , #charPreview .sp-skin.locked  { opacity: .72; }
#skinPreview .sp-skin.locked .sp-skin-tag , #charPreview .sp-skin.locked .sp-skin-tag  { color: #ff9f6a; }
#skinPreview .sp-skin .sp-lock , #charPreview .sp-skin .sp-lock  { font-size: 12px; margin-left: 2px; }

#skinPreview .sp-right .btn.locked,
#skinPreview .sp-right .btn:disabled , #charPreview .sp-right .btn:disabled  {
  background: rgba(60, 40, 30, .55) !important;
  border-color: rgba(255, 159, 106, .45) !important;
  color: #ffb98a !important;
  cursor: not-allowed;
}

/* ================= 新武器 UI（合成波 EXO 风格） ================= */
.win-weapons .win-body { padding: 14px 16px 18px; }

.weapon-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px 12px;
  border-radius: 6px;
  background: linear-gradient(158deg, rgba(24, 12, 40, .92), rgba(10, 7, 18, .95));
  border: 1px solid rgba(128, 86, 200, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.weapon-card::before,
.weapon-card::after {
  content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border: 1px solid rgba(255, 47, 168, .55);
}
.weapon-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.weapon-card::after { right: -1px; bottom: -1px; border-left: none; border-top: none; }
.weapon-card:hover {
  border-color: rgba(255, 47, 168, .6);
  box-shadow: 0 0 0 1px rgba(255, 47, 168, .18), 0 10px 28px rgba(0, 0, 0, .4);
}
.weapon-card.equipped { border-color: rgba(85, 224, 255, .55); }

.wc-head { display: flex; align-items: center; gap: 12px; }
.wc-title { flex: 1; min-width: 0; }
.wc-type { font-size: 10px; letter-spacing: 1.5px; color: #7f6f9b; margin-top: 2px; text-transform: uppercase; }
.wc-rarity {
  font-size: 10px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 3px; flex: none;
  border: 1px solid currentColor;
}
.wc-rarity.legend { color: #ffd166; }
.wc-rarity.epic { color: #b98cff; }
.wc-rarity.rare { color: #55e0ff; }

.wc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.wc-stat { display: flex; align-items: center; gap: 7px; }
.wc-stat-name { font-size: 10.5px; color: #8b7aa8; width: 26px; flex: none; }
.wc-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(120, 90, 170, .22); overflow: hidden; }
.wc-bar i { display: block; height: 100%; border-radius: 2px; }
.wc-bar i.cyan { background: linear-gradient(90deg, #2fa8d8, #55e0ff); }
.wc-bar i.magenta { background: linear-gradient(90deg, #b81f7a, #ff2fa8); }
.wc-bar i.amber { background: linear-gradient(90deg, #c98a1e, #ffd166); }
.wc-stat-num { font-size: 10px; color: #b9a8d4; width: 24px; text-align: right; font-weight: 600; }

.weapon-card .wDesc {
  margin: 0; font-size: 11.5px; line-height: 1.6; color: #8f82a8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.wc-foot .wSkinHint { font-size: 10.5px; color: #6f6390; letter-spacing: .5px; margin: 0; }
.weapon-card .weaponEquip {
  flex: none; padding: 7px 14px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12px;
  border: 1px solid rgba(255, 47, 168, .5); color: #ffd7ec;
  background: linear-gradient(120deg, rgba(120, 24, 88, .55), rgba(60, 16, 60, .55));
  transition: .15s;
}
.weapon-card .weaponEquip:hover { border-color: #ff2fa8; color: #fff; }
.weapon-card .weaponEquip.on {
  border-color: rgba(85, 224, 255, .6); color: #d9f8ff;
  background: linear-gradient(120deg, rgba(20, 84, 116, .6), rgba(14, 44, 66, .6));
}

.weapon-card .wIcon { width: 54px; height: 38px; display: flex; align-items: center; justify-content: center; flex: none; }
.weapon-card .wThumb { max-width: 54px; max-height: 38px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.weapon-card .wFallback { font-size: 20px; }

/* 人物 UI：账号卡片的 UNIT 头部 */
.aw-unit {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.aw-unit .aw-unit-tag {
  font-size: 9.5px; letter-spacing: 1.8px; padding: 2px 6px; border-radius: 3px;
  color: #ffd7ec; border: 1px solid rgba(255, 47, 168, .5);
  background: rgba(90, 18, 70, .35);
}
.aw-palette { display: flex; gap: 5px; margin-top: 8px; }
.aw-palette i { width: 11px; height: 11px; border-radius: 50%; display: block; border: 1px solid rgba(255, 255, 255, .18); }

/* ================= 交流：微信式双栏 ================= */
.win-chat .win-body.wx-body { display: flex; padding: 0; overflow: hidden; }
.wx-side {
  width: 232px; flex: none; display: flex; flex-direction: column; min-height: 0;
  background: rgba(12, 18, 26, .55);
  border-right: 1px solid rgba(120, 170, 200, .14);
}
.wx-search { padding: 10px 12px 6px; }
.wx-search input {
  width: 100%; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 12px;
  border: 1px solid rgba(140, 175, 200, .22); background: rgba(8, 14, 20, .6); color: #dbe7ef;
}
.wx-sec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 4px; font-size: 10.5px; letter-spacing: 2px; color: #7f97a8;
}
.wx-sec b { color: #55e0ff; font-weight: 600; }
.wx-friends { flex: 1; min-height: 60px; overflow-y: auto; padding: 2px 8px 8px; }
.wx-friends::-webkit-scrollbar { width: 6px; }
.wx-friends::-webkit-scrollbar-thumb { background: rgba(120, 170, 200, .22); border-radius: 3px; }
.wx-empty { padding: 14px 8px; font-size: 11.5px; color: #6f8496; line-height: 1.6; }
.wx-friend {
  position: relative; display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 9px; margin-bottom: 3px; border-radius: 9px; cursor: pointer; text-align: left;
  border: 1px solid transparent; background: transparent; color: #dbe7ef; font: inherit;
  transition: background .12s, border-color .12s;
}
.wx-friend:hover { background: rgba(40, 62, 84, .45); }
.wx-friend.on { background: rgba(46, 90, 120, .5); border-color: rgba(85, 224, 255, .4); }
.wx-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #061018;
  background: linear-gradient(160deg, #55e0ff, #2f7fb8);
}
.wx-friend-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wx-friend-main b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-friend-main i {
  font-style: normal; font-size: 10.5px; color: #7f97a8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wx-badge {
  flex: none; min-width: 16px; padding: 0 5px; border-radius: 9px;
  background: #ff5a5a; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.wx-online {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #44e08a; box-shadow: 0 0 6px rgba(68, 224, 138, .8);
}
.wx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wx-head {
  display: flex; align-items: baseline; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid rgba(120, 170, 200, .15);
}
.wx-head-name { font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #eaf8ff; }
.wx-head-sub { font-size: 11px; color: #7f97a8; }
.wx-main .chat-list { flex: 1; min-height: 0; }
/* 私聊气泡 */
#chatList.wx-dm { padding: 12px 14px; }
#chatList.wx-dm .chat-row {
  display: block; width: fit-content; max-width: 76%;
  margin: 6px 0 6px auto; padding: 8px 12px; border-radius: 12px 12px 2px 12px;
  background: linear-gradient(150deg, rgba(46, 120, 92, .85), rgba(28, 84, 66, .85));
  border: 1px solid rgba(90, 220, 160, .25);
}
#chatList.wx-dm .chat-row:not(.mine) {
  margin: 6px auto 6px 0; border-radius: 12px 12px 12px 2px;
  background: rgba(30, 42, 56, .9); border-color: rgba(120, 170, 200, .2);
}
#chatList.wx-dm .chat-row[data-dm-back] { background: transparent; border: none; margin-left: 0; }
#chatList.wx-dm .chat-name { display: block; font-size: 10.5px; color: #8fe0b8; margin-bottom: 2px; }
#chatList.wx-dm .chat-text { font-size: 13px; line-height: 1.5; color: #eaf8ff; }
#chatList.wx-dm .chat-time { display: block; font-size: 9.5px; color: rgba(200, 220, 235, .45); margin-top: 3px; text-align: right; }

/* ================= 大厅：作战单位展示台 ================= */
.char-stage {
  position: absolute; left: 176px; bottom: 84px; width: 430px; height: 560px;
  display: none; flex-direction: column;
  pointer-events: none; z-index: 2;
}
.char-stage.show { display: flex; }
.char-stage .cs-head {
  display: flex; align-items: baseline; gap: 8px; padding-left: 6px;
  pointer-events: none;
}
.char-stage .cs-brand {
  font-size: 10px; letter-spacing: 2px; color: rgba(85, 224, 255, .85);
  padding: 2px 6px; border: 1px solid rgba(85, 224, 255, .4); border-radius: 3px;
}
.char-stage .cs-name { font-size: 17px; font-weight: 900; letter-spacing: 2px; color: #eaf8ff; }
.char-stage .cs-tag { font-size: 9.5px; letter-spacing: 1.6px; color: rgba(160, 190, 210, .6); }
.char-stage .cs-canvas { flex: 1; min-height: 0; pointer-events: auto; }
.char-stage .cs-canvas canvas { width: 100%; height: 100%; display: block; }
.char-stage .cs-foot {
  display: flex; flex-direction: column; gap: 6px; padding-left: 6px;
  pointer-events: auto;
}
.char-stage .cs-current {
  display: flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 7px 12px; cursor: pointer; font: inherit; font-size: 11.5px; color: #cfe4f2;
  border-radius: 999px; border: 1px solid rgba(85, 224, 255, .4);
  background: rgba(10, 26, 36, .6); pointer-events: auto; transition: .15s;
}
.char-stage .cs-current:hover { border-color: rgba(255, 47, 168, .7); color: #fff; }
.char-stage .cs-current i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #55e0ff; }
.char-stage .cs-current b { color: #fff; font-weight: 700; }
.char-stage .cs-current em { font-style: normal; color: #7f97a8; margin-left: 2px; }
.char-stage .cs-hint { opacity: .45; }
.char-stage .cs-skin {
  display: flex; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer;
  font: inherit; font-size: 11px; color: #cfe4f2; border-radius: 999px;
  border: 1px solid rgba(140, 175, 200, .25); background: rgba(10, 18, 26, .55);
  transition: .14s;
}
.char-stage .cs-skin i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.char-stage .cs-skin:hover { border-color: rgba(85, 224, 255, .55); }
.char-stage .cs-skin.active {
  border-color: rgba(255, 47, 168, .7); color: #fff;
  box-shadow: 0 0 14px rgba(255, 47, 168, .25);
}
.char-stage .cs-hint { font-size: 10px; letter-spacing: 1px; color: rgba(140, 165, 185, .5); }

/* 小屏：缩小展示台，避免压住开始按钮 */
@media (max-width: 1280px) {
  .char-stage { left: 140px; bottom: 76px; width: 340px; height: 460px; }
}
@media (max-width: 1024px) {
  .char-stage { display: none !important; }
}

.char-stage .cs-change {
  align-self: flex-start; margin: 6px 0 0 6px; padding: 6px 12px; cursor: pointer;
  font: inherit; font-size: 11.5px; letter-spacing: .5px; color: #dff6ff;
  border-radius: 999px; border: 1px solid rgba(85, 224, 255, .45);
  background: rgba(14, 42, 56, .62); pointer-events: auto; transition: .15s;
}
.char-stage .cs-change:hover { border-color: rgba(255, 47, 168, .7); color: #fff; background: rgba(58, 18, 48, .7); }

/* 角色皮肤库（复用武器皮肤库布局） */
#charPreview {
  position: fixed; inset: 0; z-index: 5200; display: none;
  background: radial-gradient(circle at 60% 40%, rgba(12, 30, 44, .96), rgba(3, 7, 11, .98));
  backdrop-filter: blur(8px);
}
#charPreview.show { display: block; }

/* ---------------- 大厅左侧：巅峰赛大图标 ---------------- */
.peak-dock {
  position: absolute; right: 18px; left: auto; top: 470px; width: 208px; z-index: 30;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 12px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(46, 34, 12, .78), rgba(18, 14, 8, .86));
  border: 1px solid rgba(255, 200, 100, .38);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45), 0 0 28px rgba(255, 190, 70, .12) inset;
  backdrop-filter: blur(10px);
}
.peak-dock .pd-icon { width: 104px; height: 104px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 16px rgba(255, 200, 90, .55)); animation: pdFloat 4s ease-in-out infinite; }
.peak-dock .pd-title { font-size: 20px; font-weight: 900; letter-spacing: 6px; color: #ffe9b0;
  text-shadow: 0 0 16px rgba(255, 200, 80, .7); }
.peak-dock .pd-brand { font-size: 9.5px; letter-spacing: 4px; color: #b9a06c; margin-top: -2px; }
.peak-dock .pd-rank { margin-top: 4px; font-size: 13px; color: #ffd166; letter-spacing: 1px; }
.peak-dock .pd-score { font-size: 11px; color: #c2ae82; font-variant-numeric: tabular-nums; }
.peak-dock .pd-enter {
  margin-top: 8px; width: 100%; padding: 9px 8px; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: #201604;
  background: linear-gradient(180deg, #ffd166, #eeae3a); border: 1px solid #ffe9b0;
  box-shadow: 0 6px 18px rgba(255, 190, 70, .35); transition: transform .12s, box-shadow .12s;
}
.peak-dock .pd-enter:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 190, 70, .55); }
.peak-dock .pd-enter:active { transform: translateY(0); }
@keyframes pdFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 1280px) { .peak-dock { width: 176px; top: 440px; right: 12px; } .peak-dock .pd-icon { width: 84px; height: 84px; } }
@media (max-width: 1024px) { .peak-dock { display: none; } }
