* {
    margin: 0;
    padding: 0
}

body,
html {
    height: 100%;
    width: 100%;
}

/* ==================== 品牌色彩系统 ==================== */
:root {
    --brand-primary: #1fa4b5;
    --brand-primary-dark: #178a99;
    --brand-primary-light: #4dbccf;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --link-color: #1fa4b5;
    --link-hover: #178a99;
    --bg-body: #f5f5f5;
    --bg-card: #fff;
    --border-color: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    background: var(--bg-body);
    color: var(--text-secondary);
    width: 100%;
    letter-spacing: 0;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-transition: -webkit-transform .2s cubic-bezier(.4, .01, .165, .99);
    transition: transform .2s cubic-bezier(.4, .01, .165, .99), -webkit-transform .2s cubic-bezier(.4, .01, .165, .99);
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: none
}

.blogname {
    font-size: 2em;
    font-family: "楷体", "微软雅黑", consolas, "Times New Roman", Georgia, Times, sans-serif;
    font-weight: bold;
}

/* 使用媒体查询来检测设备宽度 */
@media (max-width: 768px) {
    .blogname {
        font-family: "lxgw wenkai", "楷体", "微软雅黑", consolas, "Times New Roman", Georgia, Times, sans-serif;
    }
}

.blogname a {
    color: #efefef;
    text-decoration: none;
}

.blogname a:link,
.blogname a:visited {
    text-decoration: none;
}

.blogname a:hover,
.blogname a:active {
    color: #efefef;
    text-decoration: none;
}

h1 {
    font-size: 2em
}

h2 {
    font-size: 1.6em
}

h3 {
    font-size: 1.3em
}

h4 {
    font-size: 1em
}


a:link {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:visited {
    color: var(--link-color);
    text-decoration: none;
}

a:active {
    color: var(--link-hover);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

@font-face {
    font-family: "iconfont";
    src: url('/static/images/font_7xfbg1ri4tpgb9.eot?t=1484874598852');
    /* IE9*/
    src: url('/static/images/font_7xfbg1ri4tpgb9.eot?t=1484874598852#iefix') format('embedded-opentype'),
        /* IE6-IE8 */
        url('/static/images/font_7xfbg1ri4tpgb9.woff?t=1484874598852') format('woff'),
        /* chrome, firefox */
        url('/static/images/font_7xfbg1ri4tpgb9.ttf?t=1484874598852') format('truetype'),
        /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
        url('/static/images/font_7xfbg1ri4tpgb9.svg?t=1484874598852#iconfont') format('svg');
    /* iOS 4.1- */
}

.iconfont {
    vertical-align: sub;
    font-style: normal;
    font-size: 24px;
    font-family: iconfont !important
}

.icon-wechat:before {
    content: "\e675";
}

.icon-rss:before {
    content: "\e600";
}

.icon-instagram:before {
    content: "\e616";
}

.icon-facebook:before {
    content: "\e63c";
}

.icon-linkedin:before {
    content: "\e64d";
}

.icon-twitter:before {
    content: "\e6a4";
}

.icon-aboutus:before {
    content: "\e601";
}

.icon-zhihu:before {
    content: "\e609";
}

.icon-weibo:before {
    content: "\e64c";
}

.icon-google:before {
    content: "\e6b7";
}

.icon-music:before {
    content: "\e612";
}

.icon-help:before {
    content: "\e69c";
}

.icon-collect:before {
    content: "\e603";
}

.icon-home:before {
    content: "\e604";
}

.icon-https:before {
    content: "\e6cb";
}

.icon-liuyan:before {
    content: "\e693";
}

.icon-sousuo:before {
    content: "\e605";
}

.icon-links:before {
    content: "\e606";
}

.icon-github:before {
    content: "\ee80";
}

.icon-qq:before {
    content: "\e6f6";
}

.blog-content {
    font-size: 17px;
    line-height: 1.75;
    font-family: "lxgw wenkai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    list-style-type: none;
    color: #333;
    word-wrap: break-word;
}

.title-content {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    font-family: "lxgw wenkai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    list-style-type: none;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 5px 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.title {
    font-size: 1.3em;
    font-family: "楷体", "微软雅黑", consolas, "Times New Roman", Georgia, Times, sans-serif;
    font-weight: bold;
}

@media (max-width: 768px) {
    .title {
        font-family: "lxgw wenkai", "楷体", "微软雅黑", consolas, "Times New Roman", Georgia, Times, sans-serif;
    }
}

.tag-content {
    font-size: 15px;
    line-height: 1.8;
    font-family: "lxgw wenkai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    list-style-type: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.tag-content:last-child {
    margin-bottom: 0;
}

.tag-content a {
    color: #1fa4b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tag-content a:hover {
    color: #178a99;
    text-decoration: underline;
}

/* 相关博文区域样式 */
.blog-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;
}

.blog-content ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.blog-content > p {
    margin: 0 0 3px 0;
}

.blog-content > p.related-posts-wrap {
    margin: 0;
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    font-family: "lxgw wenkai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    list-style-type: none;
    letter-spacing: 0;
}

.left-col {
    position: fixed;
    width: 320px;
    height: 100vh;
    min-height: 100%;
    background-color: #1fa4b5;
    background-size: cover;
    background-position: center;
    background-image: url(/static/images/left.jpg);
    text-align: center;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* 遮罩层已移除，显示原始背景图片 */
.left-col::before {
    display: none;
}

.left-col > * {
    position: relative;
    z-index: 1;
}

.mid-col {
    position: absolute;
    right: 0;
    left: 0;
    margin-left: 320px;
    min-height: 100%;
    background: #fff
}

#header {
    padding: 30px 0;
    width: 100%;
    height: auto;
    border-bottom: none;
    color: #eee;
    line-height: 30px;
}

#header a {
    color: #efefef;
    text-decoration: none;
}

