/*
Theme Name: PicWall Lite
Theme URI: https://picwall.example.com/
Author: PicWall Lite
Author URI: https://picwall.example.com/
Description: 极简壁纸资源站主题：左侧导航 + 顶栏搜索 + 瀑布流壁纸 + 分类筛选 + 详情下载页。GPL 开源，可自由修改。
Version: 1.2.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: picwall-lite
Tags: wallpaper, gallery, grid-layout, custom-colors, custom-menu, featured-images
*/

/* =========================================================
   1. 设计令牌
   ========================================================= */
:root {
  --pk-primary: #6A52FF;
  --pk-primary-hover: #5944DB;
  --pk-primary-soft: rgba(106, 82, 255, .08);
  --pk-primary-ring: rgba(106, 82, 255, .22);
  --pk-secondary: #3CE0B2;
  --pk-bg: #F7F8FC;
  --pk-bg-card: #FFFFFF;
  --pk-bg-muted: #EEF1F8;
  --pk-text: #12151F;
  --pk-text-2: #4E5567;
  --pk-text-3: #5E6573;
  --pk-border: #E4E7F0;
  --pk-border-strong: #D3D8E6;
  --pk-radius-sm: 6px;
  --pk-radius: 12px;
  --pk-radius-md: 12px;
  --pk-radius-lg: 16px;
  --pk-sidebar: 250px;
  --pk-topbar: 64px;
  --pk-sidebar-w: 300px;
  --pk-shadow-sm: 0 1px 2px rgba(16, 20, 34, .05);
  --pk-shadow-md: 0 8px 24px rgba(16, 20, 34, .06);
  --pk-shadow-primary: 0 8px 24px rgba(16, 20, 34, .06);
  --pk-transition: 180ms cubic-bezier(.22, 1, .36, 1);
  --pk-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --pk-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --pk-bg: #0B0D13;
  --pk-bg-card: #13161F;
  --pk-bg-muted: #1A1E2A;
  --pk-text: #EEF0F6;
  --pk-text-2: #A2A9BA;
  --pk-text-3: #7C8496;
  --pk-border: #222633;
  --pk-border-strong: #2C3242;
  --pk-primary: #6A52FF;
  --pk-primary-hover: #5944DB;
  --pk-primary-soft: rgba(139, 107, 255, .14);
  --pk-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --pk-shadow-md: 0 10px 28px rgba(0, 0, 0, .45);
  --pk-shadow-primary: 0 10px 28px rgba(0, 0, 0, .45);
}

/* =========================================================
   2. 基础重置
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pk-bg);
  color: var(--pk-text);
  font-family: var(--pk-font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--pk-transition), color var(--pk-transition);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
svg { flex: none; }
::selection { background: var(--pk-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--pk-primary); outline-offset: 2px; }
.pk-topsearch-input:focus-visible,
.pk-hero-search input:focus-visible,
.pk-banner-search input:focus-visible { outline: none; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); white-space: nowrap;
}
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }

.pk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  background: var(--pk-primary); color: #fff;
  font-size: 13.5px; font-weight: 600;
  box-shadow: none;
  transition: background-color var(--pk-transition);
}
.pk-btn:hover { background: var(--pk-primary-hover); }
.pk-btn:active { transform: scale(.98); }
.pk-btn-ghost { background: transparent; color: var(--pk-primary); border: 1px solid var(--pk-primary); box-shadow: none; }
.pk-btn-ghost:hover { background: var(--pk-primary-soft); color: var(--pk-primary); }
.pk-btn.is-disabled, .pk-btn:disabled { opacity: .55; cursor: default; transform: none; }

/* =========================================================
   3. 布局骨架
   ========================================================= */
.pk-shell { display: flex; min-height: 100vh; background: var(--pk-bg); }

.pk-side {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
  display: flex; flex-direction: column;
  width: var(--pk-sidebar);
  background: var(--pk-bg-card);
  border-right: 1px solid var(--pk-border);
  transition: transform var(--pk-transition);
}
.pk-side-brand {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--pk-topbar); padding: 0 18px 0 20px;
  border-bottom: 1px solid var(--pk-border);
  flex: none;
}
.pk-logo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.pk-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--pk-primary);
  color: #fff; font-size: 15px; font-weight: 600;
}
.pk-logo img { max-height: 40px; width: auto; }
.pk-side-close {
  display: none; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--pk-text-2);
}
.pk-side-close:hover { background: var(--pk-bg-muted); }

.pk-side-nav { flex: 1; overflow-y: auto; padding: 16px 8px 12px; }
.pk-menu-group { margin-bottom: 20px; }
.pk-menu-label {
  padding: 0 8px 8px; font-size: 11.5px; font-weight: 400;
  letter-spacing: 0; color: var(--pk-text-3);
}
.pk-menu-link {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; margin-bottom: 2px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--pk-text-2);
  white-space: nowrap; overflow: hidden;
  transition: background var(--pk-transition), color var(--pk-transition);
}
.pk-menu-link > span:not(.pk-menu-count):last-child { overflow: hidden; text-overflow: ellipsis; }
.pk-menu-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--pk-border-strong);
  transition: background var(--pk-transition), border-color var(--pk-transition);
}
.pk-menu-link:hover { background: var(--pk-bg-muted); color: var(--pk-text); }
.pk-menu-link.is-active { background: var(--pk-primary-soft); color: var(--pk-primary); }
.pk-menu-link.is-active .pk-menu-dot { background: var(--pk-primary); border-color: var(--pk-primary); }
.pk-menu-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--pk-text-3); }

.pk-side-foot {
  flex: none; padding: 16px 20px; border-top: 1px solid var(--pk-border);
  font-size: 11.5px; line-height: 1.7; color: var(--pk-text-3);
}
.pk-side-foot p { margin: 0; }
.pk-side-foot a { color: var(--pk-text-3); }

