/* ============================================================================
   ui-unify.css —— 第六轮 Workstream U：前台 UI 统一主体宽度 + 视觉精修
   ----------------------------------------------------------------------------
   加载位置：layout.php 中位于 site.css / skins.css 及前几轮模块 CSS 之后（最后一份
   前台样式），因此本文件只做「令牌覆写 + 覆盖/增补」，不删除任何既有规则与类名。
   后台 templates/admin/** 不引入本文件，admin.css 不受影响。

   ── 统一宽度体系（本文件的目标） ──────────────────────────────────────────
   · 桌面容器：.wrap = 1280px（左右 padding 24 → 内容区 1232px）
     页头 / 正文 / 页脚 / 列表 / 详情全部使用同一 .wrap，因此天然左缘对齐；
   · ≤1200：padding 20，.layout 侧栏 300 + 间距 32；
   · ≤960：.layout 单列（保持既有断点行为）；
   · ≤640：padding 16；≤380：padding 14；
   · .layout 主列 = 内容宽 − 340(侧栏) − 40(间距)，1440/1280 下主列 852px；
   · 表单/发布/编辑等窄页：.page-narrow = 1080px 居中（publish 沿用 .narrow，
     本文件同样把 .narrow 统一到 1080，避免不同页面表单宽度参差）；
   · 详情正文阅读宽度：--read-w = 840px，配合右侧 320/340 侧栏消除大片空白。

   ── 视觉精修（在原设计体系上，不推翻） ───────────────────────────────────
   页头光效与内边距、区块节奏（桌面 76px）、卡片圆角/阴影/hover、按钮高度、
   列表行高、tabs/chips/pager 间距、侧栏 sticky、表单间距统一微调。
   全部颜色继续走 site.css / skins.css 的语义令牌，三皮肤（deepblue / verdant /
   dark）自动适配，不新增硬编码颜色。prefers-reduced-motion 由 site.css 的全局
   降级规则覆盖，本文件不新增无限动画。
   ============================================================================ */

/* ============================================================================
   [U-1] 布局令牌
   ============================================================================ */
:root {
  /* 主体容器：1280 含 padding，内容区 1232 */
  --maxw: 1280px;
  --wrap-pad: 24px;
  --content-w: calc(var(--maxw) - var(--wrap-pad) * 2);
  /* 侧栏与列间距（1440/1280 桌面） */
  --side-w: 340px;
  --layout-gap: 40px;
  /* 区块节奏：桌面 72–80 之间取 76 */
  --section-y: 76px;
  --page-head-pt: 56px;
  --page-head-pb: 44px;
  /* 正文可读宽度（详情页主列内） */
  --read-w: 840px;
  /* 卡片圆角向 18/20 收敛（site.css 值为 16/22，视觉上更统一） */
  --radius-lg: 18px;
  --radius-xl: 20px;
}

@media (max-width: 1200px) {
  :root {
    --wrap-pad: 20px;
    --side-w: 300px;
    --layout-gap: 32px;
  }
}
@media (max-width: 640px) {
  :root { --wrap-pad: 16px; }
}
@media (max-width: 380px) {
  :root { --wrap-pad: 14px; }
}

/* ============================================================================
   [U-2] 主体容器：全站唯一宽度（页头 / 正文 / 页脚同一容器）
   ============================================================================ */
.wrap {
  max-width: var(--maxw);
  padding-left: var(--wrap-pad);
  padding-right: var(--wrap-pad);
}

