/* 进度条容器 */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(229, 231, 235, 0.3); /* 浅灰色背景 */
    z-index: 9999;
}

/* 进度条 */
#reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    width: 0%;
    transition: width 0.1s ease;
}

/* 进度指示器 */
#reading-progress-indicator {
    position: fixed;
    right: 5rem;
    bottom: 1rem;
    background-color: rgba(31, 41, 55, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#reading-progress-indicator:hover {
    opacity: 1;
}

#reading-progress-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 暗黑模式下的样式 */
.dark #reading-progress-container {
    background-color: rgba(55, 65, 81, 0.3);
}

.dark #reading-progress-bar {
    background: linear-gradient(to right, #60a5fa, #93c5fd);
}

.dark #reading-progress-indicator {
    background-color: rgba(55, 65, 81, 0.9);
}

/* 在移动设备上调整样式 */
@media (max-width: 768px) {
    #reading-progress-bar {
        height: 5px;
    }

    #reading-progress-indicator {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}