/* PC v39 desktop baseline */
/* ==================== V39 - 北京野生邻居图鉴 主题系统样式 ==================== */
/* 复用 V38 主题系统：4种主题 blue(默认)/green/purple/orange */
/* 4种窗口断点: <700 / 700-1200 / 1200-2400 / >2400 */
/* 4个一级栏目：邻居图鉴(3图卡同屏轮播) / 探秘手册(左大图+右列表) / 观察室(3D旋转木马) / 藏宝图(左图右文列表) */

/* ==================== 主题变量 :root ==================== */
:root {
  /* 主题色系 */
  --primary: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  --primary-deep: #1a5276;
  --primary-rgb: 52,152,219;

  /* 文字色 */
  --text: #2c3e50;
  --text-secondary: #34495e;
  --text-muted: #95a5a6;
  --text-light: #7f8c8d;

  /* 背景/边框 */
  --border: #ecf0f1;
  --border-light: #edf2f7;
  --bg-gradient-start: #d6eaf8;
  --bg-gradient-mid: #aed6f1;
  --bg-gradient-end: #85c1e9;
  --page-width: 1200px;
  --section-title-width: 33.333333%;

  /* 字体大小 */
  --fs-title: 52px;
  --fs-title-p: 20px;
  --fs-normal: 18px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  /* 栏目背景色 */
  --bg-s1: #ffffff;
  --bg-s2: #b3e7ff;
  --bg-s3: #caf8e6;
  --bg-s5: #8ad89c;
  --bg-s4: #b3e7ff;

}

/* 4种预定义主题 */
[data-theme="blue"] {
  --primary: #3498db; --primary-dark: #2980b9; --primary-light: #5dade2;
  --primary-deep: #1a5276; --primary-rgb: 52,152,219;
  --bg-gradient-start: #d6eaf8; --bg-gradient-mid: #aed6f1; --bg-gradient-end: #85c1e9;
}
[data-theme="green"] {
  --primary: #27ae60; --primary-dark: #219a52; --primary-light: #52d681;
  --primary-deep: #145b32; --primary-rgb: 39,174,96;
  --bg-gradient-start: #d4efdf; --bg-gradient-mid: #a9dfbf; --bg-gradient-end: #7dcea0;
}
[data-theme="purple"] {
  --primary: #8e44ad; --primary-dark: #7d3c98; --primary-light: #af7ac5;
  --primary-deep: #4a235a; --primary-rgb: 142,68,173;
  --bg-gradient-start: #e8daef; --bg-gradient-mid: #d2b4de; --bg-gradient-end: #bb8fce;
}
[data-theme="orange"] {
  --primary: #e67e22; --primary-dark: #d35400; --primary-light: #f0b27a;
  --primary-deep: #935116; --primary-rgb: 230,126,34;
  --bg-gradient-start: #fdebd0; --bg-gradient-mid: #fad7a0; --bg-gradient-end: #f5cba7;
}

/* 5断点响应式字体 */
@media screen and (min-width: 2401px) {
  :root { --fs-title: 52px; --fs-title-p: 22px;--fs-normal: 20px; --fs-sm: 18px; --fs-xs: 14px; }
}
@media screen and (min-width: 1201px) and (max-width: 2400px) {
  :root { --fs-title: 44px; --fs-title-p: 20px;--fs-normal: 18px; --fs-sm: 14px; --fs-xs: 12px; }
}
@media screen and (min-width: 701px) and (max-width: 1200px) {
  :root { --fs-title: 36px; --fs-title-p: 16px;--fs-normal: 15px; --fs-sm: 11px; --fs-xs: 10px; }
}
@media screen and (min-width: 701px) and (max-width: 1200px) {
  :root { --section-title-width: 35%; }
}
@media screen and (min-width: 401px) and (max-width: 700px)  {
  :root { --fs-title: 28px; --fs-title-p: 15px;--fs-normal: 14px; --fs-sm: 10px; --fs-xs: 9px; }
}
@media screen and (max-width: 400px) {
  :root { --fs-title: 24px; --fs-title-p: 14px;--fs-normal: 12px; --fs-sm: 10px; --fs-xs: 9px; }
}
@media screen and (max-width: 700px) {
  :root { --section-title-width: 70%; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes pulseIn {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.img-pulse { animation: pulseIn 0.8s ease; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif,"Segoe UI", "PingFang SC";
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  scrollbar-gutter: stable;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.w100 {width: 100%;}
.wh100 { width: 100%; height: 100%; }
.ovy {overflow-y: auto;}
.scn{scrollbar-width: none; -ms-overflow-style: none;}
.active-color{color: var(--primary-deep)}
.center {text-align: center;}
.subtitle-fs {font-size: var(--fs-normal);}
.body-fs {font-size: var(--fs-sm);}
.flce {display: flex; align-items: center;justify-content: center;}
.flec {display: flex; align-items: center;justify-content: center;}
.flc {display: flex; flex-direction: column;}
.flex1 {flex: 1;}
.pa {position: absolute;}
.pr {position: relative;}
.bgf {background-color: #fff;}
.pd1 {padding: 1%;}
.br1 {border-radius: 1%;}
.br20 {border-radius: 20px;}
.t0{top: 0px;}
.l0{left: 0px;}
.r0{right: 0px;}
.b0{bottom: 0px;}
.w80{width: 80xp;}
.aspect-ratio-bg{
    aspect-ratio: 1920/320;
}

/* ==================== 回到顶部按钮 ==================== */
.width-toggle-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb),0.35);
  transition: all 0.3s ease; user-select: none;
}
.width-toggle-btn:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(var(--primary-rgb),0.5); border-color: rgba(255,255,255,0.5); }
.width-toggle-btn:active { transform: scale(0.92) translateY(-2px); }
.btt-arrow { width: 20px; height: 20px; transition: transform 0.3s ease; }
.width-toggle-btn:hover .btt-arrow { transform: translateY(-2px); }

/* ==================== 页面容器（多屏宽支持） ==================== */
.page-wrapper {
  width: 100%; max-width: 100%;
  margin: 0 auto; padding: 0 10px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@media screen and (min-width: 2401px) { .page-wrapper { width: 2400px; } }
@media screen and (min-width: 1201px) and (max-width: 2400px) { .page-wrapper { width: 1200px; } }
@media screen and (min-width: 981px) and (max-width: 1200px) { .page-wrapper { width: 980px; } }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif,"Segoe UI", "PingFang SC";
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  scrollbar-gutter: stable;
}

/* ==================== 全屏 Hero 区域 ==================== */
.hero-section {
  position: relative;
  width: 100%;
  padding: 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 35%, var(--primary-dark) 70%, var(--primary-deep) 100%);
}
.hero-bg-img {
  position: relative; inset: 0; z-index: 0;
  width: 100%;
}
.hero-organization-image {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 2;
  width: 65.2%;
  max-width: 1051px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Hero 左上角 Logo 栏 */
.hero-logo-bar {
  position: absolute; top: 16px; left: 24px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
}
.hero-logo-item {
  height: 40px; width: auto; display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
  transition: transform 0.25s ease;
}
.hero-logo-item:hover { transform: translateY(-2px); }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  padding: 40px 30px; max-width: 900px;
}
.hero-logo-icon { font-size: 60px; margin-bottom: 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.hero-main-title {
  font-size: var(--fs-title); font-weight: 900; letter-spacing: 6px;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.3); margin-bottom: 10px;
}
.hero-subtitle { font-size: var(--fs-title-p); letter-spacing: 4px; opacity: 0.92; margin-bottom: 14px; }
.hero-desc { font-size: var(--fs-normal); opacity: 0.85; max-width: 620px; margin: 0 auto 24px; }
.hero-scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: var(--fs-xs); opacity: 0.8; letter-spacing: 2px;
}
.hero-scroll-hint .scroll-arrow {
  width: 22px; height: 22px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg); animation: scrollBounce 1.6s infinite;
}
@keyframes scrollBounce { 0%,100%{ transform: rotate(45deg) translate(0,0);} 50%{ transform: rotate(45deg) translate(4px,4px);} }

