/* PC 资料详情 · 黑金 */
.pc-detail-page {
  --h-bg: #080808;
  --h-card: #141414;
  --h-gold: #d4af37;
  --h-gold-light: #f5d76e;
  --h-text: #f5efe4;
  --h-muted: #8d877e;
  --h-line: rgba(255, 255, 255, 0.08);
  --detail-hit: #2ecc71;
  --detail-miss: #ef5350;
}

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

.pc-detail-page .pc-main {
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 40%, rgba(212, 175, 55, 0.06), transparent 50%),
    var(--h-bg);
}

.pc-detail-page .pc-content {
  padding-top: 18px;
  padding-bottom: 32px;
}

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

.pc-detail-page .pc-page-title { color: var(--h-text); }
.pc-detail-page .pc-page-sub { color: var(--h-muted); }

.pc-detail-page .pc-page-actions .pc-btn {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.28);
  color: var(--h-gold-light);
}

.pc-detail-page .pc-page-actions .pc-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(245, 215, 110, 0.45);
}

/* 布局 */
.pc-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.pc-detail-main { min-width: 0; }

.pc-detail-sidebar {
  position: sticky;
  top: calc(var(--pc-topbar-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 资料 + 预测合并卡片 */
.pc-mat-combo {
  position: relative;
  margin-bottom: 16px;
  border-radius: 20px 20px 20px 6px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, #1c1816 0%, #121212 48%, #101010 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.pc-mat-combo.is-gold {
  border-color: rgba(212, 175, 55, 0.28);
  background: var(--pc-detail-mat-bg, none) right center / cover no-repeat #0a0a0c;
  min-height: 220px;
}

.pc-mat-combo.is-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.5) 42%, rgba(8, 8, 8, 0.1) 100%);
  pointer-events: none;
  z-index: 0;
}

.pc-mat-combo.is-free {
  border-color: rgba(76, 175, 80, 0.28);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
    linear-gradient(155deg, #152018 0%, #121614 48%, #101210 100%);
}

.pc-mat-combo.is-vip {
  border-color: rgba(156, 124, 240, 0.28);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(156, 39, 176, 0.12) 0%, transparent 50%),
    linear-gradient(155deg, #1a1430 0%, #12101c 48%, #0e0e12 100%);
}

.pc-mat-info {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 18px 20px 14px;
}

.pc-mat-thumb {
  width: 108px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 14px 14px 14px 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.pc-mat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-mat-head-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-mat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pc-mat-period {
  font-size: 24px;
  font-weight: 800;
  color: var(--h-gold-light);
  line-height: 1.1;
}

.pc-mat-combo.is-free .pc-mat-period {
  color: #a5d6a7;
}

.pc-mat-combo.is-vip .pc-mat-period {
  color: #ce93d8;
}

.pc-mat-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #1a1200;
  background: linear-gradient(135deg, #f5d76e, #d4af37);
}

.pc-mat-combo.is-free .pc-mat-badge {
  color: #fff;
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

.pc-mat-combo.is-vip .pc-mat-badge {
  color: #fff;
  background: linear-gradient(135deg, #ab47bc, #7b1fa2);
}

.pc-mat-title {
  font-size: 15px;
  line-height: 1.55;
  color: #cfc8bc;
}

.pc-mat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--h-muted);
}

.pc-mat-meta i {
  margin-right: 4px;
  color: var(--h-gold);
}

.pc-mat-combo.is-free .pc-mat-meta i { color: #81c784; }
.pc-mat-combo.is-vip .pc-mat-meta i { color: #ce93d8; }

.pc-mat-meta .is-price {
  color: var(--h-gold-light);
  font-weight: 700;
}

.pc-mat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-rev-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--h-gold-light);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.pc-mat-predict {
  position: relative;
  z-index: 1;
  margin: 0 16px 16px;
  padding: 14px 16px 16px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(8, 8, 8, 0.42);
  border: 1px dashed rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pc-mat-combo.is-gold .pc-mat-predict {
  border-color: rgba(212, 175, 55, 0.28);
}

.pc-mat-combo.is-free .pc-mat-predict {
  border-color: rgba(76, 175, 80, 0.26);
}

.pc-mat-combo.is-vip .pc-mat-predict {
  border-color: rgba(156, 124, 240, 0.26);
}

.pc-predict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pc-predict-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--h-text);
}

.pc-predict-head em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--h-gold);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.pc-detail-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--h-gold);
}

