/* PC 端样式 —— 三栏布局 / 瀑布流 / 悬浮交互 */

body.pc-app {
  background: #FAFAFA;
  min-width: 1024px;
}

.pc-shell {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}

/* 左侧导航 */
.pc-sidebar {
  position: sticky; top: 0;
  height: 100vh; padding: 20px 14px;
  background: #fff; border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 4px;
}
.pc-brand { padding: 6px 12px 20px; font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }
.pc-nav {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: var(--r-md);
  font-size: 16px; font-weight: 500; color: var(--c-text-2);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer; position: relative;
}
.pc-nav:hover { background: var(--c-surface-2); color: var(--c-text); }
.pc-nav.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.pc-nav svg { width: 22px; height: 22px; }
.pc-nav .dot { position: absolute; top: 8px; left: 28px; }

.pc-publish-btn {
  margin-top: 14px; padding: 12px;
  background: var(--brand-grad); color: #fff;
  border-radius: var(--r-full); font-weight: 600; text-align: center;
  box-shadow: var(--sh-brand);
  transition: transform var(--dur-fast) var(--ease);
}
.pc-publish-btn:hover { transform: translateY(-1px) scale(1.01); }

.pc-sidebar-footer { margin-top: auto; font-size: 12px; color: var(--c-text-3); padding: 0 12px; }

/* 中间主列 */
.pc-main { padding: 20px 28px 40px; min-width: 0; }
.pc-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; background: rgba(250,250,250,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  margin-bottom: 6px;
}
.pc-search {
  flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-full);
  padding: 10px 18px; transition: border-color var(--dur-fast);
}
.pc-search:focus-within { border-color: var(--brand); }
.pc-search input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; }

.pc-tabs {
  display: flex; gap: 26px; padding: 4px 0 14px;
  border-bottom: 1px solid var(--c-divider);
}
.pc-tab {
  position: relative; padding: 6px 2px; font-size: 15px; color: var(--c-text-3);
  transition: color var(--dur-fast); cursor: pointer; font-weight: 500;
}
.pc-tab.active { color: var(--c-text); font-weight: 700; font-size: 16px; }
.pc-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pc-chip {
  padding: 6px 16px; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--c-border); font-size: 13px; color: var(--c-text-2);
  cursor: pointer; transition: all var(--dur-fast);
}
.pc-chip:hover { border-color: var(--brand); color: var(--brand); }
.pc-chip.active { background: var(--c-text); border-color: var(--c-text); color: #fff; }

/* 瀑布流 —— PC 4 列 */
.pc-feed { column-count: 4; column-gap: 14px; }
@media (max-width: 1280px) { .pc-feed { column-count: 3; } }
@media (max-width: 1024px) { .pc-feed { column-count: 2; } }

.pc-card {
  display: inline-block; width: 100%; margin-bottom: 14px;
  break-inside: avoid;
  background: #fff; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-s);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.pc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-m); }
.pc-card .cov { width: 100%; display: block; background: var(--c-surface-2); }
.pc-card .b { padding: 10px 12px 12px; }
.pc-card .t {
  font-size: 14px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 38px;
}
.pc-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--c-text-3); }
.pc-card .foot .usr { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pc-card .foot .usr img { width: 22px; height: 22px; border-radius: 50%; }
.pc-card .foot .usr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-card .like { display: flex; align-items: center; gap: 3px; }
.pc-card .like.active { color: var(--brand); }
.pc-card .price { color: var(--brand); font-weight: 700; }

/* 右侧栏 */
.pc-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 20px 24px 40px; border-left: 1px solid var(--c-border); background: #fff;
}
.pc-rail h3 { font-size: 15px; font-weight: 700; margin: 22px 0 12px; }
.pc-rail h3:first-child { margin-top: 0; }
.rail-item {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-divider);
  cursor: pointer;
}
.rail-item:hover .t { color: var(--brand); }
.rail-item .t { font-size: 14px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.rail-item .cov { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--c-surface-2); }

/* 详情页（PC） */
.pc-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 28px; max-width: 1200px; margin: 0 auto; }
.pc-detail-gallery img { width: 100%; border-radius: var(--r-md); margin-bottom: 10px; }
.pc-detail-info { position: sticky; top: 20px; }

/* 用户菜单 */
.pc-user-menu {
  position: absolute; right: 0; top: 48px; min-width: 200px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-l);
  padding: 6px; z-index: 99;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: all var(--dur-fast);
}
.pc-user-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pc-user-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r-sm); font-size: 14px;
}
.pc-user-menu a:hover { background: var(--c-surface-2); }
