/* PC 通用组件 */
.pc-panel {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  margin-bottom: 20px;
}

.pc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pc-border);
}

.pc-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.pc-panel-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pc-panel-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--pc-text-muted);
  line-height: 1.35;
}

.pc-panel-body { padding: 20px; }

.pc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.pc-badge--default { background: #f1f5f9; color: #475569; }
.pc-badge--gold { background: #fef3c7; color: #92400e; }
.pc-badge--green { background: #d1fae5; color: #065f46; }
.pc-badge--purple { background: #ede9fe; color: #5b21b6; }
.pc-badge--blue { background: #dbeafe; color: #1e40af; }
.pc-badge--hot { background: #fee2e2; color: #991b1b; }

.pc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.pc-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-text-muted);
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  transition: all 0.15s;
}

.pc-tab:hover { color: var(--pc-text); border-color: #cbd5e1; }

.pc-tab.is-active {
  background: var(--pc-text);
  border-color: var(--pc-text);
  color: #fff;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--pc-radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--pc-border);
  background: var(--pc-surface);
  color: var(--pc-text);
  cursor: pointer;
  transition: all 0.15s;
}

.pc-btn:hover { border-color: #cbd5e1; box-shadow: var(--pc-shadow); }

.pc-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--pc-text-muted);
}

.pc-btn--gold,
.pc-btn--primary {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  border-color: transparent;
  color: #1a1200;
}

.pc-btn--gold:hover,
.pc-btn--primary:hover { box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35); }

.pc-btn--primary.pc-btn--block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.pc-btn--primary.pc-btn--block::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 52%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.12) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: pc-btn-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pc-btn-shine {
  0%, 70% { left: -120%; }
  100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-btn--primary.pc-btn--block::before {
    animation: none;
  }
}

.pc-btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.pc-btn--block { width: 100%; }

.pc-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--pc-text-muted);
}

.pc-empty i { font-size: 48px; opacity: 0.35; margin-bottom: 12px; }
.pc-empty p { margin: 0; font-size: 14px; }

.pc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 4px;
}

.pc-pager a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--pc-radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  color: var(--pc-text);
}

.pc-pager a:hover { border-color: var(--pc-accent); color: var(--pc-accent); }

.pc-pager-num { font-size: 13px; color: var(--pc-text-muted); }

/* 统计卡片 */
.pc-stat-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

a.pc-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-lg);
  border-color: #cbd5e1;
}

.pc-stat-body { flex: 1; min-width: 0; }
.pc-stat-label { font-size: 12px; color: var(--pc-text-muted); font-weight: 500; }
.pc-stat-value { font-size: 24px; font-weight: 800; color: var(--pc-text); letter-spacing: -0.02em; line-height: 1.2; }
.pc-stat-sub { font-size: 11px; color: var(--pc-text-light); }

.pc-stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  box-shadow: none;
}

.pc-stat-icon .home-stat-icon,
.pc-stat-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.pc-ai-stat-tile .pc-ai-stat-value { color: var(--pc-accent-dark); }
.pc-ai-stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-ai-stat-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.pc-ai-stat-icon.is-purple { color: #7c3aed; }
.pc-ai-stat-icon.is-cyan { color: #0891b2; }
.pc-ai-stat-icon.is-gold { color: #b8860b; }
.pc-ai-stat-icon.is-blue { color: #2563eb; }

/* 资料卡片 */
.pc-material-card {
  display: flex;
  flex-direction: column;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: var(--pc-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pc-material-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-lg);
  border-color: #cbd5e1;
}

.pc-card-cover {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e293b, #334155);
  overflow: hidden;
}

.pc-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.pc-card-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
}

.pc-card-cover .pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.pc-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }

.pc-card-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--pc-text-light);
  margin-bottom: 6px;
}

.pc-card-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--pc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.pc-card-price { font-weight: 800; color: var(--pc-accent-dark); }
.pc-card-price.is-free { color: var(--pc-green); }
.pc-card-stat { color: var(--pc-text-light); margin-left: auto; }
.pc-card-time { color: var(--pc-text-light); }

/* 热抢卡片（结构对齐手机端，首页黑金样式见 pc-home.css） */
.pc-deal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px 14px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  min-height: 168px;
  text-decoration: none;
  color: var(--pc-text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.pc-deal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-lg);
}

.pc-deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 20px;
}

.pc-deal-head .deal-mark { font-size: 17px; line-height: 1; color: var(--pc-accent); }
.pc-deal-head .deal-mark-svg { width: 17px; height: 17px; display: block; }

.pc-deal-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #ef4444;
  padding: 2px 8px;
  border-radius: 999px;
}

.pc-deal-type-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}