#header a:link,
#header a:visited {
    text-decoration: none;
}

#header a:hover,
#header a:active {
    color: #efefef;
    text-decoration: none;
}

#header h1 {
    float: none;
    font: bold 50px/1.12 "lxgw wenkai", "楷体", "微软雅黑", consolas, "Times New Roman", Georgia, Times, sans-serif;
    font-weight: 300;
    font-weight: bold;
    font-size: 25px
}

#header .subtitle {
    margin: 5px 0;
    color: #ccc;
    font-size: 17px;
    font-family: "楷体", "微软雅黑", consolas;

}

@media (max-width: 768px) {
    #header .subtitle {
        font-family: "lxgw wenkai", "楷体", "微软雅黑", consolas;
    }
}

#header a:hover {
    color: #d0d0d0;
    text-decoration: none
}

#header .profilepic a {
    display: block;
    margin: 10px auto 30px;
    width: 9pc;
    height: 9pc;
    border-radius: 50%;
    background-size: 100% 100%
}

#search {
    position: relative;
    top: 0px;
    z-index: 9999;
    margin-left: 10px;
    width: 88%;
    height: 0;
    -webkit-transform: translate3d(-999px, 0, 0);
    transform: translate3d(-999px, 0, 0)
}

#search,
#search input {
    transition: all .3s ease-out
}

#search input {
    padding: 0 2%;
    width: 100%;
    outline-style: none;
    border: 0;
    border-radius: 0;
    background: #fff;
    font-size: 14px
}

.search-show #search {
    height: 5px;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
}

.search-show #search input {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left
}

#wechat {
    position: relative;
    top: 10px;
    z-index: 9999;
    margin-left: 4%;
    width: 90%;
    height: 0;
    -webkit-transform: translate3d(-999px, 0, 0);
    transform: translate3d(-999px, 0, 0)
}

#wechat,
#wechat img {
    transition: all .3s ease-out
}

#wechat img {
    width: 100%;
}

.wechat-show #wechat {
    height: 30px;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0)
}


#main-nav {
    margin-left: 0
}

#main-nav i {
    margin-right: .6rem
}

#main-nav,
#sub-nav {
    float: none;
    margin-top: 15px
}

#sub-nav .iconfont {
    font-size: 30px
}

#sub-nav i {
    margin-right: .2rem
}

#main-nav ul li {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
    font-size: 18px;
    line-height: 40px;
    font-family: "楷体", "微软雅黑", consolas;
}

@media (max-width: 768px) {
    #main-nav ul li {
        font-family: "lxgw wenkai", "楷体", "微软雅黑", consolas;
    }
}

#header .subtitle {
    color: #ccc
}

.container {
    position: relative;
    width: 100%;
    min-height: 100%
}

.mid-col .mid-col-container {
    padding: 10px 50px 30px 30px
}


.icon-https {
    padding-right: 3px;
    color: #46ce4b;
    vertical-align: bottom;
    font-size: 17px;
}

/* 默认文章样式 - 用于详情页 */
article {
    position: relative;
    padding: 30px 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ddd
}

/* 博文详情页样式 */
.mid-col article.post {
    padding: 10px 0 10px 0;
    border: none;
}

/* 首页文章列表简洁样式 */
.mid-col article.post-list {
    position: relative;
    padding: 0;
    border: none;
    margin-bottom: 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
}

.mid-col article.post-list:last-of-type {
    border-bottom: none;
}

/* 简洁文章列表样式 */
.simple-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
    transition: background-color 0.2s ease;
}

.simple-post-item:hover {
    background-color: #f9f9f9;
}

.simple-post-title {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "lxgw wenkai", "LXGW WenKai", sans-serif;
}

.simple-post-title:hover {
    color: #1fa4b5;
}

.simple-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
    flex-shrink: 0;
}

.simple-post-category {
    color: #1fa4b5;
}

.simple-post-category a {
    color: #1fa4b5;
    text-decoration: none;
}

.simple-post-category a:hover {
    text-decoration: underline;
}

.simple-post-date {
    color: #999;
}

.simple-post-views {
    color: #aaa;
}

article .meta {
    position: relative;
    float: right;
    width: auto;
    color: #555;
    text-align: right;
    font-size: .14px;
    line-height: 2
}

article .meta a {
    color: #999
}

