/* ============ 全局初始化 ============  */
/* ============ 全局初始化 ============  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 设置盒子模型为 border-box，包含边框和内边距 */
    font-family: -apple-system, SF UI Text, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif;
    -webkit-font-smoothing: antialiased
}

body {
    /*font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 微软雅黑, Arial, sans-serif;*/
    font-family: -apple-system, BlinkMacSystemFont, opensans, Optima, "Microsoft Yahei", sans-serif;;
    line-height: 1.6;
    /*background: #f5f5f5;*/
    background: #f2f3f5;
    color: #3F536E;
}

/* 大图片 */
#outerdiv {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 200;
}


/* ============ 自定义滚动条 ============  */
/* 针对 Chrome、Edge 和 Safari 浏览器的滚动条样式 */
.scroll1::-webkit-scrollbar {
    width: 3px;
}

.scroll1::-webkit-scrollbar {
    width: 3px !important; /* 滚动条宽度 */
    height: 3px !important; /* 滚动条宽度 */
}


.scroll1::-webkit-scrollbar-thumb {
    /*background-color: red;*/
    background-color: #9f9898;
}

/* 针对 Firefox 浏览器的滚动条样式 */
body {
    scrollbar-width: thin;
    /*scrollbar-color: red transparent;*/
}

/* 针对 WebKit 浏览器 (如 Chrome, Safari) 的滚动条样式 */
pre::-webkit-scrollbar {
    width: 3px !important; /* 滚动条宽度 */
    height: 3px !important; /* 滚动条宽度 */
}

pre::-webkit-scrollbar-thumb {
    background-color: red; /* 滚动条颜色 */
}

pre::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* 滚动条背景颜色 */
}

/* ============ 遮罩层 ============  */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* 默认隐藏 */
}

.overlay.active {
    display: block; /* 显示遮罩层 */
}


/* ============ 文本样式 ============  */
::selection {
    background-color: rgba(153, 0, 255, 0.3);
    color: black;
}

pre ::selection {
    background-color: rgba(153, 0, 255, 0.3);
    color: white;
}

/*!* 文本居中 *!*/
/*.text_align_center {*/
/*    text-align: center;*/
/*}*/

/* flex */
.flex_base_col_all_center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flex_base_left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*align-items: left;*/
}

/*!* 浮动 *!*/
/*.clearfix::after {*/
/*    content: "";*/
/*    display: block;*/
/*    clear: both;*/
/*}*/

/*!* 卡片樣式 *!*/
/*.card {*/
/*    background-color: hsla(0, 0%, 100%, 0.9);*/
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); !* 添加阴影效果 *!*/
/*    border-radius: 10px;*/
/*    padding: 20px;*/
/*    margin: 10px;*/
/*}*/

/*.card2 {*/
/*    background-color: hsla(0, 0%, 100%, 0.9);*/
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); !* 添加阴影效果 *!*/
/*    border-radius: 10px;*/
/*}*/

/* ============ 自定義 a標籤 ============  */
/*.a_style2 a {*/
/*    !*font-size: 13px;*!*/
/*    text-decoration: none; !* 去掉链接下划线 *!*/
/*    color: #79A1EB; !* 设置链接颜色 *!*/
/*}*/

/*!*.a_style2 a:hover {*!*/
/*!*    background-color: rgba(153, 0, 255, 0.2);*!*/
/*!*}*!*/

/*.a_style_title a {*/
/*    font-size: 20px;*/
/*    text-decoration: none; !* 去掉链接下划线 *!*/
/*    color: #9900FF; !* 设置链接颜色 *!*/
/*}*/

/*.a_style_title a:hover {*/
/*    !*background-color: rgba(153, 0, 255, 0.2);*!*/
/*}*/

/* ============ 导航 ============ */
.header {
    /*padding: 10px 0;*/
    position: relative;
    background-color: hsla(0, 0%, 100%, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    z-index: 100;
    transition: transform 0.5s ease; /* 过渡效果 */
}

/* 吸附时样式 */
.header.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    /*background-color: yellow; !* 吸附时背景颜色变化 *!*/
    transform: translateY(0); /* 确保header显示在顶部 */
}

