/* ========== 幻灯片 ========== */
.slider-wrap, #homeSlider {
  height: auto !important; min-height: 0 !important; max-height: none !important;
  aspect-ratio: 2.5 / 1 !important; overflow: hidden !important;
  background: transparent !important; padding: 0 !important;
  margin: 0 0 16px 0 !important; border-radius: 4px !important;
}
.slider-wrap img, #homeSlider img, .slider-slide img {
  height: 100% !important; width: 100% !important;
  object-fit: cover !important; object-position: center center !important;
  display: block !important; margin: 0 !important; padding: 0 !important;
}
.slider-wrap {
  position: relative; width: 100%; height: 400px;
  border-radius: 4px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); background: #ffe066;
}
.slider-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; will-change: transform; }
.slider-slide { flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.slider-slide a { display: block; width: 100%; height: 100%; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: transparent; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 300; cursor: pointer;
  transition: all 0.2s ease; z-index: 10; line-height: 1;
  padding-bottom: 4px; user-select: none; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  /* ★ 新增：默认隐藏 */
  opacity: 0;
}
/* ★ 新增：鼠标悬停在幻灯片区域时，箭头淡入显示 */
.slider-wrap:hover .slider-arrow,
#homeSlider:hover .slider-arrow {
  opacity: 1;
}
.slider-arrow:hover { background: transparent; color: #fff; transform: translateY(-50%) scale(1.15); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* ★ 新增：移动端（触屏无 hover）默认显示箭头，保证可点 */
@media (hover: none) {
  .slider-arrow {
    opacity: 1;
  }
}
.slider-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;      /* ★ 改成右下角定位 */
  left: auto;       /* ★ 取消原来的居中 */
  transform: none;  /* ★ 取消原来的水平位移 */
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.25s ease; }
.slider-dot.active { width: 24px; border-radius: 4px; background: #fff; }
@media (max-width: 992px) {
  .slider-wrap { height: 320px; }
}
@media (max-width: 768px) {
  .slider-wrap {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 0 18px 0 !important;   /* ★ 下方留 22px 间隔，和 Tab 拉开距离 */
    border-radius: 0 !important;
  }

  /* ★ 移动端隐藏左右箭头 */
  .slider-arrow {
    display: none !important;
  }

  /* 移动端分页点：半透明黑底，跟幻灯片底色搭配 */
  .slider-dots {
    right: 10px;
    bottom: 8px;
    gap: 5px;
  }
  .slider-dot {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.25);
  }
  .slider-dot.active {
    width: 18px;
    background: rgba(0, 0, 0, 0.55);
  }
}

