/* --- 样式复用 --- */
/* Local custom fonts: FZSSK for 宋体, FZKTK for 楷体 */
@font-face {
    font-family: 'FZSSK';
    src: url('/assets/fonts/FZSSK.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FZKTK';
    src: url('/assets/fonts/FZKTK.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #dcdde1;
    background-image:
        linear-gradient(rgba(20, 18, 10, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 18, 10, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: "Verdana", 'FZSSK', "SimSun", "宋体", sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

a {
    color: #b38600;
    text-decoration: underline;
}

a:hover {
    color: #d4ac0d;
    background-color: transparent;
}

#container {
    width: 95%;
    /* 1140px：Bootstrap 标准大屏宽度 */
    max-width: 1140px;
    margin: 30px auto;
    background-color: #fcfcf9;
    border: 1px solid #999;
    box-shadow: 0 0 0 1px #fff inset, 0 0 15px rgba(255, 204, 0, 0.15), 5px 5px 10px rgba(0, 0, 0, 0.2);
}

#header {
    background-color: #2c2c2c;
    height: 180px;
    padding: 40px 25px;
    border-bottom: 3px solid #ffcc00;
    position: relative;
    overflow: hidden;
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 3px),
        linear-gradient(to bottom, rgba(255, 204, 0, 0.2), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?q=80&w=1000&auto=format&fit=crop');
    background-size: 100% auto;
    background-position: center;
    background-blend-mode: overlay, multiply, normal;
}

#header::after {
    content: attr(data-annotation);
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-family: "Courier New", monospace;
    font-size: 10px;
    color: #ffcc00;
    opacity: 0.8;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px #000;
}

#header h1 {
    font-family: "Georgia", serif;
    font-size: 32px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8), 2px 2px 0 #000;
    margin-top: 10px;
}

#header .subtitle {
    font-size: 12px;
    color: #ffe680;
    margin-top: 5px;
    font-family: "Arial", sans-serif;
    text-shadow: 1px 1px 1px #000;
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 2px 5px;
}

#nav {
    background-color: #e6e6e6;
    border-bottom: 1px solid #bbb;
    border-top: 1px solid #fff;
    padding: 0;
    min-height: 35px;
    line-height: 35px;
}

#nav ul {
    list-style: none;
    padding-left: 20px;
}

#nav a {
    padding: 0 15px;
    height: 35px;
    border: 1px solid transparent;
    border-right-color: #dcdcdc;
    color: #444;
}

.glass-mosaic-style {
    color: #444;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.glass-mosaic-style:hover,
.search-btn:hover,
.submit-btn:hover {
    color: #5d4037 !important;
    background-color: #fff9c4 !important;
    background-image:
        linear-gradient(45deg, rgba(255, 215, 0, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 215, 0, 0.3) 50%, rgba(255, 215, 0, 0.3) 75%, transparent 75%, transparent),
        linear-gradient(rgba(255, 204, 0, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 0, 0.2) 1px, transparent 1px);
    background-size: 4px 4px, 10px 10px, 10px 10px;
    /* [修复] 使用 box-shadow 模拟发光，而不是改变 border-bottom 宽度 */
    box-shadow: inset 0 0 5px rgba(255, 255, 200, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
    /* [修复] 保持 1px 边框，防止高度变化导致页面抖动 */
    border: 1px solid #ffcc00 !important;
}

/* 调整比例：主内容72%，侧边栏28% */
#main {
    display: table-cell;
    width: 72%;
    padding: 30px;
    vertical-align: top;
    background-color: #fff;
}

#sidebar {
    display: table-cell;
    width: 28%;
    background-color: #fcfbf6;
    border-left: 1px solid #ccc;
    padding: 25px;
    vertical-align: top;
    box-shadow: inset 5px 0 10px -5px rgba(0, 0, 0, 0.05);
}

/* 文章页特有样式 */
.breadcrumb {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
    color: #ccc;
}

.article-wrap {
    margin-bottom: 40px;
}

.article-title {
    font-size: 24px;
    font-family: "Georgia", 'FZSSK', "SimSun", serif;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    border-left: 8px solid #ffcc00;
    padding-left: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 12px;
    color: #888;
    background: #fdfdf0;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    font-family: Arial, sans-serif;
}

/* 正文字号 16px */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.article-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}

