/* ============================================================
   首页资源区块统一样式（2026-10-29）
   适用：名画配色 / 色系配色 / 题材配色 / 配色方案分享 / 今日推荐
   ============================================================ */

.home-block {
    padding: 40px 0 10px;
}

/* 区块头 */
.home-hd {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.home-hd-l h2 {
    font-size: 22px;
    color: #1c2b5c;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.home-hd-l h2 i {
    color: #4a63c8;
    font-size: 17px;
}
.home-hd-l h2 a {
    color: inherit;
    text-decoration: none;
}
.home-hd-l h2 a:hover {
    color: #4a63c8;
    text-decoration: none;
}
.home-hd-l p {
    margin: 0;
    font-size: 13px;
    color: #8a93ab;
    line-height: 1.6;
}
.home-hd-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 20px;
    background: #f3f6ff;
    color: #4a63c8;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.home-hd-more:hover {
    background: #2d3f7a;
    color: #fff;
    text-decoration: none;
}

/* 频道横滑（艺术家 / 色系 / 题材） */
.home-channels {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.home-channels::-webkit-scrollbar {
    height: 6px;
}
.home-channels::-webkit-scrollbar-thumb {
    background: #dde3f0;
    border-radius: 3px;
}
.home-channels::-webkit-scrollbar-track {
    background: transparent;
}
.home-channel {
    flex: 0 0 112px;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
}
.home-channel .thumb {
    width: 90px;
    height: 90px;
    margin: 0 auto 9px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #eef1f8;
    background: #f8faff;
    transition: all .22s;
}
.home-channel .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-channel:hover .thumb {
    border-color: #4a63c8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(28, 43, 92, .14);
}
.home-channel .name {
    font-size: 12.5px;
    color: #2d3f7a;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}
.home-channel:hover .name {
    color: #4a63c8;
}

/* 文章卡精简 */
.home-block .grid_author_avt {
    display: none;
}
.home-block .entry-meta {
    margin-bottom: 4px;
}
.home-block .entry-meta .meta-category a {
    font-size: 11.5px;
    color: #8a93ab;
}
.home-block .entry-title {
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 600 !important;
    margin: 0 0 8px !important;
}
.home-block .entry-title a {
    color: #1f2740;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-block .entry-title a:hover {
    color: #4a63c8;
}
.home-block .post-meta-box li,
.home-block .post-meta-box li a {
    font-size: 11.5px;
    color: #9aa3b8;
}
.home-block .post-grid {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}
.home-block .post-grid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(28, 43, 92, .1);
}
.home-block .entry-media .peise {
    margin-top: -2px;
}
.home-block .entry-media .peisetiao {
    height: 30px;
}

/* 查看更多按钮 */
.home-block .infinite-scroll-action {
    text-align: center;
    padding: 8px 0 20px;
}
.home-block .infinite-scroll-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 26px;
    border-radius: 30px;
    background: #f3f6ff;
    color: #2d3f7a;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.home-block .infinite-scroll-button:hover {
    background: #2d3f7a;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .home-block {
        padding: 28px 0 6px;
    }
    .home-hd {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .home-hd-l h2 {
        font-size: 19px;
    }
    .home-hd-l p {
        font-size: 12.5px;
    }
    .home-channel {
        flex: 0 0 92px;
    }
    .home-channel .thumb {
        width: 76px;
        height: 76px;
    }
    .home-channel .name {
        font-size: 11.5px;
    }
    .home-block .entry-title {
        font-size: 13.5px !important;
    }
}

/* ============================================================
   2026-10-29 第二版：5 列单行 / 配色筛选 / 下载专区 / 文章重构
   ============================================================ */

