/* =========================================================================
   HRBD 候选详情页 - 独立静态版样式
   复刻自 src/views/candidates/index.vue（去掉登录相关：用户栏/退出、推荐、评论发表）
   纯 CSS，无 Vue/Element-UI 依赖；PC 与移动端（≤1200/≤640）适配保持一致
   ========================================================================= */
* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 页面底色：取自 banner 的金色系（底部边缘平均 #fdd797）压淡后的暖米色，
   与 banner 衔接更自然，同时保证白色内容卡片仍有对比 */
.detail-page {
  min-height: 100vh;
  background: #fbf4e6;
  display: flex;
  flex-direction: column;
}

/* 首屏数据加载态：铺满视口的暖色蒙层 + 主题色环形 loading，详情接口返回后淡出（见 detail.js）。
   环形用 border 双色实现，不用 conic-gradient（旧内核 iOS 11 / Android 7 不支持） */
.page-loading {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fbf4e6;
  transition: opacity 0.3s ease;
}

.page-loading.hide {
  opacity: 0;
}

.page-loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(197, 32, 2, 0.15);
  border-top-color: #c52002;
  border-right-color: #fe6c19;
  border-radius: 50%;
  -webkit-animation: page-loading-spin 0.8s linear infinite;
  animation: page-loading-spin 0.8s linear infinite;
}

.page-loading-text {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #c52002;
  letter-spacing: 4px;
}

@-webkit-keyframes page-loading-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes page-loading-spin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Banner：图片即 banner（PC/移动端分别用不同图）
   兜底色同取 banner 底部边缘色，图片未加载完成/留白处不露红边 */
.banner-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #fdd797;
}

/* App 内的返回条（客户端内一律显示，见 detail.js 的 initAppTopBar）：
   底色取 PC banner 顶边逐点取样渐变（每 5% 一个色停，共 21 个），
   与 banner 顶边颜色连续、无断层；移动端在 ≤640 媒体查询内覆盖为移动 banner 的取样渐变 */
