/* ============================================================
   揽星阁 · 首页样式（v5「暗夜画廊」重设计）
   仅在首页引入，作用域统一挂在 body.wp-home 下，
   内页（分类 / 详情 / 合集 / 文章）继续沿用 wallpaper.css
   ============================================================ */

body.wp-home {
    /* ---- 设计令牌 ---- */
    --bg: #0a0c11;
    --bg-soft: #0e1117;
    --surface: #12161f;
    --surface-2: #171c27;
    --surface-3: #1d2330;
    --text: #eef1f7;
    --text-dim: #98a0b0;
    --text-mute: #6b7385;
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(255, 255, 255, .13);
    --accent: #7c5cff;
    --accent-2: #36d1ff;
    --accent-soft: rgba(124, 92, 255, .16);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-1: 0 2px 10px rgba(0, 0, 0, .28);
    --shadow-2: 0 18px 44px rgba(0, 0, 0, .45);
    --shadow-glow: 0 12px 40px rgba(124, 92, 255, .28);
    --shell: 1560px;

    color: var(--text);
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
                 "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
    background:
        radial-gradient(1100px 520px at 82% -8%, rgba(124, 92, 255, .16), transparent 62%),
        radial-gradient(820px 460px at 6% 2%, rgba(54, 209, 255, .10), transparent 62%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.wp-home ::selection { background: rgba(124, 92, 255, .45); color: #fff; }

body.wp-home :focus-visible {
    outline: 2px solid rgba(124, 92, 255, .8);
    outline-offset: 2px;
    border-radius: 8px;
}

/* 跳转链接（键盘可达性） */
body.wp-home .wp-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: top .2s ease;
}
body.wp-home .wp-skip:focus { top: 12px; }


/* ============================================================
   分类条：分组 + 组内 chips（已移至 header.css 全局作用域，v6 起内页共用）
   ============================================================ */

/* ============================================================
   主体骨架
   ============================================================ */
body.wp-home .wp-main {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px 64px;
}

body.wp-home .wp-notice {
    margin: 14px 0 0;
    max-width: none;
    border-radius: 12px;
    background: rgba(255, 176, 32, .1);
    border: 1px solid rgba(255, 176, 32, .3);
    color: #ffcf7a;
}

/* ============================================================
   Hero：左文案 / 右大图
   ============================================================ */
body.wp-home .wp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 42px;
    align-items: center;
    /* 高度受控：保证 1280×800 视口内首屏就能看到第一排壁纸卡 */
    padding: 22px 0 18px;
    min-height: 0;
    border-radius: 0;
    overflow: visible;
    isolation: auto;
}

body.wp-home .wp-hero-copy { max-width: 640px; }

body.wp-home .wp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-strong);
    color: #d9d3ff;
    font-size: 12px;
    letter-spacing: .3px;
}
body.wp-home .wp-hero-eyebrow i { font-size: 15px; color: #ffd479; }

body.wp-home .wp-hero-title {
    margin: 0 0 12px;
    font-size: clamp(29px, 3.5vw, 46px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: .5px;
    text-shadow: none;
    color: var(--text);
}
body.wp-home .wp-hero-title em {
    font-style: normal;
    background: linear-gradient(96deg, #a78bff 8%, #6ee7f7 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.wp-home .wp-hero-sub {
    margin: 0 0 18px;
    max-width: 560px;
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.85;
    text-shadow: none;
}

/* Hero 内的站内搜索 */
body.wp-home .wp-hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    padding: 6px 6px 6px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-1);
    transition: border-color .18s ease, box-shadow .18s ease;
}
body.wp-home .wp-hero-search:focus-within {
    border-color: rgba(124, 92, 255, .6);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .14);
}
body.wp-home .wp-hero-search > i { font-size: 19px; color: var(--text-mute); flex: none; }
body.wp-home .wp-hero-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 14px;
    padding: 10px 0;
}
body.wp-home .wp-hero-search input::placeholder { color: var(--text-mute); }
body.wp-home .wp-hero-search button {
    flex: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 20px;
    background: linear-gradient(120deg, var(--accent), rgba(54, 209, 255, .9));
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .18s ease, transform .18s ease;
}
body.wp-home .wp-hero-search button:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* 数据点 */
body.wp-home .wp-hero-facts {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-dim);
    font-size: 12.5px;
}
body.wp-home .wp-hero-facts li { display: flex; flex-direction: column; gap: 3px; }
body.wp-home .wp-hero-facts b {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
body.wp-home .wp-hero-facts span { color: var(--text-mute); }

/* Hero 视觉区 */
body.wp-home .wp-hero-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

body.wp-home .wp-hero-visual { position: relative; }

body.wp-home .wp-hero-shot {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    text-decoration: none;
    isolation: isolate;
}
body.wp-home .wp-hero-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
    display: block;
}
body.wp-home .wp-hero-shot:hover img { transform: scale(1.04); }
body.wp-home .wp-hero-shot-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0) 42%, rgba(8, 10, 16, .82) 100%);
}
body.wp-home .wp-hero-shot-cap {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 262px 14px 18px;
    color: #fff;
}
body.wp-home .wp-hero-shot-cap strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.wp-home .wp-hero-shot-cap em {
    font-style: normal;
    font-size: 12px;
    color: rgba(255, 255, 255, .68);
}

