/* 商机与动态 — 一比一还原 design-mocks/inner-04-posts.png */

body.qin-shell[data-page="posts"] {
  --posts-red: #8b1a1a;
  --posts-ink: #2c2624;
  --posts-muted: #8a827a;
  --posts-body: #5c564f;
  --posts-bronze: #a67c52;
  --posts-card: #f7f2e8;
  --posts-radius: 14px;
}

/* 右侧长城水墨底纹 */
body.qin-shell[data-page="posts"]::before {
  background-image: url("/img/home/wm-posts.jpg");
  background-size: min(780px, 68vw) auto;
  background-position: right -4% top 4%;
  background-repeat: no-repeat;
  opacity: 0.92;
  mix-blend-mode: multiply;
}

body.qin-shell[data-page="posts"]::after {
  display: none;
}

body.qin-shell[data-page="posts"] .qin-footer {
  position: relative;
  z-index: 1;
  border-top: none;
  background: transparent;
  margin-top: 40px;
}

/* 标题行：左题 + 右副标 */
body.qin-shell[data-page="posts"] .qin-posts-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px 22px;
  display: flex;
  align-items: baseline;
  gap: 18px 22px;
  flex-wrap: wrap;
}

body.qin-shell[data-page="posts"] .qin-posts-hero h1 {
  font-family: var(--qin-font-serif);
  font-size: clamp(34px, 4.2vw, 44px);
  font-weight: 700;
  color: var(--posts-red);
  letter-spacing: 0.14em;
  margin: 0;
  line-height: 1.15;
}

body.qin-shell[data-page="posts"] .qin-posts-hero .qin-sub {
  margin: 0;
  color: #9a9188;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 400;
}

body.qin-shell[data-page="posts"] .qin-posts-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

body.qin-shell[data-page="posts"] .qin-posts-toolbar {
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(247, 242, 232, 0.92);
  border: 1px solid rgba(168, 140, 100, 0.24);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(60, 48, 40, 0.05);
}

body.qin-shell[data-page="posts"] .qin-posts-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.qin-shell[data-page="posts"] .qin-posts-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 26, 26, 0.22);
  background: transparent;
  color: var(--posts-red);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

body.qin-shell[data-page="posts"] .qin-posts-chip.active,
body.qin-shell[data-page="posts"] .qin-posts-chip:hover {
  background: var(--posts-red);
  color: #fff;
  border-color: var(--posts-red);
}

body.qin-shell[data-page="posts"] .qin-posts-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── 头条卡（内嵌圆角图，贴近效果图） ── */
body.qin-shell[data-page="posts"] .qin-post-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 0 8px;
  background: var(--posts-card);
  border-radius: var(--posts-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(60, 48, 40, 0.05);
  border: 1px solid rgba(168, 140, 100, 0.22);
  min-height: 268px;
  padding: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body.qin-shell[data-page="posts"] .qin-post-featured:hover {
  box-shadow: 0 14px 36px rgba(60, 48, 40, 0.12);
  transform: translateY(-2px);
}

body.qin-shell[data-page="posts"] .qin-post-featured-photo {
  display: block;
  min-height: 240px;
  height: 100%;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #ebe4d8;
  filter: sepia(0.16) saturate(0.9) brightness(1.02);
}

body.qin-shell[data-page="posts"] .qin-post-featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 14px 18px;
  min-width: 0;
}

body.qin-shell[data-page="posts"] .qin-post-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--posts-bronze);
  border: 1px solid rgba(166, 124, 82, 0.55);
  border-radius: 3px;
  background: transparent;
  line-height: 1.4;
}

body.qin-shell[data-page="posts"] .qin-post-tag-enterprise {
  color: #7a4a1e;
  border-color: rgba(122, 74, 30, 0.45);
  background: rgba(166, 124, 82, 0.08);
}

body.qin-shell[data-page="posts"] .qin-post-tag-individual {
  color: #5c4a6e;
  border-color: rgba(92, 74, 110, 0.4);
  background: rgba(92, 74, 110, 0.06);
}

body.qin-shell[data-page="posts"] .qin-post-tag-news {
  color: #4a5f6e;
  border-color: rgba(74, 95, 110, 0.35);
  background: rgba(74, 95, 110, 0.06);
}