article h1.title {
    margin-bottom: 25px;
    color: #333;
    font-family: "lxgw wenkai", "sans-serif", "ff-tisa-web-pro", Cambria, "Times New Roman", Georgia, Times, sans-serif;
    font-weight: bold;
    font-weight: 300;
    font-size: 20px;
    line-height: 35px
}

article h1.title a {
    color: #505050;
    font-weight: bold;
    transition: color .3s
}

article h1.title a:hover {
    color: #777777;
    font-weight: bold;
    text-decoration: none
}

article button,
article input.runcode {
    margin-top: 10px;
    padding: .625em .5em;
    border: none;
    border-radius: 0;
    background: #12b0e6;
    box-shadow: inset 0 -5px 20px rgba(0, 0, 0, .1);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none
}

article button {
    margin-top: 0
}

article button:active,
article button:focus,
article button:hover,
article input.runcode:active,
article input.runcode:focus,
article input.runcode:hover {
    background: #f6ad08
}

article strong {
    font-weight: 700
}

article em {
    font-style: italic
}

article blockquote {
    overflow: hidden;
    margin-top: 10px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    background-color: #f8f8f8
}

article code {
    margin: 0 2px;
    padding: 4px 5px;
    border-radius: 5px;
    background-color: #eee;
    vertical-align: middle;
    font-size: 60%;
    font-family: Consolas, Monaco, Andale Mono, monospace
}

article pre {
    position: relative;
    overflow: hidden;
    padding: .6em;
    border-left: 5px solid #ccc;
    background-color: #f8f8f8;
    color: #5d6a6a;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word
}

article img {
    display: block;
    margin: 20px auto;
    padding: 0;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

article img:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* 图片懒加载样式 */
article img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

article img[loading="lazy"].loaded,
article img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* 图片占位符 */
article img[loading="lazy"]:not(.loaded) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 200px;
}

/* 特色图懒加载 */
.post-thumbnail img {
    opacity: 1 !important;
}

article table {
    border: 0;
    border-collapse: collapse;
    border-spacing: 0
}

article pre code {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    font-size: 100%
}

article table td,
article table th {
    border: 0
}

article table th {
    padding: 6px 20px;
    border-bottom: 2px solid #848484;
    text-align: left
}

article table td {
    padding: 6px 20px;
    border-bottom: 1px solid #d0d0d0
}

article .copyright-info {
    font-size: 14px
}

article .expire-tips {
    padding: 5px 10px;
    border: 1px solid #e2e2e2;
    border-left: 5px solid #fff000;
    background-color: #ffffc0;
    color: #333;
    font-size: 15px
}

article .post-info {
    padding-top: 10px;
    font-size: 14px;
    border-top: 1px dotted #eee;
    margin-bottom: 5px;
}

article .entry-content {
    color: #333;
    word-wrap: break-word;
    font-size: 17px;
    line-height: 1.75;
    font-family: "lxgw wenkai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 旧的文章列表样式 - 已废弃，保留兼容性 */
article .list-entry-content {
    color: #5d686f;
    word-wrap: break-word;
    font-size: 18px;
    line-height: 1.6;
    font-family: "lxgw wenkai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased
}

article .entry-content h3 {
    padding: 3px 0 3px 8px;
    border-left: 5px solid #3c8cdd;
    background-color: #f9f9f9;
    font-size: 1.1em
}

article img.loaded {
    height: auto !important
}

article .entry-content blockquote,
article .entry-content dl,
article .entry-content h1,
article .entry-content h2,
article .entry-content h3,
article .entry-content h4,
article .entry-content h5,
article .entry-content h6,
article .entry-content iframe,
article .entry-content ol,
article .entry-content p,
article .entry-content pre,
article .entry-content table,
article .entry-content ul {
    margin-top: 15px
}

article pre b.name {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #eee;
    font-size: 14px;
    font-family: Consolas, Liberation Mono, Courier, monospace;
    line-height: 1;
    pointer-events: none
}

article .entry-content .date {
    color: #999;
    font-size: 14px
}

article .entry-content a:hover {
    text-decoration: underline
}

article .entry-content blockquote>p:first-of-type,
article .entry-content dl dl,
article .entry-content dl ol,
article .entry-content dl ul,
article .entry-content ol dl,
article .entry-content ol ol,
article .entry-content ol ul,
article .entry-content ul dl,
article .entry-content ul ol,
article .entry-content ul ul {
    margin-top: 0
}

article.post-search {
    padding-bottom: 0
}

/* ==================== 文章卡片样式 ==================== */

/* 确保卡片内部不受外部 article 样式影响 */
article.post-list .post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: none !important;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content-wrap {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 使用更具体的选择器确保优先级 */
.post-card .post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.post-card .post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: #1fa4b5;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-card .post-category a {
    color: #1fa4b5;
    font-weight: 500;
    text-decoration: none;
}

.post-card .post-category a:hover {
    text-decoration: underline;
}

.post-card .post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    flex: 1;
}

.post-card .post-excerpt p {
    margin: 0;
}

.post-card .post-footer {
    display: flex;
    justify-content: flex-end;
}

.post-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1b315e 0%, #2a4570 100%);
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(27, 49, 94, 0.3);
    border: none;
}

