/*!
 * post-list.css
 * 来源：resources/views/web/post/list.blade.php 的内联 <style>
 * 说明：仅为把样式从 HTML 里挪出来（避免慢网速下的样式错位 / FOUC），CSS 内容与原内联一致。
 */

/* 仅屏幕阅读器可见的主标题（本页没引 channel.css，单独补一份） */
.pl-page .ch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* 精准筛选头部提示文案跟着改（类型已上移到子分类） */
.pl-panel-title em { font-style: normal; }

/* ============ 设计变量 ============ */
.pl-page {
  --pl-brand: #087e78;
  --pl-brand-700: #066a65;
  --pl-brand-100: #e9f7f5;
  --pl-gold: #b8873b;
  --pl-gold-100: #fdf6e9;
  --pl-ink: #0b1f1e;
  --pl-text: #1d2939;
  --pl-text-2: #475467;
  --pl-muted: #7b8794;
  --pl-muted-2: #9aa5b1;
  --pl-line: #e9eef3;
  --pl-line-2: #dce4ea;
  --pl-bg: #f5f7fb;
  --pl-radius: 16px;
  --pl-shadow-sm: 0 4px 14px rgba(16, 24, 40, .04);
  --pl-shadow-md: 0 14px 34px rgba(16, 24, 40, .08);
  padding-bottom: 60px;
  background: var(--pl-bg);
  color: var(--pl-text);
  -webkit-font-smoothing: antialiased;
}
.pl-page a { text-decoration: none; }
.pl-page .pl-container {
  width: min(1450px, calc(100% - 40px));
  /* 只做水平居中：避免 margin 简写把 .pl-body 的 margin-top 负值覆盖为 0 */
  margin-left: auto;
  margin-right: auto;
}

/* ============ 头部 ============ */
.pl-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 62px;
  background: linear-gradient(135deg, #0a2624 0%, #0f3b38 52%, #092a28 100%);
}
.pl-hero-glow {
  position: absolute;
  top: -160px;
  right: -80px;
  width: 520px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(45, 212, 191, .22), transparent 62%);
  pointer-events: none;
}
.pl-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 88%);
  pointer-events: none;
}
.pl-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, .55), transparent);
  content: '';
}
.pl-hero-inner { position: relative; z-index: 1; }

.pl-crumb {
  margin-bottom: 20px;
  color: rgba(214, 235, 232, .62);
  font-size: 12px;
  letter-spacing: .2px;
}
.pl-crumb a { color: rgba(214, 235, 232, .82); }
.pl-crumb a:hover { color: #fff; }
.pl-crumb span { margin: 0 5px; }
.pl-crumb .on:first-child { color: rgba(214, 235, 232, .5); }

.pl-hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.pl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(126, 231, 214, .22);
  border-radius: 100px;
  background: rgba(126, 231, 214, .08);
  color: #8fe6d8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
}
.pl-hero-copy h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.25;
}
.pl-hero-copy p {
  margin: 0;
  max-width: 560px;
  color: rgba(206, 227, 224, .72);
  font-size: 13.5px;
  line-height: 1.7;
}

