/* ==========================================================================
   资源频道 /resource —— 列表 / 详情 / 发布
   作用域：.ch-page.rs（页面）· .rs-modal（layer 弹窗，插在 body 下）
   设计口径：品牌青 #087e78（提供资源）/ 金 #8a641f（寻找资源）·
            正文 #1d2939 · 次级 #475467 · 弱 #667085 · 描边 #e9eef3
   注意：本文件在 channel.css 之后加载，同权重选择器才能压过 .ch-page a:not(.ch-btn)
   ========================================================================== */

/* ---------------------------------------------------------------
   列表：卡片栅格
   --------------------------------------------------------------- */
.rs .rs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 标签换行会让个别卡片高出约 20px，用 1fr 把每行拉齐，避免行距忽大忽小 */
  grid-auto-rows: 1fr;
  gap: 16px;
}

.rs .rs-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rs .rs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: #fff;
  box-shadow: var(--ch-shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rs a.rs-card { color: inherit; }
.rs .rs-card:hover {
  border-color: #cfe9e5;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}

/* 封面 / 无图兜底 */
.rs .rs-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef4f3;
}
.rs .rs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.rs .rs-card:hover .rs-thumb img { transform: scale(1.03); }

.rs .rs-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 12px, rgba(255, 255, 255, 0) 12px 24px),
    linear-gradient(150deg, #0a8f88 0%, #066a65 62%, #04514d 100%);
  color: #fff;
}
.rs .rs-thumb-fallback i { font-size: 30px; opacity: .92; }
.rs .rs-thumb-fallback em {
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .5px;
  opacity: .95;
}

/* 封面左上角：资源类型（品牌青底白字 4.92:1） */
.rs .rs-thumb-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: #087e78;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .18);
}
.rs .rs-thumb-cat i { font-size: 10px; }

.rs .rs-thumb-state {
  position: absolute;
  right: 10px;
  top: 10px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(11, 31, 30, .76);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
}
.rs .rs-thumb-state.is-rejected { background: #b42318; }
.rs .rs-thumb-state.is-draft    { background: #475467; }

/* 卡片正文 */
.rs .rs-bd {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px 12px;
  min-width: 0;
}
.rs .rs-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rs .rs-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: #f4f7f9;
  color: var(--ch-mute);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
}
.rs .rs-badge.is-verify { background: var(--ch-brand-100); color: var(--ch-brand-deep); }
.rs .rs-badge.is-top    { background: var(--ch-gold-100); color: var(--ch-gold-deep); }

.rs .rs-title {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ch-ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
.rs .rs-card:hover .rs-title { color: var(--ch-brand-deep); }

.rs .rs-sum {
  margin: 0;
  color: var(--ch-sub);
  font-size: 12.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs .rs-value {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f6faf9;
  color: var(--ch-brand-deep);
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rs .rs-value i { font-size: 10.5px; opacity: .8; }

.rs .rs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rs .rs-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--ch-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ch-mute);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}
.rs .rs-tag i { font-size: 9.5px; }
.rs .rs-tag.is-way { border-color: #f3dfc0; background: var(--ch-gold-100); color: var(--ch-gold-deep); }
.rs .rs-tag.is-more { color: var(--ch-mute); }

.rs .rs-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--ch-line-soft);
  color: var(--ch-mute);
  font-size: 11.5px;
  min-width: 0;
}
.rs .rs-owner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rs .rs-owner img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ch-line);
  flex: 0 0 auto;
}
.rs .rs-foot-stats {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  flex: 0 0 auto;
}
.rs .rs-foot-stats em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rs .rs-foot-stats i { font-size: 9.5px; }

/* 我的资源：状态条 */
.rs .rs-item.is-mine .rs-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ---------------------------------------------------------------
   详情
   --------------------------------------------------------------- */