/* 桌面端统一 5 列，只展示一行 */
@media (min-width: 992px) {
    .home-block .posts-wrapper > .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ---------- 配色方案筛选 ---------- */
.hp-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.hp-chip {
    padding: 6px 15px;
    border: 1px solid #e3e8f3;
    border-radius: 18px;
    background: #fff;
    color: #5a6482;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: all .18s;
    outline: none;
}
.hp-chip:hover {
    border-color: #4a63c8;
    color: #4a63c8;
}
.hp-chip.is-on {
    background: #2d3f7a;
    border-color: #2d3f7a;
    color: #fff;
}
.hp-search {
    display: flex;
    margin-left: auto;
}
.hp-search input {
    width: 210px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #e3e8f3;
    border-right: 0;
    border-radius: 18px 0 0 18px;
    font-size: 13px;
    outline: none;
    color: #3a4260;
    background: #fff;
}
.hp-search input:focus {
    border-color: #4a63c8;
}
.hp-search button {
    width: 42px;
    height: 34px;
    border: 0;
    border-radius: 0 18px 18px 0;
    background: #2d3f7a;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.hp-search button:hover {
    background: #4a63c8;
}
.hp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 2px 6px;
    font-size: 13px;
    color: #8a93ab;
}
.hp-foot b {
    color: #2d3f7a;
}
.hp-next {
    padding: 7px 18px;
    border: 1px solid #e3e8f3;
    border-radius: 18px;
    background: #fff;
    color: #2d3f7a;
    font-size: 13px;
    cursor: pointer;
    transition: all .18s;
}
.hp-next:hover {
    background: #2d3f7a;
    border-color: #2d3f7a;
    color: #fff;
}
#hpGrid {
    transition: opacity .15s;
}
#hpGrid.is-loading {
    opacity: .4;
    pointer-events: none;
}
.hp-empty {
    padding: 30px 0;
    text-align: center;
    color: #9aa3b8;
    font-size: 13.5px;
}

/* 配色方案卡片：色条是主体，加高 */
.home-palette-block .entry-media .peise {
    min-height: 54px;
}
.home-palette-block .entry-media .peisetiao {
    height: 54px !important;
    border-top: 0;
}

/* ---------- 下载专区 ---------- */
.home-dl {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.dl-card {
    position: relative;
    display: block;
    padding: 22px 20px;
    border: 1px solid #eef1f8;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: all .22s;
}
.dl-card:hover {
    transform: translateY(-4px);
    border-color: #dfe5f5;
    box-shadow: 0 14px 30px rgba(28, 43, 92, .12);
    text-decoration: none;
}
.dl-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f2f5ff;
    color: #4a63c8;
    font-size: 18px;
}
.dl-card b {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #1c2b5c;
}
.dl-card p {
    margin: 0 0 14px;
    min-height: 42px;
    font-size: 13px;
    line-height: 1.65;
    color: #7b849c;
}
.dl-go {
    font-size: 13px;
    font-weight: 600;
    color: #4a63c8;
}
.dl-hot {
    border-color: #2d3f7a;
    background: linear-gradient(160deg, #2d3f7a, #3f56a3);
}
.dl-hot b,
.dl-hot .dl-go {
    color: #fff;
}
.dl-hot p {
    color: rgba(255, 255, 255, .78);
}
.dl-hot .dl-ico {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}
.dl-hot:hover {
    box-shadow: 0 16px 34px rgba(45, 63, 122, .32);
}
.dl-flag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 11px;
}

/* ---------- 文章区：3 列卡片 ---------- */
.home-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 22px;
}
.home-articles .ha-item {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.home-articles .post {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.home-articles .post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(28, 43, 92, .1);
}
.home-articles .entry-media .placeholder {
    overflow: hidden;
}
.home-articles .entry-wrapper {
    padding: 14px 16px 16px;
}
.home-articles .entry-title {
    font-size: 15.5px !important;
    margin: 2px 0 8px !important;
}
.home-articles .ha-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 43px;
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #8a93ab;
}

