.post-image {
     flex: 0 0 10.8%;
     max-width: 10.8%;
     padding-left: 3px;
     position: relative;
     padding-right: 3px;
     padding-top: 20px;
     display: inline-grid;
}

.tagrandoms .post-image {
     flex: 0 0 10.8%;
     max-width: 10.8%;
     padding-left: 3px;
     position: relative;
     padding-right: 3px;
     padding-top: 20px;
     display: inline-grid;
}
.tagsname{
    position:absolute;
    letter-spacing: 1px;
    color:#fff;
    top: 50%;
    line-height: 15px;
    font-size: 14px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight:bold;
    text-shadow: 0 2px 2px rgb(0 0 0 / 100%);
}
.tagcloud-related-link {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: #222222;
  text-decoration: none;
}
.chahuashi_tuijian {
    margin: 15px 0px 15px 0px;
    height:155px;
}
.tagcloud-related-link:hover {
  text-decoration: underline;
}
.page-template .post .entry-content a {
    background-image: unset;
}
.page-template  .ctag .post .entry-content img:hover {
        transform: unset;
        transition: unset;
    }
 
@media (max-width: 768px) {
    .tagrandoms .post-image {
     flex: 0 0 32.2%;
     max-width: 32.2%;
    }
.ctag {
    padding-left: 5px;
    padding-right: 5px;
}
.post-image {
     flex: 0 0 32.2%;
     max-width: 32.2%;
     padding-left: 3px;
     position: relative;
     padding-right: 3px;
     padding-top: 5px;
     display: inline-grid;
}
 
.tagsname{
    position:absolute;
    letter-spacing:0px;
    color:#fff;
    top: 50%;
    line-height: 15px;
    font-size: 14px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight:bold;
    text-shadow: 0 2px 2px rgb(0 0 0 / 100%);
}
.tagcloud-related-link {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: #222222;
  text-decoration: none;
}
    .chahuashi_tuijian {
    display: initial;
    margin: 15px 0px 15px 0px;
 
}
}

.fanye {
    clear: both;
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

/* 翻页盒子 */
.fanye-box {
    display: inline-flex;
    gap: 15px; /* 两个按钮之间的间距 */
    justify-content: center;
    align-items: center;
}

/* 翻页按钮样式 */
.fanye-box a {
    display: inline-block;
    padding: 8px 25px;
    background: #fff;
    border: 1px solid #eee;
    color: #666;
    border-radius: 20px; /* 圆角矩形效果 */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 悬停效果 */
.fanye-box a:hover {
    background: #ff4500;
    color: #fff;
    border-color: #ff4500;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.2);
}

/* 暗黑模式适配 */
.dark-mode .fanye-box a {
    background: #2b2b2b;
    border-color: #444;
    color: #bbb;
}
/* 1. 确保容器是一个独立的布局上下文，但不改变它的浮动/排列属性 */
.tag-overlay-container {
    position: relative; /* 仅作为定位基准，不脱离文档流 */
    display: inline-block; /* 或者 float: left; 保持你原本的排列方式 */
    overflow: hidden;
    border-radius: 8px; /* 保持圆角 */
    line-height: 0; /* 防止图片底部出现空隙 */
}

/* 2. 确保图片填满容器 */
.tag-overlay-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 填充不失真 */
}

/* 3. 关键：美化文字，并添加“局部”遮罩 */
.tag-overlay-container .tagsname {
    /* 1. 强制浮在图片上方 */
    position: absolute;
    bottom: 0; /* 紧贴底部 */
    left: 0;
    right: 0;
    z-index: 2;

    /* 2. 文字样式对齐原效果 */
    color: #ffffff !important; /* 强制白色文字 */
    font-size: 13px; /* 对齐原字号 */
    font-weight: bold;
    text-align: center;
    padding: 20px 10px 8px; /* 顶部留出足够空间给渐变 */
    
    /* 3. 核心：只在文字下方添加一个透明到黑色的渐变，而不是全屏 */
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    
    /* 4. 增加文字本身的可读性 */
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* 4. 保持暗黑模式适配 */
.dark-mode .tag-overlay-container .tagsname {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}