/* ==================== 区块通用样式 ==================== */
.section-block { margin: 0; padding: 0; }
.section-fullwidth { width: 100%; margin: 0; padding: 1% 0px; position: relative; z-index: 1; }
/* v34: each home section owns its full-width background; the absolute wave layer only decorates the transition edge. */
.section-bg-s1 { background-color: var(--bg-s1); }
.section-bg-s2 { background-color: var(--bg-s2); }
.section-bg-s3 { background-color: var(--bg-s3); }
.section-bg-s4 { background-color: var(--bg-s4); }
/* 内容区全宽背景图 */
.section-bg-body {
  background-image: url('./bg-body-1.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ==================== 一级栏目组 ==================== */
.column-group { position: relative; }
.column-group + .column-group { margin-top: 2.5%; }

/* 邻居图鉴 page-wrapper：独立背景色 + 上边波浪形裁剪 */
.bg-box { position: relative; }
.bg-box.neighbor-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: -1px; z-index: 0;
  background: linear-gradient(180deg, var(--bg-s2),  var(--bg-s2));
  clip-path: url(#wave-top);
}

/* 观察室：左倾波浪（峰头偏左） */
.bg-box.observe-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: -1px; z-index: 0;
  background: linear-gradient(180deg, var(--bg-s3),  var(--bg-s3));
  clip-path: url(#wave-left);
}

/* 藏宝图：右倾波浪（峰头偏右） */
.bg-box.treasure-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: -1px; z-index: 0;
  background: linear-gradient(180deg, var(--bg-s4),  var(--bg-s4));
  clip-path: url(#wave-right);
}

/* 探秘手册 page-wrapper：纯 CSS radial-gradient 波浪上边界 */
.page-wrapper.explore-wrap { position: relative; padding-top: 28px; }
.page-wrapper.explore-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    /* 7 个彩色圆形沿顶边排列 → 峰；间隙透明 → 谷（透出 section 背景） */
    radial-gradient(circle 28px at 0% 0,       var(--bg-gradient-start) 28px, transparent 28px),
    radial-gradient(circle 28px at 16.67% 0,   var(--bg-gradient-start) 28px, transparent 28px),
    radial-gradient(circle 28px at 33.33% 0,   var(--bg-gradient-start) 28px, transparent 28px),
    radial-gradient(circle 28px at 50% 0,      var(--bg-gradient-start) 28px, transparent 28px),
    radial-gradient(circle 28px at 66.67% 0,   var(--bg-gradient-start) 28px, transparent 28px),
    radial-gradient(circle 28px at 83.33% 0,   var(--bg-gradient-start) 28px, transparent 28px),
    radial-gradient(circle 28px at 100% 0,     var(--bg-gradient-start) 28px, transparent 28px),
    /* 实体填充从波浪下方开始，避免覆盖间隙 */
    linear-gradient(to bottom, var(--bg-gradient-start), rgba(var(--primary-rgb),0.12))
      0 28px / 100% calc(100% - 28px) no-repeat;
}

/* Shared section-title display box; the first title no longer shrinks beside the decorations. */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--section-title-width);
  padding: 20px 0 0;
  margin: 0 auto;
}
.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--section-title-width)) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.section-title-row .section-title-bar-link {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}
.section-title-row .section-title-bar {
  width: 100%;
  margin-inline: 0;
}
.section-title-row .butterfly-box-title {
  justify-self: center;
}
/* Title-bar butterfly decoration. */
.butterfly-box-title {
  width: clamp(60px, 10vw, 200px);
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 600px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  pointer-events: none;
  animation: butterflyFloat 4s ease-in-out infinite;
}
.title-icon { font-size: 24px; }
.section-title-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.section-title-row .section-title-img {
  width: 100%;
  max-width: none;
}
/* Other section title links use the same width as the center grid column. */
.column-group > .section-title-bar-link {
  width: 100%;
}
.overview-card { border-radius: 1px; padding: 2% 0 2% 0; }
.overview-content-window { max-width: 100%; overflow: hidden; }

/* ==================== 1. 邻居图鉴：3图卡同屏轮播 ==================== */
.neighbor-ratio { aspect-ratio: auto; }
.carousel-3cards { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; }
.carousel3-prev, .carousel3-next {
  flex-shrink: 0; width: clamp(32px, 5vw, 48px); height: clamp(32px, 5vw, 48px);
  border: none; background: transparent; cursor: pointer; z-index: 3;
  padding: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}
