/* ==========================================================
   站点自定义样式 · 完整版
   ----------------------------------------------------------
   文件位置：/wp-content/uploads/ysw-custom.css
   加载方式：mu-plugins/ysw-css.php 在 wp_head 输出
   01  下载卡 · 配色变量
   02  下载卡 · 「下载」角标
   03  下载卡 · 顶部价格头
   04  下载卡 · 会员价格区布局
   05  下载卡 · 会员名 + 图标
   06  下载卡 · 价格 / 积分 / 折扣
   07  下载卡 · 主按钮
   08  下载卡 · 解锁人数
   09  下载卡 · 次级按钮
   10  下载卡 · 信息列表
   11  下载卡 · 底部提示
   12  下载卡 · 圆角兜底
   13  列表卡片 · 外观
   14  列表卡片 · 信息行
   15  列表卡片 · 价格
   16  列表卡片 · 角标（VIP / 置顶 / 免费）
   17  列表卡片 · 高度修复
   18  相关文章 · 窄栏适配
   19  标签云页
   20  侧边栏标签云
   21  彩虹流动动画
   22  最新文章 · 视觉增强
   23  最新推荐 · 区块头部
   24  页脚版权
   25  文章页 Tab 导航
   ========================================================== */


/* ==========================================================
   01  下载卡 · 配色变量
   ========================================================== */

.ri-down-warp{

  --ink:#1f2937;
  --sub:#6b7280;
  --muted:#9ca3af;
  --line:#e5e7eb;
  --line-2:#f3f4f6;
  --bg:#f9fafb;
  --red:#ef4444;

  --ico-gem:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%202l9%207.2L12%2022%203%209.2%2012%202z'%2F%3E%3C%2Fsvg%3E");
  --ico-crown:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M3%207.5l4.6%203L12%203.2l4.4%207.3%204.6-3-1.9%2011.1H4.9L3%207.5z'%2F%3E%3C%2Fsvg%3E");
}


/* ==========================================================
   02  下载卡 · 「下载」角标
   ========================================================== */

.ri-down-warp .down-msg{

  background:var(--ink);
  color:#fff;
  border-radius:2px;
  font-size:11px;
  font-weight:400;
  letter-spacing:0;
}


/* ==========================================================
   03  下载卡 · 顶部价格头
   ========================================================== */

.ri-down-warp .down-buy-warp .prices-desc{

  background:var(--ink);
  border-radius:6px 6px 0 0;
  padding:14px 14px 12px;
  box-shadow:none;
}

.ri-down-warp .down-buy-warp .prices-desc:after{
  display:none !important;
}

.ri-down-warp .down-buy-warp .prices-desc .prices-default{

  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:5px;
  font-size:12px;
  color:#9ca3af;
}

.ri-down-warp .down-buy-warp .prices-desc .prices-default > i{
  color:#9ca3af;
  font-size:13px;
}

.ri-down-warp .down-buy-warp .prices-desc .prices-default > span{

  font-size:28px;
  font-weight:600;
  letter-spacing:-.5px;
  color:#fff;
  font-variant-numeric:tabular-nums;
}


/* ==========================================================
   04  下载卡 · 会员价格区布局
   ========================================================== */

.ri-down-warp .down-buy-warp .buy-box{

  margin:0 0 10px !important;
  padding:0;
  border:0;
  background:transparent;
}

.ri-down-warp .down-buy-warp .buy-box .prices-rate{

  background:var(--bg);
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 6px 6px;
  padding:4px 0 2px;
}

.ri-down-warp .down-buy-warp .buy-box .prices-ul{
  padding:0 4px;
}

.ri-down-warp .down-buy-warp .buy-box .price-item{

  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:8px 0 10px;
  text-align:center;
}

.ri-down-warp .down-buy-warp .buy-box .price-item + .price-item::before{

  content:"";
  position:absolute;
  left:0;
  top:22%;
  height:56%;
  width:1px;
  background:var(--line);
}


/* ==========================================================
   05  下载卡 · 会员名 + 图标
   ========================================================== */