.pk-main {
  display: flex; flex-direction: column;
  flex: 1; min-width: 0; height: 100vh;
  margin-left: var(--pk-sidebar);
}

/* ---------- 顶栏 ---------- */
.pk-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: var(--pk-topbar); flex: none;
  padding: 0 32px;
  background: var(--pk-bg-card);
  border-bottom: 1px solid var(--pk-border);
}
.pk-burger {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--pk-text-2); border: 1px solid var(--pk-border);
}
.pk-burger:hover { background: var(--pk-bg-muted); }

.pk-topsearch { position: relative; flex: 1; max-width: 520px; }
.pk-topsearch-box {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 6px 0 12px;
  border-radius: 8px;
  background: var(--pk-bg-muted);
  border: 1px solid transparent;
  color: var(--pk-text-3);
  transition: border-color var(--pk-transition), box-shadow var(--pk-transition), background var(--pk-transition);
}
.pk-topsearch:focus-within .pk-topsearch-box {
  background: var(--pk-bg-card);
  border-color: var(--pk-primary);
  box-shadow: 0 0 0 4px var(--pk-primary-ring);
}
.pk-topsearch-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-size: 13.5px; color: var(--pk-text);
}
.pk-topsearch-input::placeholder { color: var(--pk-text-3); }
.pk-topsearch-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pk-topsearch-go {
  height: 32px; padding: 0 14px; border-radius: 8px;
  background: var(--pk-primary); color: #fff;
  font-size: 12.5px; font-weight: 600;
}
.pk-topsearch-go:hover { background: var(--pk-primary-hover); }

.pk-search-pop {
  display: none;
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50;
  padding: 14px 16px;
  background: var(--pk-bg-card);
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  box-shadow: var(--pk-shadow-md);
}
.pk-topsearch:focus-within .pk-search-pop { display: block; }
.pk-search-pop-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--pk-text-3); margin-bottom: 10px; }
.pk-search-pop-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-search-pop-tags a {
  padding: 4px 10px; border-radius: 6px;
  background: var(--pk-bg-muted); color: var(--pk-text-2);
  font-size: 12px; transition: color var(--pk-transition), background-color var(--pk-transition), border-color var(--pk-transition);
}
.pk-search-pop-tags a:hover { background: var(--pk-primary-soft); color: var(--pk-primary); }

.pk-topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pk-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  color: var(--pk-text-2); border: 1px solid var(--pk-border);
  transition: background var(--pk-transition), color var(--pk-transition);
}
.pk-icon-btn:hover { background: var(--pk-bg-muted); color: var(--pk-text); }
.pk-btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 8px;
  border: 1px solid var(--pk-border-strong);
  font-size: 13px; font-weight: 600; color: var(--pk-text-2);
  transition: border-color var(--pk-transition), color var(--pk-transition);
}
.pk-btn-login:hover { border-color: var(--pk-primary); color: var(--pk-primary); }
.pk-btn-login img { border-radius: 50%; }
.pk-social-login { display: flex; align-items: center; gap: 8px; }
.pk-social-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--pk-border-strong);
  font-size: 13px; font-weight: 600; color: var(--pk-text-2);
  transition: border-color var(--pk-transition), color var(--pk-transition);
}
.pk-social-btn svg { flex: none; }
.pk-social-qq:hover { border-color: #12B7F5; color: #12B7F5; }
.pk-social-wechat:hover { border-color: #07C160; color: #07C160; }

/* ---------- 语言切换 ---------- */
.pk-lang { position: relative; }
.pk-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--pk-border);
  background: transparent; color: var(--pk-text-2);
  font-size: 13px; font-weight: 600;
  transition: background var(--pk-transition), border-color var(--pk-transition), color var(--pk-transition);
}
.pk-lang-btn:hover { background: var(--pk-bg-muted); color: var(--pk-text); }
.pk-lang-flag { font-size: 14px; line-height: 1; }
.pk-lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  width: 200px; padding: 8px;
  background: var(--pk-bg-card); border: 1px solid var(--pk-border);
  border-radius: 12px; box-shadow: var(--pk-shadow-md);
}
.pk-lang-search { margin-bottom: 6px; }
.pk-lang-search input {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--pk-border); border-radius: 8px;
  background: var(--pk-bg-muted); outline: none;
  font-size: 13px; color: var(--pk-text);
}
.pk-lang-search input::placeholder { color: var(--pk-text-3); }
.pk-lang-list { list-style: none; margin: 0; padding: 0; }
.pk-lang-option {
  display: flex; align-items: center; gap: 9px; width: 100%;
  height: 38px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--pk-text-2); font-size: 13px;
  transition: background var(--pk-transition), color var(--pk-transition);
}
.pk-lang-option:hover { background: var(--pk-bg-muted); }
.pk-lang-option .pk-lang-label { flex: 1; text-align: left; }
.pk-lang-option.is-active { color: var(--pk-primary); font-weight: 600; }
.pk-lang-check { flex: none; color: var(--pk-primary); }

.pk-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; background: var(--pk-primary); color: #fff; font-weight: 600; line-height: 1; overflow: hidden; }

.pk-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }

/* ---------- 页面容器 ---------- */
.pk-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pk-sidebar-w);
  gap: 24px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 32px 40px;
}
.pk-content { min-width: 0; }
.pk-sidebar { min-width: 0; }

/* =========================================================
   4. 首页 Banner
   ========================================================= */
