
html {
    scroll-behavior: smooth;
    font-family: system-ui;
}

::selection {
    background-color: #3b4d52;
    color: #DDDDDD;
}


.body {
    background-color: #191919;
    color: #999999;
    font-family: system-ui, -apple-system, sans-serif;
    transition: font-family 0.3s;
    transition: background-color 0.5s, color 0.5s;
}


header, .content, footer {
    margin-bottom: 20px;
}

.header h1 {
    text-align: center;
    color: #dddddd;
}

.header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

.container {
    border-radius: 8px;
    width: 55%;
    margin: auto;
    background: #212121;
    padding: 20px;
    transition: background-color 0.5s, color 0.5s;
}

.sidebar {
    position: fixed;
    width: 14%;
    padding: 15px;
    border-radius: 8px;
    background-color: #212121;
    -webkit-user-select: none;
    user-select: none;
}

/* sidebar-right */
#sidebar-right {
    position: fixed;
    top: 15%;
    right: 3%;
    max-height: 700px;
    float: right;
}

#sidebar-right p {
    margin-top: 0;
    color: #999999;
    font-weight: bold;
}

#sidebar-right ul {
    text-align: left;
    width: 90%;
    list-style: none;
    padding: 5%;
    color: #999999;
    background: #1B1B1B;
}

#sidebar-right li {
    padding: 7px 0;
    border-bottom: 1px solid #888888;
}
#sidebar-right li a:hover {
    background-color: #2C2C2C;
}
#sidebar-right li:last-child {
    border-bottom: none;
}


/*#sidebar-left */
#sidebar-left {
    top: 15%;
    left: 3%;
}
#sidebar-left ul {
    list-style: none;
    padding: 0;
    background-color: #212121;
    max-height: 60%; /* 限制高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
}
#sidebar-left a {
    display: block;
    padding: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
}
#sidebar-left li {
    position: relative;
}
#sidebar-left li a {
    display: block;
    padding: 8px;
    text-decoration: none;
}
#sidebar-left li a:hover {
    background-color: #444;
}
#sidebar-left li:hover > ul {
    display: block;
}
#sidebar-left ul ul {
    display: none;
    position: relative;
    left: 0;
    top: 0;
    margin-left: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    max-height: 70vh; /* 限制高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
}
#sidebar-left li:hover > ul {
            display: block;
            max-height: 500px; /* Adjust as needed */
            opacity: 1;
        }
        #sidebar-left li a::after {
            content: '';
            float: right;
            margin-left: 5px;
            transition: transform 0.3s;
        }
        #sidebar-left li.has-submenu > a::after {
            content: '▼';
        }
        #sidebar-left li:hover > a::after {
            transform: rotate(-180deg);
        }


a {
    text-decoration: none;
}

a, a:visited {
    color: inherit;
}

.footer {
    height: 60px;
    text-align: center;
    padding: 3px;
    margin-top: 5px;
    background: #333333;
    border-radius: 5px;
    -webkit-user-select: none;
    user-select: 'none';
}

.footer p {
    color: #999999;
    font-weight: bold;
    -webkit-user-select: none;
    user-select: none;
}

.no-select {
    -webkit-user-select: none;
    user-select: none;
}

.home_blog_info {
    place-items: center;
    border-radius: 8px;
    width: 90%;
    background-color: #252525;
    color: #999999;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 滚动条整体样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* 滚动条轨道样式 */
::-webkit-scrollbar-track {
    background: #222222;
}

/* 滚动条滑块样式 */
::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 6px;
}

/* 滚动条滑块hover样式 */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 滚动条按钮样式 */
::-webkit-scrollbar-button {
    display: none;
}

/* 滚动条角落样式 */
::-webkit-scrollbar-corner {
    background: #191919;
}


#sidebar-github {
    top: 2%;
    left: 3%;
    font-size: 90%;
    color: #999999;
    text-align: center;
}


#sidebar-account {
    top: 2%;
    right: 3%;
    font-size: 90%;
    color: #999999;
    text-align: center;
}

#accountInfo {
    margin-bottom: 10px;
    font-weight: bold;
}

#sidebar-account button {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

#sidebar-account button:hover {
    background-color: #555;
}

.reading-mode {
    color: #777;
    font-size: 18px;
    line-height: 1.6;
}
.reading-mode img {
    max-width: 100%;
    height: auto;
}


.image-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ebb;
    font-family: Arial, sans-serif;
    color: #666;
    font-size: 14px;
    border: 1px solid #ddd;
}

img.fallback {
    object-fit: contain;
}