@charset "UTF-8";
/* ============================================================================
   components.css — 通用组件：按钮 / 卡片 / 标签 / 表单 / 弹窗 / 列表 / 反馈
   ========================================================================== */

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  padding: 0 20px;
  height: 40px;
  transition: var(--ease);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--deep-hover);
}

.btn-outline {
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--deep);
}

.btn-outline:hover {
  background: var(--bg);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  background: var(--red-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  padding: 0 6px;
}

.btn-ghost:hover {
  text-decoration: underline;
}

.btn-sm {
  height: 32px;
  padding: 0 14px;
  font-size: var(--fs-sm);
}

.btn-lg {
  height: 48px;
  padding: 0 28px;
  font-size: var(--fs-lg);
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn.disabled {
  background: #CBD5E0;
  color: #fff;
  cursor: not-allowed;
  border-color: #CBD5E0;
}

.btn[disabled]:hover {
  background: #CBD5E0;
}

/* 文字按钮 / 链接式按钮（用于替代 <a href="javascript:void(0)">） */
.link-muted,
.link-deep,
.link-red,
.link-white {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--fs-sm);
}

.link-muted { color: var(--muted); }
.link-deep { color: var(--deep); }
.link-red { color: var(--red); }
.link-white { color: #fff; }

.link-muted:hover,
.link-deep:hover,
.link-red:hover,
.link-white:hover {
  text-decoration: underline;
}

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  position: relative; /* 承载 ::before 流光细线，见 effects.css */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--ease-slow);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--sp-5);
}

.card-img {
  height: 180px;
  background: var(--ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--fs-sm);
  position: relative;
  overflow: hidden;
}

.card-img .ph {
  text-align: center;
  line-height: 1.5;
}

/* 图片铺满型卡片头图 */
.card-img--media {
  padding: 0;
}

.card-img--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative; /* 确保图片盖住底下的占位层 */
  z-index: 1;
}

/* 占位层绝对定位铺满底层：图片正常时被完全覆盖，缺图（img-missing 隐藏）时才露出。
   不可改为 flex 子项——否则与 img 各占约 50% 宽，缩略图破版。 */
.card-img--media .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  z-index: 0;
}

/* 比例约束工具 */
.ratio-400 {
  aspect-ratio: 4 / 3;
}

.ratio-banner {
  aspect-ratio: 16 / 5;
}

/* 应用场景卡片（横向图文） */
.scene-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  align-items: stretch;
}

.scene-card .scene-media {
  width: 46%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--ph-bg);
}

.scene-card .scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
}

/* 卡内子项左对齐（对齐设计稿 align-self:flex-start）：
   纵向 flex 下子项默认被拉伸——标签背景会铺满整行；
   按钮若挂 margin-left:auto 会被推到右侧。均与原型不符，故在组件层统一收口。 */
.scene-card .card-body > .tag,
.scene-card .card-body > .btn {
  align-self: flex-start;
}

/* ==========================================================================
   标签
   ========================================================================== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-round);
  font-size: var(--fs-xs);
  line-height: 1.8;
}

.tag-blue {
  background: #E6F0FA;
  color: var(--deep);
}

.tag-cyan {
  background: #E0F7F4;
  color: var(--cyan-dark);
}

.tag-red {
  background: #FBE8E8;
  color: var(--red);
}

.tag-gray {
  background: var(--line);
  color: var(--sub);
}

/* ==========================================================================
   图片占位（设计稿中未提供的图片位，缺图时保持版式稳定）
   ========================================================================== */
.ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ph-grad-a), var(--ph-grad-b));
  border: 0;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--ph-text);
  font-size: var(--fs-sm);
  text-align: center;
  padding: 12px;
}

.ph svg {
  flex-shrink: 0;
}

/* ==========================================================================
   头像
   ========================================================================== */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #DCEBF7, #C2DDF3);
  box-shadow: 0 0 0 3px #fff, 0 5px 16px rgba(10, 74, 140, .2);
}

/* 兜底层：后台未上传头像、或图片加载失败时显示姓名首字。
   图片可用时 img 盖在其上；img 被 JS 移除后自然露出本层 */
.avatar__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  color: #4A7CA8;
  user-select: none;
}

.avatar--sm .avatar__fallback {
  font-size: 30px;
}

.avatar--md .avatar__fallback {
  font-size: 34px;
}

.avatar--sm {
  width: 80px;
  height: 80px;
}

.avatar--md {
  width: 88px;
  height: 88px;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* 2026-09-23：头像改为完整显示（原来 cover 会裁掉四周，
     客户要求「前端裁切时须确保头像完整显示，不得仅显示局部」）。
     非正方形头像会在圆形框内居中留白，四周露出 .avatar 的浅色底 */
  object-fit: contain;
}

