/* =========================================================================
 * team.css — 管理团队栏目（category_team.html）
 *
 * 设计目标：还原原站 secowarwick.cn catid=28 的双列分组版式
 *   - 双列：左「副总裁」/ 右「总经理」，列 = 职级组（数据驱动，可扩展第三列）
 *   - 成员：照片 float:left（123×150 竖版）+ 红色粗体姓名 + 职务 + 查看个人简历
 *   - 视觉铁律：成员块**无边框 / 无阴影 / 无 hover 位移**，
 *               严禁套用 awards.css 的 .award-card 白卡视觉语言
 *   - modal：480×480（桌面端与原站像素一致），移动端 92vw 自适应
 *   - 响应式：≤992px 双列→单列；≤768px 照片取消浮动、块级堆叠
 *
 * 页头结构（20260810d 起）：
 *   .team-banner（全宽图 banner，**仅内嵌标题**，无蒙版）
 *   → .team-titlebar（面包屑，白底，位于 banner 之下）
 *   → .team-subbar（副标题，白底，位于面包屑之下、主体之上）
 *   20260810d 变更：副标题 .team-banner__sub 由 banner 内部下移到面包屑之下的白底区，
 *   故其颜色由 #fff 改为 var(--text-2,#666) 并去掉 opacity（白底白字不可见）；
 *   类名与字号/响应式规则保持不变，避免无谓的选择器改名波及既有断言。
 *   banner 底图由控制器 $teamBanner 决定：后台 xn_category.banner 非空即覆盖，
 *   为空回落 /static/cms/images/company-1.jpg（企业团队作业场景；原先用 grupa_12.png
 *   是错误的——它实为 about.css 中 mission/vision 文字块的装饰斜切块，非团队合照）。
 *   .team-heading__* 为 20260810a 的旧纯文字标题区样式，模板已不再引用（保留不删，零风险）。
 *
 * 复用 inner.css 设计令牌（--red / --red-deep / --text / --container / --section-pad）。
 * cache-buster：引用时须带 ?v=20260810d，改样式请递增尾字母（a→b→c→d）。
 * ========================================================================= */

/* ---------- 面包屑（白底，位于全宽 banner 之下） ---------- */
/* 标题已内嵌 .team-banner，本块现仅承载面包屑，且 DOM 顺序在 banner 之后，
   故上下各留 16px 内边距，避免与 banner 底边、下方 team-body 贴边；
   .team-breadcrumb 内部 container 居中对齐保持原有设定不变。 */
.team-titlebar {
  background: #fff;
  padding: 16px 0;
}
.team-breadcrumb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2, #666);
  padding: 0 15px 18px;
}
.team-breadcrumb a {
  color: #333;
  text-decoration: none;
  transition: color var(--t, .4s ease-in-out);
}
.team-breadcrumb a:hover {
  color: var(--red, #dc291e);
}
.team-breadcrumb .sep {
  color: #999;
  margin: 0 8px;
}
.team-breadcrumb .cur {
  color: #555;
}

/* ---------- 全宽 banner（图片底 + 内嵌标题，无蒙版） ----------
   高度 282px 对齐原站 banner；背景图走行内 style 注入（后台可换图），
   此处只定兜底底色与 cover 定位，避免图片未加载时出现白洞。
   标题（白字 + 红斜杠）直接渲染于背景图上，无暗色蒙版；
   由运营在后台选取对比度足够的底图（如 company-1.jpg 暗场景）保证白字可读。 */
.team-banner {
  position: relative;
  width: 100%;
  min-height: 282px;
  display: flex;
  align-items: center;
  background: #23272e center / cover no-repeat;
  overflow: hidden;
}
/* 注：原 banner 暗色蒙版（rgba(0,0,0,.38)）已随 20260810c 改版移除。
   白字标题直接渲染于背景图之上，由运营选对比度足够的底图保证可读。 */
/* 内容相对定位，压在背景图之上（z-index:1 确保标题区浮于兜底底色之上）。
   width:100% 不可省——本元素同时是 .container（max-width:1080px; margin:0 auto）
   且是 flex 子项，缺省 flex-basis:auto 会让它收缩到文字宽度并被 auto 外边距居中，
   导致标题左边界与页面其余 1080px 栅格对不齐。 */
.team-banner__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
/* 用 #et-main-area 提权，压过 inner.css 的 #et-main-area h1（30px/黑）规则 */
#et-main-area .team-banner__title {
  margin: 0;
  color: #fff;
  font-size: 36pt;
  font-weight: 700;
  line-height: 1.2;
}
/* 红色斜杠：复用与 .team-heading__slash / .team-group__slash 同一红（--red），不引入第二种红 */
#et-main-area .team-banner__slash {
  color: var(--red, #dc291e);
  margin-right: 6px;
}