.carousel3-prev svg, .carousel3-next svg { width: 100%; height: 100%; display: block; }
.carousel3-prev:hover, .carousel3-next:hover { transform: scale(1.15); filter: drop-shadow(0 3px 10px rgba(0,144,255,0.6)); }
.carousel3-track-wrap { flex: 1; overflow: hidden; min-width: 0; height: 100%; }
.carousel3-track { display: flex; gap: 14px; height: 100%; will-change: transform;padding-top: 6px; }
.carousel3-card {
  flex: 0 0 calc((100% - 28px) / 3);
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(31, 73, 125, .18);
  transition: transform 0.3s, box-shadow 0.3s;
}
.carousel3-card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(var(--primary-rgb),0.25); }
.carousel3-card .carousel3-img-wrap { width: 100%; aspect-ratio: 1/1; flex-shrink: 0; overflow: hidden; }
.carousel3-card .carousel3-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel3-text { padding: 10% 12px; background: #fff; display: flex; align-items: center; height: calc(2.6 * var(--fs-title-p)); flex-shrink: 0; }
.carousel3-text h4 {
  font-size: var(--fs-title-p); font-weight: 700; color: var(--text); margin: 0;
  line-height: 1.3; text-align: left;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-all;
}

/* ==================== 2. 探秘手册：左大图片 + 右文章列表 ==================== */
.explore-ratio { aspect-ratio: 1400/625; }
.explore-layout { display: flex; gap: 18px; width: 100%; height: 100%; }
.explore-img {
  flex: 0 0 58%; height: 100%; border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.12); min-width: 0;
}
.explore-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.explore-img:hover img { transform: scale(1.04); }
.explore-img .explore-img-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  color: #fff;
}
.explore-cap-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.explore-cap-title {
  font-size: var(--fs-title-p); font-weight: 700; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.explore-cap-desc {
  font-size: var(--fs-sm); opacity: 0.85;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.explore-cap-btn {
  flex-shrink: 0; padding: 7px 18px; border-radius: 50px;
  font-size: var(--fs-sm); font-weight: 600;
  background: rgb(241, 247, 254);color: var(--text-secondary);
  text-decoration: none; transition: all 0.25s; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.explore-cap-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.5); }
.explore-list {
  flex: 1; height: 100%; background: #fff; border: 2px solid var(--primary);
  border-radius: 14px; padding: 8px 14px; overflow-y: auto; scrollbar-width: none;
}
.explore-list::-webkit-scrollbar { display: none; }
.explore-list li { display: flex; flex:1; align-items: center; background: #f7fbff; border-bottom: 1px dashed var(--border); transition: all 0.25s; border-radius: 14px; }
.explore-list li:last-child { border-bottom: none; }
.explore-list li a {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  width: 100%; height: 100%;padding: 12px 14px; border-radius: 14px;
  color: var(--text-secondary); transition: all 0.25s;
}
.explore-list li:hover a { background: rgba(var(--primary-rgb),0.08); }
.explore-list li.active a { background: rgba(var(--primary-rgb),0.15); }
.explore-list li.active .explore-item-title,
.explore-list li.active .explore-item-desc { color: var(--primary-dark); }

/* 左侧圆形头像 */
.explore-item-avatar {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border);
}
.explore-item-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-list li.active .explore-item-avatar { border-color: var(--primary); }

/* 右侧文本：标题 + 介绍 */
.explore-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.explore-item-title {
  font-size: var(--fs-title-p); font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.explore-item-desc {
  font-size: var(--fs-sm); color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==================== 3. 观察室：3D 旋转木马轮播 ==================== */
.observe-ratio { aspect-ratio: 1400/520; }
.carousel3d-stage {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  perspective-origin: center;
  /* perspective 由 JS 动态计算 */
}
.carousel3d-track {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.carousel3d-item {
  position: absolute; left: 17.5%; top: 0;
  width: 65%; aspect-ratio: 900/500;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  transition: filter 0.6s ease, opacity 0.6s ease;
}
.carousel3d-item:not(.active) { filter: blur(2px); opacity: 0.75; }
.carousel3d-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel3d-item .item-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-size: var(--fs-normal); font-weight: 700; color: #fff;
  text-align: left; line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}
.carousel3d-ctrl-left,
.carousel3d-ctrl-right {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;transition: 0.2s;
}
.carousel3d-ctrl-left button  { position: relative; left: -48px; }
.carousel3d-ctrl-right button {  position: relative; right: -48px; }
.carousel3d-ctrl {
  width: clamp(32px, 5vw, 48px); height: clamp(32px, 5vw, 48px);
  border: none; background: transparent; cursor: pointer;
  padding: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}
.carousel3d-ctrl:hover { transform: scale(1.15); filter: drop-shadow(0 3px 10px rgba(20,143,20,0.4)); }
.carousel3d-ctrl svg { width: 100%; height: 100%; display: block; }

/* ==================== 4. 藏宝图：左图右标题介绍 文章列表 ==================== */
.treasure-ratio { aspect-ratio: 1400/490; }
.treasure-list {
  display: flex; flex-direction: column; gap: 16px; width: 100%; height: 100%;
  overflow-y: auto; scrollbar-width: 10px; scrollbar-color: var(--primary) transparent;
  background: #fff; border-radius: 14px; padding: 16px;
}
.treasure-list::-webkit-scrollbar { width: 10px; }
.treasure-list::-webkit-scrollbar-track { background: transparent; }
.treasure-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
.treasure-list::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
.treasure-list::-webkit-scrollbar { display: none; }
.treasure-card {
  display: flex; flex-wrap: wrap; flex-shrink: 0;
  flex: 0 0 calc(50% - 8px); min-height: 180px;
  background: #fff; border-radius: 14px; overflow-y: visible;
  background: #fff; cursor: pointer; transition: background 0.3s;
  position: relative; padding-bottom: 8px;
}
.treasure-card:hover { background: rgba(var(--primary-rgb),0.06); }
.treasure-card::after {
  content: '';
  position: absolute; bottom: -10px; left: 16px; right: 16px;
  border-bottom: 4px solid var(--border);
}
.treasure-card:last-child::after { display: none; }
.treasure-card-img {height: 100%; flex: 0 0 42%; aspect-ratio: 2/1; overflow: hidden; border-radius: 10px; }

.treasure-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.treasure-card:hover img { transform: scale(1.04); }
.treasure-card-body {height: 100%; flex: 1; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.treasure-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.treasure-card-title { font-size: var(--fs-title-p); font-weight: 700; color: var(--text); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treasure-card-desc { font-size: var(--fs-normal); color: var(--text-light); line-height: 1.6;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.treasure-card-btn {
  flex-shrink: 0; padding: 8px 20px; border-radius: 50px;
  font-size: var(--fs-sm); font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-decoration: none; transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb),0.3);
}
.treasure-card-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(var(--primary-rgb),0.5); }

/* ==================== 主题切换按钮 ==================== */
.theme-toggle-btn {
  position: fixed; bottom: 24px; right: 84px; z-index: 1000;
  width: 48px; height: 48px; border-radius: 50%;
  background: white; border: 2px solid var(--primary);
  color: var(--primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease; user-select: none;
}
.theme-toggle-btn:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 6px 20px rgba(var(--primary-rgb),0.3); }
.theme-toggle-btn:active { transform: scale(0.92) translateY(-2px); }
.theme-dropdown {
  position: absolute; bottom: 58px; right: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px; border-radius: 12px;
  background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: all 0.25s ease;
}
.theme-dropdown.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.theme-option { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.theme-option:hover { transform: scale(1.15); }
.theme-option.active { border-color: var(--text); }
.theme-option.blue { background: linear-gradient(135deg, #5dade2, #3498db); }
.theme-option.green { background: linear-gradient(135deg, #52d681, #27ae60); }
.theme-option.purple { background: linear-gradient(135deg, #af7ac5, #8e44ad); }
.theme-option.orange { background: linear-gradient(135deg, #f0b27a, #e67e22); }

/* ==================== 页脚 ==================== */
.site-footer { text-align: center; padding: 28px 0; font-size: 13px; color: #5d6d7e; position: relative; z-index: 1; }

/* ==================== 响应式设计（断点: 1200 / 700 / 400） ==================== */
@media screen and (max-width: 1280px) {
  .carousel3d-ctrl-left button  { left: 0; }
  .carousel3d-ctrl-right button { right: 0; }
}
@media screen and (max-width: 1200px) {
  .neigh-ratio, .explore-ratio, .treasure-ratio { aspect-ratio: auto; height: auto; }
  .section-title-img { width: 100%; }
}
@media screen and (min-width: 701px) and (max-width: 1200px) {
  .explore-ratio { aspect-ratio: 1400/625; height: auto; }
}
@media screen and (max-width: 700px) {
  .width-toggle-btn { width: 38px; height: 38px; bottom: 12px; right: 12px; }
  .btt-arrow { width: 16px; height: 16px; }
  .theme-toggle-btn { width: 38px; height: 38px; bottom: 12px; right: 58px; font-size: 15px; }
  .hero-content { padding: 40px 20px; }
  .hero-organization-image { top: 55%; width: 94%; max-width: none; }
  .section-title { font-size: 22px; }
  .section-title-img { width: 100%; }

  /* 邻居图鉴：移动端单次显示1卡 */
  .carousel3-card { flex: 0 0 100%; }
  .carousel3-track { gap: 0; }

  /* 探秘手册：上下堆叠 */
  .explore-layout { flex-direction: column; }
  .explore-img { flex: 0 0 auto; width: 100%; aspect-ratio: 100/74; }
  .explore-list { flex: 1; width: 100%; max-height: 360px; }

  /* 观察室：3D 木马缩小 */
  .carousel3d-item { width: 80%; left: 10%; }

  /* 藏宝图：单列 */
  .treasure-list { gap: 10px; }
  .treasure-card { flex: 0 0 auto; height: auto; flex-direction: column; }
  .treasure-card-img { flex: 0 0 auto; width: 100%; }
  .treasure-card-body { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==================== 蝴蝶飞舞：45° 对角弯折 3D ==================== */
.butterfly-box {
  position: absolute; bottom: -100px; right: 36%; z-index: 99;
  width: 120px; height: 120px;
  perspective: 600px; perspective-origin: 50% 50%;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: butterflyFloat 4s ease-in-out infinite;
}
@keyframes butterflyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px) translateX(6px); }
}
.wing {
  position: absolute; inset: 0;
  background: url('./float-1.png') center/cover no-repeat;
  transform-origin: 50% 50%;
  will-change: transform;
}
/* 右半（上三角）：对角线(0,0→100%,100%)上方，沿折线向内合拢 */
.wing-diag-right {
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  animation: flapRight0 1.4s ease-in-out infinite alternate;
}
/* 左半（下三角）：对角线(0,0→100%,100%)下方，沿折线向内合拢 */
.wing-diag-left {
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  animation: flapLeft0 1.4s ease-in-out infinite alternate;
}
/* 两翼沿同一对角折线旋转，方向相反 → 镜像扑动 */
@keyframes flapLeft0 {
  0%   { transform: rotate3d(1, 1, 0, 20deg); }
  100% { transform: rotate3d(1, 1, 0, 50deg); }
}
@keyframes flapRight0 {
  0%   { transform: rotate3d(1, 1, 0, 10deg); }
  100% { transform: rotate3d(1, 1, 0, -50deg); }
}

@media screen and (max-width: 400px) {
  .treasure-card-img { height: 150px; }
}



/** css **/
/* 1. 父容器：开启 3D 视角 */
.butterfly-container {
  pointer-events: none;
  width: 200px;     /* 建议保持宽高一致（正方形），这样对角线就是完美的 45 度 */
  height: 200px;
  position: relative;
  perspective: 1000px; /* 3D 透视深度，值越小 3D 变形越夸张 */
  transform-style: preserve-3d;
  animation: butterflyFloat 5s ease-in-out infinite;
  animation-delay: 200ms;
}

/* 2. 翅膀公共样式 ./float-1.png */
.wing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./float-1.png');
  background-size: cover;
  background-position: center;

  /* 修复关键点：将旋转中心改回中心点，让 3D 翻转对称 */
  transform-origin: center center;
}

/* 3. 左侧翅膀 (裁剪左下角三角形) */
.wing-left {
  /* clip-path 坐标：左上(0 0) -> 左下(0 100%) -> 右下(100% 100%) */
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  animation: flapLeft 0.6s ease-in-out infinite alternate;
}

/* 4. 右侧翅膀 (裁剪右上角三角形) */
.wing-right {
  /* clip-path 坐标：左上(0 0) -> 右上(100% 0) -> 右下(100% 100%) */
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  animation: flapRight 0.6s ease-in-out infinite alternate;
}

/* 左翼煽动动画 */
@keyframes flapLeft {
  0% {
    /* 起始时不要完全展平，保持 15 度的折角 */
    transform: rotate3d(1, 1, 0, 15deg);
  }
  100% {
    /* 向中间合拢 */
    transform: rotate3d(1, 1, 0, 70deg);
  }
}

/* 右翼煽动动画 (形成镜像) */
@keyframes flapRight {
  0% {
    transform: rotate3d(1, 1, 0, +15deg);
  }
  100% {
    transform: rotate3d(1, 1, 0, -70deg);
  }
}

/* ==================== 列表页：TAB导航 + 文章卡片 + 翻页器 ==================== */

body.list-page-bg {
  min-height: 100vh;
}

.filter-tabs-wrap {
  position: relative; margin-top: 3%; margin-bottom: 3%;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.00);
}
.list-filter-tabs {
  display: flex; gap: 0; flex-wrap: nowrap; align-items: center;
  padding: 0; border-bottom: 2px solid transparent;
  aspect-ratio: 1400/130;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
}
.list-filter-tabs::-webkit-scrollbar { display: none; }

.tab-indicator {
  position: absolute; bottom: 0; height: 4px;
  background: var(--primary); border-radius: 2px 2px 0 0;
  left: var(--tab-x, 0); width: var(--tab-w, 0);
  transition: left 0.35s ease, width 0.35s ease;
  pointer-events: none; z-index: 2;
}

.filter-tab {
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: none; background: transparent;
  cursor: pointer; transition: all 0.25s;
  flex: 1; opacity: 0.85;
}
.filter-tab:hover { opacity: 1; transform: translateY(-3px); }
.filter-tab.active { opacity: 1; filter: drop-shadow(0 2px 4px rgba(var(--primary-rgb),0.3)); }
.filter-tab img { width: auto; height: 100%; max-height: 100%; object-fit: contain; }
.filter-tab .tab-text-fallback { display: none; }
.filter-tab img[style*="display:none"] + .tab-text-fallback,
.filter-tab img[style*="display: none"] + .tab-text-fallback {
  display: inline; font-size: var(--fs-title-p); font-weight: 700;
  color: var(--text-secondary); white-space: nowrap; padding: 8px 16px;
}
.filter-tab.active .tab-text-fallback { color: var(--primary-dark); }

.tab-separator {
  flex-shrink: 0; width: 5px; height: 36px;
  background: var(--primary); border-radius: 3px;
  margin: 0 clamp(8px, 1.5vw, 16px); opacity: 0.5;
}

.filter-drawer { display: none; margin-bottom: 16px; position: relative; }
.filter-drawer-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border: 2px solid var(--primary); border-radius: 8px;
  background: white; color: var(--text); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer;
}
.drawer-arrow { transition: transform 0.25s; color: var(--primary); }
.filter-drawer.open .drawer-arrow { transform: rotate(180deg); }
.filter-drawer-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  background: white; border-radius: 0 0 8px 8px;
  max-height: 0; overflow: hidden;
  border: 0 solid var(--primary);
  transition: max-height 0.3s ease, border-width 0.3s ease;
}
.filter-drawer.open .filter-drawer-list {
  max-height: 300px; overflow-y: scroll; scrollbar-gutter: stable;
  border-width: 0 2px 2px 2px;
}
.filter-drawer-item {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: none; border-radius: 0;
  background: transparent; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-secondary); transition: all 0.2s;
}
.filter-drawer-item:hover { background: rgba(var(--primary-rgb),0.06); color: var(--primary); }
.filter-drawer-item.active { background: rgba(var(--primary-rgb),0.1); color: var(--primary-dark); }

.list-layout-toggle {
  display: flex; gap: 4px; margin-bottom: 16px; justify-content: flex-end;
}
.layout-btn {
  padding: 6px 14px; border: 1px solid var(--border);
  background: white; border-radius: 6px; cursor: pointer;
  font-size: var(--fs-xs); color: var(--text-muted);
  display: flex; align-items: center; gap: 4px; transition: all 0.2s;
}
.layout-btn:hover { background: rgba(var(--primary-rgb),0.06); color: var(--primary); }
.layout-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.layout-btn svg { width: 14px; height: 14px; }

.article-list-section { padding-bottom: 50px; }
.article-list { display: flex; flex-direction: column; gap: 16px; }

.article-card {
  display: flex; gap: 20px; background: white; border-radius: 14px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(var(--primary-rgb),0.18); }
.article-card-img { flex-shrink: 0; width: 240px; height: 160px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-card-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 16px 20px 16px 0; min-width: 0;
}
.article-card-tag {
  display: inline-block; padding: 3px 12px; border-radius: 10px;
  font-size: var(--fs-xs); font-weight: 600; margin-bottom: 6px; width: fit-content;
}
.article-card-tag.s1 { background: rgba(var(--primary-rgb),0.12); color: var(--primary-dark); }
.article-card-tag.s2 { background: #e8f4fd; color: #2980b9; }
.article-card-tag.s3 { background: #e8f8f5; color: #27ae60; }
.article-card-tag.s4 { background: #fef9e7; color: #e67e22; }
.article-card-title {
  font-size: var(--fs-title-p); font-weight: 700; color: var(--text);
  margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-card-desc {
  font-size: var(--fs-sm); color: var(--text-light);
  line-height: 1.6; margin-bottom: 8px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em;
}
.article-card-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-xs); color: var(--text-muted);
}

.article-list.grid-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-list.grid-mode .article-card { flex-direction: column; }
.article-list.grid-mode .article-card-img { width: 100%; height: 180px; }
.article-list.grid-mode .article-card-body { padding: 14px 16px 18px; }
.article-list.grid-mode .article-card-title {
  font-size: var(--fs-title-p); white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.paginator {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 24px 0 40px;
}
.page-btn {
  min-width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 8px;
  border: 1px solid var(--border); background: white;
  color: var(--text-secondary); font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; transition: all 0.2s; padding: 0 8px;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb),0.06); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: default; }
.page-ellipsis { width: 36px; text-align: center; font-size: var(--fs-sm); color: var(--text-muted); user-select: none; }

.no-result { text-align: center; padding: 60px 20px; font-size: var(--fs-normal); color: var(--text-muted); }
.no-result .no-result-icon { font-size: 48px; margin-bottom: 12px; display: block; }

@media screen and (min-width: 701px) and (max-width: 1200px) {
  .article-list.grid-mode { grid-template-columns: repeat(2, 1fr); }
  .article-card-img { width: 200px; height: 140px; }
}
@media screen and (max-width: 700px) {
  .article-card { flex-direction: column; }
  .article-card-img { width: 100%; height: 180px; }
  .article-card-body { padding: 12px 16px 16px; }
  .article-card-title { font-size: var(--fs-normal); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .list-filter-tabs { display: none; }
  .tab-indicator { display: none; }
  .filter-drawer { display: block; }
  .article-list.grid-mode { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 400px) {
  .article-list.grid-mode { grid-template-columns: 1fr; }
  .list-layout-toggle { display: none; }
  .article-card-img { height: 160px; }
}

/* ==================== 详情页：视频/图文切换 ==================== */

body.detail-page-bg {
  /*background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 40%, var(--bg-gradient-end) 100%);*/
  min-height: 100vh;
}

.detail-switch-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 0 20px;
}
.detail-breadcrumb { font-size: var(--fs-normal); }
.detail-breadcrumb ol { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.detail-breadcrumb li { display: flex; align-items: center; }
.detail-breadcrumb li::after { content: '/'; margin: 0 4px; color: var(--text-muted); }
.detail-breadcrumb li:last-child::after { display: none; }
.detail-breadcrumb a { font-weight: normal; }
.detail-breadcrumb a:hover { text-decoration: underline; color: var(--primary); }
.detail-switch-btns { display: flex; gap: 8px; }
.detail-switch-btn {
  padding: 8px 20px; border-radius: 20px;
  border: 1px solid var(--primary-light);
  background: white; color: var(--text-secondary);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
  transition: all 0.25s;
}
.detail-switch-btn:hover { background: rgba(var(--primary-rgb),0.06); color: var(--primary); }
.detail-switch-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.detail-tab-content { padding-top: 0; padding-bottom: 40px; }
.detail-article-header {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px 0;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.detail-article-title {
  font-size: calc(var(--fs-title-p) * 1.50); font-weight: 800;
  color: var(--text); text-align: center;
}
.detail-article-meta {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 15px;
  font-size: var(--fs-sm); color: var(--text-muted);
}
.detail-panel { display: none; }
.detail-panel.active { display: block; }

/* 视频面板 */
.detail-video-wrap {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 4% 6% 3% 6%;
}
.detail-video-wrap .detail-article-header { margin-bottom: 0; border-bottom: none; padding: 20px 0 50px 0; }
.video-player {
  width: 100%; overflow: hidden;
  aspect-ratio: 1000/560; background: #000; border-radius: 10px;
}
.video-el { width: 100%; height: 100%; display: block; object-fit: contain; }
.video-info { padding: 24px 0; }
.video-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--text-muted); margin: 8px 0 14px;
}

/* 图文面板 */
.detail-gallery-wrap {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 4% 6% 3% 6%;
}
.gallery-media-section .detail-article-header { margin-bottom: 0; border-bottom: none; padding: 20px 0 50px 0; }
.gallery-main-img {
  width: 100%; border-radius: 10px; overflow: hidden;
  margin-bottom: 12px; aspect-ratio: 16/9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gallery-main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none; padding: 2px 0; margin-bottom: 20px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs .thumb {
  width: 100px; height: 60px; border-radius: 8px; object-fit: cover;
  cursor: pointer; border: 2px solid transparent;
  flex-shrink: 0; opacity: 0.6; transition: all 0.2s;
}
.gallery-thumbs .thumb:hover { opacity: 0.85; }
.gallery-thumbs .thumb.active { border-color: var(--primary); opacity: 1; }

.detail-desc, .detail-body {
  font-size: var(--fs-normal); color: var(--text-secondary); line-height: 1.9;
}
.detail-body p { margin-bottom: 14px; }
.detail-body p:last-child { margin-bottom: 0; }

@media screen and (max-width: 700px) {
  .video-info { padding: 16px 0; }
  .gallery-thumbs .thumb { width: 72px; height: 46px; }
  .detail-video-wrap, .detail-gallery-wrap { padding: 6% 4% 4% 4%; }
}
@media screen and (max-width: 400px) {
  .detail-switch-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==================== bio-v34 confirmed visual changes ==================== */
html, body { overflow-x: hidden; }
.hero-logo-bar, .hero-logo-item { display: none !important; }
.carousel3-dots { display: none; }
.home-footer-wrap { position: relative; min-height: clamp(180px, 25.5vw, 490px); }
.home-footer-art { aspect-ratio: 1920 / 490; bottom: 0; }
.home-footer { left: 0; right: 0; bottom: 60%; }
.home-footer-butterfly { bottom: 2%; }

/* ==================== mobile increments from v39m ==================== */
@media screen and (max-width: 700px) {
  .carousel-3cards { position: relative; display: block; width: 100%; height: 100%; }
  .carousel3-prev, .carousel3-next {
    position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
    width: 36px; height: 36px;
  }
  .carousel3-prev { left: 4px; }
  .carousel3-next { right: 4px; }
  .carousel3-prev:hover, .carousel3-next:hover { transform: translateY(-50%) scale(1.08); }
  .carousel3-track-wrap { width: 100%; height: 100%; overflow: hidden; }
  .carousel3-track { gap: 8px; padding: 8px 4px 32px; }
  .carousel3-card {
    flex: 0 0 180px !important;
    margin: 0 0 6px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), .18);
  }
  .carousel3-card .carousel3-img-wrap {
    overflow: hidden;
    border-radius: 13px 13px 0 0;
  }
  .carousel3-card .carousel3-img-wrap img { border-radius: 13px 13px 0 0; }
  .carousel3-text { padding: 10px 12px; }
  .carousel3-dots {
    position: absolute; left: 50%; bottom: 8px; z-index: 5;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transform: translateX(-50%);
  }
  .carousel3-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
    background: var(--border); transition: all .3s; cursor: pointer;
  }
  .carousel3-dot.active { width: 10px; height: 10px; background: #5cb85c; }
  .explore-layout { flex-direction: column; }
  .explore-img { flex: 0 0 auto; width: 100%; aspect-ratio: 100 / 74; }
  .explore-list {
    display: flex !important; flex-direction: row !important; width: 100%;
    overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    gap: 8px; padding: 8px 4px; max-height: none !important;
    scroll-snap-type: x mandatory;
  }
  .explore-list::-webkit-scrollbar { display: none; }
  .explore-list li {
    flex: 0 0 calc(100% / 1.5); min-width: 0; min-height: 60px;
    border-bottom: 0 !important; scroll-snap-align: start;
  }
  .explore-list li a { flex-direction: row !important; padding: 8px 10px !important; }
  .observe-ratio { min-height: 280px; overflow: hidden !important; }
  .home-footer-wrap { min-height: 150px; }
  .site-footer { width: 100%; padding: 12px 16px; font-size: 10px; }
}

/* ==================== bio-v34 TRS common ==================== */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.sub-hero .hero-bg-img { min-height: 220px; object-fit: cover; }
.list-main, .detail-main { position: relative; z-index: 2; }
.list-breadcrumb, .detail-page-breadcrumb { margin: 0 0 24px; }
.list-page-title { margin: 0 0 22px; color: var(--primary-deep); font-size: clamp(26px, 4vw, 42px); }
.article-card-img { flex: 0 0 260px; width: 260px; height: 170px; overflow: hidden; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { min-width: 0; padding: 18px 22px; display: flex; flex: 1; flex-direction: column; justify-content: center; }
.article-card-body > span, .article-card-body > strong { display: block; }
.list-pagination[hidden] { display: none; }
.list-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 24px 0 40px; }
.list-page-link, .list-page-current, .list-page-ellipsis {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text-secondary);
  font-size: var(--fs-sm); font-weight: 600;
}
.list-page-link:hover { border-color: var(--primary); color: var(--primary); background: rgba(var(--primary-rgb), .06); }
.list-page-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.list-page-ellipsis { border-color: transparent; background: transparent; color: var(--text-muted); }
.list-footer-space { position: relative; min-height: clamp(150px, 25vw, 490px); }

.detail-main { padding-bottom: 48px; }
.detail-page-breadcrumb { color: var(--text-light); }
.detail-page-breadcrumb ol { align-items: flex-start; flex-wrap: nowrap; }
.detail-page-breadcrumb li:not(:last-child) {
  flex: 0 0 auto;
  white-space: nowrap;
}
.detail-page-breadcrumb li:last-child {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  line-height: 1.5;
  max-height: 3em;
  overflow-wrap: anywhere;
}
.detail-content-card {
  width: 100%; padding: clamp(24px, 4vw, 52px) clamp(20px, 6vw, 72px);
  overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.detail-content-card .detail-article-header { padding-top: 0; }
.detail-content-body { width: 100%; min-width: 0; }
.detail-content-card-video .detail-article-header { margin-bottom: clamp(18px, 3vw, 30px); }
.detail-article-body { color: var(--text-secondary); font-size: var(--fs-normal); line-height: 1.9; overflow-wrap: anywhere; }
.detail-article-body p { margin: 0 0 1em; }
.detail-article-body img { display: block; max-width: 100%; height: auto; margin: 1.2em auto; }
.detail-article-body video, .detail-article-body iframe { display: block; width: 100%; max-width: 100%; margin: 1.2em auto; }
.detail-article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.detail-video-frame { width: 100%; overflow: hidden; }
.detail-video-frame video,
.detail-video-frame iframe,
.detail-video-frame embed,
.detail-video-frame object {
  display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; margin: 0 auto;
}

@media screen and (max-width: 700px) {
  .filter-tabs-wrap { display: none; }
  .filter-drawer { display: block !important; margin-top: 18px; }
  .list-page-title { margin-top: 20px; font-size: 26px; }
  .list-breadcrumb, .detail-page-breadcrumb { margin-top: 18px; }
  .article-card-img { flex-basis: 38%; width: 38%; height: auto; min-height: 112px; }
  .article-card-body { padding: 12px; }
  .detail-main { padding-bottom: 28px; }
  .detail-content-card { padding: 22px 16px; border-radius: 10px; }
  .detail-article-title { font-size: 24px; line-height: 1.45; }
  .detail-article-meta { gap: 6px 14px; margin-top: 8px; }
}


/* Detail-page hero is decorative only: no click, drag, or pointer feedback. */
.detail-page-bg .sub-hero {
  pointer-events: none;
  cursor: default;
}
.detail-page-bg .sub-hero img {
  user-select: none;
  -webkit-user-drag: none;
}

/* ==================== v34 footer legibility and subpage organization strip ==================== */
.hero-organization-image.sub-hero-organization-image {
  top: 56%;
  width: min(85%, 800px);
  max-width: 800px;
}

.site-footer {
  color: #24384f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95);
}
.site-footer p {
  display: inline-block;
  max-width: min(92vw, 1100px);
  margin: 0 auto;
  padding: 10px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 2px 8px rgba(31, 64, 84, .12);
}

.home-footer-butterfly {
  width: 76px;
  height: 76px;
  left: 14%;
  right: auto;
  bottom: 12%;
  z-index: 2;
}

@media screen and (max-width: 700px) {
  .hero-organization-image.sub-hero-organization-image {
    top: 58%;
    width: 92%;
    max-width: 92%;
  }
  .site-footer {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #24384f;
    line-height: 1.65;
  }
  .site-footer p {
    max-width: 96vw;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .86);
  }
  .home-footer-butterfly {
    width: 62px;
    height: 62px;
    left: 10%;
    right: auto;
    bottom: 8%;
    z-index: 2;
  }
}


/* ==================== v34 mobile behavior fixes ==================== */
@media screen and (max-width: 700px) {
  .carousel3-prev,
  .carousel3-next {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(0, 120, 220, .85);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 3px 10px rgba(0, 70, 150, .28);
    transform: translateY(-50%);
  }
  .carousel3-prev { left: 4px; }
  .carousel3-next { right: 4px; }
  .carousel3-prev svg,
  .carousel3-next svg { width: 28px; height: 28px; }
  .carousel3-prev:hover,
  .carousel3-next:hover { transform: translateY(-50%) scale(1.08); }

  .observe-ratio {
    aspect-ratio: 9 / 4;
    min-height: 0;
    height: auto;
    overflow: hidden !important;
  }

  .treasure-ratio {
    aspect-ratio: auto;
    height: 230px;
  }
  .treasure-list {
    box-sizing: border-box;
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px 8px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: auto;
    scrollbar-color: var(--primary) rgba(var(--primary-rgb), .08);
  }
  .treasure-list::-webkit-scrollbar {
    display: block;
    width: 5px;
  }
  .treasure-list::-webkit-scrollbar-track { background: rgba(var(--primary-rgb), .08); }
  .treasure-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
  .treasure-card {
    box-sizing: border-box;
    flex: 0 0 106px;
    min-height: 106px;
    height: 106px;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0;
    overflow: hidden;
  }
  .treasure-card::after { display: none; }
  .treasure-card-img {
    flex: 0 0 42%;
    width: 42%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 10px 0 0 10px;
  }
  .treasure-card-body {
    height: 100%;
    flex: 1;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }
  .treasure-card-text { min-width: 0; }
  .treasure-card-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .treasure-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* v34: improve mobile carousel controls and enable direct finger swiping on the 3D card. */
@media screen and (max-width: 700px) {
  .carousel3-prev,
  .carousel3-next {
    top: calc(50% - 6px);
    transform: translateY(-50%);
  }

  .carousel3d-ctrl-left,
  .carousel3d-ctrl-right {
    top: calc(50% - 4px);
    width: 44px;
    height: 44px;
    z-index: 20;
  }
  .carousel3d-ctrl-left button,
  .carousel3d-ctrl-right button {
    left: 0;
    right: 0;
  }
  .carousel3d-ctrl {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(20, 143, 20, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 3px 10px rgba(15, 100, 55, .3);
  }
  .carousel3d-ctrl svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 2px rgba(0, 80, 30, .28));
  }
  .carousel3d-track {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }
  .carousel3d-track:active {
    cursor: grabbing;
  }
}

/* ==================== v34：同步 v39m 列表页结构 ==================== */
/* 列表页移动端在 900px 内统一使用下拉栏目，避免宽屏移动 viewport 回退到 PC 图片导航。 */
@media screen and (max-width: 900px) {
  body.list-page-bg .filter-tabs-wrap { display: none; }
  body.list-page-bg .filter-drawer { display: block !important; margin-top: 18px; }
}

/* v39m 列表视图：左图右文；网格视图：上图下文。 */
#articleList.article-list:not(.grid-mode) .article-card {
  flex-direction: row;
  align-items: stretch;
}
#articleList.article-list:not(.grid-mode) .article-card-img {
  flex: 0 0 260px;
  width: 260px;
  height: 170px;
}
#articleList.article-list:not(.grid-mode) .article-card-body {
  min-width: 0;
  flex: 1;
}
#articleList.article-list.grid-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#articleList.article-list.grid-mode .article-card {
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
#articleList.article-list.grid-mode .article-card-img {
  flex: 0 0 auto;
  width: 100%;
  height: 180px;
}
#articleList.article-list.grid-mode .article-card-body {
  padding: 14px 16px 18px;
}
#articleList.article-list.grid-mode .article-card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (min-width: 701px) and (max-width: 1200px) {
  #articleList.article-list.grid-mode { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #articleList.article-list:not(.grid-mode) .article-card-img {
    flex-basis: 200px;
    width: 200px;
    height: 140px;
  }
}

@media screen and (max-width: 700px) {
  #articleList.article-list:not(.grid-mode) .article-card {
    flex-direction: column;
  }
  #articleList.article-list:not(.grid-mode) .article-card-img {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-body {
    padding: 12px 16px 16px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-title {
    font-size: var(--fs-normal);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  #articleList.article-list.grid-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #articleList.article-list.grid-mode .article-card-img {
    height: 150px;
  }
}

