/* content.css - 门户 CMS 内容页（关于我们单页 / 文章详情 / 附件 / 权限锁）公共样式
 * 配套模板：~/Pages/Web/Templates/About/Page.cshtml（cms_template 101）
 * 与 /css/huagong/xiehuijianjie/index.css 叠加使用：index.css 负责设计稿壳层尺寸，
 * 本文件负责「正文排版 / 表格 / 子导航链接态 / 附件列表 / 锁态 / 红条自适应」。
 * 约定：壳层 class（group_4/group_5/box_4/text-wrapper_4…）保持不动，只做必要的自适应覆盖。
 */

/* ===== 左侧子导航（_SubNav.cshtml）===== */
/* 设计稿固定 463px 高，子栏目数量变化时需要自适应 */
.box_4.cms-about-nav {
  height: auto;
  min-height: 463px;
  padding-bottom: 24px;
}

.cms-about-nav__item {
  text-decoration: none;
  cursor: pointer;
  /* 设计稿 image-text_1 的 33px 下边距只用于最后一项，中间项按 20px 行距对齐基线 */
  margin: 20px 0 0 30px;
}

.cms-about-nav__item:last-child {
  margin-bottom: 33px;
}

/* 子导航标题过长时省略（《化工管理》杂志社有限公司） */
.cms-about-nav .text_21 {
  width: auto;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-about-nav__item .text-group_1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.cms-about-nav__item:hover .text-group_1 {
  color: rgba(213, 16, 13, 1);
}

.cms-about-nav--active .text-group_1 {
  color: rgba(213, 16, 13, 1);
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
}

/* ===== 右侧正文容器（text-wrapper_4 覆盖）===== */
.text-wrapper_4.cms-article-body {
  height: auto;
  min-height: 463px;
  font-size: 14px;
  line-height: 34px;
  color: rgba(51, 51, 51, 1);
}

.cms-article-content {
  width: 100%;
  font-size: 16px;
  line-height: 34px;
  color: rgba(102, 102, 102, 1);
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  word-break: break-word;
}

.cms-article-content p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 34px;
  color: rgba(102, 102, 102, 1);
  text-indent: 2em;
}

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

.cms-article-content img {
  max-width: 100%;
  height: auto;
}

.cms-article-content a {
  color: rgba(0, 104, 183, 1);
  text-decoration: none;
}

.cms-article-content a:hover {
  text-decoration: underline;
}

.cms-article-content h1,
.cms-article-content h2,
.cms-article-content h3,
.cms-article-content h4 {
  margin: 18px 0 12px;
  color: rgba(51, 51, 51, 1);
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
  line-height: 1.6;
}

.cms-article-content h2 { font-size: 20px; }
.cms-article-content h3 { font-size: 18px; }

.cms-article-content ul,
.cms-article-content ol {
  margin: 0 0 12px;
  padding-left: 2em;
}

.cms-article-content li {
  font-size: 16px;
  line-height: 34px;
  color: rgba(102, 102, 102, 1);
}

/* 正文内表格（后台「内容管理」富文本插入的名单/机构表） */
.cms-article-content table,
.cms-data-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 26px;
  color: rgba(51, 51, 51, 1);
}

.cms-article-content table th,
.cms-data-table th {
  padding: 10px 12px;
  border: 1px solid rgba(230, 230, 230, 1);
  background-color: rgba(245, 245, 245, 1);
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
  text-align: center;
  text-indent: 0;
}

.cms-article-content table td,
.cms-data-table td {
  padding: 9px 12px;
  border: 1px solid rgba(230, 230, 230, 1);
  text-align: center;
  text-indent: 0;
}

.cms-article-content table tr:nth-child(even) td,
.cms-data-table tbody tr:nth-child(even) td {
  background-color: rgba(250, 250, 250, 1);
}

/* 正文首段/尾段与顶部间距（对齐设计稿） */
.cms-article-body .cms-article-content {
  margin-top: 6px;
}

/* ===== 红条 tab（text-wrapper_5）自适应标题宽度 ===== */
.text-wrapper_5 {
  width: auto;
  min-width: 114px;
  padding: 0 16px;
  box-sizing: border-box;
}

