/*
Theme Name: 壁纸社
Theme URI: https://github.com/babobski/Bootstrap-on-WordPress
Author: WorkBuddy
Description: 基于 Bootstrap-on-WordPress (Bootstrap 5 starter theme) 的资源骨架全新编写的 WordPress 壁纸交流社区主题。内置默认数据（导航/分类/页面/缩略图）、壁纸 CPT、四维筛选、等高纯图首页、哲风式详情页、受控下载与全站限额、用户注册登录（tianai-captcha）、投稿审核、积分奖励、后台全站设置与管理员批量上传（ZIP 压缩包 / 文件名分辨率自动分类 / 服务器本地导入超大包 / 伪装图片检测 / 自动查重 / 自动审核）。
Version: 1.8.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wallhub
Tags: portfolio, grid-layout, custom-menu, custom-logo, featured-images, translation-ready, blog
*/

/* WallHub Core — 全站基础：tokens / header / buttons / grid / footer / widgets
   加载顺序：core → 页面模块 → responsive，勿调整（CSS 为叠加式）*/

/* ============================================================
   壁纸社 - Design tokens
   ============================================================ */
:root {
  --wh-primary: #2b5f9e;
  --wh-primary-soft: #eaf1f8;
  --wh-accent: #4a7bb5;
  --wh-gradient: #2b5f9e;
  --wh-bg: #f5f6f7;
  --wh-surface: #ffffff;
  --wh-surface-2: #f0f2f4;
  --wh-border: #e3e6ea;
  --wh-text: #1c2530;
  --wh-text-2: #59636e;
  --wh-text-3: #8a939d;
  --wh-shadow: 0 1px 3px rgba(20,32,45,.05), 0 8px 24px rgba(20,32,45,.05);
  --wh-shadow-hover: 0 4px 14px rgba(20,32,45,.08), 0 16px 40px rgba(20,32,45,.09);
  --wh-radius: 10px;
  --wh-radius-sm: 8px;
  --wh-header-h: 68px;
  --wh-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --wh-primary: #7fa8d4;
  --wh-primary-soft: #1f2d3d;
  --wh-accent: #6f97c9;
  --wh-gradient: #2b5f9e;
  --wh-bg: #17191c;
  --wh-surface: #1e2226;
  --wh-surface-2: #262b31;
  --wh-border: #333a42;
  --wh-text: #e8ebee;
  --wh-text-2: #a8b0b8;
  --wh-text-3: #7c858e;
  --wh-shadow: 0 2px 8px rgba(0,0,0,.18), 0 12px 32px rgba(0,0,0,.24);
  --wh-shadow-hover: 0 8px 22px rgba(0,0,0,.3), 0 26px 60px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wh-bg);
  color: var(--wh-text);
  font-family: var(--wh-font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wh-primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
::selection { background: var(--wh-primary); color: #fff; }

.wh-container { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.wh-section { margin: 48px 0; }
.wh-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.wh-section__title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.4px; display: flex; align-items: center; gap: 10px; }
.wh-section__title::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--wh-gradient); }
.wh-section__sub { color: var(--wh-text-3); font-size: 13px; margin: 4px 0 0 14px; }
.wh-more { color: var(--wh-text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.wh-more:hover { color: var(--wh-primary); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.wh-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--wh-header-h);
  background: color-mix(in srgb, var(--wh-surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--wh-border);
}
.wh-header__inner { display: flex; align-items: center; gap: 26px; height: 100%; }
.wh-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.6px; white-space: nowrap; }
.wh-logo__mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--wh-gradient);
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 6px 16px rgba(43, 95, 158, .20);
}
.wh-logo__en { font-size: 11px; font-weight: 600; color: var(--wh-text-3); letter-spacing: 1.4px; margin-left: 2px; text-transform: uppercase; }
.wh-nav { display: flex; align-items: center; gap: 4px; }
.wh-nav a { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--wh-text-2); transition: .18s; white-space: nowrap; }
.wh-nav a:hover { background: var(--wh-surface-2); color: var(--wh-primary); }
.wh-nav a.is-active { background: var(--wh-primary-soft); color: var(--wh-primary); font-weight: 600; }
.wh-header__spacer { flex: 1; }
.wh-search { position: relative; width: 250px; }
.wh-search__input {
  width: 100%; height: 38px; padding: 0 38px 0 36px;
  background: var(--wh-surface-2); border: 1px solid transparent; border-radius: 10px;
  color: var(--wh-text); outline: none; transition: .2s;
}
.wh-search__input:focus { border-color: var(--wh-primary); background: var(--wh-surface); box-shadow: 0 0 0 3px var(--wh-primary-soft); }
.wh-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--wh-text-3); font-size: 14px; pointer-events: none; }
.wh-search__kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--wh-text-3); border: 1px solid var(--wh-border); border-radius: 5px; padding: 1px 5px; }
.wh-header__actions { display: flex; align-items: center; gap: 8px; }
.wh-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--wh-border);
  background: var(--wh-surface); color: var(--wh-text-2); display: grid; place-items: center; font-size: 16px; transition: .18s;
}
.wh-icon-btn:hover { color: var(--wh-primary); border-color: var(--wh-primary); transform: translateY(-1px); }
.wh-nav-toggle { display: none; }

