/* 隐藏全局鼠标光标 */
* {
    cursor: none !important;
}

/* ========================================= */
/* 核心修复：防止 Vue 加载前出现大括号模板闪烁 */
/* ========================================= */
[v-cloak] {
    display: none !important;
}

/* 1. 引入本地 Silkscreen (英数常规) - 路径 ../fonts/ */
@font-face {
    font-family: 'Silkscreen';
    src: url('../fonts/Silkscreen-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* 2. 引入本地 Silkscreen (英数加粗) - 路径 ../fonts/ */
@font-face {
    font-family: 'Silkscreen';
    src: url('../fonts/Silkscreen-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* 3. 引入本地 Zpix 中文像素字体 - 路径 ../fonts/ */
@font-face {
    font-family: 'ChinesePixel';
    src: url('../fonts/zpix.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------------- 核心毛玻璃与动态主题 CSS ---------------- */
html, body {
    background-color: #050505;
    color: #f8fafc;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: none;
    touch-action: manipulation;
}

#app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.scanlines {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 15;
}

/* 开场 PowerShell 终端：手机端自适应字号与宽屏比例，彻底杜绝窄屏断行与解码闪跳 */
.boot-screen-mask {
    padding: 12px;
}

.boot-terminal {
    font-size: clamp(9.5px, 2.75vw, 12px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.boot-terminal-bar {
    font-size: 11px;
}

.boot-terminal-body {
    padding: 16px 14px 22px;
    min-height: 205px;
}

.boot-terminal-body p {
    margin: 0;
    white-space: nowrap;
}

.boot-prompt-line {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.boot-prompt-prefix {
    flex-shrink: 0;
    margin-right: 0.55em;
}

.boot-prompt-cmd {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .boot-screen-mask {
        padding: 16px;
    }

    .boot-terminal {
        font-size: 14px;
    }

    .boot-terminal-bar {
        font-size: 14px;
    }

    .boot-terminal-body {
        padding: 24px;
        min-height: 300px;
    }
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.glass-sidebar {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
}

.glass-panel {
    background: rgba(14, 19, 30, 0.42);
    backdrop-filter: blur(24px) saturate(195%);
    -webkit-backdrop-filter: blur(24px) saturate(195%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38), 0 0 32px var(--theme-bg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    border: 1px solid transparent;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #94a3b8;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.nav-active {
    background: var(--theme-bg) !important;
    border-color: var(--theme-color) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32),
    0 0 14px var(--theme-glow),
    inset 0 0 10px rgba(255, 255, 255, 0.18) !important;
    color: var(--theme-color) !important;
    text-shadow: 0 0 15px var(--theme-glow), 0 0 30px var(--theme-glow);
}

@media (min-width: 768px) {
    .nav-item:hover {
        transform: translateX(8px) translateZ(20px) rotateY(-5deg);
        box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-active {
        transform: translateX(12px) translateZ(30px) rotateY(-8deg);
        box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.4),
        0 0 15px var(--theme-glow),
        inset 0 0 10px rgba(255, 255, 255, 0.2) !important;
    }
}

/* 通透冰晶子卡片：去掉多余的二次 backdrop-filter 叠灰，让外框折射的霓虹壁纸色彩清透浮现 */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.35s ease;
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.095) 0%, rgba(255, 255, 255, 0.035) 100%);
    border-color: var(--theme-color);
    box-shadow: 0 8px 24px var(--theme-bg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: translateY(-2.5px);
}

/* 6 大板块统一标题栏高度、首卡间距与内部独立滚动体系 */
.tab-header {
    min-height: 32px;
    margin: 0 !important;
}

.about-board-btn {
    height: 32px;
}

.tab-section-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-section-fill {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.tab-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* 为卡片悬停上浮 (-2.5px) 与霓虹发光预留出血位，并用负外边距精确抵消，保证标题到首卡间距分毫不差 */
    padding: 6px 8px;
    margin: -6px -8px;
}

.tab-static-area {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.music-playlist-card,
.music-playlist-scroll {
    min-height: 0;
}

/* ========================================================
   电子音乐终端：精巧冰晶 Hi-Fi 播控舱 & 纯净歌单样式
   ======================================================== */
.music-deck {
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

@media (min-width: 768px) {
    .music-deck {
        padding: 18px 22px;
        gap: 14px;
    }
}

.music-deck:hover {
    transform: none;
}

.music-deck-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (min-width: 768px) {
    .music-deck-top {
        gap: 18px;
    }
}

/* 微缩黑曜石玻璃视窗（取代原先粗紫框电视机） */
.music-crt {
    position: relative;
    width: 84px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 13px;
    background: #080b12;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.32);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 768px) {
    .music-crt {
        width: 98px;
        height: 66px;
        border-radius: 14px;
    }
}

.music-crt:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.32);
}

.music-crt.is-playing {
    border-color: rgba(168, 85, 247, 0.65);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.28), inset 0 0 12px rgba(0, 0, 0, 0.75);
}

.music-crt-gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.55s ease, transform 0.65s ease;
}

.music-crt-gif.is-visible {
    opacity: 1;
    transform: scale(1);
}

.music-crt-standby {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: radial-gradient(circle at 50% 50%, rgba(26, 20, 42, 0.55) 0%, rgba(6, 8, 14, 0.95) 100%);
    font-size: 8px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.42);
    transition: opacity 0.45s ease;
}

.music-crt-standby.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.music-crt-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
    opacity: 0.75;
}

.music-crt-scanline {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.38;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.32) 50%);
    background-size: 100% 2px;
}

.music-crt-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
}

