/* ============================================================
   趣狐主题 qhu v1.0.0 - Q趣吧 (qq8m.top)
   设计语言参照 hopelee：白顶栏 + 蓝色渐变 + 卡片列表 + 右侧缩略图
   ============================================================ */

:root {
  --qh-blue: #448ef6;
  --qh-blue2: #42a1ff;
  --qh-blue-deep: #4693e9;
  --qh-blue-dark: #2f7fd0;
  --qh-orange: #ff5f33;
  --qh-orange2: #ff9b02;
  --qh-purple: #a86af9;
  --qh-green: #22c55e;
  --qh-pink: #f43f5e;
  --qh-cyan: #06b6d4;
  --qh-bg: #f9f7f7;
  --qh-gray: #ebeef5;
  --qh-text: #333333;
  --qh-text2: #555555;
  --qh-muted: #999999;
  --qh-border: #f0f0f0;
  --qh-footer: #2b3037;
  --qh-shadow: 0 2px 10px rgba(30, 41, 59, 0.06);
  --qh-shadow-hover: 0 6px 20px rgba(68, 142, 246, 0.14);
  --qh-topbar-h: 56px;
  --qh-subnav-h: 50px;
  --qh-radius: 12px;
  --qh-font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--qh-font);
  font-size: 14px;
  color: var(--qh-text);
  background: var(--qh-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.qh-nav-open { overflow: hidden; }

a { color: var(--qh-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--qh-blue-dark); }

img { max-width: 100%; }

ul, ol { list-style: none; margin: 0; padding: 0; }

.qh-ic { flex: none; vertical-align: -0.15em; }

.qh-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ============================================================
   顶栏
   ============================================================ */

.qh-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--qh-topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--qh-border);
}

.qh-topbar .qh-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动端搜索入口 */
.qh-m-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--qh-text2);
  flex: none;
}
.qh-m-search:active { background: var(--qh-gray); }

/* Logo */
.qh-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 auto;
  color: var(--qh-text);
  font-weight: 700;
}
.qh-logo:hover { color: var(--qh-text); }
.qh-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--qh-blue2), var(--qh-blue-deep));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(68, 142, 246, 0.35);
}
.qh-logo-name { font-size: 16.5px; letter-spacing: 0.5px; }

/* 汉堡按钮 */
.qh-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--qh-text2);
  cursor: pointer;
  flex: none;
  padding: 0;
}
.qh-menu-btn:active { background: var(--qh-gray); }

/* PC 导航 */
.qh-nav-pc { display: none; }
.qh-nav-pc ul { display: flex; align-items: center; }
.qh-nav-pc a {
  display: flex;
  align-items: center;
  height: var(--qh-topbar-h);
  padding: 0 13px;
  font-size: 14px;
  color: var(--qh-text2);
  position: relative;
}
.qh-nav-pc a:hover { color: var(--qh-blue); }
.qh-nav-pc a.on { color: var(--qh-blue); font-weight: 600; }
.qh-nav-pc a.on::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--qh-blue2), var(--qh-blue));
}

/* PC 搜索框 */
.qh-search-pc { display: none; }

/* ============================================================
   移动端抽屉菜单
   ============================================================ */

.qh-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 120;
  width: 272px;
  max-width: 82vw;
  background: #fff;
  box-shadow: 6px 0 24px rgba(15, 23, 42, 0.12);
  transform: translateX(-102%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.qh-nav.open { transform: translateX(0); }

.qh-nav-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--qh-topbar-h);
  padding: 0 6px 0 18px;
  border-bottom: 1px solid var(--qh-border);
  font-size: 15px;
  font-weight: 700;
  flex: none;
}
.qh-nav-hd button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--qh-muted);
  cursor: pointer;
  padding: 0;
}

.qh-nav ul { padding: 8px 0; }
.qh-nav ul a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  font-size: 14.5px;
  color: var(--qh-text2);
  border-left: 3px solid transparent;
}
.qh-nav ul a:active { background: var(--qh-bg); }
.qh-nav ul a.on {
  color: var(--qh-blue);
  font-weight: 600;
  background: #f0f6ff;
  border-left-color: var(--qh-blue);
}

.qh-mask {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.qh-mask.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   首页 Hero 横幅
   ============================================================ */

.qh-hero {
  padding: 16px 0 4px;
  background: linear-gradient(180deg, #e8f2ff 0%, var(--qh-bg) 100%);
}

.qh-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 26px 20px 24px;
  background: linear-gradient(120deg, #4693e9 0%, #42a1ff 55%, #448ef6 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(68, 142, 246, 0.32);
}
.qh-hero-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.qh-hero-card::before {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -52px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.qh-hero-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--qh-orange), var(--qh-orange2));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  box-shadow: 0 3px 8px rgba(255, 95, 51, 0.35);
}

.qh-hero-title {
  position: relative;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.qh-hero-sub {
  position: relative;
  margin: 0 0 18px;
  font-size: 13px;
  opacity: 0.92;
}

.qh-hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: 99px;
  background: #fff;
  color: var(--qh-blue);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: transform .2s ease;
}
.qh-hero-btn:hover { transform: translateY(-1px); color: var(--qh-blue-dark); }

/* ============================================================
   首页搜索区（大图背景 1:1 参考版式）+ 轮播广告（搜索栏下方）
   ============================================================ */
.qh-hero-carousel {
  padding: 0;
  background: var(--qh-bg);
}

/* ---- 搜索区：静态大图背景 + 叠加标题/搜索/按钮 ---- */
.qh-hero-search {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: linear-gradient(180deg, #3a8ede 0%, #2c4f86 100%);
}
.qh-hs-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qh-hs-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.05) 45%, rgba(15, 23, 42, 0.38) 100%);
}
.qh-hs-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6px;
}
.qh-hs-title {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 14px;
  text-indent: 14px; /* 平衡末字符间距，保持视觉居中 */
  color: #fff;
  text-shadow: 0 2px 16px rgba(15, 23, 42, 0.5);
}
.qh-hs-sub {
  margin: 0 0 26px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.5);
  letter-spacing: 1.5px;
}

