:root {
    --width: 640px; /* 网页宽度 已修改为640px */
    --font-yahei: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Helvetica,Arial,"PingFangSC-Regular","Hiragino Sans GB","Lantinghei SC","Microsoft Yahei","Source Han Sans CN","WenQuanYi Micro Hei",SimSun,sans-serif;
    --font-fangsong: Baskerville, "Times New Roman", "Liberation Serif", STFangsong, FangSong, FangSong_GB2312, "CWTEX\-F", serif;
    --font-songti: Georgia, "Nimbus Roman No9 L", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", STSong, "AR PL New Sung", "AR PL SungtiL GB", NSimSun, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", PMingLiU, MingLiU, serif;
    --font-scale: 1em;
    --background-color: #fbf3e7; /* 背景颜色 */
    --heading-color: #222;
    --nav-color: #222;
    --text-color: #333;  /* 主要字体颜色 */
    --sub-color: #666;
    --gray-color: #999;
    --link-color: #444;
    --code-color: #222;
    --border-color: #ddd;
    --line-color: #f1f1f1;
}
html{scroll-behavior:smooth;}
body {
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    background-color: #faf8f1;
    color: #333;
    max-width: var(--width); /* 使用变量统一宽度 */
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.8;
    font-size: var(--font-scale);
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
h1,h2,h3,h4,h5,h6{color:var(--heading-color);}
a{color:var(--link-color);cursor:pointer;text-decoration:none}
a:hover{opacity:0.5;}
nav a{margin-right:10px;color:var(--sub-color);}
strong,b{color:var(--heading-color)}
button{margin:0;cursor:pointer}
.screen-reader-text{display:none}
time,.comment-meta a{color:var(--gray-color);}
nav,main,.heading,footer{max-width: var(--width);margin: auto;}
table{width:100%}
hr{border:0;border-top:1px dashed}
img{max-width:100%;height:auto}
code{font-family:monospace;padding:2px;background-color:var(--line-color);color:var(--code-color);border-radius:3px}
blockquote{border-left:1px solid var(--gray-color);color:var(--code-color);padding-left:20px;font-style:italic}
header,footer{padding:20px 0;color:var(--gray-color);}
footer a{color:var(--sub-color)}
/* 导航 ↔ 内容间距 统一 8px */
header{margin-bottom: 8px;padding-bottom:0;border-bottom:none;}
main{margin-top: 0;}
.crumb{color: var(--gray-color);}
article{margin: 50px 0 100px;}
h1.title,h2.title{margin:0;line-height:1.6;}
header .title a{color:var(--nav-color);}
main .title{font-size:20px;padding-bottom: 5px;}
.intro{color:var(--gray-color);margin-bottom:40px;}
.desc{margin-top: 15px;color: var(--sub-color);}
.content{margin: 45px 0;}
.content a,.comment .reply a{border-bottom:1px solid var(--link-color);}
.content a:has(img){border:none}
.tags{color:var(--border-color);}
.tags a{color:var(--gray-color);margin-right: 10px;}
form > *:last-child{margin-bottom:0}
label{font-size:0.9em;}
input[type="text"],input[type="email"],input[type="url"],input[type="search"],textarea{background:transparent;border-radius:4px;border:1px solid var(--border-color);box-shadow:none;display:block;margin:0 0 15px 0;padding:10px;width:calc( 100% - 20px );max-width:calc(100% - 25px);}
textarea{line-height:1.5;height:100px}
textarea:focus,input[type="email"]:focus,input[type="search"]:focus,input[type="text"]:focus,input[type="url"]:focus{border:1px solid var(--gray-color);outline:0}
button,.button,input[type="button"],input[type="reset"],input[type="submit"]{background-color:var(--nav-color);border:none;border-radius:4px;color:#fff;display:inline-block;font-family:inherit;font-size:16px;margin:0;padding:8px 16px 10px;text-align:center}
button:hover,.button:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover{cursor:pointer;opacity:.7}
.comment-list,.comment-list .comment-children{list-style: none;padding:0;margin-bottom:40px;}
.comment-list{margin:30px 0;list-style: none;}
.comment-list .comment-children{margin-left:50px}
.comment-author cite{font-weight:bold;font-style:normal;}
.comment-author .says,.comment-author .avatar{display:none}
.comment-reply{border-bottom: 1px solid var(--gray-color);display: inline;padding-bottom:2px;}
.respond h3,#comments h3{margin: 40px 0;padding-top: 30px; border-top: 1px dotted var(--border-color);}
.respond p + p{margin-top:20px}
#cancel-comment-reply-link{float:right;font-weight: normal;}
.post-pagination ol{list-style: none;display:inline-flex;padding: 0;}
.linked-pagination span,.linked-pagination a:hover span,.post-pagination .page-numbers,.post-pagination ol a{width:35px;height:35px;line-height:35px;margin-right:8px;display:inline-block;text-align:center;border-radius:4px;}
.linked-pagination span,.linked-pagination a:hover span,.post-pagination .pagination a:hover,.post-pagination .pagination .current,.post-pagination ol a:hover,.post-pagination ol .current a{background:#333;color:#fff}
.linked-pagination a span,.post-pagination .page-numbers,.post-pagination ol a{background:#f8f8f8;color:#555}
.linked-pagination,.post-pagination{margin:80px 0 50px}
.results{list-style:none;padding:0;margin:0;}
.results li{margin:20px 0 0;}

/* 头部整体 */
.terminal-header {
    margin-bottom: 0;
}

/* 标题部分 */
.heading .title {
    font-size: 1.6rem;
    margin: 0;
}
.heading .title a {
    color: #000;
    text-decoration: none;
}
.prompt-icon {
    color: #009E5F; /* 绿色提示符，和图中一致 */
    margin-right: 0.3rem;
}
.cursor {
    color: #009E5F;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.intro {
    color: #777;
    margin: 0.3rem 0 1.5rem 0;
    font-size: .9rem;
}

/* 终端导航菜单 */
.terminal-nav {
    font-size: 0.95rem;
    color: #666;
}
.terminal-nav .nav-item {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.terminal-nav .nav-item:hover {
    color: #009E5F;
}
.nav-sep {
    margin: 0 0.5rem;
    color: #999;
}

/* 终端命令行样式 */
.cli-command {
    color: #9370DB; /* 紫色提示符 */
    margin: 1.5rem 0 0.8rem 0;
}

/* 动态区域 */
.timeline-section {
    margin-bottom: 1.5rem;
    color: #666;
}
.timeline-content {
    padding-left: 1.5rem;
}
.more-timeline a {
    color: #666;
    text-decoration: none;
}
.more-timeline a:hover {
    color: #009E5F;
}

/* 文章列表 ls 风格 */
.cli-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.cli-item {
    margin: 0.4rem 0;
    display: flex;
    align-items: center;
}
.tree-line {
    color: #999;
    margin-right: 0.6rem;
}
.cli-date {
    color: #888;
    margin-right: 1rem;
    font-size: 1rem;
}
.cli-title {
    color: #006699;
    text-decoration: none;
    font-size: 1rem;
}
.cli-title:hover {
    text-decoration: underline;
}
.cli-empty {
    color: #666;
}

/* 分页样式 */
.cli-pagination {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
}
.cli-pagination a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5rem;
}
.cli-pagination a:hover {
    color: #009E5F;
}
.cli-pagination .current {
    color: #333;
    margin: 0 0.5rem;
}

/* 底部版权样式（和图中一致） */
footer {
    text-align: center;
    margin-top: 3rem;
    color: #777;
    font-size: 0.9rem;
}
footer a {
    color: #777;
    text-decoration: none;
}
footer a:hover {
    color: #009E5F;
}
/* 整行向右浮动动画 */
.slide-hover {
  transition: all 0.3s ease; /* 平滑过渡 */
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 鼠标悬浮时向右移动 10px */
.slide-hover:hover {
  transform: translateX(1px);
  padding-left: 1px; /* 可选，让移动更自然 */
}
/* 禁止文字选中干扰效果 */
.cli-item {
  user-select: none;
}