        /* 基础重置（仅头部必需） */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        a {
            text-decoration: none;
        }  
        body {
            font-family: "Microsoft YaHei", sans-serif;
            padding-top: 60px; /* 给头部留空间 */
        }

        /* 顶部导航核心样式 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            z-index: 50;
            /* 头部容器本身水平居中（兜底） */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 核心修改：内容容器居中，内部元素间距固定 */
        .container {
            width: 100%;
            max-width: 800px; /* 可自定义：控制Logo+搜索框的整体宽度 */
            height: 100%;
            padding: 0 15px;
            display: flex;
            align-items: center;
            justify-content: space-around; /* 核心：整体居中，内部元素均匀分布 */
            /* 备选方案（如需固定间距）：justify-content: center; gap: 50px; */
        }

        /* Logo样式 */
        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .logo-main {
            color: #007bff;
            font-weight: bold;
            font-size: 20px; /* 桌面端字号 */
        }
        .logo-sub {
            color: #ff7f00;
            font-size: 12px;
        }

        /* 搜索框样式 */
        .search {
            display: flex;
        }
        .search input {
            padding: 6px 12px;
            border: 1px solid #ddd;
            outline: none;
            border-radius: 4px 0 0 4px;
            width: 200px; /* 桌面端输入框宽度 */
        }
        .search button {
            padding: 6px 12px;
            background: #007bff;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 0 4px 4px 0;
        }

        /* 移动端适配 */
        @media (max-width: 768px) {
            .container {
                max-width: 100%; /* 移动端占满宽度 */
            }
            .logo-main {
                font-size: 18px; /* 移动端Logo字号 */
            }
            .search input {
                width: 150px; /* 移动端输入框宽度 */
                padding: 5px 10px;
            }
            .search button {
                padding: 5px 10px;
            }
        }
		


/* 横幅区域 */
.banner {
    background: #007bff;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.banner h1 {
    font-size: 25px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 主内容区和侧边栏容器（关键：为粘性侧边栏设置父容器） */
.main-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 5px;
}

