* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏IE和Edge的滚动条 */
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 隐藏所有滚动条 */
::-webkit-scrollbar {
    display: none;
}

.container::-webkit-scrollbar,
.right-panel::-webkit-scrollbar, 
.left-panel::-webkit-scrollbar,
#article-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

html,
body {
    height: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

a {
    text-decoration: none !important;
}

#category-container-placeholder {
    background-color: #004295;
    display: block;
}

.top-panel {
    width: 100%;
    max-height: 200px;
    /* 可根据需要调整高度 */
    resize: vertical;
    /* 允许垂直调整大小 */
    min-height: 100px;
    /* 最小高度 */
    display: flex;
    /* 新增：启用flex布局 */
    align-items: center;
    /* 新增：垂直居中 */
}

.main-panel {
    flex: 1;
    width: 100%;
    background-color: rgb(235, 235, 235);
    position: relative;
    overflow: auto;
    z-index: 10; /* 确保不超过下拉菜单的层级 */
}

.title-bar h1 {
    color: rgb(0, 0, 0);
    margin-left: 10px;
}

.left-panel .toggle-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px;
    background-color: #00afffa8;
    color: #edff00;
    border: none;
    cursor: pointer;
    z-index: 2;
}

/* 顶部栏样式 */
.top-bar {
    height: 130px;
    /* background-color: #007bff; */
    display: flex;
    align-items: center;
    padding: 15px 0;
    color: #ffffff;
    margin: 0 auto;
    max-width: 1350px;
    width: 100%;
    position: relative;
}

.top-bar-title {
    margin: 0 20px;
    color: #000000;
    font-weight: 600;
    white-space: nowrap;
}

.site-url {
    font-size: 14px;
    color: #000000;
    white-space: nowrap;
}

#title-editor {
    margin-bottom: 10px;
}

#edit-title {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

.folder-icon {
    margin-left: 10px;
    margin-right: 5px;
}

.title {
    margin-right: 5px;
    font-size: 13px;
}

.buttons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}