@media screen and (max-width: 450px) {
  #articleList.article-list:not(.grid-mode) .article-card {
    flex-direction: row;
    gap: 0;
  }
  #articleList.article-list:not(.grid-mode) .article-card-img {
    flex: 0 0 100px;
    width: 100px;
    height: auto;
    min-height: 112px;
    aspect-ratio: 1 / 1;
    align-self: stretch;
  }
  #articleList.article-list:not(.grid-mode) .article-card-img img {
    height: 100%;
  }
  #articleList.article-list:not(.grid-mode) .article-card-body {
    padding: 8px 10px 8px 5px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-title {
    font-size: 13px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-desc {
    font-size: 11px;
    -webkit-line-clamp: 1;
    min-height: auto;
    margin-bottom: 0;
  }
  #articleList.article-list:not(.grid-mode) .article-card-meta {
    font-size: 10px;
  }
  #articleList.article-list.grid-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #articleList.article-list.grid-mode .article-card-img {
    height: 100px;
  }
  #articleList.article-list.grid-mode .article-card-body {
    padding: 8px;
  }
  #articleList.article-list.grid-mode .article-card-title {
    font-size: 12px;
  }
  #articleList.article-list .article-card-meta span:nth-child(2) {
    display: none;
  }
}

/* 下拉菜单按钮和列表项与 v39m 保持可操作性及层级。 */
#filterDrawer .filter-drawer-trigger {
  min-height: 44px;
}
#drawerList .filter-drawer-item {
  text-align: left;
  text-decoration: none;
}