/* Buttons */
.wh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .18s; white-space: nowrap; background: var(--wh-surface-2); color: var(--wh-text);
}
.wh-btn:hover { transform: translateY(-1px); color: var(--wh-text); }
.wh-btn--primary { background: var(--wh-gradient); color: #fff; box-shadow: none; }
.wh-btn--primary:hover { color: #fff; box-shadow: 0 4px 12px rgba(43, 95, 158, .12); }
.wh-btn--outline { background: transparent; border-color: var(--wh-border); color: var(--wh-text-2); }
.wh-btn--outline:hover { border-color: var(--wh-primary); color: var(--wh-primary); }
.wh-btn--ghost { background: var(--wh-surface-2); }
.wh-btn--sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.wh-btn--lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 8px; }
.wh-btn--block { width: 100%; }
.wh-btn i { font-size: 16px; }

/* ============================================================
   等高纯图网格（固定，无瀑布流 / 无卡片按钮）
   ============================================================ */
.wh-grid {
  display: grid;
  grid-template-columns: repeat(var(--wh-cols, 4), minmax(0, 1fr));
  gap: 14px; align-items: start;
}
.wh-card {
  position: relative; margin: 0; break-inside: auto;
  border: 0; border-radius: 10px; overflow: hidden;
  background: var(--wh-surface); box-shadow: none;
  transition: transform .22s, box-shadow .22s;
}
.wh-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .36); }
.wh-card__link {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--wh-surface-2);
}
.wh-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.wh-card:hover .wh-card__img { transform: scale(1.045); }
/* 兼容旧模板 / 旧类名：不再输出任何覆盖层、角标、文字或按钮 */
.wh-grid--masonry, .wh-grid--uniform { columns: auto; }
.wh-card__overlay, .wh-card__tools, .wh-card__quick, .wh-card__badges,
.wh-card__body, .wh-card__hoverinfo, .wh-card__media > .wh-tool { display: none !important; }

.wh-empty { text-align: center; padding: 70px 20px; color: var(--wh-text-3); }
.wh-empty i { font-size: 44px; display: block; margin-bottom: 14px; opacity: .5; }
.wh-loadmore { display: flex; justify-content: center; margin-top: 26px; }
.wh-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: wh-spin .7s linear infinite; }
@keyframes wh-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Ranking / sidebar widgets
   ============================================================ */
