/* home glass mark — ported from bailu-glass-redesign.html */
.defs.home-mark-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.home-glass-mark,
.home-glass-mark.mark-wrap {
  position: relative;
  width: min(100%, 590px);
  margin-inline: auto;
  overflow: visible !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
@media (max-width: 900px) {
  .home-glass-mark,
  .home-glass-mark.mark-wrap { width: min(84vw, 440px); }
}

/* ---------- 玻璃三瓣标识 ---------- */
.mark {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* 默认也可圆角，但绝不能 overflow 裁切；3D 时取消圆角 */
  border-radius: 50%;
  overflow: visible !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.mark.is-3d {
  border-radius: 0 !important;
  overflow: visible !important;
}
.mark > svg,
.petal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* 背景圆盘（刻度）保留在 WebGL 之下，不做蒙版 */
.mark__grid {
  color: rgba(14, 19, 24, 0.16);
  z-index: 0;
  pointer-events: none;
}
.mark__grid circle,
.mark__grid line {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.16;
}
.mark__grid .tick {
  stroke-width: 1.5;
  stroke-dasharray: 0.11 1.53;
  color: rgba(14, 19, 24, 0.2);
}
.mark__grid .dash {
  stroke-dasharray: 0.6 1.2;
}
.petal {
  will-change: transform;
}
.petal__glass {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(9px) saturate(1.9) brightness(1.07);
  backdrop-filter: blur(9px) saturate(1.9) brightness(1.07);
}
.petal__rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.js .mark__core,
.js .mark__shadow,
.js .petal > * {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.js .mark.is-live .mark__core,
.js .mark.is-live .mark__shadow,
.js .mark.is-live .petal > * {
  opacity: 1;
}
/* WebGL：150% 画布，禁止任何圆形/蒙版裁切 */
.mark-gl {
  position: absolute;
  left: -25%;
  top: -25%;
  width: 150%;
  height: 150%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s ease;
  border-radius: 0 !important;
  overflow: visible !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.mark-gl.on {
  opacity: 1;
}
.js .mark.is-3d > .mark__core,
.js .mark.is-3d > .mark__shadow,
.js .mark.is-3d .petal > * {
  opacity: 0 !important;
  transition: opacity 0.7s ease;
}
.js .mark.is-3d .petal {
  visibility: hidden;
  transition: visibility 0s 0.8s;
}
.js .mark.is-3d > .mark__grid {
  opacity: 1;
  visibility: visible;
  z-index: 0;
}
.mark.is-3d {
  cursor: grab;
  touch-action: pan-y;
}
.mark.is-3d:active {
  cursor: grabbing;
}
