* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    /* 英文自动换行 */
    word-break: break-word;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background-color: #f5f7fa;
}

        .header {
            background-color: #fff;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }
.header-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    justify-content: flex-start;
}
.logo {
    margin: 0 10px;
    display: flex;
    align-items: center;
}
.logo img {
    width: 40px;
    height: 40px;
}
.logo-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-left: 10px;
}
.nav {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}
        .nav a {
            text-decoration: none;
            color: #606266;
            font-size: 16px;
            padding: 5px 0;
        }
        .nav a:hover {
            color: #409eff;
        }
.main {
    width: 1200px;
    margin: 0 auto;
    padding-top: 78px;
    display: flex;
    gap: 15px;
}
        .content-left {
            width: 800px;
        }
        .content-right {
            width: 380px;
        }
        .article-detail {
            background-color: white;
            border-radius: 2px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 20px;
            background-image: url('https://xn--kwrr8v.top/style/image/bag.png'); 
            background-size: 80%;
        }
        .article-title {
            font-size: 28px;
            font-weight: bold;
            color: #303133;
            margin-bottom: 20px;
            text-align: center;
        }
.article-meta {
    font-size: 13px;
    font-weight: 350;
    color: #666666;
    background-color: rgba(50, 50, 50, .09);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1.2px;
    text-transform: capitalize;
    border-radius: 4px;
    background: rgba(50, 50, 50, .09);
    padding: 4px 10px;
    text-align: center;
    margin-bottom: 20px;
}
        .article-meta span {
            margin: 0 10px;
        }
.article-content {
    color: #303133;
    line-height: 2;
    font-size: 16px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}
.article-content * {
    /* 自动换行 */
    word-break: break-word;
    /* 自动换行 */
    white-space: pre-wrap;
    /* 自动换行 */
    word-wrap: break-word;
    /* 自动换行 */
    overflow-wrap: break-word;
}
        .comment-section {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            padding: 20px;
        }
        .comment-title-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .comment-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
            border-left: 4px solid #409eff;
            padding-left: 10px;
            color: #303133;
        }
        .comment-form {
            margin-bottom: 30px;
        }
        .comment-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #ebeef5;
        }
        .comment-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        .comment-userinfo {
            flex: 1;
        }
        .comment-username {
            font-size: 14px;
            font-weight: bold;
            color: #303133;
        }
        .comment-time {
            font-size: 12px;
            color: #909399;
        }
        .comment-content {
            color: #606266;
            line-height: 1.6;
        }
        .sidebar-card {
            background-color: white;
            border-radius: 3px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            padding:10px 20px;
            margin-bottom: 10px;
        }
        .sidebar-title {
            font-size: 17px;
            font-weight: bold;
            color: #303133;
            margin-bottom: 15px;
            border-left: 4px solid #409eff;
            padding-left: 10px;
        }
        .author-info {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        .author-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
        }
        .author-name {
            font-size: 18px;
            font-weight: bold;
            color: #303133;
        }
        .type-article-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .type-article-list li {
            margin-bottom: 15px;
        }
        .type-article-title {
            font-size: 14px;
            color: #606266;
            text-decoration: none;
            display: block;
        }
        .type-article-title:hover {
            color: #409eff;
        }
        .hot-article-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .hot-article-list li {
            margin-bottom: 15px;
        }
.hot-article-title {
    font-size: 14px;
    color: #606266;
    text-decoration: none;
    display: block;
    /* 隐藏超出部分 */
    overflow: hidden;
    text-overflow: hidden;
    /* 英文自动换行 */
    white-space: nowrap;
    word-break: break-word;
    position: relative; 
}
.hot-article-title b {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 14px;
    color: #909399;
    background-color: #fff;
    padding: 2px 5px; 
    padding-right: 0;
}
        .hot-article-title:hover {
            color: #409eff;
        }
        .hot-article-meta {
            font-size: 12px;
            color: #909399;
            margin-top: 5px;
        }
        .footer {
            background-color: #fff;
            padding: 30px 0;
            text-align: center;
            color: #909399;
            font-size: 14px;
            margin-top: 50px;
            border-top: 1px solid #ebeef5;
        }

.note-info {
    margin-bottom: 10px;
}
.note-article-title {
    font-size: 17px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 10px;
    text-align: left;
    /* 只显示2行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note-article-type {
    color: #303133;
    line-height: 2;
    font-size: 16px;
    font-weight: 600;
    color: #409eff;
    white-space: nowrap;
}
.note-article-content-preview {
    font-size: 14px;
    color: #606266;
    margin-bottom: 10px;
}
.note-article-publish-time{
    font-size: 14px;
    color: #606266;
    padding: 10px 0;
}
.note-article-hot-value{
    border-top: 1px dashed #888888;
    margin-top: 10px;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: #606266;
    display: flex;
    justify-content: space-evenly;
}
.note-article-hot-value span{
    text-align: center;
    line-height: 30px;
}

.delete-comment-btn{
    padding: 2px 10px;
}



/* 富文本样式 */
.article-content {
    /* 代码样式 */
    pre {
        background-color: #303133;
        padding: 10px;
        border-radius: 4px;
        font-size: 16px;
        line-height: 1.3;
        color: #fff;
    }
    /* 文本段落 */
    blockquote {
        line-height: 1.2;
        color: #303133;
        background-color: #f5f5f5;
        padding: 10px;
        margin: 10px 0;
        border-left: 10px solid #B4D5FF;
    }
    ul {
        line-height: 1;
        color: #303133;
        padding: 10px 0;
    }
    td , th{
        border: 1px solid #aaa;
        line-height: 1.5;
        min-width: 30px;
        padding: 3px 5px;
        text-align: left;
    }
    table{
        border-collapse: collapse;
    }
}



/* 调整悬浮按钮的大小 */
.floating-buttons .el-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
    padding: 0;
}

/* 确保工具提示显示正常 */
.floating-buttons .el-tooltip {
    display: block;
}

.article-type{
    font-size: 14px;
    color: #909399;
    padding: 2px 10px;
    border-radius: 15px;
    color: #fff;
    background-color: #409eff;
}

.article-type-draft{
    background-color: #ff9898;
}
.article-type-top{
    background-color: #3ce645;
}
.article-type-vip{
    background-color: #e9e033;
}
.article-type-restrict{
    background-color: #3ce645;
}
