/* ==================== 底部菜单控件样式 ==================== */

/* 根容器 */
.bottom-menu-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
}

/* 遮罩层 */
.bottom-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;
    z-index: 1;
}

.bottom-menu-overlay-show {
    opacity: 1;
    pointer-events: auto;
}

/* 底部菜单面板 */
.bottom-menu-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    z-index: 2;
    pointer-events: auto;
}

.bottom-menu-sheet-show {
    transform: translateY(0);
}

/* 顶部手柄 */
.bottom-menu-handle {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.bottom-menu-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
}

/* 菜单列表容器 */
.bottom-menu-list {
    overflow-y: auto;
    max-height: calc(70vh - 60px);
    padding: 8px 0;
}

/* 隐藏滚动条但保持滚动功能 */
.bottom-menu-list::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* 菜单项样式 */
.bottom-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.bottom-menu-item:active {
    background-color: #f3f4f6;
}

/* 取消按钮区域 */
.bottom-menu-cancel-section {
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
}

/* 取消按钮样式 */
.bottom-menu-cancel-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.bottom-menu-cancel-btn:active {
    background-color: #f9fafb;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .bottom-menu-item,
    .bottom-menu-cancel-btn {
        padding: 16px 20px;
    }

    .bottom-menu-list {
        max-height: calc(70vh - 64px);
    }
}