/* 毛玻璃搜索框（参考版式：右侧为素色放大镜图标） */
.qh-banner-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 620px;
  height: 54px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.24);
}
.qh-bs-type {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  font-size: 15px;
  color: #3d4757;
  padding-right: 14px;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}
.qh-banner-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 14px;
  font-size: 15px;
  color: #1f2937;
}
.qh-banner-search input::placeholder { color: #9aa4b2; }
.qh-banner-search button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}
.qh-banner-search button:hover { transform: scale(1.08); color: #1f2937; }

/* 搜索区内彩色大按钮 */
.qh-banner-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.qh-pill {
  display: inline-block;
  text-align: center;
  padding: 13px 36px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.qh-pill:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.34); }
.qh-pill.pill-blue { background: linear-gradient(135deg, #3b5bff, #4a6cf7); }
.qh-pill.pill-green { background: linear-gradient(135deg, #1e9e50, #178a43); }
.qh-pill.pill-purple { background: linear-gradient(135deg, #8b3ff0, #7c3aed); }
.qh-pill.pill-orange { background: linear-gradient(135deg, #ff9b02, #ff5f33); }

/* ---- 轮播广告（左侧大图轮播 + 右侧两个小图；小图仅 PC 显示） ---- */
.qh-ads {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--qh-bg);
}
/* 大图轮播容器 */
.qh-ads-main {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.qh-banner-bg,
.qh-banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.qh-banner-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
  pointer-events: none;
}
.qh-banner-slide.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.qh-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 文章轮播片底部标题条 */
.qh-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 38px 18px 16px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.42) 55%, transparent);
  color: #fff;
  pointer-events: none;
}
.qh-slide-cap-tag {
  flex: none;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff9b02, #ff5f33);
  font-weight: 700;
  letter-spacing: 1px;
}
.qh-slide-cap-tx {
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 广告链接覆盖层（图片广告可点击跳转） */
.qh-banner-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* 右侧两个小图广告（默认隐藏，仅 PC 端展示） */
.qh-ads-side { display: none; }
.qh-adcard {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}
.qh-adcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.qh-adcard:hover img { transform: scale(1.06); }
.qh-adcard-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.8), transparent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 轮播圆点 */
.qh-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}
.qh-banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.qh-banner-dot.on {
  width: 20px;
  background: #fff;
}

@media (min-width: 768px) {
  .qh-hero-search { height: 500px; }
  .qh-hs-title { font-size: 56px; letter-spacing: 18px; text-indent: 18px; }
  .qh-hs-sub { font-size: 17px; margin-bottom: 30px; }
  /* PC 端：轮播广告变为居中受限卡片，不再全宽拉伸 */
  .qh-ads {
    max-width: 1200px;
    margin: 18px auto 0;
    height: 280px;
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
  }
}
@media (min-width: 992px) {
  .qh-hero-search { height: 540px; }
  /* PC 端：左大图 + 右两个小图（竖排） */
  .qh-ads {
    display: flex;
    gap: 12px;
    height: 330px;
  }
  .qh-ads-main {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
  }
  .qh-ads-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    flex: none;
  }
}

/* ============================================================
   主体布局
   ============================================================ */

.qh-main { padding: 14px 0 26px; }

.qh-cols { display: block; }
.qh-col-main { min-width: 0; }
.qh-side { min-width: 0; }

/* ============================================================
   卡片通用
   ============================================================ */

.qh-card {
  background: #fff;
  border-radius: var(--qh-radius);
  box-shadow: var(--qh-shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.qh-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--qh-border);
}
.qh-card-hd .t {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--qh-text);
}
.qh-card-hd .t::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 15px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--qh-blue2), var(--qh-blue));
}
.qh-card-hd .more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--qh-muted);
  flex: none;
}
.qh-card-hd a.more { color: var(--qh-blue); }

.qh-card-bd { padding: 12px 14px; }

/* ============================================================
   分类快捷入口
   ============================================================ */