/* 今日精选缩略：叠在主图右下角，不额外占垂直空间 */
body.wp-home .wp-hero-strip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 8px;
}
body.wp-home .wp-hero-thumb {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, .22);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
    transition: transform .2s ease, border-color .2s ease;
}
body.wp-home .wp-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .88;
    transition: opacity .25s ease, transform .4s ease;
}
body.wp-home .wp-hero-thumb:hover { transform: translateY(-2px); border-color: rgba(124, 92, 255, .45); }
body.wp-home .wp-hero-thumb:hover img { opacity: 1; transform: scale(1.05); }

body.wp-home .wp-hero-thumb-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    color: var(--text-dim);
    font-size: 9px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .28), rgba(54, 209, 255, .14));
    border-color: rgba(124, 92, 255, .42);
}
body.wp-home .wp-hero-thumb-more i { font-size: 17px; color: #cfc2ff; }
body.wp-home .wp-hero-thumb-more:hover { color: #fff; }

/* ============================================================
   精选分类（零请求的渐变图标卡）
   ============================================================ */
body.wp-home .wp-quick {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 2px 0 6px;
}

body.wp-home .wp-quick-card {
    --h: calc(252 + var(--qi) * 22);
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 15px 15px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background:
        linear-gradient(150deg,
            hsl(var(--h) 62% 22% / .85),
            hsl(var(--h) 42% 12% / .92) 62%,
            rgba(18, 22, 31, .95));
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body.wp-home .wp-quick-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--h) 90% 65% / .22), transparent 68%);
    pointer-events: none;
}
body.wp-home .wp-quick-card:hover {
    transform: translateY(-3px);
    border-color: hsl(var(--h) 80% 65% / .45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
}

body.wp-home .wp-quick-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: hsl(var(--h) 85% 65% / .16);
    color: hsl(var(--h) 90% 76%);
    font-size: 20px;
}
body.wp-home .wp-quick-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.wp-home .wp-quick-go {
    margin-left: auto;
    color: var(--text-mute);
    font-size: 17px;
    opacity: 0;
    transform: translateX(-4px);
    transition: .2s ease;
}
body.wp-home .wp-quick-card:hover .wp-quick-go { opacity: 1; transform: none; }

/* ============================================================
   图墙
   ============================================================ */
body.wp-home .wp-wall { padding-top: 26px; }

