/* =========================================================
   小六壁纸 · 画廊式设计系统
   ========================================================= */
:root {
    --w-bg: #f6f6f7;
    --w-surface: #ffffff;
    --w-ink: #111214;
    --w-ink-2: #5b5f66;
    --w-muted: #9b9ea4;
    --w-line: #e6e6ea;
    --w-accent: #e5242b;
    --w-radius: 14px;
    --w-maxw: 1480px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--w-bg);
    color: var(--w-ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; }

.w-inner {
    width: 100%;
    max-width: var(--w-maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶栏 ---------- */
.w-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--w-line);
}

.w-head-top {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 64px;
}

.w-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--w-ink);
}
.w-logo i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--w-accent);
    display: inline-block;
}
.w-logo:hover { color: var(--w-ink); }

.w-search {
    flex: 1;
    max-width: 420px;
    position: relative;
    min-width: 0;
}
.w-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--w-muted);
    pointer-events: none;
}
.w-search input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 36px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f1f1f3;
    font-size: 13.5px;
    color: var(--w-ink);
    outline: none;
    transition: background .2s, border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}
.w-search input::placeholder { color: var(--w-muted); }
.w-search input:focus {
    background: #fff;
    border-color: #d8d8dd;
    box-shadow: 0 0 0 3px rgba(17, 18, 20, .05);
}

.w-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
/* 手机端搜索开关（桌面隐藏，搜索框常驻） */
.w-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--w-line);
    border-radius: 10px;
    background: #fff;
    color: var(--w-ink);
    cursor: pointer;
    flex: none;
    -webkit-tap-highlight-color: transparent;
}
.w-search-toggle svg { width: 17px; height: 17px; }
.w-user {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--w-ink-2);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.w-vip {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 999px;
    color: #7a4b00;
    background: linear-gradient(135deg, #ffe9a8, #ffce5c);
    flex-shrink: 0;
}
.w-link {
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--w-ink-2);
    transition: background .18s, color .18s;
}
.w-link:hover { background: #f1f1f3; color: var(--w-ink); }

.w-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--w-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--w-ink);
    cursor: pointer;
    transition: background .18s, transform .18s, box-shadow .18s;
    white-space: nowrap;
}
.w-btn:hover { background: #000; }
.w-btn svg { width: 15px; height: 15px; }
.w-btn.ghost {
    background: #fff;
    color: var(--w-ink);
    border-color: var(--w-line);
}
.w-btn.ghost:hover { border-color: #cfcfd5; background: #fafafa; }

/* ---------- 分类条 ---------- */
.w-catbar { padding-bottom: 12px; }
.w-cat-toggle { display: none; }
.w-cats {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.w-cats::-webkit-scrollbar { display: none; }
.w-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--w-ink-2);
    white-space: nowrap;
    transition: background .18s, color .18s;
}
.w-chip:hover { background: #f1f1f3; color: var(--w-ink); }
.w-chip.active { background: var(--w-ink); color: #fff; }

/* ---------- 主体 ---------- */
.w-main {
    flex: 1;
    padding: 22px 0 44px;
}

.w-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.w-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #ececee;
    gap: 2px;
}
.w-tabs a {
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--w-ink-2);
    transition: background .18s, color .18s, box-shadow .18s;
}
.w-tabs a:hover { color: var(--w-ink); }
.w-tabs a.active {
    background: #fff;
    color: var(--w-ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .09);
}

.w-count {
    font-size: 12.5px;
    color: var(--w-muted);
    letter-spacing: .01em;
}

.w-subs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.w-subs a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--w-ink-2);
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    transition: border-color .18s, color .18s;
}
.w-subs a:hover { border-color: #cfcfd5; color: var(--w-ink); }
.w-subs a.active {
    background: var(--w-ink);
    border-color: var(--w-ink);
    color: #fff;
}

.w-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    font-size: 13px;
    color: var(--w-ink-2);
}
.w-tip svg { width: 16px; height: 16px; color: #e0a300; flex-shrink: 0; }

/* ---------- 瀑布流 ---------- */
.w-grid {
    column-count: 4;
    column-gap: 14px;
}

.w-item {
    break-inside: avoid;
    position: relative;
    margin: 0 0 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #e9e9ec;
    cursor: zoom-in;
    transform: translateZ(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: box-shadow .28s ease;
}
.w-item:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .14); }

.w-media {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.w-media img,
.w-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.w-item:hover .w-media img,
.w-item:hover .w-media video { transform: scale(1.035); }

.w-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 64%;
    background: linear-gradient(to top, rgba(8, 8, 10, .74), rgba(8, 8, 10, 0));
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: 1;
}
.w-item:hover::after { opacity: 1; }

.w-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    color: #fff;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.w-item:hover .w-cap { opacity: 1; transform: none; }
.w-cap b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.w-cap span {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .78);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}

.w-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(10, 10, 12, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 10.5px;
    letter-spacing: .02em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
}
.w-item:hover .w-badge { opacity: 1; }

