/* WallHub Home — 首页 / 归档 / 分类 / 搜索：Hero / 筛选 / 工具条 / FAB */

/* ============================================================
   Hero
   ============================================================ */
.wh-hero { position: relative; overflow: hidden; padding: 62px 0 56px; margin-bottom: 8px; }
.wh-hero::before, .wh-hero::after { content: none; display: none; }
.wh-hero__inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.wh-hero__eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 100px; background: var(--wh-surface); border: 1px solid var(--wh-border); color: var(--wh-text-2); font-size: 12px; box-shadow: var(--wh-shadow); margin-bottom: 20px; }
.wh-hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #35c98a; box-shadow: 0 0 0 4px rgba(53, 201, 138, .16); }
.wh-hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -2px; line-height: 1.2; margin: 0 0 14px; }
.wh-hero__title em { font-style: normal; color: var(--wh-primary); }
.wh-hero__desc { color: var(--wh-text-2); font-size: 16px; margin: 0 0 30px; }
.wh-hero__search { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; background: var(--wh-surface); padding: 8px; border-radius: 10px; box-shadow: var(--wh-shadow-hover); border: 1px solid var(--wh-border); }
.wh-hero__search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 14px; color: var(--wh-text); min-width: 0; }
.wh-hero__search input::placeholder { color: var(--wh-text-3); }
.wh-hero__hot { margin-top: 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--wh-text-3); }
.wh-hero__stats { display: flex; justify-content: center; gap: 42px; margin-top: 34px; flex-wrap: wrap; }
.wh-hero__stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.wh-hero__stat span { font-size: 12px; color: var(--wh-text-3); }

/* Category shortcuts */
.wh-cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.wh-cat {
  position: relative; overflow: hidden; border-radius: var(--wh-radius-sm); height: 92px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px 14px;
  color: #fff; font-weight: 600; font-size: 14px; transition: .22s; isolation: isolate;
}
.wh-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cat-bg, #3a424e); transition: transform .35s; }
.wh-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.42)); }
.wh-cat:hover { transform: translateY(-3px); box-shadow: var(--wh-shadow-hover); color: #fff; }
.wh-cat:hover::before { transform: scale(1.12); }
.wh-cat small { font-size: 11px; font-weight: 400; opacity: .82; }
.wh-cat i { position: absolute; right: 12px; top: 10px; font-size: 20px; opacity: .75; }

/* ============================================================
   Filters
   ============================================================ */
.wh-filters { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius); padding: 16px 18px; box-shadow: var(--wh-shadow); margin-bottom: 22px; }
.wh-filters__row { display: flex; align-items: flex-start; gap: 14px; padding: 7px 0; flex-wrap: wrap; }
.wh-filters__row + .wh-filters__row { border-top: 1px dashed var(--wh-border); }
.wh-filters__label { flex: 0 0 62px; color: var(--wh-text-3); font-size: 13px; padding-top: 6px; }
.wh-filters__opts { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.wh-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 100px;
  font-size: 13px; color: var(--wh-text-2); background: var(--wh-surface-2); border: 1px solid transparent; transition: .16s;
}
.wh-chip:hover { color: var(--wh-primary); background: var(--wh-primary-soft); }
.wh-chip.is-active { background: var(--wh-gradient); color: #fff; font-weight: 600; box-shadow: none; }
.wh-swatch { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.wh-filters__sort { display: flex; gap: 4px; background: var(--wh-surface-2); padding: 3px; border-radius: 10px; }
.wh-filters__sort a { padding: 5px 14px; border-radius: 8px; font-size: 13px; color: var(--wh-text-2); }
.wh-filters__sort a.is-active { background: var(--wh-surface); color: var(--wh-primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.wh-result-count { color: var(--wh-text-3); font-size: 13px; margin-bottom: 16px; }
.wh-result-count b { color: var(--wh-primary); }


/* --- 首页容器 --- */
.wh-home { padding: 20px 0 8px; }
body.wh-page-home .wh-footer { margin-top: 34px; background: transparent; padding: 20px 0 24px; }
body.wh-page-home .wh-footer__grid { display: none; }
body.wh-page-home .wh-footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* --- 极简工具条 --- */
.wh-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wh-toolbar__search {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px;
  min-width: 232px; border-radius: 100px; border: 1px solid transparent;
  background: var(--wh-surface-2); color: var(--wh-text-3); transition: .18s;
}
.wh-toolbar__search:focus-within { border-color: var(--wh-primary); }
.wh-toolbar__search i { font-size: 13px; }
.wh-toolbar__search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--wh-text); font-size: 13px;
}
.wh-toolbar__search input::placeholder { color: var(--wh-text-3); }
.wh-toolbar__count { color: var(--wh-text-3); font-size: 12.5px; white-space: nowrap; }
.wh-toolbar__count b { color: var(--wh-text-2); font-weight: 600; }
.wh-toolbar__spacer { flex: 1; }
.wh-toolbar__sort { display: flex; align-items: center; gap: 2px; }
.wh-toolbar__sort a { padding: 6px 11px; border-radius: 8px; color: var(--wh-text-3); font-size: 13px; white-space: nowrap; }
.wh-toolbar__sort a:hover { color: var(--wh-text); }
.wh-toolbar__sort a.is-active { color: var(--wh-text); background: var(--wh-surface-2); font-weight: 600; }
.wh-toolbar__btn {
  height: 34px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--wh-border); background: transparent; color: var(--wh-text-2);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap;
}
.wh-toolbar__btn:hover, .wh-toolbar__btn.is-active { background: var(--wh-surface-2); color: var(--wh-text); border-color: var(--wh-primary); }
.wh-toolbar__btn i { font-size: 14px; }
.wh-filter-drawer { display: none; margin-bottom: 18px; }
.wh-filter-drawer.is-open { display: block; animation: wh-fade .2s ease; }
@keyframes wh-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wh-filter-drawer .wh-filters { margin-bottom: 0; }

/* --- 沉浸流网格：固定等高纯图，卡片不承载任何按钮或文字 --- */
.wh-grid--uniform .wh-card__link { aspect-ratio: 4 / 3; }

/* --- 右下角悬浮按钮 --- */
.wh-fab { position: fixed; right: 20px; bottom: 22px; z-index: 55; }
.wh-fab__btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--wh-border); background: var(--wh-surface-2);
  color: var(--wh-text-2); display: grid; place-items: center;
  font-size: 17px; box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.wh-fab__btn:hover, .wh-fab.is-open .wh-fab__btn { color: var(--wh-text); border-color: var(--wh-primary); }
.wh-fab__menu {
  position: absolute; right: 0; bottom: 52px; width: 158px;
  background: var(--wh-surface); border: 1px solid var(--wh-border);
  border-radius: 8px; padding: 6px; box-shadow: var(--wh-shadow-hover); display: none;
}
.wh-fab.is-open .wh-fab__menu { display: block; }
.wh-fab__menu a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--wh-text-2); }
.wh-fab__menu a:hover { background: var(--wh-surface-2); color: var(--wh-text); }
.wh-fab__menu i { font-size: 14px; }