.pk-banner {
  position: relative;
  display: flex; align-items: center;
  min-height: 320px;
  border-radius: var(--pk-radius-lg);
  overflow: hidden;
  background: #14161F;
  box-shadow: var(--pk-shadow-sm);
}
.pk-banner-slider { position: absolute; inset: 0; }
.pk-banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.pk-banner-slide.is-active { opacity: 1; }
.pk-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.pk-banner-dots { position: absolute; right: 32px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.pk-banner-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.pk-banner-dot.is-active { background: #fff; transform: scale(1.25); }
.pk-banner-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 16, .88) 0%, rgba(8, 9, 16, .62) 42%, rgba(8, 9, 16, .18) 100%),
    linear-gradient(180deg, rgba(8, 9, 16, 0) 45%, rgba(8, 9, 16, .55) 100%);
}
.pk-banner-inner { position: relative; z-index: 2; padding: 48px; max-width: 640px; }
.pk-banner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; margin-bottom: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  font-size: 11.5px; font-weight: 400; letter-spacing: .02em;
}
.pk-banner-title {
  color: #fff; font-size: 36px; font-weight: 600; line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}
.pk-banner-sub { margin-top: 12px; max-width: 480px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.pk-banner-search {
  display: flex; align-items: center; gap: 10px;
  width: 560px; max-width: 100%;
  height: 44px; margin-top: 24px; padding: 0 6px 0 12px;
  border-radius: 8px; background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  color: #6F7686;
}
.pk-banner-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none;
  background: transparent; font-size: 14px; color: #191C26;
}
.pk-banner-search input::placeholder { color: #9AA0B0; }
.pk-banner-search button {
  height: 34px; padding: 0 16px; border-radius: 8px;
  background: var(--pk-primary); color: #fff;
  font-size: 13px; font-weight: 600;
}
.pk-banner-search button:hover { background: var(--pk-primary-hover); }
.pk-banner-keywords {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .62);
}
.pk-banner-keywords a {
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  transition: background-color var(--pk-transition);
}
.pk-banner-keywords a:hover { background: rgba(255, 255, 255, .26); }

/* =========================================================
   5. 通用区块标题
   ========================================================= */
.pk-section { margin-top: 32px; }
.pk-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pk-section-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.pk-section-title-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--pk-bg-muted); color: var(--pk-text-2);
}
.pk-section-title-icon--star { background: var(--pk-bg-muted); color: var(--pk-text-2); }
.pk-section-title-icon--grid { background: var(--pk-bg-muted); color: var(--pk-text-2); }
.pk-section-sub { margin-top: 4px; font-size: 12.5px; color: var(--pk-text-3); }
.pk-section-more {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12.5px; font-weight: 600; color: var(--pk-text-2);
  padding: 6px 4px; white-space: nowrap;
  transition: color var(--pk-transition);
}
.pk-section-more:hover { color: var(--pk-primary); }

/* =========================================================
   6. 首页热门分类
   ========================================================= */
.pk-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pk-cat-card {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px; overflow: hidden;
  background: var(--pk-bg-muted);
  border: 1px solid var(--pk-border);
  transition: border-color var(--pk-transition), box-shadow var(--pk-transition);
}
.pk-cat-card img { width: 100%; height: 100%; object-fit: cover; }
.pk-cat-card:hover { border-color: var(--pk-border-strong); box-shadow: var(--pk-shadow-md); }
.pk-cat-card-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0) 45%, rgba(10, 12, 20, .72) 100%);
}
.pk-cat-card-info {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #fff;
}
.pk-cat-card-name { font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.pk-cat-card-count {
  font-size: 11px; font-weight: 400;
  font-family: var(--pk-mono);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.pk-cat-card--more {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; background: var(--pk-bg-card);
  color: var(--pk-text-2); font-size: 13px; font-weight: 600;
}
.pk-cat-card--more:hover { color: var(--pk-primary); background: var(--pk-primary-soft); }

/* ---------- 分类抽屉 ---------- */
.pk-drawer { position: fixed; inset: 0; z-index: 200; }
.pk-drawer[hidden] { display: none; }
.pk-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(10, 12, 20, .48);
  opacity: 0; transition: opacity var(--pk-transition);
}
.pk-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: 520px; max-width: 92vw;
  background: var(--pk-bg-card);
  box-shadow: -20px 0 60px rgba(12, 16, 30, .22);
  transform: translateX(100%);
  transition: transform var(--pk-transition);
}
.pk-drawer.is-open .pk-drawer-backdrop { opacity: 1; }
.pk-drawer.is-open .pk-drawer-panel { transform: translateX(0); }
.pk-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--pk-border); flex: none;
}
.pk-drawer-title { font-size: 17px; }
.pk-drawer-title span { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--pk-text-3); }
.pk-drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; color: var(--pk-text-2);
  border: 1px solid var(--pk-border);
}
.pk-drawer-close:hover { background: var(--pk-bg-muted); }
.pk-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px 28px; }
.pk-cats-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pk-cats-list a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 8px;
  border: 1px solid var(--pk-border);
  transition: border-color var(--pk-transition), background var(--pk-transition);
}
.pk-cats-list a:hover { border-color: var(--pk-primary); background: var(--pk-primary-soft); }
.pk-cats-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--pk-bg-muted); flex: none; }
.pk-cats-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-cats-info { display: flex; flex-direction: column; min-width: 0; }
.pk-cats-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-cats-count { font-size: 10.5px; color: var(--pk-text-3); }

/* =========================================================
   7. 编辑精选
   ========================================================= */