.text-wrapper_5 .text_35 {
  width: auto;
  max-width: 320px;
  margin: 7px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 顶部信息行（发布时间/来源）长度兜底 ===== */
.group_5 .text_20 {
  width: auto;
  max-width: 700px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 空态 / 内容维护中 ===== */
.cms-empty {
  padding: 80px 0;
  text-align: center;
  font-size: 16px;
  line-height: 30px;
  color: rgba(153, 153, 153, 1);
}

/* ===== 按钮 ===== */
.cms-btn {
  display: inline-block;
  height: 38px;
  padding: 0 22px;
  border: 1px solid rgba(0, 104, 183, 1);
  border-radius: 2px;
  background-color: #fff;
  color: rgba(0, 104, 183, 1);
  font-size: 15px;
  line-height: 36px;
  font-family: PingFangSC-Regular, Microsoft YaHei, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.cms-btn:hover {
  background-color: rgba(0, 104, 183, 0.08);
}

.cms-btn--primary {
  background-color: rgba(0, 104, 183, 1);
  color: #fff;
}

.cms-btn--primary:hover {
  background-color: rgba(0, 88, 155, 1);
  color: #fff;
}

.cms-btn--sm {
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 30px;
}

/* ===== 会员锁态（文章级权限不足） ===== */
.cms-member-lock {
  margin: 24px 0;
  padding: 40px 24px;
  border: 1px solid rgba(227, 197, 100, 1);
  border-radius: 4px;
  background-color: rgba(255, 251, 230, 1);
  text-align: center;
}

.cms-member-lock__icon {
  font-size: 34px;
  line-height: 40px;
  color: rgba(190, 150, 40, 1);
}

.cms-member-lock__title {
  margin-top: 10px;
  font-size: 18px;
  line-height: 28px;
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
  color: rgba(138, 109, 31, 1);
}

.cms-member-lock__desc {
  margin: 8px auto 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 26px;
  color: rgba(138, 109, 31, 1);
}

.cms-member-lock__actions {
  margin-top: 20px;
}

.cms-member-lock__actions .cms-btn {
  margin: 0 6px;
}

/* ===== 附件列表（_Attachments.cshtml） ===== */
.cms-attachments {
  margin: 24px 0 4px;
  padding-top: 16px;
  border-top: 1px dashed rgba(221, 221, 221, 1);
}

.cms-attachments__head {
  margin-bottom: 12px;
}

.cms-attachments__title {
  font-size: 17px;
  line-height: 26px;
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
  color: rgba(51, 51, 51, 1);
}

.cms-attachments__count {
  font-size: 13px;
  color: rgba(153, 153, 153, 1);
}

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

.cms-attachment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid rgba(235, 235, 235, 1);
  background-color: rgba(250, 250, 250, 1);
  transition: border-color 0.15s, background-color 0.15s;
}

.cms-attachment:hover {
  border-color: rgba(0, 104, 183, 0.45);
  background-color: rgba(245, 250, 255, 1);
}

.cms-attachment__info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.cms-attachment__name {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 24px;
  color: rgba(51, 51, 51, 1);
}

.cms-attachment__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(153, 153, 153, 1);
}

.cms-attachment__type {
  padding: 1px 6px;
  border-radius: 2px;
  background-color: rgba(0, 104, 183, 0.1);
  color: rgba(0, 104, 183, 1);
  font-size: 12px;
  line-height: 18px;
}

.cms-attachment__btn {
  flex-shrink: 0;
  display: inline-block;
  height: 30px;
  padding: 0 16px;
  border: 1px solid rgba(0, 104, 183, 1);
  border-radius: 2px;
  background-color: #fff;
  color: rgba(0, 104, 183, 1);
  font-size: 14px;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.cms-attachment__btn:hover {
  background-color: rgba(0, 104, 183, 1);
  color: #fff;
}

.cms-attachment__btn--locked,
.cms-attachment__btn--locked:hover {
  border-color: rgba(190, 150, 40, 1);
  background-color: rgba(255, 251, 230, 1);
  color: rgba(138, 109, 31, 1);
}

.cms-lock-icon {
  margin-right: 4px;
  font-size: 12px;
}

/* ===== 栏目级权限不足页（AccessDenied.cshtml） ===== */
.cms-denied {
  width: 100%;
  padding: 60px 360px 100px;
  box-sizing: border-box;
}

.cms-denied__card {
  padding: 60px 40px;
  border: 1px solid rgba(227, 197, 100, 1);
  border-radius: 4px;
  background-color: rgba(255, 251, 230, 1);
  text-align: center;
}

.cms-denied__icon {
  font-size: 44px;
  line-height: 52px;
  color: rgba(190, 150, 40, 1);
}

.cms-denied__title {
  margin: 16px 0 0;
  font-size: 22px;
  line-height: 32px;
  font-family: PingFang-SC-Bold, PingFangSC-Regular, Microsoft YaHei, sans-serif;
  font-weight: bold;
  color: rgba(138, 109, 31, 1);
}

.cms-denied__text {
  margin: 12px auto 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 28px;
  color: rgba(138, 109, 31, 1);
}

.cms-denied__actions {
  margin-top: 26px;
}

.cms-denied__actions .cms-btn {
  margin: 0 8px;
}
