/* =========================================================
   北京华汽汽车文化基金会 · 站点自定义样式
   与 tailwind.css 配合使用；本文件承载背景图、动画、
   以及无法用工具类表达的复杂视觉。
   ========================================================= */

/* 面包屑由 JS 统一为「首页 + 一级栏目」，就绪前隐藏避免三级路径闪现 */
html:not(.bc-ready) nav[aria-label='面包屑'] {
  visibility: hidden;
}

/* 页头副标题：宽屏尽量单行（过长文案加 .hero-lead--wrap） */
.hero-lead {
  max-width: none;
}
@media (min-width: 1280px) {
  .hero-lead:not(.hero-lead--wrap) {
    white-space: nowrap;
  }
}

:root {
  --navy-950: #061630;
  --navy-900: #0a2148;
  --navy-800: #0e2a5a;
  --navy-700: #143674;
  --accent-500: #ff6a13;
  --surface: #f5f6f8;
  --line: #dfe3ea;
  --header-h: 76px;
}

/* ---------------------------------------------------------
   1. 滚动条与基础
   --------------------------------------------------------- */
html {
  scrollbar-color: #b9c2d1 #eef0f4;
}
body.is-locked {
  overflow: hidden;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #eef0f4;
}
::-webkit-scrollbar-thumb {
  background: #b9c2d1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8e9aae;
}

/* ---------------------------------------------------------
   2. 顶部导航
   --------------------------------------------------------- */
.site-header {
  transition: background-color 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.4s ease;
}
.site-header.is-transparent {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}
.site-header.is-solid {
  background-color: #ffffff;
  border-color: var(--line);
  box-shadow: none;
}
.site-header.is-scrolled {
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(6, 22, 48, 0.05), 0 10px 30px -18px rgba(6, 22, 48, 0.35);
}

/* 一级导航下划线 */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* 下拉面板 */
.nav-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 移动端抽屉 */
.drawer {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer-mask {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.drawer-sub.is-open {
  max-height: 30rem;
}
.drawer-toggle .fa-chevron-down {
  transition: transform 0.3s ease;
}
.drawer-toggle.is-open .fa-chevron-down {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------
   3. 首页开场动画（手绘图纸 → 自动驾驶代码矩阵）
   --------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 40%, #0d2f63 0%, #061630 62%, #03101f 100%);
  transition: opacity 0.9s ease, visibility 0.9s;
}
.intro.is-done {
  opacity: 0;
  visibility: hidden;
}
.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.intro-caption {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(3, 16, 31, 0.55);
}
.intro-caption::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 220%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(3, 16, 31, 0.55) 0%, rgba(3, 16, 31, 0) 68%);
  z-index: -1;
  pointer-events: none;
}
/* 前段为蓝图/总成/矩阵的科技叙事；宗旨文字在后段浮现，成为主角（科技矩阵在其后继续流动） */
.intro-line {
  height: 2px;
  width: 0;
  margin: 1.75rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-500), transparent);
  animation: intro-line 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 4.35s forwards;
}
@keyframes intro-line {
  0% { width: 0; opacity: 0; }
  30% { opacity: 1; }
  100% { width: 200px; opacity: 1; }
}
.intro-word {
  display: inline-block;
  opacity: 0;
  animation: intro-word 0.95s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.intro-word-1 { animation-delay: 3.85s; }
.intro-word-2 { animation-delay: 4.03s; }
.intro-word-3 { animation-delay: 4.21s; }
.intro-word-4 { animation-delay: 4.25s; }
@keyframes intro-word {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.intro-sub {
  opacity: 0;
  animation: intro-word 1s cubic-bezier(0.22, 0.61, 0.36, 1) 4.5s forwards;
}
.intro-skip {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 5;
}
@media (min-width: 768px) {
  .intro-skip { right: 2.5rem; top: auto; bottom: 2.5rem; }
}

/* 进度条 */
.intro-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 3;
}
.intro-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255,138,60,.65), var(--accent-500));
  animation: intro-progress 5.6s linear forwards;
}
@keyframes intro-progress {
  to { width: 100%; }
}

/* 首页通栏大图高度（年度论坛专题 hero 与之对齐） */
.hero-banner-height {
  position: relative;
  height: 520px;
}
@media (min-width: 640px) {
  .hero-banner-height {
    height: 600px;
  }
}
@media (min-width: 1024px) {
  .hero-banner-height {
    height: 680px;
  }
}