/* 有头像图片时隐藏姓名首字（否则 contain 留白处会透出首字）。
   由 forms.js 在注入头像时加 .avatar--img 类，兼容不支持 :has() 的旧浏览器 */
.avatar.avatar--img {
  background: #EEF4FA;
}
.avatar.avatar--img .avatar__fallback {
  display: none;
}

.avatar svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   数据统计
   ========================================================================== */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: var(--fs-6xl);
  font-weight: 800;
  color: var(--deep);
}

.stat .num .unit {
  font-size: var(--fs-xl);
}

.stat .label {
  color: var(--muted);
  margin-top: var(--sp-1);
}

/* ==========================================================================
   时间轴
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: var(--sp-5);
  margin: var(--sp-4) 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.tl-item {
  position: relative;
  padding: 0 0 var(--sp-6) 26px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--deep);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--deep);
}

.tl-item .year {
  font-weight: 700;
  color: var(--deep);
  font-size: var(--fs-lg);
}

.tl-item p {
  color: var(--sub);
  margin-top: var(--sp-1);
}

/* ==========================================================================
   里程碑卡片
   ========================================================================== */
.milestone {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--ease-slow);
  position: relative;
  overflow: hidden;
}

.milestone:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--light);
}

.milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--deep);
}

.milestone .m-year {
  font-size: var(--fs-5xl);
  font-weight: 800;
  color: var(--deep);
  letter-spacing: 1px;
  margin-bottom: 6px;
  line-height: 1;
}

.milestone h4 {
  font-size: var(--fs-md);
  color: var(--text);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}

.milestone ul li {
  font-size: var(--fs-sm);
  color: var(--sub);
  line-height: 1.9;
  padding-left: var(--sp-3);
  position: relative;
}

.milestone ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--light);
}

/* ==========================================================================
   组织架构树
   --------------------------------------------------------------------------
   后台可为每个节点配置「下级方位」（下方 / 右方 / 左方）与「下级排列方式」（横排 / 竖排），
   类名由配置直接生成：.org-item.pos-{bottom|right|left}.arrange-{h|v}
   结构：.org-item > .org-node-box > .org-node，下级放在 .org-children 里递归嵌套
   ========================================================================== */
.org-tree {
  /* 2026-10-15：连线加粗（2 → 3px）并改用更深的连线专用色 --org-line-c，
     与极浅的节点描边（--border #E2E8F0）区分开，架构图的层级关系一眼可辨 */
  --org-line: 3px;
  --org-line-c: #9BA9C0;
  /* 2026-09-23：间距收紧（20 → 16px）、节点内边距收紧 —— 让常见的十几人架构在
     1440 宽下就能 1:1 显示，不再被等比缩小（字变小） */
  --org-gap: 16px;
  text-align: center;
  /* 内层 .org-children 用 max-content 撑出真实宽度，org-fit.js 据此等比缩放贴合可用宽度。
     2026-09-23 按客户要求：**架构图始终保持横向平级 + 连线**，且**永不出现横向滚动条**——
     因此缩放不设下限（放不下就继续缩），这里再用 overflow: hidden 兜底，
     即使亚像素舍入或脚本未执行到位，也不会出现滚动条（内容也不会被推出面板）。
     说明：窄屏 ≤992px 由 responsive.css 改成竖排，同样不会横滚。 */
  overflow-x: hidden;
  overflow-y: hidden;
}

/* 内层树：宽度按内容取最大值，居中（放不下时自动贴左，由 org-fit.js 等比缩放）；
   缩放基准取左上角：内容宽度超出容器时，缩放后左边缘仍对齐内容区左边缘，不会右侧溢出 */
.org-tree > .org-children {
  width: max-content;
  margin: 0 auto;
  transform-origin: top left;
}

.org-tree > .org-item {
  margin: 0 auto;
}

.org-node {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--deep);
  color: var(--deep);
  border-radius: 8px;
  padding: 8px 13px;
  font-weight: 600;
  margin: 3px;
  /* 2026-10-15：取消此前的节点限宽折行（max-width:140px + overflow-wrap）——
     客户要求名称/说明不换行、一律单行；节点变宽导致的横向溢出
     由 org-fit.js 的等比缩放兜底，不会出现横向滚动条 */
  white-space: nowrap;
  line-height: 1.5;
}

.org-node.dep {
  border-color: var(--light);
  color: var(--sub);
  font-weight: 500;
}

.org-node small,
.org-node .org-node-intro {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: var(--fs-xs);
}

/* 机构简介：架构图名称下方的灰色说明文字 */
.org-node-intro {
  margin-top: 2px;
  line-height: 1.5;
  color: #8b96a5;
}

/* 节点盒：连线的锚点 */
.org-node-box {
  position: relative;
}

