/* ------------------------------------
 * Typecho默认主题
 *
 * @作者  Typecho团队
 * @链接  http://typecho.org/
 * @更新  2013-10-28
 * --------------------------------- */
/* ------------------
 * 全局样式
 * --------------- */
/* 引入Play字体 */
@font-face {
    font-family: 'Play';
    font-style: normal;
    font-weight: normal;
    src: local('Play'), url('https://fonts.cdnfonts.com/s/15333/Play-Regular.woff') format('woff');
	font-display: swap;
}
/* 1. 引入图标库 */
@font-face {
    font-family: 'iconfont';
    src: url('https://at.alicdn.com/t/font_1582220_x8ufk3a6y1j.ttf') format('truetype');
    font-display: swap; /* 性能优化：确保文字加载前不白屏 */
}
/* 2. 基础图标类 */
.iconfont {
    font-family: "iconfont" !important;
    font-size: 30px;
    font-style: normal;
    display: inline-block; /* 确保旋转或动画效果正常 */
    line-height: 1;        /* 修正垂直对齐 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* 3. 返回顶部专用样式 */
.icon-top {
    position: fixed;
    right: 60px; /* 稍微缩小边距，更符合主流审美 */
    bottom: 40px;
    z-index: 999;
    color: #999;
    cursor: pointer;
    text-decoration: none; /* 移除可能的链接下划线 */
    transition: all .3s ease; /* 平滑过渡 */
	display: none;
}
/* 4. 仅保留小火箭图标 */
.icon-top:before {
    content: "\e604";
}
/* 5. 鼠标悬停：变色 + 轻微上浮动画 */
.icon-top:hover {
    color: #4A9EFF;
    transform: translateY(-5px); /* 悬停时火箭向上飞一点，非常灵动 */

}

/* PJAX加速进度条 
#instantclick-bar {
  background: linear-gradient(to right, #f093fb, #f5576c, #fda085, #f6d365, #43e97b, #4facfe);
  height: 2px;
}
*/

/*body {
    background-color: #f9fafb !important;
    color: #374151;
}*/
body {
  background-color: #fff;
  color: #353535;
  font-family: 'Play', "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif;
  font-size: 87.5%;
}
a {
  color: #353535;/* 原#505050   */
  text-decoration: none;
}
a:hover, a:active {
  color: #4A9EFF;/* 原#2479cc   */
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  /* 将代码字体大小增大，从原来的.92857em调整为1em */
  font-size: 1em; 
  counter-reset: line;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow-x: auto; /* 仅保留水平滚动条 */
  white-space: pre; /* 保留原始空白和换行 */
  position: relative;
  padding-left: 40px; /* 为行号预留空间 */
  line-height: 1.5; /* 设置行高 */
  border-radius: 4px; /* 添加圆角，值可根据需要调整 */
}
pre code {
  padding: 3px;
  color: #444;
  counter-reset: line;
  display: block; /* 确保代码块作为整体处理 */
}
pre .line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  text-align: right;
  width: 30px;
  padding-right: 5px;
  border-right: 1px solid #ccc;
  color: #999;
  white-space: nowrap; /* 行号不换行 */
  overflow: hidden; /* 防止行号溢出 */
}
pre .line-numbers {
  position: absolute;
  top: 8px; /* 与 pre 的 padding-top 一致 */
  left: 0;
  height: calc(100% - 16px); /* 减去上下 padding */
  width: 30px;
  text-align: right;
  border-right: 1px solid #ccc;
  padding-right: 5px;
  pointer-events: none;
  overflow: hidden;
  line-height: 1.5; /* 与 pre 行高一致 */
  transition: transform 0.1s ease-out; /* 添加平滑滚动效果 */
}
pre .line-numbers .line {
  display: block; /* 每个行号占一行 */
}
pre:hover .line-numbers {
  transform: translateY(0); /* 悬停时重置位置（修复某些浏览器滚动问题） */
}
/* 自定义 pre 代码块滚动条样式 */
pre::-webkit-scrollbar {
    height: 8px;    /* 横向滚动条高度 */
    width: 8px;     /* 纵向滚动条宽度 */
}
/* 滚动条轨道 */
pre::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
/* 滚动条滑块 */
pre::-webkit-scrollbar-thumb {
    background: #ccc;     /* 滑块颜色 */
    border-radius: 10px;  /* 滑块圆角 */
}
/* 鼠标悬停在滑块上的颜色 */
pre::-webkit-scrollbar-thumb:hover {
    background: #999; 
}
/**-----**/
blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 3px solid #4A9EFF;
  color: #666;
}
table {
border-collapse:collapse;
border-spacing:0;
font-size:13px;
overflow:auto;
width:100%;
word-break:normal;
word-wrap:normal
}
table th, table td {
    border: 1px solid #ddd;
    padding: 6px 13px;
    white-space: normal; /* 允许文字自动换行 */
    word-break: break-all; /* 强制长单词换行 */
}
table tr {
background-color:#fff;
border-top:1px solid #ccc
}
table th,.directory-content .is-active-link {
font-weight:700
}
table tr:hover,table thead tr {
background-color:#f7f7f7
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Play', "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif;
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #ddd;
  width: 100%;
  border-radius: 3px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}