.pl-hero-stats {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(6px);
}
.pl-stat {
  min-width: 106px;
  padding: 14px 20px;
  text-align: center;
}
.pl-stat + .pl-stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.pl-stat strong {
  display: block;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pl-stat span {
  display: block;
  margin-top: 3px;
  color: rgba(206, 227, 224, .6);
  font-size: 11.5px;
  letter-spacing: .3px;
}
/* ============ 内容区（上浮覆盖头部） ============ */
.pl-body {
  position: relative;
  z-index: 2;
  /* 原来 -38px 是为了把筛选面板压在深色 hero 底部；hero 换成 .rsc-top 后深色带上没有额外留白，
     改回正常流并补 20px 间距 */
  margin-top: 0;
  padding-top: 20px;
}
.pl-body .pl-panel { margin-top: 0; }

/* ============ 筛选面板 ============ */
.pl-panel {
  margin-top: 16px;
  padding: 16px 22px 8px;
  scroll-margin-top: 72px;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: #fff;
  box-shadow: var(--pl-shadow-sm);
}
.pl-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f1f4f7;
}
.pl-panel-title { display: flex; align-items: center; gap: 8px; }
.pl-panel-mark {
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0a8f88, #067069);
}
.pl-panel-title strong { color: #263648; font-size: 15px; font-weight: 700; }
.pl-panel-title em {
  color: var(--pl-muted-2);
  font-size: 12px;
  font-style: normal;
}
.pl-panel-actions { display: flex; align-items: center; gap: 14px; }
.pl-panel-count { color: var(--pl-muted); font-size: 12px; }
.pl-panel-count b { color: var(--pl-brand); font-variant-numeric: tabular-nums; }
.pl-panel-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pl-muted-2);
  font-size: 12px;
  transition: color .15s ease;
}
.pl-panel-reset:hover { color: var(--pl-brand); }