.login-btn {
    margin-left: 5px;
    padding: 5px 10px;
    background-color: rgb(88, 86, 213);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.login-btn a {
    color: white;
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.markdown-editor {
    width: 100%;
    height: calc(100% - 45px);
    max-height: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: rgb(33, 35, 39);
    color: white;
    resize: none;
    font-family: monospace;
    margin-top: 10px;
}

/* 股东图片悬停效果 */
.intro-section img:hover {
    transform: scale(1.1);
}

    /* 添加悬停效果 */
.category-item:hover .subcategory-dropdown {
    display: block !important;
}

/* 修改部分：为父级元素添加相对定位 */
.category-item.nav-item {
    position: relative;
    display: inline-block; /* 使绝对定位子元素参照此容器 */
}

.subcategory-dropdown {
    /* 保持原有样式 */
    transition: all 0.3s ease;
}
    
    /* 二级分类悬停效果 */
    .subcategory-dropdown a:hover {
        background-color: rgba(35, 85, 222);
        color: white !important;
    }

/* 隐藏滚动条 */
.subcategory-dropdown::-webkit-scrollbar {
    display: none;
}

    .category-container {
        background-color: #000;
        
        color: #fff;
        padding: 10px;
        white-space: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;  /* IE和Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .category-item {
        padding: 5px 10px;
        position: relative;
    }

.category-item a {
    color: white;
    text-decoration: none;
}

.category-item a:hover {
    text-decoration: underline;
    color: #ddd;
}

    /* 添加悬停触发规则 */
.category-item.nav-item:hover > .subcategory-dropdown {
    display: block !important;
}
    
    /* 保持下拉菜单在悬停时保持显示 */
    .subcategory-dropdown:hover {
        display: block !important;
    }

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgb(0, 0, 0);

    cursor: pointer;
}

    .category-list {
        display: flex;
        gap: 15px;
        list-style: none;
        padding: 0;
        margin: 0;
        -ms-overflow-style: none;  /* IE和Edge */
        scrollbar-width: none;  /* Firefox */
    }

/* 滚动条轨道 */
.category-list::-webkit-scrollbar-track,
.category-list::-webkit-scrollbar-thumb,
.category-list::-webkit-scrollbar {
    display: none;
}

.category-list,
.sub-category-list {
    list-style: none;
    /* padding-left: 20px; */
}

.toggle-icon {
    cursor: pointer;
    margin-right: 5px;
    user-select: none;
}

.cate-title {
    padding-left: 0;
    text-align: left;
    display: block;
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: bold;
}



.category-header,
.sub-category-header {

    cursor: pointer;
    display: flex;
    align-items: center;
}

.category-header:hover,
.sub-category-header:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.category-list li {
    color: rgb(0, 0, 0);
    padding: 5px 0;
    cursor: pointer;
    font-size: 14px;
    padding-left: 20px;
}


.new-doc-btn {
    margin-left: 10px;
    padding: 5px;
    background-color: rgb(88, 86, 213);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-panel {
    flex: 1;
    height: 100%;
    /* background-color: rgb(235, 235, 235); */
    position: relative;
}

/* 通用链接样式 */
.top-bar a {
    text-decoration: none;
}

/* 条件隐藏样式 */
.hidden {
    display: none !important;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100000;
}

/* 下拉菜单内容样式 */
.dropdown-content a {
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* 批量操作按钮样式 */
#batch-controls .batch-delete-btn {
    /* 原有样式（如果存在） */
}

.success-btn {
    background-color: #28a745 !important;
}

.warning-btn {
    background-color: #ffc107 !important;
    color: black !important;
}

/* 表单标签样式 */
.form-label {
    font-size: 14px;
    cursor: pointer;
}

/* 复选框样式 */
.select-all-checkbox {
    /* 可添加复选框特定样式 */
}

.CodeMirror {
    height: 500px !important;
    max-height: calc(100% - 45px) !important;
    overflow-y: auto !important;
    z-index: 1;
}

.CodeMirror-scroll {
    z-index: 1;
}

.CodeMirror .CodeMirror-scroll {
    z-index: 1 !important;
}

.CodeMirror .CodeMirror-gutter {
    z-index: 1 !important;
}

.CodeMirror .CodeMirror-lines {
    z-index: 1 !important;
}

.login-modal {
    display: none;
    position: fixed;
    z-index: 100002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.login-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.search-results {
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f5f5f5;
}

.result-type {
    font-size: 0.8em;
    color: #666;
    margin-right: 8px;
}

.match-text {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

#article-content {
    height: calc(100% - 85px);
    overflow-y: auto;
    padding: 20px;
}

#article-content h2 {
    margin-bottom: 15px;
    color: #333;
}

#article-content h3 {
    margin: 15px 0;
    color: #666;
}

#article-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

#article-content li {
    margin: 5px 0;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.search-article-link {
    color: #1890ff;
    text-decoration: none;
}

.search-article-link:hover {
    text-decoration: underline;
}

.article-list-controls {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.batch-delete-btn {
    padding: 8px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.batch-delete-btn:hover {
    background-color: #c82333;
}

.article-checkbox {
    margin-right: 8px;
    vertical-align: middle;
}

.article-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

/* 文章列表表头 */
.article-list-header {
    display: flex;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: bold;
}

.article-title-col {
    flex: 2;
    min-width: 200px;
}

.created-time-col,
.updated-time-col {
    flex: 1;
    min-width: 150px;
}

/* 文章项 */
.article-item .article-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 15px;
    text-decoration: none;
    /* 添加这一行代码以去掉超链接的下划线 */
    color: rgb(0, 0, 0);
}

.article-title {
    flex: 2;
    min-width: 200px;
}

.created-time,
.updated-time {
    flex: 1;
    min-width: 150px;
    font-size: 0.9em;
    color: #666;
}

.edit-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
    padding: 2px 5px;
}

.edit-btn:hover {
    color: #1890ff;
}

/* 模态框基础样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

/* 分类编辑模态框特殊样式 */
#edit-category-modal {
    z-index: 100000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 模态框头部 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

/* 表单元素 */
.form-input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-select {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
}

.form-select:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 按钮容器 */
.modal-actions {
    margin-top: 20px;
    text-align: right;
}

.btn-primary {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-cancel {
    background: #ddd;
    color: #333;
    border: none;
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.form-select option {
    color: #333 !important;
    background: white !important;
}

.form-select option:disabled {
    color: #999 !important;
    background-color: #f5f5f5 !important;
}

/* 编辑模态框样式 */
#editModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.edit-modal-content {
    min-width: 400px;
}

/* 登录模态框专用样式 */
#login-modal.modal {
    display: none;
    position: fixed;
    z-index: 100001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#login-modal .modal-content {
    position: relative;
    background: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

/* 模态框内容区域 */
.modal-content {
    position: relative;
    /* padding: 20px; */
}



/* 表单元素布局 */
.form-group {
    margin-bottom: 15px;
}


/* 统一输入框样式 */
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.button-group {
    margin-top: 20px;
    text-align: right;
}

.btn-save {
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel {
    background: #666;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

/* 科创动态文章列表样式 */
.category-articles {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

/* 新增光影动画关键帧 */
@keyframes light-beam {
    0% {
        transform: translateX(-100%) skewX(-20deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%) skewX(-20deg);
        opacity: 0;
    }
}

.article-item {
    position: relative; /* 新增定位上下文 */
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 新增光影效果元素 */
.article-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,123,255,0) 0%,
        rgba(0,123,255,0.3) 50%,
        rgba(0,123,255,0) 100%
    );
    animation: light-beam 0.8s linear infinite; /* 改为线性动画并无限循环 */
    pointer-events: none;
    opacity: 0.5; /* 增加透明度使效果更柔和 */
    z-index: 1;  /* 新增层级控制 */
}

.article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.article-title {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-date {
    font-size: 12px;
    color: #999;
    margin-left: 15px;
}

.more-articles {
    text-align: right;
    margin-top: 15px;
}

.more-link {
    color: #007bff;
    font-size: 13px;
    text-decoration: none;
}

.no-articles {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 15px 0;
}

#new-cate {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
}

#new-cate option {
    padding: 5px;
    margin: 2px 0;
    background: #f5f5f5;
    border-radius: 3px;
}

#new-cate option:checked {
    background: #1890ff;
    color: white;
}

#editArticleCate option {
    padding-left: 10px;
    line-height: 1.5;
}

#editArticleCate option[selected] {
    background-color: #e6f7ff;
    font-weight: 500;
}