/* 特殊链接样式 */
.post-meta a,
.post-meta-post a,
.post-content a,
.widget a,
.comment-content a {
  /**border-bottom: 1px solid #EEE;**/
}
.post-meta a:hover,
.post-meta-post a:hover,
.post-content a:hover,
.widget a:hover,
.comment-content a:hover {
  border-bottom-color: transparent;
}
/* ------------------
 * 头部
 * --------------- */
 #body {
  padding-top: 70px; /* 和 header 高度差不多 */
}
#header {
  padding-top: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 245, 245, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
}
#header .container {
  max-width: 1100px;
  padding-left: 32px;
  padding-right: 32px;
}
#logo {
  color: #333;
  font-size: 2.5em;
  font-weight: 500;
  letter-spacing: -2.5px;
  margin-bottom: 15px;
}
#logo img {
  max-height: 64px;
}
.site-name {
  display: flex;
  align-items: center;
}
.description {
  margin: 0 0 0 10em;
  color: #999;
  font-style: italic;
}
/* 导航菜单 */
#nav-menu {
  margin: 0;
  padding: 0 0 0 8px;
  align-self: flex-end;
}
#nav-menu a {
  display: block;
  float: left;
  padding: 0 16px;
  height: 32px;
  line-height: 25px;
  color: #555;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-size: 15px;
}
#nav-menu a:hover,
#nav-menu .current {
  color: #4A9EFF;
  background: none;
  border-bottom: 2px solid #4A9EFF;
}
/* 搜索 */
#search {
  position: relative;
  width: 200px;
  align-self: flex-end;
  margin-bottom: -5px;
}
#search input {
  padding-right: 30px;
  width: 100%;
}

#search button {
  position: absolute;
  right: 4px;
  top: 2px;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  background: transparent url(../img/icon-search.png) no-repeat center center;
  direction: ltr; /* 修复RTL语言 */
  text-indent: -9999em;
}
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
  #search button {
    background-image: url(../img/icon-search@2x.png);
    -webkit-background-size: 24px 24px;
    -moz-background-size: 24px 24px;
    -o-background-size: 24px 24px;
    background-size: 24px 24px;
  }
}
/* ------------------
 * 主体
 * --------------- */
 .post-title-post {
  margin: .83em 0;
  font-size: 1.5em;
  text-align: center !important;
}
.post-meta-post {
  margin-top: -0.5em;
  padding: 0 0 8px 0;
  color: #999;
  font-size: .92857em;
  text-align: center !important;
  border-bottom: 1px dashed #e5e5e5;
}
 
.post {
  padding: 15px 0 5px;
  border-bottom: 1px solid #EEE;
}
.post-title {
  margin: .83em 0;
  font-size: 1.3em;
}

