*, ::after, ::before {
    box-sizing: border-box;
}

img, svg {
    vertical-align: middle;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[v-cloak]{
    display: none;
}

:root {
    --blue-main: #2563ff;
    --blue-light: #e3f0ff;
    --blue-soft: #edf4ff;
    --bg-page-top: #cfe7ff;
    --bg-page-bottom: #f6fbff;
    --text-main: #222;
    --text-sub: #777;
    --border-soft: #e2e8f0;
    --danger: #f33;
    --success-bg: #f6ffed;
    --success-text: #389e0d;
}

a {
    text-decoration: none;
    color: inherit;
}


.page_top{
    height: 48px;
    line-height: 48px;
    border-bottom: 1px solid #ddd;
    background-color: #ffffff;
}

.page_top .page_back{
    position: absolute;
    padding-left: 10px;
}
.page_top .page_title{
    text-align: center;
}


/* 悬浮球样式 */

/* 悬浮球容器 */
.floating-container {
    position: fixed;
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* 悬浮球样式 */
.floating-ball {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #409EFF 0%, #337ecc 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.floating-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 拖动时的样式 */
.floating-ball.dragging {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: none;
    cursor: grabbing;
}

.floating-ball-icon {
    color: white;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.floating-ball:hover .floating-ball-icon {
    transform: rotate(30deg);
}

/* 菜单打开时悬浮球的样式 */
.floating-ball.menu-open {
    background: linear-gradient(135deg, #337ecc 0%, #2a6bb8 100%);
    box-shadow: 0 4px 12px rgba(51, 126, 204, 0.3);
}

/* 吸附动画 */
@keyframes snapPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating-ball.snapped {
    animation: snapPulse 0.3s ease;
}

/* 悬浮菜单 */
.floating-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    padding: 8px 0;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

/* 菜单位置 */
.floating-menu.right {
    left: 100%;
    top: 50%;
    transform: translate(10px, -50%) scale(0.95);
    margin-left: 10px;
}

.floating-menu.left {
    right: 100%;
    top: 50%;
    transform: translate(-10px, -50%) scale(0.95);
    margin-right: 10px;
}

.floating-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%) scale(1);
}

/* 菜单箭头 */
.menu-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-arrow.right {
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent white;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.1));
}

.menu-arrow.left {
    border-width: 8px 10px 8px 0;
    border-color: transparent white transparent transparent;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.1));
}

.floating-menu.active ~ .menu-arrow {
    opacity: 1;
}

/* 菜单项 */
.menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #f5f7fa;
}

.menu-item-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-item-label {
    font-size: 14px;
    color: #333;
    flex: 1;
    white-space: nowrap;
}

/* 指示器样式 */
.snap-indicator {
    position: fixed;
    background: rgba(64, 158, 255, 0.15);
    z-index: 9997;
    pointer-events: none;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.snap-indicator.left {
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.snap-indicator.right {
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-ball {
        width: 50px;
        height: 50px;
    }

    .floating-ball-icon {
        font-size: 20px;
    }

    .floating-menu {
        min-width: 140px;
    }

    .floating-menu.right {
        margin-left: 8px;
        transform: translate(8px, -50%) scale(0.95);
    }

    .floating-menu.left {
        margin-right: 8px;
        transform: translate(-8px, -50%) scale(0.95);
    }

    .floating-menu.active {
        transform: translate(0, -50%) scale(1);
    }

    .el-dialog{
        width:86% !important;
    }
}

/* 点击反馈动画 */
@keyframes clickFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.floating-ball.clicked {
    animation: clickFeedback 0.2s ease;
}

/* 悬浮球样式end */