.post-card .read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 49, 94, 0.4);
}

.post-card .read-more i {
    transition: transform 0.3s ease;
}

.post-card .read-more:hover i {
    transform: translateX(4px);
}

/* 无特色图时的样式 */
.post-card:not(:has(.post-thumbnail)) .post-content-wrap {
    padding-top: 20px;
}

/* ==================== 归档页面样式 ==================== */

.archive-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.archive-title a {
    color: #1fa4b5;
    text-decoration: none;
}

.archive-title a:hover {
    text-decoration: underline;
}

.archive-title span {
    color: #1fa4b5;
}

.archive-list {
    margin-top: 0;
}

.archive-item {
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.archive-item:first-child {
    padding-top: 8px;
}

.archive-item:hover {
    background-color: #f9f9f9;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.archive-item-title {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "lxgw wenkai", "LXGW WenKai", sans-serif;
}

.archive-item-title:hover {
    color: #1fa4b5;
}

.archive-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}

.archive-item-category {
    color: #1fa4b5;
    text-decoration: none;
}

.archive-item-category:hover {
    text-decoration: underline;
}

.archive-item-date {
    color: #999;
}

/* 响应式 */
@media screen and (max-width: 640px) {
    .archive-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .archive-title {
        font-size: 20px;
    }
    
    .archive-item {
        padding: 15px 0;
    }
    
    .archive-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .archive-item-title {
        white-space: normal;
        width: 100%;
    }
}

/* ==================== 友情链接样式 ==================== */

.friend-links-section {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.friend-links-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.friend-link:hover {
    background: #1b315e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 49, 94, 0.3);
}

.friend-link i {
    color: #46ce4b;
    font-size: 14px;
}

.friend-link:hover i {
    color: #fff;
}

.friend-link.join-link {
    background: linear-gradient(135deg, #1b315e 0%, #2a4570 100%);
    color: #fff;
}

.friend-link.join-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 49, 94, 0.4);
}

/* 响应式 */
@media screen and (max-width: 640px) {
    .friend-links-section {
        margin-top: 30px;
        padding: 20px;
    }
    
    .friend-links-title {
        font-size: 16px;
    }
    
    .friend-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* 响应式：平板 */
@media screen and (max-width: 1024px) {
    .mid-col article.post-list {
        margin-bottom: 0;
    }

    .simple-post-item {
        padding: 14px 0;
    }

    .simple-post-title {
        font-size: 16px;
    }
    
    .post-card .post-content-wrap {
        padding: 20px;
    }
    
    .post-card .post-title {
        font-size: 18px;
    }
}

/* 响应式：移动端 */
@media screen and (max-width: 640px) {
    .mid-col article.post-list {
        margin-bottom: 0;
    }

    .simple-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }
    
    .simple-post-title {
        white-space: normal;
        width: 100%;
        font-size: 15px;
    }
    
    .simple-post-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .post-card .post-content-wrap {
        padding: 16px;
    }
    
    .post-card .post-title {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .post-card .post-meta {
        font-size: 12px;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .post-card .post-excerpt {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
}

/* 分页按钮样式 - 使用 #1b315e */
.page-navi a {
    color: #1b315e;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-navi a:hover {
    background-color: #11264f;
    color: #fff;
}

.page-navi .prev,
.page-navi .next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-navi .prev:hover,
.page-navi .next:hover {
    background: #1b315e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 49, 94, 0.3);
}

article .entry-content dl,
article .entry-content ol,
article .entry-content ul {
    margin-left: 25px
}

article .entry-content video {
    width: 100%;
    height: 100%;
    object-fit: fill
}

.page-navi {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #ddd;
    line-height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-navi .prev {
    float: none;
    order: 1;
}

.page-navi .next {
    float: none;
    order: 3;
}

.page-navi .center {
    margin: 0;
    width: auto;
    text-align: center;
    order: 2;
}

.icon-https {
    padding-right: 3px;
    color: #46ce4b;
    vertical-align: bottom;
    font-size: 17px
}

#comments {
    margin-top: 15px
}

#comments .page-navigator {
    float: inherit;
    margin: 1rem 0 0;
    text-align: center
}

.page-navigator li {
    float: none;
    display: inline-block;
    margin: .4rem
}

.page-navigator a {
    display: block;
    padding: .4rem .6rem
}

.page-navigator .current {
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    background-color: #fff
}

.page-navigator .current:hover {
    border: 1px solid #777777
}

.entry-content .links {
    padding: 0
}

.entry-content .links li {
    overflow: hidden;
    padding: 10px 0;
}

.entry-content .links li span {
    padding: 0 0 0 30px;
    font-size: 10pt;
    color: #999;
}

.entry-content .links li a:hover {
    border-bottom: 1px solid
}

#comments a {
    color: #aaa
}

#comments a:hover {
    color: #777777;
    text-decoration: none
}

.comment-list {
    margin: 0;
    padding-left: 0;
    list-style-type: none
}

.comment-at {
    padding: 0 0 10px 0
}

