/* 壁纸墙 · 文章版（首页 / 列表 / 内页），全部 wa- 前缀，避免和模板类冲突 */
.wa-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 22px 0 48px;
}

/* ---------- 首屏：内容区 3/4 宽的扁横幅 ---------- */
.wa-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 6px;
    padding: 18px 26px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(120deg, #0ea5e9 0%, #14b8a6 100%);
    box-shadow: 0 18px 40px -32px rgba(13, 116, 144, .7);
}

.wa-hero::before,
.wa-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.wa-hero::before {
    width: 220px;
    height: 220px;
    right: -70px;
    top: -120px;
    background: rgba(255, 255, 255, .12);
}

.wa-hero::after {
    width: 150px;
    height: 150px;
    right: 140px;
    bottom: -110px;
    background: rgba(255, 255, 255, .08);
}

.wa-hero-in {
    position: relative;
    z-index: 1;
    max-width: 560px;
    min-width: 0;
}

.wa-kicker {
    margin: 0 0 3px;
    font-size: 10px;
    letter-spacing: .28em;
    opacity: .78;
}

.wa-hero h1 {
    margin: 0 0 5px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .02em;
}

.wa-hero-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}

.wa-hero-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}

.wa-hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, color .18s, transform .18s;
}

.wa-btn:hover {
    background: rgba(255, 255, 255, .28);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.wa-btn-main {
    background: #fff;
    border-color: #fff;
    color: #0f766e;
}

.wa-btn-main:hover {
    background: #f0fdfa;
    color: #0f766e;
}

.wa-hero-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
}

.wa-hero-tags span {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .14);
    font-size: 11px;
}

/* ---------- 区块与卡片 ---------- */
.wa-sec {
    margin-top: 36px;
}

.wa-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.wa-sec-head h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    font-size: 20px;
    color: var(--ink, #0f172a);
}

.wa-sec-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--grad, linear-gradient(135deg, #0ea5e9, #14b8a6));
}

.wa-sec-head a {
    font-size: 13px;
    color: var(--muted, #64748b);
}

.wa-sec-head a:hover {
    color: var(--teal, #0d9488);
}

.wa-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wa-cards-bing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wa-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: var(--card, #fff);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.wa-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 184, 166, .45);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.wa-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.wa-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.wa-card:hover .wa-card-cover img {
    transform: scale(1.04);
}

.wa-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 11px;
    backdrop-filter: blur(4px);
}

.wa-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 15px 15px;
}

.wa-card-body h3 {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.wa-card-body h3 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink, #0f172a);
}

.wa-card-body h3 a:hover {
    color: var(--teal, #0d9488);
}

.wa-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--muted, #64748b);
}

.wa-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: auto;
    font-size: 11.5px;
    color: var(--muted, #94a3b8);
}

.wa-meta span,
.wa-meta time {
    white-space: nowrap;
}

