/*
Theme Name: RiPro-V5 Child
Template: ripro-v5
*/
/* ===== 侧边栏标签云：等宽网格自动对齐 ===== */
.widget .tagcloud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 每行3个，自动等宽；想2个改数字 */
    gap: 6px;
}
.widget .tagcloud a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    border-radius: 4px;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;         /* 标签名不换行 */
    overflow: hidden;
    text-overflow: ellipsis;     /* 超长标签显示省略号，避免撑破格子 */
    transition: opacity .2s;
}
.widget .tagcloud a:hover {
    opacity: .8;
}

/* 6 色循环（保留原来的彩色效果）*/
.widget .tagcloud a:nth-child(6n+1) { background-color: #2d8cf0; }
.widget .tagcloud a:nth-child(6n+2) { background-color: #ff6b81; }
.widget .tagcloud a:nth-child(6n+3) { background-color: #ffa502; }
.widget .tagcloud a:nth-child(6n+4) { background-color: #2ed573; }
.widget .tagcloud a:nth-child(6n+5) { background-color: #a55eea; }
.widget .tagcloud a:nth-child(6n+6) { background-color: #2bcbba; }
/* ===== 文章页底部标签：随机彩色 ===== */
.entry-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 3px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity .2s;
}
.entry-tags a:hover {
    opacity: .8;
}

/* 6 色循环（和侧边栏同款色板）*/
.entry-tags a:nth-child(6n+1) { background-color: #2d8cf0; }
.entry-tags a:nth-child(6n+2) { background-color: #ff6b81; }
.entry-tags a:nth-child(6n+3) { background-color: #ffa502; }
.entry-tags a:nth-child(6n+4) { background-color: #2ed573; }
.entry-tags a:nth-child(6n+5) { background-color: #a55eea; }
.entry-tags a:nth-child(6n+6) { background-color: #2bcbba; }
/* ===== 正文标签自动链接颜色 ===== */
.auto-tag-link {
    color: #2d8cf0 !important;      /* 蓝色，可改色值 */
    text-decoration: underline;
}
.auto-tag-link:hover {
    color: #ff6b81 !important;      /* 悬停变红，可改 */
}