.post-title a {
    transition: color 0.2s ease;
}
.post-meta {
  margin-top: -0.5em;
  padding: 0;
  color: #999;
  font-size: .92857em;
}
.post-meta li,
.post-meta-post li {
  display: inline-block;
  margin: 0 8px 0 0;
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
.post-meta li:first-child,
.post-meta-post li:first-child {
  margin-left: 0;
  padding-left: 0;
  border: none;
}
.post-content {
  line-height: 1.5;
  position: relative;
}
.read-more {
    position: absolute;
    bottom: -3px;
    right: 10px;
}
.post .tags {
  clear: both;
}
.post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}
.archive-title {
  margin: 1em 0 -1em;
  padding-top: 20px;
  color: #999;
  font-size: 1em;
}
.more {
  text-align: center;
}
.more a {
  border: none;
}
.protected .text {
  width: 50%;
}
/* 分页导航 */
.page-navigator {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: center;
}
.page-navigator li {
  display: inline-block;
  margin: 0 4px;
}
.page-navigator a {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.page-navigator a:hover {
  background: #EEE;
  text-decoration: none;
}
.page-navigator .current a {
  color: #444;
  background: #EEE;
}
/* ------------------
 * 评论列表
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 14px;
  margin-top: 10px;
  border-radius: 3px;
  border: 1px solid #ddd;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF9E8;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}
.comment-author cite {
  font-weight: bold;
  font-style: normal;
}
/* 评论回复 */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .3em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}

/* 调整评论输入框和按钮的样式 */
#comment-form div {
    position: relative;
}
#comment-form .submit {
    position: absolute;
    bottom: 13px;
    right: 10px;
}
/* ... 已有样式 ... */
/***/
.comment-info-row {
    display: flex;
    justify-content: space-between;
}
.comment-info-row p {
    flex: 1;
    margin-right: 10px;
}
.comment-info-row p:last-child {
    margin-right: 0;
}
/* 侧边栏标题美化：简约而不简单 */
.widget-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827;
    margin-bottom: 0px !important;
    position: relative; /* 为伪元素定位 */
    padding-bottom: 8px; /* 标题文字和横线之间的距离 */
    display: inline-block; /* 确保下划线宽度与文字匹配，如果是侧边栏建议设为 block */
    width: 100%;
}
.widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* 横线长度，可根据需要调整如 50px */
    height: 2px; /* 横线粗细 */
    /* 实现图片中的渐变效果 */
    background: linear-gradient(to right, #4a9eff, #d1e9ff, transparent);
    border-radius: 2px; /* 让线条两端稍微圆润一点，更精致 */
}
.widget-list li {
    padding: 0px 0 !important;
    /*border-bottom: 1px dashed #eee !important;*/
    transition: all 0.2s ease;
}
.widget-list li:hover {
    padding-left: 5px !important;
    color: #4a9eff;
}
/* 侧边栏标题美化：简约而不简单 ------完------ */
/* 侧边栏样式 */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 20px; /* 距离顶部的距离 */
  align-self: flex-start; /* 防止侧边栏被拉伸 */
}
.widget {
  margin-bottom: 15px;
}
.widget-list {
  list-style: none;
  padding: 0;
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
}
.widget-list li ul {
  margin-left: 15px;
}
/* ------------------
 * 页脚
 * --------------- */
#footer {
  padding: 2em 0;
  line-height: 1.5;
  text-align: center;
  color: #999;
}
/* -----------------
 * 错误页面
 * -------------- */
.error-page {
  margin-top: 100px;
  margin-bottom: 100px;
}
/* -----------------
 * 内容格式
 *--------------- */
.post-content, .comment-content {
  line-height: 1.5;
  word-wrap: break-word;
}
.post-content h2, .comment-content h2 {
  font-size: 1.28571em;
}
.post-content img, .comment-content img,
.post-content video, .comment-content video {
  max-width: 100%;
}
.post-content a img,
.comment-content a img {
  background: #FFF;
  position: relative;
  bottom: -4px;  /* 隐藏图片父链接边框 */
}
.post-content hr, .comment-content hr {
  margin: 2em auto;
  width: 100px;
  border: 1px solid #E9E9E9;
  border-width: 2px 0 0 0;
}
/* -----------------
 * 其他
 *--------------- */
