/* ====== 拟态旋钮导航样式（首页同款） ====== */
.mystery-element {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    cursor: pointer;
    animation: knob-float 4s ease-in-out infinite;
}
.mystery-element:hover { animation-play-state: paused; }
@keyframes knob-float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.knob-touch {
    width: 140px; height: 140px;
    display: flex; align-items: center; justify-content: center;
    margin: -30px 0 0 -30px;
}
.knob-container { position: relative; }
.knob-around {
    width: 70px; height: 70px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    background-image: linear-gradient(0, #f5f8fa, #9da4a8);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}
.knob-handle {
    width: 54px; height: 54px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    background: #c5d1da;
    box-shadow: 0 0 4px rgba(0,0,0,0.5), 0 4px 4px rgba(0,0,0,0.2), inset 0 0 6px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.7), inset 0 0 20px rgba(0,0,0,0.2);
    perspective: 300px;
}
.knob-button-wrapper {
    width: 36px; height: 36px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    background-image: linear-gradient(0, #86969c, #eff1f1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.5), 0 7px 3px -1px rgba(0,0,0,0.2), 0 12px 3px rgba(0,0,0,0.25), 0 -5px 4px rgba(255,255,255,0.5), inset 0 1px 1px rgba(255,255,255,0.6), inset 0 -1px 1px rgba(89,91,92,0.6);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease;
}
.knob-inside {
    position: relative; width: 30px; height: 30px;
    border-radius: 50%;
    background-image: linear-gradient(180deg, #adb9bf, #d4dbdd);
    box-shadow: inset 0 1px 2px rgba(152,160,163,0.4), inset 0 -1px 2px rgba(238,244,246,0.4);
}
.knob-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #e7ecef;
    box-shadow: 0 1px 1px rgba(0,0,0,0.3), inset 0 -1px 1px rgba(0,0,0,0.2);
}
.knob-dot:nth-child(1) { left: 50%; top: 10%; }
.knob-dot:nth-child(2) { left: 90%; top: 50%; }
.knob-dot:nth-child(3) { left: 50%; top: 90%; }
.knob-dot:nth-child(4) { left: 10%; top: 50%; }

/* 液态玻璃菜单 */
.mystery-menu-wrapper {
    position: fixed;
    right: 20px;
    bottom: 110px;
    z-index: 998;
    filter: contrast(1.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mystery-menu-wrapper.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mystery-menu {
    padding: 20px;
    min-width: 210px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
    border-radius: 20px;
    border: 1px double rgba(255,255,255,0.12);
    box-shadow: inset 1px -1px 1px -1px rgba(255,255,255,0.9), inset -1px 1px 1px -1px rgba(255,255,255,0.9), inset 4px -4px 1px -4px rgba(255,255,255,0.4), inset -4px 4px 1px -4px rgba(255,255,255,0.4), 0 8px 32px rgba(0,0,0,0.4);
    filter: brightness(0.9);
}
.mystery-menu::before {
    content: ''; position: absolute; z-index: 1;
    top: 35%; left: 50%; transform: translateX(-50%);
    width: calc(100% - 16px); height: calc(100% - 16px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.9);
    filter: blur(8px); pointer-events: none;
}
.mystery-menu::after {
    content: ''; position: absolute; z-index: 2;
    inset: 0; border-radius: 20px;
    filter: blur(3px); pointer-events: none;
    background: linear-gradient(45deg, rgba(255,255,255,0.8) 0%, transparent 25%, transparent 75%, rgba(255,255,255,0.8) 100%);
}
.mystery-menu ul { list-style: none; position: relative; z-index: 1; }
.mystery-menu li { margin-bottom: 10px; }
.mystery-menu a {
    display: flex; align-items: center; gap: 12px;
    color: #d0d8e8; text-decoration: none;
    padding: 12px 18px; border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.mystery-menu a::before {
    content: ''; position: absolute;
    top: 0; left: -200%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 75%, transparent 100%);
    pointer-events: none;
}
.mystery-menu a:hover::before { animation: menu-shimmer 1.4s ease-in-out infinite; }
.mystery-menu a:hover {
    color: #fff; background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.mystery-menu a svg { width: 18px; height: 18px; opacity: 0.7; transition: opacity 0.3s ease; }
.mystery-menu a:hover svg, .mystery-menu a.active svg { opacity: 1; filter: drop-shadow(0 0 6px rgba(100,180,255,0.6)); }
@keyframes menu-shimmer { 0% { left: -200%; } 100% { left: 100%; } }

@media (max-width: 480px) {
    .mystery-element { right: 15px; bottom: 15px; }
    .mystery-menu-wrapper { right: 15px; bottom: 95px; }
    .mystery-menu { min-width: 180px; padding: 15px; }
    .knob-around { width: 55px; height: 55px; margin: -27px 0 0 -27px; }
    .knob-handle { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
    .knob-button-wrapper { width: 28px; height: 28px; }
    .knob-inside { width: 23px; height: 23px; }
    .knob-dot { width: 2px; height: 2px; }
    .knob-touch { width: 110px; height: 110px; margin: -25px 0 0 -25px; }
}