/* ========== 全局变量 ========== */
:root {
  --primary: #206be7; --primary-hover: #1162e8; --primary-light: #eef3ff;
  --bg: #f5f7fa; --card-bg: #ffffff; --text: #1f2937;
  --text-light: #6b7280; --text-mute: #9ca3af; --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 4px; --radius-sm: 3px;
  --font: "LXGW WenKai Screen", "LXGW WenKai", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans CN", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Microsoft YaHei UI", "微软雅黑", Arial, sans-serif;
}
* { -webkit-box-sizing: border-box; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 16px; line-height: 1.85; color: var(--text); background: var(--bg); padding-top: 70px !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; word-wrap: break-word; letter-spacing: 0.02em; }
a { color: var(--primary); text-decoration: none; transition: all 0.15s ease; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; vertical-align: middle; border-radius: var(--radius-sm); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 0; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ========== 顶部导航 ========== */
.header { position: fixed; top: 0; left: 0; right: 0; height: 70px; background: #fff; box-shadow: var(--shadow-sm); z-index: 999; border-bottom: 1px solid var(--border); }
.header .container { height: 100%; display: flex; align-items: center; }
.header .logo { margin-left: -35px; margin-right: 24px; flex-shrink: 0; }
.header .logo img { height: 36px; border-radius: 4px; }
.navbar-collapse { display: flex !important; align-items: center; flex: 1; height: 100%; }
.navbar-left { flex: 1; }
.navbar-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.navbar-nav .menu-item > a { display: flex; align-items: center; gap: 5px; padding: 8px 12px; color: #4b5563; font-weight: 400; font-size: 15px; border-radius: var(--radius-sm); transition: all 0.15s ease; letter-spacing: 0.2px; }
.navbar-nav .menu-item > a svg { width: 16px; height: 16px; flex-shrink: 0; fill: #4b5563; color: #4b5563; transition: fill 0.15s ease, color 0.15s ease; }
.navbar-nav .menu-item > a:hover { background: var(--primary-light); color: var(--primary); }
.navbar-nav .menu-item > a:hover svg { fill: var(--primary); color: var(--primary); }
.navbar-nav .menu-item > a span { white-space: nowrap; }
.navbar-action { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-box { position: relative; }
#searchForm, .search-form { display: flex; align-items: center; background: var(--bg); border-radius: 20px; padding: 0 4px 0 14px; border: 1px solid transparent; transition: all 0.2s ease; height: 38px; }
#searchForm:focus-within, .search-form:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(32,107,231,0.1); }
#searchInput, #mobileSearchInput { border: none; background: transparent; outline: none; font-size: 13px; width: 180px; color: var(--text); }
#searchInput::placeholder { color: var(--text-mute); }
#searchForm button, .search-btn { background: var(--primary); color: #fff; border: none; padding: 6px 14px; border-radius: 16px; font-size: 13px; cursor: pointer; transition: all 0.15s ease; }
#searchForm button:hover, .search-btn:hover { background: var(--primary-hover); }
.navbar-toggle { display: none; }
.mobile-search-icon { display: none; }
#searchResults, .mobile-search-results { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 420px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-height: 420px; overflow-y: auto; z-index: 1000; padding: 6px; }
.search-result-item { padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.15s; }
.search-result-item:hover { background: var(--primary-light); }
.search-result-title { font-weight: 600; margin-bottom: 4px; font-size: 13px; color: var(--text); }
.search-result-snippet { font-size: 12px; color: var(--text-light); line-height: 1.5; margin-bottom: 4px; }
.search-result-date { font-size: 11px; color: var(--text-mute); }
.search-no-results { padding: 24px; text-align: center; color: var(--text-mute); font-size: 13px; }

/* ========== 主布局 ========== */
#wrap { padding: 24px 0; }
.wrap { display: grid !important; grid-template-columns: 1fr 320px !important; gap: 16px; align-items: stretch; }
.main { min-width: 0; grid-column: 1 !important; grid-row: 1; }
.sidebar { min-width: 0; grid-column: 2 !important; grid-row: 1; }
@media (max-width: 992px) {
  .wrap { grid-template-columns: 1fr !important; }
  .main, .sidebar { grid-column: 1 !important; }
  .sidebar { grid-row: 2; }
}

/* ========== Tab 栏 ========== */
.post-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; padding: 4px; background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); width: fit-content; }
.post-tab { display: inline-flex; align-items: center; padding: 8px 22px; border-radius: 3px; font-size: 14px; font-weight: 500; color: #6b7280; text-decoration: none; transition: all 0.15s ease; cursor: pointer; white-space: nowrap; }
.post-tab:hover { color: #206be7; background: #eef3ff; }
.post-tab.active { background: #206be7; color: #fff; }

/* ========== 友情链接 ========== */
.links-section { margin-top: 5px; margin-bottom: 8px; padding-top: 12px; padding-top: 0; border-top: none; }
.links-section-title { font-size: 17px; font-weight: 500; color: var(--text); margin: 0 0 24px; padding-left: 14px; position: relative; display: flex; align-items: center; gap: 10px; }
.links-section-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 22px; background: var(--primary); border-radius: 2px; }
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* ========== 友情链接：响应式列数 ========== */
/* iPad / 平板：一行 2 个 */
@media (max-width: 992px) {
  .links-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.link-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03); text-decoration: none; color: var(--text); transition: all 0.25s ease; border: 1px solid transparent; min-width: 0; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--primary-light); color: var(--primary); }
.link-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 3px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #206be7, #4a8bf5); color: #fff; font-weight: 700; font-size: 16px; overflow: hidden; }
.link-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-card:nth-child(6n+1) .link-icon { background: linear-gradient(135deg, #206be7, #4a8bf5); }
.link-card:nth-child(6n+2) .link-icon { background: linear-gradient(135deg, #ef4444, #f87171); }
.link-card:nth-child(6n+3) .link-icon { background: linear-gradient(135deg, #10b981, #34d399); }
.link-card:nth-child(6n+4) .link-icon { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.link-card:nth-child(6n+5) .link-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.link-card:nth-child(6n+6) .link-icon { background: linear-gradient(135deg, #ec4899, #f472b6); }
.link-icon > span { font-size: 15px; font-weight: 700; padding: 0 4px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40px; }
.link-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.link-name { font-size: 15px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card:hover .link-name { color: var(--primary); }
.link-desc { font-size: 13px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 分类归档头部 ========== */
.archive-header { background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); padding: 20px 24px 0; margin-bottom: 16px; }
.archive-header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.archive-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; display: flex; align-items: center; gap: 10px; }
.archive-title .at-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #1f2937; }
.archive-title .at-icon svg { width: 22px; height: 22px; fill: currentColor; }
.archive-title .at-count { font-size: 14px; font-weight: 500; color: #6b7280; }
.archive-title .at-count b { color: var(--primary); font-weight: 700; }
.archive-desc { font-size: 13px; color: var(--text-light); margin: 8px 0 0; line-height: 1.6; }
.archive-desc a { color: var(--primary); margin-left: 4px; }
.archive-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.archive-tabs::-webkit-scrollbar { display: none; }
.archive-tab { flex-shrink: 0; padding: 8px 12px; font-size: 14px; color: #6b7280; text-decoration: none; border-radius: 4px; transition: all 0.15s ease; white-space: nowrap; }
.archive-tab:hover { color: var(--primary); background: var(--primary-light); }
.archive-tab.active { color: var(--primary); font-weight: 600; }

/* ========== 文章列表 ========== */
.sec-panel { background: #fff; border-radius: 4px; box-shadow: var(--shadow-sm); }
.post-loop { list-style: none; padding: 0 20px; margin: 0; display: block; }
.post-loop .item { display: flex; gap: 20px; padding: 24px 0; background: transparent; border: none; border-bottom: 1px dashed #ececec; transition: none; }
.post-loop .item:first-child { padding-top: 4px; }
.post-loop .item:last-child { border-bottom: none; }
.post-loop .item:hover { background: transparent; box-shadow: none; transform: none; }
.post-loop .item-img { flex-shrink: 0; width: 220px; height: 140px; overflow: hidden; border-radius: 3px; }
.post-loop .item-img-inner { display: block; width: 100%; height: 100%; }
.post-loop .item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: none; }
.post-loop .item-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.post-loop .item-title { font-size: 18px; font-weight: 500; line-height: 1.5; margin: 0 0 12px; letter-spacing: 0.01em; }
.post-loop .item-title a { color: var(--text); }
.post-loop .item-title a:hover { color: var(--primary); }
.post-loop .item-excerpt { font-size: 14px; color: var(--text-light); line-height: 1.7; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-loop .item-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-mute); margin-top: auto; padding-top: 4px; }
.post-loop .item-meta-li { display: inline-flex; align-items: center; gap: 4px; }
.post-loop .item-tag { gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.post-loop .item-tag a { font-size: 11.5px; padding: 2px 8px; border-radius: 3px; background: #eef3ff; color: #206be7; font-weight: 500; }
.mobile-only { display: none !important; }
.item-tag a, .entry-tag a { display: inline-block; padding: 2px 10px; background: var(--primary-light); color: var(--primary); border-radius: 12px; font-size: 12px; font-weight: 500; }
.item-tag a:hover, .entry-tag a:hover { background: var(--primary); color: #fff; }

/* ========== 分页 ========== */
.pagination { list-style: none; padding: 0 0 18px; margin: 18px 0 0; display: flex; justify-content: center; gap: 6px; }
.pagination li { display: inline-block; }
.pagination a { display: inline-block; padding: 6px 14px; background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 12.5px; font-weight: 500; line-height: 1.5; text-decoration: none; transition: all 0.15s ease; }
.pagination a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination a:active, .pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(32,107,231,0.35); }
.pagination a .arrow { display: inline-block; font-size: 18px; line-height: 1; vertical-align: -1px; margin: 0 2px; font-weight: 400; }

/* ========== 侧边栏 ========== */
.sidebar .widget { background: var(--card-bg); border-radius: 4px; padding: 14px 20px 20px; margin-bottom: 15px; box-shadow: var(--shadow-sm); }
.sidebar .widget-title { font-size: 17px; font-weight: 500; color: #1a1a1a; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); position: relative; letter-spacing: 0.01em; }
.sidebar .widget-title::before { content: ""; position: absolute; bottom: -1px; left: 0; width: 40px; height: 2px; background: var(--primary); border-radius: 2px; }
.sidebar .widget-title span { display: inline-block; }
.widget_post_thumb ul { list-style: none; padding: 0; margin: 0; }
.widget_post_thumb .item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.widget_post_thumb .item:last-child { border-bottom: none; padding-bottom: 0; }
.widget_post_thumb .item-img { flex-shrink: 0; width: 90px; height: 64px; overflow: hidden; border-radius: 4px; }
.widget_post_thumb .item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.widget_post_thumb .item-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.widget_post_thumb .item-title { font-size: 14px; font-weight: 400; margin: 0 0 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.widget_post_thumb .item-title a { color: var(--text); }
.widget_post_thumb .item-title a:hover { color: var(--primary); }
.widget_post_thumb .item-date { font-size: 12px; color: var(--text-mute); margin: 0; line-height: 1.4; }
.tagcloud { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
.tagcloud a { display: inline-block !important; padding: 4px 10px !important; border-radius: 3px !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.5 !important; transition: all 0.15s !important; border: none !important; background: #eef3ff !important; color: #206be7 !important; text-decoration: none !important; }
.tagcloud a:nth-child(8n+1) { background: #eef3ff !important; color: #206be7 !important; }
.tagcloud a:nth-child(8n+2) { background: #fff1e6 !important; color: #e67e22 !important; }
.tagcloud a:nth-child(8n+3) { background: #e6f7ee !important; color: #10b981 !important; }
.tagcloud a:nth-child(8n+4) { background: #fdeef4 !important; color: #ec4899 !important; }
.tagcloud a:nth-child(8n+5) { background: #f0eaff !important; color: #8b5cf6 !important; }
.tagcloud a:nth-child(8n+6) { background: #fef3c7 !important; color: #d97706 !important; }
.tagcloud a:nth-child(8n+7) { background: #e0f2fe !important; color: #0ea5e9 !important; }
.tagcloud a:nth-child(8n+8) { background: #fee2e2 !important; color: #dc2626 !important; }
.tagcloud a:hover { transform: translateY(-1px) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
.widget_links ul { list-style: none; padding: 0; margin: 0; }
.widget_links li { padding: 6px 0; }
.widget_links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 13px; }
.widget_links a::before { content: "🔗"; font-size: 11px; }
.widget_links a:hover { color: var(--primary); }

/* ========== 侧边栏最新评论 ========== */
.recent-comments-list { display: flex; flex-direction: column; gap: 12px; }
.recent-comment-item { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed #f0f0f0; text-decoration: none; color: inherit; }
.recent-comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-comment-avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ff8a4c, #ff6b35); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; overflow: hidden; }
.recent-comment-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.recent-comment-body { flex: 1; min-width: 0; }
.recent-comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; font-size: 13px; }
.recent-comment-nick { font-weight: 600; color: var(--primary); }
.recent-comment-time { color: #9ca3af; font-size: 11px; }
.recent-comment-text { font-size: 13px; color: var(--text-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.recent-comment-empty { text-align: center; padding: 16px 0; color: #9ca3af; font-size: 13px; }

/* ========== 文章详情页 ========== */
.entry { background: var(--card-bg); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.entry-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.entry-title { font-size: 24px; font-weight: 500; line-height: 1.5; color: #1a1a1a; margin: 0 0 16px; letter-spacing: 0.01em; }
.entry-info { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--text-mute); }
.entry-info .dot { opacity: 0.4; }
.entry-info a { color: var(--primary); }
.entry-content { font-size: 15.5px; line-height: 2.0; color: #2c3338; letter-spacing: 0.02em; }
.entry-content h2, .entry-content h3 { margin: 24px 0 12px; font-weight: 600; }
.entry-content p { margin: 12px 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content pre { background: #1e293b; color: #e2e8f0; padding: 16px 20px; border-radius: var(--radius-sm); overflow-x: auto; position: relative; font-size: 13px; line-height: 1.6; }
.entry-content code { font-family: "SF Mono", Consolas, "Courier New", monospace; font-size: 13px; }
.entry-content :not(pre) > code { background: var(--primary-light); color: var(--primary); padding: 2px 6px; border-radius: 3px; }
.entry-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.entry-tag { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.entry-copyright { padding: 14px 18px; background: var(--bg); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-light); border-left: 3px solid var(--primary); margin-bottom: 20px; }
.entry-copyright p { margin: 0; }
.entry-page { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-page-prev, .entry-page-next { position: relative; border-radius: var(--radius-sm); overflow: hidden; background-size: cover; background-position: center; min-height: 90px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff; transition: transform 0.2s ease; }
.entry-page-prev::before, .entry-page-next::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.3)); z-index: 1; }
.entry-page-prev > *, .entry-page-next > * { position: relative; z-index: 2; }
.entry-page-prev:hover, .entry-page-next:hover { transform: translateY(-2px); }
.entry-page-prev a, .entry-page-next a { color: #fff; font-weight: 500; font-size: 13px; display: block; margin-bottom: 6px; }
.entry-page-info { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.85; }
.entry-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ========== 页脚 ========== */
.footer { background: #2d3236; margin-top: 12px; padding: 24px 0; text-align: center; font-size: 14px; color: #cbd5e1; border-top: 1px solid #334155; }
.footer .copyright { text-align: center; }
.footer .copyright p { margin: 4px 0; color: #cbd5e1; }
.footer .copyright a { color: #60a5fa; }
.footer .copyright a:hover { color: #93c5fd; }

/* ========== SEO 徽章 ========== */
.seo-badges { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.seo-badge { display: inline-flex; align-items: stretch; border-radius: 0; overflow: hidden; text-decoration: none !important; font-size: 11px; font-weight: 400; line-height: 18px; height: 18px; font-family: "DejaVu Sans", Verdana, Geneva, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; transition: opacity 0.15s ease; }
.seo-badge:hover { opacity: 0.85; }
.seo-badge-left { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding: 0 8px; background: #555555; color: #ffffff; font-weight: 400; line-height: 1; box-sizing: border-box; }
.seo-badge-right { display: inline-flex; align-items: center; justify-content: center; height: 18px; padding: 0 8px; color: #ffffff; font-weight: 400; line-height: 1; box-sizing: border-box; }
.seo-badge-blue   { background: #007ec6; }
.seo-badge-orange { background: #f2662b; }
.seo-badge-green  { background: #4c1; }

/* ========== 回到顶部 ========== */
.action-pos-0 { position: fixed; right: 24px; bottom: 20%; z-index: 100; }
.action-item.gotop { width: 44px; height: 44px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); cursor: pointer; transition: all 0.2s ease; }
.action-item.gotop:hover { background: var(--primary); color: #fff; }
.action-item.gotop svg { width: 20px; height: 20px; fill: currentColor; }

/* ========== 移动端搜索下拉面板 ========== */
.mobile-search-panel { display: none; position: fixed; top: 56px; left: 0; right: 0; background: #fff; padding: 14px 16px 20px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); z-index: 999; border-bottom: 1px solid var(--border); }
.mobile-search-panel.show { display: block; }
.mobile-search-panel .msp-close { position: absolute; top: 10px; right: 14px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; transition: all 0.15s; }
.mobile-search-panel .msp-close:hover { background: #f3f4f6; color: #1f2937; }
.mobile-search-panel .msp-hint { font-size: 12px; color: var(--primary); margin: 4px 0 10px; }
.mobile-search-panel .msp-form { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--primary); padding: 6px 0; }
.mobile-search-panel .msp-form input { flex: 1; border: none; outline: none; font-size: 15px; background: transparent; color: var(--text); padding: 4px 0; }
.mobile-search-panel .msp-form input::placeholder { color: var(--text-mute); }
.mobile-search-panel .msp-form button { background: transparent; border: none; color: var(--primary); cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center; }
.mobile-search-panel .msp-hot-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 10px; }
.mobile-search-panel .msp-hot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-search-panel .msp-hot-list a { display: inline-block; padding: 6px 12px; background: #f3f4f6; color: #4b5563; border-radius: 4px; font-size: 13px; text-decoration: none; transition: all 0.15s; }
.mobile-search-panel .msp-hot-list a:hover { background: var(--primary-light); color: var(--primary); }

/* ========== 状态标签 ========== */
topflag { color: #ff5722; }
encryptedflag { color: #2196f3; }
hiddenflag { color: #000; background: #ff0; padding: 0 4px; border-radius: 3px; }
commentflag { color: #fff; background: #206be7; padding: 0 4px; border-radius: 3px; }
paidflag { color: #16a34a; }

/* ========== 分类聚合 ========== */
.category-section { margin-top: 4px; margin-bottom: 24px; padding-top: 0; border-top: none; }
.category-section-title { font-size: 18px; font-weight: 600; color: var(--text); margin: 0 0 24px; padding-left: 14px; position: relative; display: flex; align-items: center; gap: 10px; letter-spacing: 0.01em; }
.category-section-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.category-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
  border: 1px solid transparent;
  /* ★ 去掉 hover 时的所有过渡效果 */
  transition: none;
}
/* ★ hover 时不再位移、不再放大、不再改阴影，保持静止 */
.category-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  transform: none;
  border-color: transparent;
}
.cc-header { display: flex; gap: 18px; padding: 20px; }
.cc-cover {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  height: 112px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #206be7, #4a8bf5); /* 没图时的默认背景 */
  text-decoration: none;
}
.cc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  transition: transform 0.3s ease;
}
/* 鼠标移到图片上时轻微放大，增强可点感 */
.cc-cover:hover img {
  transform: scale(1.05);
}
.cc-cover-text {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  text-align: center;
  padding: 0 10px;
  word-break: break-all;
}
.cc-hot { position: absolute; top: 6px; left: 6px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 3px; font-weight: 600; box-shadow: 0 2px 6px rgba(239,68,68,0.4); }
.cc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-title { font-size: 18px; font-weight: 500; color: #1a1a1a; margin: 0 0 6px; letter-spacing: 0.01em; }
.cc-title a { color: #1a1a1a; text-decoration: none; transition: color 0.2s ease; }
.cc-title a:hover { color: #206be7; }
.cc-desc { font-size: 12.5px; color: #8b95a5; margin: 0 0 auto; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 12px; }
.cc-count { color: #9ca3af; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.cc-more { color: #206be7; font-weight: 500; padding: 3px 10px; background: #eef3ff; border-radius: 3px; transition: all 0.15s; text-decoration: none; font-size: 12px; }
.cc-more:hover { background: #206be7; color: #fff; }
.cc-list { list-style: none; padding: 0 18px 12px; margin: 0; border-top: 1px solid #e5e7eb; }
.cc-list li { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #f0f0f0; gap: 12px; }
.cc-list li:last-child { border-bottom: none; }
.cc-article-link { color: var(--text-light); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; padding-left: 18px; text-decoration: none; line-height: 1.6; letter-spacing: 0; font-weight: 400; }
.cc-article-link::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid #f9a8b8; background: #fff; }
.cc-article-link:hover { color: #206be7; }
.cc-article-link:hover::before { border-color: #206be7; }
.cc-time { flex-shrink: 0; font-size: 12px; color: #b3b9c4; display: inline-flex; align-items: center; gap: 4px; font-weight: 400; }

/* ========== 侧边栏博客介绍 ========== */
.intro-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 15px; }
.intro-cover { width: 100%; aspect-ratio: 2.5 / 1; overflow: hidden; background: #e0f2fe; }
.intro-cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.intro-body { padding: 0 20px 12px; text-align: center; position: relative; }
.intro-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.12); margin: -30px auto 12px; background: #fff; position: relative; z-index: 2; }
.intro-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.intro-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.intro-desc { font-size: 14px; line-height: 1.7; color: var(--text-light); margin: 0 0 12px; text-align: left; text-indent: 2em; }
.intro-stats { display: flex; justify-content: space-around; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.intro-stats .stat-item { text-align: center; flex: 1; }
.intro-stats .stat-num { font-size: 20px; font-weight: 600; color: #1f2937; line-height: 1.2; margin-bottom: 4px; }
.intro-stats .stat-label { font-size: 13px; color: #6b7280; }

/* ========== 评论系统 ========== */
.comment-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.comment-title span { color: var(--primary); }
.comment-form { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px; margin-bottom: 20px; }
.comment-form-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-form-row input { flex: 1; min-width: 130px; border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; font-size: 13px; outline: none; background: #fff; }
.comment-form-row input:focus, .comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(32,107,231,0.1); }
.comment-form textarea { width: 100%; min-height: 90px; border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; font-size: 14px; resize: vertical; outline: none; font-family: inherit; box-sizing: border-box; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.comment-tip { font-size: 12px; color: #ef4444; }
#cmSubmit { background: var(--primary); color: #fff; border: none; border-radius: 4px; padding: 8px 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
#cmSubmit:hover { background: var(--primary-hover); }
#cmSubmit:disabled { opacity: 0.6; cursor: not-allowed; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed #f0f0f0; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#206be7,#4a8bf5); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 13px; }
.comment-nick { font-weight: 500; color: var(--text); }
.comment-nick a { color: var(--text); text-decoration: none; }
.comment-nick a:hover { color: var(--primary); }
.comment-time { color: #9ca3af; font-size: 12px; }
.comment-content { font-size: 15px; line-height: 1.7; color: var(--text); word-break: break-word; white-space: pre-wrap; }
.comment-reply { margin-top: 8px; padding: 8px 12px; background: #eef3ff; border-left: 3px solid #206be7; border-radius: 4px; font-size: 13px; color: #1f2937; }
.comment-empty { text-align: center; padding: 30px; color: #9ca3af; font-size: 13px; }

/* ========== 移动端 ========== */
@media (max-width: 992px) {
  .intro-cover { aspect-ratio: 2.5 / 1; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 768px) {
  body { padding-top: 56px; }
  #wrap { padding: 8px 0 !important; }
  .container { padding: 0 12px; }
  .header { height: 56px; }
  .header .container { padding: 0 12px; display: flex; justify-content: space-between; }
  .header .logo { margin: 0; flex: 1; display: flex; justify-content: center; }
  .header .logo img { height: 30px; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; color: #333; order: -1; flex-shrink: 0; -webkit-appearance: none; appearance: none; padding: 0; margin: 0; }
  .navbar-toggle svg { width: 24px; height: 24px; display: block; }
  .navbar-toggle .icon-bar { display: block; height: 2px; width: 100%; background: #333; border-radius: 2px; flex-shrink: 0; }
  .navbar-collapse { display: none !important; }
  .navbar-collapse.in { display: flex !important; flex-direction: column; align-items: stretch; position: fixed; top: 56px; left: 0; bottom: 0; width: 260px; max-width: 80vw; background: #fff; padding: 8px 0; box-shadow: 4px 0 16px rgba(0,0,0,0.12); overflow-y: auto; z-index: 1002; pointer-events: auto; }
  .nav-mask { display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); z-index: 998; }
  .nav-mask.show { display: block; }
  .navbar-collapse.in .navbar-nav, .navbar-collapse.in .navbar-nav .menu-item, .navbar-collapse.in .navbar-nav .menu-item > a { pointer-events: auto; position: relative; z-index: 1003; }
  .navbar-nav { flex-direction: column; width: 100%; align-items: stretch; gap: 0; padding: 0; }
  .navbar-nav .menu-item { width: 100%; padding: 0 12px; }
  .navbar-nav .menu-item > a { display: flex; align-items: center; width: 100%; padding: 12px 8px; font-size: 15px; font-weight: 500; justify-content: flex-start; color: #1f2937; border-radius: 6px; border: none; }
  .navbar-nav .menu-item > a:hover, .navbar-nav .menu-item > a:active { background: #f0f5ff; color: #206be7; }
  .navbar-nav .menu-item > a svg { width: 18px; height: 18px; margin-right: 10px; fill: #206be7; color: #206be7; }
  .menu-children { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 12px 36px; }
  .menu-children a { display: inline-block; padding: 6px 12px; background: #f3f4f6; color: #4b5563; border-radius: 4px; font-size: 13px; font-weight: 500; text-decoration: none; }
  .menu-children a:hover { background: #eef3ff; color: #206be7; }
  .search-box { display: none !important; }
  .mobile-search-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; cursor: pointer; color: #333; }
  .mobile-search-icon svg { width: 22px; height: 22px; fill: currentColor; }
  .mobile-search-box { display: none !important; }
  .slider-wrap, #homeSlider { border-radius: 0 !important; margin: 0 0 18px 0 !important; }
  .wrap { grid-template-columns: 1fr !important; gap: 0 !important; }
  .main { grid-column: 1 !important; }
  .sidebar { display: none !important; }
  .post-tabs { width: 100%; padding: 0; margin: 0 0 12px; background: transparent; box-shadow: none; border-radius: 0; gap: 0; justify-content: flex-start; overflow-x: auto; }
  .post-tabs::-webkit-scrollbar { display: none; }
  .post-tab { flex-shrink: 0; padding: 10px 16px; font-size: 15px; font-weight: 500; border-radius: 0; color: #6b7280; position: relative; background: transparent !important; }
  .post-tab.active { color: #206be7 !important; background: transparent !important; }
  .post-tab.active::after { content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 20px; height: 3px; background: #206be7; border-radius: 2px; }
  .sec-panel { background: transparent; box-shadow: none; border-radius: 0; }
  .post-loop { padding: 0; }
  .post-loop .item { flex-direction: row; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
  .post-loop .item:first-child { padding-top: 0; }
  .post-loop .item-img { width: clamp(100px, 35vw, 140px); height: auto; aspect-ratio: 4 / 3; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
  .post-loop .item-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 6px; display: block; }
  .post-loop .item-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .post-loop .item-title { font-size: 15px; line-height: 1.55; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; letter-spacing: 0.01em; }
  .post-loop .item-excerpt { display: none; }
  .post-loop .item-meta { font-size: 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
  .post-loop .item-tag { display: flex; margin: 0 0 6px; flex-wrap: wrap; gap: 4px; }
  .post-loop .item-tag a { font-size: 11.5px; padding: 2px 8px; }
  .archive-header { padding: 14px 14px 0; margin-bottom: 12px; border-radius: 0; }
  .archive-title { font-size: 17px; }
  .archive-title .at-icon { width: 24px; height: 24px; }
  .archive-title .at-icon svg { width: 18px; height: 18px; }
  .archive-title .at-count { font-size: 13px; }
  .archive-desc { font-size: 12.5px; }
  .archive-tab { padding: 7px 10px; font-size: 13px; }
  .mobile-only { display: flex !important; }
  .category-section { margin-top: 12px; margin-bottom: 16px; padding-top: 12px; }
  .category-section-title { font-size: 17px; margin: 0 0 12px; padding-left: 12px; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .cc-header { display: flex; gap: 10px; padding: 10px 12px; align-items: center; }
  .cc-cover { width: 110px; height: 82px; border-radius: 6px; flex-shrink: 0; }
  .cc-cover img { border-radius: 6px; }
  .cc-cover-text { font-size: 15px; padding: 0 8px; }
  .cc-title { font-size: 15px; margin: 0 0 4px; }
  .cc-title a { color: #1a1a1a; }
  .cc-title a:hover { color: #206be7; }
  .cc-desc { font-size: 12px; }
  .cc-more { font-size: 12px; padding: 3px 10px; }
  .cc-list { padding: 0 12px 8px; }
  .cc-list li { padding: 8px 0; gap: 8px; }
  .cc-article-link { font-size: 13px; padding-left: 14px; }
  .cc-time { font-size: 11px; }
  .links-section { margin-top: 12px; margin-bottom: 6px; padding-top: 12px; border-top: 1px solid #e5e7eb; }
  .links-section-title { font-size: 17px; margin: 0 0 12px; padding-left: 12px; }
  .links-grid { grid-template-columns: 1fr; gap: 0; }
  .link-card { padding: 12px 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid #f0f0f0; background: transparent; gap: 12px; transform: none !important; }
  .link-card:last-child { border-bottom: none; }
  .link-icon { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; }
  .link-icon > span { font-size: 14px; max-width: 40px; }
  .link-name { font-size: 14.5px; }
  .link-desc { font-size: 12px; }
  .entry { padding: 14px 12px !important; border-radius: 0 !important; }
  .entry-head { margin-bottom: 14px; padding-bottom: 12px; }
  .entry-title { font-size: 19px; line-height: 1.4; margin: 0 0 10px; }
  .entry-info { gap: 8px; font-size: 12px; }
  .entry-content { font-size: 15px; line-height: 1.9; letter-spacing: 0.02em; }
  .entry-content h2, .entry-content h3 { margin: 16px 0 8px; font-size: 17px; }
  .entry-content p { margin: 8px 0; }
  .entry-content pre { padding: 10px 12px; font-size: 12.5px; margin: 10px 0; }
  .entry-content img { border-radius: 4px; margin: 8px 0; }
  .entry-footer { margin-top: 18px; padding-top: 14px; }
  .entry-copyright { padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; }
  .entry-page { grid-template-columns: 1fr; gap: 8px; }
  .entry-page-prev, .entry-page-next { min-height: 70px; padding: 10px 12px; }
  .entry-comments { margin-top: 20px; padding-top: 16px; }
  .comment-form { padding: 12px; }
  .comment-form-row { flex-direction: column; }
  .comment-form-row input { min-width: 0; width: 100%; }
  .comment-avatar { width: 32px; height: 32px; font-size: 13px; }
  .footer { padding: 20px 0; font-size: 13px; }
  .action-pos-0 { right: 14px; bottom: 12%; }
  .action-item.gotop { width: 40px; height: 40px; }
  /* ★ 移动端文章列表上下间距调小 */
  .sec-panel-body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .post-loop {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .post-loop .item:first-child {
    padding-top: 4px !important;
  }

  .post-loop .item:last-child {
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
  }
}
/* ============================================================
 * 移动端首页 Tab 样式优化（仅手机端生效）
 * 圆角胶囊 + 加大上下间距
 * ============================================================ */
@media (max-width: 768px) {
  .post-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: none;
    margin: 8px 0 10px;
    padding: 0 2px;
    background: transparent;
  }

  .post-tab {
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border-radius: 999px;
    border-bottom: none;
    line-height: 1.4;
    transition: all 0.2s ease;
    text-decoration: none;

    /* ★ 新增：去掉点击高亮和焦点框 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    box-shadow: none;
  }

  .post-tab.active {
    color: #ffffff !important;
    background: #206be7 !important;
    border-bottom: none !important;
    font-weight: 600;
    padding: 5px 18px;
    box-shadow: 0 3px 10px rgba(32, 107, 231, 0.25);
  }

  /* ★ 新增：点击/聚焦/触摸时都不显示默认高亮 */
  .post-tab:focus,
  .post-tab:active,
  .post-tab:hover {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
  }

  /* 激活态保留自己的阴影，不被上面覆盖 */
  .post-tab.active:focus,
  .post-tab.active:active,
  .post-tab.active:hover {
    box-shadow: 0 3px 10px rgba(32, 107, 231, 0.25);
  }

  .post-tabs + .post-loop {
    margin-top: 0;
  }
}
/* ========== 侧边栏标签：只显示 8 行，超出隐藏 ========== */
.sidebar .widget_tag_cloud .tagcloud {
  max-height: 264px !important;   /* 8 行完整 + gap */
  overflow: hidden !important;
}
/* ========== 菜单 SVG 图标样式（服务端直出） ========== */
.menu-svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: #4b5563;
  color: #4b5563;
  transition: fill 0.15s ease, color 0.15s ease;
}
.navbar-nav .menu-item > a:hover .menu-svg-icon {
  fill: var(--primary);
  color: var(--primary);
}
@media (max-width: 768px) {
  .menu-svg-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    fill: #206be7;
    color: #206be7;
  }
  .navbar-nav .menu-item > a:hover .menu-svg-icon {
    fill: #206be7;
    color: #206be7;
  }
}

/* ============================================================
 * 文章详情页：正文样式直接继承 body，和首页/分类页保持一致
 * ============================================================ */

/* 撤掉历史遗留的覆盖：.entry-content 不再单独设字体和字号 */
.entry-content {
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: 1.9 !important;      /* 仅保留舒适的行高 */
  color: #2c3338;                    /* 仅保留正文颜色 */
  letter-spacing: 0.02em;
}

/* 正文里所有块级元素，同样继承 body */
.entry-content p,
.entry-content li,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content td,
.entry-content th,
.entry-content dd,
.entry-content dt {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* 标题保留层级感，字号稍大即可，字体同样继承 */
.entry-content h2 {
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin: 28px 0 12px !important;
}
.entry-content h3 {
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  margin: 22px 0 10px !important;
}
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: inherit !important;
  font-weight: 600 !important;
}

/* 移动端也保持和 body 一致 */
@media (max-width: 768px) {
  .entry-content {
    font-size: inherit !important;
    line-height: 1.9 !important;
  }
  .entry-content h2 {
    font-size: 18px !important;
    margin: 20px 0 10px !important;
  }
  .entry-content h3 {
    font-size: 16.5px !important;
    margin: 16px 0 8px !important;
  }
}
/* ============================================================
   首页付费卡片板块 —— 一比一还原目标图
   ============================================================ */

/* 板块容器：透明背景 */
.home-card-section {
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
/* ============================================================
   首页卡片板块标题栏
   ============================================================ */
.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 14px 2px;    /* ★ 上边距从 0 加到 8px，下边距从 12px 加到 14px */
  margin-bottom: 6px;            /* ★ 和下面卡片的距离稍微拉开一点 */
  gap: 12px;
}
.home-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.home-card-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  padding-left: 10px;
  position: relative;
  line-height: 1.3;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.home-card-header-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #2f80ed;
  border-radius: 2px;
}

/* 小字提示 */
.home-card-header-tip {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* 右侧「更多 >」 */
.home-card-header-more {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.home-card-header-more:hover {
  color: #2f80ed;
}

@media (max-width: 768px) {
  .home-card-header {
    padding: 8px 2px 12px 2px;
    gap: 8px;
  }
  .home-card-header-left {
    gap: 6px;
  }
  .home-card-header-title {
    font-size: 16px;
  }
  .home-card-header-title::before {
    height: 16px;
  }
  .home-card-header-tip {
    font-size: 11px;
  }
  .home-card-header-more {
    font-size: 12px;
  }
}
/* 一行 4 个，间距 12px */
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* 单个卡片：灰底 + 圆角 + 果冻回弹（幅度收敛版） */
.home-card-item {
  background: #e5e5e5;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
    box-shadow 0.3s ease;
  will-change: transform;
}

/* 悬停：轻微上浮 + 轻微放大 + 轻阴影 */
.home-card-item:hover {
  transform: translateY(-2px) scale(1.010);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07), 0 3px 6px rgba(0, 0, 0, 0.05);
  z-index: 10;
  position: relative;
}

/* 按下：更轻的下沉 */
.home-card-item:active {
  transform: translateY(-1px) scale(0.995);
  transition:
    transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.home-card-cover {
  width: calc(100% - 24px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e5e5e5;
  margin: 12px 12px 0 12px;
  border-radius: 8px;
  box-sizing: border-box;
}

.home-card-price {
  font-size: 15px;
  color: #e4393c;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.home-card-price b {
  color: #e4393c;
  font-size: 26px;
  font-weight: 500;
  margin-left: 1px;
  line-height: 1;
  font-family: "Arial", "Helvetica Neue", Helvetica, "PingFang SC", sans-serif;
}
.home-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 6px 12px;
  background: #e5e5e5;
  border-top: 1px solid #e0e0e0;
  min-height: auto;
  box-sizing: border-box;
  width: 100%;
}

/* ★ 关键：强制按钮贴右 */
.home-card-footer .home-card-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ★ 关键：价格不被压缩 */
.home-card-footer .home-card-price {
  flex-shrink: 0;
}
/* 免费版价格文字 */
.home-card-price.free {
  color: #16a34a;
  font-weight: 600;
  font-size: 14px;
}

/* 立即购买按钮 */
.home-card-btn {
  display: inline-block;
  padding: 5px 16px;
  background: #2f80ed;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 400;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  line-height: 1.5;
}

.home-card-btn:hover {
  background: #1c6dd0;
  color: #ffffff;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .home-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .home-card-cover {
    display: block;
    width: auto;
    aspect-ratio: 16 / 10;    /* ★ 从 16/10 改成 16/9，图片更扁一点，卡片自然变矮 */
    margin: 8px 8px 0px 8px;  /* ★ 下边距从 8px 收到 6px */
    border-radius: 6px;
  }
  .home-card-footer {
    padding: 4px 10px 6px 10px;   /* ★ 上边距从 6px 收到 4px */
    min-height: auto;
  }
  .home-card-price {
    font-size: 13px;
  }
  .home-card-price b {
    font-size: 20px;
    font-family: "Arial", "Helvetica Neue", Helvetica, "PingFang SC", sans-serif;
    font-weight: 500;
  }
  .home-card-btn {
    padding: 4px 12px;
    font-size: 12.5px;
  }
}
/* ============================================================
   ★ 友情链接：iPad mini（768px）及其他 iPad 一行 2 个
   ============================================================ */
@media (min-width: 768px) and (max-width: 992px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}
/* ============================================================
 * 文章正文表格样式（新增）
 * ============================================================ */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.7;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.entry-content table thead th {
  background: #f8fafc;
  color: #1f2937;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  font-size: 13.5px;
}
.entry-content table tbody td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}
.entry-content table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.entry-content table tbody tr:hover {
  background: #eef3ff;
}
.entry-content table code {
  background: #eef3ff;
  color: #206be7;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
}
.entry-content table a {
  color: #206be7;
  text-decoration: none;
}
.entry-content table a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }
  .entry-content table thead th,
  .entry-content table tbody td {
    padding: 8px 10px;
    font-size: 13px;
  }
}
/* ============================================================
 * 友情链接标题栏 + 申请友链入口
 * ============================================================ */
.links-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
}
.links-section-header .links-section-title {
  margin: 0;
}
.links-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: #206be7;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.links-apply-btn:hover {
  color: #1162e8;
  text-decoration: underline;
}

/* ============================================================
 * 申请友链页面
 * ============================================================ */
.apply-link-wrap {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  padding: 28px 32px 32px;
  margin-bottom: 20px;
}
.apply-link-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
  padding-left: 12px;
  position: relative;
  line-height: 1.4;
}
.apply-link-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #206be7;
  border-radius: 2px;
}
.apply-link-sub {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 22px;
  padding-left: 12px;
}
.apply-link-notice {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 26px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #374151;
}
.apply-link-notice .notice-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.apply-link-notice .notice-label {
  color: #ef4444;
  font-weight: 600;
  flex-shrink: 0;
}
.apply-link-notice .notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.apply-link-notice .notice-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 2px;
}
.apply-link-notice .notice-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6b7280;
}
.apply-link-notice .notice-example {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.9;
}
.apply-link-notice .notice-example b {
  color: #1f2937;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}
.apply-link-notice .notice-example code {
  background: #eef3ff;
  color: #206be7;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12.5px;
}

.apply-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.apply-form-label {
  flex-shrink: 0;
  width: 90px;
  text-align: right;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}
.apply-form-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 14px;
  background: #f8fafc;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}
.apply-form-input:focus {
  border-color: #206be7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(32,107,231,0.1);
}
.apply-form-input::placeholder {
  color: #b0b7c3;
}
.apply-form-actions {
  padding-left: 102px;
  margin-top: 22px;
}
.apply-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 26px;
  background: #eef3ff;
  color: #206be7;
  border: 1px solid #c7dcff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.apply-form-submit:hover {
  background: #206be7;
  color: #fff;
  border-color: #206be7;
}
.apply-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.apply-form-tip {
  display: block;
  font-size: 13px;
  margin-top: 14px;
  color: #10b981;
  padding-left: 102px;
}
.apply-form-tip.error {
  color: #ef4444;
}
@media (max-width: 768px) {
  .apply-link-wrap {
    padding: 18px 16px 22px;
    border-radius: 0;
  }
  .apply-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 14px;
  }
  .apply-form-label {
    width: auto;
    text-align: left;
    font-size: 13.5px;
  }
  .apply-form-actions {
    padding-left: 0;
  }
  .apply-form-tip {
    padding-left: 0;
  }
}
/* ============================================================
 * 友情链接：压缩卡片上下留白（新增，放最后覆盖）
 * ============================================================ */
.link-card {
  padding: 8px 14px;
}
.links-grid {
  gap: 10px;
}
.links-section-header {
  margin: 0 0 10px;
}
.links-section {
  margin-top: 0;
  margin-bottom: 10px;
}
/* ============================================================
 * 申请友链页：已收录站点 & 卡片边框
 * ============================================================ */

/* 1. 让「已收录站点」标题和「提交链接」标题同字号、同字重 */
/* 只对申请页生效 */
.apply-link-wrap + .links-section .links-section-title,
.links-section:has(+ .apply-link-wrap) .links-section-title {
  font-size: 20px !important;
}

/* 2. 每张卡片四周加边框 */
.link-card {
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.link-card:hover {
  border-color: #206be7 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}
/* ============================================================
 * 友情链接卡片：hover 时保持灰色边框，不做高亮
 * ============================================================ */
.link-card:hover {
  border-color: #e5e7eb !important;
  box-shadow: none !important;
}
