/**
 * 模块名：blog 主题样式（子比风格复刻）
 * 创建时间：2026-08-11
 * 功能描述：复刻 Zibll 子比主题视觉风格。蓝色渐变主色、圆角卡片、毛玻璃顶栏、公告条、
 *           首页轮播 + Tab 分区 + 卡片瀑布流、作者卡、标签云、多板块页脚；基于 CSS 变量实现明暗模式。
 * 说明：:root 为亮色主题，[data-theme="dark"] 为暗色主题覆盖。
 */

/* ============ CSS 变量（亮色） ============ */
:root {
  --color-bg: #f4f5f7;
  --color-card: #ffffff;
  --color-card-2: #f6f7f9;
  --color-card-3: #eef0f3;
  --color-text: #1d2129;
  --color-text-2: #4e5969;
  --color-text-3: #8a919f;
  --color-border: #e5e6eb;
  --color-primary: #3169e1;
  --color-primary-hover: #2957c4;
  --color-primary-2: #6a5af9;
  --color-danger: #f53f3f;
  --color-warn: #ff7d00;
  --color-success: #00b42a;
  --header-bg: rgba(255,255,255,.92);
  --shadow-card: 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 10px 28px rgba(49,105,225,.18);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* ============ CSS 变量（暗色） ============ */
[data-theme="dark"] {
  --color-bg: #121212;
  --color-card: #1d1e20;
  --color-card-2: #26272a;
  --color-card-3: #2e2f33;
  --color-text: #e7e8ea;
  --color-text-2: #b4b7bd;
  --color-text-3: #7f838a;
  --color-border: #333538;
  --color-primary: #6e8bef;
  --color-primary-hover: #8aa3f3;
  --color-primary-2: #8a7cf6;
  --header-bg: rgba(29,30,32,.92);
  --shadow-card: 0 4px 16px rgba(0,0,0,.4);
  --shadow-hover: 0 10px 28px rgba(110,139,239,.28);
}

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.7; color: var(--color-text);
  background: var(--color-bg); transition: background .3s, color .3s;
}
a { color: var(--color-text-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

/* ============ 通用工具类（对齐 demo 子比主题） ============ */
.flex { display: flex; }
.flex-row { display: flex; flex-direction: row; }
.flex1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.ac { align-items: center; }
.at { align-items: flex-start; }
.jse { justify-content: space-evenly; }
.jcc { justify-content: center; }
.jb { justify-content: space-between; }
.cir { border-radius: 125px; }
.relative { position: relative; }
.text-center { text-align: center; }
.text-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.font-bold { font-weight: 700; }
.inline-block { display: inline-block; }
.af { align-items: flex-start; }
/* gap 布局工具类（对齐 demo 子比主题） */
.gap6 { gap: 6px; }
.gap10 { gap: 10px; }
.gap20 { gap: 20px; }
/* 透明度 */
.opacity8 { opacity: .8; }
/* 响应式显示隐藏（对齐 bootstrap/zib 断点）：默认显示，小屏隐藏 */
.hidden-xs { display: block; }
/* 颜色 */
.main-color { color: var(--color-text-2); }
.muted-color { color: #777; }
.muted-2-color { color: #999; }
/* 圆角 */
.radius8 { border-radius: 8px; }
/* 间距 */
.ml6 { margin-left: 6px; }
.ml10 { margin-left: 10px; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mb6 { margin-bottom: 6px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.mr6 { margin-right: 6px; }
/* 字号 */
.em09 { font-size: 0.9em; }
.em12 { font-size: 1.2em; }
.em16 { font-size: 1.6em; }
.px12-sm { font-size: 14px; }
/* zib-widget 卡片间距 */
.zib-widget { margin-bottom: 20px; }
/* abs-center 绝对居中 */
.abs-center {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
}

/* ============ 头部导航栏多功能组件（子比风格三层结构：轮播+搜索覆盖层+图标卡片） ============ */
/* card-4 等效：border-radius:4px */
.card-4 { border-radius: 4px; }
/* filter-blur 等效：毛玻璃容器 */
.filter-blur { overflow: hidden; }

.header-slider-container {
  position: relative;
  margin-bottom: 20px;
  /* CSS 变量由 PHP 注入 */
  --pc-height: 560px;
  --m-height: 300px;
}

/* Layer 1: Swiper 轮播 */
.zib-slider { position: relative; }
.new-swiper {
  overflow: hidden;
  position: relative;
}
/* 导航固定时轮播上移遮住 header 底部 */
body.nav-fixed .slide-header { margin-top: -90px; }
.slide-header .slide-text { padding-top: 70px; }
/* 幻灯片内图片/视频圆角归零 */
.slide-header img, .slide-header video { border-radius: 0 !important; }

/* Swiper 容器高度 */
.slide-header { height: var(--pc-height); }
.slide-header .swiper-wrapper { height: 100%; }
.slide-header .swiper-slide {
  height: 100%;
  overflow: hidden;
}
/* 视频幻灯片全宽 */
.slide-header .swiper-slide.slide-background-video {
  width: 100% !important;
  background: #000;
}
.slide-header .swiper-slide.slide-background-video .fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 图片背景幻灯片（全宽，撑满轮播区域） */
.slide-header .swiper-slide.slide-background-image {
  width: 100% !important;
  position: relative;
}
.slide-header .swiper-slide.slide-background-image .fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-header .swiper-slide.slide-background-image a {
  display: block;
  width: 100%;
  height: 100%;
}
/* 图片幻灯片上的文字叠加层 */
.slide-image-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.slide-image-title {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Swiper 导航按钮（对齐 demo：30×40px，默认隐藏，hover 显示） */
.slide-header .swiper-button-prev,
.slide-header .swiper-button-next {
  width: 30px;
  height: 40px;
  margin-top: -25px;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .4s, background .3s;
  color: #fff;
}
.slide-header .swiper-button-prev { left: -15px; border-radius: 0 4px 4px 0; }
.slide-header .swiper-button-next { right: -15px; border-radius: 4px 0 0 4px; }
.slide-header .swiper-button-prev::after,
.slide-header .swiper-button-next::after { font-size: 15px; }
.slide-header:hover .swiper-button-prev,
.slide-header:hover .swiper-button-next { opacity: .8; }
.slide-header .swiper-button-prev:hover,
.slide-header .swiper-button-next:hover { background: rgba(0,0,0,.6); opacity: 1; }
.slide-header .swiper-button-disabled { opacity: 0 !important; pointer-events: none !important; }

/* Swiper 分页指示器（对齐 demo：4×4px 药丸形，右对齐，bottom:4px） */
.slide-header .swiper-pagination {
  bottom: 4px;
  text-align: right;
  padding-right: 10px;
  opacity: 0;
  transition: opacity .3s;
}
.slide-header:hover .swiper-pagination { opacity: .8; }
.slide-header .swiper-pagination-bullet {
  width: 4px;
  height: 4px;
  background: #fff;
  opacity: .7;
  border: none;
  margin: 0 2px;
}
.slide-header .swiper-pagination-bullet-active {
  width: 8px;
  opacity: 1;
}

/* Layer 2: 搜索覆盖层 */
.header-slider-search {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
  color: #fff;
  font-size: 17px;
  pointer-events: none;
}
.header-slider-search > * { pointer-events: auto; }
.header-slider-search-more { margin-bottom: 1.8em; }
.header-slider-search .search-input { max-width: 800px; }
.header-slider-search .line-form {
  background: rgba(255,255,255,.8);
  border-radius: 100px;
  padding: .5em 1.2em;
  z-index: 1;
  color: #555;
  backdrop-filter: saturate(5) blur(20px);
}
.header-slider-search .search-input-text {
  position: relative;
  padding: 5px 10px;
}
.header-slider-search .line-form-input {
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: #333;
}
/* scale-placeholder 浮动标签 */
.scale-placeholder {
  position: absolute;
  bottom: 5px;
  opacity: .5;
  transition: .2s;
  padding-left: 4px;
  transform-origin: left top;
  user-select: none;
  pointer-events: none;
  backface-visibility: hidden;
  z-index: 1;
  cursor: text;
  font-size: 15px;
  color: #888;
}
.scale-placeholder.is-focus,
input:focus ~ .scale-placeholder {
  transform: translateY(-20px);
  font-size: 11px;
}
.header-slider-search .abs-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-right: -6px;
}
.header-slider-search .abs-right button {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 18px;
  padding: 4px 8px;
  transition: color .2s;
}
.header-slider-search .abs-right button:hover { color: var(--color-primary); }
.header-slider-search .search-keywords { text-align: center; margin-top: 12px; }
.header-slider-search .search-keywords > p { font-size: 13px; margin-bottom: 4px; }
.header-slider-search .search_keywords {
  display: inline-block;
  padding: 3px 5px;
  font-size: .85em;
  border-radius: 4px;
  background: rgba(255,255,255,.8);
  color: #888;
  text-decoration: none;
  transition: background .2s, color .2s;
  backdrop-filter: saturate(5) blur(20px);
}
.header-slider-search .search_keywords:hover { background: rgba(255,255,255,.95); color: var(--color-primary); }

/* Layer 3: 图标卡片 */
.header-slider-card {
  margin-top: -40px;
  z-index: 1;
  position: relative;
  padding: 0 16px;
}
.header-slider-card .zib-widget { margin-bottom: 0; }
.icon-cover-card {
  background: rgba(255,255,255,.8);
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: saturate(5) blur(20px);
  transition: transform .2s, box-shadow .2s;
  box-shadow: rgba(116,116,116,.08) 0 0 10px 0;
}
.icon-cover-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(116,116,116,.12) 0 0 16px 0;
}
.icon-cover-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-cover-icon.badg {
  width: 45px;
  height: 45px;
  border-radius: 125px;
  background: rgba(255,111,6,.1);
}
.icon-cover-desc { min-width: 0; }
.icon-cover-desc .text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 暗色模式适配 */
html[data-theme="dark"] .header-slider-search .line-form { background: rgba(30,30,32,.85); color: #ccc; }
html[data-theme="dark"] .header-slider-search .line-form-input { color: #fff; }
html[data-theme="dark"] .header-slider-search .search_keywords { background: rgba(30,30,32,.8); color: #aaa; }
html[data-theme="dark"] .icon-cover-card { background: rgba(30,30,32,.85); }

/* 移动端响应式（对齐 demo 断点 767px / 640px） */
@media (max-width: 767px) {
  .slide-header { height: var(--m-height); }
  .header-slider-search { font-size: 12px; top: calc(50% - 40px); padding: 0 16px; }
  .header-slider-search-more.before { margin-bottom: 1em; }
  .header-slider-search .line-form { font-size: 14px; padding: 4px 12px; }
  .header-slider-search .line-form-input { font-size: 14px; }
  .header-slider-search .search_keywords { font-size: .75em; padding: 2px 5px; }
  .header-slider-card { margin-top: -35px; padding: 0 12px; }
  .icon-cover-card { padding: 10px; }
  .icon-cover-icon.badg { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  body.nav-fixed .slide-header { margin-top: -72px; }
  .slide-header .slide-text { padding-top: 52px; }
  .slide-header .swiper-button-prev,
  .slide-header .swiper-button-next { display: none; }
}
@media (max-width: 480px) {
  .flex-col-sm-2 { flex-wrap: wrap; }
  .flex-col-sm-2 > .flex1 { flex: 0 0 50%; max-width: 50%; }
  .icon-cover-card { padding: 10px; }
  .icon-cover-desc .em12 { font-size: 13px; }
  .icon-cover-desc .mt6 { font-size: 11px; }
}

/* ============ 通用徽章（badg/badge）工具类 ============ */
.badg, badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 50px;
  color: #fff;
  white-space: nowrap;
}
.badg-sm { font-size: 11px; padding: 0 5px; }
/* 渐变色徽章（对齐 demo 色值） */
.jb-cyan { background: linear-gradient(135deg, #00b4d8, #0077b6); }
.jb-yellow { background: linear-gradient(135deg, rgb(245,159,84) 10%, rgb(255,105,34) 100%); }
.jb-red { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.jb-blue { background: linear-gradient(135deg, #4a90d9, #3169e1); }
.jb-green { background: linear-gradient(135deg, #52c41a, #237804); }
.jb-pink { background: linear-gradient(135deg, #ff6b9d, #c44569); }
/* 纯色图标背景 */
.c-yellow { color: #ff6f06; }
.c-blue { color: #3169e1; }
.c-red { color: #f53f3f; }
.c-green { color: #00b42a; }
.c-purple { color: #722ed1; }
/* 图片 hover 缩放 */
.hover-zoom-img img { transition: transform .3s; }
.hover-zoom-img:hover img { transform: scale(1.08); }

/* ============ 公告条 ============ */
.notice-bar {
  position: relative; overflow: hidden; font-size: 13px; color: #6b4f00;
  background: linear-gradient(90deg, #fff7e0, #fff2c9); border-bottom: 1px solid #f0e3b8;
}
[data-theme="dark"] .notice-bar { color: #e8c163; background: #2a2618; border-color: #3a3520; }
.notice-bar-inner { display: flex; align-items: center; gap: 10px; height: 36px; }
.notice-bar .notice-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #e6a23c; flex-shrink: 0; }
.notice-bar .notice-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #8a6d1f; }
[data-theme="dark"] .notice-bar .notice-text { color: #d8b25c; }
.notice-bar .notice-close { margin-left: auto; color: #b98a2e; cursor: pointer; flex-shrink: 0; padding: 0 4px; }
.notice-bar .notice-close:hover { color: #e6a23c; }

/* ============ 顶部导航 ============ */
.blog-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--color-border);
}
.blog-header-inner { display: flex; align-items: center; height: 62px; gap: 20px; }
.blog-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--color-text); white-space: nowrap; }
.blog-logo img { height: 34px; }
.blog-logo .logo-grad { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 导航 */
.blog-nav { flex: 1; display: flex; align-items: center; }
.blog-nav ul { display: flex; align-items: center; gap: 2px; }
.blog-nav li { position: relative; }
.blog-nav li a {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px;
  font-size: 15px; color: var(--color-text-2); font-weight: 500;
}
.blog-nav li a:hover, .blog-nav li.current a { background: var(--color-card-3); color: var(--color-primary); }
.blog-nav li.current a { color: var(--color-primary); }

/* 顶栏工具 */
.blog-header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.blog-header-tools .tool-search, .blog-header-tools .tool-dark {
  width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--color-text-2); background: var(--color-card-2);
}
.blog-header-tools .tool-search:hover, .blog-header-tools .tool-dark:hover { color: var(--color-primary); background: var(--color-card-3); }

/* 开通会员按钮 */
.vip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #f7b733, #fc4a1a);
  box-shadow: 0 4px 12px rgba(252,74,26,.3);
  transition: transform .2s, box-shadow .2s;
}
.vip-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(252,74,26,.4); color: #fff; }

/* 登录入口 */
.user-entry { display: flex; align-items: center; gap: 6px; }
.user-entry .avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid var(--color-primary); }
.user-entry .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-entry .login-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--color-primary); cursor: pointer;
  background: var(--color-card-2); border: 1px solid var(--color-border);
}
.user-entry .login-btn:hover { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }

/* 移动端菜单按钮 */
.menu-btn { display: none; width: 36px; height: 36px; border-radius: 9px; background: var(--color-card-2); color: var(--color-text-2); align-items: center; justify-content: center; }

/* ============ 搜索浮层 ============ */
.search-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.5); display: none; align-items: flex-start; justify-content: center; padding-top: 120px;
  backdrop-filter: blur(2px);
}
.search-mask.show { display: flex; }
.search-panel { width: 560px; max-width: 90%; background: var(--color-card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-hover); }
.search-panel form { display: flex; gap: 8px; }
.search-input { flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 9px; font-size: 15px; background: var(--color-card-2); color: var(--color-text); outline: none; }
.search-input:focus { border-color: var(--color-primary); }
.search-btn { width: 64px; height: 44px; border-radius: 9px; background: var(--color-primary); color: #fff; font-size: 16px; }
.search-btn:hover { background: var(--color-primary-hover); }

/* ============ 布局：主内容 + 侧边栏 ============ */
.blog-layout { display: flex; gap: 20px; padding: 24px 0 40px; }
.blog-main { flex: 1; min-width: 0; }
.blog-side { width: 300px; flex-shrink: 0; }

/* ============ 广告横幅轮播（对齐 demo new-swiper slide-widget scale-height coverflow 3D） ============ */
/* 比例高度容器：--scale-height 控制高度比例（默认 37%），swiper-wrapper 与 slide 图片绝对定位填充 */
.ad-banner-swiper.scale-height {
  --scale-height: 40%;
  --pc-height: 100%;
  --m-height: 100%;
  padding-bottom: var(--scale-height);
  width: 100%;
  height: 0px;
  position: relative;
  overflow: hidden;
  border-radius: var(--main-radius, 8px);
}
.ad-banner-swiper.scale-height .swiper-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.ad-banner-swiper.scale-height .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--main-radius, 8px);
  /* 图片自适应留白时的填充背景，随明暗主题变化 */
  background: var(--color-card-2);
}
.ad-banner-swiper.scale-height .swiper-slide > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
/* 主图：contain 保证上传图完全显示不被裁剪，居中留白由 slide 背景填充 */
/* 注意：必须覆盖全局 img { max-width:100% }，否则小图片无法被 object-fit:contain 放大填充 */
.ad-banner-swiper.scale-height .swiper-slide > a > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: var(--main-radius, 8px);
}
/* 视差图层图片：装饰性覆盖层，使用 cover 填充整层，避免与主图重叠 */
.ad-banner-swiper.scale-height .swiper-slide .slide-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--main-radius, 8px);
}
/* coverflow 3D 必须开启 preserve-3d（Swiper 8 自动加 swiper-container-3d 类） */
.ad-banner-swiper.scale-height .swiper-slide {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
/* parallax 多图层：绝对定位填充，随滚动视差位移/缩放 */
.ad-banner-swiper.scale-height .swiper-slide .slide-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 导航按钮（对齐 demo swiper-button，半透明圆形） */
.ad-banner-swiper.scale-height .swiper-button-prev,
.ad-banner-swiper.scale-height .swiper-button-next {
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  color: #fff;
  transition: opacity .3s, background .3s;
}
.ad-banner-swiper.scale-height .swiper-button-prev::after,
.ad-banner-swiper.scale-height .swiper-button-next::after {
  font-size: 16px;
}
.ad-banner-swiper.scale-height:hover .swiper-button-prev,
.ad-banner-swiper.scale-height:hover .swiper-button-next {
  opacity: .85;
}
.ad-banner-swiper.scale-height .swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 分页指示器（对齐 demo kaoyou：右对齐圆点） */
.ad-banner-swiper.scale-height .swiper-pagination.kaoyou {
  bottom: 10px;
  text-align: right;
  padding-right: 16px;
}
.ad-banner-swiper.scale-height .swiper-pagination.kaoyou .swiper-pagination-bullet {
  width: 4px;
  height: 4px;
  border-radius: 20px;
  background: #fff;
  opacity: .7;
  transition: width .3s, opacity .3s;
}
.ad-banner-swiper.scale-height .swiper-pagination.kaoyou .swiper-pagination-bullet-active {
  width: 12px;
  opacity: 1;
}

/* 移动端响应式 */
@media (max-width: 767px) {
  .ad-banner-swiper.scale-height {
    /* 移动端可保持同比例，如需更矮可在此覆盖 --scale-height */
  }
  .ad-banner-swiper.scale-height .swiper-pagination.kaoyou {
    bottom: 4px;
    padding-right: 10px;
  }
  .ad-banner-swiper.scale-height .swiper-pagination.kaoyou .swiper-pagination-bullet {
    width: 4px;
    height: 4px;
  }
  .ad-banner-swiper.scale-height .swiper-pagination.kaoyou .swiper-pagination-bullet-active {
    width: 12px;
  }
}
@media (max-width: 640px) {
  .ad-banner-swiper.scale-height .swiper-button-prev,
  .ad-banner-swiper.scale-height .swiper-button-next {
    display: none;
  }
}

/* ============ Tab 分区 ============ */
.tab-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.tab-nav .tab-item {
  padding: 8px 18px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--color-text-2); cursor: pointer; background: var(--color-card-2);
}
.tab-nav .tab-item:hover { color: var(--color-primary); }
.tab-nav .tab-item.active { color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); box-shadow: 0 4px 12px rgba(49,105,225,.3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ 文章卡片（瀑布流 / 网格） ============ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--color-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* 桌面端：card-info 不生成盒子，card-body/card-meta 作为 post-card 的直接 flex 子项（保持原纵向布局） */
.card-info { display: contents; }
.card-cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--color-card-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .card-cover img { transform: scale(1.05); }
.cover-sort {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 6px; font-size: 12px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}
.cover-tui {
  position: absolute; right: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; font-size: 12px;
  background: linear-gradient(135deg, #f7b733, #fc4a1a); color: #fff;
}
.card-body { padding: 14px 16px 6px; flex: 1; }
.card-title { font-size: 16px; line-height: 1.5; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--color-text); }
.card-title a:hover { color: var(--color-primary); }
.card-excerpt { font-size: 13px; color: var(--color-text-3); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--color-border);
  font-size: 12px; color: var(--color-text-3);
}
.card-meta .meta-author { display: flex; align-items: center; gap: 6px; }
.card-meta .meta-author img { width: 22px; height: 22px; border-radius: 50%; }
.card-meta i { margin-right: 3px; }
.card-meta .meta-cat { margin-left: auto; color: var(--color-primary); }
.card-meta .meta-cat:hover { text-decoration: underline; }
.card-meta .meta-like { cursor: pointer; }
.card-meta .meta-like:hover { color: var(--color-danger); }
.card-meta .meta-like.liked { color: var(--color-danger); }

/* ============ 横向列表卡片（列表/搜索/分类页） ============ */
.post-list-card {
  display: flex; gap: 16px; background: var(--color-card); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-card); margin-bottom: 16px; transition: transform .25s, box-shadow .25s;
}
.post-list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-list-card .list-cover { position: relative; flex-shrink: 0; width: 200px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; }
.post-list-card .list-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-list-card .list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-list-card .list-title { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-card .list-title a { color: var(--color-text); }
.post-list-card .list-title a:hover { color: var(--color-primary); }
.post-list-card .list-excerpt { font-size: 13px; color: var(--color-text-3); line-height: 1.6; margin-bottom: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-card .list-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--color-text-3); margin-top: 10px; flex-wrap: wrap; }
.post-list-card .list-meta i { margin-right: 3px; }
.post-list-card .list-meta .meta-cat { color: var(--color-primary); }

/* 文章标签 */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.post-tags .tag { font-size: 12px; color: var(--color-text-2); background: var(--color-card-2); padding: 2px 8px; border-radius: 4px; }
.post-tags .tag span { color: var(--color-primary); }
.post-tags .tag:hover { color: var(--color-primary); background: var(--color-card-3); }

/* 列表元信息：作者头像 + 昵称（对齐子比风格） */
.meta-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.meta-aname { margin-left: 4px; }

/* ============ 分类页：分类封面 ============ */
.page-cover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  border-radius: var(--radius-lg); color: #fff; padding: 28px 30px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.page-cover .title-h-left b { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; }
.page-cover .title-h-left b i { font-size: 20px; }
.page-cover .icon-spot {
  font-size: 12px; font-weight: 400; background: rgba(255,255,255,.22);
  border-radius: 20px; padding: 2px 12px; margin-left: 6px;
}
.page-cover .page-desc { margin-top: 10px; font-size: 13px; opacity: .92; line-height: 1.6; }

/* ============ 分类页：筛选栏（分类 pill + 排序 pill） ============ */
.ajax-option {
  background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 8px 16px; margin-bottom: 16px;
}
.cat-filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.cat-filter-row + .cat-filter-row { border-top: 1px dashed var(--color-border); }
.option-dropdown { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--color-text); padding: 4px 0; }
.option-items { display: flex; flex-wrap: wrap; gap: 8px; }
.option-item {
  font-size: 13px; color: var(--color-text-2); background: var(--color-card-2);
  padding: 4px 12px; border-radius: 20px; transition: color .2s, background .2s;
}
.option-item:hover { color: #fff; background: var(--color-primary); }
.option-item.active { color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); }

/* ============ 分页 ============ */
.paging { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.paging a, .paging span {
  min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--color-card); border: 1px solid var(--color-border); color: var(--color-text-2); font-size: 14px;
}
.paging a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.paging .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ============ 侧边栏卡片 ============ */
.side-card { background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 16px; margin-bottom: 20px; }
.side-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--color-primary); }
.side-post { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.side-post-pic { width: 72px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--color-card-2); }
.side-post-pic img { width: 100%; height: 100%; object-fit: cover; }
.side-post-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-post-info .title { font-size: 13px; color: var(--color-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-post-info .title:hover { color: var(--color-primary); }
.side-post-info .time { font-size: 12px; color: var(--color-text-3); }
.side-sort { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 6px; }
.side-sort:hover, .side-sort.active { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); color: #fff; }
.side-sort i { width: 18px; text-align: center; }

/* 作者卡 */
.author-card { text-align: center; padding: 24px 16px; }
.author-card .author-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; border: 3px solid var(--color-card-3); }
.author-card .author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card .author-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.author-card .author-desc { font-size: 13px; color: var(--color-text-3); margin-bottom: 14px; }
.author-card .author-stats { display: flex; justify-content: center; gap: 20px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.author-card .author-stats b { display: block; font-size: 18px; color: var(--color-primary); }
.author-card .author-stats span { font-size: 12px; color: var(--color-text-3); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { font-size: 13px; color: var(--color-text-2); background: var(--color-card-2); padding: 4px 12px; border-radius: 6px; }
.tag-cloud a:hover { color: #fff; background: var(--color-primary); }

/* 文章目录 TOC */
.toc-box { max-height: 60vh; overflow-y: auto; }
.toc-list a { display: block; padding: 5px 8px; border-radius: 6px; font-size: 13px; color: var(--color-text-2); line-height: 1.5; }
.toc-list a:hover { color: var(--color-primary); background: var(--color-card-2); }
.toc-list .toc-level-3 { padding-left: 16px; }

/* ============ 文章详情页 ============ */
.post-page { background: var(--color-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 28px 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--color-text-3); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-text-3); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { color: var(--color-text-3); }
.post-page-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); margin-bottom: 24px; }
.post-page-title { font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.post-page-meta { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--color-text-3); flex-wrap: wrap; }
.post-page-meta i { margin-right: 4px; }
.post-page-meta a { color: var(--color-primary); }
.post-page-meta .meta-author { display: inline-flex; align-items: center; gap: 6px; }
.post-page-meta .meta-author img { width: 20px; height: 20px; border-radius: 50%; }

/* 正文排版 */
.article-body { font-size: 15px; line-height: 1.8; color: var(--color-text); word-wrap: break-word; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2, .article-body h3, .article-body h4, .article-body h5 {
  font-weight: 700; margin: 1.8em 0 .8em; line-height: 1.4;
}
.article-body h2 { font-size: 22px; padding-left: 12px; border-left: 4px solid var(--color-primary); }
.article-body h3 { font-size: 19px; }
.article-body h4 { font-size: 16px; }
.article-body a { color: var(--color-primary); text-decoration: underline; }
.article-body a:hover { color: var(--color-primary-hover); }
.article-body a[data-fancybox] { display: inline-block; text-decoration: none; }
.article-body a[data-fancybox] img { display: block; }
.article-body img { border-radius: 8px; margin: 1rem 0; }
.article-body blockquote {
  margin: 1.5rem 0; padding: 12px 16px; border-left: 4px solid var(--color-primary);
  background: var(--color-card-2); color: var(--color-text-2); border-radius: 0 8px 8px 0; font-style: italic;
}
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.6em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .4em; }
.article-body pre {
  background: #282c34; color: #abb2bf; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; font-size: 13px; line-height: 1.6;
}
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body code {
  background: var(--color-card-2); color: var(--color-danger); padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: Consolas, Monaco, monospace;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th, .article-body td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--color-card-2); font-weight: 600; }
.article-body tr:nth-child(even) { background: var(--color-card-2); }
.article-body hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* 上下篇 */
.entry-navigation { display: flex; gap: 16px; margin-top: 24px; }
.entry-page {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius);
  background: var(--color-card); box-shadow: var(--shadow-card); transition: box-shadow .25s;
}
.entry-page:hover { box-shadow: var(--shadow-hover); }
.entry-page.disabled { opacity: .5; pointer-events: none; }
.entry-page.disabled .entry-page-icon, .entry-page.disabled .entry-page-info { color: var(--color-text-3); }
.entry-page-icon { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entry-page-info { display: flex; flex-direction: column; min-width: 0; }
.entry-page-info em { font-size: 12px; font-style: normal; color: var(--color-text-3); margin-bottom: 2px; }
.entry-page-info b { font-size: 14px; font-weight: 500; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-next { text-align: right; }

/* ============ 列表/分类页头部 ============ */
.page-banner { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); border-radius: var(--radius-lg); padding: 40px 24px; color: #fff; margin-bottom: 24px; }
.page-banner h1 { font-size: 24px; margin-bottom: 8px; }
.page-banner p { font-size: 14px; opacity: .9; }

/* ============ 专题页 ============ */
.topic-banner { position: relative; border-radius: var(--radius-lg); background-size: cover; background-position: center; margin-bottom: 24px; overflow: hidden; }
.topic-banner-mask { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.65)); padding: 60px 24px; color: #fff; }
.topic-banner-mask h1 { font-size: 26px; margin-bottom: 8px; }
.topic-banner-mask p { font-size: 14px; opacity: .9; }
.topic-nav-list { list-style: none; margin: 0; padding: 0; }
.topic-nav-list li { line-height: 1.8; }
.topic-nav-list a { color: var(--color-text); font-size: 14px; }
.topic-nav-list a:hover, .topic-nav-list a.active { color: var(--color-primary); font-weight: 600; }
.empty-tip { color: var(--color-muted); padding: 20px 0; text-align: center; font-size: 14px; }

/* ============ 首页专题入口 ============ */
.topics-strip { margin-bottom: 20px; }
.topics-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.topic-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-card); border: 1px solid var(--color-border); transition: transform .2s, box-shadow .2s; }
.topic-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.topic-item-cover { height: 90px; overflow: hidden; }
.topic-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.topic-item-info { padding: 8px 10px; }
.topic-item-info b { display: block; font-size: 14px; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-item-info span { font-size: 12px; color: var(--color-muted); }
@media (max-width: 640px) {
  .topics-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============ 页脚（多板块） ============ */
/* ============ 子比式深色页脚（三栏布局，对齐 demo.zibll.com） ============ */
.blog-footer { background: #22292d; color: #e5e5e5; margin-top: 20px; font-size: 13px; line-height: 1.7; }
/* 页脚容器：全宽 + 内置最大宽度居中 */
.container-fluid { width: 100%; }
.container-footer { max-width: 1480px; margin: 0 auto; padding: 30px 0; }
/* 三栏 flex 布局：横向居中，列间距 20px */
.footer-contact-box { display: flex; align-items: center; gap: 20px; padding: 0; margin: 0; }
.footer-contact-box > li { flex: 1; padding: 0 5px; margin: 5px 15px; min-width: 0; }
/* Logo 列 */
.footer-logo img { height: 40px; }
/* 站点描述 / 版权小字 */
.footer-muted { color: #e5e5e5; font-size: 11.7px; line-height: 1.7; }
.footer-muted a { color: #e5e5e5; }
.footer-muted a:hover { color: #fff; }
/* 快速链接 */
.fcode-links { margin: 0 0 10px; }
.fcode-links a { color: #e5e5e5; font-size: 13px; margin: 0 10px; text-decoration: none; }
.fcode-links a:hover { color: #fff; }
/* 联系图标（圆形） */
.footer-contact { margin: 10px 0 0; }
.footer-contact a {
  display: inline-block; width: 35px; height: 35px; margin: 5px; border-radius: 100%;
  background: rgba(50,50,50,.06); color: #e5e5e5; font-size: 20px; line-height: 35px; text-align: center;
}
.footer-contact a:hover { color: #fff; background: rgba(255,255,255,.12); }
/* 二维码区 */
.footer-miniimg { display: flex; align-items: flex-start; gap: 6px; }
.footer-miniimg img { width: 90px; height: auto; margin: 0 6px; }
.footer-miniimg .text-center { margin-top: 6px; }
/* 统计代码 */
.footer-tj { color: #8b949c; font-size: 12px; text-align: center; padding-bottom: 10px; }
/* 底部固定菜单栏占位（与页脚同色，为固定栏让出空间；仅移动端需要） */
.footer-tabbar-placeholder { display: none; height: 49px; background: #22292d; }

/* ============ 移动端底部固定 Tab 栏（子比风格，默认隐藏，仅移动端显示） ============ */
.footer-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; height: 49px;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(5) blur(20px); -webkit-backdrop-filter: saturate(5) blur(20px);
  box-shadow: rgba(116,116,116,.08) 0 -4px 5px 0; border-top: 1px solid rgba(0,0,0,.04);
  transition: transform .3s ease;
}
[data-theme="dark"] .footer-tabbar { background: rgba(29,30,32,.8); }
.footer-tabbar.scroll-down-hide { transform: translateY(100%); }
.footer-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 10px; color: var(--color-text-2); text-decoration: none;
}
.footer-tabbar a i { font-size: 20px; line-height: 1; }
.footer-tabbar a.active, .footer-tabbar a:hover { color: var(--color-primary); }

/* ============ 返回顶部 ============ */
.back-top {
  position: fixed; right: 24px; bottom: 40px; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2)); color: #fff; font-size: 18px; box-shadow: var(--shadow-hover);
  display: none; align-items: center; justify-content: center; z-index: 99;
}
.back-top.show { display: flex; }
.back-top:hover { opacity: .9; }

/* ============ 移动端抽屉菜单 ============ */
.mobile-nav {
  position: fixed; top: 0; left: -280px; width: 280px; height: 100%; z-index: 400; background: var(--color-card);
  transition: left .3s ease; box-shadow: var(--shadow-hover); overflow-y: auto;
}
.mobile-nav.open { left: 0; }
.mobile-mask { position: fixed; inset: 0; z-index: 399; background: rgba(0,0,0,.4); display: none; }
.mobile-mask.show { display: block; }
.mobile-nav .mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--color-border); }
.mobile-nav .mobile-nav-head .logo { font-size: 18px; font-weight: 700; }
.mobile-nav ul li a { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-size: 15px; color: var(--color-text-2); border-bottom: 1px solid var(--color-border); }
.mobile-nav ul li a:hover { color: var(--color-primary); background: var(--color-card-2); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { flex-direction: column; }
  .blog-side { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .blog-side .side-card { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .blog-nav { display: none; }
  /* 移动端：菜单按钮靠左、工具靠右，logo 绝对水平居中（对齐子比移动端头部） */
  .blog-header-inner { position: relative; justify-content: space-between; }
  .blog-logo { position: absolute; left: 50%; transform: translateX(-50%); max-width: 45%; justify-content: center; }
  .blog-header-tools { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .vip-btn { display: none; }
  .user-entry .login-btn span { display: none; }
  .user-entry .login-btn { padding: 0 12px; }
  .blog-header-inner { gap: 10px; }
  .blog-header-tools { gap: 6px; }
  .blog-header-tools .user-entry .avatar { display: none; }
  .blog-side { grid-template-columns: 1fr; }
  /* 移动端隐藏 Logo 列 */
  .hidden-xs { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 10px; }
  .blog-header-inner { height: 52px; }
  .blog-logo { font-size: 17px; }
  .blog-logo img { height: 28px; }
  .blog-header-tools .tool-search, .blog-header-tools .tool-dark { width: 32px; height: 32px; font-size: 14px; }
  /* 移动端：子比迷你水平卡片（左缩略图 + 右侧标题/meta） */
  .post-grid { grid-template-columns: 1fr; gap: 10px; }
  .post-card { flex-direction: row; border-radius: 10px; }
  .card-cover { width: 110px; aspect-ratio: 4/3; flex-shrink: 0; }
  .card-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .card-body { padding: 12px 12px 2px; }
  .card-title { font-size: 14px; margin-bottom: 4px; line-height: 1.45; }
  .card-excerpt { display: none; }
  .card-meta { padding: 6px 12px 10px; border-top: none; gap: 10px; font-size: 11px; }
  .card-meta .meta-date, .card-meta .meta-like { display: none; }
  .blog-side { display: block; }
  .blog-main > .side-card { padding: 8px 5px 14px; } /* Tab 区通栏，对齐子比迷你卡片宽度 */
  .blog-layout { padding: 16px 0 32px; gap: 16px; }
  .post-page { padding: 16px 14px; border-radius: 12px; }
  .post-page-title { font-size: 20px; }
  .post-page-meta { gap: 12px; font-size: 12px; }
  .article-body { font-size: 15px; line-height: 1.75; }
  .article-body img { border-radius: 8px; }
  .entry-navigation { flex-direction: column; }
  .post-list-card { flex-direction: column; }
  .post-list-card .list-cover { width: 100%; aspect-ratio: 16/9; }
  /* 分类页移动端：封面内边距收缩、筛选栏标签独立一行 */
  .page-cover { padding: 20px 16px; }
  .page-cover .title-h-left b { font-size: 18px; }
  .ajax-option { padding: 6px 12px; }
  .cat-filter-row { flex-direction: column; gap: 4px; }
  .option-items { width: 100%; }
  /* 移动端页脚：三栏纵向排列，版权/链接居中，二维码居中 */
  .container-footer { padding: 20px 0; }
  .footer-contact-box { flex-direction: column; align-items: center; gap: 16px; }
  .footer-contact-box > li { flex: none; margin: 5px 0; padding: 0; text-align: center; }
  .fcode-links { text-align: center; }
  .footer-miniimg { justify-content: center; }
  .footer-miniimg img { width: 80px; }
  /* 底部固定 Tab 栏（仅移动端显示） */
  .footer-tabbar { display: flex; }
  .footer-tabbar-placeholder { display: block; }
  .back-top { bottom: 60px; } /* 上移，避开底部固定菜单栏 */
  .notice-bar-inner { font-size: 12px; }
  .page-banner { padding: 28px 18px; }
  .page-banner h1 { font-size: 20px; }
}

/* ============ 随机壁纸（全站背景） ============ */
body.wallpaper-on {
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}
/* 壁纸半透明遮罩，保证前景可读（z-index:-1 垫在壁纸之上、内容之下，不破坏 sticky/fixed 定位） */
body.wallpaper-on::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255,255,255,.55);
}
[data-theme="dark"] body.wallpaper-on::before { background: rgba(10,10,12,.62); }