/* 浮动导航气泡样式 */
.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: "华文楷体", "楷体", serif;
}

.floating-nav-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #819766, #62734D);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(129, 151, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(129, 151, 102, 0.6);
}

.floating-nav-toggle.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #62734D, #506040);
}

.floating-nav-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(129, 151, 102, 0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
}

.floating-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-nav-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, rgba(129, 151, 102, 0.1), rgba(94, 115, 77, 0.1));
    border-radius: 13px 13px 0 0;
}

.floating-nav-title {
    font-family: "华文隶书", "隶书", serif;
    font-size: 20px;
    color: #364754;
    margin: 0;
    font-weight: bold;
}

.floating-nav-items {
    padding: 10px 0;
}

.floating-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #364754;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.floating-nav-item:hover {
    background: rgba(129, 151, 102, 0.1);
    color: #819766;
    text-decoration: none;
}

.floating-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #819766;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.floating-nav-item:hover::before {
    transform: scaleY(1);
}

.floating-nav-icon {
    font-size: 18px;
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
}

.floating-nav-text {
    flex: 1;
    font-size: 17px;
}

.floating-nav-badge {
    background: #819766;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}

.floating-nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 5px 20px;
}

.floating-nav-back {
    background: linear-gradient(135deg, rgba(129, 151, 102, 0.15), rgba(94, 115, 77, 0.15));
    border-top: 2px solid rgba(129, 151, 102, 0.2);
    margin-top: 10px;
    padding-top: 10px;
}

.floating-nav-back .floating-nav-icon {
    color: #819766;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .floating-nav {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-nav-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-nav-menu {
        bottom: 70px;
        right: -10px;
        min-width: 180px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(129, 151, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(129, 151, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(129, 151, 102, 0.4);
    }
}

.floating-nav-toggle:not(:hover) {
    animation: pulse 2s infinite;
}