.pk-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 170px;
  gap: 12px;
}
.pk-bigcard {
  position: relative; display: block; overflow: hidden;
  border-radius: 12px; background: var(--pk-bg-muted);
  border: 1px solid var(--pk-border);
}
.pk-bigcard.is-large { grid-column: span 2; grid-row: span 2; }
.pk-bigcard img { width: 100%; height: 100%; object-fit: cover; }
.pk-bigcard:hover { border-color: var(--pk-border-strong); }
.pk-bigcard-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0) 42%, rgba(10, 12, 20, .78) 100%);
}
.pk-bigcard-info {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; flex-direction: column; gap: 4px; color: #fff; z-index: 2;
}
.pk-bigcard-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pk-bigcard.is-large .pk-bigcard-title { font-size: 17px; }
.pk-bigcard-meta { display: flex; gap: 12px; font-size: 11px; color: rgba(255, 255, 255, .72); }
.pk-bigcard .pk-card-badge { position: absolute; top: 10px; left: 10px; z-index: 3; }

/* =========================================================
   8. 瀑布流卡片
   ========================================================= */
.pk-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 4px;
  grid-auto-flow: row dense;
  gap: 12px;
}
.pk-grid[data-layout="list"] {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 10px;
}
.pk-card { position: relative; min-width: 0; }
.pk-card-link { display: block; border-radius: 12px; overflow: hidden; }
.pk-card-thumb {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--pk-bg-muted);
  aspect-ratio: 4 / 3;
}
.pk-card-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pk-card-thumb-noimg {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3 / 4; font-size: 12px; color: var(--pk-text-3);
}
.pk-card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(12, 14, 22, .72);
  color: #fff; font-size: 10.5px; font-weight: 400; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--pk-mono);
  font-variant-numeric: tabular-nums;
}
.pk-card-badge--video { background: #D92750; }
.pk-card-badge--avatar { background: rgba(60, 224, 178, .85); color: #06281F; }
.pk-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 10px 10px 11px;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0) 42%, rgba(8, 10, 18, .78) 100%);
  opacity: 0; transition: opacity var(--pk-transition);
}
.pk-card-link:hover .pk-card-overlay { opacity: 1; }
.pk-card-stats { display: flex; gap: 12px; font-size: 11px; color: rgba(255, 255, 255, .86); }
.pk-card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.pk-card-author { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255, 255, 255, .8); }
.pk-card-author img { width: 18px; height: 18px; border-radius: 50%; }
.pk-card-fav {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--pk-text-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  opacity: 0;
  transition: opacity var(--pk-transition), color var(--pk-transition), background-color var(--pk-transition);
}
.pk-card-link:hover ~ .pk-card-fav,
.pk-card:hover .pk-card-fav { opacity: 1; }
@media (hover: none) { .pk-card-fav { opacity: 1; } }
.pk-card-fav:hover { color: var(--pk-primary); background: #fff; }
.pk-card-fav.is-liked { color: #FF4D6D; opacity: 1; }
.pk-card-fav.is-liked svg { fill: #FF4D6D; }
.pk-card-fav.is-loading { pointer-events: none; opacity: .6; }

.pk-grid[data-layout="list"] .pk-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px; padding: 12px;
  border: 1px solid var(--pk-border); border-radius: 12px;
  background: var(--pk-bg-card);
  align-items: center;
}
.pk-grid[data-layout="list"] .pk-card-thumb { aspect-ratio: 4 / 3; }
.pk-grid[data-layout="list"] .pk-card-fav { top: 50%; right: 12px; transform: translateY(-50%); opacity: 1; }
.pk-grid[data-layout="list"] .pk-card-overlay { display: none; }

/* ---------- 加载更多 / 分页 ---------- */
.pk-loadmore-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 26px;
}
.pk-loadmore { min-width: 160px; }
.pk-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pk-pagination a, .pk-pagination .is-current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-card);
  font-size: 12.5px; font-weight: 600; color: var(--pk-text-2);
  transition: color var(--pk-transition), background-color var(--pk-transition), border-color var(--pk-transition);
}
.pk-pagination a:hover { border-color: var(--pk-primary); color: var(--pk-primary); }
.pk-pagination .is-current { background: var(--pk-primary); border-color: var(--pk-primary); color: #fff; }

/* ---------- 空状态 ---------- */
.pk-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 24px;
  border: 1px dashed var(--pk-border-strong); border-radius: 16px;
  background: var(--pk-bg-card); text-align: center;
}
.pk-empty-icon { display: flex; align-items: center; justify-content: center; color: var(--pk-text-3); }
.pk-empty h3 { font-size: 17px; margin-top: 4px; }
.pk-empty p { font-size: 13px; color: var(--pk-text-3); }

/* =========================================================
   9. 分类 / 搜索页 Hero + 工具栏
   ========================================================= */
