/* layout.css —— 共享布局样式 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f5f7; }

/* ── 右下角功能菜单 ── */
.channel-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
}
.fab-ball {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1d1e2c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .2s, box-shadow .2s, background .2s;
    border: none;
    outline: none;
}
.fab-ball:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
    background: #2d2e3c;
}
.fab-ball.open {
    transform: rotate(90deg);
    background: #374151;
}

/* 菜单：点击展开，默认隐藏 */
.fab-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 6px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.95);
    transition: all .2s ease;
    pointer-events: none;
}
.fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.fab-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: background .1s;
}
.fab-menu__item:hover { background: #f0f0f0; }
.fab-menu__item.active { color: #1d1e2c; font-weight: 600; background: #f5f5f7; }
.fab-menu__item .icon { font-size: 16px; width: 20px; text-align: center; }
.fab-menu__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 12px;
}
