/* 浮动读书状态 - 蓝灰定版 v2.3 */
#flrs-widget {
    position: fixed;
    bottom: 80px;
    left: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    transition: all 0.3s ease;
    max-width: 420px;
}

/* 默认收起状态 */
#flrs-widget .flrs-content {
    background: rgba(44, 58, 75, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #d5dce4;
    padding: 0 20px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(140, 180, 215, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    padding: 0 20px;
}

#flrs-widget .flrs-content:hover {
    background: rgba(48, 64, 82, 0.96);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(140, 190, 225, 0.25);
}

/* 展开状态 */
#flrs-widget.flrs-expanded .flrs-content {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    max-height: 500px;
    padding: 12px 20px 14px 20px;
    margin: 0;
}

#flrs-widget.flrs-expanded .flrs-content:hover {
    transform: translateY(-2px);
}

.flrs-text {
    font-size: 14px;
    line-height: 1.6;
    display: block;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #d5dce4;
}

.flrs-text .flrs-book-title {
    font-weight: 700;
    color: #f0a070;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

#flrs-widget.flrs-expanded .flrs-content:hover .flrs-book-title {
    color: #f5c0a0;
    transform: scale(1.04);
    text-shadow: 0 0 30px rgba(240, 160, 112, 0.3);
}

.flrs-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.flrs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6aafd8, #4a8db8);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.flrs-progress-text {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

/* 切换按钮 - 默认收起位置 */
.flrs-toggle {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: rgba(44, 58, 75, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(140, 180, 215, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 22px;
    color: #8fc9f0;
}

.flrs-toggle:hover {
    transform: scale(1.05);
    background: rgba(52, 70, 90, 0.98);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(140, 190, 225, 0.4);
}

.flrs-toggle .flrs-toggle-icon {
    line-height: 1;
    font-size: 22px;
    transition: transform 0.3s ease;
}

/* 展开时按钮位置 */
#flrs-widget.flrs-expanded .flrs-toggle {
    left: -10px;
    top: -15px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#flrs-widget.flrs-expanded .flrs-toggle .flrs-toggle-icon {
    font-size: 18px;
}

#flrs-widget.flrs-expanded .flrs-toggle:hover {
    transform: scale(1.1);
}

@keyframes flrsSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#flrs-widget.flrs-expanded {
    animation: flrsSlideIn 0.5s ease;
}

@media (max-width: 600px) {
    #flrs-widget {
        bottom: 70px;
        left: 16px;
        right: auto;
        max-width: 320px;
    }
    #flrs-widget.flrs-expanded .flrs-content {
        padding: 10px 16px 12px 16px;
    }
    .flrs-text {
        font-size: 12px;
        line-height: 1.5;
    }
    .flrs-text .flrs-book-title {
        font-size: 13px;
    }
    .flrs-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    #flrs-widget.flrs-expanded .flrs-toggle {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: -12px;
        left: -6px;
    }
    #flrs-widget.flrs-expanded .flrs-toggle .flrs-toggle-icon {
        font-size: 14px;
    }