/* 金银币品种分类页 */

/* —— 整页氛围：暖灰底 + 顶光金晕 + 斜向肌理（纯 CSS） —— */
.pm-page {
  position: relative;
  background-color: #e4e0d8;
  min-height: 100vh;
}

.pm-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 55% at 50% -8%, rgba(212, 175, 55, 0.22), transparent 52%),
    radial-gradient(ellipse 50% 42% at 8% 45%, rgba(31, 59, 114, 0.09), transparent 50%),
    radial-gradient(ellipse 45% 38% at 92% 55%, rgba(139, 115, 85, 0.1), transparent 48%),
    linear-gradient(168deg, #f5f1ea 0%, #ebe6de 38%, #e2ddd4 72%, #d8d3ca 100%);
}

.pm-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background: repeating-linear-gradient(
    -14deg,
    #1f3b72 0,
    #1f3b72 1px,
    transparent 1px,
    transparent 9px
  );
}

.pm-main {
  position: relative;
  z-index: 1;
}

.pm-page .top-bar {
  position: relative;
  z-index: 2;
}

.pm-page .footer {
  position: relative;
  z-index: 1;
}

@keyframes pm-gilded-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-section-head--gilded h2 {
    animation: none !important;
  }
}

.pm-page .pm-top {
  padding: 16px 0 0;
}

.pm-back {
  display: inline-block;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.pm-back:hover {
  text-decoration: underline;
}

.pm-hero {
  text-align: center;
  padding: 28px 16px 12px;
  position: relative;
}

.pm-live-status {
  margin: 10px auto 14px;
  max-width: min(720px, 92vw);
}

.pm-live-status .live-feed-status__row {
  justify-content: center;
}

.pm-hero::after {
  content: "";
  display: block;
  width: min(200px, 50vw);
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.65), transparent);
}

.pm-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 32px);
  color: #142a52;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* 官方标语 + 币圈副标 */
.pm-slogan {
  max-width: min(720px, 92vw);
  margin: 0 auto 18px;
  padding: 14px 18px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 254, 248, 0.96) 0%, rgba(250, 248, 243, 0.94) 100%);
  box-shadow:
    0 4px 24px rgba(31, 59, 114, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(8px);
}

.pm-slogan-official {
  margin: 0 0 6px;
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 700;
  color: #1f3b72;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.pm-slogan-circle {
  margin: 0;
  font-size: 14px;
  color: #7a5a18;
  font-weight: 600;
  line-height: 1.5;
}

.pm-hero .pm-lead {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.pm-lead .pm-term {
  color: #5c4a2a;
  font-weight: 600;
}

.pm-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 22px 16px 10px;
  max-width: 760px;
  margin: 0 auto;
}

.pm-toc a {
  color: #1f3b72;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 59, 114, 0.14);
  box-shadow: 0 2px 10px rgba(31, 59, 114, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pm-toc a:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.12);
  color: #9f6b00;
}

/* —— 栏目区块 —— */
.pm-section {
  padding: 36px 0 44px;
  position: relative;
}

.pm-section + .pm-section {
  border-top: 1px solid rgba(201, 162, 39, 0.14);
}

.pm-section--material {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(236, 242, 252, 0.65) 48%,
    rgba(248, 250, 255, 0.55) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.pm-section--material::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: min(100%, 640px);
  height: 140px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.14), transparent 68%);
}

.pm-section--theme.section-alt,
.pm-section--note.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(252, 251, 248, 0.62) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pm-section--theme::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 20%;
  width: 200px;
  height: 200px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 59, 114, 0.06), transparent 65%);
}

.pm-section--spec {
  background: linear-gradient(
    180deg,
    rgba(248, 250, 255, 0.75) 0%,
    rgba(228, 234, 246, 0.6) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pm-section--spec::before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: 10%;
  width: 180px;
  height: 180px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 62%);
}

.pm-section-head {
  text-align: center;
  margin-bottom: 28px;
}

.pm-section-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #1f3b72;
  background: rgba(31, 59, 114, 0.08);
  border: 1px solid rgba(31, 59, 114, 0.12);
  border-radius: 999px;
}

.pm-section-head h2 {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* 非鎏金标题（如「说明」） */
.pm-section-head:not(.pm-section-head--gilded) h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  color: #142a52;
}

.pm-section-head:not(.pm-section-head--gilded) h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #c9a227, #1f3b72, transparent);
  opacity: 0.85;
}