/* 窄版表单 / 发布 / 编辑页：1080 居中（页头仍为全站 1280 容器，视觉上以居中卡片呈现） */
.page-narrow {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* publish.php 仍在用 .narrow（该模板由其它工作流维护）：把 .narrow 与 .page-narrow
   统一到同一档 1080，避免发布页与职位发布/词条编辑页表单宽度不一致。 */
.narrow {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* 站内搜索页：search-share.css 原把内容限制在 980，与全站页头不对齐；统一放开，
   由外层 .wrap 控制宽度 */
.qx-search-page { max-width: none; }

/* ============================================================================
   [U-3] 内页页头：统一内边距 / 标题层级 / 背景光效 / 面包屑
   ============================================================================ */
.page-head { border-bottom-color: var(--hairline); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head p { max-width: 820px; }
.page-head-extra { margin-top: 18px; gap: 9px; }
.page-head .crumb { margin-bottom: 2px; }
.page-head .filter-row { margin-top: 22px; }

@media (min-width: 961px) {
  .page-head { padding: var(--page-head-pt) 0 var(--page-head-pb); }
  .page-head::after {
    right: -40px;
    top: -130px;
    width: 380px;
    height: 380px;
    border-width: 48px;
  }
  .page-head h1 { font-size: clamp(26px, 2.6vw, 38px); margin: 12px 0 10px; }
}

/* service.php 没有 .page-head（顶部是整幅 biz-banner），正文标题沿用同一层级 */
.detail-h1 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .2px;
  margin: 14px 0 10px;
}
@media (max-width: 640px) {
  .detail-h1 { font-size: 24px; margin: 10px 0 8px; }
}

/* ============================================================================
   [U-4] 主体布局：.layout / .page-body / 侧栏
   ============================================================================ */
.layout {
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  gap: var(--layout-gap);
  padding-top: 40px;
  padding-bottom: 74px;
}
.page-body {
  padding-top: 40px;
  padding-bottom: 74px;
}
.side { min-width: 0; }
.side > * + * { margin-top: 22px; }

/* 详情页/列表页左侧主列统一成 grid item，避免内容撑破或浮动溢出 */
.layout > * { min-width: 0; }

@media (min-width: 961px) {
  /* sticky 起点随顶栏 66px + 呼吸感上调（原 86） */
  .side .sticky { top: 92px; }
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .page-body {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .side .sticky { position: static; top: auto; }
}

/* ============================================================================
   [U-5] 区块节奏（桌面）
   ============================================================================ */
@media (min-width: 961px) {
  .section { padding: var(--section-y) 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head.spaced { margin: 64px 0 22px; }
  .block-title { margin: 44px 0 18px; }
  .block-title.tight { margin: 0 0 16px; }
  .qx-cta-section { padding: 24px 0 84px; }
}

/* ============================================================================
   [U-6] 详情页阅读布局（信息详情改为「统一容器 + 可读正文 + 右侧信息栏」）
   ============================================================================ */
.detail-layout { align-items: start; }
.detail-main {
  display: flow-root; /* 自清除 .detail-media 浮动，联系/提示卡片不会被封面压住 */
  min-width: 0;
}
.detail-main .article,
.detail-main .contact-bar,
.detail-main .warn-box,
.detail-main .entry-actions,
.detail-main .next {
  max-width: var(--read-w);
}
.detail-main .article { font-size: 16.5px; }
.detail-layout .side .list li { align-items: flex-start; }

/* 职位详情：封面图与「职位描述」标题的间距在宽容器下更从容 */
@media (min-width: 961px) {
  .layout .detail-media { margin: 0 0 22px 30px; }
}

/* ============================================================================
   [U-7] 卡片 / 列表 / 盒子：圆角、内距、hover 过渡统一（桌面精修）
   ============================================================================ */
@media (min-width: 961px) {
  .card { padding: 22px 24px; }
  .info-row { padding: 16px 20px; }
  .info-row .ir-title { font-size: 15.5px; }
  .box-h { padding: 16px 22px; }
  .box-b { padding: 10px 22px 16px; }
  .box-b.pad { padding: 20px 22px; }
  .list li { padding-top: 13px; padding-bottom: 13px; }
  .rank-list li { padding-top: 10px; padding-bottom: 10px; }
  .wiki-card { padding: 22px 24px 20px 27px; }
  .wiki-card h3 { font-size: 18.5px; }
  .form-card { padding: clamp(24px, 2.6vw, 38px); }
}

/* 卡片 hover：在既有位移基础上统一阴影层级与描边（三皮肤走 --elev-* 令牌） */
a.card:hover,
.card.hover:hover,
.wiki-card:hover {
  box-shadow: var(--elev-2);
}
.info-row:hover,
.info-row:focus-visible {
  box-shadow: var(--elev-1);
}

/* ============================================================================
   [U-8] 按钮 / tabs / chips / pager / 表单间距（桌面尺寸统一，移动端保持原触控尺寸）
   ============================================================================ */
@media (min-width: 961px) {
  .btn { height: 42px; padding: 0 20px; }
  .btn.sm { height: 34px; padding: 0 14px; }
  .btn.lg { height: 48px; padding: 0 26px; }
  .pager { margin-top: 32px; }
  .pager a, .pager b, .pager span { min-width: 40px; height: 40px; border-radius: 12px; }
  .tabs { margin-bottom: 24px; }
  .chips { margin-bottom: 24px; }
  .form { gap: 24px; }
  .field label { margin-bottom: 9px; }
  .input { padding: 12px 14px; }
  .row2 { gap: 18px; }
}

/* ============================================================================
   [U-9] 页脚：与主体容器同步（宽度自动由 .wrap 统一，这里只精修纵向节奏）
   ============================================================================ */
@media (min-width: 961px) {
  .footer { padding-top: 60px; }
  .foot-top { margin-bottom: 40px; }
  .foot-bottom { margin-top: 42px; }
  .foot-grid { gap: 40px; }
}

/* ============================================================================
   [U-10] 移动端回归守卫（只重申与原设计一致的断点行为，避免上面的桌面规则外溢）
   ============================================================================ */
@media (max-width: 960px) {
  .section { padding: 56px 0; }
  .card { padding: 22px; }
  .form-card { padding: clamp(20px, 3vw, 34px); }
  .tabs { margin-bottom: 22px; }
  .chips { margin-bottom: 22px; }
  .pager { margin-top: 28px; }
  .detail-main .article { font-size: 16px; }
}
@media (max-width: 640px) {
  .section { padding: 42px 0; }
  .card { padding: 20px; }
  .form-card { padding: 20px 16px; }
  .detail-main .article { font-size: 16px; }
}

/* ============================================================================
   [U-11] 降级：减少动效环境下不新增动效（既有全局规则已关闭动画/过渡）
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  a.card:hover,
  .card.hover:hover,
  .wiki-card:hover,
  .info-row:hover {
    transform: none;
  }
}

/* ============================================================================
   [U-12] 首页 Hero v4（第十二轮）：深色知识工作台 + 玻璃质感搜索台
   ----------------------------------------------------------------------------
   目标：清洗百科以上区域「高端 / 大气 / 有科技感」，功能与数据结构零改动。
   · 底色由 brand-900/brand-800 混合而成，三套皮肤自动适配（蓝 / 墨绿 / 深空）；
   · 搜索框改为「白色玻璃台 + 渐变描边 + 冷光晕」，是全屏视觉焦点；
   · 所有文字在深底上对比度 ≥ 4.5:1（正文 #dbeef9 系，标题 #fff）；
   · 动效仅 hover / focus 微位移，prefers-reduced-motion 下自动关闭。
   ============================================================================ */
.hero-v4 {
  --h4-ink: #f4fbff;
  --h4-ink-2: rgba(220, 239, 250, .76);
  --h4-line: rgba(255, 255, 255, .12);
  --h4-glass: rgba(255, 255, 255, .055);
  position: relative;
  padding: 68px 0 56px;
  text-align: center;
  color: var(--h4-ink);
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 44px 44px;
  background:
    radial-gradient(1020px 520px at 50% -16%, rgba(var(--accent-rgb), .34), transparent 64%),
    radial-gradient(820px 460px at 86% 8%, rgba(var(--brand-rgb), .42), transparent 66%),
    radial-gradient(720px 420px at 6% 82%, rgba(var(--accent-rgb), .18), transparent 70%),
    linear-gradient(168deg,
      color-mix(in srgb, var(--brand-900) 88%, #000) 0%,
      var(--brand-800) 46%,
      color-mix(in srgb, var(--brand-900) 82%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 90px -60px rgba(2, 16, 26, .9);
}
/* 细网格（mask 收在中心，避免边缘发脏）+ 顶部冷光 */
.hero-v4::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 66% at 50% 26%, #000 16%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 66% at 50% 26%, #000 16%, transparent 76%);
}
.hero-v4::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 104%, rgba(3, 14, 23, .86), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, transparent 24%);
}
.hero-v4 .hero-ornament {
  opacity: .55;
  filter: blur(70px);
}
.hero-v4 .hero-ornament.a {
  width: 460px;
  height: 460px;
  left: max(-80px, calc(50% - 780px));
  top: 40px;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .58), transparent 66%);
}
.hero-v4 .hero-ornament.b {
  width: 420px;
  height: 420px;
  right: max(-60px, calc(50% - 760px));
  top: 210px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .46), transparent 68%);
}
.hero-v4 .hero-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 74%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 243, 236, .7), transparent);
  z-index: 1;
}