.org-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 同上：节点盒宽度取内容最大值，保证父级能算出真实所需宽度 */
  width: max-content;
}

.org-children {
  display: flex;
  position: relative;
  /* 与根节点同理：让「内容真实宽度」沿层级逐级向上传递，
     否则父级 max-content 会低估宽度，子节点溢出到面板之外被 clip 掉 */
  width: max-content;
}

/* ======================= 方位：下方（默认） ======================= */
.org-item.pos-bottom {
  flex-direction: column;
}

/* 下方 + 横排：下级在下方并排一行（经典自上而下架构树） */
.org-item.pos-bottom.arrange-h > .org-children {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--org-gap);
}

/* 本节点向下引出的主干。
   2026-10-15 改为「延长式」：带旁支（.has-side）的节点盒被较高的旁支
   垂直居中后，与上下竖线之间各缺一段 —— 之前用 .org-row 的伪元素拼一段
   补线，两个元素的线段在缩放下各自像素舍入，拼接处会出现横向错位断层。
   现在由 org-fit.js 把缺口量写入本元素的 --ext-dn（向下延长），
   下方子树容器则写 --ext-up（向上延长），每段竖线都是**单根完整线**，
   天然连续；变量缺省 0px，其他节点完全不受影响。 */
.org-item.pos-bottom.arrange-h > .org-children::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(-1 * var(--ext-up, 0px));
  width: 0;
  height: calc(var(--org-gap) + var(--ext-dn, 0px) + var(--ext-up, 0px));
  border-left: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-bottom.arrange-h > .org-children > .org-item {
  position: relative;
  padding: var(--org-gap) 6px 0;
}

/* 横向连线：左右两段拼成贯穿横线，并向下引出到每个子节点 */
.org-item.pos-bottom.arrange-h > .org-children > .org-item::before,
.org-item.pos-bottom.arrange-h > .org-children > .org-item::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: var(--org-gap);
  border-top: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-bottom.arrange-h > .org-children > .org-item::before {
  right: 50%;
}