/* ---------------------------------------------------------
   4. 通栏大图 / 各栏目主视觉
   --------------------------------------------------------- */
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  /* 纵向定位略上移：让封面里偏上的装饰图案在又宽又矮的 hero 里完整露出，不被顶边裁切 */
  background-position: center 35%;
  background-repeat: no-repeat;
}
.hero-home {
  background-image: url('../img/forum/forum-2024-stage.jpg');
}
.hero-about {
  background-image: url('../img/cover-about.svg');
}
.hero-disclosure {
  background-image: url('../img/cover-disclosure.svg');
}
.hero-culture {
  background-image: url('../img/cover-culture.svg');
}
.hero-raobin {
  background-image: url('../img/awards/raobin-09-zhuhuarong.jpg');
}
.hero-talent {
  background-image: url('../img/talent/fsc-01.jpg');
}
.hero-esg {
  background-image: url('../img/cover-esg.svg');
}
.hero-charity {
  background-image: url('../img/cover-charity.svg');
}
.hero-forum {
  background-image: url('../img/forum/forum-2024-stage.jpg');
}
.hero-news {
  background-image: url('../img/cover-news.svg');
}
.hero-contact {
  background-image: url('../img/cover-contact.svg');
}
.hero-donate {
  background-image: url('../img/cover-donate.svg');
}
/* 党建引领 hero：浅底 + 大号红标题 + 右侧党旗（白底党旗 multiply 融入浅底、保金徽满色） */
.hero-party-bg {
  background:
    radial-gradient(58% 135% at 0% 42%, rgba(198, 22, 34, 0.2) 0%, rgba(198, 22, 34, 0.06) 38%, transparent 58%),
    linear-gradient(118deg, #f6e4df 0%, #f3eae2 46%, #f6f1eb 100%);
  border-bottom: 2px solid #b3121f;
}
.hero-party-flag {
  right: clamp(-6px, 1vw, 30px);
  /* 在顶部 76px 导航栏下方的内容区内垂直居中，避免被导航遮挡 */
  top: calc(50% + 34px);
  transform: translateY(-50%);
  width: min(44%, 500px);
  height: auto;
  mix-blend-mode: multiply;
}
/* 手机端：党旗降为极淡背景衬托，避免遮挡标题 */
@media (max-width: 1023px) {
  .hero-party-flag {
    width: 116%;
    right: -30%;
    opacity: 0.14;
  }
}
.hero-search {
  background-image: url('../img/cover-search.svg');
}
.hero-cover-talent {
  background-image: url('../img/cover-talent.svg');
}
.hero-cover-science {
  background-image: url('../img/cover-science.svg');
}
.hero-cover-sustain {
  background-image: url('../img/cover-sustain.svg');
}
.hero-cover-green {
  background-image: url('../img/cover-green.svg');
}
.hero-cover-global {
  background-image: url('../img/cover-global.svg');
}
.hero-cover-supporter {
  background-image: url('../img/cover-supporter.svg');
}
.hero-cover-volunteer {
  background-image: url('../img/cover-volunteer.svg');
}
.hero-cover-forum {
  background-image: url('../img/cover-forum.svg');
}

/* 图上渐变蒙版（整体调亮，保留文字区域对比度） */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 22, 48, 0.85) 0%, rgba(9, 29, 64, 0.64) 40%, rgba(12, 42, 90, 0.32) 70%, rgba(12, 42, 90, 0.2) 100%);
}
.hero-scrim-soft {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 48, 0.78) 0%, rgba(9, 29, 64, 0.5) 46%, rgba(6, 22, 48, 0.72) 100%);
}