.qh-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qh-quick-item {
  display: block;
  border-radius: 10px;
  padding: 11px 4px 10px;
  text-align: center;
  background: #eef4ff;
  color: var(--qh-text);
}
.qh-quick-item:hover { color: var(--qh-text); filter: brightness(0.97); }
.qh-quick-item.qc2 { background: #fff3ec; }
.qh-quick-item.qc3 { background: #f6efff; }
.qh-quick-item.qc4 { background: #e9fbf0; }
.qh-quick-item.qc5 { background: #ffeef1; }
.qh-quick-item.qc6 { background: #e6f8fb; }

.qh-quick-item .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--qh-blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(68, 142, 246, 0.3);
}
.qh-quick-item.qc2 .ic { background: var(--qh-orange); box-shadow: 0 4px 10px rgba(255, 95, 51, 0.3); }
.qh-quick-item.qc3 .ic { background: var(--qh-purple); box-shadow: 0 4px 10px rgba(168, 106, 249, 0.3); }
.qh-quick-item.qc4 .ic { background: var(--qh-green); box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3); }
.qh-quick-item.qc5 .ic { background: var(--qh-pink); box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3); }
.qh-quick-item.qc6 .ic { background: var(--qh-cyan); box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3); }

.qh-quick-item .nm {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-quick-item .ct { display: block; font-size: 10px; color: var(--qh-muted); }

/* ============================================================
   精选导读
   ============================================================ */

.qh-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.qh-guide-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid var(--qh-border);
  border-radius: 10px;
  background: #fff;
  color: var(--qh-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qh-guide-item:hover {
  border-color: #cfe3fb;
  box-shadow: var(--qh-shadow-hover);
  color: var(--qh-text);
}
.qh-guide-item .tag {
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--qh-blue);
}
.qh-guide-item .tag.tg2 { background: var(--qh-orange); }
.qh-guide-item .tag.tg3 { background: var(--qh-purple); }
.qh-guide-item .tag.tg4 { background: var(--qh-green); }
.qh-guide-item .tt {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qh-guide-item .dt { font-size: 10.5px; color: var(--qh-muted); }

/* ============================================================
   分类标签条
   ============================================================ */

.qh-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.qh-chips::-webkit-scrollbar { display: none; }

.qh-chip {
  flex: none;
  padding: 5px 14px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--qh-border);
  font-size: 12.5px;
  color: var(--qh-text2);
  white-space: nowrap;
}
.qh-chip:hover { color: var(--qh-blue); border-color: #cfe3fb; }
.qh-chip.on {
  background: linear-gradient(90deg, var(--qh-blue2), var(--qh-blue));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   文章列表
   ============================================================ */

.qh-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--qh-border);
  color: var(--qh-text);
}
.qh-item:last-child { border-bottom: 0; }
.qh-item:hover { background: #fafcff; color: var(--qh-text); }

.qh-item-bd { flex: 1 1 auto; min-width: 0; }

.qh-item-bd .ttl {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qh-item:hover .qh-item-bd .ttl { color: var(--qh-blue); }

.qh-item-bd .desc {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--qh-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qh-item-bd .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--qh-muted);
}
.qh-item-bd .meta .m { display: inline-flex; align-items: center; gap: 3px; }
.qh-item-bd .meta .cat {
  padding: 1px 7px;
  border-radius: 6px;
  background: #eef4ff;
  color: var(--qh-blue);
  font-weight: 600;
}

.qh-item-img {
  position: relative;
  flex: none;
  width: 108px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f0fa, #cfe4f5);
}
.qh-item-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.qh-item:hover .qh-item-img img { transform: scale(1.06); }
.qh-item-img .ph {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #a8cdf2, #7fb3ec);
}
.qh-item-img.noimg .ph,
.qh-item-img.img-fail .ph { display: flex; }

.qh-item-simple { padding: 10px 14px; }
.qh-item-simple .ttl {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  -webkit-line-clamp: 1;
}

/* 置顶徽标 */
.qh-badge {
  display: inline-block;
  margin-right: 5px;
  padding: 0 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--qh-orange), var(--qh-orange2));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  vertical-align: 1px;
}

/* ============================================================
   按钮 / 空状态 / 分页
   ============================================================ */

.qh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 18px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--qh-blue2), var(--qh-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--qh-font);
  box-shadow: 0 4px 12px rgba(68, 142, 246, 0.28);
}
.qh-btn:hover { color: #fff; filter: brightness(1.04); }
.qh-btn.orange {
  background: linear-gradient(90deg, var(--qh-orange), var(--qh-orange2));
  box-shadow: 0 4px 12px rgba(255, 95, 51, 0.28);
}
.qh-btn.block { display: flex; width: 100%; }

.qh-empty {
  padding: 46px 20px;
  text-align: center;
  color: var(--qh-muted);
}
.qh-empty .t1 { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--qh-text2); }
.qh-empty .t2 { margin-top: 5px; font-size: 12px; }
.qh-empty .act { margin-top: 16px; }

.qh-pb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 4px;
}
.qh-pb a, .qh-pb .now-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--qh-border);
  font-size: 13px;
  color: var(--qh-text2);
  box-shadow: var(--qh-shadow);
}
.qh-pb a:hover { color: var(--qh-blue); border-color: #cfe3fb; }
.qh-pb .now-page {
  background: linear-gradient(90deg, var(--qh-blue2), var(--qh-blue));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   侧边栏
   ============================================================ */

.qh-widget-stats .qh-card-bd { padding: 14px; }

.qh-stats { display: flex; }
.qh-stats .st {
  flex: 1;
  text-align: center;
  position: relative;
}
.qh-stats .st + .st::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--qh-border);
}
.qh-stats .n {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--qh-blue);
  line-height: 1.2;
}
.qh-stats .l { display: block; font-size: 11px; color: var(--qh-muted); margin-top: 2px; }