/* ---------- 副标题区（白底，位于面包屑之下、主体之上） ----------
   20260810d：副标题从 banner 内部下移至此。容器与 .team-titlebar 同为白底，
   视觉上与面包屑连成一段页头；下留 22px 与 .team-body 的 26px 顶部内边距衔接，
   避免与面包屑、主体两头贴死。内部 .container 补 15px 横向内边距，
   使副标题左边界与面包屑（.team-breadcrumb padding:0 15px 18px）、
   主体（.team-columns padding:0 15px）严格对齐在同一条 1080 栅格线上。 */
.team-subbar {
  background: #fff;
  padding: 0 0 22px;
}
.team-subbar .container {
  padding: 0 15px;
}
/* 副标题：类名沿用 .team-banner__sub（字号与响应式规则复用），
   但因载体已由深色底图换成白底，颜色必须由 #fff 改为深灰；
   原 opacity:.92 是给 banner 白字压亮度用的，白底场景下无意义，一并去掉。
   取 var(--text-2, #666) 与 .team-heading__sub 保持同一副标题色阶。 */
#et-main-area .team-banner__sub {
  margin: .4em 0 0;
  color: var(--text-2, #666);
  font-size: 16pt;
  font-weight: 400;
  line-height: 1.4;
}

/* ---------- 旧纯文字标题区（20260810a 遗留，模板已不再引用，保留兜底） ---------- */
.team-heading {
  padding: 0 15px;
}
#et-main-area .team-heading__title {
  font-size: 30px;
  font-weight: 600;
  color: #222;
  line-height: 1.25;
  margin: 0 0 10px;
}
#et-main-area .team-heading__slash {
  color: var(--red, #dc291e);
  margin-right: 6px;
}
#et-main-area .team-heading__sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-2, #666);
  line-height: 1.4;
  margin: 0;
}

/* ---------- 双列分组主体 ---------- */
.team-body {
  background: #fff;
  padding: 26px 0 var(--section-pad, 54px);
}

.team-columns {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 0 15px;
}
/* flex:1 1 0 + min-width:0 —— 等宽两列，长英文名/长职务不撑破列宽 */
.team-column {
  flex: 1 1 0;
  min-width: 0;
}

/* 组标题：22px 深黑 + 尾随红色斜杠（对齐原站 <h3>副总裁<span>/</span>） */
#et-main-area .team-group__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  text-align: left;
}
#et-main-area .team-group__slash {
  color: var(--red, #dc291e);
  margin-left: 4px;
}