/* 隐藏header */
.header.hide {
    transform: translateY(-100%); /* 向上移出视口 */
}

/* 容器样式 */
.header_container {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* 设置左右内边距 */

}

#title {
    font-size: 20px;
    font-weight: 600;
}


/* 桌面导航样式 */
.desktop-nav ul {
    height: 50px;
    list-style: none; /* 清除列表样式 */
    display: flex; /* 使用 Flexbox 布局 */
    gap: 20px; /* 子元素间距 */
    margin-right: 50px;

}

.desktop-nav ul li {
    list-style: none; /* 清除列表样式 */
    display: flex; /* 使用 Flexbox 布局 */
    /*justify-content: center;*/
    align-items: center;
    /*gap: 20px; !* 子元素间距 *!*/
    /*width: 55px;*/
    /*height: 100%;*/
    /*padding-left: 10px;*/
    /*padding-right: 10px;*/
}

/*.desktop-nav ul li:hover {*/
/*    list-style: none; !* 清除列表样式 *!*/
/*    display: flex; !* 使用 Flexbox 布局 *!*/
/*    gap: 20px; !* 子元素间距 *!*/
/*    background-color: rgba(153, 0, 255, 0.2);*/
/*    !*width: 100%;*!*/

/*}*/

/*.desktop-nav ul li {*/
/*    width: 50px;*/
/*    !*margin-right: 15px;*!*/
/*    !*margin-left: 15px;*!*/

/*}*/

/*.desktop-nav ul li a {*/
/*    font-size: 18px;*/
/*    font-weight: 600;*/
/*    text-decoration: none; !* 去掉链接下划线 *!*/
/*    color: #9900FF; !* 设置链接颜色 *!*/
/*    !*margin-right: 15px;*!*/
/*    !*margin-left: 15px;*!*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/

/*.desktop-nav ul li:hover {*/
/*    !*background-color: #333; !* 悬停时背景颜色 *!*!*/
/*    !*color: #fff; !* 悬停时文字颜色 *!*!*/
/*    !*font-size: 20px;*!*/
/*    font-weight: 800;*/
/*    background-color: rgba(153, 0, 255, 0.2);*/
/*}*/

/*.desktop-nav ul li a:hover {*/
/*    !*background-color: #333; !* 悬停时背景颜色 *!*!*/
/*    !*color: #fff; !* 悬停时文字颜色 *!*!*/
/*    !*font-size: 20px;*!*/
/*    font-weight: 800;*/
/*}*/

/* 汉堡按钮样式 */
.hamburger {
    display: none; /* 默认隐藏汉堡按钮 */
    font-size: 24px; /* 设置字体大小 */
    cursor: pointer; /* 鼠标悬停时显示为指针 */
}


/* 頭像 */
.avatar {
    width: 150px; /* 头像的宽度 */
    height: 150px; /* 头像的高度 */
    border-radius: 50%; /* 设置为圆形 */
    overflow: hidden; /* 确保内容不会超出边界 */
    /*border: 3px solid #ddd; !* 外边框 *!*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); !* 添加阴影 *!*/
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片以合适的比例填充容器 */
}

/* 作者描述 */
.author_desc {
    font-size: 15px;
    /*font-weight: 300;*/
    word-wrap: break-word;
    /*color: #3F536E;*/
    margin-top: 10px;
    margin-bottom: 10px;
}

/*平台数据 */
.platform_data_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 5px;
    font-size: 15px;
    /*font-weight: 600;*/
}


/* ============ 主体内容 ============  */
main a {
    text-decoration: none;
}

main h3 {
    color: #2C405A;
}


/* ====== 文章 ====== */
.article_list_desc {
    font-size: 15px;
    word-wrap: break-word;
    /*color: #3F536E;*/
    /*color: black;*/
    color: #3F536E;
    margin-top: 10px;
    margin-bottom: 10px;

}