.comment-close {
    margin: 0 auto;
    margin-top: 10px;
    width: 90%;
    text-align: center;
    padding: 30px;
    border: 1px dashed #eee;
    border-radius: 5px;
    color: #999
}

.avatar {
    float: left;
    display: block;
    margin: 1.4rem 1rem 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd
}

.response {
    font-size: .9rem
}

.comment-num,
.response {
    color: #999;
    font-weight: 400
}

.comment-num {
    font-size: 1.3em
}

.comment-main {
    overflow: hidden;
    padding: 1rem 0;
    border-bottom: 1px dotted #e0e0e0
}

.comment-main p {
    margin: 0
}

.cancel-comment-reply,
.comment-meta {
    margin-top: 1rem;
    color: #aaa;
    font-size: .8rem
}

.comment-meta .comment-reply,
.comment-reply {
    float: right
}

.comment-main:hover .comment-reply {
    display: block
}

.cancel-reply {
    margin-left: 10px
}

.comment-author {
    padding: .1rem .25rem;
    border-radius: .25rem;
    background: #eee;
    font-size: .7rem
}

.comment-reply a:before,
.comment-time:before {
    margin: 0 .5rem
}

.comment-parent>.comment-children {
    margin-left: 1rem;
    padding-left: 40px;
    border-left: 1px dotted #e0e0e0
}

.form-control {
    margin: 15px 0;
    padding: 6px 9pt;
    width: 100%;
    height: 34px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff
}

.form-control,
output {
    display: block;
    color: #555;
    font-size: 14px;
    line-height: 1.42857
}

.form-control:focus {
    outline: 0;
    border-color: #777777
}

textarea.form-control {
    height: 10rem;
    resize: none
}

.submit {
    display: block;
    margin: 0 auto;
    padding: 0 25px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #999;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    -webkit-transition-duration: .4s;
    transition-duration: .4s
}

.submit:active,
.submit:active:focus,
.submit:focus,
.submit:hover {
    outline-style: none;
    border-color: #777777;
    color: #777777
}

/* ==================== 现代化评论表单 ==================== */

.modern-comment-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.comment-form-header .response {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.comment-form-header .cancel-reply a {
    color: #888;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.comment-form-header .cancel-reply a:hover {
    color: #1fa4b5;
    background: rgba(31, 164, 181, 0.1);
}

/* 已登录用户信息 */
.comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(31, 164, 181, 0.1) 0%, rgba(31, 164, 181, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    font-size: 20px;
}

.user-name {
    font-weight: 600;
    color: #1a1a1a;
}

.logout-link {
    margin-left: auto;
    font-size: 13px;
    color: #888;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.logout-link:hover {
    color: #1fa4b5;
    background: rgba(255, 255, 255, 0.8);
}

/* 欢迎回来提示 */
.comment-welcome-back {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(31, 164, 181, 0.1) 0%, rgba(31, 164, 181, 0.05) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.comment-welcome-back strong {
    color: #1fa4b5;
    cursor: pointer;
}

/* 作者信息字段 */
.author-fields {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.form-group {
    position: relative;
}

.modern-comment-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    outline: none;
}

.modern-comment-form .form-control::placeholder {
    color: #888;
}

.modern-comment-form .form-control:focus {
    border-color: #1fa4b5;
    box-shadow: 0 0 0 4px rgba(31, 164, 181, 0.1);
}

/* 评论文本框 */
.textarea-wrap {
    position: relative;
    margin-bottom: 20px;
}

.modern-comment-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
    padding-bottom: 40px;
}

.textarea-hint {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-size: 12px;
    color: #888;
    pointer-events: none;
}

/* 提交按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1b315e 0%, #2a4570 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(27, 49, 94, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(27, 49, 94, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* 响应式：平板 */
@media screen and (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modern-comment-form {
        padding: 20px;
    }
}

/* 响应式：移动端 */
@media screen and (max-width: 640px) {
    .modern-comment-form {
        padding: 16px;
        border-radius: 12px;
    }
    
    .comment-form-header .response {
        font-size: 16px;
    }
    
    .modern-comment-form .form-control {
        padding: 12px 14px;
        font-size: 14px; /* 防止 iOS 缩放 */
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

#footer {
    padding: 15px 70px 15px 40px;
    width: auto;
    border-top: 1px solid #fff;
    text-align: center;
    font-size: .9em;
    line-height: 2.2
}

@media screen and (max-width:1024px) {
    article {
        padding-bottom: 15px
    }

    article .list-entry-content {
        line-height: 10px;
    }

    .form-control {
        width: 95%
    }

    .left-col {
        width: 210px
    }

    .mid-col {
        margin-left: 210px
    }

    .mid-col .mid-col-container {
        padding: 10px 20px 20px 20px
    }

    #footer {
        padding: 15px 20px
    }

    article .entry-content,
    article h1.title {
        margin-left: 0
    }
}

@media screen and (max-width:768px) {
    /* 移动端汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 10000;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 6px;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: #fff;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    }
    
    .mobile-menu-toggle .hamburger-line {
        display: block;
        width: 18px;
        height: 2px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* 汉堡菜单打开状态 */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    #header {
        margin-left: 0;
        padding: 20px 0 0 0;
        text-align: center
    }

    article .list-entry-content {
        line-height: 16px;
    }

    #header h1 {
        margin-top: 0
    }

    .form-control {
        width: 100%;
        box-sizing: border-box
    }

    #main-nav {
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* 菜单展开状态 */
    #main-nav.mobile-menu-open {
        max-height: 400px;
    }
    
    #main-nav ul {
        padding: 10px 0;
    }

    #main-nav ul li {
        display: block;
        margin: 0;
        text-align: center;
        height: 48px;
        line-height: 48px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #main-nav ul li:last-child {
        border-bottom: none;
    }
    
    #main-nav ul li a {
        display: block;
        padding: 0 20px;
        font-size: 16px;
    }
    
    #main-nav ul li a i {
        margin-right: 10px;
        display: inline-block;
    }

    #header .profilepic a {
        display: block;
        margin: 10px auto 20px;
        width: 80px;
        height: 80px;
    }

    #sub-nav .social,
    #sub-nav .social a {
        margin-bottom: 0;
        margin-top: 15px;
    }

    article {
        padding: 20px 0
    }

    .left-col {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        background-color: #1fa4b5;
        background-size: cover;
        background-position: center center;
        padding-bottom: 0;
    }
    
    #header .subtitle {
        margin: 5px 0 0 0;
        color: #fff;
        font-size: 14px;
        padding: 0 20px;
    }

    .mid-col {
        float: none;
        margin-left: 0;
        width: 100%
    }

    article .meta {
        position: static;
        margin-bottom: 10px;
        width: auto
    }

    .mid-col .mid-col-container {
        padding: 10px 15px 15px 15px
    }

    .mid-col article .meta {
        float: none;
        overflow: hidden
    }

    article .meta .comment,
    article .meta .date,
    article .meta .tags {
        display: inline;
        margin-right: 5px;
        padding-left: 0
    }

    article .meta .date {
        margin-right: 30px
    }

    #footer {
        padding: 15px 10px
    }

    #sub-nav .social a {
        opacity: 1
    }
    
    /* 移动端博客名调整 */
    .blogname {
        font-size: 1.5em;
        margin-top: 10px;
    }
}

