* { margin:0; padding:0; box-sizing:border-box; }
body {
  background:#f5f5f5;
  color:#34495e;
  font:16px/1.6 "Helvetica Neue", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  word-wrap:break-word;
}
a { text-decoration:none; color:#3F729B; transition:color .2s; }
a:hover { color:#F04848; }
img { max-width:100%; height:auto; border:0; }
ul, ol { list-style:none; }

/* ===== Header ===== */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.08);
  transition:height .3s;
  height:100px;
}
.site-header.shrink { height:60px; }
.header-inner {
  max-width:1200px; margin:0 auto; height:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px; position:relative;
}
.logo { display:flex; align-items:center; height:100%; }
.logo img { height:60px; width:auto; transition:height .3s; }
.site-header.shrink .logo img { height:40px; }
.nav { display:flex; align-items:center; }
.nav ul { display:flex; }
.nav ul li { margin-left:24px; }
.nav ul li a { color:#444; font-size:16px; }
.nav ul li a:hover, .nav ul li a.current { color:#3F729B; }
.nav-toggle { display:none; background:none; border:0; font-size:24px; cursor:pointer; color:#666; }

/* ===== Container ===== */
.container {
  max-width:1200px; margin:0 auto;
  padding:120px 20px 40px;
  display:flex; gap:20px; align-items:flex-start;
}
.main { flex:1; min-width:0; }
.sidebar { width:320px; flex-shrink:0; }

/* ===== Carousel ===== */
.carousel { margin-bottom:20px; border-radius:3px; overflow:hidden; background:#fff; }
.carousel-item img { width:100%; display:block; }
.carousel-item + .carousel-item { display:none; }

/* ===== Post Card ===== */
.post {
  background:#fff; border:1px solid #EBEBEB; border-radius:3px;
  padding:20px; margin-bottom:15px; overflow:hidden;
}
.post.istop { border-left:4px solid #F04848; }
.post-thumb { float:left; width:250px; margin:5px 15px 5px 0; }
.post-thumb img { width:100%; border-radius:3px; display:block; }
.post-body { overflow:hidden; }
.post-title { font-size:22px; font-weight:500; margin-bottom:12px; line-height:1.4; }
.post-title a { color:#333; }
.post-title a:hover { color:#3F729B; }
.post-cat {
  display:inline-block; background:#7FBB00; color:#fff;
  font-size:12px; padding:2px 8px; border-radius:2px; margin-right:6px; margin-bottom:8px;
}
.post-cat:hover { background:#3F729B; color:#fff; }
.post-top {
  display:inline-block; background:#F04848; color:#fff;
  font-size:12px; padding:2px 8px; border-radius:2px; margin-right:6px; margin-bottom:8px;
}
.post-summary { color:#666; font-size:14px; line-height:1.75; margin-bottom:12px; }
.post-meta { font-size:13px; color:#999; }
.post-meta span { margin-right:16px; }

/* ===== Pagination ===== */
.pagination { text-align:center; margin:30px 0; }
.pagination .btn {
  display:inline-block; padding:8px 20px; background:#fff; border:1px solid #ddd;
  border-radius:3px; color:#555; margin:0 8px;
}
.pagination .btn:hover { background:#3F729B; color:#fff; border-color:#3F729B; }
.pagination .page-info { color:#999; font-size:14px; }

/* ===== Post Detail ===== */
.breadcrumb {
  background:#fff; border:1px solid #EBEBEB; border-radius:3px;
  padding:8px 12px; font-size:13px; color:#777; margin-bottom:15px;
}
.breadcrumb a { color:#777; }
.breadcrumb a:hover { color:#3F729B; }
.post-detail .post-title { font-size:26px; text-align:center; margin-bottom:15px; }
.article-meta {
  text-align:center; color:#999; border-bottom:1px solid #EBEBEB;
  padding-bottom:15px; margin-bottom:20px;
}
.entry { font-size:15px; color:#444; line-height:1.8; }
.entry p { margin-bottom:15px; }
.entry img { max-width:100%; height:auto; border-radius:3px; }
.entry blockquote {
  background:#f9f9f9; border-left:4px solid #3F729B;
  padding:10px 15px; margin:15px 0; color:#666;
}
.entry pre {
  background:#282c34; color:#abb2bf; padding:15px; border-radius:3px;
  overflow-x:auto; font-size:13px; line-height:1.6; margin-bottom:15px;
}
.entry code { font-family:Consolas, Monaco, monospace; }
.entry ul, .entry ol { margin:0 0 15px 25px; }
.entry ul li { list-style:disc; }
.entry ol li { list-style:decimal; }
.tags { text-align:center; padding:15px 0; }
.tags a {
  display:inline-block; background:#3F729B; color:#fff;
  padding:3px 10px; border-radius:2px; margin:3px; font-size:13px;
}
.tags a:hover { background:#F04848; color:#fff; }
.post-copyright {
  background:#F4F4F4; border-bottom:2px solid #EBEBEB;
  padding:12px 15px; color:#999; font-size:13px; margin:20px 0;
}
.post-nav {
  padding:10px 0; font-size:14px; color:#888; border-top:1px dashed #eee;
}
.post-nav a { color:#444; }
.post-nav a:hover { color:#3F729B; }
.comment-section { background:#fff; border:1px solid #EBEBEB; border-radius:3px; padding:20px; margin-bottom:15px; }

/* ===== Sidebar ===== */
.widget {
  background:#fff; border:1px solid #EBEBEB; border-radius:3px;
  padding:15px; margin-bottom:15px;
}
.widget-title {
  font-size:15px; color:#333; border-bottom:1px solid #eee;
  padding-bottom:8px; margin-bottom:12px;
}
.widget-profile { text-align:center; }
.widget-profile .avatar {
  width:100px; height:100px; border-radius:50%; object-fit:cover; margin:0 auto 10px;
}
.profile-name { font-size:18px; margin-bottom:8px; }
.profile-name a { color:#333; }
.profile-desc { font-size:13px; color:#888; }
.news-list li {
  font-size:14px; line-height:1.8; padding-left:10px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='2' cy='2' r='2' fill='%23ccc'/%3E%3C/svg%3E") no-repeat left center;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.news-list li a { color:#555; }
.news-list li a:hover { color:#3F729B; }
.tag-cloud { display:flex; flex-wrap:wrap; }
.tag-item {
  background:#3F729B; color:#fff; padding:2px 8px;
  border-radius:2px; font-size:12px; margin:3px;
}
.tag-item:hover { background:#F04848; color:#fff; }
.search-form { display:flex; }
.search-form input {
  flex:1; height:34px; border:1px solid #ddd; border-radius:3px 0 0 3px;
  padding:0 10px; font-size:14px; outline:none;
}
.search-form button {
  height:34px; background:#F04848; color:#fff; border:0;
  padding:0 15px; border-radius:0 3px 3px 0; cursor:pointer;
}
.widget-footer { font-size:13px; color:#888; text-align:center; }

/* ===== Backtop ===== */
.backtop {
  position:fixed; right:30px; bottom:30px; width:40px; height:40px;
  background:#3F729B; color:#fff; border-radius:3px;
  display:none; align-items:center; justify-content:center;
  cursor:pointer; font-size:20px; z-index:99;
}
.backtop.show { display:flex; }
.backtop:hover { background:#F04848; }

/* ===== Responsive ===== */



/* ===== 摘要限行，和左侧缩略图高度对齐 ===== */
.post-summary p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 加密文章密码框 ===== */
.password-notice {
  padding: 30px 20px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 3px;
  text-align: center;
}
.password-notice p {
  margin-bottom: 15px;
  color: #666;
}
.password-notice input {
  width: 240px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
  margin-right: 8px;
}
.password-notice button {
  height: 36px;
  background: #3F729B;
  color: #fff;
  border: 0;
  padding: 0 20px;
  border-radius: 3px;
  cursor: pointer;
}
.password-notice button:hover {
  background: #F04848;
}

/* ===== 下拉菜单 ===== */
.nav ul li.has-children { position: relative; }
.nav ul li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  min-width: 140px;
  padding: 6px 0;
  z-index: 200;
  flex-direction: column;
}
.nav ul li.has-children:hover .submenu { display: flex; }
.nav ul li .submenu li {
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav ul li .submenu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}
.nav ul li .submenu li a:hover {
  background: #f5f5f5;
  color: #3F729B;
}

/* 页面标题 */
.page-title { font-size:22px; margin:0 0 15px; color:#333; }
.page-desc { color:#888; font-size:14px; margin-bottom:15px; }

/* 分类列表 / 友链列表 */
.cat-list li, .link-list li {
  font-size:14px; line-height:2; border-bottom:1px dashed #eee; padding:6px 0;
}
.cat-list li a, .link-list li a { color:#555; }
.cat-list li a:hover, .link-list li a:hover { color:#3F729B; }
.link-list li span { color:#aaa; font-size:12px; margin-left:10px; }

/* 相册 */
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.photo-grid img { width:100%; border-radius:3px; display:block; }

/* muted */
.muted { color:#aaa; font-size:12px; }

/* ===== 导航栏保底样式（高优先级） ===== */
.header-inner .nav > ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-inner .nav > ul > li {
  display: inline-block;
  margin-left: 24px;
  position: relative;
}
.header-inner .nav > ul > li > a {
  color: #444;
  font-size: 16px;
  line-height: 60px;
  display: inline-block;
  white-space: nowrap;
}
.header-inner .nav > ul > li > a:hover {
  color: #3F729B;
}
.header-inner .nav > ul > li.has-children > .submenu {
  display: none;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  min-width: 140px;
  padding: 6px 0;
  z-index: 200;
  flex-direction: column;
}
.header-inner .nav > ul > li.has-children:hover > .submenu {
  display: flex;
}
.header-inner .nav > ul > li.has-children > .submenu > li {
  margin: 0;
  padding: 0;
  display: block;
}
.header-inner .nav > ul > li.has-children > .submenu > li > a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  white-space: nowrap;
}
.header-inner .nav > ul > li.has-children > .submenu > li > a:hover {
  background: #f5f5f5;
  color: #3F729B;
}

/* ===== 导航栏最终覆盖（解决 Chrome 下拉异常） ===== */
.header-inner .nav > ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-inner .nav > ul > li {
  display: inline-block !important;
  margin-left: 24px;
  position: relative;
}
.header-inner .nav > ul > li > a {
  color: #444;
  font-size: 16px;
  line-height: 60px;
  display: inline-block;
  white-space: nowrap;
}
.header-inner .nav > ul > li > a:hover { color: #3F729B; }

/* 子菜单：强制纵向，默认隐藏 */
.header-inner .nav > ul > li > .submenu {
  display: none !important;
  flex-direction: column !important;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  min-width: 140px;
  padding: 6px 0;
  z-index: 200;
}
.header-inner .nav > ul > li:hover > .submenu {
  display: flex !important;
}
.header-inner .nav > ul > li > .submenu > li {
  display: block !important;
  margin: 0 !important;
  padding: 0;
}
.header-inner .nav > ul > li > .submenu > li > a {
  display: block !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #444 !important;
  white-space: nowrap;
}
.header-inner .nav > ul > li > .submenu > li > a:hover {
  background: #f5f5f5;
  color: #3F729B !important;
}

/* 子分类卡片 */
.subcategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.subcat-card {
  display: block;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 3px;
  padding: 20px 16px;
  text-align: center;
  color: #444;
  transition: all .2s;
}
.subcat-card h3 { font-size: 16px; font-weight: 500; margin: 0; }
.subcat-card:hover { border-color: #3F729B; color: #3F729B; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* 文章标题行：标签在左，标题紧随其后 */
.post-header {
  margin-bottom: 12px;
  overflow: hidden;
}
.post-header .post-cat,
.post-header .post-top {
  float: left;
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 2px;
  margin: 6px 8px 0 0;
  line-height: 1.5;
}
.post-header .post-cat { background: #7FBB00; color: #fff; }
.post-header .post-cat:hover { background: #3F729B; color: #fff; }
.post-header .post-top { background: #F04848; color: #fff; }
.post-header .post-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
}
.post-header .post-title a { color: #333; }
.post-header .post-title a:hover { color: #3F729B; }

/* 存档列表 */
.archive-list li {
  font-size: 14px;
  line-height: 2;
  padding-left: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='2' cy='2' r='2' fill='%23ccc'/%3E%3C/svg%3E") no-repeat left center;
}
.archive-list li a { color: #555; }
.archive-list li a:hover { color: #3F729B; }

/* 归档页 */
.archive-index { background: #fff; border: 1px solid #EBEBEB; border-radius: 3px; padding: 20px; }
.archive-year { font-size: 20px; color: #3F729B; border-bottom: 2px solid #3F729B; padding-bottom: 6px; margin: 20px 0 12px; }
.archive-year:first-child { margin-top: 0; }
.archive-month { font-size: 15px; color: #555; margin: 14px 0 8px; }
.archive-post-list { margin: 0 0 0 20px; }
.archive-post-list li { list-style: disc; font-size: 14px; line-height: 2; }
.archive-post-list li a { color: #444; }
.archive-post-list li a:hover { color: #3F729B; }




/* ===== 轮播图 ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 20px;
  background: #f5f5f5;
}
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 0;
}
.carousel-item.active {
  display: block;
  z-index: 1;
}
.carousel-item a,
.carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel-item img {
  object-fit: cover;
}
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-indicators button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  color: #666;
  font-size: 13px;
  cursor: pointer;
}
.carousel-indicators button.active {
  background: #3F729B;
  color: #fff;
}


/* ===== 选中文字高亮 ===== */
::selection { background: #3F729B; color: #fff; }
::-moz-selection { background: #3F729B; color: #fff; }



/* ===== 页脚 ===== */
.footer {
  width: 100%;
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #EBEBEB;
  text-align: center;
  font-size: 12px;
  color: #999;
  line-height: 1.8;
}
.footer a { color: #999; }
.footer a:hover { color: #3F729B; }
.footer-days { margin: 0 0 6px; }
.footer-days a { color: #999; font-size: 12px; }
.footer-copy { margin: 0; }
.footer-copy a { margin-left: 8px; }


/* ===== 分页 ===== */
.pagination {
  margin: 24px 0 10px;
  text-align: center;
}
.pagination .page-btn {
  display: inline-block;
  margin: 0 3px 6px;
  min-width: 30px;
  height: 30px;
  line-height: 28px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
  text-align: center;
  vertical-align: middle;
  transition: all .2s;
}
.pagination .page-btn:hover {
  background: #3F729B;
  color: #fff;
  border-color: #3F729B;
}
.pagination .page-btn.current {
  background: #3F729B;
  color: #fff;
  border-color: #3F729B;
  cursor: default;
}


/* 上一篇/下一篇：左右分布 */
.post-nav-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  border-top: 1px dashed #eee;
  border-bottom: 1px dashed #eee;
  padding: 14px 0;
}
.post-nav {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  min-width: 0;
}
.post-nav-next { text-align: right; }
.post-nav .nav-label {
  display: block;
  color: #999;
  font-size: 12px;
  margin-bottom: 4px;
}
.post-nav a {
  color: #444;
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-nav a:hover { color: #3F729B; }

/* 版权 */
.post-copyright {
  background: #F4F4F4;
  border-bottom: 2px solid #EBEBEB;
  padding: 12px 15px;
  color: #888;
  font-size: 13px;
  margin: 20px 0;
  line-height: 1.8;
}
.post-copyright a { color: #888; word-break: break-all; }
.post-copyright a:hover { color: #3F729B; }

/* 相关推荐：一行 4 个 */
.relatives { margin: 24px 0; }
.relatives h3 {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.relatives ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.relatives li { overflow: hidden; }
.relatives li a {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: #f5f5f5;
}
.relatives li img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.relatives li span {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  color: #444;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.relatives li a:hover span { color: #3F729B; }




/* ===== 评论区 ===== */
.comment-section {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 3px;
  padding: 20px;
  margin: 20px 0;
}
.comment-title {
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 12px;
  list-style: none;
}
.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.comment-author { font-weight: bold; color: #3F729B; }
.comment-time { color: #999; font-size: 12px; }
.comment-reply {
  margin-left: auto;
  color: #999;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.comment-reply:hover { color: #3F729B; }
.comment-content {
  font-size: 14px;
  color: #333;
  line-height: 1.7;
  word-break: break-word;
}
.comment-children {
  list-style: none;
  padding: 10px 0 0 16px;
  margin: 10px 0 0 0;
}
.comment-children .comment-item {
  background: #fff;
  border: 1px solid #eee;
  border-left: 3px solid #3F729B;
  margin-bottom: 8px;
}
.comment-children .comment-item:last-child { margin-bottom: 0; }

/* 评论表单 */
.comment-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.comment-form .form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  flex: 1;
  min-width: 140px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
}
.comment-form input:focus { border-color: #3F729B; }
.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 10px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.comment-form textarea:focus { border-color: #3F729B; }
.comment-form .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.comment-form button {
  background: #3F729B;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}
.comment-form button:hover { background: #F04848; }
.comment-form button:disabled { background: #ccc; cursor: not-allowed; }
.reply-hint { color: #888; font-size: 13px; }
.reply-hint b { color: #3F729B; }
.reply-hint a { color: #F04848; margin-left: 6px; }
.form-msg { margin-top: 8px; font-size: 13px; }
.form-msg.error { color: #F04848; }
.form-msg.success { color: #3F729B; }

/* ===== 评论表单底部小字 ===== */
.form-bottom {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
  text-align: center;
}

/* ===== 侧边栏美化 ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 4px 0;
}
.tag-cloud .tag-item {
  display: inline-block;
  border-radius: 3px;
  line-height: 1.4;
  transition: all .2s;
  font-weight: 500;
}
.tag-cloud .tag-item:hover {
  background: #3F729B !important;
  color: #fff !important;
  padding: 2px 8px !important;
}

/* 最新评论 */
.comment-list-sidebar {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment-list-sidebar li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}
.comment-list-sidebar li:last-child { border-bottom: 0; }
.comment-item-link {
  display: block;
  text-decoration: none;
}
.comment-author-sidebar {
  display: block;
  font-size: 13px;
  color: #3F729B;
  font-weight: bold;
  margin-bottom: 2px;
}
.comment-content-sidebar {
  display: block;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comment-item-link:hover .comment-author-sidebar { color: #F04848; }

/* 友情链接 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-grid li { margin: 0; }
.link-grid a {
  display: block;
  padding: 6px 8px;
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .2s;
}
.link-grid a:hover {
  background: #3F729B;
  color: #fff;
}

/* ===== 3D 标签云 ===== */
.tagcloud-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.tagcloud-wrap canvas {
  display: block;
  width: 100% !important;
  height: 280px !important;
  max-width: 280px;
  margin: 0 auto;
  outline: none;
  cursor: grab;
}
.tagcloud-wrap canvas:active { cursor: grabbing; }
.tag-list-hidden {
  display: none;
}


/* 移动端：隐藏整个侧边栏，时钟也一起隐藏，符合之前的设计 */
@media (max-width: 980px) {
  .sidebar { display: none !important; }
}




/* 强制 container 和 sidebar 布局 */
.container {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
}
.main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.sidebar {
  width: 320px !important;
  flex: 0 0 320px !important;
  box-sizing: border-box;
}



/* ===== 时钟（低调版） ===== */
.widget-clock {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 3px;
  padding: 14px 12px;
  margin-bottom: 15px;
  text-align: center;
}
.clock-time {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #666;
  line-height: 1.2;
  font-family: 'Helvetica Neue', 'PingFang SC', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.clock-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0;
}
.clock-meta span + span {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid #eee;
}

/* 侧边栏不渲染时，main 占满 */
.container > .main:only-child {
  flex: 1 1 100% !important;
}


/* 导航图标（Font Awesome） */
.nav > ul > li > a .icon-home,
.nav > ul > li > a .icon-book {
  color: inherit;
  margin-right: 4px;
  font-size: 14px;
  transition: color .2s;
}
.nav > ul > li > a:hover .icon-home,
.nav > ul > li > a:hover .icon-book {
  color: #3F729B;
}
.nav-arrow {
  font-size: 10px;
  color: #bbb;
  margin-left: 3px;
  transition: transform .2s, color .2s;
}
.nav > ul > li.has-children:hover .nav-arrow {
  transform: rotate(180deg);
  color: #3F729B;
}

/* 移动端导航滚动修复 */





/* 移动端导航：强制左对齐，防止 ul 偏移 */
@media (max-width: 640px) {
  .nav {
    justify-content: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .nav > ul {
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 8px !important;
    min-width: 0 !important;
  }
  .nav > ul > li:first-child {
    margin-left: 0 !important;
  }
}

/* ===== 移动端 ===== */
@media (max-width: 640px) {
  .site-header { height: auto; min-height: 96px; }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 12px 0;
    align-items: center;
  }
  .logo { height: 40px; display: flex; align-items: center; }
  .logo img { height: 32px; }
  .nav-toggle { display: none !important; }

  .nav {
    flex-basis: 100%;
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    width: 100%;
    margin-top: 4px;
    padding: 4px 0;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-top: 1px solid #f0f0f0;
    box-shadow: none !important;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav > ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0 8px;
    width: auto;
  }
  .nav > ul > li {
    flex-shrink: 0;
    position: static;
    border: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
  }
  .nav > ul > li > a {
    display: inline-flex !important;
    align-items: center;
    padding: 8px 10px !important;
    font-size: 14px;
    line-height: 1.4 !important;
    color: #444;
    white-space: nowrap;
  }

  /* 子菜单：fixed 定位，浮在视口上，不被 nav 裁剪 */
  .header-inner .nav > ul > li > .submenu {
    display: none !important;
    position: fixed !important;
    top: auto;
    left: auto;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 3px;
    box-shadow: 0 4px 14px rgba(0,0,0,.15) !important;
    min-width: 160px !important;
    padding: 4px 0 !important;
    z-index: 9999 !important;
    max-height: 60vh;
    overflow-y: auto;
    white-space: normal;
  }
  .header-inner .nav > ul > li.open > .submenu {
    display: block !important;
  }
  .header-inner .nav > ul > li > .submenu > li {
    display: block !important;
    margin: 0 !important;
    border: 0;
  }
  .header-inner .nav > ul > li > .submenu > li > a {
    display: block !important;
    padding: 10px 16px !important;
    font-size: 14px;
    line-height: 1.4 !important;
    color: #555;
    white-space: nowrap;
  }
  .header-inner .nav > ul > li > .submenu > li > a:hover {
    background: #f5f5f5 !important;
    color: #3F729B !important;
  }

  /* 文章卡片 */
  .post { padding: 14px; }
  .post-thumb {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: 160px !important;
    margin: 0 0 12px 0 !important;
    border-radius: 3px;
    overflow: hidden;
    background: #f5f5f5;
  }
  .post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .post-body { overflow: visible !important; }
  .post-title { font-size: 17px !important; line-height: 1.4 !important; }
  .post-summary p { font-size: 13px !important; }
  .post-meta { font-size: 12px !important; }

  .container { padding: 110px 10px 0; }
  .footer { margin-top: 20px; padding: 16px 12px; }
  .carousel { height: 140px; }
  .pagination .page-btn {
    min-width: 28px; height: 28px; line-height: 26px;
    font-size: 12px; padding: 0 6px; margin: 0 2px 6px;
  }
}