body.wp-home .wp-wall-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
body.wp-home .wp-wall-title h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.wp-home .wp-wall-title h2::before {
    content: '';
    width: 4px;
    height: 19px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
body.wp-home .wp-wall-sub {
    margin: 7px 0 0;
    font-size: 12.5px;
    color: var(--text-mute);
}
body.wp-home .wp-wall-sub b { color: var(--text-dim); font-weight: 600; }

body.wp-home .wp-wall-tools { display: flex; align-items: center; gap: 10px; }

body.wp-home .wp-density {
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
}
body.wp-home .wp-density button {
    width: 30px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-mute);
    font-size: 12px;
    cursor: pointer;
    transition: .16s ease;
}
body.wp-home .wp-density button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
body.wp-home .wp-density button.is-active {
    color: #fff;
    background: rgba(124, 92, 255, .35);
}

body.wp-home .wp-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 33px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .045);
    color: var(--text-dim);
    font-size: 12.5px;
    cursor: pointer;
    transition: .18s ease;
}
body.wp-home .wp-tool-btn:hover {
    color: #fff;
    border-color: rgba(124, 92, 255, .5);
    background: rgba(124, 92, 255, .16);
}
body.wp-home .wp-tool-btn i { font-size: 15px; color: var(--accent-2); }

/* 瀑布流列数 */
body.wp-home .wp-gallery { column-count: 4; column-gap: 20px; }
body.wp-home .wp-gallery.cols-3 { column-count: 3; }
body.wp-home .wp-gallery.cols-2 { column-count: 2; }

@media (max-width: 1280px) {
    body.wp-home .wp-gallery { column-count: 3; }
    body.wp-home .wp-gallery.cols-4 { column-count: 3; }
}
@media (max-width: 900px) {
    body.wp-home .wp-gallery,
    body.wp-home .wp-gallery.cols-4,
    body.wp-home .wp-gallery.cols-3 { column-count: 2; column-gap: 14px; }
}
@media (max-width: 560px) {
    body.wp-home .wp-gallery,
    body.wp-home .wp-gallery.cols-4,
    body.wp-home .wp-gallery.cols-3,
    body.wp-home .wp-gallery.cols-2 { column-count: 1; }
}

/* 卡片 */
body.wp-home .wp-card {
    position: relative;
    break-inside: avoid;
    margin: 0 0 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: none;
    cursor: default;
    opacity: 0;
    transform: translateY(12px);
    animation: wpFadeUp .55s cubic-bezier(.2, .7, .2, 1) forwards;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
@media (max-width: 560px) {
    body.wp-home .wp-card { margin-bottom: 14px; }
}
body.wp-home .wp-card:hover {
    border-color: rgba(124, 92, 255, .38);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
    z-index: 2;
}
@keyframes wpFadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    body.wp-home .wp-card { animation: none; opacity: 1; transform: none; }
    body.wp-home .wp-card:hover { transform: none; }
}

/* 图片区：加载前骨架微光 */
body.wp-home .wp-card-media {
    position: relative;
    display: block;
    line-height: 0;
    background: #10141c;
    overflow: hidden;
}
body.wp-home .wp-card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #12161f 28%, #1b2130 50%, #12161f 72%);
    background-size: 220% 100%;
    animation: wpShimmer 1.5s linear infinite;
}
@keyframes wpShimmer {
    from { background-position: 120% 0; }
    to   { background-position: -120% 0; }
}
body.wp-home .wp-card.is-ready .wp-card-media::before { display: none; }

body.wp-home .wp-card-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    /* 未拿到原始尺寸的图源按 4:3 预留，有尺寸的由内联 aspect-ratio 覆盖 */
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
body.wp-home .wp-card-media img.is-loaded { opacity: 1; }
body.wp-home .wp-card-media img.is-error { opacity: .18; filter: grayscale(1); }
body.wp-home .wp-card:hover .wp-card-media img.is-loaded { transform: scale(1.025); }

/* 悬浮操作 */
body.wp-home .wp-card-acts {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
body.wp-home .wp-card:hover .wp-card-acts,
body.wp-home .wp-card:focus-within .wp-card-acts { opacity: 1; transform: none; }
@media (hover: none) {
    body.wp-home .wp-card-acts { opacity: 1; transform: none; }
}

body.wp-home .wp-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(12, 14, 20, .62);
    color: #fff;
    font-size: 17px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: .18s ease;
}
body.wp-home .wp-ic:hover {
    background: rgba(124, 92, 255, .9);
    border-color: transparent;
    transform: translateY(-1px);
}
body.wp-home .wp-ic.is-faved {
    color: #ffce5c;
    border-color: rgba(255, 206, 92, .55);
    background: rgba(255, 206, 92, .16);
}