/* v34: fixed list-card heights with text ellipsis */
#articleList.article-list:not(.grid-mode) .article-card {
  height: 170px;
  min-height: 0;
}
#articleList.article-list:not(.grid-mode) .article-card-body {
  min-height: 0;
  overflow: hidden;
}
#articleList.article-list:not(.grid-mode) .article-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
}
#articleList.article-list:not(.grid-mode) .article-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#articleList.article-list.grid-mode .article-card {
  height: 320px;
  min-height: 0;
}
#articleList.article-list.grid-mode .article-card-body {
  min-height: 0;
  overflow: hidden;
}
#articleList.article-list.grid-mode .article-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media screen and (min-width: 701px) and (max-width: 1200px) {
  #articleList.article-list:not(.grid-mode) .article-card {
    height: 140px;
  }
}
@media screen and (max-width: 700px) {
  #articleList.article-list:not(.grid-mode) .article-card {
    height: 280px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-body {
    flex: 1 1 auto;
    overflow: hidden;
  }
}
@media screen and (max-width: 450px) {
  #articleList.article-list:not(.grid-mode) .article-card {
    height: 140px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  #articleList.article-list:not(.grid-mode) .article-card-desc {
    -webkit-line-clamp: 2;
    min-height: 0;
  }
}

/* v34: keep the desktop/tablet treasure-map viewport to two cards and make its scrollbar visible */
@media screen and (min-width: 701px) and (max-width: 1200px) {
  .treasure-ratio {
    aspect-ratio: auto;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }
  .treasure-list {
    box-sizing: border-box;
    height: 420px;
    min-height: 420px;
    max-height: 420px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  #articleList.article-list:not(.grid-mode) .article-card-body {
    justify-content: flex-start;
    padding: 10px 16px 10px 0;
  }
  #articleList.article-list:not(.grid-mode) .article-card-title {
    display: -webkit-box;
    flex: 0 0 auto;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
    white-space: normal;
  }
  #articleList.article-list:not(.grid-mode) .article-card-desc {
    flex: 0 0 auto;
    -webkit-line-clamp: 1;
    min-height: 0;
    line-height: 1.4;
    margin-bottom: 4px;
  }
}

