
/* ============================================================
   文库页面样式（自包含，不依赖其他 CSS 文件）
   20260919b 重制：卡片高度严格跟随内容（杜绝空白）·
   克制精致的亮蓝玻璃风 · 全端响应式
   ============================================================ */

/* ---------- 顶部横幅 ---------- */
.wk-banner {
    padding: 128px 20px 76px;
    text-align: center;
    color: #fff;
    background: var(--grad-primary, linear-gradient(135deg,#06b6d4,#3b82f6));
    background-size: 200% 200%;
    animation: wkFlow 16s ease infinite;
    position: relative;
    overflow: hidden;
}
@keyframes wkFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.wk-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8,47,73,.06) 0%, rgba(8,47,73,.14) 60%, rgba(8,47,73,.24) 100%),
        radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.14) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}
.wk-banner::after {
    content: '';
    position: absolute; inset: -10%;
    background:
        radial-gradient(36% 46% at 14% 24%, rgba(255,255,255,.20) 0%, transparent 70%),
        radial-gradient(32% 42% at 86% 20%, rgba(165,243,252,.26) 0%, transparent 70%),
        radial-gradient(46% 54% at 70% 100%, rgba(191,219,254,.20) 0%, transparent 72%);
    pointer-events: none;
    z-index: 1;
}
#wkParticles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.wk-banner-inner { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; }

.wk-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0 auto 18px;
    padding: 7px 20px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
    color: #f0fdff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.wk-badge i { color: #a5f3fc; }

.wk-banner h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900; letter-spacing: 1px;
    margin: 0 0 12px;
    display: flex; width: 100%; justify-content: center; align-items: center; gap: 14px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(8,47,73,.35);
}
.wk-banner h1 i { font-size: .8em; color: #cffafe; }
#wkType { font-size: 1.02rem; color: rgba(255,255,255,.92); margin: 2px 0 30px; letter-spacing: 1.5px; font-weight: 500; min-height: 1.7em; text-shadow: 0 2px 8px rgba(8,47,73,.3); }
#wkType .wk-caret { display: inline-block; width: 2px; height: 1.05em; background: #a5f3fc; vertical-align: -2px; margin-left: 3px; animation: wkBlink .8s steps(1) infinite; }
@keyframes wkBlink { 50% { opacity: 0; } }

/* 统计卡片 */
.wk-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}
.wk-stat {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 18px 12px 14px;
    text-align: center;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.wk-stat:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.55);
}
.wk-stat::after {
    content: '';
    position: absolute; top: -38px; right: -38px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(103,232,249,.30), transparent 70%);
    pointer-events: none;
}
.wk-stat i {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 7px;
    font-size: 1.05rem;
    border-radius: 12px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.35);
}
.wk-stat-num { font-size: 1.75rem; font-weight: 800; display: block; line-height: 1.15; text-shadow: 0 2px 10px rgba(8,47,73,.28); }
.wk-stat-lbl { font-size: .76rem; letter-spacing: 2px; opacity: .9; margin-top: 3px; display: block; }

/* ---------- 主容器 ---------- */
.wk-wrap {
    position: relative;
    overflow-x: clip;
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 20px 76px;
}
.wk-wrap::after {
    content: '';
    position: absolute; z-index: -1;
    top: 360px; right: -160px; width: 360px; height: 360px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(30px);
    background: radial-gradient(circle, rgba(var(--color-primary-rgb, 6,182,212), .18), transparent 70%);
}