code[class*=language-],
pre[class*=language-] {
    background: 0;
    color: #000;
    text-align: left;
    text-shadow: 0 1px #fff;
    word-spacing: normal;
    word-wrap: break-word;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
    line-height: 1.5;
    direction: ltr;
    word-break: break-word;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none
}

code[class*=language-]::-moz-selection,
pre[class*=language-]::-moz-selection {
    background: #b3d4fc;
    text-shadow: none
}

code[class*=language-]::selection,
pre[class*=language-]::selection {
    background: #b3d4fc;
    text-shadow: none
}

@media print {

    code[class*=language-],
    pre[class*=language-] {
        text-shadow: none
    }
}

pre[class*=language-] {
    overflow: auto;
    margin: .95em 0;
    padding: 1em
}

:not(pre)>code[class*=language-],
pre[class*=language-] {
    background: #f8f8f8
}

:not(pre)>code[class*=language-] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal
}

.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
    color: #708090
}

.token.punctuation {
    color: #999
}

.namespace {
    opacity: .7
}

.token.boolean,
.token.constant,
.token.deleted,
.token.number,
.token.property,
.token.symbol,
.token.tag {
    color: #905
}

.token.attr-name,
.token.builtin,
.token.char,
.token.inserted,
.token.selector,
.token.string {
    color: #690
}

.language-css .token.string,
.style .token.string,
.token.entity,
.token.operator,
.token.url {
    color: #a67f59
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #07a
}

.token.function {
    color: #dd4a68
}

.token.important,
.token.regex,
.token.variable {
    color: #e90
}

.token.bold,
.token.important {
    font-weight: 700
}

.token.italic {
    font-style: italic
}

.token.entity {
    cursor: help
}

/* ==================== 阅读进度条 ==================== */