.wh-panel { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: var(--wh-radius); box-shadow: var(--wh-shadow); padding: 18px; }
.wh-panel__title { font-size: 15px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.wh-panel__title i { color: var(--wh-primary); }
.wh-rank { display: flex; flex-direction: column; gap: 4px; }
.wh-rank__item { display: flex; align-items: center; gap: 11px; padding: 7px 6px; border-radius: 9px; transition: .16s; }
.wh-rank__item:hover { background: var(--wh-surface-2); }
.wh-rank__no { flex: 0 0 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--wh-surface-2); color: var(--wh-text-3); }
.wh-rank__item:nth-child(1) .wh-rank__no { background: #2b5f9e; color: #fff; }
.wh-rank__item:nth-child(2) .wh-rank__no { background: #4a7bb5; color: #fff; }
.wh-rank__item:nth-child(3) .wh-rank__no { background: #6f97c9; color: #fff; }
.wh-rank__thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #e6e9ed; flex: 0 0 46px; }
.wh-rank__info { min-width: 0; flex: 1; }
.wh-rank__info b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-rank__info small { color: var(--wh-text-3); font-size: 11px; }
.wh-rank__val { font-size: 12px; color: var(--wh-primary); font-weight: 600; white-space: nowrap; }
.wh-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-cloud a { font-size: 12.5px; padding: 5px 12px; border-radius: 8px; background: var(--wh-surface-2); color: var(--wh-text-2); }
.wh-cloud a:hover { background: var(--wh-primary-soft); color: var(--wh-primary); }
.wh-cloud a.hot { background: var(--wh-primary-soft); color: var(--wh-primary); font-weight: 600; }
.wh-side { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 24px; align-items: start; }
.wh-side__main { min-width: 0; }
.wh-side__col { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--wh-header-h) + 20px); }

.wh-comment-form textarea, .wh-field .wh-input, .wh-field select, .wh-field textarea {
  width: 100%; background: var(--wh-surface); border: 1px solid var(--wh-border); color: var(--wh-text);
  border-radius: 10px; padding: 10px 13px; outline: none; transition: .2s;
}
.wh-comment-form textarea:focus, .wh-field .wh-input:focus, .wh-field select:focus, .wh-field textarea:focus { border-color: var(--wh-primary); box-shadow: 0 0 0 3px var(--wh-primary-soft); }
.wh-field { margin-bottom: 16px; }
.wh-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.wh-field small { color: var(--wh-text-3); font-size: 12px; display: block; margin-top: 5px; }
.wh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wh-upload-drop { border: 2px dashed var(--wh-border); border-radius: 8px; padding: 34px; text-align: center; color: var(--wh-text-3); background: var(--wh-surface-2); transition: .2s; cursor: pointer; }
.wh-upload-drop:hover, .wh-upload-drop.is-over { border-color: var(--wh-primary); background: var(--wh-primary-soft); color: var(--wh-primary); }
.wh-upload-drop i { font-size: 36px; display: block; margin-bottom: 10px; }

/* ============================================================
   Lightbox, toast, misc
   ============================================================ */
.wh-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,10,16,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.wh-lightbox.is-open { display: flex; }
.wh-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.wh-lightbox__cap { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 16px; text-align: center; }
.wh-lightbox__close { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; }
.wh-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; }
.wh-lightbox__nav--prev { left: 20px; } .wh-lightbox__nav--next { right: 20px; }
.wh-lightbox__nav:hover, .wh-lightbox__close:hover { background: rgba(255,255,255,.3); }
.wh-toast { position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 20px); z-index: 300; background: #1d2030; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 12px 36px rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: .25s; display: flex; align-items: center; gap: 8px; }
.wh-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.wh-toast i { color: #8fb9a4; }
.wh-backtop { position: fixed; right: 22px; bottom: 26px; z-index: 50; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--wh-border); background: var(--wh-surface); color: var(--wh-text-2); display: none; place-items: center; box-shadow: var(--wh-shadow); font-size: 17px; }
.wh-backtop.is-show { display: grid; }
.wh-backtop:hover { color: var(--wh-primary); }
.wh-cta { border-radius: 10px; padding: 40px; background: var(--wh-gradient); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.wh-cta h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.wh-cta p { margin: 0; opacity: .88; font-size: 14px; }
.wh-cta .wh-btn { background: #fff; color: var(--wh-primary); position: relative; z-index: 1; }
.wh-page-head { padding: 34px 0 8px; }
.wh-page-head h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.8px; }
.wh-page-head p { color: var(--wh-text-2); margin: 0; }
.wh-community { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wh-community__item { background: var(--wh-surface); border: 1px solid var(--wh-border); border-radius: 8px; padding: 16px; box-shadow: var(--wh-shadow); }
.wh-community__item .top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 13px; }
.wh-community__item p { margin: 0; color: var(--wh-text-2); font-size: 13.5px; }
.wh-community__item time { display: block; margin-top: 10px; color: var(--wh-text-3); font-size: 11.5px; }

/* Footer */
.wh-footer { margin-top: 70px; border-top: 1px solid var(--wh-border); background: var(--wh-surface); padding: 44px 0 22px; }
.wh-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.wh-footer h4 { font-size: 14px; margin: 0 0 14px; }
.wh-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.wh-footer ul a { color: var(--wh-text-2); font-size: 13px; }
.wh-footer ul a:hover { color: var(--wh-primary); }
.wh-footer__about { color: var(--wh-text-2); font-size: 13px; max-width: 320px; line-height: 1.9; }
.wh-footer__bottom { border-top: 1px solid var(--wh-border); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--wh-text-3); font-size: 12.5px; }