.qh-stats-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  padding: 8px;
  border-radius: 99px;
  background: #f0f6ff;
  color: var(--qh-blue);
  font-size: 12.5px;
  font-weight: 600;
}
.qh-stats-btn:hover { background: #e2eeff; color: var(--qh-blue-dark); }

.qh-rank a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: var(--qh-text2);
  border-bottom: 1px dashed var(--qh-border);
}
.qh-rank a:last-child { border-bottom: 0; }
.qh-rank a:hover { color: var(--qh-blue); }
.qh-rank .no {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--qh-gray);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.qh-rank a:nth-child(1) .no { background: linear-gradient(135deg, #ff9b02, #ff5f33); }
.qh-rank a:nth-child(2) .no { background: linear-gradient(135deg, #ffb84d, #ff9b02); }
.qh-rank a:nth-child(3) .no { background: linear-gradient(135deg, #a8cdf2, #448ef6); }
.qh-rank .tt {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-rank .ct { flex: none; font-size: 11px; color: var(--qh-muted); display: inline-flex; align-items: center; gap: 3px; }

.qh-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  color: var(--qh-text2);
  border-bottom: 1px dashed var(--qh-border);
  font-size: 13px;
}
.qh-cat-list a:last-child { border-bottom: 0; }
.qh-cat-list a:hover { color: var(--qh-blue); }
.qh-cat-list .nm { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-cat-list .nm .qh-ic { color: var(--qh-blue); }
.qh-cat-list .ct { flex: none; font-size: 11px; color: var(--qh-muted); }

/* ============================================================
   搜索页
   ============================================================ */

.qh-search-hero {
  padding: 26px 0 22px;
  background: linear-gradient(160deg, #4693e9 0%, #42a1ff 60%, #448ef6 100%);
  color: #fff;
}
.qh-search-hero .t { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.qh-search-hero .s { margin: 5px 0 16px; font-size: 12.5px; opacity: 0.9; }

.qh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 14px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  color: var(--qh-muted);
}
.qh-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-family: var(--qh-font);
  color: var(--qh-text);
  background: transparent;
}
.qh-search input::placeholder { color: #b3b8c2; }
.qh-search button {
  flex: none;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--qh-blue2), var(--qh-blue));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--qh-font);
}
.qh-search button:hover { filter: brightness(1.05); }

/* ============================================================
   文章页
   ============================================================ */

.qh-art-hero {
  padding: 20px 0 18px;
  background: linear-gradient(160deg, #4693e9 0%, #42a1ff 60%, #448ef6 100%);
  color: #fff;
}
.qh-art-title {
  margin: 0;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.5;
}
.qh-art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.92;
}
.qh-art-meta .m { display: inline-flex; align-items: center; gap: 4px; }

.qh-art-bar {
  padding: 0 14px;
  border-bottom: 1px solid var(--qh-border);
}
.qh-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  font-size: 12px;
  color: var(--qh-muted);
}
.qh-crumb a { color: var(--qh-text2); }
.qh-crumb a:hover { color: var(--qh-blue); }
.qh-crumb .sep { color: #d5d9e0; }

/* 下载地址卡 */
.qh-dl {
  margin: 14px;
  padding: 13px 14px;
  border-radius: var(--qh-radius);
  background: linear-gradient(180deg, #f0f7ff, #f7fbff);
  border: 1px solid #dceafd;
}
.qh-dl-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}
.qh-dl-hd .t {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--qh-text);
}
.qh-dl-hd .t .qh-ic { color: var(--qh-blue); }
.qh-dl-hd .report { font-size: 11.5px; color: var(--qh-muted); }
.qh-dl-hd .report:hover { color: var(--qh-orange); }

.qh-dl-btns { display: grid; gap: 9px; }
.qh-dl-row { display: flex; align-items: stretch; gap: 8px; }
.qh-dl-row .qh-dl-btn { flex: 1 1 auto; min-width: 0; }
.qh-dl-row .qh-dl-btn > span:not(.go) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  transition: transform .2s ease, filter .2s ease;
}
.qh-dl-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }
.qh-dl-btn .go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.92;
}
/* 「转存到网盘」次级按钮：复制链接并打开网盘网页版 */
.qh-dl-cc {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border: 1.5px solid var(--qh-blue);
  border-radius: 10px;
  background: #fff;
  color: var(--qh-blue);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.qh-dl-cc:hover { background: var(--qh-blue); color: #fff; transform: translateY(-1px); }
.qh-dl-cc:active { transform: translateY(0); }
.qh-dl-cc .qh-ic { flex: 0 0 auto; }

.qh-dl-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--qh-text2);
}
.qh-dl-tip .qh-ic { color: var(--qh-orange); vertical-align: -2px; }
.qh-dl-tip code {
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: #fff3ec;
  color: var(--qh-orange);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 正文排版 */
.qh-content { font-size: 14.5px; line-height: 1.85; color: #1e293b; word-wrap: break-word; }
.qh-content p { margin: 0 0 .9em; }
.qh-content img { border-radius: 8px; display: block; margin: 8px auto; max-width: 100%; height: auto; }
.qh-content a { word-break: break-all; }
.qh-content h2, .qh-content h3, .qh-content h4 {
  margin: 1.3em 0 .6em;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}
.qh-content h2 { font-size: 17px; }
.qh-content h3 { font-size: 15.5px; }
.qh-content h4 { font-size: 14px; }
.qh-content blockquote {
  margin: 0 0 1em;
  padding: 10px 14px;
  border-left: 4px solid var(--qh-blue);
  background: #f0f7ff;
  border-radius: 0 8px 8px 0;
  color: var(--qh-text2);
  font-size: 13.5px;
}
.qh-content blockquote p { margin: 0; }
.qh-content ul, .qh-content ol { padding-left: 1.4em; margin: 0 0 .9em; }
.qh-content ul li { list-style: disc; }
.qh-content ol li { list-style: decimal; }
.qh-content table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 1em; }
.qh-content th, .qh-content td { border: 1px solid var(--qh-border); padding: 7px 9px; }
.qh-content th { background: #f0f7ff; }
.qh-content pre {
  margin: 0 0 1em;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.qh-content code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #eef2f7;
  color: #d6336c;
  font-size: 0.92em;
}
.qh-content pre code { background: transparent; color: inherit; padding: 0; }
.qh-content hr { border: 0; border-top: 1px solid var(--qh-border); margin: 1.4em 0; }

/* 标签 */
.qh-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 14px 4px;
  font-size: 12px;
  color: var(--qh-muted);
}
.qh-tag {
  padding: 3px 11px;
  border-radius: 99px;
  background: #f0f7ff;
  border: 1px solid #dceafd;
  color: var(--qh-blue);
  font-size: 12px;
}
.qh-tag:hover { background: var(--qh-blue); color: #fff; border-color: transparent; }

/* 上一篇 / 下一篇 */
.qh-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--qh-border);
}
.qh-pn a {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--qh-text2);
}
.qh-pn a:hover { background: #f0f7ff; color: var(--qh-text); }
.qh-pn .lb {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--qh-muted);
  margin-bottom: 3px;
}
.qh-pn .next .lb { justify-content: flex-end; }
.qh-pn .tx {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qh-pn .next { text-align: right; }

/* ============================================================
   评论区
   ============================================================ */

.qh-cmt .qh-card-hd { margin: 0 -14px; }

.cmt {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--qh-border);
}
.cmt:last-of-type { border-bottom: 0; }
.cmt .avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qh-blue2), var(--qh-blue));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.cmt .cbody { flex: 1 1 auto; min-width: 0; }
.cmt .chead { display: flex; align-items: center; gap: 9px; }
.cmt .cname { font-size: 13px; font-weight: 600; color: var(--qh-text2); }
.cmt .ctime { font-size: 11px; color: var(--qh-muted); }
.cmt .ctext { margin-top: 3px; font-size: 13.5px; line-height: 1.7; color: var(--qh-text); word-wrap: break-word; }
.cmt .creply { display: inline-block; margin-top: 4px; font-size: 12px; }
.cmt .cmt { padding: 10px 0 0; border-bottom: 0; }