.pk-hero {
  padding: 24px 32px;
  border-radius: 16px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-card);
  box-shadow: var(--pk-shadow-sm);
}
.pk-hero-text { max-width: 720px; }
.pk-hero-kicker {
  display: inline-block; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 400; letter-spacing: .02em;
  color: var(--pk-text-3);
}
.pk-hero-title { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.pk-hero-sub { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--pk-text-2); }
.pk-hero--cat { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pk-hero-side { flex: none; display: flex; gap: 24px; }
.pk-hero-stat { display: flex; flex-direction: column; align-items: flex-end; }
.pk-hero-stat b { font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--pk-text); font-variant-numeric: tabular-nums; }
.pk-hero-stat span { font-size: 11.5px; color: var(--pk-text-3); }
.pk-hero--search { padding-bottom: 26px; }
.pk-hero-search {
  display: flex; align-items: center; gap: 10px;
  width: 520px; max-width: 100%; height: 48px;
  margin-top: 18px; padding: 0 6px 0 14px;
  border-radius: 12px;
  background: var(--pk-bg-muted);
  border: 1px solid var(--pk-border);
  color: var(--pk-text-3);
  transition: border-color var(--pk-transition), box-shadow var(--pk-transition), background var(--pk-transition);
}
.pk-hero-search:focus-within { background: var(--pk-bg-card); border-color: var(--pk-primary); box-shadow: 0 0 0 4px var(--pk-primary-ring); }
.pk-hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 13.5px; }
.pk-hero-search button { height: 36px; padding: 0 16px; border-radius: 8px; background: var(--pk-primary); color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- 子分类大卡 ---------- */
.pk-cat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 16px;
}
.pk-cat-bigcard {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden;
  background: var(--pk-bg-muted);
  border: 1px solid transparent;
  transition: border-color var(--pk-transition), box-shadow var(--pk-transition);
}
.pk-cat-bigcard img { width: 100%; height: 100%; object-fit: cover; }
.pk-cat-bigcard:hover { border-color: var(--pk-border-strong); box-shadow: var(--pk-shadow-md); }
.pk-cat-bigcard.is-current { border-color: var(--pk-primary); }
.pk-cat-bigcard-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 20, 0) 45%, rgba(10, 12, 20, .74) 100%); }
.pk-cat-bigcard-info { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.pk-cat-bigcard-name { font-size: 13px; font-weight: 600; }
.pk-cat-bigcard-count { font-size: 10.5px; color: rgba(255, 255, 255, .8); }
.pk-cat-bigcard--more {
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--pk-border-strong);
  background: var(--pk-bg-card);
  color: var(--pk-text-2); font-size: 13px; font-weight: 600;
}
.pk-cat-bigcard--more:hover { color: var(--pk-primary); border-color: var(--pk-primary); background: var(--pk-primary-soft); }
.pk-color-0,
.pk-color-1,
.pk-color-2,
.pk-color-3,
.pk-color-4 { background: var(--pk-bg-muted); }

/* ---------- 筛选工具栏 ---------- */
.pk-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-card);
  box-shadow: var(--pk-shadow-sm);
}
.pk-toolbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-toolbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pk-select { position: relative; display: inline-flex; flex-direction: column; }
.pk-select > span { display: none; }
.pk-select select {
  appearance: none; -webkit-appearance: none;
  height: 32px; padding: 0 24px 0 10px;
  border-radius: 8px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-muted);
  font-size: 12.5px; font-weight: 600; color: var(--pk-text-2);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238E94A6' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--pk-transition), color var(--pk-transition), background-color var(--pk-transition);
}
.pk-select select:hover { border-color: var(--pk-border-strong); color: var(--pk-text); }
.pk-select select:focus { outline: none; border-color: var(--pk-primary); box-shadow: 0 0 0 3px var(--pk-primary-ring); }

.pk-color-dots { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pk-color-dot {
  position: relative; width: 18px; height: 18px; border-radius: 50%;
  background: var(--dot, #CBD5E1);
  border: 1px solid rgba(16, 20, 34, .12);
  transition: box-shadow var(--pk-transition);
}
.pk-color-dot:hover { box-shadow: 0 0 0 2px var(--pk-bg-card), 0 0 0 3px var(--pk-border-strong); }
.pk-color-dot.is-active { box-shadow: 0 0 0 2px var(--pk-bg-card), 0 0 0 4px var(--pk-primary); }
.pk-color-dot--all {
  background: conic-gradient(#EF4444, #F59E0B, #22C55E, #06B6D4, #3B82F6, #8B5CF6, #EC4899, #EF4444);
}

.pk-layout-toggle { display: inline-flex; padding: 4px; border-radius: 8px; background: var(--pk-bg-muted); }
.pk-layout-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 26px; border-radius: 6px; color: var(--pk-text-3);
  transition: background var(--pk-transition), color var(--pk-transition);
}
.pk-layout-btn.is-active { background: var(--pk-bg-card); color: var(--pk-primary); box-shadow: var(--pk-shadow-sm); }

.pk-result-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; font-size: 12.5px; color: var(--pk-text-3); }
.pk-result-reset { color: var(--pk-primary); font-weight: 600; }

/* =========================================================
   10. 详情页
   ========================================================= */
.pk-page--single { display: block; max-width: 1480px; }
.pk-single { max-width: 1320px; margin: 0 auto; }
.pk-single-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pk-single-top-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pk-back {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--pk-border); background: var(--pk-bg-card);
  font-size: 12.5px; font-weight: 600; color: var(--pk-text-2);
}
.pk-back:hover { color: var(--pk-primary); border-color: var(--pk-primary); }
.pk-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pk-text-3); flex-wrap: wrap; }
.pk-breadcrumb a:hover { color: var(--pk-primary); }
.pk-breadcrumb-sep { color: var(--pk-border-strong); }
.pk-single-actions { display: flex; align-items: center; gap: 8px; }
.pk-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--pk-border); background: var(--pk-bg-card);
  font-size: 12.5px; font-weight: 600; color: var(--pk-text-2);
  transition: color var(--pk-transition), background-color var(--pk-transition), border-color var(--pk-transition);
}
.pk-action-btn:hover { border-color: var(--pk-primary); color: var(--pk-primary); }
.pk-action-btn b { font-weight: 600; color: var(--pk-text); }
.pk-like-btn.is-liked { color: #FF4D6D; border-color: #FF4D6D; background: rgba(255, 77, 109, .07); }
.pk-like-btn.is-liked svg { fill: #FF4D6D; }
.pk-like-btn.is-liked b { color: #FF4D6D; }

.pk-single-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px; align-items: start;
}
.pk-preview-wrap {
  position: relative; overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-muted);
  min-height: 440px;
}
.pk-preview-blur {
  position: absolute; inset: -24px;
  background-size: cover; background-position: center;
  filter: blur(30px) saturate(1.15);
  opacity: .5; transform: scale(1.08);
}
.pk-preview-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 26px; min-height: 440px; }
.pk-preview-img {
  max-height: 640px; max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(12, 16, 30, .28);
}
.pk-preview-badge { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.pk-preview-badge .pk-card-badge { position: static; }
.pk-chip {
  padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  font-size: 10.5px; font-weight: 400; color: #3A3F4F;
}
.pk-preview-full {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(12, 14, 22, .72);
  color: #fff;
  transition: background-color var(--pk-transition);
}
.pk-preview-full:hover { background: var(--pk-primary); }

.pk-panel {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-card);
  box-shadow: var(--pk-shadow-sm);
}
.pk-panel-head { display: flex; flex-direction: column; gap: 10px; }
.pk-panel-title { font-size: 22px; line-height: 1.35; letter-spacing: -.01em; }
.pk-panel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-tag-vip {
  padding: 2px 8px; border-radius: 6px;
  background: var(--pk-bg-muted);
  color: #A96A0B; font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
}
.pk-tag-res {
  padding: 2px 8px; border-radius: 6px;
  background: var(--pk-primary-soft); color: var(--pk-primary);
  font-size: 10.5px; font-weight: 600;
  font-family: var(--pk-mono);
  font-variant-numeric: tabular-nums;
}
.pk-panel-author {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px;
  border-radius: 12px; background: var(--pk-bg-muted);
}
.pk-panel-author img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.pk-panel-author-info { display: flex; flex-direction: column; min-width: 0; }
.pk-panel-author-info b { font-size: 13px; }
.pk-panel-author-info span { font-size: 11px; color: var(--pk-text-3); }
.pk-panel-author-more {
  margin-left: auto; padding: 5px 11px; border-radius: 8px;
  background: var(--pk-bg-card); border: 1px solid var(--pk-border);
  font-size: 11.5px; font-weight: 600; color: var(--pk-text-2);
}
.pk-panel-author-more:hover { color: var(--pk-primary); border-color: var(--pk-primary); }
.pk-panel-desc { margin-top: 14px; font-size: 12.5px; line-height: 1.75; color: var(--pk-text-2); }
.pk-panel-desc p { margin: 0; }