/* Pagination */
.wh-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.wh-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; background: var(--wh-surface); border: 1px solid var(--wh-border); display: grid; place-items: center; font-size: 13px; color: var(--wh-text-2); }
.wh-pagination .page-numbers.current, .wh-pagination .page-numbers:hover { background: var(--wh-gradient); color: #fff; border-color: transparent; }

/* WordPress core helpers */
.alignleft { float: left; margin: 0 18px 18px 0; }
.alignright { float: right; margin: 0 0 18px 18px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--wh-text-3); text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.sticky { position: relative; }
.bypostauthor { }
.gallery-caption { font-size: 12px; }

/* ============================================================
   v1.1 沉浸式首页：胶囊导航 + 暗色纯图网格
   （覆盖上面的通用样式，归档 / 详情页仍保留经典信息卡片）
   ============================================================ */

/* --- 中性深灰配色：贴近壁纸社区 --- */

/* --- 顶栏：纯色底 + 居中胶囊 --- */
.wh-header {
  height: 64px;
  background: var(--wh-bg);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.wh-header__inner { gap: 16px; }
.wh-logo {
  gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0;
  color: var(--wh-text-2); background: var(--wh-surface-2);
  border: 1px solid var(--wh-border); border-radius: 100px;
  padding: 4px 14px 4px 5px;
}
.wh-logo:hover { color: var(--wh-text); }
.wh-logo__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--wh-surface); color: var(--wh-text-2);
  font-size: 13px; box-shadow: none;
}
.wh-logo__en { font-size: 9px; letter-spacing: 1px; opacity: .7; }

.wh-nav {
  display: flex; align-items: center; gap: 2px;
  background: var(--wh-surface-2); border: 1px solid var(--wh-border);
  border-radius: 100px; padding: 5px 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.wh-nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.wh-nav__menu a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--wh-text-2);
}
.wh-nav__menu a:hover { background: rgba(255, 255, 255, .08); color: var(--wh-text); }
.wh-nav__menu a.is-active { background: var(--wh-surface); color: var(--wh-text); box-shadow: 0 1px 4px rgba(0,0,0,.16); }
.wh-nav__menu i { font-size: 14px; opacity: .85; }
.wh-nav__sep { width: 1px; height: 20px; background: var(--wh-border); margin: 0 5px; flex: 0 0 1px; }
.wh-nav > .wh-nav__icon {
  width: 32px; height: 32px; flex: 0 0 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--wh-text-2);
  display: grid; place-items: center; position: relative;
  font-size: 15px; text-decoration: none; transition: .16s;
}
.wh-nav > .wh-nav__icon:hover { background: rgba(255, 255, 255, .1); color: var(--wh-text); }
.wh-nav > .wh-nav__icon--brand { font-weight: 800; font-size: 13px; }
.wh-nav__dot {
  position: absolute; top: 5px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: #ff5f5f; border: 1px solid var(--wh-surface-2);
}
.wh-btn--publish {
  height: 36px; padding: 0 16px; border-radius: 100px; font-size: 13px;
  background: var(--wh-surface-2); border: 1px solid var(--wh-border); color: var(--wh-text);
  box-shadow: none; font-weight: 500;
}
.wh-btn--publish:hover { background: var(--wh-surface); color: var(--wh-text); border-color: var(--wh-primary); box-shadow: none; }
.wh-btn--publish i { font-size: 14px; }
.wh-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--wh-surface); border: 1px solid var(--wh-border);
  color: var(--wh-text-2); display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.wh-user-avatar:hover { color: var(--wh-text); border-color: var(--wh-primary); }
