:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --light-color: #f9f9f9;
    --border-color: #eaeaea;
    --text-color: #333;
    --text-light: #7f8c8d;
}

/* 悬浮菜单样式 */
.floating-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.25);
    /* 必须有透明度 */
    backdrop-filter: blur(12px);
    /* 背景模糊 */
    -webkit-backdrop-filter: blur(12px);
    /* Safari */

    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(95, 95, 95, 0.349);
    z-index: 9998;
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.floating-menu.show {
    display: block;
}

.menu-content {
    padding: 15px;
    /* background: rgb(255, 255, 255); */
}

.menu-header {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header>span {
    padding: 3px 4px 3px 3px;
    border-radius: 5%;
    
}

.menu-section {
    margin-bottom: 15px;
}

.menu-section-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: bold;
}

.menu-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: none;
    border: none;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    color: var(--text-color);
}

.menu-item:hover {
    background: #f0f0f0;
}

.menu-item.active {
    background: var(--secondary-color);
    color: white;
}

.progress-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 10px 0;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.setting-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 表单开关样式 */
.form-check {
    display: flex;
    align-items: center;
    margin: 0;
}

.form-switch {
    padding-left: 2.5em;
}

.form-check-input {
    width: 2em;
    height: 1em;
    margin-left: -2.5em;
    background-color: #dee2e6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position 0.15s ease-in-out;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    background-position: right center;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    border-color: var(--secondary-color);
}

/* 关闭按钮样式 */
.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* 滚动条样式 */
.floating-menu::-webkit-scrollbar {
    width: 6px;
}

.floating-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.floating-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.floating-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-menu {
        width: 260px;
        padding: 12px;
    }

    .menu-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .menu-section {
        margin-bottom: 12px;
    }

    .menu-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .progress-display {
        font-size: 1.1rem;
        margin: 8px 0;
    }

    .setting-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .floating-menu {
        width: 240px;
        padding: 10px;
    }

    .menu-header {
        font-size: 0.9rem;
    }

    .menu-section-title {
        font-size: 0.8rem;
    }

    .menu-item {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .progress-display {
        font-size: 1rem;
    }

    .setting-item {
        padding: 6px 0;
    }

    .setting-label {
        font-size: 0.8rem;
    }

    .btn-close {
        width: 20px;
        height: 20px;
        font-size: 1rem;
    }
}