/* 曲目主标题与副标签栏 */
.music-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.music-track-title {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.05em;
    line-height: 1.3;
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

@media (min-width: 768px) {
    .music-track-title {
        font-size: 15px;
    }
}

.music-track-title.is-playing {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(168, 85, 247, 0.55);
}

.music-meta-sub {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-codec-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 7px;
    border-radius: 6px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.music-codec-tag.is-flac {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.42);
}

/* 4 柱迷你动态像素频谱 */
.music-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.music-eq span {
    width: 2.5px;
    height: 3px;
    border-radius: 1px;
    background: rgba(168, 85, 247, 0.45);
    transition: height 0.25s ease, background-color 0.25s ease;
}

.music-eq.is-playing span {
    background: #c084fc;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.65);
    animation: musicEqBounce 0.78s ease-in-out infinite alternate;
}

.music-eq.is-playing span:nth-child(1) { animation-duration: 0.62s; }
.music-eq.is-playing span:nth-child(2) { animation-duration: 0.88s; animation-delay: 0.15s; }
.music-eq.is-playing span:nth-child(3) { animation-duration: 0.54s; animation-delay: 0.28s; }
.music-eq.is-playing span:nth-child(4) { animation-duration: 0.76s; animation-delay: 0.08s; }

@keyframes musicEqBounce {
    0%   { height: 3px; }
    100% { height: 11px; }
}

.music-track-pos {
    font-size: 9px;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.8);
    letter-spacing: 0.08em;
}

/* 实时渐变填充进度条与音量条 */
.music-scrubber-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-time {
    width: 34px;
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.music-time.is-end {
    text-align: right;
}

input[type=range].music-range {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #a855f7 0%,
        #d8b4fe var(--seek-pct, 0%),
        rgba(255, 255, 255, 0.14) var(--seek-pct, 0%),
        rgba(255, 255, 255, 0.14) 100%
    );
    outline: none;
    cursor: pointer;
}

input[type=range].music-range::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border-radius: 999px;
}

input[type=range].music-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    margin-top: -3px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.85);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

input[type=range].music-range:hover::-webkit-slider-thumb {
    transform: scale(1.3);
    box-shadow: 0 0 14px rgba(192, 132, 252, 1);
}

input[type=range].music-range::-moz-range-track {
    height: 4px;
    background: transparent;
    border-radius: 999px;
}

input[type=range].music-range::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.85);
}

/* 底部对称控制栏：左模式胶囊 · 中纯净播控 · 右纤细音量 */
.music-controls-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.music-mode-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.25s ease;
}

.music-mode-btn:hover {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.45);
}

.music-mode-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.music-mode-label {
    display: none;
}

@media (min-width: 480px) {
    .music-mode-label {
        display: inline;
    }
}

.music-transport {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .music-transport {
        gap: 16px;
    }
}

.music-skip-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-skip-btn svg {
    width: 15px;
    height: 15px;
}

.music-skip-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.26);
    transform: scale(1.08);
}

.music-skip-btn:active {
    transform: scale(0.94);
}

/* 核心播放按钮：单层通透宝石质感（彻底告别双圆环套娃） */
.music-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.24) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.55);
    color: #f3e8ff;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-play-btn svg {
    width: 18px;
    height: 18px;
}