.ri-down-warp .down-buy-warp .buy-box .price-item .vip-rete-name{

  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--sub);
  font-size:12px;
  font-weight:500;
  line-height:1;
  text-decoration:none;
  letter-spacing:0;
}

.ri-down-warp .down-buy-warp .buy-box .price-item .vip-rete-name i{
  display:none;
}

.ri-down-warp .down-buy-warp .buy-box .price-item .vip-rete-name::before{

  content:"";
  flex:none;
  width:12px;
  height:12px;
  background:currentColor;
  -webkit-mask:var(--ico-gem) center / contain no-repeat;
          mask:var(--ico-gem) center / contain no-repeat;
}

.ri-down-warp .down-buy-warp .buy-box .price-item.boosvip .vip-rete-name::before{

  -webkit-mask:var(--ico-crown) center / contain no-repeat;
          mask:var(--ico-crown) center / contain no-repeat;
}


/* ==========================================================
   06  下载卡 · 价格 / 积分 / 折扣
   ========================================================== */

.ri-down-warp .down-buy-warp .buy-box .price-item > span{

  display:inline-flex;
  align-items:baseline;
  justify-content:center;
  gap:1px;
  color:var(--red);
  font-size:18px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  line-height:1;
}

.ri-down-warp .down-buy-warp .buy-box .price-item > span .coin-name{

  font-style:normal;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin:0 1px;
}

.ri-down-warp .down-buy-warp .buy-box .price-item > span > sup{

  display:inline-block;
  margin-left:5px;
  font-size:10px;
  font-weight:500;
  line-height:1.6;
  color:var(--red);
  background:#fff;
  border:1px solid #fecaca;
  border-radius:2px;
  padding:0 4px;
  vertical-align:baseline;
}


/* ==========================================================
   07  下载卡 · 主按钮
   ========================================================== */

.ri-down-warp .down-buy-warp .buy-btns{
  margin:0 0 10px;
}

.ri-down-warp .down-buy-warp .buy-btns .btn{

  border-radius:4px !important;
  padding:10px 0;
  font-size:14px;
  font-weight:500;
  letter-spacing:0;
  box-shadow:none !important;
}

.ri-down-warp .down-buy-warp .buy-btns .btn-danger{
  background:var(--red);
  border:0;
}

.ri-down-warp .down-buy-warp .buy-btns .login-btn{
  border:0;
}


/* ==========================================================
   08  下载卡 · 解锁人数
   ========================================================== */

.ri-down-warp .down-buy-warp .buy-count{
  margin:0 0 14px;
  font-size:12px;
  color:var(--muted);
}

.ri-down-warp .down-buy-warp .buy-count span{
  color:var(--ink);
  font-weight:600;
  font-size:13px;
  margin:0 1px;
}


/* ==========================================================
   09  下载卡 · 次级按钮
   ========================================================== */

.ri-down-warp .down-buy-info .btn{

  border-radius:4px !important;
  padding:9px 0;
  font-size:13px;
  font-weight:400;
  box-shadow:none !important;
  transform:none !important;
}

.ri-down-warp .down-buy-info .btn-secondary-soft{
  background:#fff;
  border:1px solid var(--line);
  color:#374151;
}


/* ==========================================================
   10  下载卡 · 信息列表
   ========================================================== */

.ri-down-warp .down-buy-info .list-group{
  margin-top:14px !important;
  border-top:1px solid var(--line-2);
}