.wa-empty {
    padding: 26px;
    border: 1px dashed var(--line, #e5e7eb);
    border-radius: 14px;
    background: var(--card, #fff);
    color: var(--muted, #64748b);
    text-align: center;
    font-size: 14px;
}

/* ---------- 面包屑 ---------- */
.wa-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 2px 0 16px;
    font-size: 13px;
    color: var(--muted, #64748b);
}

.wa-crumb a {
    color: var(--muted, #64748b);
}

.wa-crumb a:hover {
    color: var(--teal, #0d9488);
}

.wa-crumb i {
    font-style: normal;
    opacity: .55;
}

.wa-crumb span {
    color: var(--ink, #0f172a);
}

/* ---------- 列表页 ---------- */
.wa-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.wa-main {
    flex: 1;
    min-width: 0;
}

.wa-side {
    flex: 0 0 286px;
    width: 286px;
    position: sticky;
    top: 86px;
}

.wa-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(120deg, #0ea5e9 0%, #14b8a6 100%);
    box-shadow: 0 18px 40px -32px rgba(13, 116, 144, .7);
}

.wa-list-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
}

.wa-list-head p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}

.wa-list-head p em {
    margin-left: 8px;
    font-style: normal;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.wa-list-head p em.wa-stale {
    color: #fde68a;
}

.wa-head-link {
    flex: none;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 12.5px;
}

.wa-head-link:hover {
    border-color: #fff;
    background: #fff;
    color: #0f766e;
}

.wa-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.wa-nav-item {
    padding: 6px 13px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 999px;
    background: var(--card, #fff);
    color: var(--ink, #334155);
    font-size: 13px;
    text-decoration: none;
    transition: .16s;
}

.wa-nav-item:hover {
    border-color: var(--teal, #14b8a6);
    color: var(--teal, #0d9488);
}

.wa-nav-item.on {
    border-color: transparent;
    background: var(--grad, linear-gradient(135deg, #0ea5e9, #14b8a6));
    color: #fff;
    font-weight: 600;
}

.wa-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-list .wa-card {
    flex-direction: row;
}

.wa-list .wa-card-cover {
    flex: 0 0 290px;
    width: 290px;
    aspect-ratio: auto;
    min-height: 170px;
}

.wa-list .wa-card-body {
    justify-content: center;
    padding: 16px 20px;
}

.wa-list .wa-card-body h3 {
    font-size: 17px;
}

.wa-list .wa-card-body p {
    -webkit-line-clamp: 2;
    font-size: 13px;
}

.wa-list .wa-meta {
    margin-top: 10px;
}

.wa-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.wa-pager a,
.wa-pager span {
    min-width: 86px;
    height: 38px;
    line-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--ink, #334155);
    font-size: 13px;
    text-align: center;
}

.wa-pager a:hover {
    border-color: var(--teal, #14b8a6);
    color: var(--teal, #0d9488);
}

.wa-pager .cur {
    border-color: transparent;
    background: var(--grad, linear-gradient(135deg, #0ea5e9, #14b8a6));
    color: #fff;
}

.wa-pager .dis {
    color: #c0c8d0;
}

/* ---------- 侧栏 ---------- */
.wa-widget {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: var(--card, #fff);
}

.wa-widget h3 {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--teal, #14b8a6);
    font-size: 15px;
    line-height: 1.2;
    color: var(--ink, #0f172a);
}

.wa-side-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.wa-side-cats a {
    padding: 4px 10px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 8px;
    color: var(--muted, #64748b);
    font-size: 12.5px;
    text-decoration: none;
}

.wa-side-cats a:hover,
.wa-side-cats a.on {
    border-color: var(--teal, #14b8a6);
    background: rgba(20, 184, 166, .08);
    color: var(--teal, #0d9488);
}

.wa-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wa-side-list li + li {
    margin-top: 10px;
}

.wa-side-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink, #334155);
    text-decoration: none;
}

.wa-side-list img {
    flex: none;
    width: 76px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}

.wa-side-list span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wa-side-list b {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wa-side-list em {
    font-style: normal;
    font-size: 11px;
    color: var(--muted, #94a3b8);
}

.wa-widget-tip {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted, #64748b);
}

.wa-widget-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--teal, #0d9488);
}

/* ---------- 内页 ---------- */
.wa-article {
    padding: 28px 32px 32px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 20px;
    background: var(--card, #fff);
}

.wa-art-cat {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .1);
    color: var(--teal, #0d9488);
    font-size: 12px;
    text-decoration: none;
}

.wa-art-head h1 {
    margin: 12px 0 12px;
    font-size: 28px;
    line-height: 1.4;
    color: var(--ink, #0f172a);
}

.wa-art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line, #e5e7eb);
    font-size: 13px;
    color: var(--muted, #64748b);
}

.wa-art-figure {
    margin: 20px 0 0;
}

.wa-art-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: #e2e8f0;
}

.wa-art-figure figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--muted, #94a3b8);
}

.wa-art-body {
    margin-top: 18px;
    font-size: 15px;
    line-height: 2;
    color: var(--ink, #334155);
    word-break: break-word;
}

.wa-art-body p {
    margin: 12px 0;
}

.wa-art-body .wa-note {
    padding: 10px 14px;
    border-left: 3px solid var(--teal, #14b8a6);
    border-radius: 10px;
    background: rgba(20, 184, 166, .07);
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted, #64748b);
}

.wa-dl {
    margin-top: 30px;
    padding: 22px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--teal-50, rgba(13, 148, 136, .06)), rgba(255, 255, 255, 0) 70%);
}

.wa-dl-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.wa-dl h2 {
    margin: 0;
    font-size: 18px;
    color: var(--ink, #0f172a);
}

.wa-dl-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted, #64748b);
}

.wa-dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px;
}

.wa-dl-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 13px;
    background: var(--card, #fff);
    text-decoration: none;
    overflow: hidden;
    transition: .18s;
}

.wa-dl-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad, linear-gradient(135deg, #0ea5e9, #14b8a6));
    opacity: 0;
    transition: .18s;
}

.wa-dl-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wa-dl-top b {
    font-size: 14.5px;
    color: var(--ink, #0f172a);
}

.wa-dl-top i {
    font-style: normal;
    font-size: 10.5px;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--teal, #0d9488);
    background: rgba(13, 148, 136, .1);
}

.wa-dl-size {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: var(--muted, #64748b);
    font-variant-numeric: tabular-nums;
}

.wa-dl-go {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal, #0d9488);
}

.wa-dl-go svg {
    width: 14px;
    height: 14px;
    transition: transform .18s;
}

.wa-dl-btn.is-orig {
    border-color: rgba(13, 148, 136, .38);
    background: linear-gradient(180deg, rgba(13, 148, 136, .09), var(--card, #fff) 72%);
}

.wa-dl-btn:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -14px rgba(2, 132, 199, .55);
}

.wa-dl-btn:hover::after {
    opacity: 1;
}

.wa-dl-btn:hover b,
.wa-dl-btn:hover .wa-dl-size,
.wa-dl-btn:hover .wa-dl-go {
    color: #fff;
}

.wa-dl-btn:hover .wa-dl-top i {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.wa-dl-btn:hover .wa-dl-go svg {
    transform: translateY(2px);
}

.wa-dl-note {
    margin: 13px 0 0;
    font-size: 12px;
    color: var(--muted, #94a3b8);
}

.wa-related {
    margin-top: 30px;
}

.wa-rel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wa-rel-card {
    display: block;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 14px;
    background: var(--card, #fff);
    overflow: hidden;
    text-decoration: none;
    transition: .18s;
}

.wa-rel-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.wa-rel-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.wa-rel-card b {
    display: block;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-rel-card:hover {
    border-color: rgba(13, 148, 136, .35);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -16px rgba(2, 132, 199, .55);
}

.wa-rel-card:hover img {
    transform: scale(1.04);
}

.wa-rel-card:hover b {
    color: var(--teal, #0d9488);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .wa-hero {
        width: 100%;
    }

    .wa-cards,
    .wa-cards-bing,
    .wa-rel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wa-layout {
        flex-direction: column;
    }

    .wa-side {
        position: static;
        width: 100%;
        flex: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .wa-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 720px) {
    .wa-wrap {
        padding: 16px 12px 36px;
    }

    .wa-hero {
        padding: 16px 20px;
        border-radius: 16px;
    }

    .wa-hero h1 {
        font-size: 21px;
    }

    .wa-hero-desc {
        font-size: 12.5px;
    }

    .wa-list .wa-card {
        flex-direction: column;
    }

    .wa-list .wa-card-cover {
        flex: none;
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .wa-list .wa-card-body h3 {
        font-size: 16px;
    }

    .wa-list-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .wa-list-head h1 {
        font-size: 22px;
    }

    .wa-article {
        padding: 20px 18px 22px;
        border-radius: 16px;
    }

    .wa-art-head h1 {
        font-size: 22px;
    }

    .wa-dl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wa-side {
        display: block;
    }

    .wa-widget + .wa-widget {
        margin-top: 14px;
    }
}

@media (max-width: 460px) {
    .wa-cards,
    .wa-cards-bing {
        grid-template-columns: 1fr;
    }

    .wa-dl-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-card,
    .wa-card-cover img,
    .wa-btn,
    .wa-dl-btn {
        transition: none;
    }
}