/* 三大主题字：大鎏金 */
.pm-section-head--gilded h2 {
  margin: 0 0 10px;
  font-family: "Ma Shan Zheng", "KaiTi", "STKaiti", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(38px, 7vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.12em;
  background: linear-gradient(
    118deg,
    #5c4a1a 0%,
    #8a7028 10%,
    #c9a227 22%,
    #f5e6b8 34%,
    #fff9e6 40%,
    #d4af37 50%,
    #a67c00 58%,
    #e8d49a 70%,
    #c9a227 82%,
    #f0dfa8 92%,
    #6b5420 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12)) drop-shadow(0 0 22px rgba(201, 162, 39, 0.35));
  animation: pm-gilded-shine 14s ease-in-out infinite;
}

.pm-section-head--gilded h2::after {
  content: "";
  display: block;
  width: min(160px, 42vw);
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.25),
    #d4af37,
    rgba(255, 249, 230, 0.95),
    #c9a227,
    rgba(212, 175, 55, 0.25),
    transparent
  );
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
  opacity: 1;
}

.pm-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: min(560px, 92vw);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* —— 卡片栅格 —— */
.pm-grid {
  display: grid;
  gap: 18px;
  /* auto-fit 会收起空列，避免宽屏下仅 3 张卡时出现「幽灵第四列」整体左偏 */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
}

.pm-grid--featured {
  gap: 20px;
  max-width: min(1000px, 100%);
  margin-inline: auto;
}

/* 题材区 6 张卡：flex 末行居中 + 总宽上限 */
.pm-grid--theme {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(1180px, 100%);
  margin-inline: auto;
  gap: 18px;
}

.pm-grid--theme > .pm-card,
.pm-grid--theme > a.pm-card {
  flex: 1 1 260px;
  max-width: 340px;
  width: 100%;
}

.pm-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 59, 114, 0.12);
  border-radius: 16px;
  padding: 20px 18px 18px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px rgba(31, 59, 114, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.pm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  opacity: 0.95;
}

a.pm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(31, 59, 114, 0.1);
}

.pm-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: #1a2438;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-card-icon {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.pm-card--gold::before {
  background: linear-gradient(90deg, #8a7028, #e8c547, #fff4d2, #c9a227);
}