.article-content h2 {
    font-size: 20px;
    color: #443300;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.article-content h3 {
    font-size: 18px;
    color: #665500;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #e6b800;
    background: linear-gradient(to right, #fffcf0, transparent);
}

.article-content ul,
.article-content ol {
    margin: 15px 0 15px 40px;
}

.article-content li p {
    text-indent: 0;
}

.article-content pre {
    background: #222;
    color: #ffcc00;
    padding: 15px;
    border: 1px solid #444;
    border-left: 4px solid #ffcc00;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    margin: 20px 0;
    font-size: 13px;
}

/* Prism specific adjustments */
pre.line-numbers {
    padding-left: 2.8em;
}

pre.line-numbers code {
    white-space: pre;
}

/* copy button styling (Prism toolbar provides base, but ensure contrast) */
.prism-toolbar .toolbar-item {
    color: #fff;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #ffffe0;
    border: 1px dashed #e6b800;
    color: #665500;
    font-family: 'FZKTK', "楷体", "KaiTi", serif;
    font-style: italic;
    font-size: 16px;
}

/* Widget & TOC */
.widget {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 15px;
    font-size: 13px;
}

.widget-title {
    font-size: 13px;
    font-weight: bold;
    background: #fff8e1;
    padding: 5px;
    margin: -15px -15px 15px -15px;
    border-bottom: 1px solid #e0d0a0;
    color: #5d4037;
    text-transform: uppercase;
}

.search-status-bar {
    background: #fff8e1;
    border: 1px solid #e0d0a0;
    padding: 15px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.search-keyword {
    color: #d35400;
    font-weight: bold;
}

/* .highlight removed intentionally: search results display plain text */
.search-result-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #ccc;
}

.search-result-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.search-result-snippet {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

#toc-list {
    list-style: none;
    padding: 0 5px;
    max-height: 300px;
    overflow-y: auto;
}

#toc-list li {
    margin-bottom: 8px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
    line-height: 1.4;
}

#toc-list a {
    text-decoration: none;
    color: #555;
    display: block;
    font-size: 13px;
    transition: color 0.2s;
}

#toc-list a:hover {
    color: #b38600;
    background: #fff9c4;
}

.toc-h2 {
    padding-left: 0;
    font-weight: bold;
}

.toc-h3 {
    padding-left: 15px;
    color: #888;
}

.toc-h3::before {
    content: "└ ";
    color: #ffcc00;
}

.widget ul {
    list-style-type: none;
    padding: 0 5px;
}

.widget li {
    margin-bottom: 8px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
}

.widget li:before {
    content: "» ";
    color: #ffcc00;
}

#widget-active a.active,
.widget li a.active {
    color: #d4ac0d;
    font-weight: bold;
}

#toc-list li:before {
    content: none;
}

/* --- 手机端折叠目录 --- */
.mobile-toc-wrap {
    display: none;
    margin-bottom: 25px;
    border: 1px solid #dcdcdc;
    background: #fff;
}

.mobile-toc-wrap details {
    padding: 10px;
    background: #fff8e1;
}

.mobile-toc-wrap summary {
    cursor: pointer;
    font-weight: bold;
    color: #5d4037;
    font-size: 13px;
    user-select: none;
    outline: none;
}

.mobile-toc-wrap summary::marker {
    color: #ffcc00;
}

.mobile-toc-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 5px;
    border-top: 1px dashed #e0d0a0;
    padding-top: 5px;
}

.mobile-toc-list li {
    line-height: 1.8;
    font-size: 14px;
}

.mobile-toc-list a {
    text-decoration: none;
    color: #444;
}

.search-btn {
    background: #f0f0f0;
    border: 1px solid #999;
    padding: 4px 12px;
    font-size: 12px;
    height: 32px;
    vertical-align: middle;
}

input[type="text"] {
    width: 95%;
    padding: 5px;
    border: 2px solid #ccc;
    border-left-color: #999;
    border-top-color: #999;
    font-size: 13px;
    height: 32px;
}

.comments-section {
    background: #fffcf5;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 30px;
}

:root {
    --waline-theme-color: #ffcc00 !important;
    --waline-active-color: #e6b800 !important;
    --waline-bgcolor: #fff !important;
    --waline-bgcolor-light: #fffcf5 !important;
}

