/* =========================================================================
 * committee.css — 执行委员会栏目（category_committee.html）
 *
 * 设计目标：还原原站 secowarwick.cn catid=27 的成员列表版式
 *   - 每位成员一张卡：display:flex; align-items:flex-start —— 左竖版照片 + 右文字列
 *   - 照片：约 250px 宽竖版，等比高度，无圆角（与原站 .employee-photo 一致）
 *   - 姓名：20px / 600 / 深黑（原站 .employee-name）
 *   - 职位：14~15px 灰色（原站 .employee-position，仿宋族改为全站字体保持统一）
 *   - 简介：editor 富文本，line-height 1.6，保留 <p> 与内联 span
 *   - 响应式：≤ 768px 改为纵向堆叠（照片上、文字下）
 *
 * 复用 inner.css 设计令牌（--red / --text / --container / --section-pad 等）。
 * cache-buster：引用时须带 ?v=20260806a，改样式请递增尾字母（a→b→c）。
 * ========================================================================= */

/* ---------- 面包屑 + 标题区（白底，位于全站头部下方） ---------- */
.committee-titlebar {
  background: #fff;
  padding: 28px 0 6px;
}
.committee-breadcrumb {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2, #666);
  padding: 0 15px 18px;
}
.committee-breadcrumb a {
  color: #333;
  text-decoration: none;
  transition: color var(--t, .4s ease-in-out);
}
.committee-breadcrumb a:hover {
  color: var(--red, #dc291e);
}
.committee-breadcrumb .sep {
  color: #999;
  margin: 0 8px;
}
.committee-breadcrumb .cur {
  color: #555;
}

.committee-heading {
  padding: 0 15px;
}
/* 用 #et-main-area 提权，压过 inner.css 的 #et-main-area h1（30px/黑）规则 */
#et-main-area .committee-heading__title {
  font-size: 30px;
  font-weight: 600;
  color: #222;
  line-height: 1.25;
  margin: 0 0 10px;
}
#et-main-area .committee-heading__slash {
  color: var(--red, #dc291e);
  margin-right: 6px;
}
#et-main-area .committee-heading__sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-2, #666);
  line-height: 1.4;
  margin: 0;
}

/* ---------- 栏目介绍（后台 xn_category.introduce 可维护，为空时不渲染） ---------- */
.committee-intro {
  background: #fff;
  padding: 18px 0 0;
}
.committee-intro__text {
  margin: 0;
  padding: 0 15px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text, #333);
}

/* ---------- 成员卡列表 ---------- */
.committee-body {
  background: #fff;
  padding: 30px 0 var(--section-pad, 54px);
}

.employee {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  padding: 32px 15px;
  border-bottom: 1px solid var(--border, #eee);
}
.employee:last-child {
  border-bottom: 0;
}

/* 左：竖版照片列（定宽 250px，不裁剪不圆角，等比缩放） */
.employee-photo {
  flex: 0 0 250px;
  width: 250px;
  display: block;
}
.employee-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
/* 无照片占位：保持 4:5 竖版比例，避免版式塌陷 */
.employee-photo__empty {
  display: block;
  width: 100%;
  padding-top: 125%;
  background: var(--bg-gray, #f5f5f5);
}

/* 右：文字列 */
.employee-body {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.employee-name {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--red, #dc291e);
}
.employee-position {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2, #666);
}
.employee-about {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text, #333);
}
/* editor 富文本内部元素归一：去掉编辑器带来的异常外边距 */
.employee-about p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.employee-about p:last-child {
  margin-bottom: 0;
}
.employee-about img {
  max-width: 100%;
  height: auto;
}
.employee-about a {
  color: var(--red-link, #e2001a);
  text-decoration: none;
}
.employee-about a:hover {
  text-decoration: underline;
}

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

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .employee {
    gap: 26px;
  }
  .employee-photo {
    flex: 0 0 200px;
    width: 200px;
  }
}

@media (max-width: 768px) {
  .committee-titlebar {
    padding: 20px 0 4px;
  }
  #et-main-area .committee-heading__title {
    font-size: 24px;
  }
  #et-main-area .committee-heading__sub {
    font-size: 17px;
  }
  /* 移动端：照片上、文字下堆叠 */
  .employee {
    display: block;
    padding: 24px 15px;
  }
  .employee-photo {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 18px;
  }
  .employee-body {
    text-align: left;
  }
  .employee-name {
    font-size: 18px;
  }
  .employee-position,
  .employee-about {
    font-size: 14px;
  }
}