.qh-cmt-form { padding: 4px 14px 14px; }
.qh-cmt-form .row { margin-bottom: 10px; }
.qh-cmt-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--qh-muted);
}
.qh-cmt-form input[type="text"],
.qh-cmt-form textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--qh-gray);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--qh-font);
  color: var(--qh-text);
  background: #fff;
  outline: 0;
  transition: border-color .2s ease;
}
.qh-cmt-form input[type="text"]:focus,
.qh-cmt-form textarea:focus { border-color: var(--qh-blue); }
.qh-cmt-form textarea { min-height: 92px; resize: vertical; }
.qh-cmt-form .vercode { display: flex; align-items: center; gap: 9px; }
.qh-cmt-form .vercode input { max-width: 130px; }
.qh-cmt-form .vercode img { height: 34px; border-radius: 8px; cursor: pointer; }

/* ============================================================
   页脚
   ============================================================ */

.qh-footer {
  background: var(--qh-footer);
  padding: 24px 0 30px;
  color: rgba(255, 255, 255, 0.72);
}
.qh-footer .flinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin-bottom: 12px;
}
.qh-footer .flinks a {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}
.qh-footer .flinks a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.qh-footer .fcopy {
  text-align: center;
  font-size: 11.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   底部标签栏 + 回顶按钮
   ============================================================ */

.qh-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--qh-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.05);
}
.qh-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 0 5px;
  font-size: 10px;
  color: var(--qh-muted);
}
.qh-tabbar a.on { color: var(--qh-blue); font-weight: 600; }

.qh-gotop {
  position: fixed;
  right: 14px;
  bottom: 74px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--qh-blue);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  padding: 0;
}
.qh-gotop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.qh-gotop:hover { color: var(--qh-blue-dark); }

body.has-tabbar { padding-bottom: 58px; }
body:has(.qh-tabbar) { padding-bottom: 58px; }
body:has(.qh-tabbar) .qh-gotop { bottom: 74px; }

/* ============================================================
   响应式：≥768px 平板
   ============================================================ */

@media (min-width: 768px) {
  .qh-quick { grid-template-columns: repeat(4, 1fr); }
  .qh-guide { grid-template-columns: repeat(3, 1fr); }
  .qh-item-img { width: 128px; height: 92px; }
  .qh-hero-title { font-size: 27px; }
  .qh-hero-card { padding: 34px 28px 30px; }
}

/* ============================================================
   响应式：≥992px 桌面端
   ============================================================ */

@media (min-width: 992px) {
  .qh-wrap { padding: 0 20px; }

  /* 顶栏：Logo 左 / 导航中 / 搜索右 */
  .qh-m-search, .qh-menu-btn { display: none; }
  .qh-logo { margin: 0; }
  .qh-nav-pc {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
  .qh-nav-pc ul { flex-wrap: wrap; justify-content: center; }
  .qh-nav-pc a { max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .qh-search-pc {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
    width: 230px;
    height: 36px;
    padding: 0 4px 0 12px;
    border-radius: 99px;
    background: var(--qh-bg);
    border: 1px solid var(--qh-border);
    transition: border-color .2s ease, background .2s ease;
  }
  .qh-search-pc:focus-within { border-color: var(--qh-blue); background: #fff; }
  .qh-search-pc .ic { display: flex; color: var(--qh-muted); }
  .qh-search-pc input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    font-family: var(--qh-font);
    color: var(--qh-text);
  }
  .qh-search-pc button {
    flex: none;
    height: 28px;
    padding: 0 13px;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--qh-blue2), var(--qh-blue));
    color: #fff;
    font-size: 12.5px;
    cursor: pointer;
    font-family: var(--qh-font);
  }

  /* 抽屉与遮罩在桌面端禁用 */
  .qh-nav, .qh-mask { display: none !important; }

  /* 双栏布局 */
  .qh-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
  }
  .qh-side { position: sticky; top: calc(var(--qh-topbar-h) + 14px); }

  .qh-hero { padding: 20px 0 6px; }
  .qh-hero-title { font-size: 30px; }
  .qh-hero-card { padding: 40px 34px 36px; }
  .qh-quick { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .qh-guide { grid-template-columns: repeat(3, 1fr); }
  .qh-dl-btns { grid-template-columns: 1fr 1fr; }
  .qh-art-title { font-size: 22px; }

  /* 桌面端隐藏底部标签栏 */
  .qh-tabbar { display: none; }
  body.has-tabbar, body:has(.qh-tabbar) { padding-bottom: 0; }
  .qh-gotop { bottom: 26px; right: 22px; }

  .qh-main { padding: 16px 0 40px; }
  .qh-footer { padding: 30px 0 36px; }
}

/* ============================================================
   PC 端对齐 amwa.cn（仅 ≥992px 生效，手机端完全不变）
   ============================================================ */