.pk-panel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pk-stat-pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px; border-radius: 8px;
  background: transparent;
}
.pk-stat-num { font-size: 15px; font-weight: 600; line-height: 1.2; font-family: var(--pk-mono); font-variant-numeric: tabular-nums; }
.pk-stat-label { font-size: 10.5px; color: var(--pk-text-3); }

.pk-panel-download { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pk-download-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; border-radius: 8px;
  background: var(--pk-primary);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: none;
  transition: background-color var(--pk-transition);
}
.pk-download-btn:hover { background: var(--pk-primary-hover); }
.pk-download-btn:active { transform: scale(.98); }
.pk-panel-download-note { text-align: center; font-size: 11px; color: var(--pk-text-3); }

.pk-panel-info { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--pk-border); }
.pk-panel-info h3, .pk-panel-tags-list h3 { font-size: 12px; font-weight: 400; letter-spacing: .02em; color: var(--pk-text-3); margin-bottom: 8px; }
.pk-info-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pk-info-table th { padding: 8px 0; text-align: left; font-weight: 400; color: var(--pk-text-3); width: 76px; }
.pk-info-table td { padding: 8px 0; text-align: right; color: var(--pk-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-info-table tr { border-bottom: 1px dashed var(--pk-border); }
.pk-info-table tr:last-child { border-bottom: 0; }

.pk-panel-tags-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pk-border); }
.pk-tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-tag-chip {
  padding: 4px 10px; border-radius: 6px;
  background: var(--pk-bg-muted); color: var(--pk-text-2);
  font-size: 11.5px; font-weight: 400;
  transition: color var(--pk-transition), background-color var(--pk-transition);
}
.pk-tag-chip:hover { background: var(--pk-primary-soft); color: var(--pk-primary); }

.pk-section--related .pk-related-grid {
  columns: 4; column-gap: 14px;
}
.pk-related-grid .pk-card { display: inline-block; width: 100%; margin-bottom: 14px; break-inside: avoid; }
.pk-related-grid .pk-card-overlay { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 18, .55)); }
.pk-related-grid .pk-card-fav { opacity: 1; transform: none; }

/* =========================================================
   11. 下载弹窗 / 大图预览
   ========================================================= */
.pk-modal { position: fixed; inset: 0; z-index: 240; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pk-modal[hidden] { display: none; }
.pk-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .55); opacity: 0; transition: opacity var(--pk-transition); }
.pk-modal-panel {
  position: relative; width: 480px; max-width: 100%;
  border-radius: 16px; background: var(--pk-bg-card);
  box-shadow: 0 30px 80px rgba(8, 10, 18, .35);
  transform: translateY(10px) scale(.98); opacity: 0;
  transition: transform var(--pk-transition), opacity var(--pk-transition);
  overflow: hidden;
}
.pk-modal.is-open .pk-modal-backdrop { opacity: 1; }
.pk-modal.is-open .pk-modal-panel { transform: none; opacity: 1; }
.pk-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--pk-border); }
.pk-modal-head h3 { font-size: 16px; }
.pk-modal-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: var(--pk-text-2); }
.pk-modal-close:hover { background: var(--pk-bg-muted); }
.pk-modal-body { padding: 18px 20px 20px; }
.pk-modal-note { font-size: 12px; line-height: 1.7; color: var(--pk-text-3); }
.pk-res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pk-res-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border-radius: 8px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-muted);
  cursor: pointer; text-align: center;
}
.pk-res-item.is-active { border-color: var(--pk-primary); background: var(--pk-primary-soft); }
.pk-res-item input { display: none; }
.pk-res-label { font-size: 12.5px; font-weight: 600; }
.pk-res-size { font-size: 10.5px; color: var(--pk-text-3); }
.pk-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.pk-modal-download {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 8px;
  background: var(--pk-primary); color: #fff;
  font-size: 13.5px; font-weight: 600;
}
.pk-modal-download:hover { background: var(--pk-primary-hover); }
.pk-modal-copy {
  height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--pk-border-strong);
  font-size: 12px; font-weight: 600; color: var(--pk-text-2);
}
.pk-modal-copy:hover { border-color: var(--pk-primary); color: var(--pk-primary); }
.pk-modal-tip { margin-top: 12px; font-size: 10.5px; color: var(--pk-text-3); text-align: center; }

