/* ================= 阿峰监控 · Luxe Skin ================= */
  @property --af-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
  :root {
    --af-a: 189 94% 53%;   /* cyan   */
    --af-b: 239 84% 67%;   /* indigo */
    --af-c: 292 84% 61%;   /* fuchsia*/
    --af-d: 38 95% 60%;    /* gold   */
    --af-bg: #f5f7ff;
    --af-card: rgba(255,255,255,.66);
    --af-card-b: rgba(99,102,241,.14);
    --af-text-dim: rgba(15,23,42,.55);
    --af-grid: rgba(79,70,229,.06);
    --af-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 30px -18px rgba(30,27,75,.35);
  }
  html.dark {
    --af-bg: #04050d;
    --af-card: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
    --af-card-b: rgba(255,255,255,.09);
    --af-text-dim: rgba(226,232,240,.55);
    --af-grid: rgba(148,163,184,.05);
    --af-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px -24px rgba(0,0,0,.9);
  }

  html, body { background: var(--af-bg) !important; }
  body { font-feature-settings: "tnum" 1, "ss01" 1; -webkit-font-smoothing: antialiased; }
  .app-shell { background: transparent !important; position: relative; z-index: 2; animation: af-fade .8s ease both; }
  @keyframes af-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* —— 背景：极光 + 网格 + 星空画布 —— */
  body::before {
    content: ""; position: fixed; inset: -25vmax; z-index: 0; pointer-events: none;
    background:
      radial-gradient(38vmax 38vmax at 12% 18%, hsl(var(--af-a) / .22), transparent 60%),
      radial-gradient(34vmax 34vmax at 88% 12%, hsl(var(--af-c) / .18), transparent 62%),
      radial-gradient(42vmax 42vmax at 55% 100%, hsl(var(--af-b) / .20), transparent 62%),
      radial-gradient(22vmax 22vmax at 70% 55%, hsl(var(--af-d) / .08), transparent 60%);
    filter: blur(30px) saturate(130%);
    animation: af-aurora 26s ease-in-out infinite alternate;
  }
  body::after {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--af-grid) 1px, transparent 1px), linear-gradient(90deg, var(--af-grid) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
  }
  @keyframes af-aurora {
    0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
    50%  { transform: translate3d(4vmax,-3vmax,0) rotate(10deg) scale(1.08); }
    100% { transform: translate3d(-4vmax,3vmax,0) rotate(-8deg) scale(1.03); }
  }
  html:not(.dark) body::before {
    background:
      radial-gradient(36vmax 36vmax at 10% 15%, hsl(var(--af-a) / .34), transparent 60%),
      radial-gradient(32vmax 32vmax at 90% 10%, hsl(var(--af-c) / .28), transparent 62%),
      radial-gradient(44vmax 44vmax at 55% 105%, hsl(var(--af-b) / .30), transparent 62%),
      radial-gradient(24vmax 24vmax at 72% 55%, hsl(var(--af-d) / .18), transparent 60%);
    filter: blur(36px) saturate(160%);
  }
  /* 顶部光束 */
  .app-shell::before {
    content: ""; position: absolute; left: 50%; top: -220px; width: min(1100px, 120vw); height: 520px; transform: translateX(-50%);
    pointer-events: none; z-index: -1;
    background: radial-gradient(50% 50% at 50% 50%, hsl(var(--af-b) / .28), transparent 70%);
    filter: blur(40px); animation: af-beam 7s ease-in-out infinite alternate;
  }
  @keyframes af-beam { from { opacity: .55; transform: translateX(-50%) scale(.95); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }
  #af-sky { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
  #af-cursor {
    position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1;
    pointer-events: none; border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--af-b) / .16), hsl(var(--af-a) / .06) 40%, transparent 70%);
    transition: opacity .4s ease; opacity: 0;
  }
  html:not(.dark) #af-cursor { background: radial-gradient(circle, hsl(var(--af-b) / .12), transparent 65%); }

  /* —— 顶栏品牌 —— */
  .af-logo { border-radius: 10px !important; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 6px 22px -6px hsl(var(--af-b) / .8); animation: af-logo 4s ease-in-out infinite; }
  @keyframes af-logo { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-4deg); } }
  .af-brand {
    font-weight: 800 !important; letter-spacing: .04em;
    background: linear-gradient(100deg, hsl(var(--af-a)), hsl(var(--af-b)) 35%, hsl(var(--af-c)) 65%, hsl(var(--af-a)));
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important;
    animation: af-shine 6s linear infinite;
  }
  .af-sub { letter-spacing: .32em; text-transform: uppercase; font-weight: 600 !important; opacity: .7; }
  html:not(.dark) .af-brand { background-image: linear-gradient(100deg, hsl(217 91% 45%), hsl(250 80% 52%) 35%, hsl(292 80% 45%) 65%, hsl(217 91% 45%)); }
  @keyframes af-shine { to { background-position: -250% 0; } }

  /* —— 通用玻璃卡片 —— */
  .server-overview > *, .server-card-list > a > div, .server-card-list > div > div:first-child,
  .server-inline-list > section > div {
    background: var(--af-card) !important;
    border-color: var(--af-card-b) !important;
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: var(--af-shadow) !important;
  }
  .server-inline-list { gap: 12px !important; padding: 4px 2px !important; }
  .server-inline-list > section > div {
    border-radius: 16px !important;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease !important;
  }
  .server-inline-list > section > div:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--af-b) / .45) !important;
    box-shadow: 0 20px 44px -24px hsl(var(--af-b) / .65), 0 0 0 1px hsl(var(--af-a) / .22) !important;
  }
  .server-overview-controls, .server-overview-controls * { white-space: nowrap; }

  /* 概览四宫格：每张卡专属色调 */
  .server-overview > :nth-child(1) { --af-tone: 217 91% 60%; --af-tone2: 189 94% 53%; }
  .server-overview > :nth-child(2) { --af-tone: 152 76% 44%; --af-tone2: 172 80% 45%; }
  .server-overview > :nth-child(3) { --af-tone: 350 89% 60%; --af-tone2: 20 92% 58%; }
  .server-overview > :nth-child(4) { --af-tone: 262 83% 64%; --af-tone2: 292 84% 61%; }
  .server-overview > * {
    background: radial-gradient(130% 160% at 100% 0%, hsl(var(--af-tone) / .20), transparent 55%),
                radial-gradient(90% 120% at 0% 100%, hsl(var(--af-tone2) / .12), transparent 60%),
                var(--af-card) !important;
  }
  html.dark .server-overview > * {
    background: radial-gradient(130% 160% at 100% 0%, hsl(var(--af-tone) / .28), transparent 55%),
                radial-gradient(90% 120% at 0% 100%, hsl(var(--af-tone2) / .14), transparent 60%),
                linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)) !important;
  }

  /* 列表模式的行：拉开上传/下载间距 */
  .server-card-list p, .server-inline-list p { font-variant-numeric: tabular-nums; }
  .server-card-list [class*="w-14"], .server-card-list [class*="w-16"], .server-card-list [class*="w-20"] { min-width: 4.8rem; }

  /* —— 概览四宫格 —— */
  .server-overview { gap: 18px !important; }
  .server-overview > * {
    position: relative; border-radius: 18px !important; isolation: isolate;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
    animation: af-rise .8s cubic-bezier(.2,.8,.2,1) both;
  }
  .server-overview > *:nth-child(2) { animation-delay: .07s; } .server-overview > *:nth-child(3) { animation-delay: .14s; } .server-overview > *:nth-child(4) { animation-delay: .21s; }
  .server-overview > *::before { /* 旋转流光边框 */
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.2px; z-index: -1; pointer-events: none;
    background: conic-gradient(from var(--af-angle), transparent 0 55%, hsl(var(--af-a)) 70%, hsl(var(--af-b)) 80%, hsl(var(--af-c)) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: af-spin 5s linear infinite; opacity: .85;
  }
  .server-overview > *:nth-child(2)::before { animation-delay: -1.2s; } .server-overview > *:nth-child(3)::before { animation-delay: -2.4s; } .server-overview > *:nth-child(4)::before { animation-delay: -3.6s; }
  .server-overview > *:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 24px 50px -22px hsl(var(--af-b) / .7) !important; }
  .server-overview .text-lg.font-semibold, .server-overview .font-semibold.text-lg {
    font-size: 1.75rem !important; font-weight: 800 !important; line-height: 1.1;
    background: linear-gradient(90deg, hsl(var(--af-tone, var(--af-a))), hsl(var(--af-tone2, var(--af-c))));
    -webkit-background-clip: text; background-clip: text; color: transparent !important;
  }
  @keyframes af-spin { to { --af-angle: 360deg; } }

  /* —— 吉祥物 —— */
  img[alt="animated-man"] {
    top: auto !important; bottom: calc(100% - 4px) !important; right: 22px !important; width: 62px !important; height: auto !important;
    scale: 1;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)) drop-shadow(0 0 18px hsl(var(--af-b) / .35));
    animation: af-float 4.5s ease-in-out infinite; cursor: pointer; pointer-events: auto !important;
    transform-origin: 50% 100%;
  }
  html.dark img[alt="animated-man"] { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 1.5px rgba(255,255,255,.9)) drop-shadow(0 0 18px hsl(var(--af-a) / .55)); }
  img[alt="animated-man"].af-pop { animation: af-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes af-float { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -6px; rotate: -2deg; } }
  @keyframes af-pop { 0% { scale: .6; opacity: .2; } 100% { scale: 1; opacity: 1; } }
  .af-bubble {
    position: absolute; right: 92px; bottom: calc(100% + 48px); z-index: 60; padding: 7px 12px; border-radius: 14px 14px 4px 14px;
    font-size: 12px; font-weight: 600; white-space: nowrap; color: #fff; pointer-events: none;
    background: linear-gradient(120deg, hsl(var(--af-b)), hsl(var(--af-c)));
    box-shadow: 0 10px 24px -10px hsl(var(--af-c) / .8);
    opacity: 0; transform: translateY(6px) scale(.9); transition: all .35s cubic-bezier(.2,.8,.2,1);
  }
  .af-bubble.on { opacity: 1; transform: none; }

  /* —— 服务器卡片 —— */
  .server-card-list { perspective: 1200px; gap: 18px !important; }
  .server-card-list > * {
    position: relative; transform-style: preserve-3d; will-change: transform; border-radius: 16px;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
    animation: af-rise .75s cubic-bezier(.2,.8,.2,1) both;
  }
  .server-card-list > a > div, .server-card-list > div > div:first-child { border-radius: 16px !important; }
  .server-card-list > *::before {
    content: ""; position: absolute; inset: -1px; border-radius: 17px; padding: 1.2px; pointer-events: none; z-index: 3;
    background: conic-gradient(from var(--af-angle), hsl(var(--af-a)), hsl(var(--af-b)), hsl(var(--af-c)), hsl(var(--af-d)), hsl(var(--af-a)));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .35s ease; animation: af-spin 3s linear infinite;
  }
  .server-card-list > *::after {
    content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; z-index: 2;
    background: radial-gradient(420px circle at var(--af-x, 50%) var(--af-y, 50%), rgba(255,255,255,.16), transparent 42%);
    opacity: 0; transition: opacity .3s ease;
  }
  .server-card-list > *.af-hover::before, .server-card-list > *.af-hover::after { opacity: 1; }
  .server-card-list > *.af-hover { box-shadow: 0 30px 60px -28px hsl(var(--af-b) / .75), 0 0 40px -18px hsl(var(--af-a) / .7); }
  .server-card-list > *:nth-child(1) { animation-delay: .25s; } .server-card-list > *:nth-child(2) { animation-delay: .32s; }
  .server-card-list > *:nth-child(3) { animation-delay: .39s; } .server-card-list > *:nth-child(4) { animation-delay: .46s; }
  .server-card-list > *:nth-child(5) { animation-delay: .53s; } .server-card-list > *:nth-child(n+6) { animation-delay: .6s; }
  @keyframes af-rise { from { opacity: 0; transform: translate3d(0,26px,0) scale(.97) rotateX(8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

  /* 进度条流光 */
  [class*="h-[3px]"] > div, [class*="h-[4px]"] > div, [role="progressbar"] > div { position: relative; overflow: hidden; }
  [class*="h-[3px]"] > div::after, [class*="h-[4px]"] > div::after, [role="progressbar"] > div::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    background-size: 50% 100%; background-repeat: no-repeat; animation: af-sweep 2.4s ease-in-out infinite;
  }
  @keyframes af-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

  /* 在线呼吸灯 */
  .bg-green-500, .bg-emerald-500 { animation: af-breathe 2.2s ease-in-out infinite; }
  @keyframes af-breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 50% { box-shadow: 0 0 0 6px rgba(16,185,129,0), 0 0 12px rgba(16,185,129,.8); } }

  /* 筛选 / 标签 */
  .server-overview-controls button[data-state="active"], .server-overview-controls [aria-selected="true"] {
    background: linear-gradient(120deg, hsl(var(--af-a)), hsl(var(--af-b))) !important; color: #fff !important;
    box-shadow: 0 6px 18px -8px hsl(var(--af-b) / .9);
  }

  /* 页脚 */
  .server-footer-name > div:first-child, .server-footer-theme { display: none !important; }
  .server-footer-name::before {
    content: "© 2026 afeng · 阿峰监控"; letter-spacing: .14em; font-weight: 600; font-size: 12px;
    background: linear-gradient(90deg, hsl(var(--af-a)), hsl(var(--af-b)), hsl(var(--af-c)), hsl(var(--af-a)));
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: af-shine 8s linear infinite;
  }

  html.dark ::-webkit-scrollbar, ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(hsl(var(--af-a) / .5), hsl(var(--af-c) / .5)); border-radius: 8px; }
  ::selection { background: hsl(var(--af-b) / .35); }

  @media (max-width: 640px) { #af-cursor { display: none; } .server-overview .text-lg.font-semibold { font-size: 1.25rem !important; } }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } #af-sky { display: none; } }

  /* —— 首屏骨架屏同步极光玻璃风，零原生棕底闪烁 —— */
  .boot-shell {
    position: relative; z-index: 2; background: transparent !important;
    --boot-bar: rgba(99, 102, 241, .16) !important;
    --boot-card: rgba(255, 255, 255, .66) !important;
    --boot-border: rgba(99, 102, 241, .16) !important;
  }
  html.dark .boot-shell {
    --boot-bar: rgba(129, 140, 248, .18) !important;
    --boot-card: rgba(255, 255, 255, .045) !important;
    --boot-border: rgba(255, 255, 255, .09) !important;
  }
  .boot-stat, .boot-server, .boot-shell [class*="boot-"] {
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