@media screen and (min-width: 451px) and (max-width: 700px) {
  #articleList.article-list:not(.grid-mode) .article-card-body {
    margin-top: -10px;
    justify-content: flex-start;
    padding: 8px 14px 10px;
    padding-top: 0;
    padding-bottom: 34px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-tag {
    flex: 0 0 auto;
    margin-bottom: 2px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-title {
    display: block;
    flex: 0 0 auto;
    line-height: 1.35;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #articleList.article-list:not(.grid-mode) .article-card-desc {
    flex: 0 0 auto;
    -webkit-line-clamp: 1;
    min-height: 0;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  #articleList.article-list:not(.grid-mode) .article-card-meta {
    flex: 0 0 auto;
    margin-top: auto;
    padding-bottom: 0;
  }
}

@media screen and (min-width: 701px) {
  .treasure-list {
    overflow-y: auto;
    scrollbar-width: auto;
    scrollbar-color: #2b7fc1 rgba(43, 127, 193, .18);
  }
  .treasure-list::-webkit-scrollbar {
    display: block;
    width: 12px;
  }
  .treasure-list::-webkit-scrollbar-track {
    background: rgba(43, 127, 193, .18);
    border-radius: 6px;
  }
  .treasure-list::-webkit-scrollbar-thumb {
    background: #2b7fc1;
    border: 2px solid #fff;
    border-radius: 6px;
  }
  .treasure-list::-webkit-scrollbar-thumb:hover {
    background: #1f639e;
  }
}

/* v34: keep organization information banners at a consistent height across home and sub-pages */
.hero-organization-image,
.hero-organization-image.sub-hero-organization-image {
  height: 74px;
  object-fit: fill;
}

@media screen and (max-width: 700px) {
  .hero-organization-image,
  .hero-organization-image.sub-hero-organization-image {
    height: clamp(28px, 7.2vw, 40px);
    object-fit: fill;
  }
}


/* v34: keep the verified stacked-card spacing isolated from narrow side-image cards. */
/* Narrow mobile uses the side-image card layout, so do not pull its text upward. */
@media screen and (max-width: 450px) {
  #articleList.article-list:not(.grid-mode) .article-card-body {
    margin-top: 0;
    padding: 8px 10px 8px 5px;
    justify-content: center;
  }
  #articleList.article-list:not(.grid-mode) .article-card-meta {
    margin-top: 0;
  }
}