.app-top-bar {
  display: none;
  /* 压在首屏加载蒙层（.page-loading，z-index 300）之上：App 内加载期间也能点返回关闭页面 */
  position: relative;
  z-index: 320;
  background: linear-gradient(90deg,
    #fc7306 0%, #f86400 5%, #f75801 10%, #f54b01 15%, #ff7d18 20%,
    #fabf58 25%, #fbb540 30%, #fbae3d 35%, #fca537 40%, #fba235 45%,
    #fc9c2f 50%, #fc952b 55%, #fb8d25 60%, #fd891e 65%, #fc7e14 70%,
    #ff7613 75%, #fc6f0f 80%, #fd7010 85%, #f0400e 90%, #f64916 95%, #fe5716 100%);
  align-items: center;
  height: 44px;
  padding: 0 12px;
  /* 顶部状态栏/刘海安全区：在 44px 内容行高之外额外增高，保证内容不被状态栏压住。
     具体高度由 detail.js 计算后写入 --status-bar-height：
     App 传参 statusBarHeight → env()/constant() 实测值 → 20px 兜底
     （前一行是 JS 未执行/不支持 var() 的旧内核兜底） */
  padding-top: 20px;
  padding-top: var(--status-bar-height, 20px);
  box-sizing: content-box;
}

.app-top-bar.show {
  display: flex;
}

.app-top-bar .app-top-back {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.app-top-bar .app-top-title {
  flex: 1;
  /* 紧贴返回 icon：负外边距抵消 44px 点击区的居中留白（点击区域大小不变）；
     视觉间距 = (点击区 44px - 图标 22px) / 2 - 6 */
  margin-left: -6px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  /* 渐变中段偏亮，阴影加强以保证白字可读 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Banner：图片即 banner（PC/移动端分别用不同图）
   用 .banner-box 的 padding-top 百分比按图片原始比例占位（代替 aspect-ratio：
   该属性 Chrome 88 / Safari 15.4 才支持，旧内核忽略会导致图片加载完后页面跳动） */
.banner-box {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-box::before {
  content: "";
  display: block;
}

.banner-img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* 默认 PC 图，移动端图隐藏 */
.pc-banner {
  display: block;
}

.pc-banner::before {
  padding-top: 23.8021%; /* 457 / 1920 */
}

.m-banner {
  display: none;
}

.m-banner::before {
  padding-top: 32.7111%; /* 368 / 1125 */
}

/* 主体 */
.detail-wrap {
  width: 1200px;
  margin: 0 auto;
  padding: 20px 0 60px;
  flex: 1;
}

/* 人物信息 */
.person-banner {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  position: relative;
}

.person-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c52002, #fe6c19);
}

/* 多人 tab */
.person-banner .person-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-bottom: -10px;
  padding: 20px 36px 0;
}

.person-banner .person-tab {
  margin-left: 10px;
  margin-bottom: 10px;
  padding: 7px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.person-banner .person-tab:focus {
  outline: none;
}

.person-banner .person-tab:hover {
  color: #c52002;
  border-color: #c52002;
  background: #fff5f5;
}

.person-banner .person-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #c52002, #fe6c19);
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(197, 32, 2, 0.35);
}

.person-banner .person-main {
  display: flex;
  padding: 32px 36px;
}

.person-banner .person-main > * + * {
  margin-left: 40px;
}

.person-banner .person-info-box {
  flex: 1;
  min-width: 0;
}

.person-banner .person-name {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

/* 已故（deceasedStatus=1）：名字加细实线黑框（1px、无圆角），表示人已不在世 */
.person-banner .person-name.deceased {
  display: inline-block;
  border: 1px solid #000;
  padding: 2px 12px;
  box-sizing: border-box;
}

.person-banner .basic-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.person-banner .basic-list li {
  display: flex;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 1px dashed #f0f0f0;
}

.person-banner .basic-list li:last-child {
  border-bottom: none;
}

/* 双字段一行：性别+出生年月、民族+政治面貌 */
.person-banner .basic-list .basic-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.person-banner .basic-list .basic-row .basic-item {
  display: flex;
  align-items: center;
  min-width: 0;
}

.person-banner .basic-list .basic-row .basic-item .basic-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 字段名称两端对齐；宽度收紧以缩小两字标签的字间距 */
.person-banner .basic-list .basic-label {
  width: 64px;
  flex-shrink: 0;
  margin-right: 14px;
  color: #999;
  font-size: 13px;
  text-align: justify;
  text-align-last: justify;
}

.person-banner .basic-list .basic-value {
  color: #444;
}

/* 照片（右侧） */
.person-banner .photo-box {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.person-banner .photo-box img {
  width: 160px;
  height: 200px;
  object-fit: contain;
  border-radius: 6px;
  background: #f0f0f0;
  display: block;
}

/* 荣誉 */
.person-banner .honor-box {
  border-top: 1px solid #f0f0f0;
  padding: 20px 36px 24px;
}

.person-banner .honor-box .honor-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid #c52002;
  line-height: 1;
}

.person-banner .honor-box .honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.person-banner .honor-box .honor-list li {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
  color: #555;
}

.person-banner .honor-box .honor-list li > * + * {
  margin-left: 16px;
}

.person-banner .honor-box .honor-date {
  flex-shrink: 0;
  color: #c52002;
  background: #fff1f1;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.person-banner .honor-box .honor-name {
  color: #444;
}

/* 内容卡片 */
.content-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 18px 28px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.card-header .header-icon {
  width: 5px;
  height: 20px;
  background: linear-gradient(180deg, #c52002, #fe6c19);
  border-radius: 3px;
  flex-shrink: 0;
}

.card-header .header-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-left: 10px;
}

/* 事迹标题 */
.deed-title-box {
  padding: 32px 36px 16px;
  text-align: center;
  position: relative;
}

.deed-title-box::before {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c52002, transparent);
  margin: 0 auto 16px;
}

.deed-title-box h2 {
  margin: 0;
  font-size: 26px;
  color: #c52002;
  font-weight: bold;
  letter-spacing: 2px;
}

/* 事迹内容 */
.deed-content {
  padding: 12px 40px 36px;
  font-size: 16px;
  line-height: 2.1;
  color: #444;
  text-align: justify;
  word-break: break-word;
  overflow-wrap: break-word;
}

.deed-content p {
  margin: 0 0 18px;
  text-indent: 2em;
}

.deed-content p:last-child {
  margin-bottom: 0;
}

/* 多条事迹之间的分隔 */
.deed-item + .deed-item {
  border-top: 1px dashed #eee;
}

/* 宣传报道（表格） */
.report-table-wrap {
  padding: 20px 28px 28px;
  overflow-x: auto;
}

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

.report-list li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.report-list li:last-child {
  border-bottom: none;
}

.report-list .report-title {
  flex: 1;
  min-width: 0;
  padding-right: 10px;
  font-weight: bold;
  font-size: 14px;
}

.report-list .report-title a,
.report-list .report-title span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}

.report-list .report-op-cell {
  flex-shrink: 0;
  width: 72px;
  text-align: right;
}

.report-link {
  color: #103190;
  text-decoration: none;
  word-break: break-all;
}

.report-link:hover {
  text-decoration: underline;
}

.report-view {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, #c52002, #fe6c19);
  cursor: pointer;
  transition: opacity 0.2s;
}

.report-view:hover {
  opacity: 0.9;
}

.report-empty {
  color: #999;
}

/* 评论区输入框 */
.comment-input-box {
  padding: 20px 28px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.comment-textarea {
  width: 100%;
  height: 90px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: none;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
  box-sizing: border-box;
}

.comment-textarea:focus {
  border-color: #c52002;
}

.comment-textarea:disabled {
  background: #f5f5f5;
  color: #aaa;
}

.comment-input-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.comment-hint {
  font-size: 13px;
  color: #999;
}

.btn-submit-comment {
  padding: 8px 32px;
  font-size: 14px;
  color: #fff;
  background: #c52002;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.btn-submit-comment:hover {
  opacity: 0.9;
}

/* PC 端点击「发表评论」时的引导下载弹层（居中）：客户端外不能评论，改为引导下载客户端。
   仅由 PC 输入区入口触发（移动端入口在客户端外直接跳下载页），故不随 ≤640 媒体查询变化 */
.download-popup-mask {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.download-popup-mask.show {
  display: flex;
}

.download-popup {
  position: relative;
  width: 320px;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
}

.download-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.download-popup-title {
  font-size: 17px;
  font-weight: 600;
  color: #2d2d2d;
}

.download-popup-desc {
  margin-top: 8px;
  font-size: 13px;
  color: #999;
}

.download-popup-qrcode {
  display: block;
  width: 180px;
  height: 180px;
  margin: 16px auto 0;
}

.download-popup-hint {
  margin-top: 10px;
  font-size: 13px;
  color: #c52002;
}

/* 移动端专属的底部「写评论」入口与写评论弹层：默认隐藏，仅 ≤640px 展示 */
.mobile-comment-bar,
.comment-popup-mask {
  display: none;
}

/* 轻提示：垂直居中（与 App 的 Vant showToast 默认位置一致） */
.wm-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  z-index: 300;
}

.comment-list {
  padding: 16px 28px 28px;
}

.comment-item {
  position: relative;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px 18px 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

/* 左侧主题色渐变装饰条 */
.comment-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c52002, #fe6c19);
  opacity: 0.85;
}

.comment-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-body {
  min-width: 0;
}

.comment-top {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.comment-tag {
  margin-left: 8px;
  flex-shrink: 0;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 18px;
  color: #c52002;
  background: rgba(197, 32, 2, 0.08);
  border: 1px solid rgba(197, 32, 2, 0.2);
  border-radius: 9px;
}

.comment-user {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.comment-time {
  margin-left: auto;
  font-size: 12px;
  color: #bbb;
  flex-shrink: 0;
}

.comment-text {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.comment-empty {
  text-align: center;
  padding: 40px 0;
  color: #999;
  font-size: 14px;
}

.comment-pagination {
  text-align: center;
  padding: 16px 28px 24px;
}

.comment-pagination button {
  display: inline-block;
  padding: 6px 16px;
  margin: 0 4px;
  font-size: 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-pagination button:hover:not(:disabled):not(.active) {
  border-color: #c52002;
  color: #c52002;
}

.comment-pagination button.active {
  background: #c52002;
  color: #fff;
  border-color: #c52002;
}

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

/* 底部 */
.footer {
  width: 100%;
}

.footer-center {
  background: #fff;
  padding: 16px 0 24px;
  text-align: center;
}

.footer-center p {
  margin: 0;
  height: 24px;
  line-height: 24px;
  font-size: 14px;
  color: #2d2d2d;
}

/* App 内（.in-app 由 detail.js 按 UA 添加）不展示主办/承办/举报信息 */
.in-app .footer-center {
  display: none;
}

/* 响应式 */
@media screen and (max-width: 1200px) {
  .detail-wrap {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .person-banner .person-main > * + * {
    margin-left: 24px;
  }

  .deed-content {
    padding: 12px 24px 28px;
  }
}

@media screen and (max-width: 640px) {
  /* 移动端 banner 换图 */
  .pc-banner {
    display: none;
  }

  .m-banner {
    display: block;
  }

  /* 移动端返回条：与移动端 banner 顶边取样渐变一致（每 5% 一个色停） */
  .app-top-bar {
    background: linear-gradient(90deg,
      #f05002 0%, #f34802 5%, #f87c06 10%, #fcbb54 15%, #feb74b 20%,
      #fcb13d 25%, #fbae3d 30%, #f9ab3d 35%, #fda638 40%, #fda638 45%,
      #fca436 50%, #fd9f32 55%, #fd982f 60%, #fd962c 65%, #fc9228 70%,
      #f8930f 75%, #ff891a 80%, #fc7e14 85%, #fd7715 90%, #fd7715 95%, #fb7a16 100%);
  }

  .person-banner .person-tabs {
    padding: 16px 20px 0;
    margin-left: -8px;
    margin-bottom: -8px;
  }

  .person-banner .person-tab {
    margin-left: 8px;
    margin-bottom: 8px;
    padding: 5px 16px;
    font-size: 13px;
    border-radius: 16px;
  }

  .person-banner .person-main {
    flex-direction: column-reverse;
    align-items: center;
    padding: 24px 20px;
  }

  .person-banner .person-main > * + * {
    margin-left: 0;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .person-banner .person-info-box {
    width: 100%;
    text-align: center;
  }

  .person-banner .person-name {
    font-size: 22px;
    text-align: center;
  }

  .person-banner .basic-list {
    text-align: left;
  }

  .person-banner .photo-box {
    width: 100%;
  }

  .person-banner .honor-box {
    padding: 16px 20px 20px;
  }

  /* 移动端基本信息：每个字段独占一行、行距一致，字段之间统一虚线分割线 */
  .person-banner .basic-list li.basic-row {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .person-banner .basic-list .basic-row .basic-item {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #f0f0f0;
  }

  .deed-title-box h2 {
    font-size: 20px;
  }

  .deed-content {
    font-size: 14px;
    padding: 8px 16px 24px;
  }

  /* 移动端内容区评论区只展示评论列表：卡片内输入框隐藏，改写评论走底部入口 */
  .comment-input-box {
    display: none;
  }

  /* 底部固定「写评论」入口（交互对齐 App 好人详情页） */
  .mobile-comment-bar {
    display: flex;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 16px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 90;
    box-sizing: border-box;
  }

  .mobile-comment-bar .bar-write {
    flex: 1;
    min-width: 0;
    height: 32px;
    line-height: 32px;
    padding: 0 14px;
    background: #f3f3f5;
    border-radius: 16px;
    font-size: 13px;
    color: #999;
    box-sizing: border-box;
    /* 数字变长时优先压缩该提示文案，不换行 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-comment-bar .bar-write:active {
    background: #ededf0;
  }

  /* 未登录（客户端内）或客户端外：文案为提示语，均可点击
     （客户端内唤起 App 登录，客户端外跳转 App 下载页） */
  .mobile-comment-bar .bar-write.need-login {
    color: #c52002;
  }

  /* 右侧：点赞（用 padding-left 代替 gap，兼容部分 WebView） */
  .mobile-comment-bar .bar-icons {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 12px;
  }

  .mobile-comment-bar .bar-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #555;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-comment-bar .bar-icon svg {
    display: block;
  }

  /* 已点赞：图标变红（与 App 一致） */
  .mobile-comment-bar .bar-icon.liked {
    color: #e34d4d;
  }

  /* 手机端留白窄，米色只露一条边会显脏，换成接近白的极淡暖白；
     同时为底部固定栏留出占位，避免遮挡页脚 */
  .detail-page {
    background: #fdf8ef;
    padding-bottom: calc(49px + env(safe-area-inset-bottom, 0px));
  }

  /* 移动端加载蒙层跟随移动端底色，避免白闪 */
  .page-loading {
    background: #fdf8ef;
  }

  /* 写评论弹层 */
  .comment-popup-mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: none;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
  }

  .comment-popup-mask.show {
    display: flex;
  }

  .comment-popup {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }

  .comment-popup .popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .comment-popup .popup-head .popup-cancel {
    font-size: 15px;
    color: #888;
  }

  .comment-popup .popup-head .popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
  }

  .comment-popup .popup-head .popup-confirm {
    font-size: 15px;
    color: #bbb;
  }

  .comment-popup .popup-head .popup-confirm.active {
    color: #c52002;
    font-weight: 600;
  }

  .comment-popup .popup-textarea {
    flex: 1;
    min-height: 120px;
    padding: 12px 16px;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    box-sizing: border-box;
  }

  .comment-popup .popup-counter {
    flex-shrink: 0;
    padding: 0 16px 12px;
    text-align: right;
    font-size: 14px;
    color: #999;
  }

  .comment-list {
    padding: 12px 16px 20px;
  }

  .comment-item {
    padding: 13px 14px 13px 18px;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .comment-item::before {
    top: 14px;
    bottom: 14px;
  }

  .comment-user {
    font-size: 14px;
  }

  .comment-text {
    font-size: 15px;
  }

  /* 移动端评论分页：按钮改紧凑，一行放下（最多 5 个页码 + 上一页/下一页）
     nowrap 强制单行；极端情况（大量分页所致按钮过宽）用横向滚动兜底 */
  .comment-pagination {
    padding: 12px 8px 16px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comment-pagination button {
    display: inline-block;
    min-width: 28px;
    padding: 4px 6px;
    margin: 0 3px;
    font-size: 13px;
  }

  .comment-pagination button:hover:not(:disabled):not(.active) {
    border-color: #ddd;
    color: #666;
  }

  /* 宣传报道移动端：与 PC 一致的列表布局，仅收紧容器内边距 */
  .report-table-wrap {
    padding: 8px 16px 12px;
    overflow-x: hidden;
  }

  .person-tab:not(.active):hover {
    color: #666;
    border-color: #eee;
    background: #f7f7f7;
  }

  .comment-item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transform: none;
  }
}

@media screen and (max-width: 600px) {
  .comment-item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transform: none;
  }
}