/* ---------- 成员块（无边框 / 无阴影 / 无 hover 位移） ---------- */
.team-member {
  overflow: auto;          /* 清除照片浮动，等价原站 style="overflow:auto" */
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* 照片：竖版 123×150 左浮动，直角无圆角，不参与任何 hover 变换 */
.team-member__photo {
  float: left;
  width: 123px;
  height: 150px;
  margin: 0 18px 8px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  display: block;
}
/* 无照片占位：保持同尺寸浅灰块，避免版式塌陷 */
.team-member__photo--empty {
  background: var(--bg-gray, #f5f5f5);
}

/* 姓名：21px（原站 16pt）/ 700 / 主红；需 #et-main-area 提权压过 inner.css */
#et-main-area .team-member__name {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--red, #dc291e);
}

/* 职务：white-space:pre-line —— 支持后台主动换行（原站 9 条均无 <br>，为自然折行） */
.team-member__position,
.team-member .employee-position {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text, #333);
  white-space: pre-line;
}

.team-member__more {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.team-member__more a {
  color: var(--red, #dc291e);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t, .4s ease-in-out);
}
.team-member__more a:hover,
.team-member__more a:focus {
  color: var(--red-deep, #b71c12);
  text-decoration: none;
}

/* ---------- 空状态 ---------- */
.team-empty {
  margin: 0;
  padding: 40px 15px;
  font-size: 15px;
  color: var(--text-meta, #999);
  text-align: center;
}

/* ---------- bio 数据源（随页输出，永不可见） ---------- */
.team-bio-source,
[hidden] {
  display: none !important;
}

/* ---------- 弹窗（共享单例遮罩 + 480×480 白底面板） ---------- */
.team-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .5);
}
.team-modal-overlay:not([hidden]) {
  display: block;
}

.team-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  max-width: 92vw;
  max-height: 86vh;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

#et-main-area .team-modal__title {
  margin: 0 34px 8px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
  flex: 0 0 auto;
}

.team-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--t, .4s ease-in-out);
}
.team-modal__close:hover,
.team-modal__close:focus {
  color: var(--red, #dc291e);
}

.team-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text, #333);
  text-align: left;
}
/* 归一后的 bio 富文本：仅含 p/br/strong/em/a/ul/ol/li，无属性 */
.team-modal__body p {
  margin: 0 0 12px;
  line-height: 1.7;
}
.team-modal__body p:last-child {
  margin-bottom: 0;
}
.team-modal__body ul,
.team-modal__body ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.team-modal__body li {
  margin: 0 0 6px;
}
.team-modal__body a {
  color: var(--red-link, #e2001a);
  text-decoration: none;
}
.team-modal__body a:hover {
  text-decoration: underline;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  /* 双列 → 单列堆叠，组间留白加大以区隔 */
  .team-columns {
    display: block;
  }
  .team-column + .team-column {
    margin-top: 42px;
  }
}

@media (max-width: 768px) {
  .team-titlebar {
    padding: 16px 0;
  }
  /* banner：压低高度并缩小标题字号（20260810d 起 banner 内已无副标题） */
  .team-banner {
    min-height: 180px;
  }
  #et-main-area .team-banner__title {
    font-size: 24pt;
  }
  /* 副标题已移出 banner，但仍复用该类名，窄屏字号下调规则原样保留 */
  #et-main-area .team-banner__sub {
    font-size: 13pt;
  }
  .team-subbar {
    padding: 0 0 18px;
  }
  #et-main-area .team-heading__title {
    font-size: 24px;
  }
  #et-main-area .team-heading__sub {
    font-size: 17px;
  }
  #et-main-area .team-group__title {
    font-size: 20px;
  }
  /* 照片取消浮动，块级堆叠 */
  .team-member__photo {
    float: none;
    margin: 0 0 12px;
  }
  #et-main-area .team-member__name {
    font-size: 19px;
  }
  .team-member__position,
  .team-member .employee-position,
  .team-member__more {
    font-size: 14px;
  }
  /* 移动端弹窗：宽 92vw、高自适应且上限 86vh，正文区独立滚动 */
  .team-modal {
    width: 92vw;
    height: auto;
    max-height: 86vh;
  }
  #et-main-area .team-modal__title {
    font-size: 18px;
  }
  .team-modal__body {
    font-size: 14px;
  }
}