/* 信息条（不遮挡图片） */
body.wp-home .wp-card-info {
    position: static;
    padding: 11px 13px 13px;
    background: none;
    color: var(--text);
    transform: none;
    opacity: 1;
    transition: none;
}
body.wp-home .wp-card:hover .wp-card-info { transform: none; opacity: 1; }

body.wp-home .wp-card-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.wp-home .wp-card:hover .wp-card-title { color: #fff; }

body.wp-home .wp-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    font-size: 11.5px;
    color: var(--text-mute);
}
body.wp-home .wp-card-cat {
    flex: none;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(124, 92, 255, .14);
    color: #b7a6ff;
    border: 1px solid rgba(124, 92, 255, .22);
}
body.wp-home .wp-card-author {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   加载更多 / 空态
   ============================================================ */
body.wp-home .wp-more { gap: 12px; margin-top: 26px; }

body.wp-home .wp-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 26px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, .045);
    color: var(--text);
    font-size: 13.5px;
    transition: .2s ease;
}
body.wp-home .wp-btn-more i { font-size: 16px; color: var(--accent-2); }
body.wp-home .wp-btn-more:hover {
    border-color: rgba(124, 92, 255, .55);
    background: rgba(124, 92, 255, .16);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(124, 92, 255, .22);
}
body.wp-home .wp-btn-more[hidden] { display: none; }

body.wp-home .wp-loader { font-size: 13px; color: var(--text-dim); }
body.wp-home .wp-end { font-size: 12px; color: var(--text-mute); letter-spacing: 2px; }

body.wp-home .wp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 16px;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, .02);
    color: var(--text-dim);
}
body.wp-home .wp-empty-state[hidden] { display: none; }
body.wp-home .wp-empty-state i { font-size: 34px; color: rgba(124, 92, 255, .7); }
body.wp-home .wp-empty-state p { margin: 0; font-size: 13px; }

/* ============================================================
   主题合集条
   ============================================================ */