#footer {
    background-color: #222;
    color: #888;
    padding: 20px 20px;
    text-align: center;
    font-size: 12px;
    border-top: 4px solid #ffcc00;
}

#footer a {
    color: #999;
    text-decoration: none;
}

#footer a:hover {
    color: #fff;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    #container {
        width: 100%;
        border: none;
    }

    #content-wrap,
    #main,
    #sidebar {
        display: block;
        width: 100%;
    }

    #sidebar {
        border-left: none;
        border-top: 1px solid #ccc;
        background-color: #f2f2f2;
    }

    #header {
        height: auto;
    }

    #nav {
        height: auto;
        text-align: center;
    }

    #toc-widget {
        display: none !important;
    }

    .mobile-toc-wrap {
        display: block;
    }

    .article-content {
        font-size: 17px;
    }
}

/* --- 分类页与文章卡片微调（精确对齐示例） --- */
.archive-header {
    background-color: #fff8e1;
    border: 2px dashed #e0d0a0;
    padding: 18px 22px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.archive-icon {
    margin-left: 4px;
    display: flex;
    align-items: center;
}

.archive-icon img {
    /* do not force width; keep aspect ratio */
    max-height: 48px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

.archive-title-group h2 {
    font-size: 24px;
    margin: 0;
    color: #5d4037;
    line-height: 1.2;
    font-weight: 700;
}

.archive-meta {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.posts-list .post-item {
    margin-bottom: 26px;
    border: 1px solid #e9e9e9;
    padding: 18px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.posts-list .post-item .post-title {
    border-left-width: 8px;
    padding-left: 14px;
}

.post-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
    background: #fff9e6;
    padding: 8px 12px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #f1e6c6;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.post-title a {
    color: #222;
    text-decoration: none
}

.post-title a:hover {
    color: #b38600;
}

/* 侧边栏分类高亮样式 */
.widget ul li a.active {
    color: #d4ac0d;
    font-weight: 700;
    text-decoration: none;
}

.widget ul li a.active:before {
    content: "» ";
    color: #ffcc00;
}

/* 精细化分页与链接按钮 */
.posts-list .post-item .excerpt {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.posts-list .post-item .excerpt p {
    margin-bottom: 12px;
    text-indent: 2em;
}

.posts-list .post-item a.read-more {
    color: #b38600;
    font-weight: 700;
}


/* Image responsiveness + captions: convert alt text (markdown []) into small grey caption */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
}

.article-content figure {
    margin: 12px 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

/* Shared core CSS extracted from your pages (Esperanto: kerno = core) */
/* Basic reset and page background */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #dcdde1;
    background-image:
        linear-gradient(rgba(20, 18, 10, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 18, 10, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: "Verdana", 'FZSSK', "SimSun", "宋体", sans-serif;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

a {
    color: #b38600;
    text-decoration: underline;
}

a:hover {
    color: #d4ac0d;
    background-color: transparent;
}

#container {
    width: 95%;
    max-width: 1140px;
    margin: 30px auto;
    background-color: #fcfcf9;
    border: 1px solid #999;
    box-shadow: 0 0 0 1px #fff inset, 0 0 15px rgba(255, 204, 0, 0.15), 5px 5px 10px rgba(0, 0, 0, 0.2);
}

#header {
    background-color: #2c2c2c;
    height: 180px;
    padding: 40px 25px;
    border-bottom: 3px solid #ffcc00;
    position: relative;
    overflow: hidden;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 3px),
        linear-gradient(to bottom, rgba(255, 204, 0, 0.2), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?q=80&w=1000&auto=format&fit=crop');
    background-size: 100% auto;
    background-position: center;
    background-blend-mode: overlay, multiply, normal;
}

#header::after {
    content: attr(data-annotation);
    position: absolute;
    right: 10px;
    bottom: 5px;
    font-family: "Courier New", monospace;
    font-size: 10px;
    color: #ffcc00;
    opacity: 0.8;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px #000;
}

#header h1 {
    font-family: "Georgia", serif;
    font-size: 32px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.8), 2px 2px 0 #000;
    margin-top: 10px;
}

#header .subtitle {
    font-size: 12px;
    color: #ffe680;
    margin-top: 5px;
    font-family: "Arial", sans-serif;
    text-shadow: 1px 1px 1px #000;
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 2px 5px;
}

