/* PC 资料库 · 黑金异形卡片 */
.pc-shop-page {
  --h-bg: #080808;
  --h-card: #141414;
  --h-card-hover: #1a1816;
  --h-gold: #d4af37;
  --h-gold-light: #f5d76e;
  --h-text: #f5efe4;
  --h-muted: #8d877e;
  --h-line: rgba(255, 255, 255, 0.08);
}

body.pc-app.pc-shop-page {
  background: var(--h-bg);
  color: var(--h-text);
}

.pc-shop-page .pc-main {
  background: var(--h-bg);
}

.pc-shop-page .pc-content {
  padding-top: 18px;
  padding-bottom: 28px;
}

.pc-shop-page .pc-page-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--h-line);
}

.pc-shop-page .pc-page-title {
  color: var(--h-text);
}

.pc-shop-page .pc-page-sub {
  color: var(--h-muted);
}

/* 分类筛选 */
.pc-shop-page .pc-shop-filter {
  margin-bottom: 16px;
}

.pc-shop-page .pc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.pc-shop-page .pc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 36px;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 12px 12px 12px 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: #cfc8bc;
  background: var(--h-card);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.pc-shop-page .pc-tab:hover {
  color: var(--h-gold-light);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-1px);
}

.pc-shop-page .pc-tab.is-active {
  color: #1a1200;
  background: linear-gradient(135deg, #f5d76e, #d4af37);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.22);
  border-radius: 12px 12px 4px 12px;
}

/* 工具栏 */
.pc-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.pc-shop-toolbar-count {
  font-size: 13px;
  color: var(--h-muted);
}

.pc-shop-toolbar-count strong {
  color: var(--h-gold-light);
  font-weight: 800;
  margin: 0 2px;
}

.pc-shop-toolbar-hint {
  font-size: 12px;
  color: #7a746c;
}

/* 资料列表 */
.pc-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pc-shop-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}

.pc-shop-card-shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 20px 20px 20px 6px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.02));
  transform: rotate(-1.2deg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pc-shop-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 14px 16px 12px;
  border-radius: 20px 20px 20px 6px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
    linear-gradient(155deg, #1f1b18 0%, #141414 48%, #101010 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pc-shop-card-inner::after {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: rgba(212, 175, 55, 0.06);
  transform: rotate(24deg);
  pointer-events: none;
}

.pc-shop-card:hover .pc-shop-card-shape {
  transform: rotate(0deg) scale(1.01);
}

.pc-shop-card:hover .pc-shop-card-inner {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.pc-shop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
}

.pc-shop-card-type {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px 8px 8px 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #c9a962;
  background: rgba(212, 175, 55, 0.14);
  transform: skewX(-6deg);
}

.pc-shop-card-type.badge-free {
  color: #81c784;
  background: rgba(76, 175, 80, 0.16);
}

.pc-shop-card-type.badge-vip {
  color: #ce93d8;
  background: rgba(156, 39, 176, 0.16);
}

.pc-shop-card-type.badge-paid {
  color: #ffb74d;
  background: rgba(255, 152, 0, 0.16);
}

.pc-shop-card-type.badge-internal {
  color: #f5d76e;
  background: rgba(212, 175, 55, 0.18);
}

.pc-shop-card-period {
  font-size: 17px;
  font-weight: 800;
  color: var(--h-gold-light);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.pc-shop-card-price {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border-radius: 10px 10px 10px 2px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #3b2915;
  background: linear-gradient(135deg, #ffe7a8, #d4af37);
}

.pc-shop-card-price.is-free {
  color: #81c784;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(129, 199, 132, 0.45);
}

.pc-shop-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--h-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-shop-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 11px;
  color: #7a746c;
  line-height: 1;
}

.pc-shop-card-stat,
.pc-shop-card-hit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pc-shop-card-stat i,
.pc-shop-card-hit i {
  font-size: 13px;
  color: #9a8f78;
}

.pc-shop-card-hit {
  color: #66bb6a;
  font-weight: 700;
}

.pc-shop-card-hit i {
  color: #81c784;
}

.pc-shop-card-time {
  margin-left: auto;
  white-space: nowrap;
}

/* 类型色调 */
.pc-shop-card.is-free .pc-shop-card-shape {
  background: linear-gradient(145deg, rgba(76, 175, 80, 0.16), rgba(76, 175, 80, 0.02));
}

.pc-shop-card.is-free .pc-shop-card-inner {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(76, 175, 80, 0.1), transparent 55%),
    linear-gradient(155deg, #152018 0%, #121614 48%, #101210 100%);
  border-color: rgba(76, 175, 80, 0.2);
}

.pc-shop-card.is-vip .pc-shop-card-shape {
  background: linear-gradient(145deg, rgba(156, 39, 176, 0.16), rgba(156, 39, 176, 0.02));
}

.pc-shop-card.is-vip .pc-shop-card-inner {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(156, 39, 176, 0.1), transparent 55%),
    linear-gradient(155deg, #1c1420 0%, #141116 48%, #101010 100%);
  border-color: rgba(156, 39, 176, 0.22);
}

.pc-shop-card.is-paid .pc-shop-card-shape {
  background: linear-gradient(145deg, rgba(255, 152, 0, 0.16), rgba(255, 152, 0, 0.02));
}

.pc-shop-card.is-paid .pc-shop-card-inner {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 152, 0, 0.1), transparent 55%),
    linear-gradient(155deg, #201a14 0%, #161410 48%, #101010 100%);
  border-color: rgba(255, 152, 0, 0.22);
}

.pc-shop-card.is-internal .pc-shop-card-shape,
.pc-shop-card.is-default .pc-shop-card-shape {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.02));
}

/* 分页 */
.pc-shop-page .pc-pager {
  padding: 24px 0 8px;
}

.pc-shop-page .pc-pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.22);
  color: var(--h-gold-light);
}

.pc-shop-page .pc-pager a:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
}

.pc-shop-page .pc-pager-num {
  color: var(--h-muted);
}

/* 空状态 */
.pc-shop-page .pc-empty {
  padding: 56px 20px;
  color: var(--h-muted);
}

.pc-shop-page .pc-empty i {
  color: rgba(212, 175, 55, 0.35);
}

@media (min-width: 1280px) {
  .pc-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .pc-shop-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pc-shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pc-shop-card-time {
    margin-left: 0;
  }
}