.music-play-triangle {
    transform: translateX(1px);
}

.music-play-btn:hover {
    transform: scale(1.08);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.38) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: #d8b4fe;
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.music-play-btn.is-playing {
    background: linear-gradient(145deg, #c084fc 0%, #9333ea 100%);
    border-color: #e9d5ff;
    color: #0b0714;
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.music-play-btn:active {
    transform: scale(0.94);
}

.music-vol-wrap {
    justify-self: end;
    display: none;
    align-items: center;
    gap: 7px;
    width: 96px;
    color: #94a3b8;
    transition: color 0.25s ease;
}

@media (min-width: 768px) {
    .music-vol-wrap {
        display: flex;
    }
}

.music-vol-wrap:hover {
    color: #f8fafc;
}

.music-vol-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* 歌单列表顶栏与曲目行 */
.music-playlist-card {
    min-height: 150px;
}

.music-playlist-card:hover {
    transform: none;
}

.music-playlist-header {
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.music-playlist-count {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.7);
}

.music-playlist-scroll {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, #000 10px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, #000 10px, #000 calc(100% - 10px), transparent 100%);
}

.music-song-row {
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: #94a3b8;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 768px) {
    .music-song-row {
        padding: 10px 14px;
        font-size: 12px;
    }
}

.music-song-row:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #f1f5f9;
}

.music-song-row.is-active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.16) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: rgba(168, 85, 247, 0.35);
    color: #ffffff;
    font-weight: 700;
}

.music-song-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.music-song-flac {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1px 5px;
    border-radius: 4px;
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.music-row-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
}

.music-row-eq span {
    width: 2px;
    height: 3px;
    border-radius: 1px;
    background: #c084fc;
}

.music-row-eq.is-playing span {
    animation: musicEqBounce 0.7s ease-in-out infinite alternate;
}

.music-row-eq.is-playing span:nth-child(2) { animation-delay: 0.18s; }
.music-row-eq.is-playing span:nth-child(3) { animation-delay: 0.34s; }

/* 资源卡片：整卡可点 + 图标冰晶方框 + 手机常显 / 桌面悬停浮现胶囊按钮 */
.resource-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.min-w-0 {
    min-width: 0;
}

