/* ==========================================================================
   易传 - 媒体资源页
   顶部导航规格与协议页一致；列表筛选参考业务后台 GEO/新闻/自媒体
   ========================================================================== */

.res-page { position: relative; width: 100%; min-width: 1200px; min-height: 100vh; background: #f5f6fb; }

.res-head { width: 100%; height: 220px; background: url('../assets/slices/about/section_12_edge_l.png') repeat-x; background-size: 1px 100%; }
/* 顶部导航样式已迁移至 css/site-chrome.css（统一模板 includes/nav.html） */

.res-title {
  display: block;
  height: 60px;
  margin: 56px auto 0;
  background-image: linear-gradient(90deg, rgba(131, 132, 247, 1) 0, rgba(86, 82, 255, 1) 100%);
  color: rgba(86, 82, 255, 1);
  font-size: 40px;
  font-family: MiSans-Semibold;
  font-weight: 600;
  text-align: center;
  line-height: 60px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.res-sub {
  display: block;
  margin: 8px 0 0;
  color: rgba(112, 112, 112, 1);
  font-size: 14px;
  font-family: SourceHanSansCN-Normal;
  text-align: center;
  line-height: 22px;
}

.res-main { width: 1200px; margin: 24px auto 48px; }
.res-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(86, 82, 255, 0.06);
  padding: 8px 24px 20px;
}
.res-tabs {
  display: flex;
  gap: 0;
  margin: 8px 0 16px;
  border-bottom: 1px solid #eef0f6;
}
.res-tabs a {
  padding: 12px 22px;
  color: #111;
  font-size: 15px;
  font-family: MiSans-Normal;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.res-tabs a.is-on {
  color: rgba(86, 82, 255, 1);
  font-family: MiSans-Semibold;
  font-weight: 600;
  border-bottom-color: rgba(86, 82, 255, 1);
}

.res-filter { list-style: none; margin: 0; padding: 0; }
.res-filter > li {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #eef0f6;
}
.res-filter > li[hidden] { display: none !important; }
.res-label {
  width: 88px;
  padding-top: 4px;
  color: #666;
  font-size: 13px;
  font-family: MiSans-Normal;
  line-height: 24px;
  flex-shrink: 0;
}
.res-tags { flex: 1; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.res-tags.is-collapse { max-height: 40px; overflow: hidden; }
.res-tag {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  color: #333;
  font-size: 13px;
  font-family: SourceHanSansCN-Normal;
  line-height: 28px;
  cursor: pointer;
  background: #f4f5fa;
}
.res-tag:hover { color: rgba(86, 82, 255, 1); }
.res-tag.is-on { background: rgba(86, 82, 255, 1); color: #fff; }
.res-expand {
  height: 28px;
  padding: 0 10px;
  color: rgba(86, 82, 255, 1);
  font-size: 13px;
  line-height: 28px;
  cursor: pointer;
}

.res-adv { display: flex; flex-wrap: wrap; gap: 8px; }
.res-drop { position: relative; }
.res-drop-btn {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #e5e6ef;
  border-radius: 4px;
  color: #333;
  font-size: 13px;
  line-height: 28px;
  cursor: pointer;
  background: #fff;
}
.res-drop-btn.is-on { border-color: rgba(86, 82, 255, 1); color: rgba(86, 82, 255, 1); }
.res-drop-list {
  display: none;
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 8;
  min-width: 120px;
  padding: 6px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
}
.res-drop.is-open .res-drop-list { display: block; }
.res-drop-list button {
  display: block;
  width: 100%;
  padding: 7px 14px;
  text-align: left;
  color: #333;
  font-size: 13px;
  cursor: pointer;
}
.res-drop-list button:hover { background: rgba(86, 82, 255, 0.06); color: rgba(86, 82, 255, 1); }

.res-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res-price input {
  width: 72px;
  height: 28px;
  border: 1px solid #e5e6ef;
  border-radius: 4px;
  padding: 0 8px;
  background: #fff;
  font-size: 13px;
}
.res-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 28px;
  cursor: pointer;
}
.res-btn--dark { background: #333; color: #fff; }
.res-btn--ghost { border: 1px solid #ccc; color: #666; }

.res-search { display: flex; align-items: center; margin-left: 16px; }
.res-search input {
  width: 180px;
  height: 32px;
  border: 1px solid #e5e6ef;
  border-radius: 4px 0 0 4px;
  padding: 0 10px;
  background: #fff;
  font-size: 13px;
}
.res-search button {
  width: 40px;
  height: 32px;
  border-radius: 0 4px 4px 0;
  background: rgba(86, 82, 255, 1);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.res-picked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.res-chip {
  height: 28px;
  padding: 0 8px 0 12px;
  border-radius: 14px;
  background: #f4f5fa;
  color: #333;
  font-size: 12px;
  line-height: 28px;
}
.res-chip button { margin-left: 4px; color: #999; cursor: pointer; font-size: 14px; }

.res-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}
.res-count { color: #111; font-size: 15px; font-family: MiSans-Semibold; }
.res-count em { color: rgba(86, 82, 255, 1); font-style: normal; }
.res-go {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(86, 82, 255, 1);
  color: #fff;
  font-size: 13px;
  line-height: 32px;
  text-decoration: none;
}
.res-go:hover { filter: brightness(1.08); }

.res-table-wrap { width: 100%; overflow-x: auto; }
.res-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.res-table th {
  background: #f7f8fc;
  color: #555;
  font-weight: 600;
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
}
.res-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid #f0f1f6;
  color: #333;
  vertical-align: middle;
}
.res-table td.is-name { text-align: center; max-width: 180px; }
.res-table td.is-name a { color: #0082e6; text-decoration: none; }
.res-table td.is-name a:hover { text-decoration: underline; }
.res-table td.is-name .res-logo { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; border-radius: 4px; object-fit: contain; }
.res-table td.is-remark { text-align: left; max-width: 280px; color: #888; font-size: 12px; }
.res-table .is-price { color: #ff7800; font-weight: 600; }
.res-ai { color: #555; font-size: 12px; line-height: 18px; }

.res-empty, .res-gate {
  padding: 48px 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
}
.res-gate a {
  display: inline-block;
  margin: 12px 6px 0;
  height: 34px;
  padding: 0 18px;
  border-radius: 17px;
  line-height: 34px;
  text-decoration: none;
}
.res-gate a.primary { background: rgba(86, 82, 255, 1); color: #fff; }
.res-gate a.ghost { border: 1px solid rgba(86, 82, 255, 1); color: rgba(86, 82, 255, 1); }

.res-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.res-pager button, .res-pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  line-height: 32px;
  text-align: center;
  font-size: 13px;
  color: #333;
  background: #fff;
  border: 1px solid #e5e6ef;
  cursor: pointer;
}
.res-pager button.is-on, .res-pager button:hover { background: rgba(86, 82, 255, 1); color: #fff; border-color: rgba(86, 82, 255, 1); }
.res-pager span { border: 0; background: transparent; cursor: default; }

.res-loading { padding: 40px; text-align: center; color: #999; }

.logo-popup {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  padding: 6px;
}
.logo-popup img { max-width: 220px; max-height: 140px; display: block; }

/* ===== 移动端适配（≤860px） ===== */
@media (max-width: 860px) {
  .res-page { min-width: 0; }
  .res-head { height: auto; padding-bottom: 20px; }
  .res-title { height: auto; margin: 16px 16px 0; font-size: 28px; line-height: 40px; }
  .res-sub { margin: 8px 16px 0; font-size: 13px; }
  .res-main { width: calc(100% - 24px); margin: 16px auto 32px; }
  .res-panel { padding: 8px 14px 16px; }
  .res-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .res-tabs a { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .res-filter > li { flex-wrap: wrap; gap: 6px 0; }
  .res-label { width: auto; flex-basis: 100%; padding-top: 2px; }
  .res-price { flex-wrap: wrap; gap: 8px; }
  .res-search { margin-left: 0; width: 100%; }
  .res-search input { width: auto; flex: 1; min-width: 0; }
  .res-toolbar { flex-wrap: wrap; gap: 10px; }
  .res-table { min-width: 640px; }
  .res-gate a { display: block; width: fit-content; margin: 12px auto 0; }
  .logo-popup { max-width: calc(100vw - 32px); }
}