/* v34: keep one page-level vertical scroller and normalize editor-generated article images. */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: auto !important;
}
/* Do not combine overflow-x:hidden with overflow-y:visible on body: CSS computes
   the visible axis to auto, which creates a second body scrollbar. */
body {
  overflow: visible !important;
  scrollbar-gutter: auto !important;
}
.detail-content-body img,
.detail-content-body p > img,
.detail-content-body figure > img,
.detail-article-body img,
.detail-article-body p > img,
.detail-article-body figure > img {
  display: block !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-inline: auto !important;
}
.detail-content-body figure,
.detail-article-body figure {
  text-align: center !important;
}
.detail-content-body p:has(> img),
.detail-article-body p:has(> img) {
  text-align: center !important;
}
/* v34: center editor-generated image captions and keep fixed-width notes responsive. */
.detail-content-body .imagenote,
.detail-content-body [type="imagenote"],
.detail-content-body figcaption,
.detail-article-body .imagenote,
.detail-article-body [type="imagenote"],
.detail-article-body figcaption {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* v34: unified article/video detail. TRS DocType 7 hydrates its first appendix video. */
.detail-trs-video-slot {
  width: 100%;
  margin: 0 0 clamp(18px, 3vw, 32px);
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 6px 20px rgba(22, 64, 96, .16);
}
.detail-trs-video-slot[hidden] { display: none !important; }
.detail-trs-video-slot video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  background: #000;
  object-fit: contain;
}
.detail-article-copy {
  color: var(--text-secondary);
  font-size: var(--fs-normal);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.detail-article-copy:empty { display: none; }
@media screen and (max-width: 700px) {
  .detail-trs-video-slot { border-radius: 8px; }
}