.org-item.pos-bottom.arrange-h > .org-children > .org-item::after {
  left: 50%;
  border-left: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-bottom.arrange-h > .org-children > .org-item:first-child::before,
.org-item.pos-bottom.arrange-h > .org-children > .org-item:last-child::after {
  border: 0 none;
}

.org-item.pos-bottom.arrange-h > .org-children > .org-item:last-child::before {
  border-right: var(--org-line) solid var(--org-line-c);
}

/* 只有一个下级：主干直连，不再画横线 */
.org-item.pos-bottom.arrange-h > .org-children > .org-item:only-child {
  padding-top: 0;
}

.org-item.pos-bottom.arrange-h > .org-children > .org-item:only-child::before,
.org-item.pos-bottom.arrange-h > .org-children > .org-item:only-child::after {
  border: 0 none;
}

/* ==========================================================================
   下级竖排兜底（.is-stacked）—— 2026-09-23 起**已停用**，保留仅作备查
   --------------------------------------------------------------------------
   原本由 org-fit.js 按「内容需要多大 vs 容器实际多宽」给 .org-tree 挂上 is-stacked
   触发竖排；客户要求「始终保持横向平级 + 连线，且永不出现横向滚动条」后，
   改为**无限等比缩小**（见 org-fit.js 的 fit()），脚本不再添加这个类，
   因此以下规则目前不会命中。窄屏竖排由 responsive.css 的 ≤992px 断点负责。
   ========================================================================== */
.org-tree.is-stacked > .org-children,
.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children {
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children::before {
  content: none;
}

.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item,
.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item:only-child {
  padding: var(--org-gap) 0 0;
}

.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item::before,
.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item:first-child::before,
.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item:only-child::before {
  left: 50%;
  right: auto;
  width: 0;
  height: var(--org-gap);
  border-top: 0 none;
  border-right: 0 none;
  border-left: var(--org-line) solid var(--org-line-c);
}

.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item::after,
.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item:last-child::after,
.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item:only-child::after {
  border: 0 none;
}

.org-tree.is-stacked .org-item.pos-bottom.arrange-h > .org-children > .org-item:last-child::before {
  border-right: 0 none;
}

/* 下方 + 竖排：下级在下方自上而下依次排列（下级较多时可避免横向过宽） */
.org-item.pos-bottom.arrange-v > .org-children {
  flex-direction: column;
  align-items: center;
}

.org-item.pos-bottom.arrange-v > .org-children > .org-item {
  position: relative;
  padding-top: var(--org-gap);
}

/* 每个子节点上方一段竖线，首尾相接形成整条主干 */
.org-item.pos-bottom.arrange-v > .org-children > .org-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: var(--org-gap);
  border-left: var(--org-line) solid var(--org-line-c);
}

/* ==================== 方位：右方 / 左方（旁支） ==================== */
.org-item.pos-right {
  flex-direction: row;
}

.org-item.pos-left {
  flex-direction: row-reverse;
}

/* 本节点 → 下级主干的横向引线 */
.org-item.pos-right > .org-children::before,
.org-item.pos-left > .org-children::before {
  content: '';
  position: absolute;
  top: 50%;
  width: var(--org-gap);
  border-top: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-right > .org-children::before {
  left: calc(-1 * var(--org-gap));
}

.org-item.pos-left > .org-children::before {
  right: calc(-1 * var(--org-gap));
}

/* 右方 / 左方 + 竖排：下级纵向挂在侧面，适合委员会、专项小组等旁支 */
.org-item.pos-right.arrange-v > .org-children,
.org-item.pos-left.arrange-v > .org-children {
  flex-direction: column;
  justify-content: center;
}

.org-item.pos-right.arrange-v > .org-children {
  align-items: flex-start;
  margin-left: var(--org-gap);
}

.org-item.pos-left.arrange-v > .org-children {
  align-items: flex-end;
  margin-right: var(--org-gap);
}

.org-item.pos-right.arrange-v > .org-children > .org-item {
  position: relative;
  padding-left: var(--org-gap);
}

.org-item.pos-left.arrange-v > .org-children > .org-item {
  position: relative;
  padding-right: var(--org-gap);
}

/* 主干 → 子节点的横向短线 */
.org-item.pos-right.arrange-v > .org-children > .org-item::before,
.org-item.pos-left.arrange-v > .org-children > .org-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: var(--org-gap);
  border-top: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-right.arrange-v > .org-children > .org-item::before {
  left: 0;
}

.org-item.pos-left.arrange-v > .org-children > .org-item::before {
  right: 0;
}

/* 主干竖向分段：首个从自身中心往下，末个到自身中心，中间整段贯通 */
.org-item.pos-right.arrange-v > .org-children > .org-item::after,
.org-item.pos-left.arrange-v > .org-children > .org-item::after {
  content: '';
  position: absolute;
  top: 50%;
  bottom: 0;
  width: 0;
  border-left: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-right.arrange-v > .org-children > .org-item::after {
  left: 0;
}

.org-item.pos-left.arrange-v > .org-children > .org-item::after {
  right: 0;
}

.org-item.pos-right.arrange-v > .org-children > .org-item:not(:first-child)::after,
.org-item.pos-left.arrange-v > .org-children > .org-item:not(:first-child)::after {
  top: 0;
}

.org-item.pos-right.arrange-v > .org-children > .org-item:last-child::after,
.org-item.pos-left.arrange-v > .org-children > .org-item:last-child::after {
  bottom: 50%;
}

.org-item.pos-right.arrange-v > .org-children > .org-item:only-child::after,
.org-item.pos-left.arrange-v > .org-children > .org-item:only-child::after {
  display: none;
}

/* 右方 / 左方 + 横排：下级在侧面依次横向排列 */
.org-item.pos-right.arrange-h > .org-children,
.org-item.pos-left.arrange-h > .org-children {
  align-items: center;
}

/* ==========================================================================
   旁支挂靠（.has-side，2026-10-15 新增，连线样式参考广纳院架构图）
   --------------------------------------------------------------------------
   后台给子节点配置「挂靠方向=上级右侧/左侧」（be_org.child_pos=2/3）后，
   这些子节点不再排在上级正下方，而是按方向收集到父节点的
   .org-children.side-right / .side-left，竖排挂在父节点盒两侧
   （结构：.org-item.has-side > .org-row > [side-left] + .org-node-box + [side-right]）。
   连线样式：每个旁支用**一条水平线直接连到节点盒侧边**（各自高度不同，
   只要旁支垂直中心落在节点盒高度范围内就能接上），没有竖向主干。
   ========================================================================== */
.org-item.has-side > .org-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
}

/* 注：竖线缺口只由「延长式」一处负责（--ext-dn/--ext-up，见主干规则说明）。
   2026-10-15 曾试验过「延长 + 行内补线」双保险重叠，但两者是不同元素，
   缩放取整后 x 相差 1px，放大可见小台阶 —— 已撤销行内补线，只留单根
   延长线（数学上必然连续、同轴）；缓存错配由资源版本号规避 */

/* 旁支容器（共用）：竖排、垂直居中对齐节点盒。
   position: relative 是旁支横线的定位基准，不能省 */
.org-item.has-side > .org-row > .org-children.side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 右侧旁支：贴左对齐，横线向左伸向节点盒 */
.org-item.has-side > .org-row > .org-children.side-right {
  align-items: flex-start;
  margin-left: var(--org-gap);
}

/* 左侧旁支：贴右对齐，横线向右伸向节点盒 */
.org-item.has-side > .org-row > .org-children.side-left {
  align-items: flex-end;
  margin-right: var(--org-gap);
}

.org-item.has-side > .org-row > .org-children.side > .org-item {
  position: relative;
}

/* 直达连线：从旁支自身侧边水平延伸，跨越「内边距 + 容器外间距」直抵节点盒边缘 */
.org-item.has-side > .org-row > .org-children.side-right > .org-item {
  padding-left: var(--org-gap);
}

.org-item.has-side > .org-row > .org-children.side-right > .org-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(-1 * var(--org-gap));
  width: calc(2 * var(--org-gap));
  border-top: var(--org-line) solid var(--org-line-c);
}

.org-item.has-side > .org-row > .org-children.side-left > .org-item {
  padding-right: var(--org-gap);
}

.org-item.has-side > .org-row > .org-children.side-left > .org-item::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--org-gap));
  width: calc(2 * var(--org-gap));
  border-top: var(--org-line) solid var(--org-line-c);
}