/* —— 标题区 —— */
.hero-v4 .hero-head { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.hero-v4 .eyebrow { color: #8fe8e2; letter-spacing: 3.6px; font-size: 11.5px; font-weight: 600; }
.hero-v4 h1 {
  color: #fff;
  font-size: clamp(33px, 4.1vw, 54px);
  margin: 16px 0 14px;
  text-shadow: 0 14px 44px rgba(0, 0, 0, .38);
}
.hero-v4 h1 em {
  background: linear-gradient(96deg, #9ff3ec 0%, #8bd4ff 52%, #d9fff9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero-v4 .sub { color: var(--h4-ink-2); max-width: 700px; margin: 0 auto 24px; }
.hero-v4 .hero-badges { margin-bottom: 24px; }
.hero-v4 .hero-badges span {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .14);
  color: #dceffb;
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-v4 .hero-badges .ico { color: #7fe3dd; }
.hero-v4 .hero-badges span:hover { border-color: rgba(143, 232, 226, .5); background: rgba(255, 255, 255, .09); }

/* —— 搜索台 —— */
.hero-v4 .hero-console {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 24px auto 0;
}
.hero-v4 .hero-console-glow {
  position: absolute;
  inset: -28px -20px -34px;
  z-index: -1;
  border-radius: 46px;
  background: radial-gradient(58% 80% at 50% 42%, rgba(var(--accent-rgb), .38), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}
.hero-v4 .search { max-width: 920px; z-index: 4; }
.hero-v4 .search-box {
  padding: 8px 8px 8px 12px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) padding-box,
    linear-gradient(120deg, rgba(159, 243, 236, .95) 0%, rgba(139, 212, 255, .82) 42%, rgba(20, 163, 160, .9) 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 36px 80px -36px rgba(0, 10, 18, .88),
    0 0 0 1px rgba(255, 255, 255, .06);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.hero-v4 .search-box:focus-within {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 0 0 6px rgba(20, 163, 160, .22),
    0 44px 92px -34px rgba(0, 10, 18, .92);
}
.hero-v4 .search-box .ai-badge {
  height: 42px;
  padding: 0 13px;
  margin-right: 12px;
  border-radius: 13px;
  font-size: 12.5px;
  letter-spacing: .6px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 52%, var(--accent-600) 100%);
  box-shadow: 0 12px 24px -12px rgba(var(--brand-rgb), .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.hero-v4 .search-box .ai-badge .ico { width: 15px; height: 15px; }
.hero-v4 .search-box input {
  height: 58px;
  font-size: 18px;
  font-weight: 500;
  color: #0b2233;
  text-overflow: ellipsis;
}
.hero-v4 .search-box input::placeholder { color: #7f95a5; font-weight: 400; opacity: 1; }
.hero-v4 .search-key {
  display: inline-flex;
  align-items: center;
  height: 26px;
  border-color: #dbe7ef;
  background: #f2f7fb;
  color: #7d93a3;
}
.hero-v4 .search-box .btn {
  height: 58px;
  padding: 0 30px;
  border-radius: 16px;
  border-color: transparent;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, var(--accent-600) 0%, var(--brand-500) 54%, var(--brand-700) 100%);
  box-shadow: 0 16px 34px -16px rgba(var(--accent-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.hero-v4 .search-box .btn:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 20px 40px -16px rgba(var(--brand-rgb), 1);
}

/* —— 热门搜索 —— */
.hero-v4 .hot { margin-top: 16px; color: rgba(219, 238, 249, .62); font-size: 13px; }
.hero-v4 .hot a {
  padding: 5px 14px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #d9eefb;
}
.hero-v4 .hot a:hover {
  border-color: rgba(143, 232, 226, .55);
  background: rgba(143, 232, 226, .16);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .9);
}

/* —— CTA —— */
.hero-v4 .hero-cta { position: relative; z-index: 2; margin-top: 22px; }
.hero-v4 .hero-cta .btn { height: 46px; padding: 0 22px; border-radius: 13px; }
.hero-v4 .hero-cta .btn.primary {
  color: #073049;
  border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(135deg, #f2fdff 0%, #d9f4ff 100%);
  box-shadow: 0 18px 40px -22px rgba(159, 243, 236, .85);
}
.hero-v4 .hero-cta .btn.primary:hover { color: #04222f; box-shadow: 0 22px 46px -20px rgba(159, 243, 236, .95); }
.hero-v4 .hero-cta .btn.ghost {
  color: #e4f4ff;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .04);
}
.hero-v4 .hero-cta .btn.ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .44); background: rgba(255, 255, 255, .1); }

/* —— 快捷入口（玻璃卡） —— */
.hero-v4 .quick { max-width: 940px; margin: 36px auto 0; gap: 14px; }
.hero-v4 .quick a {
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hero-v4 .quick a::after { background: radial-gradient(circle, rgba(var(--accent-rgb), .26), transparent 68%); filter: blur(6px); }
.hero-v4 .quick a:hover {
  border-color: rgba(143, 232, 226, .46);
  background: rgba(255, 255, 255, .085);
  box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .9);
}
.hero-v4 .quick b { color: #f4fbff; margin-top: 10px; }
.hero-v4 .quick a > span:not(.qi):not(.quick-go) { color: rgba(219, 238, 249, .6); font-size: 12.5px; }
.hero-v4 .quick span { color: rgba(219, 238, 249, .62); }
.hero-v4 .quick .qi {
  border: 1px solid rgba(159, 243, 236, .28);
  background: linear-gradient(135deg, rgba(159, 243, 236, .22), rgba(139, 212, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -16px rgba(0, 0, 0, .9);
  color: #bff7f4;
}
.hero-v4 .quick .quick-go {
  color: rgba(226, 245, 255, .62);
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
.hero-v4 .quick a:hover .quick-go {
  color: #06283a;
  border-color: transparent;
  background: #d9f4ff;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .8);
}

/* —— 数据条 —— */
.hero-v4 .stats-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 940px;
  margin: 30px auto 0;
  padding: 16px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: none;
  gap: 0;
  justify-content: space-between;
}
.hero-v4 .stats-strip div { flex: 1 1 0; padding: 2px 8px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-v4 .stats-strip div:first-child { border-left: 0; }
.hero-v4 .stats-strip b {
  color: #fff;
  font-size: 28px;
  letter-spacing: .6px;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #fff;
}
.hero-v4 .stats-strip span { color: rgba(219, 238, 249, .6); }

/* 深空皮肤：hero 搜索台保持白底（深色搜索台在深色 hero 上会糊成一片） */
[data-skin="dark"] .hero-v4 .search-box {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) padding-box,
    linear-gradient(120deg, rgba(159, 243, 236, .95) 0%, rgba(139, 212, 255, .82) 42%, rgba(20, 163, 160, .9) 100%) border-box;
}
[data-skin="dark"] .hero-v4 .quick a {
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .055);
}

@media (max-width: 1100px) {
  .hero-v4 { padding: 72px 0 62px; }
  .hero-v4 .hero-ornament.a { left: -160px; }
  .hero-v4 .hero-ornament.b { right: -150px; }
}
@media (max-width: 960px) {
  .hero-v4 { padding: 62px 0 54px; border-radius: 0 0 30px 30px; }
  .hero-v4 .quick { max-width: 100%; }
}
@media (max-width: 640px) {
  .hero-v4 { padding: 46px 0 44px; border-radius: 0 0 24px 24px; }
  .hero-v4 .eyebrow { letter-spacing: 1.5px; font-size: 10px; }
  /* 11–12 字的中文标题在 390px 下压成两行会从「问/题」中间断开，看起来不专业；
     收紧到一行（27px），更长标题仍会自然换行并保持 text-wrap:balance */
  .hero-v4 h1 { font-size: clamp(23px, 6.9vw, 27px); margin: 14px 0 14px; letter-spacing: 0; }
  .hero-v4 .sub { font-size: 15px; margin-bottom: 24px; }
  .hero-v4 .hero-badges { margin-bottom: 18px; }
  .hero-v4 .hero-console { margin-top: 22px; }
  .hero-v4 .search-box { padding: 5px 5px 5px 8px; border-radius: 16px; }
  .hero-v4 .search-box .ai-badge { display: inline-flex; height: 38px; padding: 0 9px; margin-right: 8px; font-size: 11px; border-radius: 10px; }
  .hero-v4 .hero-badges { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 7px; }
  .hero-v4 .search-box .ai-badge .ico { width: 13px; height: 13px; }
  .hero-v4 .search-box input { height: 44px; font-size: 16px; }
  .hero-v4 .search-box .btn { height: 44px; padding: 0 15px; font-size: 15px; border-radius: 11px; }
  .hero-v4 .search-key { display: none; }
  .hero-v4 .hot { margin-top: 14px; font-size: 12px; }
  .hero-v4 .hot a { padding: 4px 11px; }
  .hero-v4 .hero-cta { margin-top: 22px; }
  .hero-v4 .hero-cta .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .hero-v4 .quick { margin-top: 32px; gap: 12px; }
  .hero-v4 .quick a { padding: 16px 14px; border-radius: 16px; }
  .hero-v4 .quick b { font-size: 15px; margin-top: 10px; }
  .hero-v4 .stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 0;
    margin-top: 28px;
    padding: 16px 6px;
  }
  .hero-v4 .stats-strip div { border-left: 0; padding: 0 8px; }
  .hero-v4 .stats-strip div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1); }
  .hero-v4 .stats-strip div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero-v4 .stats-strip b { font-size: 24px; }
}

/* 招聘卡片摘要：最多两行，避免富文本/长文本撑高卡片 */
.job-card .job-brief {
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.62;
  min-height: 2.6em;
}

/* ============================================================================
   [U-13] 右侧栏广告位（第十二轮）
   ----------------------------------------------------------------------------
   每个带 <aside class="side"> 的页面在侧栏底部展示最多 3 条投放中的广告。
   图片来源 / 链接均由 app/ads.php 过滤（仅 http(s)、uploads 相对路径）。
   ============================================================================ */
.side-ads {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.side-ads-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}
.side-ads-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
.side-ads-head h3 .ico { width: 16px; height: 16px; color: var(--brand); }
.side-ads-tag {
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.side-ads-list { display: flex; flex-direction: column; }
/* 与业务咨询同款吸顶：top 由 site.js 按前一个吸顶模块高度计算，空间不足时自动不吸顶 */
.side-ads.is-sticky { position: sticky; top: var(--qx-ads-top, 92px); }
.side-ad {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-top: 1px solid var(--line-2);
  transition: background var(--t) var(--ease);
}
.side-ad:first-child { border-top: 0; }
.side-ad:hover { background: var(--brand-50); }
.side-ad-media {
  position: relative;
  display: block;
  width: 92px;
  flex: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50), var(--bg-mute));
}
.side-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.side-ad:hover .side-ad-media img { transform: scale(1.03); }
.side-ad-media.is-text { display: grid; place-items: center; color: var(--brand); }
.side-ad-media.is-text .ico { width: 30px; height: 30px; opacity: .5; }
.side-ad-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  font-style: normal;
  font-size: 10px;
  line-height: 1.6;
  padding: 0 5px;
  border-radius: 3px;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(10, 23, 34, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.side-ad-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 14px; min-width: 0; flex: 1; }
.side-ad-desc { display: none; }
.side-ad-body b {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-ad-desc {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-ad-go { margin-top: 0; display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); color: var(--brand); }
@media (min-width: 961px) {
  .side-ad-go, .side-ads-note { display: none; }
}
.side-ad-go .ico { width: 12px; height: 12px; }
.side-ad:hover .side-ad-go { text-decoration: underline; }
.side-ads-note { margin: 0; padding: 8px 16px 12px; font-size: 11px; color: var(--ink-4); }

@media (max-width: 960px) {
  /* 单列布局后侧栏变整宽：三条广告横排，避免纵向拉得过长 */
  .side-ads.is-sticky { position: static; }
  .side-ads-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-ad { flex-direction: column; border-top: 0; border-left: 1px solid var(--line-2); }
  .side-ad:first-child { border-left: 0; }
  .side-ad-media { width: 100%; aspect-ratio: 16 / 10; }
  .side-ad-body { padding: 8px 12px 10px; }
  .side-ad-body b { font-size: var(--fs-sm); }
  .side-ad-desc { display: none; }
}
@media (max-width: 640px) {
  .side-ads-list { grid-template-columns: minmax(0, 1fr); }
  .side-ad { flex-direction: row; border-left: 0; border-top: 1px solid var(--line-2); }
  .side-ad:first-child { border-top: 0; }
  .side-ad-media { width: 104px; aspect-ratio: 4 / 3; }
  .side-ad-body { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v4 .search-box:focus-within,
  .hero-v4 .search-box .btn:hover,
  .hero-v4 .quick a:hover,
  .side-ad:hover .side-ad-media img {
    transform: none;
  }
}


/* ============================================================================
   [U-14] 渐进增强兜底：reveal 只在脚本可用时隐藏
   ----------------------------------------------------------------------------
   site.css 默认 .reveal{opacity:0}，依赖 IntersectionObserver 添加 .in。
   若脚本被拦截/报错（企业内网、CDN 失败、浏览器插件），整页内容会「空白」。
   因此 layout.php 在 <html> 上打 qx-js 标记，只有带该标记时才启用隐藏。
   ============================================================================ */
html:not(.qx-js) .reveal { opacity: 1 !important; transform: none !important; }


/* ============================================================================
   [U-15] 顶栏 961–1100px 紧凑档（第十二轮）
   ----------------------------------------------------------------------------
   1024 宽度下 6 个导航项 + 右侧操作会互相挤压，中文被压成两行。
   这里只压缩间距/内边距并禁止中文断行，不改变 ≤960 的抽屉式导航。
   ============================================================================ */
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1100px) {
  .topbar .wrap { gap: 14px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-img { height: 30px; max-height: 30px; max-width: 140px; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .nav a.active::after { left: 9px; right: 9px; }
  .top-actions { gap: 6px; }
  .points-pill { padding: 3px 9px; font-size: 12px; }
}


/* ============================================================================
   [U-16] 首页首屏高度自适应（第十二轮）
   ----------------------------------------------------------------------------
   900px 高的笔记本上，原 899px 的 hero 会把「清洗百科」完全推到首屏之外，
   看起来像「只有一张大图」。这里只在桌面 + 矮屏时收紧纵向节奏，
   保持 1440×1000 及以上的大屏留白不变。
   ============================================================================ */
@media (min-width: 961px) and (max-height: 900px) {
  .hero-v4 { padding-top: 46px; padding-bottom: 40px; }
  .hero-v4 h1 { font-size: clamp(32px, 3.7vw, 48px); margin: 12px 0 12px; }
  .hero-v4 .sub { margin-bottom: 18px; }
  .hero-v4 .hero-badges { margin-bottom: 18px; }
  .hero-v4 .hero-console { margin-top: 18px; }
  .hero-v4 .hero-cta { margin-top: 16px; }
  .hero-v4 .quick { margin-top: 26px; }
  .hero-v4 .stats-strip { margin-top: 20px; padding: 12px 8px; }
}

/* CTA 横幅次要按钮：teal 渐变上 rgba(255,255,255,.13) 对比不足，提高到 .2 + 实描边 */
.qx-cta .btn.light {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.qx-cta .btn.light:hover {
  background: rgba(255, 255, 255, .3);
  border-color: rgba(255, 255, 255, .8);
}


/* 首屏与内容衔接：极淡品牌色过渡，避免深色 hero 直接切到纯白显得生硬 */
.hero-v4 + .section {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-50) 60%, var(--surface)) 0%,
    var(--surface) 280px);
}


/* ============================================================================
   [U-17] 我的广告 · 投放形式选择卡（第十二轮）
   三选一：延伸阅读 / 右侧栏 / 两处同时；价格与说明由后端配置渲染。
   ============================================================================ */
.ad-place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ad-place {
  position: relative;
  display: block;
  cursor: pointer;
}
.ad-place input { position: absolute; opacity: 0; pointer-events: none; }
/* 选中态放在 .ad-place-body 上：用相邻兄弟选择器（input:checked + body），
   不依赖 :has()，老浏览器也能正确显示当前选中的投放形式。 */
.ad-place-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.ad-place-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ad-place-top b { font-size: var(--fs-md); color: var(--ink); }
.ad-place-price { font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.ad-place small { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
.ad-place:hover .ad-place-body { border-color: var(--brand-300); }
.ad-place input:checked + .ad-place-body {
  border-color: var(--brand);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12);
}
.ad-place input:checked + .ad-place-body .ad-place-top b { color: var(--brand-700); }
.ad-place input:focus-visible + .ad-place-body { box-shadow: var(--ring-brand); }
@media (max-width: 640px) {
  .ad-place-grid { grid-template-columns: minmax(0, 1fr); }
}


/* 桌面侧栏广告：隐藏描述与底部说明，保证 3 条能在业务咨询下方一屏吸顶（移动端仍展示） */
@media (min-width: 961px) {
  .side-ads .side-ad-desc,
  .side-ads .side-ad-go,
  .side-ads .side-ads-note { display: none; }
  /* 三条广告之间留出 6px 呼吸位（用浅底透出间隔），避免“挨在一起” */
  .side-ads-list { gap: 6px; background: var(--bg-soft); }
  .side-ads .side-ad { border-top: 0; }
}