.resource-icon-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(0, 0, 0, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resource-card-action {
    opacity: 0.92;
    padding: 4px 12px;
}

@media (min-width: 768px) {
    .tab-header {
        min-height: 36px;
    }

    .about-board-btn {
        height: 36px;
    }

    .tab-section-shell {
        gap: 20px;
    }

    .tab-scroll-area {
        gap: 12px;
    }

    .tab-static-area {
        gap: 18px;
    }

    .resource-card-action {
        opacity: 0;
        padding: 6px 16px;
    }

    .resource-card:hover .resource-card-action,
    .resource-card:focus-visible .resource-card-action {
        opacity: 1;
    }
}

.tab-title {
    color: var(--theme-color);
    text-shadow: 0 0 12px var(--theme-glow);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-link {
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.theme-link:hover {
    background: var(--theme-color);
    color: #000;
    box-shadow: 0 0 20px var(--theme-glow);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

/* ====== 新增：音量调整滑块专属样式 ====== */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px !important;
    width: 12px !important;
    background: #f8fafc !important;
    border-radius: 50% !important;
    margin-top: -4px !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: var(--theme-color);
    box-shadow: 0 0 12px var(--theme-glow);
    cursor: pointer;
    border-radius: 50%;
    margin-top: -6px;
    transition: background 0.5s ease;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

.game-pop-enter-active,
.game-pop-leave-active {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-pop-enter-from,
.game-pop-leave-to {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
}

/* ====== 新增：紫色玻璃滑动块专属样式 ====== */
.music-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px !important;
    width: 10px !important;
    background: rgba(168, 85, 247, 0.7) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.4) !important;
    border-radius: 4px !important;
    margin-top: -7px !important;
    transition: all 0.3s ease;
}

.music-slider::-webkit-slider-thumb:hover {
    background: rgba(168, 85, 247, 1) !important;
    transform: scale(1.2);
}

/* ====== 新增：跳舞小电视动画 ====== */
.tv-character {
    animation: dance 0.4s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dance {
    0% {
        transform: translateX(-6px) rotate(-12deg) scale(0.95);
    }
    100% {
        transform: translateX(6px) rotate(12deg) scale(1.05);
    }
}

/* ========================================= */
/* ====== 新增：优雅滚动渐显专用类 ====== */
/* ========================================= */
.reveal-init {
    opacity: 0 !important;
    transform: translateY(10px) !important;
}

.reveal-transition {
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: opacity, transform;
}

/* 新增：跃迁进度条动画 */
@keyframes loading {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* ========================================= */
/* ====== 新增：Wander Jump 坍缩特效 ====== */
/* ========================================= */
@keyframes overload-shake {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        filter: hue-rotate(0deg) brightness(1);
    }
    20% {
        transform: translate(-4px, 4px) scale(1.01);
        filter: hue-rotate(90deg) brightness(1.2);
    }
    40% {
        transform: translate(4px, -4px) scale(0.99);
        filter: hue-rotate(-90deg) brightness(1.5);
    }
    60% {
        transform: translate(-4px, -4px) scale(1.02);
        filter: hue-rotate(45deg) brightness(1.2);
    }
    80% {
        transform: translate(4px, 4px) scale(0.98);
        filter: hue-rotate(-45deg) brightness(1.5);
    }
}

@keyframes crt-implode {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
    30% {
        transform: scale(1, 0.01);
        opacity: 1;
        filter: brightness(2) blur(2px);
    }
    60% {
        transform: scale(0, 0.01);
        opacity: 0;
        filter: brightness(3) blur(5px);
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.animate-overload {
    animation: overload-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite !important;
}

.animate-implode {
    animation: crt-implode 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
    transform-origin: center center;
}

/* 2. 与「身份档案」默认尺寸严丝合缝的精简 SYSTEM ALERT 授权层（无滚动条、绝不超出） */
.panel-under-alert {
    opacity: 0;
    transform: scale(0.985);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-under-alert-clear {
    opacity: 1;
    transform: none;
    transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.system-alert-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    border-radius: 31px;
    padding: 20px;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    font-family: inherit;
}

@media (min-width: 768px) {
    .system-alert-overlay {
        padding: 40px;
        gap: 16px;
    }
}

.system-alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.system-alert-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

.system-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    flex-shrink: 0;
    animation: systemAlertDotPulse 1.8s ease-in-out infinite;
}

@keyframes systemAlertDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.82); }
}

.system-alert-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.08em;
    text-shadow: 0 0 14px rgba(74, 222, 128, 0.35);
}

@media (min-width: 768px) {
    .system-alert-title {
        font-size: 18px;
    }
}

.system-alert-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .system-alert-badge {
        font-size: 10px;
        padding: 5px 11px;
    }
}

.system-alert-body {
    flex: 1 1 auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

@media (min-width: 768px) {
    .system-alert-body {
        padding: 20px 26px;
        gap: 14px;
    }
}

.system-alert-lead {
    margin: 0;
    font-size: 11px;
    line-height: 1.65;
    color: #f1f5f9;
    letter-spacing: 0.04em;
}

@media (min-width: 768px) {
    .system-alert-lead {
        font-size: 13px;
    }
}

.system-alert-hl {
    color: #4ade80;
    font-weight: 700;
}

.system-alert-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    line-height: 1.55;
    color: #cbd5e1;
    letter-spacing: 0.03em;
}

@media (min-width: 768px) {
    .system-alert-rules {
        padding-top: 12px;
        font-size: 11.5px;
        gap: 7px;
    }
}

.system-alert-rules .rule-accept {
    color: #4ade80;
    font-weight: 700;
}

.system-alert-rules .rule-decline {
    color: #94a3b8;
    font-weight: 700;
}

.system-alert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .system-alert-actions {
        gap: 12px;
    }
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0%;
    padding: 9px 16px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 640px) {
    .cookie-btn {
        flex: 0 0 auto;
        padding: 10px 22px;
        font-size: 12px;
    }
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    transform: translateY(-2px);
}

.cookie-btn-accept {
    background: rgba(74, 222, 128, 0.16);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.45);
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.18);
}

.cookie-btn-accept:hover {
    background: rgba(74, 222, 128, 0.28);
    border-color: #4ade80;
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.45);
    transform: translateY(-2px);
}

.cookie-btn:active {
    transform: scale(0.95);
}

/* SYSTEM ALERT 退场与轻晃动效 */
.system-alert-fade-leave-active {
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), filter 0.34s ease;
}

