.hw-archive--pc {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--page-gutter-x) 80px;
}
.hw-archive__hero {
    text-align: center;
    padding: 36px 0 40px;
}
.hw-archive__hero-inner { max-width: 600px; margin: 0 auto; }
.hw-archive__kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hw-accent, #5046e5);
    margin-bottom: 10px;
}
.hw-archive__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--hw-text, #1a1a2e);
}
.hw-archive__desc {
    font-size: 15px;
    color: var(--hw-text-secondary, #888);
    line-height: 1.6;
    margin: 0;
}

.hw-archive__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 0 32px;
}
.hw-archive__chip {
    display: inline-block;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--hw-text-secondary, #666);
    background: var(--hw-card-bg, #fff);
    border: 1px solid var(--hw-border, rgba(0,0,0,.08));
    border-radius: 24px;
    text-decoration: none;
    transition: all .2s;
}
.hw-archive__chip:hover {
    border-color: var(--hw-accent, #5046e5);
    color: var(--hw-accent, #5046e5);
}
.hw-archive__chip.is-active {
    background: var(--hw-accent, #5046e5);
    color: #fff;
    border-color: var(--hw-accent, #5046e5);
}

.hw-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── card shell ── */
.hw-archive__card {
    position: relative;
    height: 204px;
    background: var(--hw-card-bg, #fff);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .25s, transform .25s;
}
.hw-archive__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hw-card-cover-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity .25s ease, transform .35s ease;
    pointer-events: none;
}
.hw-archive__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,12,20,.06) 0%, rgba(10,12,20,.22) 40%, rgba(10,12,20,.82) 100%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.hw-archive__card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.hw-archive__card.has-cover::before,
.hw-archive__card.has-cover::after {
    opacity: 1;
}
.hw-archive__card.has-cover:hover::before {
    transform: scale(1.04);
}

/* ── link wrapper ── */
.hw-archive__card-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ── body: top-to-bottom flex ── */
.hw-archive__card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px;
    min-height: 0;
}
.hw-archive__card.has-cover .hw-archive__card-body {
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(8,10,18,0) 0%, rgba(8,10,18,.08) 42%, rgba(8,10,18,.28) 100%);
}
.hw-archive__card:not(.has-cover) .hw-archive__card-body {
    background:
        radial-gradient(circle at top right, rgba(80,70,229,.1), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

/* ── category: top-left ── */
.hw-archive__card-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    color: var(--hw-accent, #5046e5);
    background: var(--hw-accent-light, rgba(80,70,229,.08));
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* ── text block: title + excerpt, grows to fill ── */
.hw-archive__card-text {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.hw-archive__card.has-cover .hw-archive__card-text {
    max-width: 92%;
}
.hw-archive__card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--hw-text, #1a1a2e);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hw-archive__card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--hw-text-secondary, #888);
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ── meta: bottom row ── */
.hw-archive__card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,.05);
    font-size: 12px;
    color: var(--hw-text-secondary, #aaa);
    flex-shrink: 0;
}
.hw-archive__card-author {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hw-archive__card-views {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hw-archive__card-views i {
    font-size: 13px;
    opacity: .8;
}

/* ── has-cover color overrides ── */
.hw-archive__card.has-cover .hw-archive__card-cat {
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.2);
}
.hw-archive__card.has-cover .hw-archive__card-title,
.hw-archive__card.has-cover .hw-archive__card-excerpt,
.hw-archive__card.has-cover .hw-archive__card-meta {
    color: rgba(255,255,255,.96);
}
.hw-archive__card.has-cover .hw-archive__card-meta {
    border-top: none;
    color: rgba(255,255,255,.86);
}
.hw-archive__card.has-cover .hw-archive__card-title,
.hw-archive__card.has-cover .hw-archive__card-excerpt,
.hw-archive__card.has-cover .hw-archive__card-meta,
.hw-archive__card.has-cover .hw-archive__card-cat {
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* ── hidden legacy elements ── */
.hw-archive__card-thumb,
.hw-archive__card-img { display: none; }

/* ── pagination ── */
.hw-archive__pagination {
    margin-top: 48px;
    text-align: center;
}
.hw-archive__pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.hw-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--hw-text-secondary, #666);
    background: var(--hw-card-bg, #fff);
    border: 1px solid var(--hw-border, rgba(0,0,0,.08));
    transition: all .2s;
}
.hw-archive__pagination .page-numbers:hover {
    border-color: var(--hw-accent, #5046e5);
    color: var(--hw-accent, #5046e5);
}
.hw-archive__pagination .page-numbers.current {
    background: var(--hw-accent, #5046e5);
    color: #fff;
    border-color: var(--hw-accent, #5046e5);
}

.hw-archive__empty {
    text-align: center;
    padding: 100px 0;
    color: var(--hw-text-secondary, #888);
}
.hw-archive__empty h2 { font-size: 24px; margin-bottom: 10px; color: var(--hw-text, #1a1a2e); }
.hw-archive__empty a {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--hw-accent, #5046e5);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}
