:root {
    --header-height: 4rem;
    --main-width: 80rem;
    --color-sidebar: rgba(240, 245, 255, 0.8);
    --color-box: rgba(255, 255, 255, 0.8);
}

html, body {
    background-color: #f9f9f9 !important;
}

body {
    position: relative;
}

body::before {
    content: "";
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 默认隐藏评论动作（回复/编辑/置顶），鼠标移到评论时显示 */
.comment-actions {
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease-in-out;
}
.comment_parent:hover .comment-actions {
    opacity: 1;
    pointer-events: auto;
}

.sidebar .menu {
    --menu-active-fg: var(--color-primary-content) !important;
    --menu-active-bg: var(--color-primary) !important;

    * {
        box-shadow: none !important;
    }

    a, summary {
        margin: 3px 0 !important;
    }
}

/* 隐藏滚动条但保留滚动功能 */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE 和 Edge */
  scrollbar-width: none;    /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
