.page-products {
  position: relative;
  background:
    radial-gradient(circle at 15% 8%, rgba(42, 33, 107, 0.42), transparent 32%),
    radial-gradient(circle at 88% 62%, rgba(212, 175, 55, 0.06), transparent 26%);
}

/* ===== 页面首屏 ===== */
.page-products .page-hero {
  position: relative;
  padding: 40px 0 56px;
  overflow: hidden;
}

.page-products .breadcrumbs {
  margin-bottom: 32px;
}

.page-products .breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--font-index);
  font-size: 13px;
}

.page-products .breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.page-products .breadcrumbs a:hover {
  color: var(--accent-gold);
}

.page-products .breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-muted);
}

.page-products .hero-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.page-products .hero-main {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--accent-gold);
}

.page-products .section-label {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.page-products .page-title {
  margin: 18px 0 14px;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  line-height: 1.25;
  color: var(--text-primary);
  max-width: 12em;
}

.page-products .page-intro {
  max-width: 44em;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
}

.page-products .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 500px;
}

.page-products .hero-stat {
  border: 1px solid var(--border-gold);
  border-radius: 14px 20px 14px 20px;
  padding: 14px 14px 12px;
  background: rgba(28, 21, 69, 0.62);
}

.page-products .stat-num {
  display: block;
  font-family: var(--font-index);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1.1;
}

.page-products .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.page-products .hero-aside {
  display: none;
}

/* ===== 技能树 ===== */
.page-products .skill-tree {
  position: relative;
  padding: 56px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  background-image: radial-gradient(rgba(212, 175, 55, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}

.page-products .tree-head {
  margin-bottom: 32px;
}

.page-products .tree-head h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.35;
  margin: 14px 0 10px;
  color: var(--text-primary);
}

.page-products .tree-head p {
  color: var(--text-secondary);
  max-width: 36em;
  line-height: 1.75;
  margin: 0;
}

.page-products .tree-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.page-products .tree-index-link {
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 99px;
  font-family: var(--font-index);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.page-products .tree-index-link:hover {
  color: var(--bg-deep);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.page-products .tree-body {
  position: relative;
}

.page-products .tree-body::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.2),
    rgba(212, 175, 55, 0.65),
    rgba(212, 175, 55, 0.2)
  );
}

.page-products .tree-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.page-products .tree-row:last-child {
  margin-bottom: 0;
}

.page-products .tree-dot {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent-gold);
  background: var(--bg-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-index);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 2;
}

.page-products .tree-row:hover .tree-dot {
  background: var(--accent-gold);
  color: var(--bg-deep);
  box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.12);
  transform: scale(1.06);
}

.page-products .tree-card {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  padding: 22px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.07) 0%, transparent 32%),
    var(--bg-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s var(--ease), border-color 0.3s;
}

.page-products .tree-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(212, 175, 55, 0.72);
}

.page-products .tree-row:nth-child(even) .tree-card {
  grid-column: 2;
}

.page-products .node-label {
  display: inline-block;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 4px 10px;
  border-radius: 4px 10px 4px 10px;
}

.page-products .node-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 14px 0 10px;
  color: var(--text-primary);
}

.page-products .node-desc {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 14px;
  margin: 0 0 16px;
}

.page-products .node-media {
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  margin: 16px 0;
}

.page-products .node-media img,
.page-products .tier-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-products .img-cap {
  display: block;
  font-family: var(--font-index);
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 4px 2px;
}

.page-products .node-detail {
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  margin-top: 14px;
  padding-top: 12px;
}

.page-products .node-detail summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-index);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--accent-gold);
  user-select: none;
  position: relative;
  padding-left: 20px;
  transition: color 0.2s;
}

.page-products .node-detail summary::-webkit-details-marker {
  display: none;
}

.page-products .node-detail summary::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-index);
  color: var(--accent-orange);
}

.page-products .node-detail[open] summary::before {
  content: '−';
  color: var(--accent-gold);
}

.page-products .node-detail summary:hover {
  color: var(--accent-orange);
}

.page-products .node-detail-body {
  padding: 12px 0 2px;
}

.page-products .node-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .node-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.page-products .node-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}

.page-products .node-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 会员档位 ===== */
.page-products .tier-section {
  padding: 56px 0 64px;
}

.page-products .tier-panel {
  border: 1px solid var(--border-gold);
  border-radius: 24px 34px 24px 34px;
  background:
    linear-gradient(160deg, rgba(42, 33, 107, 0.55), transparent 42%),
    var(--bg-panel);
  padding: 28px 22px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.page-products .tier-head h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 14px 0 10px;
}

.page-products .tier-head p {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 44em;
  margin: 0;
}

.page-products .tier-media {
  margin: 24px 0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.page-products .tier-steps {
  display: grid;
  gap: 20px;
  margin: 32px 0 24px;
}

.page-products .tier-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 8px 16px;
}