.wh-header .wh-nav-toggle { background: transparent; }
/* ============================================================
   社区功能：认证 / 个人中心 / 投稿 / 审核 / 通知 / 弹窗
   ============================================================ */

/* --- 通用小组件 --- */
.wh-btn--xs { height: 27px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; }
.wh-status { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.wh-status--ok { background: rgba(59,165,93,.14); color: #2f9e56; }
.wh-status--warn { background: rgba(245,158,66,.16); color: #d98518; }
.wh-status--bad { background: rgba(224,72,63,.14); color: #e0483f; }
.wh-status--mute { background: var(--wh-surface-2); color: var(--wh-text-3); }
.wh-chip--ok { background: rgba(59,165,93,.12); color: #2f9e56; }
.wh-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wh-panel__head .wh-panel__title { flex: 1; }
.wh-panel__title small { font-weight: 400; color: var(--wh-text-3); font-size: 12px; }
.wh-rule-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--wh-border); font-size: 13px; }
.wh-rule-list > div:last-child { border-bottom: 0; }
.wh-rule-list > div span { color: var(--wh-text-2); }
.wh-rule-list > div b { color: var(--wh-primary); font-variant-numeric: tabular-nums; }
.wh-rule-list > div.is-current { background: var(--wh-primary-soft); border-radius: 8px; padding: 8px; border-bottom: 0; }
.wh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wh-table th, .wh-table td { padding: 10px 12px; border-bottom: 1px solid var(--wh-border); text-align: left; }
.wh-table th { color: var(--wh-text-3); font-weight: 600; font-size: 12px; background: var(--wh-surface-2); }
.wh-table td { color: var(--wh-text-2); }
.wh-table td b { color: var(--wh-text); }
.wh-plus { color: #2f9e56; font-weight: 700; }
.wh-minus { color: #e0483f; font-weight: 700; }
.wh-mini-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--wh-border); font-size: 12.5px; }
.wh-mini-row:last-child { border-bottom: 0; }
.wh-mini-row a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-mini-row small { color: var(--wh-text-3); font-size: 11px; }
.wh-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--wh-text-2); cursor: pointer; font-weight: 400; }
.wh-check input { accent-color: var(--wh-primary); width: 15px; height: 15px; }
.wh-check--agree { align-items: flex-start; line-height: 1.6; font-size: 12.5px; }
.wh-check--agree input { margin-top: 3px; flex: 0 0 15px; }
.wh-check--box { background: var(--wh-primary-soft); border: 1px solid color-mix(in srgb, var(--wh-primary) 22%, transparent); border-radius: 8px; padding: 12px 14px; }
.wh-check--box b { color: var(--wh-primary); }
.wh-auth-msg { min-height: 18px; font-size: 12.5px; margin: 8px 0; line-height: 1.5; }

/* --- 头像 --- */
.wh-avatar-img { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--wh-gradient); }
.wh-avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.wh-avatar-img--initial { color: #fff; font-weight: 700; }

/* --- 顶栏：积分 / 通知 / 用户菜单 --- */
.wh-points-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 100px; font-size: 12.5px; font-weight: 700; color: var(--wh-primary); background: var(--wh-primary-soft); border: 1px solid var(--wh-border); white-space: nowrap; }
.wh-points-chip:hover { background: var(--wh-surface-2); color: var(--wh-primary); }
.wh-header__login, .wh-header__reg { height: 34px; }
.wh-notice-wrap, .wh-user-wrap { position: relative; }
.wh-header__actions .wh-nav__icon {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: transparent; border: 0; color: var(--wh-text-2);
  display: grid; place-items: center; position: relative; font-size: 16px; cursor: pointer;
}
.wh-header__actions .wh-nav__icon:hover { background: var(--wh-surface-2); color: var(--wh-primary); }
.wh-notice-wrap .wh-nav__dot {
  top: -2px; right: -2px; width: auto; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; color: #fff;
}
.wh-user-avatar { overflow: hidden; padding: 0; }
.wh-user-avatar .wh-avatar-img { border-radius: 50%; }
.wh-notice-pop, .wh-user-menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 80;
  width: 320px; background: var(--wh-surface); border: 1px solid var(--wh-border);
  border-radius: 8px; box-shadow: var(--wh-shadow-hover); display: none; overflow: hidden;
}
.wh-notice-wrap.is-open .wh-notice-pop, .wh-user-wrap.is-open .wh-user-menu { display: block; }
.wh-user-menu { width: 224px; padding: 6px; }
.wh-user-menu__head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--wh-border); margin-bottom: 5px; }
.wh-user-menu__head b { display: block; font-size: 14px; }
.wh-user-menu__head small { color: var(--wh-text-3); font-size: 11.5px; }
.wh-user-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; color: var(--wh-text-2); }
.wh-user-menu a:hover { background: var(--wh-surface-2); color: var(--wh-primary); }
.wh-user-menu a i { font-size: 15px; width: 18px; }
.wh-user-menu__out { border-top: 1px solid var(--wh-border); border-radius: 0; margin-top: 4px; padding-top: 11px !important; color: #e0483f !important; }
.wh-user-menu__badge { margin-left: auto; background: #ff5f5f; color: #fff; font-size: 10px; border-radius: 9px; padding: 0 6px; line-height: 16px; }
.wh-notice-pop__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--wh-border); }
.wh-notice-pop__head b { font-size: 14px; }
.wh-notice-pop__head button { background: none; border: 0; color: var(--wh-primary); font-size: 12px; cursor: pointer; }
.wh-notice-pop__list { max-height: 320px; overflow-y: auto; }
.wh-notice-pop__item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--wh-border); position: relative; }
.wh-notice-pop__item:hover { background: var(--wh-surface-2); }
.wh-notice-pop__item.is-unread::before { content: ""; position: absolute; left: 6px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--wh-primary); }
.wh-notice-pop__item b { display: block; font-size: 13px; margin-bottom: 2px; }
.wh-notice-pop__item span { display: block; color: var(--wh-text-2); font-size: 12px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-notice-pop__item small { color: var(--wh-text-3); font-size: 11px; }
.wh-notice-pop__empty, .wh-notice-pop__loading { padding: 30px 14px; text-align: center; color: var(--wh-text-3); font-size: 13px; }
.wh-notice-pop__foot { display: block; text-align: center; padding: 11px; color: var(--wh-primary); font-size: 12.5px; font-weight: 600; }

/* ============================================================
   v1.2 沉浸式首页卡片 / 哲风式详情页 / tianai-captcha
   ============================================================ */
.wh-btn--light { background: rgba(255,255,255,.94); color: #20243a; border: 1px solid rgba(255,255,255,.62); }
.wh-btn--light:hover { background: #fff; color: #1b1e2b; }
.wh-btn.is-loading { opacity: .72; pointer-events: none; }
.wh-grid--uniform .wh-card__quick .wh-btn--light { height: 32px; font-size: 12px; border-radius: 8px; font-weight: 600; }

/* ============================================================
   v1.8 全站公告条（header.php 在前台任意页面输出，故放核心样式）
   ============================================================ */
.wh-noticebar { background: var(--wh-primary-soft); border-bottom: 1px solid var(--wh-border); font-size: 13px; }
.wh-noticebar__inner { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 0; }
.wh-noticebar__tag { flex: 0 0 auto; padding: 2px 8px; border-radius: 4px; color: #fff; font-size: 11px; background: var(--wh-notice-color, var(--wh-primary)); }
.wh-noticebar__title { flex: 1 1 auto; min-width: 0; color: var(--wh-text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-noticebar__title:hover { color: var(--wh-primary); }
.wh-noticebar__date { flex: 0 0 auto; color: var(--wh-text-3); font-size: 11.5px; }
.wh-noticebar__all { flex: 0 0 auto; color: var(--wh-primary); text-decoration: none; font-size: 12px; }
.wh-noticebar__x { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--wh-text-3); cursor: pointer; border-radius: 4px; }
.wh-noticebar__x:hover { background: var(--wh-surface); color: var(--wh-text); }
@media (max-width: 900px) { .wh-noticebar__date, .wh-noticebar__all { display: none; } }