.system-alert-fade-leave-to {
    opacity: 0;
    transform: scale(0.965);
    filter: blur(6px);
}

.system-alert-bounce {
    animation: systemAlertNudge 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes systemAlertNudge {
    0%, 100% { transform: translateX(0) scale(1); }
    20%      { transform: translateX(-6px) scale(1.01); }
    45%      { transform: translateX(5px) scale(1.01); }
    70%      { transform: translateX(-3px) scale(1.004); }
}

/* ========================================= */
/* ====== 5-Phile 聚变旋转跃迁动效专属样式（最顶层、雾玻璃半透明背景） ====== */
/* ========================================= */
.phile-btn {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    background: linear-gradient(180deg, rgba(var(--phile-rgb), 0.22) 0%, rgba(var(--phile-rgb), 0.11) 100%);
    border: 1px solid rgba(var(--phile-rgb), 0.44);
    box-shadow: 0 4px 15px rgba(var(--phile-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-shadow: 0 0 10px rgba(var(--phile-rgb), 0.42);
}

.phile-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(180deg, rgba(var(--phile-rgb), 0.32) 0%, rgba(var(--phile-rgb), 0.18) 100%);
    border-color: rgba(var(--phile-rgb), 0.75);
    box-shadow: 0 6px 25px rgba(var(--phile-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.phile-btn:active {
    transform: translateY(0) scale(0.96);
}

#phile-fusion-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important; /* 最高层级，保证盖在一切板块之上 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    cursor: default !important;
    /* 纯净雾玻璃半透明背景，透出底层壁纸 */
    background: rgba(10, 15, 28, 0.55) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
    opacity: 0;
    transition: opacity 0.4s ease, background-color 0.3s ease;
}

#phile-fusion-overlay.is-active {
    opacity: 1;
}

/* 核心舞台（全自适应电脑端与手机端） */
.phile-stage {
    --stage-size: min(82vw, 82vh, 380px);
    --petal-w: calc(var(--stage-size) * 0.255);
    --petal-h: calc(var(--stage-size) * 0.375);
    --petal-pivot-y: calc(var(--stage-size) * 0.336);

    position: relative;
    width: var(--stage-size);
    height: var(--stage-size);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transform: rotate(0deg) scale(1);
}

.phile-stage.is-spinning {
    animation: phileStageSpin 1.4s cubic-bezier(0.32, 0.06, 0.18, 1) forwards;
}

@keyframes phileStageSpin {
    0% {
        transform: rotate(0deg) scale(0.95);
    }
    45% {
        transform: rotate(540deg) scale(1.08);
    }
    85% {
        transform: rotate(980deg) scale(1.02);
    }
    100% {
        transform: rotate(1080deg) scale(1);
    }
}

/* 5 片独立花瓣（从板块飞出，并在中心合拢） */
.phile-petal {
    position: absolute;
    box-sizing: border-box;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: var(--petal-gradient);
    box-shadow: 0 0 25px var(--petal-color), inset 0 0 15px rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: transform, left, top, width, height, opacity;
    pointer-events: none;
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
                left 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
                top 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
                width 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
                height 0.75s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.6s ease;
}

/* 阶段 0：紧贴在板块上各个按钮的位置（从板块起飞起点） */
.phile-petal.is-gathering {
    left: calc(50% - var(--curr-w) / 2);
    top: calc(50% - var(--curr-h) / 2);
    width: var(--curr-w);
    height: var(--curr-h);
    transform: translate(var(--curr-x), var(--curr-y)) rotate(0deg);
    transform-origin: center center;
}

/* 阶段 1 及以后：飞入中心并旋转对接成 5 瓣花朵 */
.phile-petal.is-converged {
    left: calc(50% - var(--petal-w) / 2);
    top: calc(50% - var(--petal-pivot-y));
    width: var(--petal-w);
    height: var(--petal-h);
    transform-origin: 50% var(--petal-pivot-y);
    transform: translate(0px, 0px) rotate(var(--target-angle));
}

.phile-petal.petal-0 { z-index: 1; }
.phile-petal.petal-1 { z-index: 2; }
.phile-petal.petal-2 { z-index: 3; }
.phile-petal.petal-3 { z-index: 4; }
.phile-petal.petal-4 { z-index: 5; }

/* 当花朵高清大图完全绽放后，CSS 胶囊柔和淡化，融入高清花朵 */
.phile-petal.is-bloomed {
    opacity: 0.15;
}

/* 最终融合生成的真实花朵图片（纯视觉无文字） */
.phile-flower-result-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.65)) drop-shadow(0 0 55px rgba(168, 85, 247, 0.55));
    z-index: 25;
}