.reading-progress-container {
    position: fixed;
    top: 0;
    left: 320px;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1b315e 0%, #2a4570 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* 侧边栏收起时的进度条位置 */
body.sidebar-collapsed .reading-progress-container {
    left: 0;
}

/* ==================== 返回顶部按钮 ==================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9998;
    color: var(--text-secondary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1b315e;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(27, 49, 94, 0.4);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* 响应式调整 */
@media screen and (max-width: 1024px) {
    .reading-progress-container {
        left: 210px;
    }
    
    body.sidebar-collapsed .reading-progress-container {
        left: 0;
    }
}

@media screen and (max-width: 768px) {
    .reading-progress-container {
        left: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ==================== 侧边栏收缩功能 ==================== */

/* 收缩按钮 - 固定在侧边栏和内容区交界处，垂直居中 */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    left: 320px; /* 侧边栏宽度 */
    transform: translateY(-50%);
    width: 20px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.sidebar-toggle:hover {
    opacity: 1;
    width: 24px;
    background: #fff;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle .toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* 侧边栏收缩状态 */
body.sidebar-collapsed .left-col {
    transform: translateX(-100%);
}

body.sidebar-collapsed .mid-col {
    margin-left: 0;
    left: 0;
}

/* 收起后按钮位置 - 移到最左侧 */
body.sidebar-collapsed .sidebar-toggle {
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 0 4px 4px 0;
}

body.sidebar-collapsed .sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.85);
    width: 24px;
}

body.sidebar-collapsed .sidebar-toggle .toggle-icon {
    transform: rotate(180deg);
    color: #fff;
}

/* 侧边栏过渡动画 */
.left-col {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mid-col {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 平板适配 - 侧边栏宽度 210px */
@media (max-width: 1024px) {
    .sidebar-toggle {
        left: 210px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    body.sidebar-collapsed .sidebar-toggle {
        left: 0;
    }
}

/* 移动端隐藏按钮 */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: none;
    }
}

/* ==================== 技术文档中心 ==================== */
.doc-hub {
    margin: 6px 0 12px;
    font-size: 14px;
}

/* 顶部横幅 */
.doc-hub .doc-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0d3b47 0%, #176e7c 48%, #1fa4b5 100%);
    color: #fff;
    box-shadow: 0 16px 34px -18px rgba(13, 59, 71, .65);
}

.doc-hub .doc-hero::before,
.doc-hub .doc-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.doc-hub .doc-hero::before {
    top: -90px;
    right: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 70%);
}

.doc-hub .doc-hero::after {
    bottom: -120px;
    left: 32%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(77, 188, 207, .4) 0%, rgba(77, 188, 207, 0) 70%);
}

.doc-hub .doc-hero > * {
    position: relative;
    z-index: 1;
}

.doc-hub .doc-hero-eyebrow {
    display: inline-block;
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #eafcff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
}

.doc-hub .doc-hero-desc {
    max-width: 640px;
    margin: 11px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: 14.5px;
    line-height: 1.7;
}

.doc-hub .doc-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}

.doc-hub .doc-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .72);
    font-size: 12.5px;
}

.doc-hub .doc-stat:first-child {
    padding-left: 0;
    border-left: none;
}

.doc-hub .doc-stat b {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.doc-hub .doc-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.doc-hub .doc-jump a {
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.doc-hub .doc-jump a:hover {
    background: #fff;
    color: #0d3b47;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5);
}

/* 技术分组 */
.doc-hub .doc-group {
    margin-top: 38px;
    scroll-margin-top: 24px;
}

.doc-hub .doc-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1f2;
}

.doc-hub .doc-group-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--doc-accent, #1fa4b5), var(--doc-accent-light, #4dbccf));
    box-shadow: 0 8px 14px -8px var(--doc-accent, #1fa4b5);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.doc-hub .doc-group-title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #1f2d33;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
}

.doc-hub .doc-group-count {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f4f7f8;
    color: #8a9499;
    font-size: 12px;
    white-space: nowrap;
}

/* 文档卡片 */
.doc-hub .doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.doc-hub .doc-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    overflow: hidden;
    padding: 15px 16px;
    border: 1px solid #edf0f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 40, 45, .03);
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.doc-hub .doc-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--doc-accent, #1fa4b5), var(--doc-accent-light, #4dbccf));
    opacity: 0;
    transition: opacity .22s ease;
}