.pl-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #f0f3f6;
}
.pl-filter-row:last-child { border-bottom: 0; }
.pl-filter-label {
  flex: 0 0 68px;
  padding-top: 5px;
  color: var(--pl-text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
}
.pl-filter-items {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px 4px;
  min-width: 0;
}
.pl-pill {
  padding: 5px 12px;
  border-radius: 7px;
  color: var(--pl-text-2);
  font-size: 13px;
  line-height: 19px;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.pl-pill:hover { background: var(--pl-brand-100); color: var(--pl-brand); }
.pl-pill:focus-visible {
  outline: 2px solid var(--pl-brand);
  outline-offset: 1px;
}
.pl-pill.on {
  background: var(--pl-brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(8, 126, 120, .22);
}
/* 合作地区：行内省市筛选 */
.pl-filter-region { min-width: 0; width: 100%; }
.pl-filter-row-region { padding-bottom: 12px; }

/* ============ 已选条件 ============ */
.pl-applied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 18px;
  border: 1px solid #e2f0ee;
  border-radius: 12px;
  background: #f2fbf9;
}
.pl-applied-label {
  margin-right: 2px;
  color: var(--pl-brand-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}
.pl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 11px;
  border: 1px solid #cfe9e5;
  border-radius: 100px;
  background: #fff;
  color: var(--pl-brand-700);
  font-size: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pl-chip:hover { border-color: #a9dcd5; box-shadow: 0 2px 8px rgba(8, 126, 120, .12); }
.pl-chip i { color: #9db8b4; font-size: 10px; }
.pl-chip:hover i { color: #d9534f; }
.pl-applied-clear {
  margin-left: auto;
  color: var(--pl-muted);
  font-size: 12px;
}
.pl-applied-clear:hover { color: #d9534f; }

/* ============ 布局 ============ */
.pl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
  margin-top: 16px;
}

/* ============ 工具栏 ============ */
.pl-toolbar {
  position: sticky;
  /* 子分类吸顶条（.rsc-catsbar）已钉在视口顶，这里用它的高度（JS 实测写入 --rsc-sticky-h）当下偏移，跟着叠在下面 */
  top: var(--rsc-sticky-h, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 11px 18px;
  border: 1px solid var(--pl-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--pl-shadow-sm);
  backdrop-filter: blur(10px);
}
.pl-toolbar-count { display: flex; align-items: center; gap: 9px; }
.pl-toolbar-mark {
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0a8f88, #067069);
}
.pl-toolbar-count strong { color: #263648; font-size: 15px; font-weight: 700; }
.pl-toolbar-count > span:last-child { color: var(--pl-muted-2); font-size: 12px; }
.pl-toolbar-count b {
  color: var(--pl-brand);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pl-toolbar-tools { display: flex; align-items: center; gap: 10px; }

.pl-toolbar-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
  box-sizing: border-box;
  max-width: 230px;
  height: 32px;
  margin: 0 12px;
  padding: 0 11px;
  border: 1px solid var(--pl-line-2);
  border-radius: 8px;
  background: #fbfcfd;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.pl-toolbar-search:focus-within {
  border-color: var(--pl-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 126, 120, .09);
}
.pl-toolbar-search i { color: #a7b2bd; font-size: 11.5px; }
.pl-toolbar-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--pl-text);
  font-size: 12.5px;
}
.pl-toolbar-search input::placeholder { color: #b3bcc7; }

.pl-sort {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--pl-line);
  border-radius: 9px;
  background: #f7f9fb;
}
.pl-sort-item {
  padding: 5px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #778393;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.pl-sort-item:hover { color: var(--pl-brand); }
.pl-sort-item.on {
  background: #fff;
  color: var(--pl-brand);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(16, 24, 40, .1);
}
.pl-view {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--pl-line);
  border-radius: 9px;
  background: #f7f9fb;
}
.pl-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8e99a6;
  font-size: 12px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.pl-view-btn:hover { color: var(--pl-brand); }
.pl-view-btn.on {
  background: #fff;
  color: var(--pl-brand);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .1);
}

/* ============ 分页 ============ */
.pl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--pl-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--pl-shadow-sm);
}
.pl-pagination-info { flex: 0 0 auto; color: var(--pl-muted-2); font-size: 12px; white-space: nowrap; }
.pl-pagination .pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.pl-pagination .page-item { margin: 0; }
.pl-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--pl-line);
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 12.5px;
}
.pl-pagination .page-link:hover {
  border-color: #b9ded9;
  background: #f2fbf9;
  color: var(--pl-brand);
}
.pl-pagination .page-item.active .page-link {
  border-color: var(--pl-brand);
  background: var(--pl-brand);
  color: #fff;
}
.pl-pagination .page-item.disabled .page-link {
  border-color: var(--pl-line);
  background: #f8f9fb;
  color: #c8cfd8;
}

/* ============ 空状态 ============ */
.pl-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 56px 20px;
  border: 1px dashed #dbe3ea;
  border-radius: var(--pl-radius);
  background: #fff;
  text-align: center;
}
.pl-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #f0faf8;
  color: var(--pl-brand);
  font-size: 20px;
}
.pl-empty p { margin: 0 0 6px; color: #344054; font-size: 15px; font-weight: 600; }
.pl-empty small { display: block; margin-bottom: 16px; color: var(--pl-muted-2); font-size: 12.5px; }
.pl-empty-actions { display: flex; gap: 10px; }
.pl-empty-actions .pl-btn { height: 34px; padding: 0 18px; }

/* ============ 侧栏 ============ */
.pl-side { display: grid; gap: 14px; }
.pl-side-card {
  overflow: hidden;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: #fff;
  box-shadow: var(--pl-shadow-sm);
}
.pl-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 11px;
  border-bottom: 1px solid #f2f5f8;
}
.pl-side-title {
  position: relative;
  padding-left: 11px;
  color: #263648;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
}
.pl-side-title::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, #0a8f88, #067069);
  content: '';
  transform: translateY(-50%);
}
.pl-side-more { color: var(--pl-muted-2); font-size: 11.5px; }
.pl-side-more:hover { color: var(--pl-brand); }