.article_list_info {
    /*display: flex;*/
    font-size: 15px;
    font-weight: 450;
    /*float: left;*/
}

.article_list_info span {
    /*color: #9900FF;*/
    /*color: black;*/
    color: #3F536E;
}

.article_list_info .author {
    float: left;
    margin-right: 7px;
}

.article_list_info .num {
    float: left;
    margin-right: 7px;
}

.article_list_info .createtime {
    float: left;
    margin-right: 7px;
}

.article_list_info .category {
    float: left;
    margin-right: 7px;
}


.footer {
    /*background-color: #800080; !* 紫色背景 *!*/
    color: black; /* 白色字体 */
    padding: 20px 0; /* 内边距 */
}

.footer .container {
    max-width: 1200px; /* 最大宽度 */
    margin: 0 auto; /* 居中对齐 */
    padding: 0 20px; /* 内边距 */
}

.footer-content {
    display: flex; /* 使用弹性盒布局 */
    justify-content: space-between; /* 分散对齐 */
    align-items: center; /* 垂直居中 */
}

.footer-links ul {
    list-style: none; /* 去掉默认列表样式 */
    padding: 0; /* 去掉内边距 */
}

.footer-links li {
    display: inline; /* 水平排列 */
    margin-right: 20px; /* 右边距 */
}

.footer-links a {
    color: black; /* 白色链接 */
    text-decoration: none; /* 去掉下划线 */
}

.footer-links a:hover {
    text-decoration: underline; /* 悬停时添加下划线 */
}

.footer-social a {
    color: white; /* 白色社交图标 */
    margin-right: 15px; /* 右边距 */
    font-size: 1.5em; /* 图标大小 */
}

.footer-bottom {
    text-align: center; /* 文本居中 */
    margin-top: 20px; /* 上边距 */
}


/* ============ footer ============  */
.footer {
    position: relative;
    top: 20px;
    font-size: 12px;
    color: #999999;
    /*border: 1px solid red;*/
}

footer a {
    text-decoration: none;
    color: #999999;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============ 手机专栏 ============  */
/* 针对 class 为 category_mobile 和 category_pc 的 div 设置滚动条样式 */
.category_mobile {
    position: fixed;
    top: 0;
    /*right: -300px; !* 默认隐藏，右侧位置 *!*/
    left: -300px; /* 默认隐藏，右侧位置 */
    width: 300px; /* 弹窗宽度 */
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease; /* 动画效果 */
    padding: 20px;
    box-sizing: border-box;
    z-index: 101;
    overflow-y: auto; /* 启用 Y 轴滚动 */
    display: none;
}

/* 针对 WebKit 浏览器 (如 Chrome, Safari) 的滚动条样式 */
.category_mobile::-webkit-scrollbar {
    width: 3px !important; /* 滚动条宽度 */
}

.category_mobile::-webkit-scrollbar-thumb {
    background-color: red; /* 滚动条颜色 */
}

.category_mobile::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* 滚动条背景颜色 */
}

/* ============ 手机专栏 目录 ============  */
/* 针对 class 为 category_mobile 和 category_pc 的 div 设置滚动条样式 */
.category_ml_mobile {
    position: fixed;
    top: 0;
    /*right: -300px; !* 默认隐藏，右侧位置 *!*/
    left: -300px; /* 默认隐藏，右侧位置 */
    width: 300px; /* 弹窗宽度 */
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease; /* 动画效果 */
    padding: 20px;
    box-sizing: border-box;
    z-index: 101;
    overflow-y: auto; /* 启用 Y 轴滚动 */
    display: none;
}

/* 针对 WebKit 浏览器 (如 Chrome, Safari) 的滚动条样式 */
.category_ml_mobile::-webkit-scrollbar {
    width: 3px !important; /* 滚动条宽度 */
}

