/* ========== 新增：回到顶部按钮样式 ========== */
.back-to-top {
    /* 固定定位在右侧 */
    position: fixed;
    right: 20px;
    bottom: 30px;
    /* 按钮样式 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    /* 过渡效果 */
    transition: var(--transition);
    /* 初始隐藏 */
    opacity: 0;
    visibility: hidden;
    /* 阴影 */
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    /* 图标居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* 确保在最上层 */
}
/* 按钮显示状态 */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
/* hover效果 */
.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}
/* 按钮内图标 */
.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 20px;
    }
    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}