/* ============================================================
   zilong.baby · 导航面板「液态玻璃」V3
   落地方式：本文件放到 /home/assets/glass-v3.css，
   index.html 的 </head> 前加一行 <link rel="stylesheet" href="/home/assets/glass-v3.css">
   只改导航抽屉，不动页面其它部分；不支持 backdrop-filter 的环境自动退化为深色半透明。
   ============================================================ */

/* ---------- 玻璃面板本体 ---------- */
.drawer__inner[data-v-80198d04] {
  position: absolute;                     /* 保持原定位，仅补 isolation 防串层 */
  isolation: isolate;
  background: linear-gradient(135deg,
    rgba(255,255,255,.20) 0%,
    rgba(255,255,255,.06) 42%,
    rgba(255,255,255,.16) 100%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.85) brightness(1.06) contrast(1.03);
  backdrop-filter: blur(6px) saturate(1.85) brightness(1.06) contrast(1.03);
  border: 1px solid rgba(255,255,255,.34) !important;
  border-radius: 2rem !important;
  box-shadow:
    0 26px 70px rgba(0,0,0,.38),
    inset 0 2px 2px rgba(255,255,255,.85),
    inset 0 -2px 3px rgba(255,255,255,.42),
    inset 2px 0 3px rgba(255,255,255,.32),
    inset -2px 0 3px rgba(255,255,255,.32);
}

/* ---------- 面板内壁：一层自家壁纸，保证浅色页面下也有"液体"可透 ---------- */
.drawer__inner[data-v-80198d04]::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden;
  background: url("/home/background.jpg") center / cover no-repeat;
  filter: blur(12px) saturate(1.25) brightness(.82);
  opacity: .62;
  transform: scale(1.06);                 /* 吃掉 blur 的透明边 */
}

/* ---------- 边缘光带 + 顶部高光（液态感的来源） ---------- */
.drawer__inner[data-v-80198d04]::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: conic-gradient(from 210deg,
    rgba(255,255,255,.92), rgba(255,255,255,.10) 22%,
    rgba(255,255,255,.86) 48%, rgba(255,255,255,.06) 70%,
    rgba(255,255,255,.90) 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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  mix-blend-mode: screen; opacity: .72;
}

/* ---------- 内部文字：玻璃上统一转白，保证对比度 ---------- */
.drawer__inner[data-v-80198d04],
.drawer__inner[data-v-80198d04] .tabs__header .tab-label { color: #f3f5f8 !important; }
.drawer__inner[data-v-80198d04] .description { color: rgba(243,245,248,.68) !important; }
.drawer__inner[data-v-80198d04] .tabs__header .tab-label.is-active { color: #fff !important; }
.drawer__inner[data-v-80198d04] .tabs__header .tab-label::after { background-color: #fff !important; }
.drawer__inner[data-v-80198d04] .drawer__footer,
.drawer__inner[data-v-80198d04] .drawer__footer a { color: rgba(243,245,248,.6) !important; }
.drawer__inner[data-v-80198d04] .drawer__close-btn { color: #fff !important; }

/* ---------- 站点卡片：只做半透明 + 高光，不再叠 backdrop-filter（12 张卡不炸 GPU） ---------- */
.website-item[data-v-73e570fc] {
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 6px 18px rgba(0,0,0,.16);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.website-item[data-v-73e570fc]:hover {
  background: rgba(255,255,255,.26) !important;
  border-color: rgba(255,255,255,.46) !important;
  transform: translateY(-2px);
}

/* ---------- 底部触发条也做成玻璃胶囊 ---------- */
.website-drawer .drawer-handler[data-v-e2afc78f] {
  color: #fff;
  background: rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  backdrop-filter: blur(14px) saturate(1.7);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.35);
}

/* ---------- 退化方案 ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .drawer__inner[data-v-80198d04] { background: rgba(26,30,36,.86) !important; }
  .drawer__inner[data-v-80198d04]::before { opacity: .5; }
}
@media (prefers-reduced-transparency: reduce) {
  .drawer__inner[data-v-80198d04] { background: rgba(26,30,36,.94) !important; }
  .drawer__inner[data-v-80198d04]::before { opacity: .35; }
}

/* ---------- 低端机降级：屏幕窄且像素比低的设备少给点模糊 ---------- */
@media (max-width: 380px) {
  .drawer__inner[data-v-80198d04] { backdrop-filter: blur(4px) saturate(1.6); -webkit-backdrop-filter: blur(4px) saturate(1.6); }
  .drawer__inner[data-v-80198d04]::before { filter: blur(16px) brightness(.86); }
}
