/**
 * 液态玻璃基类与降级样式。
 */
.glass {
  position: relative;
  border-radius: var(--r, 999px);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.20));
  box-shadow: 0 10px 30px rgba(19, 41, 61, 0.14), 0 2px 6px rgba(19, 41, 61, 0.06);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(19, 41, 61, 0.12);
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(19, 41, 61, 0.08);
  pointer-events: none;
}

html.glass-fallback .glass,
.no-js .glass {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
