/* =========================================================================
 * press.css — 媒体联系人栏目（category_press.html / show_press.html）
 *
 * 设计目标：还原原站 secowarwick.cn catid=93 的联系人档案版式
 *   - 整体：display:flex; align-items:flex-start —— 左头像列 + 右档案列
 *   - 头像：250×279 定尺，不裁剪不圆角（与原站一致）
 *   - 姓名：#DC291E / 18px / 600 / uppercase（原站内联样式提取）
 *   - 职位：大写副标题，深灰
 *   - 简介：editor 富文本，保留 <p> 与内联 <span style="color:#000000">
 *   - 联系方式：Phone / Mobile / Email 三行，label 定宽对齐
 *
 * 复用 inner.css 设计令牌（--red / --text / --section-pad 等），保持全站一致。
 * cache-buster：引用时须带 ?v=20260803a，改样式请递增尾字母（a→b→c）。
 * ========================================================================= */

/* ---------- 英雄横幅（与 media / webinar 同一视觉语言） ---------- */
.press-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: #222 url(/static/cms/images/media/media_center.jpg) center / cover no-repeat;
}
.press-hero .container {
  width: 100%;
}
/* 用 #et-main-area 提权，压过 inner.css 的 #et-main-area h1（30px/黑）规则 */
#et-main-area .press-hero__title {
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
#et-main-area .press-hero__slash {
  color: var(--red);
  margin-right: 6px;
}

/* ---------- 面包屑 + 页面大标题（白底，位于 banner 下方） ---------- */
.press-titlebar {
  background: #fff;
  padding: 28px 0 24px;
}
.press-breadcrumb {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  padding: 0 15px 10px;
}
.press-breadcrumb a {
  color: #333;
  text-decoration: none;
}
.press-breadcrumb a:hover {
  color: var(--red);
}
.press-breadcrumb .sep {
  color: #999;
  margin: 0 8px;
}
.press-breadcrumb .cur {
  color: #555;
}
.press-page-title {
  padding: 0 15px;
}
#et-main-area .press-page-title h1 {
  position: relative;
  display: inline-block;
  font-size: 30px;
  font-weight: 600;
  color: #222;
  margin: 0;
  padding-bottom: 14px;
  line-height: 1.2;
}
#et-main-area .press-page-title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--red);
}

/* ---------- 栏目介绍 ---------- */
.press-intro {
  background: #fff;
  padding: 0 0 8px;
}
.press-intro__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2, #666);
  margin: 0;
  padding: 0 15px;
}

/* ---------- 档案卡主体区 ---------- */
.press-body {
  background: #fff;
  padding: 36px 0 var(--section-pad, 54px);
}

/* 左图右文：原站 display:flex; align-items:flex-start */
.press-card {
  display: flex;
  align-items: flex-start;
  padding: 0 15px;
}

/* 左列：头像 + 姓名 + 职位 */
.press-card__side {
  flex: 0 0 250px;
  width: 250px;
  margin-right: 30px;
}
.press-card__avatar-link {
  display: block;
  text-decoration: none;
}
.press-card__avatar {
  display: block;
  width: 250px;
  height: 279px;
  object-fit: cover;   /* 原图非 250×279 时按比例填充，避免拉伸变形 */
  border: 0;
  border-radius: 0;
}
/* 无头像时的占位块，保持版式不塌 */
.press-card__avatar--empty {
  background: #f0f0f0 url(/static/cms/images/placeholder-logo.png) center / 120px auto no-repeat;
}

/* 姓名：红 / 18px / 600 / 大写（原站内联样式） */
#et-main-area .press-card__name {
  color: var(--red, #dc291e);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin: 16px 0 6px;
  line-height: 1.4;
}
.press-card__name a {
  color: inherit;
  text-decoration: none;
}
.press-card__name a:hover {
  text-decoration: underline;
}

/* 职位：大写副标题 */
.press-card__job {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  line-height: 1.6;
  margin: 0;
}

/* 右列：简介 + 联系方式 */
.press-card__main {
  flex: 1 1 auto;
  min-width: 0;   /* 防止长英文/邮箱撑破 flex 容器 */
}

/* 简介富文本：editor 输出，保留段落与内联强调 */
.press-card__bio {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text, #333);
}
.press-card__bio p {
  margin: 0 0 14px;
}
.press-card__bio p:last-child {
  margin-bottom: 0;
}
.press-card__bio a {
  color: var(--red-link, #e2001a);
}
.press-card__bio img {
  max-width: 100%;
  height: auto;
}
/* 多联系人网格模式下简介截断，避免卡片高度失衡 */
.press-card__bio--clamp {
  max-height: 8.6em;
  overflow: hidden;
}

/* 联系方式块 */
.press-contact {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid #e6e6e6;
}
.press-contact__item {
  display: flex;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text, #333);
  margin: 0 0 6px;
}
.press-contact__item:last-child {
  margin-bottom: 0;
}
/* label 定宽 + 冒号，三行左对齐 */
.press-contact__label {
  flex: 0 0 78px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .4px;
}
.press-contact__label::after {
  content: ":";
  margin-left: 2px;
}
/* 前缀小图标：用纯 CSS 方块符号，零额外图片依赖 */
.press-contact__item::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--red, #dc291e);
  transform: translateY(-1px);
}
.press-contact__item--mobile::before {
  background: #888;
}
.press-contact__item--email::before {
  background: #222;
}
.press-contact__value {
  color: var(--text, #333);
  text-decoration: none;
  word-break: break-all;
}
.press-contact__value:hover {
  color: var(--red, #dc291e);
  text-decoration: underline;
}

/* ---------- 多联系人网格 ---------- */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.press-card--grid {
  padding: 0 15px 36px;
  border-bottom: 1px solid #eee;
}
.press-grid > .press-card--grid:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.press-card__more {
  display: inline-block;
  margin-top: 16px;
  padding: 7px 18px;
  font-size: 14px;
  color: #fff;
  background: var(--red, #dc291e);
  border: 1px solid var(--red, #dc291e);
  text-decoration: none;
}
.press-card__more:hover {
  color: var(--red, #dc291e);
  background: #fff;
}

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

/* ---------- 详情页翻页 ---------- */
.press-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
  padding: 18px 15px 0;
  border-top: 1px solid #e6e6e6;
  font-size: 14px;
}
.press-pager a {
  color: var(--text-2, #666);
  text-decoration: none;
}
.press-pager a:hover {
  color: var(--red, #dc291e);
}
.press-pager__back {
  font-weight: 600;
  color: var(--red, #dc291e) !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  #et-main-area .press-hero__title {
    font-size: 40px;
  }
  .press-hero {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  /* 窄屏改为上下堆叠，头像居中 */
  .press-card {
    display: block;
  }
  .press-card__side {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 22px;
    text-align: center;
  }
  .press-card__avatar {
    margin: 0 auto;
  }
  .press-card__main {
    width: 100%;
  }
  #et-main-area .press-hero__title {
    font-size: 30px;
  }
  .press-hero {
    min-height: 180px;
  }
  #et-main-area .press-page-title h1 {
    font-size: 24px;
  }
  .press-contact__item {
    flex-wrap: wrap;
  }
  .press-contact__label {
    flex-basis: 62px;
  }
  .press-card__bio--clamp {
    max-height: none;
  }
}