/* 主内容区 */
.main-content {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.section-title {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #333;
}

/* 内容项样式 */
.content-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.content-item {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.content-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.item-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-bottom: 10px;
}

.item-number {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 30px;
    height: 30px;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* 不同序列号的颜色 */
.num-1 { background: #007bff; }
.num-2 { background: #28a745; }
.num-3 { background: #ffc107; }
.num-4 { background: #dc3545; }
.num-5 { background: #17a2b8; }
.num-6 { background: #6610f2; }
.num-7 { background: #fd7e14; }
.num-8 { background: #20c997; }
.num-9 { background: #e83e8c; }
.num-10 { background: #343a40; }
.num-11 { background: #6c757d; }
.num-12 { background: #adb5bd; }
.num-13 { background: #16a085; }
.num-14 { background: #2980b9; }
.num-15 { background: #8e44ad; }
.num-16 { background: #f39c12; }
.num-17 { background: #d35400; }
.num-18 { background: #c0392b; }
.num-19 { background: #7f8c8d; }
.num-20 { background: #2c3e50; }

.item-title {
    font-size: 16px;
    color: #333;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.item-title:hover {
    color: #007bff;
}

.item-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.item-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    font-size: 13px;
    color: #999;
}

/* 网格内容列表（更多推荐区：桌面2列，移动端1列） */
.grid-content {
    margin-bottom:5px;
}

.grid-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin: 0 -10px;
}

.grid-item {
    width: 50%;
    padding: 0 10px 15px;
}

.grid-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 10px 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.2s ease;
}

.grid-inner:hover {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.grid-number {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 24px;
    height: 24px;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.grid-title { 
    font-size: 15px;
    color: #333;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.grid-title:hover {
    color: #007bff;
}

.grid-popularity {
    color: #999;
    font-size: 12px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* 2. 侧边栏样式（适配Theia Sticky Sidebar插件：需有明确宽度和父容器） */
.sidebar {
    width: 300px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    /* 插件要求：侧边栏需有定位基础 */
    position: relative;
}

/* 侧边栏内容包裹层（插件会自动处理，也可提前定义） */
.theiaStickySidebar {
    padding: 0;
    margin: 0;
}

.sidebar-card {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-title {
    background: #f8f9fa;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-content {
    padding: 10px;
}

/* 热门推荐样式 */
.hot-list {
    list-style: none;
}

.hot-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    white-space: nowrap;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    color: #333;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    overflow: hidden;
}

.hot-item a:hover {
    color: #007bff;
}

.hot-number {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 24px;
    height: 24px;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 12px;
    font-weight: bold;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

.hot-text { 
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-count {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

/* 友情链接 */
.friend-links {
    font-size:15px;
    max-width: 1170px;           
    border: 1px solid #f0f0f0;
    margin: 0 auto 30px;
    padding: 0 15px;
    border-radius: 8px; 
}
.friend-links h3{
    padding-left:15px;
    border-left:4px solid #3690cf;
    font-weight:400; 
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-top: 8px;
    color: #333;
    border-bottom: 1px solid rgba(221, 221, 221, .8);
}

.links-container {
    padding: 10px;
}
.links-container a {
    color: #666;
    padding-left: 5px ;
}

.links-container a:hover {
    color: #007bff;
}

/* 底部区域 */
.footer {
    background: #f8f9fa;
    padding: 10px 0 10px;
    border-top: 1px solid #e9ecef;
}

.footer-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-info {
    text-align: center;
    color: #666;
    font-size: 13px;
}

.footer-info div {

    margin-bottom: 10px;
}
.footer-info a {
    color: #007bff;    
}

/* 桌面端样式（仅保留非头部相关） */
@media (min-width: 769px) {
    .sidebar {
        margin-left: 10px;
    } 
}

/* 移动端样式（仅保留非头部相关） */
@media (max-width: 768px) {
    /* 移动端布局：主内容区和侧边栏垂直排列 */
    .main-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .banner h1 {
        font-size: 22px;
    }
    
    .content-item {
        padding: 8px;
    }
    
    /* 网格列表移动端1列 */
    .grid-item {
        width: 100%;
    }
    
    .grid-title {
        font-size: 14px;
    }
}
/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pagination-btn.disabled {
    border-color: #2c7be5;
    background: #2c7be5;
    color: white;
}

/* 基础样式 */
.current-position {
    font-size: 14px;
    color: #666;
    padding: 0 15px;
    max-width: 1170px;
    margin: 15px auto 15px;
}
.current-position a {
    color: #007bff;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .current-position {
        font-size: 13px;
        margin-bottom: 12px;
    }
}
.article-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
    display: flex;
    gap: 20px; 
    padding-bottom: 15px;   
    border-bottom: 1px solid #eee;
}
@media (min-width: 769px) {
    .article-title {text-align: center;}
    .article-meta{justify-content: center; /* 配合flex让内部元素也水平居中 */}
}

/* 样式 */
.article-content {
    max-width: 100%; /* 容器宽度不超过父级（屏幕） */
    overflow-x: auto; 
}

/* 1. 文本强制换行（解决长字符串串位） */
.article-content p,
.article-content div,
.article-content li,
.article-content ul,
.article-content span,
.article-content a {
    word-wrap: break-word; /* 长单词拆分换行 */
    word-break: break-all; /* 强制换行（含URL/代码） */
    white-space: normal; /* 覆盖可能的nowrap设置 */
}

/* 2. 媒体元素响应式（防止图片/视频溢出） */
.article-content img,
.article-content video {
    max-width: 100%; /* 宽度适配容器 */
    height: auto; /* 保持比例，避免变形 */
    display: block; /* 消除图片下方留白 */
    margin: 10px auto; /* 居中并增加间距 */
}

/* 4. 代码块/长文本特殊处理 */
.article-content pre,
.article-content code {
    overflow-x: auto; /* 代码块单独滚动，不影响整体布局 */
    white-space: pre-wrap; /* 保留格式的同时允许换行 */
    background: #f5f5f5; /* 区分代码块，提升可读性 */
    padding: 8px;
    border-radius: 4px;
}

.article-content p {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}
.article-content ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
.article-content h2 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

/* 2. 标题层级样式 */
.article-content h3 {
    font-size: 17px;
    color: #2c3e50;
    margin: 5px 0 5px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c7be5;
}

.article-content h4 {
    font-size: 17px;
    color: #2c3e50;
    margin: 15px 0 12px;
    padding-left: 10px;
    border-left: 3px solid #2c7be5;
}

.article-content :is(dir, menu, ol, ul) ul {
    list-style-type: circle;
}
.article-content :is(dir, dl, menu, ol, ul) ul {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

/* 3. 列表样式 */
.article-content ul,
.article-content ol {
    margin: 0 0 10px 5px;
}

.article-content ul li {
    margin: 0 0 10px 15px;
    font-size: 15px;
}

.article-content ul ul li {
    margin-left: 30px;
    font-size: 14px;
}

.article-content ol li {
    margin: 0 0 10px 15px;
    font-size: 15px;
}

/* 4. 加粗文本样式 */
.article-content b {
    color: #2c7be5;
    font-weight: 600;
}

.article-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
  padding: 0 16px;
}

/* 上一篇/下一篇 项容器 */
.prev-item, .next-item {
  display: flex;
  align-items: center;
}

/* 上一篇/下一篇文字标签 */
.nav-label {
  color: #666;
  font-size: 14px;
  white-space: nowrap; /* 防止文字换行 */
}

/* 链接样式 */
.article-nav a {
  padding: 8px 12px;
  border-radius: 4px;
  color: #333;
  transition: all 0.3s ease;
  flex: 1; /* 链接占剩余空间 */
}

/* 悬停效果 */
.article-nav a:hover {
  background-color: #2d7dff; /* 示例：蓝色背景（可替换为任意色） */
  color: #ffffff; /* 白色文字，与背景形成对比 */
}

/* PC端布局 */
@media (min-width: 768px) {
  .article-nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
  }
  
  .prev-item {
    justify-content: flex-start;
  }
  
  .next-item {
    justify-content: flex-end;
  }
  
  .article-nav a {
    min-width: 200px;
  }
}
.url-box {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 15px auto;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 13px;
  transition: .3s;
  justify-content: center;
}
.url-box span:first-child {
  color: #64748b;
  padding-right: 10px;
}
.url-box span:last-child {
  color: #3b82f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.url-box:hover {
  background: #eff6ff;
  box-shadow: 0 3px 10px rgba(59,130,246,.1);
}
.url-box:hover span {
  color: #1d4ed8;
  border-right-color: #bfdbfe;
}
/* 基础图标容器样式（i标签使用了.fa类） */
.fa{display:inline-block;font-size:inherit;text-rendering:auto;}
i{font-style:normal;}
i.fa{padding-right:5px;}

/* 角度图标（up/down）绘制样式（核心图标形状） */
.fa-angle-up:before{
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    transform: rotate(45deg);
    display: block;
}
.fa-angle-down:before{
    content: '';
    width: 12px;
    height: 12px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    display: block;
}

/* 回到顶部/底部按钮容器核心样式 */
.backtop{z-index:999;bottom:65px;position:fixed;right:15px;cursor:pointer;}
.backtop i{color:#fff;}
/* 按钮盒子样式 */
.backtop .bt-box{
    padding:11px 12px;margin-bottom:5px;width:41px;line-height:18px;
    vertical-align:middle;background:#58a5c3;border-radius:2px;
    box-shadow:0 1px 1px rgba(0,0,0,0.04);text-align:center;
}
/* 按钮 hover 交互样式 */
.backtop .bt-box:hover{background:#3690cf;}
.backtop .bt-box:hover i{color:#fff;}
/* 顶部按钮默认隐藏 */
.backtop .top{display:none;}
/* 按钮内图标特殊样式（覆盖通用.fa的padding） */
#backtop i.fa{font-size:1.2em;font-weight:bold;padding-right:0;}