.pk-lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, .94);
  padding: 40px;
}
.pk-lightbox[hidden] { display: none; }
.pk-lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.pk-lightbox-close {
  position: absolute; top: 22px; right: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
}
.pk-lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* =========================================================
   12. 侧栏小工具
   ========================================================= */
.pk-widget {
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid var(--pk-border);
  background: var(--pk-bg-card);
  box-shadow: var(--pk-shadow-sm);
}
.pk-widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pk-widget-title { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }
.pk-widget-more { font-size: 11px; color: var(--pk-text-3); }
.pk-widget-more:hover { color: var(--pk-primary); }
.pk-title-spark { color: var(--pk-primary); }

/* 壁纸日历 */
.pk-widget-calendar .pk-cal-body { display: flex; align-items: center; gap: 12px; }
.pk-cal-day { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-family: var(--pk-mono); font-variant-numeric: tabular-nums; }
.pk-cal-meta { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--pk-text-2); }
.pk-cal-meta span:last-child { color: var(--pk-text-3); font-size: 10.5px; }
.pk-cal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--pk-border);
  font-size: 11px; color: var(--pk-text-2);
}
.pk-cal-foot-item { display: inline-flex; align-items: center; gap: 5px; }
.pk-cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pk-secondary); }
.pk-cal-daily {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 8px;
  border-radius: 12px;
  background: var(--pk-bg-muted);
  transition: background var(--pk-transition);
}
.pk-cal-daily:hover { background: var(--pk-primary-soft); }
.pk-cal-daily img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.pk-cal-daily span { display: flex; flex-direction: column; min-width: 0; }
.pk-cal-daily-label { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--pk-primary); }
.pk-cal-daily-title { font-size: 11.5px; font-weight: 600; color: var(--pk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 热门分类 */
.pk-hotcats-list { display: flex; flex-direction: column; gap: 4px; }
.pk-hotcats-list a { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; transition: background-color var(--pk-transition); }
.pk-hotcats-list a:hover { background: var(--pk-bg-muted); }
.pk-hotcats-thumb { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; background: var(--pk-bg-muted); flex: none; }
.pk-hotcats-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk-hotcats-info { display: flex; flex-direction: column; min-width: 0; }
.pk-hotcats-name { font-size: 12.5px; font-weight: 600; }
.pk-hotcats-count { font-size: 10px; color: var(--pk-text-3); }

/* 灵感推荐 */
.pk-widget-refresh {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px; color: var(--pk-text-3);
}
.pk-widget-refresh:hover { background: var(--pk-bg-muted); color: var(--pk-primary); }
.pk-widget-refresh.is-spinning svg { animation: pk-spin .8s linear infinite; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
.pk-inspiration-note { font-size: 11.5px; color: var(--pk-text-3); margin-bottom: 10px; }
.pk-inspiration-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* 热门标签榜 */
.pk-tagrank-list { display: flex; flex-direction: column; gap: 3px; }
.pk-tagrank-list a { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; transition: background var(--pk-transition); }
.pk-tagrank-list a:hover { background: var(--pk-bg-muted); }
.pk-tagrank-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--pk-bg-muted);
  font-size: 10.5px; font-weight: 600; color: var(--pk-text-3); flex: none;
}
.pk-tagrank-no.is-top { background: var(--pk-primary); color: #fff; }
.pk-tagrank-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tagrank-count { font-size: 10.5px; color: var(--pk-text-3); font-family: var(--pk-mono); }

/* 筛选说明 */
.pk-tips-text { font-size: 12px; line-height: 1.75; color: var(--pk-text-2); }
.pk-tips-dots { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pk-tips-note { margin-top: 10px; font-size: 10.5px; color: var(--pk-text-3); }
.pk-tips-list { margin: 0; padding-left: 16px; list-style: disc; font-size: 12px; line-height: 1.9; color: var(--pk-text-2); }

/* =========================================================
   13. 页脚 / 页面 / 404
   ========================================================= */
.pk-footer { border-top: 1px solid var(--pk-border); margin-top: 32px; padding: 24px 32px 32px; background: var(--pk-bg); }
.pk-footer-inner { max-width: 1624px; margin: 0 auto; }
.pk-footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 6px; }
.pk-footer-links-label { flex: none; font-size: 12px; color: var(--pk-text-2); }
.pk-footer-links a { font-size: 12px; color: var(--pk-text-3); text-decoration: none; transition: color .15s ease; }
.pk-footer-links a:hover { color: var(--pk-primary); }
.pk-footer-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pk-footer-copy { margin-top: 10px; font-size: 11.5px; line-height: 1.8; color: var(--pk-text-3); }
.pk-footer-copy p { margin: 0; }

.pk-page--plain .pk-content { max-width: 900px; margin: 0 auto; }
.pk-page-title { font-size: 26px; margin: 14px 0 18px; }
.pk-page-content { font-size: 14px; line-height: 1.9; color: var(--pk-text-2); }
.pk-page-content p { margin-bottom: 1em; }
.pk-page-content a { color: var(--pk-primary); }
.pk-page-links { margin-top: 18px; }

.pk-empty--404 { padding: 64px 24px; }
.pk-404-code {
  font-size: 80px; font-weight: 600; line-height: 1;
  letter-spacing: -.04em;
  color: var(--pk-text);
  font-family: var(--pk-mono);
  font-variant-numeric: tabular-nums;
}
.pk-empty--404 .pk-btn { margin-top: 6px; }

.pk-search-form { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.pk-search-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--pk-border-strong);
  background: var(--pk-bg-card); outline: none;
}
.pk-search-input:focus { border-color: var(--pk-primary); box-shadow: 0 0 0 3px var(--pk-primary-ring); }

/* =========================================================
   14. 响应式
   ========================================================= */
@media (max-width: 1440px) {
  .pk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pk-page { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
}

@media (max-width: 1200px) {
  .pk-page { grid-template-columns: minmax(0, 1fr); }
  .pk-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .pk-sidebar .pk-widget { margin-bottom: 0; }
  .pk-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-featured-grid .pk-bigcard.is-large { grid-column: span 2; }
  .pk-single-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .pk-related-grid { columns: 3; }
}

@media (max-width: 1024px) {
  .pk-side { transform: translateX(-100%); width: 280px; box-shadow: 0 20px 60px rgba(8, 10, 18, .28); }
  .pk-side.is-open { transform: translateX(0); }
  .pk-side-close { display: inline-flex; }
  .pk-side-scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(8, 10, 18, .45);
    opacity: 0; pointer-events: none;
    transition: opacity var(--pk-transition);
  }
  .pk-side-scrim.is-open { opacity: 1; pointer-events: auto; }
  .pk-main { margin-left: 0; }
  .pk-burger { display: inline-flex; }
  .pk-topbar { padding: 0 24px; height: 64px; }
  .pk-topsearch { max-width: none; }
  .pk-page { padding: 16px; }
  .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-banner-inner { padding: 34px 28px; }
  .pk-banner-title { font-size: 30px; }
  .pk-single-grid { grid-template-columns: minmax(0, 1fr); }
  .pk-preview-main { min-height: 340px; padding: 16px; }
  .pk-preview-img { max-height: 480px; }
  .pk-hero--cat { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pk-hero-side { width: 100%; justify-content: flex-start; }
  .pk-hero-stat { align-items: flex-start; }
  .pk-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk-drawer-panel { width: 440px; }
  .pk-footer { padding: 24px 16px 24px; }
}

@media (max-width: 720px) {
  .pk-topbar { height: 56px; padding: 0 16px; gap: 8px; }
  .pk-topsearch { display: none; }
  .pk-btn-login span, .pk-social-btn span { display: none; }
  .pk-btn-login, .pk-social-btn { padding: 0 10px; }
  .pk-page { padding: 16px; gap: 16px; }
  .pk-banner { min-height: 240px; border-radius: 16px; }
  .pk-banner-inner { padding: 24px 20px; }
  .pk-banner-title { font-size: 23px; }
  .pk-banner-sub { font-size: 12.5px; }
  .pk-banner-search { height: 44px; margin-top: 16px; padding-left: 12px; }
  .pk-banner-search button { height: 34px; padding: 0 14px; font-size: 12.5px; }
  .pk-banner-keywords { font-size: 11px; }
  .pk-section { margin-top: 24px; }
  .pk-section-title { font-size: 16px; }
  .pk-cats-grid { gap: 8px; }
  .pk-cat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pk-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .pk-featured-grid .pk-bigcard.is-large { grid-column: span 2; grid-row: span 1; }
  .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pk-grid[data-layout="list"] .pk-card { grid-template-columns: 96px minmax(0, 1fr); }
  .pk-toolbar { padding: 8px 10px; gap: 8px; }
  .pk-toolbar-left { width: 100%; }
  .pk-select { flex: 1; min-width: 90px; }
  .pk-select select { width: 100%; }
  .pk-toolbar-right { width: 100%; justify-content: space-between; }
  .pk-color-dots { gap: 6px; }
  .pk-color-dot { width: 16px; height: 16px; }
  .pk-hero { padding: 20px; border-radius: 12px; }
  .pk-hero-title { font-size: 22px; }
  .pk-hero-sub { font-size: 12px; }
  .pk-panel { padding: 16px; }
  .pk-panel-title { font-size: 18px; }
  .pk-preview-main { min-height: 260px; padding: 10px; }
  .pk-preview-img { max-height: 380px; }
  .pk-panel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-sidebar { grid-template-columns: minmax(0, 1fr); }
  .pk-related-grid { columns: 2; }
  .pk-single-top { align-items: flex-start; }
  .pk-breadcrumb { display: none; }
  .pk-drawer-panel { width: 100%; max-width: 100%; }
  .pk-cats-list { grid-template-columns: minmax(0, 1fr); }
  .pk-footer { padding: 18px 14px 22px; }
  .pk-lightbox { padding: 14px; }
}

/* =========================================================
   15. 状态类与补充
   ========================================================= */
body.pk-body { overflow-x: hidden; }
body.pk-side-locked,
body.pk-modal-locked { overflow: hidden; }

.pk-masonry { align-items: start; }
.pk-card-fav-count { font-size: 11px; font-weight: 600; }
.pk-icon-moon,
.pk-icon-sun { display: block; }

.pk-hero--archive { margin-bottom: 18px; }
.pk-toolbar--search .pk-toolbar-left { flex: 1; }
.pk-toolbar--search .pk-toolbar-right { flex: none; }

.pk-widget-hotcats,
.pk-widget-inspiration,
.pk-widget-tagrank,
.pk-widget-tips { min-width: 0; }