.pl-side-list { padding: 4px 8px 8px; }
.pl-side-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.pl-side-item + .pl-side-item { border-top: 1px dashed #f2f5f8; }
.pl-side-item:hover { background: #f8fcfb; }
.pl-side-rank {
  flex: 0 0 auto;
  width: 18px;
  color: #c3cbd4;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}
.pl-side-item:nth-child(1) .pl-side-rank { color: #c9922f; }
.pl-side-item:nth-child(2) .pl-side-rank { color: #a9b3bd; }
.pl-side-item:nth-child(3) .pl-side-rank { color: #bf9068; }
.pl-side-copy { min-width: 0; }
.pl-side-item-title {
  display: -webkit-box;
  overflow: hidden;
  color: #3f4d5a;
  font-size: 12.5px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pl-side-item:hover .pl-side-item-title { color: var(--pl-brand); }
.pl-side-date { display: block; margin-top: 3px; color: #adb7c1; font-size: 11px; }
.pl-side-empty { padding: 22px 16px; color: var(--pl-muted-2); font-size: 12.5px; text-align: center; }

.pl-side-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 16px 16px; }
.pl-side-tag {
  padding: 4px 10px;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fafbfc;
  color: #5c6b77;
  font-size: 12px;
  transition: all .15s ease;
}
.pl-side-tag:hover {
  border-color: #b9ded9;
  background: #f2fbf9;
  color: var(--pl-brand);
}

.pl-side-cta {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--pl-radius);
  background: linear-gradient(140deg, #0b2f2c 0%, #0e423d 60%, #0a302d 100%);
  color: #fff;
}
.pl-side-cta::after {
  position: absolute;
  top: -50px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 219, 199, .28), transparent 68%);
  content: '';
}
.pl-side-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid rgba(126, 231, 214, .28);
  border-radius: 10px;
  background: rgba(126, 231, 214, .12);
  color: #8fe6d8;
  font-size: 14px;
}
.pl-side-cta strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 700; }
.pl-side-cta p {
  margin: 0 0 13px;
  color: rgba(206, 227, 224, .68);
  font-size: 12px;
  line-height: 1.6;
}
.pl-side-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  background: #fff;
  color: #0a4a45;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pl-side-cta a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

.pl-side-wx { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.pl-side-wx-copy { display: flex; flex-direction: column; gap: 3px; }
.pl-side-wx-copy strong { color: #35424e; font-size: 12.5px; font-weight: 700; }
.pl-side-wx-copy span { color: var(--pl-muted-2); font-size: 11.5px; }
.pl-side-wx-copy em { color: #b3bcc7; font-size: 10.5px; font-style: normal; }
.pl-side-wx img {
  width: 62px;
  height: 62px;
  padding: 2px;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  background: #fff;
}

/* ============ 响应式 ============ */@media (max-width: 1080px) {
  .pl-layout { grid-template-columns: minmax(0, 1fr); }
  .pl-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-side-cta { grid-column: span 2; }
}
@media (max-width: 860px) {
  .pl-hero-main { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pl-hero-copy h1 { font-size: 26px; }
  .pl-hero-stats { width: 100%; }
  .pl-stat { flex: 1; min-width: 0; padding: 12px 10px; }
  .pl-toolbar { flex-wrap: wrap; padding: 11px 14px; }
  .pl-toolbar-search { order: 3; width: 100%; max-width: none; margin: 9px 0 0; }
  .pl-toolbar-tools { width: 100%; justify-content: space-between; }
  .pl-sort { flex: 1; overflow-x: auto; }
  .pl-sort-item { padding: 5px 9px; }
  .pl-items.is-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-pagination { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pl-pagination .pagination { flex-wrap: wrap; gap: 6px; }
  .pl-pagination .page-item { margin-left: 0; }
}
@media (max-width: 640px) {
  .pl-page .pl-container { width: calc(100% - 24px); }
  .pl-hero { padding: 16px 0 54px; }
  .pl-hero-copy h1 { font-size: 22px; }
  .pl-hero-copy p { font-size: 12.5px; }
  .pl-search { padding: 12px; }
  .pl-search-field { height: 44px; padding-left: 12px; }
  .pl-search-field button { padding: 0 14px; }
  .pl-hotwords { display: none; }
  .pl-panel { padding: 14px 14px 6px; }
  .pl-panel-head { flex-wrap: wrap; gap: 8px; }
  .pl-panel-title em { display: none; }
  .pl-filter-row { flex-direction: column; gap: 6px; }
  .pl-filter-label { flex-basis: auto; padding-top: 0; }
  /* 卡片内部移动端样式统一在 post-card.css 维护，此处不再重复覆盖 */
  .pl-side { grid-template-columns: minmax(0, 1fr); }
  .pl-side-cta { grid-column: span 1; }
  .pl-applied { padding: 10px 12px; }
  .pl-applied-clear { margin-left: 0; }
}