@media (min-width: 992px) {
  /* 浅灰背景（amwa 风） */
  body { background: #f1f2f4; }

  /* 容器略放宽，更接近 amwa 的舒展版式 */
  .qh-wrap { max-width: 1280px; }

  /* 首页：顶栏透明浮于 hero 大图之上（amwa 标志性效果） */
  .qh-pg-index .qh-topbar {
    position: fixed;
    top: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .qh-pg-index .qh-topbar .qh-logo-mark { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28); }
  .qh-pg-index .qh-topbar .qh-logo-name,
  .qh-pg-index .qh-topbar .qh-nav-pc a { color: #fff; }
  .qh-pg-index .qh-topbar .qh-nav-pc a:hover { color: #fff; opacity: .82; }
  .qh-pg-index .qh-topbar .qh-nav-pc a.on { color: #fff; }
  .qh-pg-index .qh-topbar .qh-nav-pc a.on::after { background: #fff; }
  .qh-pg-index .qh-topbar .qh-search-pc { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); }
  .qh-pg-index .qh-topbar .qh-search-pc input { color: #fff; }
  .qh-pg-index .qh-topbar .qh-search-pc input::placeholder { color: rgba(255, 255, 255, 0.72); }
  .qh-pg-index .qh-topbar .qh-search-pc .ic,
  .qh-pg-index .qh-topbar .qh-search-pc button { color: #fff; }

  /* 滚动后顶栏变白底（含首页） */
  .qh-topbar.scrolled {
    background: #fff;
    border-color: var(--qh-border);
    box-shadow: 0 1px 10px rgba(20, 30, 50, 0.08);
  }
  .qh-pg-index .qh-topbar.scrolled .qh-logo-name,
  .qh-pg-index .qh-topbar.scrolled .qh-nav-pc a { color: var(--qh-text2); }
  .qh-pg-index .qh-topbar.scrolled .qh-nav-pc a.on { color: var(--qh-blue); }
  .qh-pg-index .qh-topbar.scrolled .qh-nav-pc a.on::after { background: var(--qh-blue); }
  .qh-pg-index .qh-topbar.scrolled .qh-search-pc { background: var(--qh-bg); border-color: var(--qh-border); }
  .qh-pg-index .qh-topbar.scrolled .qh-search-pc input { color: var(--qh-text); }
  .qh-pg-index .qh-topbar.scrolled .qh-search-pc input::placeholder { color: var(--qh-muted); }
  .qh-pg-index .qh-topbar.scrolled .qh-search-pc .ic,
  .qh-pg-index .qh-topbar.scrolled .qh-search-pc button { color: var(--qh-muted); }

  /* 主内容：文章列表改为卡片网格（amwa 风：图上、文字下） */
  .qh-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .qh-list .qh-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(20, 30, 50, 0.05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .qh-list .qh-item:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 30, 50, 0.13);
  }
  .qh-list .qh-item:last-child { border-bottom: 0; }
  .qh-list .qh-item-img {
    order: -1;
    width: 100%;
    height: 172px;
    border-radius: 0;
  }
  .qh-list .qh-item-bd { padding: 12px 14px 14px; }
  .qh-list .qh-item-bd .ttl { font-size: 15px; }

  /* 板块卡片柔和阴影（amwa 风白卡） */
  .qh-card {
    border: 0;
    box-shadow: 0 2px 14px rgba(20, 30, 50, 0.05);
    overflow: hidden;
  }
}

/* ============================================================
   PC 端专属排版增强（参照资源站 PC 首页版式）
   —— 二级导航条 + 分类聚合面板
   —— 全部规则限定在 ≥992px，移动端版式保持不变
   ============================================================ */

/* ---- 二级导航条：移动端隐藏 ---- */
.qh-subnav { display: none; }

/* ---- 分类聚合面板：移动端隐藏 ---- */
.qh-hub { display: none; }

@media (min-width: 992px) {

  /* ---------- 二级导航条：分类直达栏（顶栏内部第二行，随顶栏吸顶） ---------- */
  .qh-subnav {
    display: block;
    background: #fff;
    border-top: 1px solid var(--qh-border);
    box-shadow: 0 2px 10px rgba(20, 30, 50, 0.04);
    height: 50px;
    overflow: hidden;
    transition: height .28s ease, opacity .2s ease, border-top-color .28s ease, box-shadow .28s ease;
  }
  /* 滚出顶部后自动收起分类条，把视野还给内容（主导航仍吸顶可用）；
     回到顶部时展开，保证「全部分类 + 分类芯片」在首屏完整可见 */
  .qh-topbar.scrolled .qh-subnav {
    height: 0;
    border-top-color: transparent;
    box-shadow: none;
    opacity: 0;
  }
  .qh-subnav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 50px;
  }
  /* 左：「全部分类」入口 + 分类芯片 */
  .qh-subnav-cats {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
  }
  /* 「全部分类」强调入口：渐变胶囊 + 图标，点击平滑滚动到下方分类面板 */
  .qh-subnav-cats .qh-subnav-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 28px;
    padding: 0 13px;
    margin-right: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--qh-blue2), var(--qh-blue));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(8, 122, 184, 0.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }
  .qh-subnav-cats .qh-subnav-all:hover {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(8, 122, 184, 0.34);
  }
  /* 分类芯片：透明底纯文字链接，悬停时浮现蓝色胶囊高亮 */
  .qh-subnav-cats a:not(.qh-subnav-all) {
    flex: 0 0 auto;
    display: inline-block;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--qh-text2);
    font-size: 12.5px;
    line-height: 26px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
  }
  .qh-subnav-cats a:not(.qh-subnav-all):hover {
    background: #e3f0fd;
    color: var(--qh-blue);
  }

  /* 右：热门标签（竖线分隔 + 火焰标签 + 橙色芯片） */
  .qh-subnav-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 100%;
    padding-left: 14px;
    border-left: 1px solid var(--qh-border);
  }
  .qh-subnav-tags a {
    flex: 0 0 auto;
    display: inline-block;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff3ec;
    color: #c2570a;
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }
  .qh-subnav-tags a:hover {
    background: var(--qh-orange);
    color: #fff;
    transform: translateY(-1px);
  }
  .qh-subnav-lb {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    margin-right: 3px;
    color: var(--qh-orange);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }
  .qh-subnav-lb .qh-ic { flex: 0 0 auto; }

  /* 分类面板锚点偏移（避开吸顶的顶栏 + 二级导航条） */
  .qh-hub { scroll-margin-top: calc(var(--qh-topbar-h) + var(--qh-subnav-h) + 16px); }

  /* ---------- 分类聚合面板 ---------- */
  .qh-hub {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 18px 0 6px;
    background: #fff;
    border-radius: var(--qh-radius);
    box-shadow: 0 2px 14px rgba(20, 30, 50, 0.05);
    overflow: hidden;
  }
  .qh-hub-col {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 14px;
    border-right: 1px solid var(--qh-border);
    min-width: 0;
  }
  .qh-hub-col:last-child { border-right: 0; }

  /* 栏目头：图标 + 分类名 + 更多 */
  .qh-hub-hd {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
  }
  .qh-hub-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eaf3ff;
    color: var(--qh-blue);
    flex: none;
  }
  .qh-hub-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--qh-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .qh-hub-name:hover { color: var(--qh-blue); }
  .qh-hub-more {
    margin-left: auto;
    flex: none;
    font-size: 12px;
    color: var(--qh-muted);
    padding: 2px 0 2px 8px;
  }
  .qh-hub-more::after {
    content: '>';
    margin-left: 3px;
    font-size: 11px;
  }
  .qh-hub-more:hover { color: var(--qh-blue); }

  /* 子项列表：两列排布（栏宽有限，两列可容纳更长标题） */
  .qh-hub-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
    min-height: 84px;
    align-content: start;
  }
  .qh-hub-item {
    display: block;
    font-size: 12.5px;
    line-height: 21px;
    color: var(--qh-text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .18s ease;
  }
  .qh-hub-item::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c9d2dd;
    vertical-align: middle;
    margin-right: 6px;
    transition: background .18s ease;
  }
  .qh-hub-item:hover { color: var(--qh-blue); }
  .qh-hub-item:hover::before { background: var(--qh-blue); }

  /* 底部统计数字 */
  .qh-hub-stat {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--qh-border);
    display: flex;
    align-items: baseline;
    gap: 5px;
  }
  .qh-hub-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--qh-text);
    font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  }
  .qh-hub-unit {
    font-size: 12.5px;
    color: var(--qh-muted);
  }

  /* 各栏配色区分 */
  .qh-hub-col.pg2 .qh-hub-ic { background: #fff3ec; color: var(--qh-orange); }
  .qh-hub-col.pg3 .qh-hub-ic { background: #f6efff; color: var(--qh-purple); }
  .qh-hub-col.pg4 .qh-hub-ic { background: #e9fbf0; color: var(--qh-green); }
  .qh-hub-col.pg5 .qh-hub-ic { background: #ffeef1; color: var(--qh-pink); }
  .qh-hub-col.pg6 .qh-hub-ic { background: #e6f8fb; color: var(--qh-cyan); }
  .qh-hub-col.pg2 .qh-hub-num { color: var(--qh-orange); }
  .qh-hub-col.pg3 .qh-hub-num { color: var(--qh-purple); }
  .qh-hub-col.pg4 .qh-hub-num { color: var(--qh-green); }
  .qh-hub-col.pg5 .qh-hub-num { color: var(--qh-pink); }
  .qh-hub-col.pg6 .qh-hub-num { color: var(--qh-cyan); }

  /* ---------- PC 端：隐藏移动端宫格，改用聚合面板 ---------- */
  .qh-card-quick { display: none; }

  /* ---------- PC 端微调：搜索区留白与列表节奏 ---------- */
  .qh-hero-search { height: 470px; }
  .qh-hs-title { font-size: 46px; letter-spacing: 12px; text-indent: 12px; }
}

/* ============================================================
   「转存到网盘」轻提示（Toast）
   ============================================================ */
.qh-toast {
  position: fixed;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 82vw;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  animation: qhToastIn 0.18s ease;
}
@keyframes qhToastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================================
   992～1199px（小桌面/平板横屏）：隐藏热门标签组，分类芯片优先，
   避免一行放不下被 flex 压缩或裁切
   ============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
  .qh-subnav-tags { display: none; }
}

/* ============================================================
   51tvrom 风格内页：标签云 / 下载卡片 / 内容结构块
   （2026-11 新增，配合 single.php 的资源下载卡片）
   ============================================================ */

/* 文章头部的标签云 */
.qh-tags-top{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px;}
.qh-tags-top .dp-tag{display:inline-block;background:#eef3fb;color:var(--qh-blue);border:1px solid #dde7f5;font-size:12.5px;padding:3px 11px;border-radius:6px;text-decoration:none;}
.qh-tags-top .dp-tag:hover{background:var(--qh-blue);color:#fff;}

/* 下载卡片（51tvrom 风格） */
.qh-dlcard{position:relative;background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid #e6edf7;border-radius:14px;padding:18px 18px 16px;margin:0 0 18px;box-shadow:var(--qh-shadow);}
.qh-dlcard .dp-file{position:absolute;top:14px;right:14px;background:var(--qh-blue);color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:6px;letter-spacing:.5px;}
.qh-dlcard .dp-title{font-size:16.5px;font-weight:700;color:var(--qh-text);margin:0 90px 6px 0;line-height:1.45;}
.qh-dlcard .dp-desc{font-size:13px;color:var(--qh-text2);line-height:1.7;margin:0 0 10px;}
.qh-dlcard .dp-spec{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;}
.qh-dlcard .dp-spec span{background:#f1f5fb;border:1px solid #e3ebf5;border-radius:8px;padding:4px 10px;font-size:12.5px;color:var(--qh-muted);}
.qh-dlcard .dp-spec b{color:var(--qh-text);margin-left:4px;}
.qh-dlcard .dp-price{display:flex;align-items:baseline;gap:8px;margin:0 0 10px;}
.qh-dlcard .dp-price b{color:var(--qh-orange);font-size:24px;font-weight:800;}
.qh-dlcard .dp-price em{color:var(--qh-muted);font-style:normal;font-size:12.5px;}
.qh-dlcard .dp-risk{display:flex;gap:6px;align-items:flex-start;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;padding:8px 10px;color:#9a3412;font-size:12.5px;line-height:1.6;margin:0 0 12px;}
.qh-dlcard .dp-risk .qh-ic{flex:0 0 auto;color:var(--qh-orange);margin-top:1px;}
.qh-dlcard .dp-verify{background:#f8fafc;border:1px dashed #d6e0ee;border-radius:10px;padding:10px 12px;margin:0 0 12px;}
.qh-dlcard .dp-vt{font-size:12.5px;color:var(--qh-text2);margin-bottom:8px;}
.qh-dlcard .dp-vrow{display:flex;gap:8px;flex-wrap:wrap;}
.qh-dlcard .dp-vrow input{flex:1 1 140px;min-width:0;border:1px solid var(--qh-gray);border-radius:8px;padding:8px 10px;font-size:13px;outline:none;box-sizing:border-box;}
.qh-dlcard .dp-vrow input:focus{border-color:var(--qh-blue);}
.qh-dlcard .dp-vbtn{background:var(--qh-blue);color:#fff;border:none;border-radius:8px;padding:0 16px;font-size:13.5px;cursor:pointer;}
.qh-dlcard .dp-vresult{font-size:12.5px;color:var(--qh-green);margin-top:8px;min-height:1px;}
.qh-dlcard .dp-dl{background:#fff;border:1px solid #e6edf7;border-radius:10px;overflow:hidden;margin:0 0 12px;}
.qh-dlcard .dp-dl-hd{display:flex;justify-content:space-between;align-items:center;background:#f5f8fc;padding:8px 12px;font-size:13.5px;font-weight:600;color:var(--qh-text);}
.qh-dlcard .dp-report{font-size:12px;color:var(--qh-muted);font-weight:400;}
.qh-dlcard .dp-dl-ft{padding:14px 12px;text-align:center;}
.qh-dlcard .dp-login{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,var(--qh-orange2),var(--qh-orange));color:#fff;font-weight:700;font-size:14.5px;padding:10px 26px;border-radius:10px;text-decoration:none;}
.qh-dlcard .dp-disc{font-size:12px;color:var(--qh-muted);margin:8px 0 0;}
.qh-dlcard .dp-share{display:flex;gap:14px;justify-content:center;margin:10px 0 0;}
.qh-dlcard .dp-share a{display:inline-flex;align-items:center;gap:5px;color:var(--qh-blue);font-size:12.5px;text-decoration:none;}
.qh-dlcard .dp-ownnote{display:flex;gap:6px;align-items:flex-start;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:8px 10px;color:#92400e;font-size:12px;line-height:1.6;margin:12px 0 0;}
.qh-dlcard .dp-ownnote .qh-ic{flex:0 0 auto;color:#d97706;margin-top:1px;}

/* 内容结构块（作者在正文中使用这些 class 即可获得 51tvrom 风格排版） */
.qh-sec{font-size:17px;font-weight:700;color:var(--qh-text);margin:18px 0 8px;padding-left:10px;border-left:4px solid var(--qh-blue);}
.qh-raw{font-size:14px;line-height:1.95;color:#1e293b;background:#fafbfe;border:1px solid #eef1f6;border-radius:10px;padding:12px 16px;white-space:pre-wrap;word-break:break-all;margin:0 0 16px;}
.qh-param{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px;}
.qh-param .row{display:flex;justify-content:space-between;gap:10px;background:#f6f8fc;border:1px solid #eef1f6;border-radius:8px;padding:8px 12px;font-size:13.5px;}
.qh-param .k{color:var(--qh-muted);}.qh-param .v{color:var(--qh-text);font-weight:600;}
.qh-notice{background:#eef6ff;border:1px solid #cfe3ff;border-radius:10px;padding:10px 14px;font-size:13px;color:#1e3a5f;margin:0 0 16px;}
.qh-notice a{color:var(--qh-blue);font-weight:600;}
.qh-warn{background:#fff7ed;border:1px solid #fed7aa;border-left:4px solid var(--qh-orange);border-radius:10px;padding:12px 14px;margin:0 0 16px;color:#7c2d12;font-size:13.5px;line-height:1.8;}
.qh-src{background:#f0f7ff;border:1px solid #cfe3ff;border-left:4px solid var(--qh-blue);border-radius:10px;padding:12px 14px;margin:0 0 16px;color:#1e3a5f;font-size:13px;line-height:1.8;}
.qh-src a{color:var(--qh-blue);font-weight:600;}
.qh-shots{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 16px;}
.qh-shot{background:#f6f8fc;border:1px solid #eef1f6;border-radius:10px;padding:8px;overflow:hidden;}
.qh-shot img{width:100%;height:auto;display:block;border-radius:6px;}

@media (max-width: 820px){
  .qh-param,.qh-shots{grid-template-columns:1fr;}
  .qh-dlcard .dp-title{margin-right:70px;}
}

/* 资源信息区（下载卡下方，从文章自定义字段读取） */
.qh-param-box{background:#fff;border:1px solid #e6edf7;border-radius:12px;padding:14px 16px;margin:0 0 18px;box-shadow:var(--qh-shadow);}
.qh-param-hd{font-size:14px;font-weight:700;color:var(--qh-text);margin:0 0 10px;display:flex;align-items:center;gap:6px;}
.qh-param-hd::before{content:"";width:4px;height:14px;background:var(--qh-blue);border-radius:2px;display:inline-block;}
.qh-param .row{min-height:20px;}

/* 价格：免费态 */
.qh-dlcard .dp-price b.free{color:var(--qh-green);font-size:20px;}

/* 相关推荐网格（带缩略图） */
.qh-relgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}
.qh-rel{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #eef1f6;border-radius:10px;padding:8px;overflow:hidden;text-decoration:none;transition:border-color .15s,box-shadow .15s;}
.qh-rel:hover{border-color:var(--qh-blue);box-shadow:0 4px 14px rgba(31,104,184,.12);}
.qh-rel .pic{flex:0 0 64px;width:64px;height:64px;border-radius:8px;overflow:hidden;background:#f1f5fb;display:flex;align-items:center;justify-content:center;color:#b9c6d6;}
.qh-rel .pic img{width:100%;height:100%;object-fit:cover;display:block;}
.qh-rel .info{flex:1;min-width:0;}
.qh-rel .info .t{display:block;font-size:13.5px;color:var(--qh-text);line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.qh-rel .info .m{display:block;font-size:11.5px;color:var(--qh-muted);margin-top:4px;}

@media (max-width: 600px){
  .qh-relgrid{grid-template-columns:1fr;}
}