.aligncenter, div.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
}
.alignright {
  float: right;
}
img.alignleft {
  margin: 0 15px 0 0;
}
img.alignright {
  margin: 0 0 0 15px;
}
/* -----------------
 * 响应式
 *--------------- */
@media (max-width: 767px) {
  body {
    font-size: 81.25%;
  }
  #nav-menu a {
    float: none;
    display: inline-block;
    margin: 0 -2px;
  }
}
@media (max-width: 768px) {
  #header,
  .post-title,
  .post-meta-post,
  .post-meta {
    text-align: center;
  }
}
@media (min-width: 992px) {
}
@media (min-width: 1200px) {
  .container {
    max-width: 952px;
  }
}
/*
* 从屏幕阅读器和浏览器中隐藏：h5bp.com/u
*/
.hidden {
  display: none !important;
  visibility: hidden;
}
/*
* 仅在视觉上隐藏，但可用于屏幕阅读器：h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
/*
* 扩展.sr-only类，使元素在通过键盘导航时可聚焦：h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
/*
* 在视觉上和屏幕阅读器中隐藏，但保持布局
*/
.invisible {
  visibility: hidden;
}
/**反回顶部**/
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    /* 减少 right 值，让按钮往左移动 */
    right: 100px;
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    z-index: 999;
}
#back-to-top:hover {
    background-color: #555;
}

/* 侧边栏云标签样式 - 精装版 */
.widget-tag-cloud {
    padding: 18px 0 0;
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    gap: 8px;       /* 替代 margin，间距更均匀 */
}

.widget-tag-cloud a {
    display: inline-block;
    padding: 7px 6px 5px; /* 增加一点左右内边距，更像胶囊型 */
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: 500;
    border: none;      /* 去掉边框，减少视觉干扰 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.widget-tag-cloud a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 增加一点悬浮阴影 */
    filter: brightness(0.95); /* 悬浮时颜色微深 */
}

