/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #0a0a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* 头部样式 */
header {
    background-color: #1a1a2e;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.title {
    color: #64ffda;
    text-decoration: none;
    font-size: 18px;
}

nav a {
    color: #a8b2d1;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #64ffda;
}

/* 主内容区域样式 */
main.article-page {
    display: flex;
    padding: 20px;
}

/* 文章目录样式 */
.article-directory {
    width: 30%;
    min-width: 200px;
    margin-right: 20px;
}

.article-directory h3 {
    color: #64ffda;
    border-bottom: 1px solid #64ffda;
    padding-bottom: 5px;
}

.article-date-group {
    margin-bottom: 15px;
}

.article-date-group h4 {
    color: #64ffda;
    cursor: pointer;
    position: relative;
}

.article-date-group h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.article-date-group.hidden h4::after {
    transform: translateY(-50%) rotate(45deg);
}

.article-list {
    list-style-type: none;
    padding: 0;
}

.article-list li {
    padding: 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-list li:hover {
    background-color: #2a2a4e;
}

/* 文章内容样式 */
.article-content {
    width: 70%;
}

#article-title {
    color: #64ffda;
    border-bottom: 1px solid #64ffda;
    padding-bottom: 5px;
}

/* 页脚样式 */
footer {
    background-color: #1a1a2e;
    text-align: center;
    padding: 10px;
    color: #a8b2d1;
}
.interaction-section {
    position: relative;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ccc;
}

.like-button {
    color: #0a0a0a;
    padding: 5px 10px;
    font-size: 1rem;
    width: 110px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.comments-section{
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 1rem;
}

.comments-section form{
    display: flex;
    width: 600px;
    align-items: center;
    justify-content: space-around;
}
.comments-section textarea {
    width: 70%;
    height: 40px;
    border-radius: 5px;
    padding: 5px;
    font-size: 1rem;
}

#comments-list {
    list-style: none;
    padding-left: 0;
}

#comments-list li {
    background-color: #666464;
    border: 1px solid #ddd;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}
#comment-input {
    background-color: #717575;
}

#article-directory-list{
    padding: 10px 10px 10px 20px;
    height: 620px;
    overflow-y: scroll;
}

#article-body {
    padding: 10px 10px 10px 20px;
    border-radius: 5px;
    height: 620px;
    background-color: #dfdddd;
    color: #0a0a0a;
    overflow-y: scroll;
}

.article-date-group h4{
    height: 8px;
    text-align: right;
    padding-right: 15px;
}