/* ============================================================
   前端小玩意 · 作品集   shell.css
   注入到每个小玩意页面的统一外壳（返回按钮 / 全屏 / 提示条）
   高 z-index + 显式字体，避免被各页面自身样式污染
   ============================================================ */

#ft-shell {
    position: fixed;
    inset: auto auto 0 0;
    z-index: 2147483000;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI",
        system-ui, sans-serif;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    box-sizing: border-box;
}

#ft-shell * {
    box-sizing: border-box;
}

#ft-shell .ft-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 16, 22, 0.72);
    color: #eaf2f8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.7);
    transition: transform 0.18s, background 0.18s, border-color 0.18s;
    white-space: nowrap;
}

#ft-shell .ft-btn:hover {
    transform: translateY(-2px);
    background: rgba(20, 27, 36, 0.86);
    border-color: rgba(255, 255, 255, 0.4);
}

#ft-shell .ft-btn:active {
    transform: translateY(0);
}

#ft-shell .ft-btn.ft-ghost {
    opacity: 0.72;
}

#ft-shell .ft-btn.ft-ghost:hover {
    opacity: 1;
}

#ft-shell .ft-tip {
    pointer-events: none;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 16, 22, 0.66);
    color: #b9c8d6;
    font-size: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s, transform 0.35s;
}

#ft-shell .ft-tip.show {
    opacity: 1;
    transform: none;
}

/* 亮色页面（白底）下用深色描边保证可读 */
#ft-shell.ft-light .ft-btn {
    border-color: rgba(15, 23, 32, 0.18);
    background: rgba(255, 255, 255, 0.86);
    color: #16202a;
    box-shadow: 0 8px 22px -12px rgba(15, 23, 32, 0.45);
}

#ft-shell.ft-light .ft-btn:hover {
    background: #fff;
    border-color: rgba(15, 23, 32, 0.34);
}

#ft-shell.ft-light .ft-tip {
    border-color: rgba(15, 23, 32, 0.14);
    background: rgba(255, 255, 255, 0.88);
    color: #47586a;
}

@media (max-width: 620px) {
    #ft-shell {
        padding: 10px;
        gap: 7px;
    }
    #ft-shell .ft-btn {
        padding: 8px 11px;
        font-size: 12px;
    }
    #ft-shell .ft-tip {
        display: none;
    }
}

@media print {
    #ft-shell {
        display: none !important;
    }
}