.pc-mat-combo.is-free .pc-predict-head h3 .pc-detail-icon { color: #81c784; }
.pc-mat-combo.is-vip .pc-predict-head h3 .pc-detail-icon { color: #ce93d8; }

.pc-detail-preview {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #cfc8bc;
}

.pc-predict-chips .detail-predict-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pc-predict-chips .detail-predict-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 66px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-predict-chips .detail-predict-num {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.pc-predict-chips .detail-predict-item.is-red .detail-predict-num {
  background: linear-gradient(180deg, #ef5350, #c62828);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-predict-chips .detail-predict-item.is-blue .detail-predict-num {
  background: linear-gradient(180deg, #42a5f5, #1565c0);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-predict-chips .detail-predict-item.is-green .detail-predict-num {
  background: linear-gradient(180deg, #66bb6a, #2e7d32);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-predict-chips .detail-predict-item.is-gold .detail-predict-num {
  background: linear-gradient(180deg, #ffe7a8, #d4af37);
  color: #1a1200;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-predict-chips .detail-predict-zodiac {
  width: 22px;
  height: 22px;
  margin-top: 4px;
}

.pc-predict-chips .detail-predict-zodiac-text {
  font-size: 10px;
  color: var(--h-muted);
  margin-top: 4px;
}

.pc-predict-chips .detail-predict-plus {
  font-size: 22px;
  font-weight: 700;
  color: var(--h-gold-light);
  opacity: 0.7;
}

.pc-predict-chips .num-chip,
.pc-predict-chips .predict-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px 12px 12px 4px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--h-gold-light);
}

/* 锁定区 */
.pc-lock-box {
  position: relative;
  padding: 36px 20px;
  text-align: center;
  border-radius: 14px 14px 14px 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(212, 175, 55, 0.25);
}

.pc-lock-box.is-light {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

.pc-lock-box p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--h-muted);
}

.pc-lock-blur {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  letter-spacing: 8px;
  color: rgba(212, 175, 55, 0.08);
  filter: blur(4px);
  pointer-events: none;
}

.pc-lock-mask {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pc-lock-mask .detail-lock-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* 内容块 */
.pc-content-block {
  margin-bottom: 16px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--h-line);
  overflow: hidden;
  position: relative;
}

.pc-content-block::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.12), transparent 68%);
  pointer-events: none;
}

.pc-content-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--h-line);
  background: rgba(0, 0, 0, 0.2);
}

.pc-content-block-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--h-text);
}

.pc-content-block-head h3 .pc-detail-icon {
  color: var(--h-gold);
}

.pc-content-block-head em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--h-gold);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.pc-content-block-body {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #cfc8bc;
}

.pc-content-block-body--flush {
  padding: 0;
}

/* 作者往期记录 */
.pc-detail-records-shell {
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(155deg, #1c1816 0%, #121212 48%, #101010 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  overflow: hidden;
}

.pc-detail-page .pc-detail-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.pc-detail-page .pc-detail-records-table th:nth-child(1),
.pc-detail-page .pc-detail-records-table td:nth-child(1) { width: 12%; }
.pc-detail-page .pc-detail-records-table th:nth-child(2),
.pc-detail-page .pc-detail-records-table td:nth-child(2) { width: 28%; }
.pc-detail-page .pc-detail-records-table th:nth-child(3),
.pc-detail-page .pc-detail-records-table td:nth-child(3) { width: 30%; }
.pc-detail-page .pc-detail-records-table th:nth-child(4),
.pc-detail-page .pc-detail-records-table td:nth-child(4) { width: 14%; }
.pc-detail-page .pc-detail-records-table th:nth-child(5),
.pc-detail-page .pc-detail-records-table td:nth-child(5) { width: 14%; }

.pc-detail-page .pc-detail-records-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--h-muted);
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--h-line);
}

.pc-detail-page .pc-detail-records-table td {
  padding: 12px 14px;
  color: #cfc8bc;
  border-bottom: 1px solid var(--h-line);
  vertical-align: middle;
}

.pc-detail-page .pc-detail-records-body tbody tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

.pc-detail-page .pc-detail-records-body tbody tr.is-current td {
  background: rgba(212, 175, 55, 0.1);
}

.pc-detail-page .pc-detail-records-table td a {
  color: var(--h-gold-light);
  font-weight: 600;
  text-decoration: none;
}

.pc-detail-page .pc-detail-records-table td a:hover {
  color: #fff;
}

.pc-detail-page .pc-wins-draw {
  display: block;
  font-size: 11px;
  color: var(--h-muted);
  margin-bottom: 3px;
}