#new-editor-container {
    height: calc(100% - 180px);
    position: relative;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#new-editor-md-container {
    height: 100% !important;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.editormd-preview {
    top: 80px !important;
}

/* 添加错误显示样式 */
.loading {
    padding: 20px;
    color: #666;
    text-align: center;
}

.error-alert {
    padding: 20px;
    background: #ffe6e6;
    border: 1px solid #ff4444;
    border-radius: 4px;
    margin: 20px;
}

.error-alert h3 {
    color: #dc3545;
    margin-bottom: 10px;
}

.error-alert button {
    margin-top: 10px;
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}



/* 分销团队样式 */
.team-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-level {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.team-level h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.team-level ul {
    list-style: none;
    padding-left: 20px;
}

.team-level li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.join-time {
    color: #7f8c8d;
    font-size: 0.9em;
}

.commission-summary {
    background: #3498db;
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.commission-summary h3 {
    margin: 0 0 10px 0;
}

/* 置顶文章特殊样式 */
.article-item--top {
    font-weight: bold;
    color: #007bff;
    order: -1;
}

/* 文章置顶样式 */
.article-list {
    display: flex;
    list-style: none;
    flex-direction: column;
}

.article-item[style*="order: -1"] {
    order: -1;
}

/* 列表项基础样式 */
.article-item {
    margin: 5px 0;
}

/* 添加按钮样式 */
.batch-delete-btn {
    margin-right: 10px;
    /* 给右边按钮添加间距 */
}

/* 保持原有样式基础上，可以调整颜色 */
button[onclick="batchTopArticles()"] {
    background-color: #28a745 !important;
}

/* 文章编辑页样式 */
#editor-container {
    position: relative;
    z-index: 999;
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    /* 添加这个属性来启用垂直滚动条 */
    max-height: calc(100vh);
    /* 根据实际情况调整最大高度 */
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn-save,
.btn-publish {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-save {
    background: #4CAF50;
    color: white;
}

.btn-publish {
    background: #2196F3;
    color: white;
}

.btn-save:hover,
.btn-publish:hover {
    opacity: 0.9;
}

/* 调整折叠按钮的悬停效果 */
#toc-toggle:hover {
    background: #e0e0e0;
}

.visibility-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    background: white;
    color: #333;
}

/* 添加置顶按钮样式 */
.btn-top {
    background: #666;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 10px;
}

.btn-top:hover {
    background: #555;
}

.btn-top i {
    margin-right: 5px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, .3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 添加toast样式 */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    background: #333;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #f44336;
}

/* 新建文章页样式 */
#new-article-form {
    display: none;
    margin-bottom: 10px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 加载更多按钮样式 */
.modern-load-btn {
    margin: 25px auto;
    display: block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4a90e2, #2f80ed);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modern-load-btn:hover {
    background: linear-gradient(135deg, #63a4ff, #2f80ed);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.modern-load-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 到底啦 */
.modern-load-btn.disabled {
    background: linear-gradient(135deg, #cccccc, #999999);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.modern-load-btn.disabled:hover {
    transform: none;
}

.secret-badge {
    font-size: 0.8em;
    color: #ff4d4d;
    margin-left: 5px;
}
.subcategory-dropdown {
z-index: 99999;
}

/* 科创需求 */
        .requirements-table {
            width: 100%;
            border-collapse: collapse;
            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .requirements-table th,
        .requirements-table td {
            /* padding: 0.8rem 1rem; */
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .requirements-table th {
            background-color: #f9f9f9;
            font-weight: 600;
            color: #666;
        }

        .requirements-table tr:hover {
            background-color: #fafafa;
        }

        .requirements-table td:first-child {
            color: #333;
        }

        .requirements-table .investment {
            color: #e53e3e;
            /* 红色显示金额 */
            font-weight: 500;
        }

        /* 列表项前的圆点样式 */
        .requirement-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #4299e1;
            margin-right: 8px;
            vertical-align: middle;
        }

        /* 需求详情悬浮框样式 */
        .requirement-tooltip {
            position: absolute;
            max-width: 800px;
            padding: 0.8rem;
            background-color: #333;
            color: #fff;
            border-radius: 4px;
            font-size: 0.9rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            line-height: 1.5;
            pointer-events: none;
            /* 确保鼠标事件能穿透悬浮框 */
        }

        /* 可选：添加小三角箭头 */
        .requirement-tooltip::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -5px;
            transform: translateY(-50%);
            border-width: 5px 5px 5px 0;
            border-style: solid;
            border-color: transparent #333 transparent transparent;
        }

        .requirement-item {
            border: 1px solid #ddd;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        /* 在现有style标签中添加以下样式 */
        .requirements-table th:nth-child(1),
        .requirements-table td:nth-child(1) {
            width: 50%;
            /* 需求名称列占50%宽度 */
        }

        /* 调整其他列的宽度，确保总和为100% */
        .requirements-table th:nth-child(2),
        .requirements-table td:nth-child(2),
        .requirements-table th:nth-child(3),
        .requirements-table td:nth-child(3),
        .requirements-table th:nth-child(4),
        .requirements-table td:nth-child(4),
        .requirements-table th:nth-child(5),
        .requirements-table td:nth-child(5) {
            width: 12.5%;
            /* 剩余4列各占12.5% */
        }

        /* 优化内容显示，避免文字溢出 */
        .requirements-table td:first-child {
            word-wrap: break-word;
            /* 允许长单词换行 */
            word-break: break-all;
            /* 强制换行 */
        }

        .requirement-content {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: #666;
            line-height: 1.8;
            /* 增大行间距（原1.4，现1.8） */
            max-height: 7.2em;
            /* 4行内容高度 = 行高1.8em × 4行（原5.6em） */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            /* 保持最多显示4行 */
            -webkit-box-orient: vertical;
            word-wrap: break-word;
            word-break: break-all;
        }
/* 需求边框动态效果 */
.tech-border {
    border: 2px solid rgba(30, 144, 255, 0.2);
    border-radius: 8px;
}

.tech-border::before,
.tech-border::after,
.tech-border .border-corner {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, #1E90FF, #00CED1);
    box-shadow: 0 0 10px #1E90FF, 0 0 20px rgba(30, 144, 255, 0.5);
    z-index: 1;
}

/* 顶部边框动画 */
.tech-border::before {
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    animation: border-top 3s linear infinite;
}

/* 右侧边框动画 */
.tech-border::after {
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    animation: border-right 3s linear infinite;
    animation-delay: 0.75s;
}

/* 底部边框动画 */
.tech-border .border-corner.bottom {
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    animation: border-bottom 3s linear infinite;
    animation-delay: 1.5s;
}

/* 左侧边框动画 */
.tech-border .border-corner.left {
    bottom: 0;
    left: 0;
    width: 3px;
    height: 0;
    animation: border-left 3s linear infinite;
    animation-delay: 2.25s;
}

/* 动画关键帧 */
@keyframes border-top {
    0% { width: 0; left: 0; }
    100% { width: 100%; left: 0; }
}

@keyframes border-right {
    0% { height: 0; top: 0; }
    100% { height: 100%; top: 0; }
}

@keyframes border-bottom {
    0% { width: 0; right: 0; }
    100% { width: 100%; right: 0; }
}

@keyframes border-left {
    0% { height: 0; bottom: 0; }
    100% { height: 100%; bottom: 0; }
}
        
.intro-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

@media (max-width: 768px) {

    .intro-content {
        display: block;
    }
    .intro-image {
        width: 100% !important; /* 图片占满屏幕宽度 */
        height: auto !important;
        margin-bottom: 20px; /* 增加图片与文字的间距 */
    }
    .intro-text {
        width: 100% !important; /* 文字占满屏幕宽度 */
    }
    /* 登录模态框界面 */
    #login-modal .modal-content {
        margin: 20% auto;
        width: 90%;
    }
    
    #login-modal .modal-actions {
        flex-direction: column;
    }


    .top-panel {
        flex-direction: column;
        /* 手机端改为垂直布局 */
        align-items: stretch;
        padding: 5px;
    }

    .search-container {
        width: 100%;
        /* 手机端填满宽度 */
        margin: 5px 0 0 0;
        /* 调整间距 */
    }

    .top-panel.active {
        display: block;
    }

    .main-panel {
        margin-top: 0;
        height: 100%;
    }

    /* 调整下拉菜单定位 */
    #new-doc-dropdown {
        position: fixed;
        bottom: 60px;
        left: 20px;
        z-index: 100000;
        display: block !important;
    }

    .new-doc-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 24px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background: #4CAF50;
        color: white;
    }

    .dropdown-content {
        /* position: fixed; */
        bottom: 80px;
        /* right: 20px; */
        top: auto !important;
        /* width: 50px; */
        /* min-width: 120px; */
        transform: none !important;
        /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); */
    }

    .dropdown-content a {
        padding: 15px;
        font-size: 14px;
    }


    .container {
        position: relative;
    }

    .right-panel {
        resize: none;
        margin-top: 130px !important;
    }

    .slider-container {
        position: relative;
        z-index: 0;
        margin-top: 60px;
    }

    #article-content {
        padding: 10px;
    }

    #article-content>span {
        display: block;
        padding: 10px 5px;
        font-size: 16px;
    }

    .article-list-controls {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }



    #select-all-articles {
        margin: 10px 0;
        display: block;
    }

    .article-item {
        position: relative;
        /* padding-left: 30px; */
        /* 为checkbox留出空间 */
    }

    .article-checkbox {
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 12px;
        height: 12px;
    }

    /* 调整文章链接的间距 */
    .article-link {
        flex-direction: column;
        align-items: flex-start !important;
        /* 强制左对齐 */
        padding: 8px 5px !important;
    }

    .article-title {
        flex: 1 0 100%;
        /* 允许元素扩展填充剩余空间 */
        font-size: 14px;
        margin-bottom: 5px;
        text-align: left;
        /* 新增左对齐 */
        padding-left: 8px;
        /* 添加左侧内边距 */
    }

    .created-time {
        flex: 0 0 50%;
        font-size: 12px;
        min-width: auto;
        display: none;
        /* 新增隐藏属性 */
    }

    .updated-time {
        flex: 1 0 100%;
        /* 改为全宽度 */
        font-size: 12px;
        color: #bbbbbb;
        text-align: left;
        /* 新增左对齐 */
        padding-left: 8px;
        /* 与标题对齐 */
        min-width: auto;
        text-align: left;
        /* 新增左对齐 */
        padding-left: 8px;
        /* 与标题对齐 */
        margin-top: -3px;
        /* 调整与标题的间距 */
    }

    #load-more.modern-load-btn {
        width: 90%;
        margin: 15px auto;
        padding: 10px;
        font-size: 14px;
    }

    .article-list-header {
        flex-wrap: wrap;
        padding: 5px;
    }

    .article-title-col,
    .created-time-col,
    .updated-time-col {
        flex: 0 0 100%;
        padding: 3px 0;
    }

    .buttons-container {
        margin: 0 !important;
        /* 清除原有margin */
        margin-left: auto !important;
        /* 强制右对齐 */
        width: auto;
        /* 自适应宽度 */
        flex-wrap: nowrap;
        /* 防止换行 */
        justify-content: flex-end;
        /* 右对齐 */
    }

    .markdown-editor {
        height: calc(100% - 60px);
    }

    .divider {
        display: none;
    }
}


#editor-md-container {
    height: calc(100% - 45px);
    background: #fff;
}

.editormd-fullscreen {
    z-index: 100001;
}