/* 重新调配的柔和色系 */
.widget-tag-cloud a:nth-child(5n+1) { background: #e0f2fe; color: #0369a1; }
.widget-tag-cloud a:nth-child(5n+2) { background: #dcfce7; color: #15803d; }
.widget-tag-cloud a:nth-child(5n+3) { background: #fef9c3; color: #a16207; }
.widget-tag-cloud a:nth-child(5n+4) { background: #fce7f3; color: #be185d; }
.widget-tag-cloud a:nth-child(5n+5) { background: #ede9fe; color: #6d28d9; }

/* 悬浮文字统一变白（可选） */
.widget-tag-cloud a:hover { color: #fff !important; }
.widget-tag-cloud a:nth-child(5n+1):hover { background: #0369a1; }
.widget-tag-cloud a:nth-child(5n+2):hover { background: #15803d; }
.widget-tag-cloud a:nth-child(5n+3):hover { background: #a16207; }
.widget-tag-cloud a:nth-child(5n+4):hover { background: #be185d; }
.widget-tag-cloud a:nth-child(5n+5):hover { background: #6d28d9; }
/* 侧边栏云标签样式---完---- */

/* 文章页标签样式 */
.post-tags {
    margin: 0;
    padding: 20px 0 1px;
    display: inherit;
    border-bottom: none;
}
.post-tags a::before {
    content: '# ';
}
.post-content .post-tags a,
.post-tags a {
    display: inline-block;
    margin: 0;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.post-tags a:hover {
    transform: translateY(-2px);
    text-decoration: none;
    outline: none;
}
/* 替换后的 .post-tags 柔和色系样式 */
/* 第 1 组：蓝色 */
.post-tags a:nth-child(5n+1) { background: #e0f2fe; color: #0369a1; border: 0.5px solid #e0f2fe; }
.post-tags a:nth-child(5n+1):hover { background: #0369a1; color: #fff; border-color: #0369a1; }
/* 第 2 组：绿色 */
.post-tags a:nth-child(5n+2) { background: #dcfce7; color: #15803d; border: 0.5px solid #dcfce7; }
.post-tags a:nth-child(5n+2):hover { background: #15803d; color: #fff; border-color: #15803d; }
/* 第 3 组：黄色/琥珀色 */
.post-tags a:nth-child(5n+3) { background: #fef9c3; color: #a16207; border: 0.5px solid #fef9c3; }
.post-tags a:nth-child(5n+3):hover { background: #a16207; color: #fff; border-color: #a16207; }
/* 第 4 组：粉色 */
.post-tags a:nth-child(5n+4) { background: #fce7f3; color: #be185d; border: 0.5px solid #fce7f3; }
.post-tags a:nth-child(5n+4):hover { background: #be185d; color: #fff; border-color: #be185d; }
/* 第 5 组：紫色 */
.post-tags a:nth-child(5n+5) { background: #ede9fe; color: #6d28d9; border: 0.5px solid #ede9fe; }
.post-tags a:nth-child(5n+5):hover { background: #6d28d9; color: #fff; border-color: #6d28d9; }
/* 文章页标签样式  --------完---------- */

#response-1 {
    color: #333;
    font-size: 15px;
    margin-bottom: 0px;
}
/* 首页顶部推荐容器 */
/* 现代轮播容器 */
.modern-slider-container {
    position: relative;
    width: 100%;
    height: 280px;
    margin: 30px 0 5px;
    border-radius: 12px;
    overflow: hidden;
    
    /* --- 核心修改：添加多层柔和阴影 --- */
    /* 第一层是物体本身的轮廓阴影，第二层是向下的环境光投影，让它看起来更立体 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.12);
    
    /* --- 进阶修改：添加一层极细的边框，防止在亮色背景下边缘糊掉 --- */
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* 确保阴影过渡也足够丝滑 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* 交互增强：鼠标悬停时，阴影变深并伴随轻微位移，模拟“被提起”的感觉 */
.modern-slider-container:hover {
    transform: translateY(-3px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.modern-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 隐藏单选框 */
.slider-state { display: none; }

/* 首页顶部推荐 Grid 布局 */
.top-recommend {
    display: grid !important;
    grid-template-columns: 1.6fr 0.8fr;
    grid-template-rows: repeat(2, 120px);
    gap: 12px;
    margin-bottom: 5px;
    margin-top: 30px;
}
.recommend-card.featured {
    grid-row: span 2;
}
.recommend-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.recommend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.recommend-card a, .card-thumb {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}
.card-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 12px 10px !important;
    color: #fff !important;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
/* 大图内部轮播 */
.feat-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}
.feat-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.8s ease;
}
.feat-slide.active {
    opacity: 1;
    z-index: 2;
}
@keyframes featFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.feat-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: transparent;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 26px; height: 40px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
    padding: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}
.feat-carousel:hover .feat-btn { opacity: 1; }
.feat-btn:hover { background: rgba(0,0,0,0.25); }
.feat-btn:active { background: rgba(0,0,0,0.55); }
.feat-prev { left: 6px; }
.feat-next { right: 6px; }

.feat-dots {
    position: absolute;
    bottom: 8px; left: 0; right: 0;
    text-align: center;
    z-index: 10;
}
.feat-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.feat-dot.on {
    background: #fff;
    transform: scale(1.3);
}
/* 移动端 */
/* 移动端：仅显示大图轮播，隐藏侧边小图 */
@media (max-width: 767px) {
    .top-recommend {
        display: block !important; /* 取消网格和弹性布局 */
        height: auto;
        margin-top: 15px;
    }
    
    /* 强制显示包含轮播图的大图卡片 */
    .recommend-card.featured {
        display: block !important;
        width: 100%;
        height: 220px; /* 你可以根据需要调整手机端大图的高度 */
        margin-bottom: 0;
    }

    /* 隐藏非 featured 的其他推荐卡片（即那两个小图） */
    .recommend-card:not(.featured) {
        display: none !important;
    }
}
/* 服务器状态监控小工具样式 */
.widget-probe {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}
.probe-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.probe-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}
.probe-label {
    width: 40px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #555;
    flex-shrink: 0;
    text-align: left;
}
.probe-bar-wrap {
    flex-grow: 1 !important;
    height: 8px !important;
    border-radius: 5px !important;
    margin: 0 2px !important;
    overflow: hidden;
    position: relative;
}
.probe-bar {
    height: 100% !important;
    width: 0%;
    border-radius: 4px !important;
    transition: width 0.6s ease;
}
.probe-val {
    width: 35px !important;
    font-size: 12px !important;
    color: #999;
    text-align: right;
    flex-shrink: 0;
}
/* 颜色方案 */
.probe-cpu .probe-bar-wrap { background: #e6f0ff; }
.probe-cpu .probe-bar { background: linear-gradient(90deg, #4da3ff, #357ae8); }
.probe-ram .probe-bar-wrap { background: #e7f9ee; }
.probe-ram .probe-bar { background: linear-gradient(90deg, #68d391, #48bb78); }
.probe-disk .probe-bar-wrap { background: #fff1e6; }
.probe-disk .probe-bar { background: linear-gradient(90deg, #f6ad55, #ed8936); }
/* 告警状态 */
.probe-bar.warn { background: #f0a020 !important; }
.probe-bar.danger { background: #e84040 !important; }
/* 网速和时间 */
.probe-extra {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    text-align: center;
}
.extra-item {
    flex: 1;
}
.extra-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.extra-val {
    font-size: 12px; /* 稍微缩小字号以适应更长的数值 */
    color: #999;
    white-space: nowrap; /* 强制不换行 */
}

/* 调整网速项目的左右间距 */
#val-net-up, #val-net-down {
    display: inline-block;
    min-width: 50px; /* 给数值和单位留够空间，防止单位切换时文字跳动 */
    text-align: left;
}

/* 服务器状态监控小工具样式 -------------完-------------*/

/**强制全站对话框颜色样式**/
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: #4A9EFF !important;
    box-shadow: none !important;
}
/**提交评论按钮改成蓝色主题**/
input[type="submit"],
button[type="submit"] {
    background-color: #4a9eff;
    color: #ffffff;
    border: 1px solid #4a9eff;
    padding: 2px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* 规范补充：统一按钮外观，去除默认样式 */
    font-family: inherit;
    font-size: inherit;
    line-height: normal;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
/* 鼠标悬停状态 */
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #2479CC;
    border-color: #2479CC;
}
/* 强制post-meta所有文字同色，覆盖链接样式 */
.post-meta li, 
.post-meta li a,
.post-meta-post li,
.post-meta-post li a { 
    color: #999 !important; 
    text-decoration: none !important; 
}

/* ---------- 7. 分页按钮圆润化 ---------- */
.page-navigator a {
    border-radius: 6px !important;
    transition: background 0.2s, color 0.2s;
}

.page-navigator a:hover {
    background: #e8f3ff !important;
    color: #4A9EFF !important;
}

.page-navigator .current a {
    background: #4A9EFF !important;
    color: #fff !important;
}

/* ---------- 8. 评论列表卡片美化 ---------- */
.comment-list li {
    border-radius: 8px !important;
    border: 1px solid #eeeeee !important;
    transition: box-shadow 0.2s;
}

.comment-list li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.comment-list li.comment-level-odd {
    background: #fafafa !important;
}

/* ---------- 9. 上一篇/下一篇区域 ---------- */
.post-near {
    background: #f8fbff;
    border-radius: 8px;
    padding: 12px 16px !important;
    border: 1px solid #e8f0fb;
}

.post-near li {
    margin: 6px 0 !important;
}

.post-near a {
    color: #4A9EFF;
}

/* ---------- 10. 页脚美化 ---------- */
#footer {
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
    font-size: 13px;
}