/* ---------- 分类标签 ---------- */
.wk-tabs {
    position: relative;
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 20px;
}
.wk-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 17px; border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.85);
    color: #334155; font-size: 13.5px; font-weight: 600;
    cursor: pointer; user-select: none;
    transition: transform .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease, background .22s ease;
    box-shadow: 0 3px 12px rgba(8,47,73,.06), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.wk-tab:hover { color: var(--color-primary, #06b6d4); border-color: rgba(var(--color-primary-rgb, 6,182,212), .4); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--color-primary-rgb, 6,182,212), .16); }
.wk-tab.active {
    background: var(--grad-primary, linear-gradient(135deg,#06b6d4,#3b82f6));
    color: #fff; border-color: transparent;
    box-shadow: 0 8px 22px rgba(var(--color-primary-rgb, 6,182,212), .32);
    text-shadow: 0 1px 3px rgba(8,47,73,.3);
}
.wk-tab i { font-size: 12px; }
.wk-tab b {
    font-size: 11px; font-weight: 700; min-width: 19px; text-align: center;
    background: rgba(100,116,139,.12); color: #64748b;
    border-radius: 999px; padding: 1px 7px;
}
.wk-tab.active b { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- 工具栏 ---------- */
.wk-toolbar {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(8,47,73,.07), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 12px 14px; margin-bottom: 26px;
}
.wk-search {
    flex: 1; min-width: 200px;
    display: flex; align-items: center;
    background: rgba(255,255,255,.82); border: 1px solid rgba(226,232,240,.9);
    border-radius: 12px; padding: 9px 14px;
    transition: all .22s ease;
}
.wk-search:focus-within { border-color: var(--color-primary, #06b6d4); background: #fff; box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 6,182,212), .13); }
.wk-search i { color: var(--color-primary, #06b6d4); font-size: 13.5px; margin-right: 8px; }
.wk-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 13.5px; color: #334155; }
.wk-search input::placeholder { color: #94a3b8; }
.wk-search .wk-clear { display: none; border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 13px; padding: 2px 4px; }
.wk-search .wk-clear.show { display: block; }
.wk-sorts { display: flex; gap: 7px; flex-wrap: wrap; }
.wk-sort-btn {
    padding: 8px 14px; border-radius: 11px;
    background: rgba(255,255,255,.8); border: 1px solid rgba(226,232,240,.9);
    color: #475569; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .22s ease;
}
.wk-sort-btn:hover { color: var(--color-primary, #06b6d4); border-color: var(--color-primary, #06b6d4); }
.wk-sort-btn.active { background: var(--grad-primary, linear-gradient(135deg,#06b6d4,#3b82f6)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(var(--color-primary-rgb, 6,182,212), .3); }
.wk-result-count {
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
    color: var(--color-primary, #06b6d4);
    background: rgba(var(--color-primary-rgb, 6,182,212), .10);
    border: 1px solid rgba(var(--color-primary-rgb, 6,182,212), .18);
    padding: 6px 13px; border-radius: 999px;
}

/* ---------- 卡片网格（关键：行高 min-content，杜绝单卡片被拉高） ---------- */
.wk-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    grid-auto-rows: min-content;
    align-content: start;
    align-items: start;
    gap: 20px;
}

/* ---------- 文档卡片 ---------- */
.wk-card {
    position: relative;
    align-self: start;          /* 防御：任何外层都不拉伸卡片 */
    height: auto !important;     /* 防御：高度永远跟随内容 */
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(8,47,73,.06);
    transition: transform .3s cubic-bezier(.22,.68,.35,1), box-shadow .3s ease, border-color .3s ease;
    animation: wkUp .5s ease both;
}
@keyframes wkUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.wk-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--color-primary-rgb, 6,182,212), .4);
    box-shadow: 0 18px 40px rgba(8,47,73,.13), 0 8px 24px rgba(var(--color-primary-rgb, 6,182,212), .12);
}
.wk-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-primary, linear-gradient(135deg,#06b6d4,#3b82f6));
    opacity: 0; transition: opacity .3s ease; z-index: 4;
}
.wk-card:hover::before { opacity: 1; }

/* 封面：固定高度，内容绝不溢出 */
.wk-cover {
    position: relative; height: 168px; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}
.wk-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,47,73,0) 58%, rgba(8,47,73,.14));
    pointer-events: none; z-index: 1;
}
.wk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.wk-card:hover .wk-cover img { transform: scale(1.06); }
.wk-cover-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 8px; }
.wk-cover-ph i { font-size: 44px; text-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wk-cover-ph em { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 2px; background: rgba(255,255,255,.22); padding: 3px 11px; border-radius: 999px; }

/* 格式徽章：左上小巧毛玻璃胶囊 */
.wk-fmt {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    padding: 3px 10px; border-radius: 8px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
    background: rgba(15,23,42,.62); color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(15,23,42,.25);
}
.wk-fmt.pdf  { background: linear-gradient(135deg,#f87171,#ef4444); }
.wk-fmt.epub { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.wk-fmt.doc  { background: linear-gradient(135deg,#60a5fa,#3b82f6); }
.wk-fmt.txt  { background: linear-gradient(135deg,#34d399,#10b981); }
.wk-fmt.zip  { background: linear-gradient(135deg,#a78bfa,#8b5cf6); }
.wk-fmt.mobi { background: linear-gradient(135deg,#22d3ee,#06b6d4); }

/* 精选星标：左下角小玻璃块 */
.wk-featured {
    position: absolute; bottom: 10px; left: 10px; z-index: 3;
    width: 27px; height: 27px; border-radius: 9px;
    background: rgba(15,23,42,.5); color: #fbbf24;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

/* 卡片正文：块级流式布局 + 固定间距，任何情况下都不会出现空白 */
.wk-card-body { display: block; padding: 15px 16px 16px; min-height: 0; }
.wk-title { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.45; margin: 0 0 8px; }
.wk-title a {
    color: inherit; text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .22s ease;
}
.wk-title a:hover { color: var(--color-primary, #06b6d4); }
.wk-meta { display: flex; gap: 14px; font-size: 12px; color: #94a3b8; margin: 0 0 10px; }
.wk-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.wk-meta i { font-size: 11px; color: var(--color-primary, #06b6d4); }
.wk-desc {
    font-size: 12.8px; color: #64748b; line-height: 1.65;
    margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 11px; }
.wk-tag-chip {
    font-size: 11px; color: var(--color-primary, #06b6d4);
    background: rgba(var(--color-primary-rgb, 6,182,212), .08);
    border: 1px solid rgba(var(--color-primary-rgb, 6,182,212), .16);
    padding: 2px 9px; border-radius: 999px;
}

/* 评分与数据条 */
.wk-stats-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; margin: 0 0 11px;
    border-top: 1px solid #f1f5f9;
}
.wk-stars { color: #fbbf24; font-size: 12px; letter-spacing: 2px; }
.wk-stars .wk-empty { opacity: .22; }
.wk-nums { display: flex; gap: 13px; font-size: 12px; color: #94a3b8; }
.wk-nums span { display: inline-flex; align-items: center; gap: 5px; }
.wk-nums i { font-size: 11px; color: #cbd5e1; }

/* 操作区 */
.wk-actions { display: flex; align-items: center; gap: 8px; margin: 0; }
.wk-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 10px; border-radius: 11px;
    background: #fff; border: 1.5px solid #e2e8f0;
    color: #334155; font-size: 13px; font-weight: 700; text-decoration: none;
    transition: all .22s ease; cursor: pointer;
}
.wk-btn:hover { border-color: var(--color-primary, #06b6d4); color: var(--color-primary, #06b6d4); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(var(--color-primary-rgb, 6,182,212), .18); }
.wk-btn:active { transform: translateY(0) scale(.98); }
.wk-btn.wk-btn-dl {
    background: var(--grad-primary, linear-gradient(135deg,#06b6d4,#3b82f6));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb, 6,182,212), .28);
}
.wk-btn.wk-btn-dl:hover { filter: brightness(1.06); color: #fff; box-shadow: 0 8px 20px rgba(var(--color-primary-rgb, 6,182,212), .4); }

/* 价格胶囊（封面右上，小巧克制，与格式徽章对称） */
.wk-price-badge {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff; padding: 3px 11px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800;
    box-shadow: 0 3px 10px rgba(245,158,11,.35);
    backdrop-filter: blur(4px);
}
.wk-price-badge.wk-free {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 3px 10px rgba(16,185,129,.35);
}

/* 封面价格角标（斜切式，收敛尺寸） */
.wk-corner-price {
    position: absolute; top: 0; right: 0; z-index: 3;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff; padding: 5px 12px 6px 15px;
    font-size: 12px; font-weight: 800;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
    box-shadow: -2px 2px 10px rgba(245,158,11,.28);
}
.wk-corner-price.wk-free {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: -2px 2px 10px rgba(16,185,129,.28);
}

/* ---------- 空状态 / 加载更多 ---------- */
.wk-empty {
    grid-column: 1 / -1;
    align-self: start;
    text-align: center; padding: 72px 20px; color: #94a3b8;
    background: rgba(255,255,255,.75);
    border: 2px dashed rgba(var(--color-primary-rgb, 6,182,212), .25); border-radius: 16px;
    box-shadow: 0 6px 22px rgba(8,47,73,.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.wk-empty i { font-size: 52px; color: var(--color-primary, #06b6d4); opacity: .5; display: block; margin-bottom: 12px; }
.wk-empty h3 { color: #334155; font-weight: 700; margin: 10px 0 6px; }
.wk-empty p { font-size: 13.5px; margin: 0; }
.wk-loadmore {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    margin: 30px auto 0; max-width: 280px; width: 100%;
    padding: 12px 20px; border-radius: 13px;
    background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.85);
    color: #475569; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all .22s ease; box-shadow: 0 5px 18px rgba(8,47,73,.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.wk-loadmore:hover { color: #fff; background: var(--grad-primary, linear-gradient(135deg,#06b6d4,#3b82f6)); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(var(--color-primary-rgb, 6,182,212), .32); }

/* ---------- 页脚 ---------- */
.footer {
    margin-top: 40px;
    padding: 50px 0 70px;
    text-align: center;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}
.footer > .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); opacity: .6; }
.footer p { color: rgba(0,0,0,.55); font-size: .9rem; letter-spacing: .5px; margin: 0; }
.footer-brand { font-size: 1.3rem; font-weight: 700; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; display: inline-block; }
.footer-slogan { font-size: .8rem; color: rgba(0,0,0,.4); margin-bottom: 20px; font-style: italic; }
.footer-divider { width: 60px; height: 2px; background: var(--grad-primary); border-radius: 2px; margin: 15px auto; opacity: .4; }
.footer-certs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 15px 0; }
.footer-cert { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 25px; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06); color: #334155; font-size: .8rem; text-decoration: none; transition: all .3s ease; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.footer-cert:hover { background: var(--grad-primary); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.12); border-color: transparent; }
.footer-cert i { font-size: .9rem; }
.footer-links { margin: 18px 0; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(0,0,0,.55); text-decoration: none; font-size: .85rem; transition: all .3s ease; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; }
.footer-links a:hover { color: var(--color-primary); background: rgba(255,255,255,.5); transform: translateY(-1px); }
.footer-links .sep { color: rgba(0,0,0,.15); font-size: .7rem; }
.footer-bottom { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,.06); }
.pets-container { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; padding-bottom: 10px; }
.pet { font-size: 1.5rem; display: inline-block; animation-duration: 2s; animation-iteration-count: infinite; transform-origin: bottom center; }
.pet:nth-child(1) { animation-delay: 0s; }
.pet:nth-child(2) { animation-delay: .15s; }
.pet:nth-child(3) { animation-delay: .3s; }
.pet:nth-child(4) { animation-delay: .45s; }
.pet:nth-child(5) { animation-delay: .6s; }
.pet:nth-child(6) { animation-delay: .75s; }
.pet:nth-child(7) { animation-delay: .9s; }
.pet-bounce { animation-name: petBounce; }
.pet-wiggle { animation-name: petWiggle; }
.pet-float { animation-name: petFloat; }
.pet-rainbow { animation-name: petRainbow; }
@keyframes petBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes petWiggle { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes petFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 33% { transform: translateY(-8px) rotate(3deg); } 66% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes petRainbow { 0%,100% { transform: translateY(0) scale(1); filter: hue-rotate(0deg); } 50% { transform: translateY(-10px) scale(1.1); filter: hue-rotate(180deg); } }
.myssl-badge { position: absolute; bottom: 10px; right: 15px; width: 80px; height: auto; line-height: 0; z-index: 2; }
.myssl-badge img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,.12); }
.myssl-badge:hover img { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0,0,0,.2); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .wk-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}
@media (max-width: 768px) {
    .wk-banner { padding: 104px 16px 52px; }
    .wk-badge { padding: 6px 15px; font-size: 10.5px; letter-spacing: 1.6px; margin-bottom: 13px; gap: 6px; }
    .wk-banner h1 { gap: 10px; margin-bottom: 10px; letter-spacing: .5px; }
    #wkType { font-size: .92rem; letter-spacing: 1px; margin: 2px 0 22px; }

    .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; max-width: 440px; }
    .wk-stat { padding: 15px 10px 12px; border-radius: 14px; }
    .wk-stat i { width: 38px; height: 38px; font-size: .98rem; border-radius: 11px; margin-bottom: 5px; }
    .wk-stat-num { font-size: 1.45rem; }
    .wk-stat-lbl { font-size: .7rem; letter-spacing: 1.5px; }

    .wk-wrap { padding: 24px 14px 56px; }

    /* 分类横滑：隐藏丑陋滚动条 + 边缘渐隐 + 吸附 */
    .wk-tabs {
        flex-wrap: nowrap; overflow-x: auto; gap: 9px;
        margin: 0 -14px 16px; padding: 4px 16px 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    }
    .wk-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .wk-tab { flex-shrink: 0; scroll-snap-align: start; }

    /* 工具栏纵向堆叠 */
    .wk-toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border-radius: 16px; }
    .wk-search { width: 100%; min-width: 0; }
    .wk-sorts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; width: 100%; }
    .wk-sort-btn { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 4px; }
    .wk-result-count { align-self: flex-end; }

    /* 手机端卡片单列全宽，信息更饱满 */
    .wk-grid { grid-template-columns: 1fr; gap: 14px; }
    .wk-cover { height: 190px; }
    .wk-card-body { padding: 14px 15px 15px; }

    .footer { padding: 36px 0 50px; }
    .footer-links { gap: 10px; }
    .myssl-badge { width: 64px; bottom: 5px; right: 8px; }
}
@media (max-width: 420px) {
    .wk-badge { letter-spacing: 1.2px; }
    .wk-stat-num { font-size: 1.32rem; }
    .wk-sort-btn { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .wk-banner,
    .wk-banner h1 i,
    #wkType .wk-caret,
    .wk-card,
    .pet { animation: none !important; }
}
