/* DIYCSS
   ========================================================================== */
/**
 * 1. 如果要修改css ，建议在这个文件修改覆盖即可，更新的时候，注意备份此文件即可
 * 2. 如果要修改css ，建议在这个文件修改覆盖即可，更新的时候，注意备份此文件即可
 *    如果要修改css ，建议在这个文件修改覆盖即可，更新的时候，注意备份此文件即可
 */
@import "https://cdn.bootcdn.net/ajax/libs/font-awesome/6.1.1/css/all.min.css";
@import "https://cdn.bootcdn.net/ajax/libs/font-awesome/6.1.1/css/v4-shims.min.css";

/* ====== 首页纯标题文章列表(ulist/.uposts) 大厂风覆盖 ======
   如需还原：删除本段以下所有内容即可 */
.uposts {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    box-shadow: none;
    padding: 14px 20px 20px;
}
/* 顶部分类条圆角与新卡片保持一致 */
.uposts .codesign-list,
.uposts .codesign-cover {
    border-radius: 12px 12px 0 0;
}
/* 列表行：拉高留白，行间细分割线 */
.uposts .hentry {
    margin-bottom: 0;
    padding: 13px 0;
}
.uposts .hentry + .hentry {
    border-top: 1px solid #f2f3f5;
}
/* 标题：16px / 500，近黑，序号与文字垂直居中 */
.uposts .hentry .title {
    margin: 0;
    padding-right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}
.uposts .hentry .title a {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #1f2329;
}
.uposts .hentry .title a:hover {
    color: #fd721f;
}
/* 序号徽标：统一灰色，仅第1名主题橙 */
.uposts .hentry .post-num {
    flex: none;
    margin: 0;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #8a919f;
    background-color: #f2f3f5;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.uposts .post-num.num-1 {
    background-color: #fd721f;
    color: #fff;
}
.uposts .post-num.num-2,
.uposts .post-num.num-3,
.uposts .post-num.num-4,
.uposts .post-num.num-5,
.uposts .post-num.num-6,
.uposts .post-num.num-7,
.uposts .post-num.num-8 {
    background-color: #f2f3f5;
    color: #8a919f;
}
/* 右侧热度：更小更淡，前置眼睛图标 */
.uposts .meta {
    top: 13px;
    line-height: 24px;
    font-size: 12px;
    color: #8a919f;
}
.uposts .meta::before {
    content: "\f06e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    margin-right: 5px;
}

/* ====== 顶部分类标题：去掉深色背景，改白底左对齐标题 ====== */
.uposts .codesign-list {
    height: auto;
    margin: 0 0 8px;
    padding: 0 0 10px;
    background-color: #fff;
    background-image: none !important;
    border-bottom: 1px solid #f2f3f5;
}
.uposts .codesign-cover {
    display: none;
}
.uposts .codeisgn-h4 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    text-align: left;
    color: #1f2329;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}
.uposts .codeisgn-h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background-color: #fd721f;
}
.uposts .codeisgn-h4 i,
.uposts .codeisgn-h4 .fa {
    display: none;
}
.uposts .codeisgn-h4 a {
    color: #1f2329;
}
.uposts .codeisgn-h4 a:hover {
    color: #fd721f;
}
.uposts .codesign-esc {
    margin-top: 4px;
    text-align: left;
    line-height: 1.5;
    color: #8a919f;
    font-size: 13px;
}
.uposts .codesign-esc p {
    margin: 0;
}

/* ====== 序号改大号淡灰数字01/02 + 卡片/行悬停质感 ====== */
.uposts {
    counter-reset: uposts-rank;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.uposts:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    border-color: #dfe3e8;
}
.uposts .hentry {
    counter-increment: uposts-rank;
    transition: background-color .2s ease;
}
.uposts .hentry:hover {
    background-color: #fafbfc;
}
/* 序号：隐藏原数字，用计数器显示 01/02，大号淡灰等宽字 */
.uposts .hentry .post-num {
    width: auto;
    height: auto;
    line-height: 1;
    font-size: 0;
    background: transparent;
    color: transparent;
    border-radius: 0;
}
.uposts .hentry .post-num::before {
    content: counter(uposts-rank, decimal-leading-zero);
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #c4cad2;
}
.uposts .hentry .title a {
    transition: transform .2s ease, color .2s ease;
}
.uposts .hentry:hover .title a {
    transform: translateX(4px);
    color: #fd721f;
}