.doc-hub .doc-card:hover {
    border-color: var(--doc-accent, #1fa4b5);
    background: #fcfefe;
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -16px rgba(16, 40, 45, .45);
}

.doc-hub .doc-card:hover::before {
    opacity: 1;
}

.doc-hub .doc-card:focus-visible {
    outline: 2px solid var(--doc-accent, #1fa4b5);
    outline-offset: 2px;
}

.doc-hub .doc-card-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--doc-accent, #1fa4b5), var(--doc-accent-light, #4dbccf));
    box-shadow: 0 8px 14px -9px var(--doc-accent, #1fa4b5);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.doc-hub .doc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.doc-hub .doc-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
}

.doc-hub .doc-card-title {
    color: #20323a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.doc-hub .doc-card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #88949a;
    font-size: 12.5px;
    line-height: 1.65;
}

.doc-hub .doc-card-arrow {
    flex: none;
    align-self: center;
    color: #c3cdd2;
    font-size: 15px;
    line-height: 1;
    transition: color .22s ease, transform .22s ease;
}

.doc-hub .doc-card:hover .doc-card-arrow {
    color: var(--doc-accent, #1fa4b5);
    transform: translate(2px, -2px);
}

/* 各技术栈主题色 */
.doc-hub .doc-group--mysql {
    --doc-accent: #00758f;
    --doc-accent-light: #14a4c4;
    --doc-accent-soft: rgba(0, 117, 143, .1);
}

.doc-hub .doc-group--postgresql {
    --doc-accent: #336791;
    --doc-accent-light: #5b8bb8;
    --doc-accent-soft: rgba(51, 103, 145, .1);
}

.doc-hub .doc-group--django {
    --doc-accent: #0f7a52;
    --doc-accent-light: #2fa877;
    --doc-accent-soft: rgba(15, 122, 82, .1);
}

.doc-hub .doc-group--python {
    --doc-accent: #3776ab;
    --doc-accent-light: #5b9bd5;
    --doc-accent-soft: rgba(55, 118, 171, .1);
}

.doc-hub .doc-group--other {
    --doc-accent: #cf4b32;
    --doc-accent-light: #e8795f;
    --doc-accent-soft: rgba(207, 75, 50, .1);
}

@media screen and (max-width: 768px) {
    .doc-hub .doc-hero {
        padding: 18px;
        border-radius: 16px;
    }

    .doc-hub .doc-hero-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    .doc-hub .doc-stat {
        padding: 0 14px;
    }

    .doc-hub .doc-stat b {
        font-size: 18px;
    }

    .doc-hub .doc-group {
        margin-top: 30px;
    }

    .doc-hub .doc-group-title {
        font-size: 17px;
    }

    .doc-hub .doc-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doc-hub .doc-card,
    .doc-hub .doc-card::before,
    .doc-hub .doc-card-arrow,
    .doc-hub .doc-jump a {
        transition: none;
    }
}

/* ==================== 友链申请留言区 ==================== */
.link-apply {
    box-sizing: border-box;
    max-width: 100%;
    margin: 30px 0 8px;
    padding: 22px 24px 24px;
    border: 1px solid #e6eef0;
    border-radius: 18px;
    background: linear-gradient(160deg, #f9fcfc 0%, #eff7f9 100%);
    box-shadow: 0 3px 18px -12px rgba(16, 40, 45, .3);
}

.link-apply-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(31, 164, 181, .14);
}

.link-apply-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #1fa4b5, #4dbccf);
    box-shadow: 0 6px 12px -7px #1fa4b5;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.link-apply-title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #1f2d33;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.link-apply-count {
    margin-left: auto;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(31, 164, 181, .1);
    color: #178a99;
    font-size: 12px;
    white-space: nowrap;
}

.link-apply-body {
    padding-top: 15px;
}

.link-apply-tips {
    margin: 0 0 15px;
    color: #5a686f;
    font-size: 14px;
    line-height: 1.9;
}

.link-apply-format {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

/* 申请格式代码块 */
.link-apply-code {
    overflow: hidden;
    border: 1px solid #e3ecee;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 2px 10px -8px rgba(16, 40, 45, .25);
}

.link-apply-code-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-bottom: 1px solid #eef1f2;
    background: #f7fbfc;
    color: #7c8f96;
    font-size: 12px;
    letter-spacing: .04em;
}

.link-apply-code-bar .iconfont {
    font-size: 13px;
}

.link-apply-code pre {
    overflow: auto;
    margin: 0;
    padding: 13px 15px;
    border: none;
    border-left: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #3f5a62;
    font-size: 12.8px;
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}

.link-apply-code pre code {
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font-size: inherit;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

/* 申请须知 */
.link-apply-rules {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-apply-rules li {
    position: relative;
    padding: 5px 0 5px 18px;
    color: #6b7a81;
    font-size: 13.2px;
    line-height: 1.85;
}

.link-apply-rules li::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1fa4b5;
    opacity: .65;
}

/* 留言区标题 */
.link-comments {
    margin: 26px 0 0;
}

.link-comments-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eef1f2;
}

.link-comments-title {
    position: relative;
    margin: 0;
    padding-left: 12px;
    color: #1f2d33;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.link-comments-icon {
    flex: none;
    color: #1fa4b5;
    font-size: 16px;
}

.link-comments-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 15px;
    border-radius: 99px;
    background: linear-gradient(180deg, #1fa4b5, #4dbccf);
    transform: translateY(-50%);
}

@media screen and (max-width: 900px) {
    .link-apply-format {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .link-apply {
        margin-top: 24px;
        padding: 17px 15px 19px;
        border-radius: 15px;
    }

    .link-apply-title {
        font-size: 15.5px;
    }

    .link-apply-count {
        padding: 2px 9px;
        font-size: 11px;
    }

    .link-apply-tips {
        font-size: 13.5px;
    }

    .link-apply-code pre {
        padding: 11px 12px;
        font-size: 12px;
    }

    .link-apply-rules li {
        font-size: 12.8px;
    }

    .link-comments-title {
        font-size: 15.5px;
    }
}

/* ==================== 后台文章预览（/system/posts/preview/full） ==================== */
.preview-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 10px 16px;
    border: 1px solid #b9e4ea;
    border-left: 4px solid var(--brand-primary);
    border-radius: 6px;
    background: #f0fafb;
    color: #106a76;
    font-size: 13.5px;
    line-height: 1.6;
}

.preview-banner-tag {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.preview-cover {
    margin: 0 0 18px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}

.preview-cover img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.preview-badge {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.preview-badge-published {
    background: #e8f8ee;
    color: #15803d;
}

.preview-badge-draft {
    background: #fdf3e3;
    color: #b45309;
}

.preview-badge-hidden {
    background: #f1f5f9;
    color: #64748b;
}

.preview-badge-type {
    background: #eef4fb;
    color: #1d4ed8;
}

article .post-info .tag-content span,
article .post-info span:not(.date) {
    color: var(--link-color);
}
