body {
    background: #F7F7F7;
    color: #333333;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

*, body {
    margin: 0;
}

* {
    box-sizing: border-box;
    padding: 0;
}

a {
    color: #333;
    text-decoration: none;
}

li, ul {
    list-style: none;
}

/* 全局 */
.container {
    position: relative;
    margin: auto;
    width: 90pc; /* 调整宽度 */
    max-width: 100%;
}

.content {
    position: relative;
    margin-top: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 85%; /* 调整宽度 */
    margin-left: auto; /* 居中 */
    margin-right: auto; /* 居中 */
}

/* 手机顶部 */
.menu_nav {
    display: none;
}

/* 菜单 */
.menu_container {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    overflow: auto;
    width: 150px;
    border-right: 1px solid #E6E6E6;
    background: #fff;
    text-align: center;
}

.menu_container .logo {
    padding: 20px 0;
    border-bottom: 1px solid #E6E6E6;
}

.menu_container .logo img {
    width: 90px;
    height: 90px;
    max-width: 100%;
    border-radius: 50%;
    vertical-align: middle;
    font-size: 100%;
    transition: transform 0.5s ease-out;
    border: 2px solid #fff;
}

.menu_container .logo img:hover {
    transform: rotate(360deg);
}

.menu_container .menu_item {
    border-bottom: 1px solid #E6E6E6;
}

.menu_container .menu_item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, border-left 0.3s;
}

.menu_container .menu_item:hover a {
    background-color: #07C160;
    color: #fff;
}

.menu_container .menu_item.active a {
    border-left: 5px solid #07C160;
    background-color: #07C160;
    color: #fff;
}

.menu_container .menu_item a i {
    margin-right: 5px;
}

.menu_container .menu_foot {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.menu_container .menu_foot a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.menu_container .menu_foot a:hover {
    color: #07C160;
}

.menu_container .menu_foot .beian {
    font-size: 12px;
    margin-bottom: 5px;
}

/* 首页 */
.index_new h1 {
    width: 100%;
    height: 42px;
    background: #07C160;
    color: #fff;
    text-align: center;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 内容 */
.min {
    overflow: auto;
    margin-left: 150px;
    padding: 20px;
    position: relative;
}

.min_title h1 {
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6E6E6;
    color: #333;
    font-size: 18px;
}

.min_title h1:hover:after {
    width: 88px;
    background: #07C160;
}

.min_title h1:after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #07C160;
    content: "";
    transition: all 0.5s ease;
}

.min_title h1 font {
    margin-left: 10px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.min_content {
    overflow: auto;
    padding-bottom: 30px;
    height: 70vh;
}

.min_content::-webkit-scrollbar {
    width: 3px;
    height: 3px;
    background-color: #fff;
}

.min_content::-webkit-scrollbar-thumb {
    background-color: #07C160;
}

.min_content .article {
    float: left;
    overflow: hidden;
    padding: 15px;
    width: 33.333%;
}

.min_content .article a {
    position: relative;
    float: left;
    overflow: hidden;
    padding: 15px;
    width: 100%;
    height: auto;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.min_content .article a:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.min_content .article h1 {
    overflow: hidden;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6E6E6;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.min_content .article .abstract {
    padding-top: 10px;
    color: #666;
    max-height: 3em; /* 限制最大高度 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 使用省略号 */
    white-space: nowrap; /* 禁止换行 */
    position: relative;
}

.min_content .article .abstract:hover {
    white-space: normal; /* 允许换行 */
    max-height: none; /* 取消高度限制 */
    overflow: visible; /* 显示溢出内容 */
    background: #fff; /* 背景色 */
    z-index: 1; /* 提升层级 */
    padding: 10px; /* 增加内边距 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 添加阴影 */
}

.min_content .article i {
    margin-right: 5px;
    font-size: 18px;
    color: #07C160;
}

.min_content .new {
    padding: 20px 0;
    overflow: hidden;
}

.min_content .new h1, .min_content .new p {
    text-align: center;
}

.min_content .new h1 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #07C160;
}

.min_content .new p {
    font-size: 14px;
    color: #666;
}

/* 底部 */
footer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #E6E6E6;
    background-color: #fff;
}

.footer {
    padding: 15px 20px;
    font-size: 12px;
    color: #666;
}

.footer .link {
    float: right;
}

.footer .link a {
    color: #07C160;
    margin-left: 10px;
}

@media only screen and (max-width: 767px) {
    .content {
        margin-top: 0;
    }
    
    .menu_container {
        position: relative;
        float: left;
        width: 100%;
    }
    
    .menu_container ul {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
    
    .menu_container ul li {
        display: inline-block;
        width: auto;
    }
    
    .min {
        margin-left: 0;
    }
    
    .min_content {
        height: auto;
    }
    
    .content .index {
        float: left;
        width: 100%;
    }
    
    .min_content .article a {
        height: auto;
    }
    
    .min_content .article {
        padding: 10px 0;
        width: 100%;
    }
    
    .menu_container ul li a {
        font-size: 12px;
        padding: 10px;
    }
    
    .footer {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .footer .link, .logo, .menu_foot {
        display: none;
    }
    
    /* 手机顶部 */
    .menu_nav {
        float: left;
        overflow: hidden;
        margin-bottom: 5px;
        padding: 15px;
        width: 100%;
        background-color: #07C160;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: block;
    }
    
    .menu_nav h1 {
        float: left;
        color: #fff;
        font-weight: 600;
        font-size: 18px;
    }
    
    .menu_nav a i {
        float: right;
        margin-top: 6px;
        color: #fff;
        font-size: 16px;
    }
}
.menu-toggle {
    display: none; /* 默认隐藏菜单切换按钮 */
    cursor: pointer;
    color: #333;
    border: 1px solid #E6E6E6; /* 添加边框样式 */
    border-radius: 4px; /* 圆角 */
    padding: 5px 10px; /* 内边距 */
    margin-left: auto; /* 右对齐 */
}

/* 移动端样式 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* 在移动设备上显示菜单切换按钮 */
    }

    .menu_container {
        display: none; /* 默认隐藏菜单 */
        flex-direction: column;
        position: absolute;
        top: 50px; /* 根据需要调整 */
        left: 0;
        background-color: #fff;
        width: 100%;
        border: 1px solid #E6E6E6; /* 添加边框样式 */
        z-index: 1000; /* 确保菜单在其他元素之上 */
    }

    .menu_container.active {
        display: flex; /* 显示菜单 */
    }
}

/* 富文本编辑器样式 */
.editor-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #e6e6e6;
}

.toolbar button {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.toolbar button i {
    margin-right: 5px;
}

.toolbar button:hover {
    background-color: #07C160;
    color: #fff;
}

.editor-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

#source-code {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}

#preview-area {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background-color: #fff;
    min-height: 200px;
}

.image-placeholder {
    background-color: #d3f9d8; /* 淡绿色 */
    display: inline-block;
}