.category_ml_mobile::-webkit-scrollbar-thumb {
    background-color: red; /* 滚动条颜色 */
    /*background-color: rgba(153, 0, 255, 0.78); !* 滚动条颜色 *!*/
}

.category_ml_mobile::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* 滚动条背景颜色 */
}

/* ============ 手机菜单 ============  */
.menu_mobile {
    display: none;
    /*padding: 25px;*/

    position: fixed;
    top: 0;
    /*right: -300px; !* 默认隐藏，右侧位置 *!*/
    left: -300px; /* 默认隐藏，右侧位置 */
    width: 300px; /* 弹窗宽度 */
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease; /* 动画效果 */
    padding: 20px;
    box-sizing: border-box;

    z-index: 101;
    /*scrollbar-width: 3px;*/
    /*scrollbar-color: red transparent;*/
}

.menu_mobile a {
    text-decoration: none;
}

/* ============ 手机 侧边按钮 ============  */
/* 专栏、菜单 */
.category_mobile_button, .category_ml_mobile_button, .menu_button {

    width: 30px;
    height: 60px;
    line-height: 20px;
    /*text-align: center;*/

    /*padding-top: 10px;*/
    position: fixed;
    /*background-color: rgba(64, 158, 255, 0.5);*/
    /*background-color: rgba(153, 0, 255, 0.2);*/
    background-color: rgba(153, 0, 255, 0.42);
    color: white;
    border-radius: 0px 10px 10px 0px;
    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}


/* ============ 通用 专栏 列表 ============ */
#category_list {
    width: 100%;
    /*background-color: #f6f4f0;*/
    /*background: linear-gradient(to bottom, #f5f5f5, #e0e0e0); !* 渐变背景 *!*/
}

#category_list a {
    /*font-size: 16px;*/
    /*font-weight: 500;*/
    /*color: #646464;*/
    /*text-decoration: none;*/
    /*width: 100%;*/
    /*display: block;*/

    font-weight: 500;
    line-height: 24px;
    /*background-color: #f6f4f0;*/
    text-decoration: none;
    display: block;
    padding: 4px;
    border-bottom: 1px solid #efefef;
    color: #000;
    font-size: 14px;

}


/*#909090*/

/*#category_list a:hover {*/
/*    !*font-weight: bold;*!*/
/*    background-color: rgba(153, 0, 255, 0.2);*/
/*}*/

#category_list .hn a {
    /*font-weight: bold;*/
    color: #909090;
}


#category_list .h2 a {
    /*font-weight: bold;*/
    color: #909090;
}

#category_list ul {
    list-style: none;

}

#category_list li {
    list-style: none;
    overflow-x: hidden;
}

#category_list a:hover {
    background-color: rgba(153, 0, 255, 0.5);
    color: white;
}

#category_list .h1 {
    background: linear-gradient(to bottom, #e0f7fa, #b2ebf2); /* 浅蓝色渐变背景 */
    color: black;
    font-weight: bold;
}

/* ============ ul li a 标签 ============ */
.hot_ul_a_list {
    width: 100%;
}

.hot_ul_a_list a {
    font-size: 15px;
    font-weight: 600;
    color: #6190E8;
    text-decoration: none;
    width: 100%;
    display: block;
    /*color: red;*/
}

.hot_ul_a_list ul {
    list-style: none;

}

.hot_ul_a_list li {
    list-style: none;
    overflow-x: hidden;
}

.hot_ul_a_list li:hover {
    background-color: rgba(153, 0, 255, 0.2);
}


/* ============ 文章目录 ============ */
#side_toc .h2 {
    padding-left: 5px;
}

#side_toc .h3 {
    padding-left: 15px;
}

#side_toc .h4 {
    padding-left: 20px;
}

#side_toc .h5 {
    padding-left: 25px;
}

#side_toc a {
    font-size: 16px;
    font-weight: 500;
    color: #6190E8;
    text-decoration: none;
    width: 100%;
    display: block;
}

#side_toc li:hover {
    background-color: rgba(153, 0, 255, 0.2);
}