#nav {
    background-color: #e6e6e6;
    border-bottom: 1px solid #bbb;
    border-top: 1px solid #fff;
    padding: 0;
    min-height: 35px;
    line-height: 35px;
}

#nav ul {
    list-style: none;
    padding-left: 20px;
}

#nav li {
    display: inline-block;
    margin-right: 5px;
}

.glass-mosaic-style {
    color: #444;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

#nav a {
    padding: 0 15px;
    height: 35px;
    border-right: 1px solid #dcdcdc;
    color: #444;
}

.glass-mosaic-style:hover {
    color: #5d4037 !important;
    background-color: #fff9c4 !important;
    background-image: linear-gradient(45deg, rgba(255, 215, 0, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 215, 0, 0.3) 50%, rgba(255, 215, 0, 0.3) 75%, transparent 75%, transparent), linear-gradient(rgba(255, 204, 0, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 204, 0, 0.2) 1px, transparent 1px) !important;
    background-size: 4px 4px, 10px 10px, 10px 10px !important;
    box-shadow: inset 0 0 5px rgba(255, 255, 200, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #ffcc00 !important;
}

#content-wrap {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

#main {
    display: table-cell;
    width: 72%;
    padding: 30px;
    vertical-align: top;
    background-color: #fff;
}

#sidebar {
    display: table-cell;
    width: 28%;
    background-color: #fcfbf6;
    border-left: 1px solid #ccc;
    padding: 25px;
    vertical-align: top;
    box-shadow: inset 5px 0 10px -5px rgba(0, 0, 0, 0.05);
}

.post {
    margin-bottom: 35px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    background: #fff;
    box-shadow: 2px 2px 0px #eee;
}

.posts-list .post-item {
    margin-bottom: 25px;
    border: 1px solid #e9e9e9;
    padding: 16px;
    background: #fff;
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.03);
}

.post-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    border-left: 6px solid #ffcc00;
    padding-left: 12px;
}

.post-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
    background: #fdfdf0;
    padding: 6px 10px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #e0d0a0;
    font-family: Arial, sans-serif;
}

.post-content {
    font-size: 15px;
    text-align: justify;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 12px;
    text-indent: 2em;
}

.article-title {
    font-size: 24px;
    font-family: "Georgia", 'FZSSK', "SimSun", serif;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    border-left: 8px solid #ffcc00;
    padding-left: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 12px;
    color: #888;
    background: #fdfdf0;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    font-family: Arial, sans-serif;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.article-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}

/* Headings inside article: match the provided post.html */
.article-content h2 {
    font-size: 20px;
    color: #443300;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.article-content h3 {
    font-size: 18px;
    color: #665500;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #e6b800;
    background: linear-gradient(to right, #fffcf0, transparent);
}

.article-content ul,
.article-content ol {
    margin: 15px 0 15px 40px;
}

.article-content li p {
    text-indent: 0;
}

/* small heading accents inside the content */
.article-content h3.subtle {
    padding-left: 12px;
}

/* Table of contents links */
#toc-list {
    list-style: none;
    padding: 0 5px;
    max-height: 300px;
    overflow-y: auto;
}

#toc-list li {
    margin-bottom: 8px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 4px;
    line-height: 1.4;
}

#toc-list a {
    text-decoration: none;
    color: #555;
    display: block;
    font-size: 13px;
    transition: color 0.2s;
}

#toc-list a:hover {
    color: #b38600;
    background: #fff9c4;
}

.toc-h2 {
    padding-left: 0;
    font-weight: bold;
}

.toc-h3 {
    padding-left: 15px;
    color: #888;
}

.toc-h3::before {
    content: "└ ";
    color: #ffcc00;
}

.widget {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 15px;
    font-size: 13px;
}

.widget-title {
    font-size: 13px;
    font-weight: bold;
    background: #fff8e1;
    padding: 5px;
    margin: -15px -15px 15px -15px;
    border-bottom: 1px solid #e0d0a0;
    color: #5d4037;
    text-transform: uppercase;
}

#footer {
    background-color: #222;
    color: #888;
    padding: 20px 20px;
    text-align: center;
    font-size: 12px;
    border-top: 4px solid #ffcc00;
}

#footer a {
    color: #999;
    text-decoration: none;
}