body.wp-home .wp-cols { margin-top: 44px; }
body.wp-home .wp-cols-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
body.wp-home .wp-cols-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
}
body.wp-home .wp-cols-head h2::before {
    content: '';
    width: 4px;
    height: 17px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
body.wp-home .wp-cols-head a {
    font-size: 12.5px;
    color: var(--text-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color .18s ease;
}
body.wp-home .wp-cols-head a:hover { color: #fff; }

body.wp-home .wp-cols-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
body.wp-home .wp-col-link {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(124, 92, 255, .1), rgba(18, 22, 31, .96) 55%);
    text-decoration: none;
    color: var(--text);
    transition: .2s ease;
}
body.wp-home .wp-col-link:hover {
    border-color: rgba(124, 92, 255, .45);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .38);
}
body.wp-home .wp-col-link strong { font-size: 16px; font-weight: 700; }
body.wp-home .wp-col-link span {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-mute);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   页脚（已移至 wallpaper.css 全局作用域，供全站页脚共用）
   ============================================================ */

/* ============================================================
   灯箱 / 返回顶部 / 广告位
   ============================================================ */
body.wp-home .wp-lb { border-radius: 18px; border: 1px solid var(--line-strong); }
body.wp-home .wp-lb-bar { background: #0f131b; border-bottom: 1px solid var(--line); }
body.wp-home .wp-lb-cap { background: #0f131b; border-top: 1px solid var(--line); }
body.wp-home .wp-lb-stage { background: #06080c; }

body.wp-home .wp-totop {
    width: 42px;
    height: 42px;
    right: 20px;
    bottom: 20px;
    background: rgba(18, 22, 31, .9);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 21px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
body.wp-home .wp-totop:hover {
    background: rgba(124, 92, 255, .85);
    color: #fff;
    transform: translateY(-2px);
}

body.wp-home .wp-ad-slot { max-width: var(--shell); margin: 24px auto 0; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
    body.wp-home .wp-hero { gap: 32px; padding: 36px 0 32px; }
    body.wp-home .wp-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    body.wp-home .wp-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 30px 0 26px;
    }
    body.wp-home .wp-hero-copy { max-width: none; }
    body.wp-home .wp-hero-sub { max-width: none; }
    body.wp-home .wp-hero-shot { aspect-ratio: 2 / 1; }
    body.wp-home .wp-hero-facts { gap: 24px; }
}

@media (max-width: 760px) {
    body.wp-home .wp-main { padding: 0 16px 48px; }
    body.wp-home .wp-hero { padding: 18px 0 14px; gap: 18px; }
    body.wp-home .wp-hero-eyebrow { margin-bottom: 12px; padding: 5px 11px; font-size: 11.5px; }
    body.wp-home .wp-hero-title { font-size: 25px; margin-bottom: 10px; }
    body.wp-home .wp-hero-title br { display: none; }
    body.wp-home .wp-hero-sub { font-size: 13px; line-height: 1.75; margin-bottom: 14px; }
    body.wp-home .wp-hero-search { margin-bottom: 14px; padding: 4px 4px 4px 13px; }
    body.wp-home .wp-hero-search button { padding: 9px 16px; font-size: 13px; }
    body.wp-home .wp-hero-facts { gap: 20px; }
    body.wp-home .wp-hero-facts b { font-size: 18px; }
    body.wp-home .wp-hero-strip { right: 10px; bottom: 10px; gap: 6px; }
    body.wp-home .wp-hero-thumb { width: 44px; height: 44px; border-radius: 9px; }
    body.wp-home .wp-hero-thumb-more span { display: none; }
    body.wp-home .wp-hero-shot-cap { padding-right: 160px; }
    body.wp-home .wp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    body.wp-home .wp-quick-card { padding: 13px; }
    body.wp-home .wp-wall-head { flex-wrap: wrap; align-items: flex-start; }
    body.wp-home .wp-wall-title h2 { font-size: 19px; }
    body.wp-home .wp-cols-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
    body.wp-home .wp-hero-strip { right: 8px; bottom: 8px; gap: 5px; }
    body.wp-home .wp-hero-thumb { width: 38px; height: 38px; border-radius: 8px; }
    body.wp-home .wp-hero-thumb-more { display: none; }
    body.wp-home .wp-hero-shot-cap { padding-right: 148px; }
    body.wp-home .wp-hero-facts b { font-size: 17px; }
}

/* 换一批时的图墙过渡 */
body.wp-home .wp-gallery.is-swapping {
    opacity: .32;
    transition: opacity .18s ease;
}

/* 触屏设备不再依赖 hover，信息条与操作区直接常显 */
@media (hover: none) {
    body.wp-home .wp-card-title { color: #fff; }
}

/* ============================================================
   精选卡张数 + 热门标签云（参考 wallpapers.com Popular Wallpapers）
   ============================================================ */
body.wp-home .wp-quick-n {
    flex: none;
    font-size: 11px;
    white-space: nowrap;
    color: hsl(var(--h) 60% 74% / .85);
    font-variant-numeric: tabular-nums;
}
body.wp-home .wp-tags { margin: 20px 0 4px; }
body.wp-home .wp-tags-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
body.wp-home .wp-tags-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
body.wp-home .wp-tags-head a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12.5px;
    color: var(--text-mute, #8b93a7);
    text-decoration: none;
    transition: .16s ease;
}
body.wp-home .wp-tags-head a:hover { color: var(--text, #eef1f8); }
body.wp-home .wp-tags-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
body.wp-home .wp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line, rgba(255, 255, 255, .09));
    color: var(--text-dim, #a9b1c5);
    font-size: 13px;
    text-decoration: none;
    transition: .16s ease;
}
body.wp-home .wp-tag b {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-mute, #8b93a7);
    background: rgba(255, 255, 255, .06);
    font-variant-numeric: tabular-nums;
}
body.wp-home .wp-tag:hover {
    color: var(--text, #eef1f8);
    border-color: rgba(124, 92, 255, .5);
    background: rgba(124, 92, 255, .12);
    transform: translateY(-1px);
}
body.wp-home .wp-tag:hover b { color: #cfc2ff; background: rgba(124, 92, 255, .2); }

/* ---- 今日壁纸（每日一图横幅） ---- */
body.wp-home .wp-daily {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: center;
    max-width: 1280px;
    margin: 26px auto 0;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, rgba(124, 92, 255, .10), rgba(79, 110, 247, .06) 55%, transparent);
    overflow: hidden;
}
body.wp-home .wp-daily-media {
    position: relative;
    display: block;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
}
body.wp-home .wp-daily-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
body.wp-home .wp-daily:hover .wp-daily-media img { transform: scale(1.04); }
body.wp-home .wp-daily-media-grad {
    position: absolute; inset: auto 0 0 0; height: 46%;
    background: linear-gradient(180deg, transparent, rgba(6, 8, 14, .68));
}
body.wp-home .wp-daily-date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; letter-spacing: .5px;
    color: #c9b8ff;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, .38);
    background: rgba(124, 92, 255, .12);
}
body.wp-home .wp-daily-title {
    margin: 12px 0 4px;
    font-size: 22px; font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.wp-home .wp-daily-meta { margin: 0 0 16px; font-size: 13px; color: #8f97ab; }
body.wp-home .wp-daily-acts { display: flex; gap: 10px; flex-wrap: wrap; }
body.wp-home .wp-daily-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px; font-weight: 600;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #7c5cff, #4f6ef7);
    box-shadow: 0 6px 18px rgba(124, 92, 255, .32);
    transition: transform .18s ease, box-shadow .18s ease;
}
body.wp-home .wp-daily-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 92, 255, .42); }
body.wp-home .wp-daily-btn.ghost {
    background: transparent; color: #cdd4e4;
    border: 1px solid var(--line-strong);
    box-shadow: none;
}
body.wp-home .wp-daily-btn.ghost:hover { border-color: rgba(124, 92, 255, .55); color: #fff; }

@media (max-width: 900px) {
    body.wp-home .wp-daily { grid-template-columns: 1fr; gap: 14px; }
    body.wp-home .wp-daily-media { height: 180px; }
    body.wp-home .wp-daily-title { font-size: 18px; }
}

/* ---- 大家在搜（首页热词榜） ---- */
body.wp-home .wp-hotsearch {
    max-width: 1280px;
    margin: 22px auto 0;
    padding: 18px 20px 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--panel, rgba(255,255,255,.02));
}
body.wp-home .wp-hotsearch-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
body.wp-home .wp-hotsearch-head h2 {
    margin: 0; font-size: 17px; font-weight: 700; color: #fff;
    display: inline-flex; align-items: center; gap: 8px;
}
body.wp-home .wp-hotsearch-head h2 i { color: #ff7a59; font-size: 20px; }
body.wp-home .wp-hotsearch-head a {
    font-size: 13px; color: #8f97ab; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
body.wp-home .wp-hotsearch-head a:hover { color: #c9b8ff; }
body.wp-home .wp-hotsearch-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px 14px;
}
body.wp-home .wp-hotsearch-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
    color: #cdd4e4; text-decoration: none;
    font-size: 13.5px;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
    overflow: hidden;
}
body.wp-home .wp-hotsearch-item b {
    flex: none;
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #8f97ab;
    font-size: 11px; font-weight: 700;
}
body.wp-home .wp-hotsearch-item.is-top b {
    background: linear-gradient(135deg, #7c5cff, #4f6ef7);
    color: #fff;
}
body.wp-home .wp-hotsearch-item span {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.wp-home .wp-hotsearch-item:hover {
    border-color: rgba(124,92,255,.5);
    background: rgba(124,92,255,.08);
    transform: translateY(-1px);
    color: #fff;
}
@media (max-width: 900px) {
    body.wp-home .wp-hotsearch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
