/* ===== 文章首页 · 独立样式 ===== */
.art-index-head {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.art-index-head h1 {
    font-size: 20px;
    margin: 0;
    color: #1a1a1a;
}

.art-index-head a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.art-index-head a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* 推荐/精选区 */
.art-featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.art-feat-card {
    position: relative;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: #1a1a1a;
    transition: all 0.25s ease;
}

.art-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.art-feat-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.art-feat-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}

.art-feat-card__bg .no-pic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 52px;
    background: #2a2a2a;
}

.art-feat-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 22px 18px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
    z-index: 2;
    box-sizing: border-box;
}

.art-feat-card__title {
    font-size: 17px;
    margin: 0 0 8px 0;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    font-weight: 600;
}

.art-feat-card__desc {
    font-size: 13px;
    color: #eee;
    margin: 0 0 10px 0;
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.art-feat-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ccc;
}

.art-feat-card__cat {
    padding: 2px 8px;
    font-size: 11px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 3px;
}

/* 最新文章列表区 */
.art-latest-wrap {
    margin-bottom: 30px;
}

.art-latest-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.art-latest-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.art-latest-item:hover {
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.art-latest-item__thumb {
    width: 100px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.art-latest-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-latest-item__thumb .no-pic-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 22px;
}

.art-latest-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-latest-item__title {
    font-size: 14px;
    margin: 0;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.art-latest-item__meta {
    font-size: 12px;
    color: #999;
}

/* 分类入口 */
.art-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.art-cat-item {
    display: block;
    padding: 14px 10px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
}

.art-cat-item:hover {
    background: #1a1a1a;
    color: #fff;
}