.rs .rs-head {
  padding: 22px 24px 20px;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: linear-gradient(160deg, #f5fbfa 0%, #ffffff 52%);
  box-shadow: var(--ch-shadow);
}
.rs .rs-head-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.rs .rs-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--ch-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ch-sub);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}
.rs .rs-head-badge i { font-size: 10px; color: var(--ch-mute); }
.rs .rs-head-badge.is-cat { border-color: #b9e3dd; background: var(--ch-brand-100); color: var(--ch-brand-deep); font-weight: 600; }
.rs .rs-head-badge.is-cat i { color: var(--ch-brand); }
.rs .rs-head-badge.is-verify { border-color: #cfe9e5; background: #f4fbfa; color: var(--ch-brand-deep); }
.rs .rs-head-badge.is-verify i { color: var(--ch-brand); }
.rs .rs-head-badge.is-top { border-color: #f3dfc0; background: var(--ch-gold-100); color: var(--ch-gold-deep); }
.rs .rs-head-badge.is-top i { color: var(--ch-gold); }

.rs .rs-head-title {
  margin: 0 0 10px;
  color: var(--ch-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.2px;
}
.rs .rs-head-sum {
  margin: 0 0 14px;
  color: var(--ch-sub);
  font-size: 14px;
  line-height: 1.8;
}
.rs .rs-head-meta { color: var(--ch-mute); }
.rs .rs-head-meta i { color: #98a2b3; }

.rs .rs-cover {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: #fff;
}
.rs .rs-cover img { width: 100%; max-height: 460px; object-fit: cover; }

.rs .rs-kv { margin-top: 16px; }

.rs .rs-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.rs .rs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid #f3dfc0;
  border-radius: 7px;
  background: var(--ch-gold-100);
  color: var(--ch-gold-deep);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}
.rs .rs-chip i { font-size: 10px; }

/* 联系方式 */
.rs .rs-lock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border: 1px dashed #d9e3ea;
  border-radius: var(--ch-radius);
  background: #fbfcfd;
  flex-wrap: wrap;
}
.rs .rs-lock-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ch-brand-100);
  color: var(--ch-brand-deep);
  font-size: 15px;
  flex: 0 0 auto;
}
.rs .rs-lock-txt { flex: 1 1 240px; min-width: 0; }
.rs .rs-lock-txt b { display: block; color: var(--ch-ink); font-size: 14px; font-weight: 700; }
.rs .rs-lock-txt span { display: block; margin-top: 3px; color: var(--ch-mute); font-size: 12.5px; line-height: 1.7; }

.rs .rs-contact-box {
  padding: 16px 18px;
  border: 1px solid #cfe9e5;
  border-radius: var(--ch-radius);
  background: #f6fbfa;
}
.rs .rs-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rs .rs-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e3f1ee;
  border-radius: 9px;
  background: #fff;
  min-width: 0;
}
.rs .rs-contact-item span { color: var(--ch-mute); font-size: 11.5px; }
.rs .rs-contact-item b {
  color: var(--ch-ink);
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}
.rs .rs-contact-item b.rs-copy { cursor: pointer; }
.rs .rs-contact-item b.rs-copy:hover { color: var(--ch-brand); }
.rs .rs-contact-hint {
  margin: 12px 0 0;
  color: var(--ch-mute);
  font-size: 11.5px;
  line-height: 1.7;
}
.rs .rs-contact-hint i { color: #98a2b3; margin-right: 4px; }
.rs .rs-copy-tip { color: var(--ch-brand-deep); }

/* 对接列表 */
.rs .rs-apply-list { display: flex; flex-direction: column; gap: 10px; }
.rs .rs-apply-item {
  padding: 13px 15px;
  border: 1px solid var(--ch-line);
  border-radius: 11px;
  background: #fff;
}
.rs .rs-apply-item.is-new { border-color: #f3dfc0; background: #fffdf8; }
.rs .rs-apply-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rs .rs-apply-head b { color: var(--ch-ink); font-size: 13.5px; font-weight: 700; }
.rs .rs-apply-head span { color: var(--ch-sub); font-size: 12px; }
.rs .rs-apply-head em { color: var(--ch-mute); font-size: 11.5px; font-style: normal; }
.rs .rs-apply-state {
  margin-left: auto;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f4f7f9;
  color: var(--ch-mute);
  font-size: 11px;
  line-height: 21px;
  flex: 0 0 auto;
}
.rs .rs-apply-item.is-new .rs-apply-state { background: var(--ch-gold-100); color: var(--ch-gold-deep); font-weight: 600; }
.rs .rs-apply-item.is-done .rs-apply-state { background: var(--ch-brand-100); color: var(--ch-brand-deep); font-weight: 600; }
.rs .rs-apply-intro {
  margin: 0 0 10px;
  color: var(--ch-sub);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.rs .rs-apply-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px dashed var(--ch-line-soft);
}
.rs .rs-apply-way {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ch-sub);
  font-size: 12.5px;
  font-weight: 600;
}
.rs .rs-apply-way i { color: var(--ch-mute); font-size: 11px; }
.rs .rs-apply-acts { margin-left: auto; }

.rs .rs-new-dot {
  margin-left: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ch-gold-100);
  color: var(--ch-gold-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
}
.rs .rs-empty-line {
  padding: 18px;
  border: 1px dashed #d9e3ea;
  border-radius: 11px;
  background: #fbfcfd;
  color: var(--ch-mute);
  font-size: 12.5px;
  text-align: center;
}
.rs .rs-empty-line i { margin-right: 6px; }

/* 相关资源 */
.rs .rs-rel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rs a.rs-rel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--ch-line);
  border-radius: 11px;
  background: #fff;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rs a.rs-rel:hover { border-color: #cfe9e5; box-shadow: 0 6px 16px rgba(16, 24, 40, .06); }