/* 节点文字方向（2026-10-15）：后台「组织架构 → 编辑节点 → 文字方向」可选
   横排（默认）/ 竖排（.vertical）。竖排时文字从上到下、节点呈竖条，
   横向占位更窄，适合委员会 / 专项小组这类旁支机构（参考广纳院架构图）。
   名称与说明在竖排下自然分成左右两列（块级沿水平方向堆叠）。 */
.org-node.vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 12px 9px;
  letter-spacing: 2px;
  line-height: 1.15;
}

.org-node.vertical .org-node-intro {
  margin-top: 0;
  margin-right: 4px;
  line-height: 1.15;
}

.org-item.pos-right.arrange-h > .org-children {
  flex-direction: row;
  margin-left: var(--org-gap);
}

.org-item.pos-left.arrange-h > .org-children {
  flex-direction: row-reverse;
  margin-right: var(--org-gap);
}

/* 相邻下级之间的横向连线（第一个由主干引线接入） */
.org-item.pos-right.arrange-h > .org-children > .org-item {
  position: relative;
  margin-left: var(--org-gap);
}

.org-item.pos-left.arrange-h > .org-children > .org-item {
  position: relative;
  margin-right: var(--org-gap);
}

.org-item.pos-right.arrange-h > .org-children > .org-item:first-child,
.org-item.pos-left.arrange-h > .org-children > .org-item:first-child {
  margin: 0;
}

.org-item.pos-right.arrange-h > .org-children > .org-item:not(:first-child)::before,
.org-item.pos-left.arrange-h > .org-children > .org-item:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 50%;
  width: var(--org-gap);
  border-top: var(--org-line) solid var(--org-line-c);
}

.org-item.pos-right.arrange-h > .org-children > .org-item:not(:first-child)::before {
  left: calc(-1 * var(--org-gap));
}

.org-item.pos-left.arrange-h > .org-children > .org-item:not(:first-child)::before {
  right: calc(-1 * var(--org-gap));
}

/* ==========================================================================
   嵌套树：父子严格垂直居中对齐（长期约定）
   --------------------------------------------------------------------------
   1) 下级容器按内容宽度收缩（width: max-content）：父节点因此始终居中对准下级整组，
      父子中心线重合；树宽超出容器时可横向滚动，不会把左侧裁掉。
   2) 顶层节点行：多棵子树时顶部对齐并整体居中，保证第 1 层各节点横向对齐。
   3) 节点盒用 flex 居中，避免 inline-block 基线带来的错位。
   ========================================================================== */
.org-children {
  width: max-content;
}

.org-tree > .org-children {
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
}

.org-node-box {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   表格
   ========================================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-base);
}

.table th {
  background: #F0F5FA;
  color: var(--deep);
  font-weight: 600;
}

.table tr:last-child td {
  border-bottom: none;
}

/* 键列（对齐原型 .table td.k：140px / 灰字 / 浅蓝底）。
   页面语义化用 th scope=row 承载行头，其默认命中 .table th 表头样式
   （深蓝加粗、无宽度约束会把键列撑宽），故在此一并覆盖。 */
.table td.k,
.table th.k {
  color: var(--muted);
  width: 140px;
  background: #FAFCFE;
  font-weight: 400;
}

/* 表格行头下的补充说明：层级与隶属关系（组织架构「职责说明」表用） */
.table th.k .table-sub,
.table td.k .table-sub {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

/* 表格自动换行，避免移动端撑破容器 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* ==========================================================================
   表单
   ========================================================================== */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--sub);
  margin-bottom: 6px;
}

/* 非 label 元素承载的字段标题 */
.form-label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--sub);
  margin-bottom: 6px;
}