.page-products .tier-name {
  grid-column: 1;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.page-products .tier-name::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--accent-gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.page-products .tier-track {
  grid-column: 2;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.page-products .tier-fill {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--accent-gold), var(--accent-orange));
  border-radius: 99px;
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.page-products .tier-step:nth-child(1) .tier-fill {
  width: 18%;
}

.page-products .tier-step:nth-child(2) .tier-fill {
  width: 36%;
}

.page-products .tier-step:nth-child(3) .tier-fill {
  width: 54%;
}

.page-products .tier-step:nth-child(4) .tier-fill {
  width: 74%;
}

.page-products .tier-step:nth-child(5) .tier-fill {
  width: 100%;
}

.page-products .tier-step:hover .tier-fill {
  transform: scaleX(1.05);
}

.page-products .tier-desc {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: 14px;
}

.page-products .tier-note {
  border-top: 1px dashed rgba(212, 175, 55, 0.35);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.page-products .tier-note p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 44em;
}

.page-products .tier-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== 继续探索 ===== */
.page-products .next-steps {
  padding: 56px 0 72px;
}

.page-products .next-panel {
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px 30px 20px 30px;
  padding: 32px 24px;
  background:
    linear-gradient(135deg, rgba(42, 33, 107, 0.62), rgba(11, 7, 33, 0.6)),
    var(--bg-deep);
  overflow: hidden;
}

.page-products .next-panel::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 70%);
  pointer-events: none;
}

.page-products .next-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 14px 0 10px;
  color: var(--text-primary);
  position: relative;
}

.page-products .next-panel p {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 42em;
  margin: 0;
  position: relative;
}

.page-products .next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  position: relative;
}

/* ===== 平板与桌面 ===== */
@media (min-width: 768px) {
  .page-products .hero-layout {
    grid-template-columns: 1fr 180px;
    gap: 24px;
  }

  .page-products .hero-aside {
    display: block;
    text-align: right;
    padding-top: 40px;
  }

  .page-products .hero-aside .index-num {
    font-family: var(--font-heading);
    font-size: 7rem;
    line-height: 0.85;
    font-weight: 800;
    -webkit-text-stroke: 1px var(--accent-gold);
    color: transparent;
    display: block;
  }

  .page-products .hero-aside .index-tag {
    display: block;
    margin-top: 14px;
    font-family: var(--font-index);
    font-size: 12px;
    letter-spacing: 0.5em;
    color: var(--accent-gold);
  }

  .page-products .tier-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .page-products .tier-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: left;
  }

  .page-products .tier-step .tier-name {
    grid-column: auto;
  }

  .page-products .tier-step .tier-track {
    grid-column: auto;
    width: 100%;
  }

  .page-products .tier-step .tier-desc {
    grid-column: auto;
    font-size: 13px;
    min-height: 2.6em;
    line-height: 1.5;
  }

  .page-products .tier-panel {
    padding: 36px 32px 40px;
  }
}

@media (min-width: 992px) {
  .page-products .page-hero {
    padding: 56px 0 72px;
  }

  .page-products .hero-layout {
    grid-template-columns: 1fr 220px;
  }

  .page-products .page-title {
    font-size: 2.65rem;
  }

  .page-products .hero-stats {
    gap: 16px;
  }

  .page-products .skill-tree {
    padding: 76px 0;
  }

  .page-products .tree-head {
    margin-bottom: 40px;
  }

  .page-products .tree-head h2 {
    font-size: 2rem;
  }

  .page-products .tree-index {
    margin-bottom: 48px;
  }

  .page-products .tree-body::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .page-products .tree-row {
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
    margin-bottom: 48px;
  }

  .page-products .tree-dot {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: start;
    margin-top: 34px;
  }

  .page-products .tree-card {
    grid-column: 1;
    grid-row: 1;
    padding: 28px;
  }

  .page-products .tree-row:nth-child(even) .tree-card {
    grid-column: 3;
  }

  .page-products .tree-card::after {
    content: '';
    position: absolute;
    top: 50px;
    width: 6px;
    height: 2px;
    background: var(--border-gold);
    transition: background 0.3s, width 0.3s;
  }

  .page-products .tree-row:nth-child(odd) .tree-card::after {
    right: -6px;
  }

  .page-products .tree-row:nth-child(even) .tree-card::after {
    left: -6px;
  }

  .page-products .tree-row:hover .tree-card::after {
    background: var(--accent-gold);
    width: 12px;
  }

  .page-products .node-title {
    font-size: 1.45rem;
  }

  .page-products .tier-section {
    padding: 76px 0 88px;
  }

  .page-products .tier-head h2 {
    font-size: 2rem;
  }

  .page-products .next-steps {
    padding: 64px 0 92px;
  }

  .page-products .next-panel {
    padding: 40px 36px;
  }

  .page-products .next-panel h2 {
    font-size: 1.85rem;
  }
}