.pm-card--gold .pm-card-icon {
  background: linear-gradient(145deg, #fff4d2, #c9a227 55%, #8a7028);
}

.pm-card--silver::before {
  background: linear-gradient(90deg, #6b7280, #d1d5db, #f9fafb, #9ca3af);
}

.pm-card--silver .pm-card-icon {
  background: linear-gradient(145deg, #f9fafb, #9ca3af 50%, #4b5563);
}

.pm-card--platinum::before {
  background: linear-gradient(90deg, #334155, #94a3b8, #e2e8f0, #64748b);
}

.pm-card--platinum .pm-card-icon {
  background: linear-gradient(145deg, #e2e8f0, #64748b 55%, #1e293b);
}

/* 题材系列：顶条色谱 */
.pm-card--theme::before {
  height: 5px;
}

.pm-card--theme.pm-card--tone-a::before {
  background: linear-gradient(90deg, #1f3b72, #3b82f6, #93c5fd);
}

.pm-card--theme.pm-card--tone-b::before {
  background: linear-gradient(90deg, #9f1239, #e11d48, #fda4af);
}

.pm-card--theme.pm-card--tone-c::before {
  background: linear-gradient(90deg, #7c2d12, #ea580c, #fdba74);
}

.pm-card--theme.pm-card--tone-d::before {
  background: linear-gradient(90deg, #4c1d95, #7c3aed, #c4b5fd);
}

.pm-card--theme.pm-card--tone-e::before {
  background: linear-gradient(90deg, #14532d, #16a34a, #86efac);
}

.pm-card--theme.pm-card--tone-f::before {
  background: linear-gradient(90deg, #164e63, #0d9488, #5eead4);
}

.pm-card--spec::before {
  height: 4px;
}

.pm-card--spec.pm-card--tone-a::before {
  background: linear-gradient(90deg, #1e40af, #60a5fa);
}

.pm-card--spec.pm-card--tone-b::before {
  background: linear-gradient(90deg, #a16207, #eab308);
}

.pm-card--spec.pm-card--tone-c::before {
  background: linear-gradient(90deg, #831843, #db2777, #f9a8d4);
}

.pm-card--spec .pm-card-icon {
  background: linear-gradient(145deg, #e0e7ff, #6366f1 60%, #312e81);
}

.pm-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.pm-card .pm-hint {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b5420;
  background: #fef3c7;
  border: 1px solid #d4a846;
  border-radius: 6px;
  box-shadow: none;
}

a.pm-card:hover .pm-hint {
  background: #fde68a;
  border-color: #c9a227;
  color: #4a3a18;
}

/* —— 说明面板 —— */
.pm-note-panel {
  max-width: min(1180px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pm-note-item {
  padding: 18px 20px 18px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 59, 114, 0.1);
  box-shadow: 0 8px 24px rgba(31, 59, 114, 0.06);
  border-left: 4px solid #cbd5e1;
  backdrop-filter: blur(6px);
}

@media (max-width: 980px) {
  .pm-note-panel {
    grid-template-columns: 1fr;
  }
}

.pm-note-item-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #142a52;
  letter-spacing: 0.04em;
}

.pm-note-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.pm-note-item--official {
  border-left-color: #1f3b72;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.pm-note-item--rational {
  border-left-color: #c9a227;
  background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.pm-note-item--roadmap {
  border-left-color: #0d9488;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

@media (max-width: 600px) {
  .pm-grid {
    grid-template-columns: 1fr;
  }

  .pm-section-head:not(.pm-section-head--gilded) h2::after {
    margin-top: 12px;
  }

  .pm-section-head--gilded h2::after {
    margin-top: 12px;
  }
}

/* —— 实时金银数字快览 —— */
.pm-section--spot {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(247, 240, 223, 0.5) 100%);
}

.pm-spot-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: min(900px, 94vw);
  margin: 0 auto 10px;
}

.pm-spot-link-status {
  margin: 10px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.pm-spot-link-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.pm-spot-link-status__dot.ok {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.pm-spot-link-status__dot.bad {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.pm-realtime-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(183, 152, 88, 0.22);
  border-radius: 12px;
  background: #fff;
}

.pm-topic-chart-wrap {
  margin: 0 0 14px;
  border: 1px solid rgba(183, 152, 88, 0.22);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.pm-topic-chart {
  width: 100%;
  height: 320px;
}

.pm-realtime-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.pm-realtime-table th,
.pm-realtime-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ece8dd;
  text-align: left;
  color: #1f2430;
  white-space: nowrap;
}

.pm-realtime-table th {
  background: linear-gradient(180deg, #faf5e8 0%, #f4ecdb 100%);
  font-weight: 700;
  color: #1f2d4d;
  letter-spacing: 0.02em;
}

.pm-realtime-table tbody tr:hover td {
  background: #fcfaf4;
}

.pm-realtime-table tbody tr:nth-child(even) td {
  background: #fffdfa;
}

.pm-table-disclaimer {
  margin: 10px 2px 0;
  font-size: 12px;
  color: #8a8f99;
  line-height: 1.5;
}

.pm-links-panel {
  margin-top: 14px;
  border: 1px solid rgba(183, 152, 88, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(255, 247, 224, 0.82) 0%, rgba(255, 255, 255, 0) 56%),
    #fff;
  box-shadow: 0 10px 26px rgba(34, 51, 84, 0.06);
  padding: 14px;
}

.pm-links-title {
  margin: 0 0 12px;
  font-size: 17px;
  color: #1f2d4d;
  font-weight: 800;
}

.pm-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pm-links-col {
  border: 1px solid rgba(203, 175, 112, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 12px 10px;
}

.pm-links-col h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #7a5a18;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pm-links-col h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1a73a;
  box-shadow: 0 0 0 3px rgba(209, 167, 58, 0.2);
}

.pm-links-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.pm-links-list li {
  margin: 8px 0;
  line-height: 1.45;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  padding: 8px 10px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pm-links-list li:hover {
  transform: translateY(-1px);
  border-color: #d9c083;
  box-shadow: 0 6px 14px rgba(32, 52, 89, 0.08);
}

.pm-links-list a {
  color: #1d3f8f;
  font-weight: 700;
  text-decoration: none;
}

.pm-links-list a:hover {
  text-decoration: underline;
}

.pm-links-meta {
  color: #64748b;
  font-size: 12px;
}

.pm-spot-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 59, 114, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(31, 59, 114, 0.08);
}

.pm-spot-label {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pm-spot-value {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  color: #1a2438;
}

.pm-spot-delta {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.pm-spot-delta.up {
  color: #b91c1c;
}

.pm-spot-delta.down {
  color: #166534;
}

.pm-spot-note {
  margin: 0 auto;
  max-width: min(900px, 94vw);
  font-size: 12px;
  line-height: 1.65;
  color: #5a6270;
}

@media (max-width: 760px) {
  .pm-spot-board {
    grid-template-columns: 1fr;
  }
}