.form-group label .req,
.form-label .req {
  color: var(--red);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  transition: var(--ease);
}

textarea.form-control {
  height: auto;
  padding: 10px 12px;
  min-height: 100px;
  resize: vertical;
}

.form-control:focus {
  outline: none;
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(10, 74, 140, .12);
}

.form-control.error {
  border-color: var(--red);
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(200, 36, 35, .12);
}

.err-msg {
  color: var(--red);
  font-size: var(--fs-xs);
  margin-top: var(--sp-1);
  min-height: 16px;
}

.form-hint {
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-top: var(--sp-1);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--sub);
  flex-wrap: wrap;
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
}

.check-row input[type="checkbox"]:checked {
  background: var(--deep);
  border-color: var(--deep);
}

.check-row input[type="checkbox"]:checked::before {
  content: "✓";
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* 表单行内布局（验证码 + 获取按钮） */
.form-inline {
  display: flex;
  gap: var(--sp-2);
}

.form-inline .form-control {
  flex: 1;
  min-width: 0;
}

/* 只读输入 */
.form-control[readonly] {
  background: var(--bg);
}

/* ==========================================================================
   搜索条 / 筛选条
   ========================================================================== */
.search-bar {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.search-bar .form-control {
  flex: 1;
  min-width: 0;
}

/* ---------------------------------------------------------------------------
   右侧栏：热门资讯（无序列表）
   ---------------------------------------------------------------------------
   新闻列表页右侧的「热门资讯」：圆点 + 标题，条目之间用一条很淡的分隔线分开，
   首末条不额外留白，整体看着是一条干净的榜单而不是一堆散链接。
   --------------------------------------------------------------------------- */
.hot-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--deep);
}

/* 标题左侧的品牌色小竖条 */
.hot-title::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--deep);
}

.hot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hot-item {
  position: relative;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.hot-item:first-child { padding-top: 0; }
.hot-item:last-child { padding-bottom: 0; border-bottom: 0; }

/* 圆点：替代浏览器默认的列表符号，保持「无序列表」的观感 */
.hot-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--light);
}

.hot-item:first-child::before { top: 8px; }

.hot-link {
  display: -webkit-box;
  padding-left: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--sub);
  font-size: var(--fs-sm);
  line-height: 1.7;
  transition: color .2s ease;
}

.hot-link:hover { color: var(--deep); }

.filter-bar {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.filter-bar .chip {
  padding: 6px 16px;
  border-radius: var(--radius-round);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--sub);
  font-size: var(--fs-sm);
}

.filter-bar .chip.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.filter-bar .chip:hover {
  border-color: var(--deep);
  color: var(--deep);
}

/* ==========================================================================
   弹窗
   ========================================================================== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}

.modal-mask.show {
  display: flex;
  animation: fadeIn var(--ease);
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn var(--ease);
}

.modal.w560 {
  width: 560px;
}

.modal.w400 {
  width: 400px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: var(--fs-xl);
  color: var(--deep);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--line);
  border-radius: 50%;
  font-size: var(--fs-lg);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: var(--sp-6);
}

.modal-foot {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
}

/* ==========================================================================
   醒目提示弹窗（notify）：注册 / 登录 / 留言 / 预约 / 投递 的结果反馈
   结构由 js/common.js 动态创建，页面 HTML 无需改动
   ========================================================================== */
.notify-modal {
  text-align: center;
  animation: popIn var(--ease-slow);
}

.notify-body {
  padding: var(--sp-6);
}

.notify-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 74, 140, .18);
}