body.qin-shell[data-page="posts"] .qin-post-row-body .qin-post-tag {
  margin-bottom: 2px;
}

body.qin-shell[data-page="posts"] .qin-post-featured-body h2 {
  margin: 0;
  font-family: var(--qin-font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--posts-red);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

body.qin-shell[data-page="posts"] .qin-post-featured-body .post-summary {
  margin: 0;
  color: var(--posts-body);
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36em;
}

/* ── 列表卡 ── */
body.qin-shell[data-page="posts"] .qin-post-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0 4px;
  background: var(--posts-card);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 22px rgba(60, 48, 40, 0.04);
  border: 1px solid rgba(168, 140, 100, 0.2);
  min-height: 128px;
  padding: 12px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

body.qin-shell[data-page="posts"] .qin-post-row:hover {
  box-shadow: 0 10px 28px rgba(60, 48, 40, 0.1);
  transform: translateY(-1px);
}

body.qin-shell[data-page="posts"] .qin-post-row-photo {
  display: block;
  min-height: 104px;
  height: 100%;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #ebe4d8;
  filter: sepia(0.16) saturate(0.9) brightness(1.02);
}

body.qin-shell[data-page="posts"] .qin-post-row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px 6px 14px;
  min-width: 0;
}

body.qin-shell[data-page="posts"] .qin-post-row-body h3 {
  margin: 0;
  font-family: var(--qin-font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--posts-ink);
  line-height: 1.4;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.qin-shell[data-page="posts"] .qin-post-row-body .post-summary {
  margin: 0;
  color: var(--posts-body);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 共用页脚 */
body.qin-shell[data-page="posts"] .qin-post-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
}

body.qin-shell[data-page="posts"] .qin-post-meta {
  font-size: 12px;
  color: var(--posts-muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.qin-shell[data-page="posts"] .qin-post-more {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--posts-red);
  white-space: nowrap;
}

body.qin-shell[data-page="posts"] .qin-post-row .qin-post-more {
  color: var(--posts-bronze);
}

body.qin-shell[data-page="posts"] .qin-post-featured:hover .qin-post-more,
body.qin-shell[data-page="posts"] .qin-post-row:hover .qin-post-more {
  opacity: 0.85;
}

body.qin-shell[data-page="posts"] .empty-state {
  text-align: center;
  color: var(--posts-muted);
  padding: 56px 16px;
}

/* 分页（效果图无，弱化保留） */
body.qin-shell[data-page="posts"] .qin-posts-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

body.qin-shell[data-page="posts"] .qin-posts-page-info {
  font-size: 13px;
  color: var(--posts-muted);
}

body.qin-shell[data-page="posts"] .qin-posts-page-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(166, 124, 82, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: var(--posts-bronze);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

body.qin-shell[data-page="posts"] .qin-posts-page-btn:hover:not(:disabled) {
  border-color: var(--posts-red);
  color: var(--posts-red);
}

body.qin-shell[data-page="posts"] .qin-posts-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  body.qin-shell[data-page="posts"] .qin-post-featured {
    grid-template-columns: 1fr;
  }

  body.qin-shell[data-page="posts"] .qin-post-featured-photo {
    min-height: 200px;
  }

  body.qin-shell[data-page="posts"] .qin-post-row {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.qin-shell[data-page="posts"] .qin-posts-hero,
  body.qin-shell[data-page="posts"] .qin-posts-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.qin-shell[data-page="posts"] .qin-posts-hero {
    padding-top: 28px;
    padding-bottom: 16px;
  }

  body.qin-shell[data-page="posts"] .qin-post-featured-body {
    padding: 22px 20px 20px;
  }

  body.qin-shell[data-page="posts"] .qin-post-row {
    grid-template-columns: 1fr;
  }

  body.qin-shell[data-page="posts"] .qin-post-row-photo {
    min-height: 150px;
  }

  body.qin-shell[data-page="posts"] .qin-post-row-body {
    padding: 16px 18px 16px;
  }

  body.qin-shell[data-page="posts"]::before {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.qin-shell[data-page="posts"] .qin-post-featured,
  body.qin-shell[data-page="posts"] .qin-post-row {
    transition: none;
  }
}