.pc-detail-page .pc-wins-open {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.pc-detail-page .pc-wins-open.is-hit,
.pc-detail-page .pc-detail-records-table strong.is-hit {
  color: var(--detail-hit);
}

.pc-detail-page .pc-wins-open.is-miss,
.pc-detail-page .pc-detail-records-table strong.is-miss {
  color: var(--detail-miss);
}

.pc-detail-page .pc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px 8px 8px 2px;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.pc-detail-page .pc-tag.is-hit {
  color: #81c784;
  background: rgba(76, 175, 80, 0.16);
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.pc-detail-page .pc-tag.is-miss {
  color: #ef9a9a;
  background: rgba(239, 83, 80, 0.12);
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.pc-detail-records-scroll {
  max-height: 360px;
  min-height: 0;
  overflow-y: auto;
}

.pc-detail-records-scroll.is-auto-scroll {
  overflow-y: hidden;
  scrollbar-width: none;
}

.pc-detail-records-scroll.is-auto-scroll::-webkit-scrollbar {
  display: none;
}

/* 侧栏作者 */
.pc-author-card {
  position: relative;
  border-radius: 20px 20px 20px 6px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.42) 0%, rgba(8, 8, 8, 0.78) 55%, rgba(8, 8, 8, 0.92) 100%),
    var(--pc-author-card-bg) center / cover no-repeat #0a0a0a;
}

.pc-author-banner {
  position: relative;
  padding-bottom: 4px;
}

.pc-author-banner-main {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 10px;
}

.pc-author-avatar {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  overflow: visible;
}

.pc-author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
  position: relative;
  z-index: 0;
}

.pc-author-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f8cff, #6366f1);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(79, 140, 255, 0.35);
  z-index: 2;
  pointer-events: none;
}

.pc-author-badge i {
  font-size: 11px;
  line-height: 1;
  display: block;
  color: #fff;
}

.pc-author-banner-info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  position: relative;
  z-index: 1;
}

.pc-author-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.pc-author-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  margin-bottom: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.pc-author-intro {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-author-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 14px 16px;
  margin: 0 12px 12px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.pc-author-stat {
  padding: 10px 8px;
  border-radius: 12px 12px 12px 4px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--h-line);
  text-align: center;
}

.pc-author-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.pc-author-stat span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--h-muted);
}

.pc-author-stat.stat-hit strong { color: #60a5fa; }
.pc-author-stat.stat-material strong { color: #a78bfa; }
.pc-author-stat.stat-fans strong { color: #4ade80; }
.pc-author-stat.stat-view strong { color: #fb923c; }

/* 购买卡片 */
.pc-buy-card {
  padding: 20px 18px;
  border-radius: 20px 20px 20px 6px;
  background: linear-gradient(155deg, #241c10 0%, #16120c 48%, #121010 100%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.pc-buy-price {
  font-size: 30px;
  font-weight: 800;
  color: var(--h-gold-light);
  margin-bottom: 6px;
  line-height: 1.1;
}

.pc-buy-price.is-free {
  font-size: 22px;
  color: var(--detail-hit);
}

.pc-buy-meta {
  font-size: 12px;
  color: var(--h-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pc-buy-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc-detail-page .pc-buy-actions .pc-btn {
  height: 44px;
  border-radius: 999px;
  font-weight: 800;
}

.pc-detail-page .pc-buy-actions .pc-btn--primary,
.pc-detail-page .pc-buy-actions .pc-btn--gold {
  background: linear-gradient(135deg, #ffe7a8, #d4af37 55%, #c9971a);
  border-color: transparent;
  color: #1a1200;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
}

.pc-detail-page .pc-buy-actions .pc-btn--block:not(.pc-btn--primary):not(.pc-btn--gold) {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cfc8bc;
}

.pc-detail-page .pc-buy-actions .pc-btn--block:not(.pc-btn--primary):not(.pc-btn--gold):hover {
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--h-gold-light);
}

@media (max-width: 1100px) {
  .pc-detail-layout {
    grid-template-columns: 1fr;
  }

  .pc-detail-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pc-author-card,
  .pc-buy-card {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 720px) {
  .pc-mat-info {
    flex-direction: column;
  }

  .pc-mat-thumb {
    width: 100%;
    height: 140px;
  }

  .pc-author-banner-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pc-author-banner-info {
    text-align: center;
  }

  .pc-detail-sidebar {
    flex-direction: column;
  }
}