.notify-ico--success {
  background: linear-gradient(135deg, #14B8A6, #0A8F83);
}

.notify-ico--error {
  background: linear-gradient(135deg, #E0645A, #C82423);
  box-shadow: 0 8px 20px rgba(200, 36, 35, .18);
}

.notify-ico--warn {
  background: linear-gradient(135deg, #F0A03C, #E08A1E);
  box-shadow: 0 8px 20px rgba(224, 138, 30, .18);
}

.notify-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: var(--sp-2);
}

.notify-msg {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

@media (max-width: 480px) {
  .notify-body {
    padding: var(--sp-5) var(--sp-4);
  }
  .notify-ico {
    width: 56px;
    height: 56px;
    font-size: 26px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   标签页
   ========================================================================== */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
}

.tab {
  padding: 10px 20px;
  font-size: var(--fs-md);
  color: var(--sub);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab.active {
  color: var(--deep);
  border-bottom-color: var(--deep);
  font-weight: 600;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ==========================================================================
   列表项 / 分页
   ========================================================================== */
.list-item {
  position: relative; /* 承载 ::before 流光细线 */
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  margin-bottom: var(--sp-4);
  transition: var(--ease);
}

.list-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.list-item .thumb {
  width: 160px;
  height: 110px;
  background: var(--ph-bg);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--fs-xs);
  overflow: hidden;
}

.list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-item .info {
  flex: 1;
  min-width: 0;
}

.list-item .info h3 {
  font-size: var(--fs-lg);
  color: var(--text);
  margin-bottom: 6px;
}

.list-item .info h3 a:hover,
.list-item .info h3:hover {
  color: var(--deep);
}

.list-item .info p {
  color: var(--sub);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
  line-height: 1.5;
}

.list-item .meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  flex-wrap: wrap;
}

.pagination button,
.pagination a {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.pagination button.active,
.pagination a.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.pagination button:hover:not(.active):not(:disabled),
.pagination a:hover:not(.active) {
  border-color: var(--deep);
  color: var(--deep);
}

.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ==========================================================================
   状态：空态 / 加载 / 骨架屏
   ========================================================================== */
.empty,
.error-box {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty .ico,
.error-box .ico {
  font-size: 48px;
  margin-bottom: var(--sp-3);
}

.empty p,
.error-box p {
  margin-bottom: var(--sp-4);
}

.loading {
  text-align: center;
  padding: var(--sp-10);
  color: var(--muted);
}

.skeleton {
  background: linear-gradient(90deg, var(--line) 25%, var(--border) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Toast 轻提示
   ========================================================================== */
.toast-wrap {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}

.toast {
  background: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  border-left: 4px solid var(--cyan);
  animation: popIn var(--ease-slow);
  transition: .3s;
}

.toast.success {
  border-left-color: var(--cyan);
}

.toast.error {
  border-left-color: var(--red);
}

.toast .t-ico {
  font-size: var(--fs-lg);
}

/* ==========================================================================
   步骤流程
   ========================================================================== */
.steps {
  display: flex;
  gap: 0;
  margin: var(--sp-6) 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.step .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 0 auto 10px;
}

.step h4 {
  color: var(--deep);
  margin-bottom: var(--sp-1);
}

.step p {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: 12px;
  font-size: var(--fs-2xl);
  color: var(--muted);
}

/* ==========================================================================
   文件上传
   ========================================================================== */
.upload-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: var(--ease);
}

.upload-box:hover {
  border-color: var(--deep);
  color: var(--deep);
}

.upload-box .u-ico {
  font-size: 32px;
  margin-bottom: var(--sp-2);
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg);
  padding: var(--sp-3);
  border-radius: var(--radius);
  margin-top: var(--sp-2);
}

.upload-preview .fname {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--sub);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 图片预览框 */
.preview-box {
  height: 300px;
  background: var(--ph-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}

/* ==========================================================================
   新闻行（党建 / 工会 / 文化版块通用）
   ========================================================================== */
.news-row {
  display: flex;
  gap: var(--sp-4);
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: var(--sp-2);
  transition: var(--ease);
  align-items: center;
}

.news-row:hover {
  border-color: var(--light);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.news-row .ndate {
  width: 78px;
  flex-shrink: 0;
  text-align: center;
  color: var(--sub);
  font-size: var(--fs-xs);
  border-right: 1px solid var(--line);
  padding-right: var(--sp-3);
}

.news-row .ndate .d {
  font-size: var(--fs-2xl);
  color: var(--deep);
  font-weight: 800;
  display: block;
  line-height: 1.1;
  margin-bottom: var(--sp-1);
}

.news-row .ndate.red .d {
  color: var(--red);
}

.news-row .nbody {
  flex: 1;
  min-width: 0;
}

.news-row .nbody h4 {
  font-size: var(--fs-md);
  color: var(--text);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.news-row .nbody h4 a:hover {
  color: var(--deep);
}

.news-row .nbody.red h4 a:hover {
  color: var(--red);
}

.news-row .nbody p {
  color: var(--sub);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.6;
}

.news-row .ntag {
  display: inline-block;
  background: #E6F0FA;
  color: var(--deep);
  font-size: var(--fs-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-right: 6px;
}

.news-row .ntag.red {
  background: #FBE8E8;
  color: var(--red);
}

/* ==========================================================================
   制度文件行
   ========================================================================== */
.file-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
  transition: var(--ease);
}

.file-row:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(200, 36, 35, .10);
}

.file-row .fico {
  width: 42px;
  height: 42px;
  background: #FBE8E8;
  color: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  flex-shrink: 0;
}

.file-row .fbody {
  flex: 1;
  min-width: 0;
}

/* 附件格式徽标：PDF 红、Word 蓝、WPS 绿；未上传附件时回退到通用文件图标（emoji，用基础字号） */
.file-row .fico-pdf,
.file-row .fico-word,
.file-row .fico-wps {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.file-row .fico-pdf  { background: #FBE8E8; color: var(--red); }
.file-row .fico-word { background: #E8F0FB; color: #1D63D2; }
.file-row .fico-wps  { background: #E9F1EA; color: #2E7D50; }

.file-row .fbody h5 {
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 2px;
}

.file-row .fbody p {
  color: var(--muted);
  font-size: var(--fs-xs);
  margin: 0;
}

.file-row .fsize {
  color: var(--sub);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.file-row .fbtn {
  color: var(--red);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  transition: var(--ease);
  background: none;
}

.file-row .fbtn:hover {
  background: var(--red);
  color: #fff;
}

/* ==========================================================================
   价值理念卡片
   ========================================================================== */
.value-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  transition: var(--ease-slow);
  overflow: hidden;
}

.value-card:hover {
  border-color: var(--light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-card .vico {
  font-size: var(--fs-6xl);
  margin-bottom: 14px;
  display: block;
  color: var(--deep);
}

.value-card h4 {
  font-size: var(--fs-xl);
  color: var(--deep);
  margin-bottom: 10px;
  font-weight: 700;
}

.value-card p {
  color: var(--sub);
  font-size: var(--fs-base);
  line-height: 1.7;
  margin: 0;
}

.value-card.culture .vico {
  color: var(--cyan);
}

/* ==========================================================================
   相册
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.gallery .ph {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #E6F0FA, #D6E6F3);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  transition: var(--ease);
}

.gallery .ph:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.gallery .ph.red {
  background: linear-gradient(135deg, #FBE8E8, #F6D6D6);
  color: var(--red);
}

.gallery .ph.culture {
  background: linear-gradient(135deg, #E0F2F0, #C8E9E7);
  color: var(--cyan-deep);
}

/* 相册照片：后台传了「配图」就显示照片，并盖住底下的「📷 标题」占位层
   （与 .card-img--ph / .honor-img 同一套做法：图片 z-index 1、占位层 0）。
   图片失效时 data-fallback="hide" 会把 img 隐藏，占位文字自动露出，不会破版。 */
.gallery .gal-cell {
  position: relative;
  overflow: hidden;
}

.gallery .gal-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery .gal-cell img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   媒体报道行
   ========================================================================== */
.mediarow {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--sp-2);
  align-items: center;
  transition: var(--ease);
}

.mediarow:hover {
  border-color: var(--light);
  box-shadow: var(--shadow-sm);
}

.mediarow .mlogo {
  width: 64px;
  height: 38px;
  background: #F0F5FA;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.mediarow .minfo {
  flex: 1;
  min-width: 0;
}

.mediarow .minfo h5 {
  font-size: var(--fs-base);
  color: var(--text);
  margin-bottom: 2px;
  font-weight: 600;
}

.mediarow .minfo p {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
}

.mediarow .mdate {
  font-size: var(--fs-xs);
  color: var(--sub);
  font-weight: 600;
}

/* ==========================================================================
   荣誉墙卡片
   ========================================================================== */
.honor {
  background: linear-gradient(135deg, #FFF0F0, #FFF8F8);
  border: 1px solid #F4C7C7;
  border-radius: var(--radius-lg);
  padding: var(--sp-6) 18px;
  text-align: center;
  transition: var(--ease-slow);
  position: relative;
}

.honor:hover {
  box-shadow: 0 6px 20px rgba(200, 36, 35, .18);
  transform: translateY(-4px);
  border-color: var(--red);
}

.honor .hico {
  font-size: 34px;
  margin-bottom: 10px;
  display: block;
  color: var(--red);
}

.honor h5 {
  font-size: var(--fs-base);
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.honor p {
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-top: 6px;
}

.honor.union {
  background: linear-gradient(135deg, #E6F0FA, #F0F7FC);
  border-color: #B7D2EA;
}

.honor.union:hover {
  border-color: var(--deep);
  box-shadow: 0 6px 20px rgba(10, 74, 140, .20);
}

.honor.union .hico {
  color: var(--deep);
}

.honor.culture {
  background: linear-gradient(135deg, #E0F2F0, #EFFAF8);
  border-color: #A7D8D3;
}

.honor.culture:hover {
  border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(20, 184, 166, .20);
}

.honor.culture .hico {
  color: var(--cyan);
}

/* ==========================================================================
   简介类段落（首页「研究院速览」/ 研究院简介页）2026-09-23
   —— 客户要求：两处文字颜色一致、去掉末段的浅蓝灰，并加首行缩进 2 字符
   ========================================================================== */
.intro-paras p {
  color: var(--sub);
  text-indent: 2em;
  line-height: 1.9;
}

.intro-paras p + p {
  margin-top: 8px;
}

.intro-paras p:last-child {
  margin-bottom: 0;
}