/* ---------- 站内搜索：圆角搜索条 ---------- */
.search-bar {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.5rem 0.4rem 1.35rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.search-bar:focus-within {
  border-color: rgba(255, 106, 19, 0.9);
  background: rgba(255, 255, 255, 0.1);
}
/* 深色弹层上，输入框不再叠加全局“橙+白”双环，改由整条搜索条高亮 */
.search-bar input[type='search']:focus,
.search-bar input[type='search']:focus-visible {
  outline: none;
  box-shadow: none;
}

/* 首页大图的缓慢推近 */
.kenburns {
  animation: kenburns 26s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

/* ---------------------------------------------------------
   4b. 首屏通栏大图轮播
   --------------------------------------------------------- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-slide.is-active .hero-slide-img {
  animation: hero-kenburns 7.5s ease-out both;
}
@keyframes hero-kenburns {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 22, 48, 0.9) 0%, rgba(6, 22, 48, 0.66) 40%, rgba(6, 22, 48, 0.28) 74%, rgba(6, 22, 48, 0.1) 100%),
    linear-gradient(0deg, rgba(6, 22, 48, 0.4) 0%, rgba(6, 22, 48, 0) 32%);
}
/* 文案逐条上浮（仅当前 slide） */
.hero-slide .max-w-xl > * {
  opacity: 0;
  transform: translateY(18px);
}
.hero-slide.is-active .max-w-xl > * {
  animation: hero-rise 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-slide.is-active .max-w-xl > *:nth-child(1) { animation-delay: 0.15s; }
.hero-slide.is-active .max-w-xl > *:nth-child(2) { animation-delay: 0.28s; }
.hero-slide.is-active .max-w-xl > *:nth-child(3) { animation-delay: 0.41s; }
.hero-slide.is-active .max-w-xl > *:nth-child(4) { animation-delay: 0.54s; }
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}
/* 左右箭头 */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: none;
  height: 46px;
  width: 46px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
@media (min-width: 1024px) {
  .hero-arrow { display: flex; }
}
.hero-arrow:hover {
  background: rgba(255, 106, 19, 0.92);
  border-color: transparent;
}
.hero-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
/* 指示点 */
.hero-dot {
  height: 4px;
  width: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.35s ease, width 0.35s ease;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-dot.is-active {
  width: 44px;
  background: var(--accent-500);
}

/* 深蓝网格纹理（科技感） */
.grid-tech {
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
}
.grid-tech-dark {
  background-image: linear-gradient(rgba(10, 33, 72, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 33, 72, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* 蓝图纹理（手绘设计图纸意象） */
.blueprint {
  background-color: #0a2148;
  background-image: url('../img/pattern-blueprint.svg');
  background-size: 640px 640px;
}

/* ---------------------------------------------------------
   5. 滚动显现
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.09s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.27s; }
.reveal-d4 { transition-delay: 0.36s; }
.reveal-d5 { transition-delay: 0.45s; }

/* ---------------------------------------------------------
   6. 组件：大事记时间轴
   --------------------------------------------------------- */
.timeline {
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-500), rgba(20, 54, 116, 0.22) 22%, rgba(20, 54, 116, 0.12));
}
@media (min-width: 1024px) {
  .timeline::before {
    left: 152px;
  }
}
.timeline-dot::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--accent-500);
  box-shadow: 0 0 0 4px rgba(255, 106, 19, 0.12);
}
@media (min-width: 1024px) {
  .timeline-dot::before {
    left: 145px;
  }
}

/* ---------------------------------------------------------
   7. 组件：数字滚动 / 统计
   --------------------------------------------------------- */
.stat-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------------------------------------------------------
   8. 组件：图片比例与悬浮
   --------------------------------------------------------- */
.media-zoom img {
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.media-zoom:hover img {
  transform: scale(1.06);
}

/* ---------------------------------------------------------
   9. 组件：折叠面板
   --------------------------------------------------------- */
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.acc-body.is-open {
  max-height: 160rem;
}
.acc-head .fa-plus {
  transition: transform 0.3s ease;
}
.acc-head.is-open .fa-plus {
  transform: rotate(135deg);
}

/* ---------------------------------------------------------
   10. 组件：走马灯 / 轮播
   --------------------------------------------------------- */
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.scroll-x {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-x::-webkit-scrollbar {
  display: none;
}
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ---------------------------------------------------------
   11. 侧栏目录（栏目内页）
   --------------------------------------------------------- */
.side-link {
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.side-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-500);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.side-link.is-active::before,
.side-link:hover::before {
  transform: scaleY(1);
}

/* ---------------------------------------------------------
   12. 返回顶部 / 悬浮工具条
   --------------------------------------------------------- */
.to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------------------------------------------------------
   13. 人物肖像（发起人 / 组织机构）
   --------------------------------------------------------- */
.people-photo-slot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}
.people-photo-slot--sm {
  width: 6.25rem;
  height: 8.125rem;
  border-radius: 0.625rem;
}
.people-photo-slot--md {
  width: 6.25rem;
  height: 8.125rem;
  border-radius: 0.625rem;
}
.people-photo-slot--founder {
  min-height: 220px;
  border-radius: 0;
}
img.people-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.prose-cn p.charter-chapter {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* 列表翻页（site.js paginate，超过一页才出现）：与列表筛选按钮同一套方块按钮 */
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.list-pager button,
.list-pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e7e1d6;
  background: #fff;
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.list-pager button:hover:not(:disabled):not(.is-active) {
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.list-pager button.is-active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
  cursor: default;
}
.list-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.list-pager__gap {
  border-color: transparent;
  background: transparent;
  padding: 0 2px;
  min-width: 0;
}

/* ---------------------------------------------------------
   14. 打印
   --------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .to-top,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

/* ---------------------------------------------------------
   15. 降低动效偏好
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 获取验证码倒计时中：不可点 */
.btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------------------------------------------------------
   16. 原型内联样式改为类（服务端模板禁止 style 属性；显示与原型一致）
   --------------------------------------------------------- */
/* 页脚微信公众号二维码（原 style="width:92px;height:92px"） */
.footer-qr { width: 92px; height: 92px; }
/* 页脚微信图标（原 style="color:#07c160"） */
.text-wechat { color: #07c160; }
/* 党建引领首屏小标题前的红色短线（原 style="background:#dc2626"） */
.bg-party-red { background: #dc2626; }

/* ---------------------------------------------------------
   17. 后台富文本格式（与 HtmlSanitizer 允许的类一致）
       编辑器的颜色 / 高亮 / 字号 / 对齐 / 表格在保存时转成以下类；
       每条同时写不带前缀与 .prose-cn 下两种，后者压过 .prose-cn strong / a / h3 等默认样式
   --------------------------------------------------------- */
.hq-c-red, .prose-cn .hq-c-red { color: #dc2626; }
.hq-c-orange, .prose-cn .hq-c-orange { color: #ff6a13; }
.hq-c-navy, .prose-cn .hq-c-navy { color: #0e2a5a; }
.hq-c-green, .prose-cn .hq-c-green { color: #16a34a; }
.hq-c-gray, .prose-cn .hq-c-gray { color: #64748b; }

.hq-bg-yellow, .prose-cn .hq-bg-yellow { background-color: #fef08a; padding: 0 0.15em; }
.hq-bg-blue, .prose-cn .hq-bg-blue { background-color: #dbeafe; padding: 0 0.15em; }
.hq-bg-green, .prose-cn .hq-bg-green { background-color: #dcfce7; padding: 0 0.15em; }

.hq-fs-sm, .prose-cn .hq-fs-sm { font-size: 0.875em; }
.hq-fs-lg, .prose-cn .hq-fs-lg { font-size: 1.25em; }
.hq-fs-xl, .prose-cn .hq-fs-xl { font-size: 1.5em; }

.text-justify, .prose-cn .text-justify { text-align: justify; }

/* 表格：同后台编辑器（admin.css .rte__area table）的样式 */
table.datatable, .prose-cn table.datatable {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  overflow: hidden;
}
table.datatable th, .prose-cn table.datatable th {
  background: #0b1f3a;
  color: #fff;
  font-weight: 700;
  padding: 11px 14px;
  text-align: left;
  font-size: 13.5px;
}
table.datatable td, .prose-cn table.datatable td {
  padding: 11px 14px;
  border-top: 1px solid #eef1f6;
  font-size: 13.5px;
  color: #475569;
  vertical-align: top;
  min-width: 48px;
}
table.datatable tbody tr:nth-child(even) td, .prose-cn table.datatable tbody tr:nth-child(even) td { background: #fafcff; }

/* ---------------------------------------------------------
   18. 交互与无障碍补充（site.js 配套）
   --------------------------------------------------------- */
/* 移动端抽屉：关着时 visibility:hidden，里面的链接不会被 Tab 选中；
   打开立即可见，关闭时等滑出动画（0.4s）结束再隐藏 */
.drawer {
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.4s;
}
.drawer.is-open {
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0s;
}
/* 浏览器禁用脚本时，滚动显现的内容直接显示 */
@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* 空字段隐藏：保证 hidden 属性对带 display 类的元素也生效 */
[hidden] {
  display: none !important;
}

/* 页脚标志：预编译的 tailwind 高度类最大只到 h-28，这里单独给，随视口平滑缩放 */
.footer-logo {
  height: clamp(76px, 8.5vw, 112px);
  width: auto;
}

/* 页眉标志：76px 高的头部里，随视口在 44~60px 间缩放 */
.header-logo {
  height: clamp(44px, 4.4vw, 60px);
  width: auto;
}

/* 饶斌奖专题页主视觉：与年度论坛页同高。
   数值 = .hero-banner-height 的 520 / 600 / 680，再加 76px（页眉让位，见 section 上的 pt-[76px]）。
   原先写的是 min-h-[70vh]，屏幕越高空白越多（1440 高的屏上空出近 600px），改成定值不再跟着屏幕长。
   用 min-height 而不是 height：窄屏标题换行变高时不会被裁掉。 */
.hero-feature-height {
  min-height: 596px;
}
@media (min-width: 640px) {
  .hero-feature-height {
    min-height: 676px;
  }
}
@media (min-width: 1024px) {
  .hero-feature-height {
    min-height: 756px;
  }
}