.ri-down-warp .down-buy-info .list-group-item{

  background:transparent !important;
  border:0;
  border-bottom:1px solid var(--line-2);
  padding:10px 0;
  font-size:12px;
  color:var(--muted) !important;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.ri-down-warp .down-buy-info .list-group-item:last-child{
  border-bottom:0;
}

.ri-down-warp .down-buy-info .list-group-item span:last-child{
  color:var(--ink);
  font-weight:500;
  text-align:right;
  word-break:break-all;
}


/* ==========================================================
   11  下载卡 · 底部提示
   ========================================================== */

.ri-down-warp .down-buy-info p.text-muted{
  font-size:11px;
  color:#d1d5db !important;
  padding-top:10px;
}


/* ==========================================================
   12  下载卡 · 圆角兜底
   ========================================================== */

.ri-down-warp .rounded-pill{
  border-radius:4px !important;
}


/* ==========================================================
   13  列表卡片 · 外观
   ========================================================== */

.post-item.item-grid{

  position:relative;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e8ecf2;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}

.post-item .entry-media{
  border-bottom:1px solid #f4f6f8;
  overflow:hidden;
}


/* ==========================================================
   14  列表卡片 · 信息行
   ----------------------------------------------------------
   允许换行，并压过主题的 :last-child{flex:1}，避免右侧被裁
   ========================================================== */

.post-item.item-grid .entry-wrapper{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.post-item.item-grid .entry-meta{

  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center;
  gap:4px 10px;
  white-space:normal !important;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid #f4f6f8;
  letter-spacing:0;
}

.post-item.item-grid .entry-meta > span{
  flex:0 1 auto !important;
  margin-right:0 !important;
  min-width:0;
  white-space:nowrap;
}

.post-item.item-grid .entry-meta > span:last-child{
  flex:0 1 auto !important;
  text-align:left;
}


/* ==========================================================
   15  列表卡片 · 价格
   ========================================================== */

.post-item .entry-meta > span.meta-price{

  margin-left:auto !important;
  margin-right:0 !important;
  padding-left:10px;
  border-left:1px solid #eef0f3;
  display:inline-flex !important;
  align-items:center;
  gap:4px;
  flex:0 0 auto !important;
  color:#ef4444 !important;
  font-size:13px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:0;
  white-space:nowrap;
}

.post-item .meta-price i{
  color:#ef4444;
  font-size:11px;
  opacity:1;
}


/* ==========================================================
   16  列表卡片 · 角标（VIP / 置顶 / 免费）
   ========================================================== */

.post-item .tips-badge{

  top:8px !important;
  left:8px !important;
  margin:0 !important;
  display:flex;
  gap:6px;
}

.post-item .tips-badge .badge{

  padding:4px 8px;
  border-radius:3px;
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.8px;
  color:#fbbf24 !important;
  background:#111827 !important;
  border:0;
  opacity:1 !important;
  box-shadow:none;
}

.post-item .tips-badge .badge.bg-dark{
  background:#f59e0b !important;
  color:#fff !important;
}

.post-item .tips-badge .badge.badge-free{
  background:#10b981 !important;
  color:#fff !important;
  letter-spacing:.5px;
}

.post-item .entry-meta > span.meta-price.is-free{
  color:#10b981 !important;
  border-left-color:#e7f6f0;
}

.post-item .meta-price.is-free i{
  color:#10b981 !important;
}

.post-item .meta-price.is-free{
  white-space:nowrap;
}


/* ==========================================================
   17  列表卡片 · 高度修复
   ========================================================== */

.post-item.item-grid{
  height:auto;
  min-height:0;
}

.archive .row > .col{
  display:flex;
}

.archive .post-item.item-grid{
  height:100%;
}


/* ==========================================================
   18  相关文章 · 窄栏适配
   ----------------------------------------------------------
   每张约 200px，隐藏点赞/收藏，给价格腾空间
   ========================================================== */

.related-posts .post-item.item-grid .meta-likes,
.related-posts .post-item.item-grid .meta-fav{
  display:none !important;
}

.related-posts .post-item.item-grid .entry-meta{
  gap:4px 8px;
}

.related-posts .post-item.item-grid .entry-meta > span.meta-price{
  padding-left:8px;
}


/* ==========================================================
   19  标签云页
   ========================================================== */

/* 首屏 */
body:has(.tags-page-warp) .archive-hero{
  background:#17181a;
}
body:has(.tags-page-warp) .archive-hero-bg{
  opacity:.22;
}
body:has(.tags-page-warp) .archive-title{
  color:#fff;
  font-size:30px;
  font-weight:700;
  letter-spacing:2px;
}
body:has(.tags-page-warp) .archive-title i{
  color:#d6261e;
}

/* 排序按钮 */
.section-title:has(+ .tags-page-warp) .btn{
  background:#fff !important;
  border:1px solid #e8e8e8 !important;
  color:#6b6b6b !important;
  font-size:13px !important;
  padding:7px 20px !important;
  border-radius:999px !important;
  box-shadow:none !important;
  transition:all .18s;
}
.section-title:has(+ .tags-page-warp) .btn:hover,
.section-title:has(+ .tags-page-warp) .btn.active{
  border-color:#d6261e !important;
  color:#d6261e !important;
  background:rgba(214,38,30,.05) !important;
}

/* 容器改流式 */
.tags-page-warp.row{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  margin:0 !important;
  --bs-gutter-x:0 !important;
  --bs-gutter-y:0 !important;
}
.tags-page-warp > .col{
  width:auto !important;
  max-width:100% !important;
  flex:0 0 auto !important;
  padding:0 !important;
  margin:0 !important;
}

/* 彩虹色板 · 8 色循环 */
.tags-page-warp > .col:nth-child(8n+1) .tag-item{ --c:#e53935; }
.tags-page-warp > .col:nth-child(8n+2) .tag-item{ --c:#fb8c00; }
.tags-page-warp > .col:nth-child(8n+3) .tag-item{ --c:#f9a825; }
.tags-page-warp > .col:nth-child(8n+4) .tag-item{ --c:#43a047; }
.tags-page-warp > .col:nth-child(8n+5) .tag-item{ --c:#00acc1; }
.tags-page-warp > .col:nth-child(8n+6) .tag-item{ --c:#1e88e5; }
.tags-page-warp > .col:nth-child(8n+7) .tag-item{ --c:#8e24aa; }
.tags-page-warp > .col:nth-child(8n+8) .tag-item{ --c:#d81b60; }

/* 胶囊 */
.tags-page-warp .tag-item{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  height:auto !important;
  padding:9px 16px !important;
  background:#fff !important;
  border:1px solid #e8e8e8 !important;
  border-radius:999px !important;
  box-shadow:none !important;
  transform:none !important;
  transition:all .18s ease !important;
}
.tags-page-warp .tag-item:hover{
  background:var(--c,#d6261e) !important;
  border-color:var(--c,#d6261e) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.12) !important;
  transform:translateY(-2px) !important;
}

/* 隐藏首字方块 */
.tags-page-warp .tag-item .tag-substr{
  display:none !important;
}

/* 内部横排 */
.tags-page-warp .tag-item > .d-flex{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
}
.tags-page-warp .tag-item .ms-3{
  margin-left:0 !important;
  display:flex !important;
  align-items:baseline !important;
  gap:7px !important;
}

/* 名称 */
.tags-page-warp .tag-item .text-dark{
  font-size:14px !important;
  font-weight:600 !important;
  color:var(--c,#333) !important;
  white-space:nowrap !important;
  text-decoration:none !important;
}

/* 数量 */
.tags-page-warp .tag-item p{
  margin:0 !important;
  font-size:0 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.tags-page-warp .tag-item p .b{
  font-size:12px !important;
  font-weight:600 !important;
  color:var(--c,#999) !important;
  opacity:.75;
}
.tags-page-warp .tag-item p .b::after{
  content:"篇";
  font-size:11px;
  font-weight:400;
  color:#a8a8a8;
  margin-left:1px;
}

/* 悬停反白 */
.tags-page-warp .tag-item:hover .text-dark{
  color:#fff !important;
}
.tags-page-warp .tag-item:hover p .b{
  color:rgba(255,255,255,.85) !important;
  opacity:1;
}
.tags-page-warp .tag-item:hover p .b::after{
  color:rgba(255,255,255,.7) !important;
}


/* ==========================================================
   20  侧边栏标签云
   ========================================================== */

.widget_tag_cloud .tagcloud{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}

/* 彩虹色板 · 8 色循环 */
.widget_tag_cloud .tagcloud a:nth-child(8n+1){ --c:#e53935; }
.widget_tag_cloud .tagcloud a:nth-child(8n+2){ --c:#fb8c00; }
.widget_tag_cloud .tagcloud a:nth-child(8n+3){ --c:#f9a825; }
.widget_tag_cloud .tagcloud a:nth-child(8n+4){ --c:#43a047; }
.widget_tag_cloud .tagcloud a:nth-child(8n+5){ --c:#00acc1; }
.widget_tag_cloud .tagcloud a:nth-child(8n+6){ --c:#1e88e5; }
.widget_tag_cloud .tagcloud a:nth-child(8n+7){ --c:#8e24aa; }
.widget_tag_cloud .tagcloud a:nth-child(8n+8){ --c:#d81b60; }

.widget_tag_cloud .tagcloud a{
  display:inline-flex !important;
  align-items:center;
  gap:4px;
  padding:6px 12px !important;
  font-size:13px !important;
  line-height:1.2 !important;
  color:var(--c,#4b5563) !important;
  background-color:#fff !important;
  border:1px solid #eceef2 !important;
  border-radius:6px !important;
  text-decoration:none !important;
  transition:all .18s;
}
.widget_tag_cloud .tagcloud a:hover{
  color:#fff !important;
  background-color:var(--c,#d6261e) !important;
  border-color:var(--c,#d6261e) !important;
}

.widget_tag_cloud .tagcloud a .tag-link-count{
  font-size:11px !important;
  color:var(--c,#9ca3af) !important;
  opacity:.6;
}
.widget_tag_cloud .tagcloud a:hover .tag-link-count{
  color:rgba(255,255,255,.8) !important;
  opacity:1;
}

/* 标题下划线：蓝 → 红 */
.sidebar .widget_tag_cloud .widget-title::after{
  background:linear-gradient(90deg,#d6261e,rgba(214,38,30,.2)) !important;
}


/* ==========================================================
   21  彩虹流动动画
   ========================================================== */

@keyframes ysw-rainbow-flow{
  0%  { background-position:0% 50%; }
  100%{ background-position:200% 50%; }
}

/* 只在浏览器支持 background-clip:text 时才把文字设透明
   不支持的浏览器保留原色，不会出现文字消失 */
@supports ((-webkit-background-clip:text) or (background-clip:text)){

  /* 标签云页 · 名称 */
  .tags-page-warp .tag-item .text-dark{
    background-image:linear-gradient(90deg,#e53935,#fb8c00,#f9a825,#43a047,#00acc1,#1e88e5,#8e24aa,#d81b60,#e53935);
    background-size:200% auto;
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent !important;
    animation:ysw-rainbow-flow 5s linear infinite;
  }
  .tags-page-warp .tag-item:hover .text-dark{
    background-image:none;
    -webkit-text-fill-color:#fff;
    color:#fff !important;
    animation:none;
  }

  /* 侧边栏 */
  .widget_tag_cloud .tagcloud a{
    background-image:linear-gradient(90deg,#e53935,#fb8c00,#f9a825,#43a047,#00acc1,#1e88e5,#8e24aa,#d81b60,#e53935);
    background-size:200% auto;
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    color:transparent !important;
    animation:ysw-rainbow-flow 5s linear infinite;
  }
  .widget_tag_cloud .tagcloud a:hover{
    background-image:none;
    background-color:var(--c,#d6261e) !important;
    -webkit-text-fill-color:#fff;
    color:#fff !important;
    animation:none;
  }
  /* 侧边栏数字跟着一起流动 */
  .widget_tag_cloud .tagcloud a .tag-link-count{
    -webkit-text-fill-color:transparent;
    color:transparent !important;
    opacity:.75;
  }
  .widget_tag_cloud .tagcloud a:hover .tag-link-count{
    -webkit-text-fill-color:#fff;
    color:#fff !important;
  }
}


/* ==========================================================
   22  最新文章 · 视觉增强
   ----------------------------------------------------------
   只加 transform / box-shadow / transition / 背景 / 圆角 / 字色
   不动 display、flex、width、margin，13~18 区的布局修复不受影响
   ========================================================== */

/* 卡片：悬停上浮 + 阴影 */
.post-item.item-grid{
  transition:transform .28s cubic-bezier(.2,.7,.3,1),
             box-shadow .28s ease,
             border-color .28s ease;
}

.post-item.item-grid:hover{
  transform:translateY(-4px);
  border-color:#dbe3ee;
  box-shadow:0 14px 30px -12px rgba(16,24,40,.22),
             0 4px 10px -6px rgba(16,24,40,.10);
}

/* 缩略图：悬停放大 + 底部渐变 */
.post-item .entry-media{
  position:relative;
}

.post-item .entry-media .media-img{
  transition:transform .55s cubic-bezier(.2,.7,.3,1);
  background-color:#f3f5f8;
}

.post-item.item-grid:hover .entry-media .media-img{
  transform:scale(1.05);
}

.post-item .entry-media::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:44%;
  background:linear-gradient(to top,rgba(12,18,28,.34),rgba(12,18,28,0));
  opacity:0;
  transition:opacity .32s ease;
  pointer-events:none;
}

.post-item.item-grid:hover .entry-media::after{
  opacity:1;
}

/* 分类标签：去圆点 + 按分类固定配色 */
.post-item .entry-cat-dot{
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
}

.post-item .entry-cat-dot > a{
  display:inline-flex !important;
  align-items:center;
  margin:0 !important;
  padding:2px 9px;
  border-radius:4px;
  background:#f2f5f9;
  color:#5b6472 !important;
  font-size:11px;
  line-height:1.7;
  transition:filter .2s ease,opacity .2s ease;
}

/* 干掉主题的彩色圆点 */
.post-item .entry-cat-dot > a::before{
  display:none !important;
  content:none !important;
}

/* 多个分类之间交给 gap，去掉主题的 margin-left */
.post-item .entry-cat-dot > a + a{
  margin-left:0 !important;
}

/* ---- 按分类固定配色 ---- */
.post-item .entry-cat-dot > a[href*="/category/qcym"]{
  background:#fee2e2; color:#b91c1c !important;
}
.post-item .entry-cat-dot > a[href*="/category/mfzy"]{
  background:#dcfce7; color:#15803d !important;
}
.post-item .entry-cat-dot > a[href*="/category/wzmb"]{
  background:#dbeafe; color:#1d4ed8 !important;
}
.post-item .entry-cat-dot > a[href*="/category/kfgj"]{
  background:#f3e8ff; color:#7e22ce !important;
}
.post-item .entry-cat-dot > a[href*="/category/spjjc"]{
  background:#ffedd5; color:#c2410c !important;
}
.post-item .entry-cat-dot > a[href*="/category/wzjc"]{
  background:#e0f2fe; color:#0369a1 !important;
}
.post-item .entry-cat-dot > a[href*="/category/yyzy"]{
  background:#fce7f3; color:#be185d !important;
}
.post-item .entry-cat-dot > a[href*="/category/djjjc"]{
  background:#fef3c7; color:#a16207 !important;
}
.post-item .entry-cat-dot > a[href*="/category/series"]{
  background:#ecfdf5; color:#047857 !important;
}

/* 卡片悬停时标签整体压暗一点点 */
.post-item.item-grid:hover .entry-cat-dot > a{
  filter:brightness(.96);
}

/* 标题：两行截断 + 悬停变色 */
.post-item .entry-title{
  margin-bottom:6px;
}

.post-item .entry-title a{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  transition:color .2s ease;
}

.post-item.item-grid:hover .entry-title a{
  color:#2563eb !important;
}

/* 描述：两行截断 */
.post-item .entry-desc{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

/* 角标：渐变 + 投影 */
.post-item .tips-badge .badge{
  background:linear-gradient(135deg,#111827,#3b4453) !important;
  box-shadow:0 2px 8px rgba(17,24,39,.3);
}

.post-item .tips-badge .badge.bg-warning{
  background:linear-gradient(135deg,#f59e0b,#d97706) !important;
  color:#fff !important;
}

/* 价格：字号提一档 */
.post-item .entry-meta > span.meta-price{
  font-size:14px;
}

/* 系统开启「减少动效」时全部关闭 */
@media (prefers-reduced-motion: reduce){
  .post-item.item-grid,
  .post-item .entry-media .media-img,
  .post-item .entry-title a,
  .post-item .entry-cat-dot a{
    transition:none !important;
  }
  .post-item.item-grid:hover{
    transform:none;
    box-shadow:0 1px 2px rgba(16,24,40,.03);
  }
  .post-item.item-grid:hover .entry-media .media-img{
    transform:none;
  }
}


/* ==========================================================
   23  最新推荐 · 区块头部
   ----------------------------------------------------------
   只作用于 .home-last-post，不影响其他模块的 .section-title
   ========================================================== */

/* 标题 */
.home-last-post .section-title h3{
  position:relative;
  display:inline-block;
  padding-bottom:12px;
  margin-bottom:2px;
  font-size:26px;
  font-weight:800;
  letter-spacing:1px;
  color:#1b2230;
}

/* 标题下的短渐变线 */
.home-last-post .section-title h3::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:40px;
  height:3px;
  margin-left:-20px;
  border-radius:2px;
  background:linear-gradient(90deg,#d6261e,#f59e0b);
}

/* 副标题 */
.home-last-post .section-title p{
  margin-top:6px;
  font-size:13px;
  letter-spacing:.2px;
  color:#8b93a1 !important;
}

/* 分类切换按钮 · 直角 */
.home-last-post .section-cat-navbtn .btn{
  border-radius:3px !important;
  padding:7px 20px !important;
  font-size:13px !important;
  font-weight:500 !important;
  line-height:1.4 !important;
  letter-spacing:.6px !important;
  transition:background .18s ease,border-color .18s ease,
             color .18s ease,box-shadow .18s ease !important;
}

/* 当前选中：实心红 + 底部压边 */
.home-last-post .section-cat-navbtn .btn.active{
  background:#d6261e !important;
  border:1px solid #d6261e !important;
  color:#fff !important;
  box-shadow:0 2px 0 0 #a81c16 !important;
}

/* 未选中：白底细框 */
.home-last-post .section-cat-navbtn .btn:not(.active){
  background:#fff !important;
  border:1px solid #dfe4ec !important;
  color:#5f6877 !important;
  box-shadow:none !important;
}

.home-last-post .section-cat-navbtn .btn:not(.active):hover{
  border-color:#d6261e !important;
  color:#d6261e !important;
  background:#fff8f7 !important;
  box-shadow:0 2px 0 0 #f0dedb !important;
}

/* 标题：深灰渐变字（不支持 background-clip 时自动保留原色） */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .home-last-post .section-title h3{
    background-image:linear-gradient(90deg,#151b26,#48536a);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
  }
}

@media (prefers-reduced-motion: reduce){
  .home-last-post .section-cat-navbtn .btn{
    transition:none !important;
  }
}

/* ==========================================================
   24  页脚版权
   ========================================================== */

.ysw-copy{
  font-size:14.5px !important;
  line-height:2.1;
  color:#8a93a1;
  letter-spacing:.3px;
}

.ysw-copy a{
  color:#b0b7c3;
  text-decoration:none;
  transition:color .2s ease;
}

.ysw-copy a:hover{
  color:#fff;
}

.ysw-copy .sep{
  margin:0 9px;
  color:#4b5563;
}

@media (max-width: 767px){
  .ysw-copy{
    font-size:13.5px !important;
    line-height:1.95;
  }
  .ysw-copy .sep{
    margin:0 6px;
  }
}



/* ==========================================================
   25  文章页 Tab 导航
   ----------------------------------------------------------
   去掉 24px 胶囊圆角，改成方角；悬停渐变层同步
   ========================================================== */

.single-content-nav .nav-item .nav-link{
  border-radius:3px !important;
  padding:.5rem 1rem !important;
}

.single-content-nav .nav-item .nav-link::before{
  border-radius:3px !important;
}

/* 选中态去掉渐变，改纯色，和方角更搭 */
.single-content-nav .nav-item .nav-link.active{
  background:#3b6ff5 !important;
  box-shadow:0 2px 0 0 #2f59c4 !important;
}

.single-content-nav .nav-item .nav-link.active::before{
  opacity:0 !important;
}

/* 文章底部版权块：去掉蓝色边框和背景 */
.entry-copyright{
  background:none !important;
  border-left:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  font-size:inherit !important;
  color:inherit !important;
  line-height:inherit !important;
}

/* 那个 ⓘ 图标也藏掉 */
.entry-copyright .fa-info-circle{
  display:none !important;
}