.phile-flower-result-img.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Profile <-> board switch: jelly spring (squash and stretch with overshoot) */
.board-fade-enter-active {
    animation: boardJellyIn 0.75s backwards;
    transform-origin: 50% 60%;
}

.board-fade-leave-active {
    transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.4, 0, 1, 1);
    transform-origin: 50% 60%;
}

.board-fade-leave-to {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
}

@keyframes boardJellyIn {
    0%   { opacity: 0; transform: scale(0.86, 0.84) translateY(20px); }
    30%  { opacity: 1; transform: scale(1.05, 0.96) translateY(-4px); }
    50%  { transform: scale(0.98, 1.03) translateY(1px); }
    70%  { transform: scale(1.012, 0.992) translateY(0); }
    85%  { transform: scale(0.996, 1.004); }
    100% { opacity: 1; transform: none; }
}

/* The glass panel itself wobbles like jelly when it changes size */
.panel-jelly {
    animation: panelJelly 0.75s backwards;
    transform-origin: 50% 50%;
}

@keyframes panelJelly {
    0%   { transform: scale(0.96, 0.94); }
    35%  { transform: scale(1.025, 1.03); }
    60%  { transform: scale(0.993, 0.996); }
    80%  { transform: scale(1.004, 1.002); }
    100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .board-fade-enter-active,
    .panel-jelly { animation: none; }
}

/* ========================================================
   土块画板专属样式 (高品质黑雾磨砂毛玻璃 & 赛博微光交互)
   ======================================================== */
