@charset "utf-8";
/* =========================================================
   家教家风专题 · 二级列表页（清廉家书 / 家风故事 / 岗位座右铭）
   依赖 index.css 中的设计令牌、banner 与吸顶导航样式
   版式：左侧 260 二级栏目 + 右侧 3 列作品卡 + 底部分页
   ========================================================= */

.list-main {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0 70px;
}

/* ---------- 左侧二级栏目 ---------- */
.list-side {
    flex: 0 0 260px;
    width: 260px;
}

.list-side a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-bottom: 12px;
    padding: 0 14px;
    font-size: 20px;
    letter-spacing: .08em;
    color: var(--red);
    background: #f8e7c8;
    border-radius: 4px;
    transition: background var(--dur-base) var(--ease),
                color var(--dur-base) var(--ease);
}

.list-side a:hover { background: #f2ddb2; }

.list-side a.current {
    color: #fff;
    font-weight: 700;
    background: var(--red);
    box-shadow: 0 4px 12px rgba(129, 16, 21, .18);
}

/* ---------- 右侧作品列表 ---------- */
.list-body {
    flex: 1 1 auto;
    min-width: 0;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 30px;
}

.list-grid > li { display: flex;width: 278px; }

.list-card {
    display: block;
    width: 100%;
    padding: 14px 14px 18px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-1);
    transition: transform var(--dur-base) var(--ease),
                box-shadow var(--dur-base) var(--ease);
}

.list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

.card-img {
    display: block;
    overflow: hidden;
    background: var(--paper-3);
}

.card-img img {
    width: 250px;
    height: 190px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.list-card:hover .card-img img { transform: scale(1.03); }

.card-title {
    margin: 14px 2px 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--dur-fast) ease;
}

.list-card:hover .card-title { color: var(--red); }

.card-info {
    margin: 0 2px;
    font-size: 13px;
    line-height: 2;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 分页 ---------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 44px;
}

.pager a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    color: var(--ink-2);
    background: var(--white);
    border: 1px solid var(--paper-3);
    border-radius: 2px;
    transition: color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background var(--dur-fast) ease;
}

.pager a:hover {
    color: var(--red);
    border-color: var(--red);
}   

.pager a.current,
.pager a.current:hover {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}