.w-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.w-play span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease;
}
.w-item:hover .w-play span { transform: scale(1.06); }
.w-play svg { width: 16px; height: 16px; color: #111; margin-left: 2px; }

.w-empty {
    padding: 90px 20px;
    text-align: center;
    color: var(--w-muted);
}
.w-empty b {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--w-ink-2);
    margin-bottom: 4px;
}

/* ---------- 分页 ---------- */
.w-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 38px 0 4px;
}
.w-pager a,
.w-pager .w-page {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--w-surface);
    border: 1px solid var(--w-line);
    font-size: 13px;
    color: var(--w-ink-2);
    transition: border-color .18s, color .18s, background .18s;
}
.w-pager a:hover { border-color: #c9c9cf; color: var(--w-ink); }
.w-pager .active {
    background: var(--w-ink);
    border-color: var(--w-ink);
    color: #fff;
}
.w-pager .disabled { color: #c6c6cc; pointer-events: none; }
.w-pager .w-gap { border: none; background: none; color: var(--w-muted); padding: 0 4px; }
.w-pager .w-info {
    border: none;
    background: none;
    color: var(--w-muted);
    font-size: 12.5px;
    padding: 0 8px;
}
.w-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.w-jump input {
    width: 54px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--w-line);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.w-jump input::-webkit-outer-spin-button,
.w-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.w-jump input:focus { border-color: #c9c9cf; }
.w-jump button {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--w-ink);
    color: #fff;
    font-size: 13px;
    border: none;
    cursor: pointer;
}
.w-jump button:hover { background: #000; }

/* ---------- 页脚 ---------- */
.w-footer {
    border-top: 1px solid var(--w-line);
    background: var(--w-surface);
    padding: 26px 0;
}
.w-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 12.5px;
    color: var(--w-muted);
}
.w-foot-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.w-foot-links a {
    color: var(--w-ink-2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.w-foot-links a:hover { color: var(--w-ink); }
.w-foot-links img { width: 15px; height: 15px; display: inline-block; }

/* ---------- 回到顶部 ---------- */
#backToTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--w-line);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--w-ink-2);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s, visibility .25s, box-shadow .25s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }
#backToTop:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .13); color: var(--w-ink); }

/* ---------- 懒加载占位 ---------- */
.media-thumb.loading {
    background: linear-gradient(90deg, #e9e9ec 25%, #dedee2 50%, #e9e9ec 75%);
    background-size: 200% 100%;
    animation: w-shimmer 1.4s infinite linear;
}
@keyframes w-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
    .w-grid { column-count: 3; }
}
@media (max-width: 860px) {
    .w-grid { column-count: 2; }
    .w-inner { padding: 0 16px; }
    .w-head-top { height: 58px; gap: 14px; }
}
@media (max-width: 720px) {
    .w-head-top {
        height: 58px;
        flex-wrap: nowrap;
        padding: 10px 0;
        row-gap: 0;
        position: relative;
    }
    /* 搜索收进顶栏图标，点开才展开，默认不占一行 */
    .w-search {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 60;
        max-width: none;
        margin: 0;
        padding: 4px 0 12px;
        background: #fff;
        border-bottom: 1px solid var(--w-line);
        box-shadow: 0 24px 32px -30px rgba(0, 0, 0, .5);
    }
    .w-header.search-open .w-search { display: block; }
    .w-search-toggle { display: inline-flex; }
    .w-search-toggle[aria-expanded="true"] {
        background: var(--w-ink);
        border-color: var(--w-ink);
        color: #fff;
    }
    .w-actions { gap: 4px; }
    .w-actions .w-link { padding: 7px 9px; }
    .w-actions .w-btn { height: 34px; padding: 0 12px; }
    .w-user { display: none; }
    .w-catbar { padding-bottom: 10px; }
    .w-main { padding: 16px 0 32px; }
    .w-caption-title { font-size: 12.5px; }
    .w-pager { gap: 5px; margin-top: 28px; }
    .w-pager a, .w-pager .w-page { min-width: 33px; height: 33px; padding: 0 9px; font-size: 12.5px; }
    .w-jump { display: none; }
    .w-foot-links { gap: 12px; }
    #backToTop { right: 14px; bottom: 14px; width: 38px; height: 38px; }
}
@media (max-width: 520px) {
    .w-grid { column-gap: 10px; }
    .w-item { margin-bottom: 10px; border-radius: 10px; }
    .w-cap { padding: 9px; }
    .w-cap b { font-size: 12px; max-width: 150px; }
    .w-badge { display: none; }
}

/* 手机端：分类标签收进按钮，点击再弹出，不占版面 */
@media (max-width: 720px) {
    .w-catbar { position: relative; padding-bottom: 10px; }
    .w-cat-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid var(--w-line);
        border-radius: 12px;
        background: #fff;
        color: var(--w-ink);
        font-size: 13.5px;
        font-weight: 500;
        text-align: left;
        -webkit-tap-highlight-color: transparent;
    }
    .w-cat-toggle .w-cat-ico { color: var(--w-ink-3); flex: none; }
    .w-cat-toggle .w-cat-current {
        color: var(--w-ink-3);
        font-weight: 400;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .w-cat-toggle .w-cat-chev {
        margin-left: auto;
        color: var(--w-ink-3);
        flex: none;
        transition: transform .2s;
    }
    .w-catbar.open .w-cat-chev { transform: rotate(180deg); }
    .w-catbar.open .w-cat-toggle { border-color: #d6d6dc; box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .18); }

    .w-catbar .w-cats {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% - 2px);
        z-index: 60;
        padding: 12px;
        flex-wrap: wrap;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--w-line);
        border-radius: 14px;
        box-shadow: 0 24px 48px -20px rgba(10, 10, 11, .32);
        max-height: 60vh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .w-catbar.open .w-cats { display: flex; }
    .w-catbar .w-chip { background: #f5f5f7; padding: 8px 13px; }
    .w-catbar .w-chip.active { background: var(--w-ink); color: #fff; }
}

/* ---------------------------------------------------------
   预览页（preview.php）
   --------------------------------------------------------- */
.p-body {
    background: #0a0a0c;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.p-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.p-note {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .68);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.p-note i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5242b;
    display: inline-block;
}
.p-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}
.p-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }

.p-stage {
    flex: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 74px 18px 104px;
}

.p-media {
    position: relative;
    max-width: min(94vw, 1500px);
    border-radius: 10px;
    overflow: hidden;
    background: #101014;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
    line-height: 0;
}
.p-media img,
.p-media video {
    max-width: 94vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
}

.p-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: #fff;
    border-radius: 50%;
    animation: p-spin .9s linear infinite;
    z-index: 0;
}
@keyframes p-spin { to { transform: rotate(360deg); } }
.p-media.loaded .p-loader { display: none; }

.p-bar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 10;
}
.p-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 26px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
    transition: transform .2s, box-shadow .2s;
    border: none;
    cursor: pointer;
}
.p-dl:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.p-dl svg { width: 17px; height: 17px; fill: currentColor; }
.p-dl.disabled {
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .55);
    box-shadow: none;
    cursor: not-allowed;
}
.p-dl.disabled:hover { transform: none; }