.tukuai-board-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    /* 沉浸式赛博黑雾毛玻璃质感与立体内发光 */
    background: radial-gradient(circle at 50% 50%, rgba(20, 25, 35, 0.4) 0%, rgba(5, 5, 10, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 15px rgba(74, 222, 128, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.tukuai-board-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.7), 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(74, 222, 128, 0.1);
}

@media (min-width: 768px) {
    .tukuai-board-container {
        /* 桌面端黄金比例画幅：锁定 16:10，居中呈现 */
        aspect-ratio: 16 / 10;
        margin: auto;
    }
}

/* 一键清空瞬间的赛博 CRT 重置动效 */
@keyframes boardFlash {
    0% { filter: brightness(2.5) contrast(1.5); opacity: 1; }
    30% { filter: brightness(3) blur(1px); opacity: 0.8; }
    60% { filter: brightness(0.4); opacity: 0.4; }
    100% { filter: brightness(1) contrast(1); opacity: 1; }
}

.tukuai-board-container.clearing .board-canvas {
    animation: boardFlash 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 右上角隐身悬浮工具栏：平时幽灵半隐身，悬停或触控时清晰唤醒 */
.tukuai-board-tools {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.45;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 8px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

@media (min-width: 768px) {
    .tukuai-board-tools {
        top: 14px;
        right: 16px;
        gap: 8px;
        padding: 5px 10px;
    }
}

.tukuai-board-tools:hover,
.tukuai-board-tools:focus-within {
    opacity: 1;
    background: rgba(15, 18, 26, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 主页经典 5 色选择圆点 */
.tukuai-colors-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (min-width: 768px) {
    .tukuai-colors-wrap {
        gap: 7px;
    }
}

.tukuai-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    outline: none;
    position: relative;
}

@media (min-width: 768px) {
    .tukuai-color-dot {
        width: 20px;
        height: 20px;
    }
}

.tukuai-color-dot:hover {
    transform: scale(1.25);
    border-color: #fff;
    box-shadow: 0 0 10px var(--dot-color);
}

.tukuai-color-dot.active {
    transform: scale(1.3);
    border-color: #ffffff;
    box-shadow: 0 0 14px var(--dot-color), 0 0 4px #ffffff;
}

/* 悬浮微型功能按钮通用样式 (画笔粗细、清空、返回档案) */
.tukuai-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    line-height: 1;
}

@media (min-width: 768px) {
    .tukuai-tool-btn {
        padding: 5px 9px;
        font-size: 11px;
        gap: 5px;
        border-radius: 12px;
    }
}

.tukuai-tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.tukuai-tool-btn:active {
    transform: scale(0.92);
}

.tukuai-tool-btn .tool-icon {
    width: 13px;
    height: 13px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tukuai-tool-btn .tool-text {
    font-family: 'Silkscreen', 'ChinesePixel', cursive;
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* 一键清空按钮动效（悬浮火红，点击旋转 180°） */
.tukuai-clear-btn:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.7);
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.tukuai-clear-btn:active .tool-icon {
    transform: rotate(180deg) scale(0.9);
}

.tukuai-back-btn:hover {
    border-color: var(--theme-color);
    box-shadow: 0 0 12px var(--theme-glow);
}

/* 左下角赛博协同状态指示条 */
.tukuai-board-status {
    position: absolute;
    bottom: 12px;
    left: 12px;
    top: auto;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Silkscreen', 'ChinesePixel', cursive;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
    pointer-events: none;
    letter-spacing: 0.5px;
    user-select: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 768px) {
    .tukuai-board-status {
        bottom: 12px;
        left: 16px;
        font-size: 9px;
        padding: 4px 10px;
    }
}

.tukuai-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-block;
}

.tukuai-status-dot.online {
    background-color: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.tukuai-status-dot.connecting {
    background-color: #facc15;
    box-shadow: 0 0 8px #facc15;
}

.tukuai-status-dot.clearing {
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
}

.tukuai-status-dot.offline {
    background-color: #94a3b8;
    box-shadow: 0 0 6px #94a3b8;
}

/* 画布本体 */
.board-canvas, canvas.board-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}

/* ========================================================
   「引擎启动」右侧像素 SVG 问号按钮 & 说明弹窗样式
   ======================================================== */
.engine-help-btn {
    position: relative;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(248, 250, 252, 0.78);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 768px) {
    .engine-help-btn {
        width: 28px;
        height: 28px;
    }
}

.engine-help-btn:hover {
    color: var(--theme-color);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--theme-color);
    box-shadow: 0 0 15px var(--theme-glow);
    transform: translateY(-1px) scale(1.06);
}

.engine-help-btn:active {
    transform: scale(0.94);
}

.engine-help-glow-bar {
    position: absolute;
    top: -1px;
    left: 5px;
    right: 5px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--theme-color), transparent);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.engine-help-btn:hover .engine-help-glow-bar {
    opacity: 1;
}

.engine-help-svg {
    width: 14px;
    height: 14px;
    display: block;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
    transition: filter 0.28s ease;
}

@media (min-width: 768px) {
    .engine-help-svg {
        width: 15px;
        height: 15px;
    }
}

.engine-help-btn:hover .engine-help-svg {
    filter: drop-shadow(0 0 6px var(--theme-glow));
}

.engine-help-panel {
    width: 100%;
    max-width: 440px;
    max-height: 82dvh;
    padding: 18px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Silkscreen', 'ChinesePixel', cursive;
}

@media (min-width: 768px) {
    .engine-help-panel {
        padding: 22px 24px;
    }
}

.engine-help-header {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.engine-help-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
}

@media (min-width: 768px) {
    .engine-help-title {
        font-size: 17px;
    }
}

.engine-help-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.engine-help-section {
    border-radius: 14px;
    padding: 11px 13px;
    font-family: inherit;
}

.engine-help-deps-box {
    background: rgba(56, 189, 248, 0.09);
    border: 1px solid rgba(56, 189, 248, 0.34);
    color: #38bdf8;
}

.engine-help-deps-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    color: #7dd3fc;
}

.engine-help-deps-text {
    font-size: 11px;
    line-height: 1.65;
    color: #38bdf8;
    margin: 0;
}

.engine-help-warn-box {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #facc15;
}

.engine-help-warn-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    color: #fde047;
}

.engine-help-warn-text {
    font-size: 11px;
    line-height: 1.65;
    color: #facc15;
    margin: 0;
}

.engine-help-tip-box {
    background: rgba(74, 222, 128, 0.09);
    border: 1px solid rgba(74, 222, 128, 0.32);
    color: #4ade80;
}

.engine-help-tip-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    color: #86efac;
}

.engine-help-tip-text {
    font-size: 11px;
    line-height: 1.65;
    color: #4ade80;
    margin: 0;
}

.engine-help-code {
    font-family: inherit;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(74, 222, 128, 0.35);
    padding: 1px 5px;
    border-radius: 5px;
    color: #bbf7d0;
}