.rs .rs-rel b {
  color: var(--ch-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rs a.rs-rel:hover b { color: var(--ch-brand-deep); }
.rs .rs-rel span { color: var(--ch-mute); font-size: 11.5px; }

/* 侧栏：CTA */
.rs .rs-side .rs-cta {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(170deg, #f5fbfa 0%, #ffffff 46%);
}
.rs .rs-cta-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rs .rs-cta-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.rs .rs-cta-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--ch-line-soft);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}
.rs .rs-cta-meta span { color: var(--ch-mute); font-size: 11px; }
.rs .rs-cta-meta b {
  color: var(--ch-ink);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rs .rs-cta-actions { display: flex; flex-direction: column; gap: 8px; }
.rs .rs-cta-actions .ch-btn { width: 100%; }
.rs .rs-cta-hint {
  margin: 0;
  color: var(--ch-mute);
  font-size: 11.5px;
  line-height: 1.7;
}
.rs .rs-cta-hint i { color: #98a2b3; margin-right: 3px; }

/* 侧栏：资源方 */
.rs .rs-org-main { display: flex; align-items: center; gap: 10px; }
.rs .rs-org-logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ch-line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  flex: 0 0 auto;
}
.rs .rs-org-logo.is-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ch-brand-100);
  color: var(--ch-brand-deep);
  font-size: 17px;
  font-weight: 700;
}
.rs .rs-org-txt { min-width: 0; }
.rs .rs-org-txt b {
  display: block;
  color: var(--ch-ink);
  font-size: 13.5px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rs .rs-org-txt span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--ch-mute);
  font-size: 11.5px;
}
.rs .rs-org-tag {
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--ch-brand-100);
  color: var(--ch-brand-deep);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
}
.rs .rs-org-tag.is-plain { background: #f4f7f9; color: var(--ch-mute); }

/* ---------------------------------------------------------------
   发布页：卡片预览
   --------------------------------------------------------------- */
.rs .rs-preview-card {
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: 12px;
  background: #fff;
}
.rs .rs-preview-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 12px, rgba(255, 255, 255, 0) 12px 24px),
    linear-gradient(150deg, #0a8f88 0%, #066a65 62%, #04514d 100%);
  color: #fff;
  font-size: 28px;
}
.rs .rs-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs .rs-preview-bd { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; }
.rs .rs-preview-title {
  color: var(--ch-ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.rs .rs-preview-sum {
  color: var(--ch-mute);
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rs .rs-preview-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rs .rs-preview-tags span {
  height: 21px;
  padding: 0 7px;
  border: 1px solid var(--ch-line);
  border-radius: 6px;
  color: var(--ch-mute);
  font-size: 11px;
  line-height: 21px;
}
.rs .rs-preview-ways { display: flex; flex-wrap: wrap; gap: 5px; }
.rs .rs-preview-ways span {
  height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--ch-gold-100);
  color: var(--ch-gold-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 21px;
}
.rs .rs-preview-ways span.is-empty { background: #f4f7f9; color: var(--ch-mute); font-weight: 400; }

.rs .rs-guide ol li b { color: var(--ch-ink); }

/* ---------------------------------------------------------------
   弹窗（layer 插到 body 下，不吃 .ch-page 的令牌，颜色全部写死）
   --------------------------------------------------------------- */
.rs-modal {
  --rs-line: #e9eef3;
  color: #1d2939;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
.rs-modal *,
.rs-modal *::before,
.rs-modal *::after { box-sizing: border-box; }

.rs-m-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--rs-line);
  background: linear-gradient(160deg, #f5fbfa 0%, #ffffff 70%);
}
.rs-m-head b { display: block; color: #0b1f1e; font-size: 16px; font-weight: 700; }
.rs-m-head span { display: block; margin-top: 3px; color: #667085; font-size: 12.5px; }

.rs-m-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.rs-m-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rs-m-field label { color: #344054; font-size: 13px; font-weight: 600; }
.rs-m-field label .req { color: #e0245e; }
.rs-m-field label em { color: #667085; font-size: 11.5px; font-style: normal; font-weight: 400; }
.rs-m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rs-m-grid .rs-m-field:last-child { grid-column: 1 / -1; }

.rs-m-tips { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-m-tip {
  padding: 5px 9px;
  border: 1px solid var(--rs-line);
  border-radius: 7px;
  background: #fff;
  color: #475467;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.rs-m-tip:hover { border-color: #b9e3dd; color: #066a65; }

.rs-m-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 13px 22px;
  border-top: 1px solid var(--rs-line);
  background: #fff;
}

/* 输入控件在弹窗里重新声明（.ch-input 只在 .ch-page 下取到令牌） */
.rs-modal .ch-input,
.rs-modal .ch-textarea {
  width: 100%;
  padding: 0 13px;
  border: 1px solid #e9eef3;
  border-radius: 9px;
  background: #fff;
  color: #1d2939;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rs-modal .ch-input { height: 40px; }
.rs-modal .ch-input[readonly] { background: #f7f9fb; color: #475467; }
.rs-modal .ch-textarea { padding: 11px 13px; line-height: 1.8; resize: vertical; }
.rs-modal .ch-input:focus,
.rs-modal .ch-textarea:focus { border-color: #0a8f88; box-shadow: 0 0 0 3px rgba(10, 143, 136, .12); }

.rs-modal .ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #087e78;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
}
.rs-modal .ch-btn:hover { background: #066a65; color: #fff; }
.rs-modal .ch-btn.is-line { border-color: #dce4ea; background: #fff; color: #475467; }
.rs-modal .ch-btn.is-line:hover { border-color: #b9e3dd; color: #066a65; background: #fff; }
.rs-modal .ch-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------------------------------------------------------------
   响应式
   --------------------------------------------------------------- */
@media (max-width: 1360px) {
  .rs .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .rs .ch-detail,
  .rs .ch-layout { grid-template-columns: minmax(0, 1fr); }
  .rs .rs-side .rs-cta { position: static; }
  .rs .rs-head-title { font-size: 21px; }
}

@media (max-width: 760px) {
  .rs .rs-grid { grid-template-columns: minmax(0, 1fr); }
  .rs .rs-rel-grid { grid-template-columns: minmax(0, 1fr); }
  .rs .rs-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .rs .rs-head { padding: 18px 16px 16px; }
  .rs .rs-head-title { font-size: 19px; }
  .rs-m-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-m-grid .rs-m-field:last-child { grid-column: auto; }
  .rs-m-head, .rs-m-body, .rs-m-foot { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
 * 成交方式 × 资源类型
 * 发布页按所选类型给推荐：不适用的卡片转虚线 + 降透明度 + 右上「少用」角标，
 * 但不阻止勾选（真实交易里偶有非常规搭配，硬拦会让人以为系统出错）。
 * ============================================================ */
.rs .pj-mode-card .pj-mode-off {
  display: none;
  position: absolute;
  right: 7px;
  top: 7px;
  height: 16px;
  padding: 0 5px;
  border-radius: 5px;
  background: #eef2f6;
  color: #5b6675;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
}
.rs .pj-mode-card.is-unfit {
  border-style: dashed;
  border-color: #e4e9ef;
  background: #fafbfc;
}
.rs .pj-mode-card.is-unfit b { color: #667085; }
.rs .pj-mode-card.is-unfit > span { color: #667085; }
.rs .pj-mode-card.is-unfit .pj-mode-off { display: block; }

/* 已勾选的非常规搭配：保留可读性，改用金色提示「这是例外」 */
.rs .pj-mode-card.is-unfit.is-on {
  border-style: solid;
  border-color: #e6c893;
  background: #fffaf1;
  box-shadow: none;
}
.rs .pj-mode-card.is-unfit.is-on > span { color: var(--ch-mute); }
.rs .pj-mode-card.is-unfit.is-on b { color: #8a641f; }
.rs .pj-mode-card.is-unfit.is-on b i { color: #b8873b; }
.rs .pj-mode-card.is-unfit.is-on .pj-mode-off { background: #f7e6c8; color: #7a5716; }

/* 列表筛选：选了资源类型后，该类型少用的成交方式降级（仍可点，避免筛空） */
.rs .pjf-opt.is-unfit {
  border-style: dashed;
  color: #667085;
}
.rs .pjf-opt.is-unfit i { color: #98a2b3; }
.rs .pjf-opt.is-unfit:hover {
  border-style: solid;
  color: var(--ch-text-2);
  border-color: #cfe9e5;
  background: #fff;
}
.rs .pjf-opt.is-unfit.is-on {
  border-style: solid;
  border-color: #e6c893;
  background: #fffaf1;
  color: #8a641f;
}
.rs .pjf-opt.is-unfit.is-on i { color: #b8873b; }


/* 精准筛选底部只剩排序时：去掉原来的搜索框占位，左标签 + 右排序（.rsc-* 已抽到 channel-console.css） */
.rs .pjf-foot.is-sortonly { gap: 12px; justify-content: space-between; }
.rs .pjf-foot.is-sortonly .pjf-foot-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12.5px;
  color: #667085;
}
.rs .pjf-foot.is-sortonly .pjf-foot-label i { color: #98a2b3; }
.rs .pjf-foot.is-sortonly .pjf-sorts { margin-left: 0; }

/* ============================================================
   资源详情 · 模块化 + 左侧栏（2026-11-20）
   ------------------------------------------------------------
   结构：.rs-stage > ①头部通栏 .ch-mod-hero ②.ch-split（左 248 吸顶 + 右模块流）
   模块骨架用的是 channel.css 新增的通用 .ch-mod / .ch-split，
   这里只写资源频道自己的：头部、对接卡、目录间距、须知网格、相关资源列数。
   ============================================================ */
.rs .rs-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 8px;
}

/* ---------------- ① 头部 ---------------- */
.rs .ch-mod-hero { border-color: #d8e6e3; }
.rs .rs-hero-media {
  height: clamp(220px, 22vw, 320px);
  overflow: hidden;
  background: #eef2f6;
}
.rs .rs-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs .rs-hero-body {
  padding: 22px 26px 20px;
  background: linear-gradient(160deg, #f5fbfa 0%, #ffffff 48%);
}
/* 元信息是头部最后一行：去掉 .ch-detail-meta 自带的下边框与下间距 */
.rs .rs-hero-body .rs-head-meta {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.rs .rs-hero-body .rs-head-title {
  max-width: 1000px;
  font-size: 26px;
  letter-spacing: -.3px;
}
.rs .rs-hero-body .rs-head-sum { max-width: 1000px; }

/* ---------------- ② 左栏对接卡 ---------------- */
.rs .ch-split-side .rs-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  background: linear-gradient(170deg, #f5fbfa 0%, #ffffff 52%);
}
.rs .ch-split-side .rs-cta-meta {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.rs .ch-split-side .rs-cta-meta div {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
}
.rs .ch-split-side .rs-cta-meta span { flex: 0 0 auto; font-size: 11.5px; }
.rs .ch-split-side .rs-cta-meta b {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* 侧栏只有 208px 内宽：按钮允许换行，别用 nowrap 撑破卡片 */
.rs .ch-split-side .rs-cta-actions .ch-btn {
  height: auto;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}
.rs .ch-split-side .rs-cta-hint { font-size: 11px; }

/* ---------------- ③ 主内容 ---------------- */
/* 相关资源控制器取 4 条：宽屏一行四张，窄屏降两级 */
.rs .rs-rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 对接须知：两列编号网格（窄屏一列） */
.rs .rs-guide-grid {
  counter-reset: g;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rs .rs-guide-grid li {
  counter-increment: g;
  display: flex;
  gap: 10px;
  min-width: 0;
  color: var(--ch-sub);
  font-size: 12.5px;
  line-height: 1.75;
}
.rs .rs-guide-grid li::before {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--ch-brand-100);
  color: var(--ch-brand);
  font-size: 11px;
  font-weight: 700;
  content: counter(g);
}
.rs .rs-guide-grid li b { color: var(--ch-ink); font-weight: 600; }
.rs .rs-guide-foot { margin-top: 16px; }

/* 锚点跳转留呼吸 */
#rsOverview, #rsDetail, #rsOwner, #rsContact, #rsApplies, #rsMine, #rsRelated, #rsGuide { scroll-margin-top: 16px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .rs .ch-split-side .rs-cta { padding: 18px 20px 16px; }
  .rs .ch-split-side .rs-cta-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rs .ch-split-side .rs-cta-meta div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rs .ch-split-side .rs-cta-meta b {
    max-width: 100%;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rs .ch-split-side .rs-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .rs .ch-split-side .rs-cta-actions .ch-btn { flex: 1 1 220px; }
  .rs .rs-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs .rs-guide-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .rs .rs-stage { gap: 12px; padding: 12px 0 4px; }
  .rs .rs-hero-body { padding: 16px; }
  .rs .rs-hero-body .rs-head-title { font-size: 19px; }
  .rs .rs-hero-body .rs-head-sum { font-size: 13px; }
  .rs .rs-rel-grid { grid-template-columns: minmax(0, 1fr); }
}