@media (max-width: 720px) {
    .p-top { padding: 10px 12px; }
    .p-note { font-size: 12px; }
    .p-stage { padding: 60px 10px 96px; }
    .p-media img, .p-media video { max-width: 96vw; max-height: 76vh; }
    .p-dl { height: 44px; padding: 0 22px; font-size: 13.5px; }
    .p-bar { bottom: 16px; }
}

/* ---------- 编辑精选 ---------- */
.w-featured {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: min(50vw, 600px);
    margin-bottom: 24px;
}
.w-feat {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #e9e9ec;
    cursor: zoom-in;
}
.w-feat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.w-feat:hover img { transform: scale(1.04); }
.w-feat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 10, .66), rgba(8, 8, 10, 0) 58%);
    pointer-events: none;
}
.w-feat-cap {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
}
.w-feat-cap b {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.w-feat-cap span {
    font-size: 11px;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .66);
}
.w-feat--main { grid-row: span 2; }
.w-feat--main .w-feat-cap { left: 24px; right: 24px; bottom: 22px; }
.w-feat--main .w-feat-cap b { font-size: clamp(18px, 2vw, 26px); }

@media (max-width: 900px) {
    .w-featured {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
    }
    .w-feat { aspect-ratio: 16 / 9; }
    .w-feat--main { grid-row: auto; }
}
@media (max-width: 520px) {
    .w-featured { gap: 8px; margin-bottom: 16px; }
    .w-feat { border-radius: 10px; }
}

/* 区块标题 */
.w-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 12px;
}
.w-sec-head h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--w-ink);
}
.w-sec-head a {
    font-size: 12.5px;
    color: var(--w-muted);
    transition: color .18s;
}
.w-sec-head a:hover { color: var(--w-ink); }

/* 预览页信息 */
.p-info {
    position: fixed;
    left: 20px;
    bottom: 26px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    max-width: 46vw;
    pointer-events: none;
}
.p-info b {
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.p-info span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, .62);
    letter-spacing: .02em;
}
@media (max-width: 720px) {
    .p-info { display: none; }
}

/* 移动端：精选改为横向滑动 */
@media (max-width: 900px) {
    .w-featured {
        display: flex;
        grid-template-columns: none;
        grid-template-rows: none;
        height: auto;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        margin-left: -16px;
        margin-right: -16px;
        padding: 0 16px;
    }
    .w-featured::-webkit-scrollbar { display: none; }
    .w-feat {
        flex: 0 0 82%;
        aspect-ratio: 3 / 4;
        scroll-snap-align: start;
        border-radius: 12px;
    }
    .w-feat--main { grid-row: auto; }
}


/* 智能分类的二级筛选标签 */
.w-subs-label {
    font-size: 12px;
    color: var(--w-muted);
    align-self: center;
    padding: 0 2px 0 0;
    letter-spacing: .04em;
}