#footer a:hover {
    color: #fff;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    #container {
        width: 100%;
        border: none;
    }

    #content-wrap,
    #main,
    #sidebar {
        display: block;
        width: 100%;
    }

    #sidebar {
        border-left: none;
        border-top: 1px solid #ccc;
        background-color: #f2f2f2;
    }

    #header {
        height: auto;
    }

    #nav {
        height: auto;
        text-align: center;
    }
}

/* Page-specific helpers (from page.html) */
.page-title {
    font-size: 24px;
    font-family: "Georgia", 'FZSSK', "SimSun", serif;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    border-left: 8px solid #ffcc00;
    padding-left: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.page-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.page-content p {
    margin-bottom: 18px;
    text-indent: 2em;
}

/* Skill bars */
.skill-bar-container {
    width: 100%;
    background: #eee;
    border: 1px solid #ccc;
    height: 15px;
    margin-bottom: 10px;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: repeating-linear-gradient(45deg, #ffcc00, #ffcc00 10px, #e6b800 10px, #e6b800 20px);
    width: 0;
    display: block;
}

.skill-label {
    font-size: 12px;
    margin-bottom: 2px;
    font-weight: bold;
    color: #555;
}

/* RSS button */
.rss-btn {
    background: linear-gradient(#ffcc00, #ffaa00);
    color: black !important;
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid #cc8800;
    border-radius: 2px;
    text-decoration: none !important;
    font-weight: bold;
    display: inline-block;
}

/* Search button & input */
.search-btn {
    background: #f0f0f0;
    border: 1px solid #999;
    padding: 4px 12px;
    font-size: 12px;
    height: 32px;
    vertical-align: middle;
}

input[type="text"] {
    width: 95%;
    padding: 5px;
    border: 2px solid #ccc;
    border-left-color: #999;
    border-top-color: #999;
    font-size: 13px;
    height: 32px;
}

input[type="text"]:focus {
    background-color: #ffffe0;
    border-color: #ffcc00;
    outline: none;
}

/* Article extras */
/* Blockquote inside articles (match provided post.html) */
.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #ffffe0;
    border: 1px dashed #e6b800;
    color: #665500;
    font-family: 'FZKTK', "楷体", "KaiTi", serif;
    font-style: italic;
    font-size: 16px;
}

/* Code blocks and inline code */
.article-content pre {
    background: #222;
    color: #ffcc00;
    padding: 15px;
    border: 1px solid #444;
    border-left: 4px solid #ffcc00;
    overflow-x: auto;
    font-family: "Courier New", monospace;
    margin: 20px 0;
    font-size: 13px;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #ffffe0;
    border: 1px dashed #e6b800;
    color: #665500;
    font-family: "楷体", "KaiTi", serif;
    font-style: italic;
    font-size: 16px;
}

.article-content blockquote p {
    text-indent: 0;
}

/* Comments section styling (yellow background like post.html) */
.comments-section {
    background: #fffcf5;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 30px;
}

/* Waline theme variables fallback */
:root {
    --waline-theme-color: #ffcc00 !important;
    --waline-active-color: #e6b800 !important;
    --waline-bgcolor: #fff !important;
    --waline-bgcolor-light: #fffcf5 !important;
}

/* Tags cloud styling */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags-cloud .tag-link {
    display: inline-block;
    color: #b38600;
    text-decoration: none;
    padding: 2px 5px;
}

.tag-link:hover {
    background-color: #fffcf5;
}

/* Tags page styling */
.page-title {
    font-size: 24px;
    font-family: "Georgia", "SimSun", serif;
    font-weight: bold;
    color: #222;
    margin-bottom: 20px;
    border-left: 8px solid #ffcc00;
    padding-left: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tag-group {
    margin-bottom: 30px;
}

.tag-group-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffcc00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tag-icon {
    margin-right: 8px;
    font-size: 20px;
}

.tag-post-list {
    list-style: none;
    padding-left: 10px;
}

.tag-post-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 8px;
}

.tag-post-date {
    font-family: "Courier New", monospace;
    font-size: 12px;
    color: #999;
    margin-right: 15px;
    min-width: 90px;
}

.tag-post-link {
    font-size: 15px;
    color: #444;
    text-decoration: none;
    font-weight: bold;
}

.tag-post-link:hover {
    color: #b38600;
    text-decoration: underline;
    background-color: #fffcf0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}