/* PC 首页：108 社区式信息流，小红书红主题 */
.pc-home {
  --xh-red: #ff2442;
  --xh-red-dark: #e61f3a;
  --xh-red-soft: #fff1f3;
  --text-main: #222;
  --text-sub: #666;
  --text-light: #999;
  --line: #ededed;
  --page-bg: #f6f7f8;
  --card-bg: #fff;
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.pc-home * { box-sizing: border-box; }
.pc-home a { color: inherit; text-decoration: none; }
.pc-home a:hover { color: var(--xh-red); }
.pc-home img { display: block; max-width: 100%; }
.pc-home button,
.pc-home input { font: inherit; }
.pch-wrap { width: 1280px; margin: 0 auto; }

.pch-topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.pch-topbar .pch-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.pch-brand {
  width: auto;
  min-width: 126px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 0;
  font-weight: 800;
}
.pch-brand img {
  max-width: 96px;
  max-height: 42px;
  object-fit: contain;
}
.pch-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.pch-city {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 38px;
  margin-left: -18px;
  color: #22c55e;
  line-height: 1.15;
}
.pch-city strong { font-size: 13px; letter-spacing: 0; }
.pch-city a { color: #22c55e; font-size: 12px; }
.pch-topnav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #444;
}
.pch-topnav a {
  position: relative;
  height: 72px;
  display: inline-flex;
  align-items: center;
  color: #222;
  font-size: 14px;
}
.pch-topnav a.active,
.pch-topnav a:hover { color: var(--xh-red); }
.pch-topnav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--xh-red);
  transform: translateX(-50%);
}
.pch-new-link span {
  position: absolute;
  top: 17px;
  right: -22px;
  min-width: 30px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px 8px 8px 2px;
  background: var(--xh-red);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.pch-search {
  position: relative;
  width: 360px;
  height: 36px;
  display: flex;
  align-items: center;
  margin-left: 30px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #f0f0f0;
}
.pch-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 16px 0 38px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
}
.pch-search::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  margin-left: 16px;
  border: 2px solid #c9c9c9;
  border-radius: 50%;
}
.pch-search::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  margin-left: 29px;
  margin-top: 13px;
  background: #c9c9c9;
  transform: rotate(45deg);
  transform-origin: left center;
}
.pch-search button {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.pch-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
#pch-login-btns { display: flex; gap: 10px; }
.pch-outline-btn,
.pch-solid-btn,
.pch-login-btn,
.pch-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: 32px;
  padding: 0 6px;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  transition: .18s ease;
  font-size: 14px;
}
.pch-outline-btn,
.pch-login-btn {
  background: #fff;
  color: #222;
}
.pch-solid-btn,
.pch-register-btn {
  background: #fff;
  color: #222;
}
.pch-outline-btn:hover,
.pch-login-btn:hover {
  background: #fff;
  color: var(--xh-red);
}
.pch-solid-btn:hover,
.pch-register-btn:hover {
  background: #fff;
  color: var(--xh-red);
}

.pch-catnav {
  display: none;
}