/* ---------- 今日推荐轮播卡 ---------- */
.hp-featured {
    display: flex;
    align-items: center;
    width: 100%;
}
.hp-featured .col-5 {
    flex: 0 0 46%;
    max-width: 46%;
    padding: 0;
}
.hp-featured .col-7 {
    flex: 1;
    padding: 0 10px 0 24px;
}
.hp-featured .entry-media .placeholder {
    border-radius: 12px;
    overflow: hidden;
}
.hp-featured .peisetiao {
    height: 34px;
}
.hp-featured-title {
    font-size: 21px !important;
    margin: 10px 0 6px !important;
}
.hp-featured-desc {
    margin: 10px 0 14px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #7b849c;
}
.hp-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #4a63c8;
}

@media (max-width: 991px) {
    .home-dl {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-articles {
        grid-template-columns: 1fr;
    }
    .hp-featured {
        display: block;
    }
    .hp-featured .col-5,
    .hp-featured .col-7 {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .hp-featured-title {
        font-size: 17px !important;
        margin-top: 12px !important;
    }
    .hp-featured-desc {
        display: none;
    }
    .hp-search {
        width: 100%;
        margin-left: 0;
    }
    .hp-search input {
        flex: 1;
        width: auto;
    }
}

/* ---------- 下载商品卡（真实商品） ---------- */
.dlp-card {
    display: block;
    overflow: hidden;
    border: 1px solid #eef1f8;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: all .22s;
}
.dlp-card:hover {
    transform: translateY(-3px);
    border-color: #dfe5f5;
    box-shadow: 0 12px 26px rgba(28, 43, 92, .12);
    text-decoration: none;
}
.dlp-thumb {
    position: relative;
    height: 132px;
    overflow: hidden;
    background: #f5f7fc;
}
.dlp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.dlp-card:hover .dlp-thumb img {
    transform: scale(1.05);
}
.dlp-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c3cbe0;
    font-size: 26px;
}
.dlp-body {
    padding: 10px 12px 12px;
}
.dlp-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 39px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2740;
}
.dlp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dlp-price {
    font-size: 15px;
    font-weight: 700;
    color: #e2453c;
}
.dlp-go {
    font-size: 11.5px;
    color: #8a93ab;
}
.dlp-card:hover .dlp-go {
    color: #4a63c8;
}
.dlp-skeleton {
    height: 214px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f4f6fb 25%, #eceff7 37%, #f4f6fb 63%);
    background-size: 400% 100%;
    animation: dlpShine 1.4s ease infinite;
}
@keyframes dlpShine {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.dlp-done {
    padding: 20px 0;
    text-align: center;
    color: #9aa3b8;
    font-size: 13px;
}
.hp-done {
    font-size: 13px;
    color: #9aa3b8;
}
.hp-filter-label {
    margin-right: 2px;
    font-size: 13px;
    color: #8a93ab;
}

/* 栏目列表页：5 列密度（与首页一致） */
@media (min-width: 992px) {
    .hp-grid-5 > .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ---------- 色系筛选 ---------- */
.hp-filter-family {
    margin-top: -6px;
}
.hp-chip[data-family] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hp-chip[data-family]::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d0d6e4;
}
.hp-chip[data-family=""]::before {
    display: none;
}
.hp-chip[data-family="red"]::before { background: #e5484d; }
.hp-chip[data-family="orange"]::before { background: #f2872e; }
.hp-chip[data-family="yellow"]::before { background: #e6b422; }
.hp-chip[data-family="green"]::before { background: #43a047; }
.hp-chip[data-family="cyan"]::before { background: #26b5c4; }
.hp-chip[data-family="blue"]::before { background: #3b6bd8; }
.hp-chip[data-family="purple"]::before { background: #7c4dff; }
.hp-chip[data-family="pink"]::before { background: #e5679a; }
.hp-chip[data-family="brown"]::before { background: #9a6a4a; }
.hp-chip[data-family="gray"]::before { background: #8c94a8; }
.hp-chip.is-on[data-family]:not([data-family=""])::before {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}
