/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* 文章卡片增强效果 */
.day {
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110,142,251,0.1), rgba(167,119,227,0.1));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.day:hover::before {
    transform: translateX(0);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 文章标签样式 */
.tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(110,142,251,0.1), rgba(167,119,227,0.1));
    color: #666;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    transform: translateY(-2px);
}

/* 目录动态效果 */
#catalog {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 80px;
    transform: translateX(0);
    transition: all 0.3s ease;
}

#catalog:hover {
    transform: translateX(10px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

#catalog li {
    position: relative;
    padding-left: 20px;
    margin: 8px 0;
    transition: all 0.3s ease;
}

#catalog li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6e8efb;
    transform: translateY(-50%) scale(0.8);
    transition: all 0.3s ease;
}

#catalog li:hover::before {
    transform: translateY(-50%) scale(1.2);
    background: #a777e3;
}
