/* 色系 / 题材专题页，2026-11-29 */

.tp-term {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 36px 20px;
    background: linear-gradient(120deg, #eef1f8 0%, #dfe7f5 34%, #f4ece6 68%, #f7f2e8 100%);
}
.tp-term::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 44, .32);
}
.tp-term .term-title,
.tp-term .tp-sub,
.tp-term .tp-count {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.tp-term .term-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .26);
}
.tp-term .tp-sub {
    margin: 11px 0 0;
    max-width: 760px;
    font-size: 13.5px;
    line-height: 1.8;
    opacity: .93;
}
.tp-term .tp-count {
    margin-top: 12px;
    padding: 4px 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .2);
    font-size: 12px;
}

/* 区块 */
.tp-block {
    margin-top: 34px;
}
.tp-hd {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f8;
}
.tp-hd h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #1f2740;
}
.tp-hd span {
    font-size: 12.5px;
    color: #9aa3b8;
}

/* 配色速览 */
.tp-colors {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 6px;
}
.tp-color {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 74px;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.tp-color em {
    display: block;
    width: 100%;
    padding: 3px 0 4px;
    background: rgba(255, 255, 255, .82);
    color: #3a4257;
    font-style: normal;
    font-family: Consolas, Monaco, monospace;
    font-size: 9.5px;
    text-align: center;
    opacity: 0;
    transition: opacity .16s;
}
.tp-color:hover em { opacity: 1; }

/* 色彩特征 */
.tp-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.tp-stat {
    padding: 16px 14px;
    border: 1px solid #eef1f8;
    border-radius: 11px;
    background: #fafbfe;
    text-align: center;
}
.tp-stat b {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3f7a;
    line-height: 1.3;
}
.tp-stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9aa3b8;
}
.tp-note {
    margin: 15px 0 0;
    padding: 13px 16px;
    border-left: 3px solid #4a63c8;
    border-radius: 0 8px 8px 0;
    background: #fafbfe;
    font-size: 13px;
    line-height: 1.85;
    color: #5a6482;
}

/* 代表作品 */
.tp-picks {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.tp-pick {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 10px;
    background-color: #fff;
    background-image: none;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(28, 43, 92, .07);
    transition: transform .16s, box-shadow .16s;
}
.tp-pick:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(28, 43, 92, .13);
    text-decoration: none !important;
}
.tp-pick-bars {
    display: flex;
    height: 56px;
}
.tp-pick-bars i {
    display: block;
    height: 100%;
    flex: none;
}
.tp-pick b {
    display: block;
    padding: 9px 10px 11px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    color: #3a4257;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 作品网格 */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 11px;
}
.tp-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #fff;
    background-image: none;
    text-decoration: none !important;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(28, 43, 92, .06);
    transition: transform .16s, box-shadow .16s;
}
.tp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(28, 43, 92, .13);
    text-decoration: none !important;
}
.tp-thumb {
    display: block;
    width: 100%;
    height: 118px;
    background-color: #eef1f8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tp-card-bars {
    display: flex;
    height: 26px;
}
.tp-card-bars i {
    display: block;
    height: 100%;
    flex: none;
}
.tp-card b {
    display: block;
    padding: 8px 10px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.55;
    color: #3a4257;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 分页 */
.topic-page .m-page {
    margin-top: 26px;
    text-align: center;
}
.topic-page .m-page .pagelist {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.topic-page .m-page .pagelist li a,
.topic-page .m-page .pagelist li span {
    display: block;
    min-width: 34px;
    padding: 6px 11px;
    border: 1px solid #e3e8f3;
    border-radius: 6px;
    background: #fff;
    color: #5a6482;
    font-size: 13px;
    text-decoration: none !important;
}
.topic-page .m-page .pagelist li.active a,
.topic-page .m-page .pagelist li a:hover {
    border-color: #2d3f7a;
    background: #2d3f7a;
    color: #fff;
}

@media (max-width: 1199px) {
    .tp-colors { grid-template-columns: repeat(12, 1fr); }
    .tp-picks, .tp-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 991px) {
    .tp-colors { grid-template-columns: repeat(9, 1fr); }
    .tp-picks, .tp-grid { grid-template-columns: repeat(4, 1fr); }
    .tp-stats { grid-template-columns: repeat(3, 1fr); }
    .tp-term { min-height: 155px; padding: 26px 16px; }
    .tp-term .term-title { font-size: 23px; }
    .tp-term .tp-sub { font-size: 12px; }
}
@media (max-width: 575px) {
    .tp-colors { grid-template-columns: repeat(6, 1fr); gap: 4px; }
    .tp-color { height: 52px; }
    .tp-picks, .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .tp-thumb { height: 92px; }
    .tp-stats { grid-template-columns: repeat(2, 1fr); }
    .tp-hd h2 { font-size: 16px; }
}