.pc-deal-period {
  font-size: 18px;
  font-weight: 800;
  color: var(--pc-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-deal-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.pc-deal-main-icon { font-size: 14px; line-height: 1; flex-shrink: 0; color: var(--pc-accent); }

.pc-deal-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-text-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pc-deal-hit {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 11px;
  color: var(--pc-text-muted);
  overflow: hidden;
}

.pc-deal-hit-bar {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pc-deal-hit-bar span {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.04));
  border-radius: 8px;
}

.pc-deal-hit-label { position: relative; z-index: 1; flex-shrink: 0; font-style: normal; }
.pc-deal-hit strong { position: relative; z-index: 1; font-size: 15px; font-weight: 800; color: var(--pc-green); }

.pc-deal-rank-inline {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.3px;
  vertical-align: 1px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.pc-deal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.pc-deal-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.pc-deal-price-pill.is-free {
  color: var(--pc-green);
  background: transparent;
  border: 1px solid #bbf7d0;
}

.pc-deal-time { font-size: 11px; color: var(--pc-text-light); white-space: nowrap; }

/* 兼容旧类名 */
.pc-deal-card--hot { border-color: #fed7aa; background: linear-gradient(145deg, #fff7ed, #fff); }
.pc-deal-hot, .pc-deal-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pc-deal-hot { background: #ef4444; color: #fff; }
.pc-deal-tag { background: #f1f5f9; color: #64748b; }
.pc-deal-price { font-weight: 800; color: var(--pc-accent-dark); }
.pc-deal-price.is-free { color: var(--pc-green); }

.pc-deals-grid--page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

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

@media (max-width: 960px) {
  .pc-deals-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 640px) {
  .pc-deals-grid--page { grid-template-columns: 1fr; }
}

/* 倒计时 */
.pc-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--pc-radius-sm);
  font-size: 13px;
}

.pc-countdown-label { color: var(--pc-accent-dark); font-weight: 600; }
.pc-countdown-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pc-text); }

/* 表格 */
.pc-table-wrap {
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  overflow: hidden;
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pc-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  color: var(--pc-text-muted);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--pc-border);
}

.pc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.pc-table tbody tr:hover { background: #fafbfc; }
.pc-table tbody tr:last-child td { border-bottom: 0; }

.pc-table a { color: var(--pc-blue); font-weight: 500; }
.pc-table a:hover { text-decoration: underline; }

.pc-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}

.pc-tag.is-hit { background: #d1fae5; color: #065f46; }
.pc-tag.is-miss { background: #fee2e2; color: #991b1b; }

.pc-table-scroll {
  max-height: 520px;
  min-height: 0;
  overflow-y: auto;
}

.pc-table-scroll.is-auto-scroll { overflow-y: hidden; }

/* 筛选 chips */
.pc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pc-filter-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  color: var(--pc-text-muted);
}

.pc-filter-chip:hover { border-color: #cbd5e1; color: var(--pc-text); }
.pc-filter-chip.is-active { background: var(--pc-text); border-color: var(--pc-text); color: #fff; }

/* 公告条 */
.pc-notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--pc-radius-sm);
  font-size: 13px;
  color: #92400e;
}

.pc-notice-bar i,
.pc-notice-bar-icon { font-size: 18px; flex-shrink: 0; display: inline-flex; align-items: center; }

.pc-notice-bar-icon .pc-header-svg {
  width: 20px;
  height: 20px;
}

.pc-notice-bar > span:last-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero 轮播 + 用户面板 */
.pc-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

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

.pc-hero {
  position: relative;
  border-radius: var(--pc-radius);
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: var(--pc-shadow-lg);
  aspect-ratio: 16 / 9;
  max-height: 280px;
  height: 100%;
  background: #1e293b;
}

.pc-hero--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  min-height: 220px;
}

.pc-hero--empty i { font-size: 36px; }

.pc-hero-side { min-width: 0; }

.pc-user-panel {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px 16px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow-lg);
}

.pc-user-panel-brand {
  margin-bottom: 12px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-user-panel-logo {
  max-height: 36px;
  max-width: 160px;
  object-fit: contain;
}

.pc-user-panel-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--pc-accent-dark);
  letter-spacing: 0.04em;
}

.pc-user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fef3c7;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2);
  margin-bottom: 10px;
}

.pc-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pc-user-avatar.is-default {
  background: #ece8df;
}

.pc-user-avatar.is-default img {
  object-fit: contain;
  padding: 4px;
}

.pc-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-text);
  margin-bottom: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  margin-bottom: 10px;
}

.pc-user-badge.is-vip {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.pc-user-balance {
  font-size: 13px;
  color: var(--pc-text-muted);
  margin-bottom: 14px;
}

.pc-user-balance strong {
  color: var(--pc-accent-dark);
  font-size: 18px;
  margin-left: 4px;
}

.pc-user-guest-tip {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pc-text-light);
}

.pc-user-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.pc-user-actions.is-guest {
  flex-direction: row;
}

.pc-user-actions.is-guest .pc-btn { flex: 1; justify-content: center; }

.pc-user-actions .pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.pc-hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.pc-hero-slide {
  flex: 0 0 100%;
  height: 100%;
}

.pc-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pc-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.pc-hero-dot.is-active { background: #fff; width: 20px; border-radius: 999px; }

/* 快捷入口 */
.pc-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pc-quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.pc-quick-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--pc-shadow-lg);
}

.pc-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
}

.pc-quick-icon .home-entry-svg,
.pc-quick-icon svg { width: 32px; height: 32px; display: block; }
.pc-quick-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.pc-quick-item em { font-style: normal; font-size: 11px; color: var(--pc-text-muted); }
.pc-quick-item > i { margin-left: auto; color: var(--pc-text-light); }

.pc-quick-item.is-hot .pc-quick-icon,
.pc-quick-item.is-ai .pc-quick-icon,
.pc-quick-item.is-kefu .pc-quick-icon,
.pc-quick-item.is-win .pc-quick-icon {
  background: transparent;
  color: inherit;
}

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

  .pc-hero {
    max-height: 240px;
  }

  .pc-user-panel {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: center;
    gap: 0 14px;
    min-height: 0;
  }

  .pc-user-panel-brand {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 4px;
  }

  .pc-user-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  .pc-user-name,
  .pc-user-badge,
  .pc-user-balance,
  .pc-user-guest-tip {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
  }

  .pc-user-actions {
    width: auto;
    flex-direction: row;
    margin-top: 0;
    margin-left: auto;
  }

  .pc-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