.pch-main {
  width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 112px minmax(0, 760px) 300px;
  gap: 24px;
  align-items: start;
}
.pch-leftnav {
  position: sticky;
  top: 84px;
  padding-top: 4px;
}
.pch-leftnav-inner {
  min-height: 590px;
  padding: 8px 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.pch-leftnav .pch-cat-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  overflow: hidden;
  color: #222;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 0;
}
.pch-leftnav .pch-cat-item:hover,
.pch-leftnav .pch-cat-item.active {
  color: var(--xh-red);
  background: #fff7f8;
  font-weight: 700;
}
.pch-leftnav .pch-cat-item.active {
  box-shadow: inset 3px 0 0 var(--xh-red);
}
.pch-content {
  min-width: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.pch-feed { background: #fff; }
.pch-channel-panel,
.pch-feed-head,
.pch-card,
.pch-sidebar-block {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.pch-channel-panel {
  padding: 18px 20px 20px;
  margin-bottom: 14px;
}
.pch-panel-head,
.pch-feed-head,
.pch-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pch-panel-head { margin-bottom: 14px; }
.pch-panel-head h2,
.pch-feed-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.pch-panel-head span,
.pch-feed-head span {
  color: var(--text-light);
  font-size: 14px;
}
.pch-channel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pch-channel-card {
  height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #333;
  cursor: pointer;
}
.pch-channel-card span {
  display: inline-block;
  max-width: 100%;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pch-channel-card:hover,
.pch-channel-card.active {
  background: var(--xh-red-soft);
  color: var(--xh-red);
  font-weight: 700;
}

.pch-feed-head {
  height: 74px;
  padding: 0 20px;
  margin-bottom: 0;
  border: 0;
  background: transparent;
}
.pch-feed-head a {
  color: var(--xh-red);
  font-size: 13px;
}
.pch-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pch-card {
  display: flex;
  gap: 24px;
  padding: 26px 20px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-top: 0;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease;
}
.pch-card:hover { background: #fff; box-shadow: inset 3px 0 0 var(--xh-red-soft); }
.pch-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pch-card-main { min-width: 0; }
.pch-card-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  margin: 0 6px 8px 0;
  border-radius: 3px;
  background: var(--xh-red-soft);
  color: var(--xh-red);
  font-size: 12px;
}
.pch-card-tag.tag-house { background: #eef6ff; color: #1677ff; }
.pch-card-tag.tag-fenlei { background: #f2f8ee; color: #5b9a27; }
.pch-card-tag.tag-article { background: #f5f1ff; color: #6b4bd8; }
.pch-card-tag.tag-new { background: #fff4de; color: #d48806; }
.pch-card-tag.tag-top { background: var(--xh-red); color: #fff; }
.pch-card-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pch-card-title a:hover { color: var(--xh-red); }
.pch-card-desc {
  max-height: 52px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.65;
}
.pch-card-price {
  margin-bottom: 8px;
  color: var(--xh-red);
  font-size: 16px;
  font-weight: 800;
}
.pch-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 14px;
}
.pch-author { color: #777; }
.pch-stat { color: var(--text-light); }
.pch-card-thumb {
  flex: 0 0 210px;
  width: 210px;
  height: 132px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0f0;
  align-self: center;
}
.pch-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.pch-card:hover .pch-card-thumb img { transform: scale(1.04); }
.pch-card.no-thumb .pch-card-thumb { display: none; }

.pch-sidebar {
  position: sticky;
  top: 84px;
  padding-top: 0;
}
.pch-sidebar-block {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 6px;
}
.pch-sidebar-title {
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
}
.pch-sidebar-title a {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
}
.pch-login-card {
  padding: 24px 18px;
  text-align: center;
}
.pch-login-card p {
  margin: 0 0 16px;
  color: var(--text-sub);
  font-size: 16px;
}
.pch-login-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pch-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pch-user-card strong { font-size: 18px; }
.pch-user-card span {
  color: var(--text-light);
  font-size: 13px;
}
.pch-publish-card a,
.pch-side-link-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  color: #555;
  font-size: 14px;
}
.pch-publish-card a:last-child,
.pch-side-link-list a:last-child { border-bottom: 0; }
.pch-publish-card a:hover,
.pch-side-link-list a:hover { color: var(--xh-red); }
.pch-hot-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.pch-hot-item:last-child { border-bottom: 0; }
.pch-hot-rank {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #999;
  text-align: center;
  line-height: 22px;
  font-size: 12px;
  font-weight: 800;
}
.pch-hot-rank.top1,
.pch-hot-rank.top2,
.pch-hot-rank.top3 {
  background: var(--xh-red);
  color: #fff;
}
.pch-hot-info { min-width: 0; }
.pch-hot-title {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pch-hot-meta {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 12px;
}

.pch-loading,
.pch-no-more,
.pch-empty {
  padding: 28px 0;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-light);
  text-align: center;
}
.pch-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid #f1ccd2;
  border-top-color: var(--xh-red);
  border-radius: 50%;
  vertical-align: middle;
  animation: pchSpin .8s linear infinite;
}
@keyframes pchSpin { to { transform: rotate(360deg); } }

.pch-footer {
  margin-top: 26px;
  padding: 28px 0 34px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.pch-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
  color: #555;
}
.pch-footer-info {
  color: var(--text-light);
  font-size: 13px;
}

.pch-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
}
.pch-modal-overlay.show { display: flex; }
.pch-modal {
  width: 400px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 60px rgba(0,0,0,.22);
}
.pch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.pch-modal-header h3 { margin: 0; font-size: 18px; }
.pch-modal-close {
  border: 0;
  background: transparent;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
}
.pch-modal-body { padding: 22px 20px; }
.pch-login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pch-login-tab {
  flex: 1;
  position: relative;
  padding: 10px 0;
  text-align: center;
  color: var(--text-sub);
  cursor: pointer;
}
.pch-login-tab.active {
  color: var(--xh-red);
  font-weight: 700;
}
.pch-login-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--xh-red);
  transform: translateX(-50%);
}
.pch-login-panel { display: none; }
.pch-login-panel.active { display: block; }
.pch-wechat-box { text-align: center; }
.pch-qr-wrap {
  width: 166px;
  height: 166px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fafafa;
}
.pch-qr-wrap img { width: 146px; height: 146px; }
.pch-qr-tip,
.pch-qr-status {
  color: var(--text-light);
  font-size: 13px;
}
.pch-qr-status.scanned,
.pch-qr-tip.refresh { color: var(--xh-red); }
.pch-qr-status.confirmed { color: #2da44e; }
.pch-form-group { margin-bottom: 15px; }
.pch-form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-sub);
  font-size: 13px;
}
.pch-form-group input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
}
.pch-form-group input:focus { border-color: var(--xh-red); }
.pch-form-submit {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--xh-red);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .pch-wrap,
  .pch-main { width: 1120px; }
  .pch-topbar .pch-wrap { gap: 22px; }
  .pch-search { width: 300px; margin-left: 8px; }
  .pch-main { grid-template-columns: 104px minmax(0, 680px) 284px; gap: 18px; }
  .pch-channel-grid { grid-template-columns: repeat(4, 1fr); }
  .pch-card-thumb { flex-basis: 180px; width: 180px; height: 118px; }
}
@media (max-width: 980px) {
  .pch-wrap,
  .pch-main { width: auto; margin-left: 12px; margin-right: 12px; }
  .pch-main { display: block; }
  .pch-leftnav { display: none; }
  .pch-sidebar { display: none; }
  .pch-brand { width: auto; }
  .pch-brand span { display: none; }
}
@media (max-width: 640px) {
  .pch-city,
  .pch-header-right { display: none; }
  .pch-topbar .pch-wrap { gap: 12px; }
  .pch-search { width: auto; flex: 1; }
  .pch-topnav { gap: 16px; }
  .pch-channel-grid { grid-template-columns: repeat(3, 1fr); }
  .pch-card { padding: 14px; gap: 12px; }
  .pch-card-thumb { flex-basis: 112px; width: 112px; height: 84px; }
  .pch-card-title { font-size: 16px; }
  .pch-card-desc { display: none; }
}
