/* ═══ 平台导航页 ═══ */

.pnav-page { background: var(--bg-alt); min-height: 70vh; }

/* 顶部 */
.pnav-hero {
  position: relative;
  padding: 64px 0 52px;
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(37, 99, 235, .35), transparent 62%),
    linear-gradient(160deg, #0A1726 0%, #10294A 55%, #1E40AF 100%);
  color: #fff;
  overflow: hidden;
}
.pnav-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.pnav-hero .section-container { position: relative; z-index: 1; text-align: center; }
.pnav-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .12);
  color: #BFDBFE;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.pnav-title {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.pnav-sub { margin: 0 0 26px; font-size: 1rem; color: rgba(255, 255, 255, .72); }

/* 搜索框 */
.pnav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px;
  height: 48px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s;
}
.pnav-search:focus-within {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(147, 197, 253, .6);
}
.pnav-search svg { flex-shrink: 0; color: rgba(255, 255, 255, .55); }
.pnav-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: .9375rem;
  outline: none;
}
.pnav-search input::placeholder { color: rgba(255, 255, 255, .45); }
.pnav-search kbd {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .6);
  font-size: .6875rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* 内容区 */
.pnav-body { padding: 44px 0 64px; }
.pnav-group + .pnav-group { margin-top: 40px; }
.pnav-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.pnav-group-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pnav-group-head h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateY(1px);
}
.pnav-group-count {
  font-size: .75rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* 卡片 */
.pnav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) { .pnav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pnav-grid { grid-template-columns: 1fr; } }

.pnav-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pnav-card:hover {
  transform: translateY(-3px);
  border-color: #BFDBFE;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .12);
}
.pnav-card[hidden] { display: none; }

.pnav-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(140deg, #2563EB, #60A5FA);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .22);
}
.pnav-mark-teal { background: linear-gradient(140deg, #0D9488, #2DD4BF); box-shadow: 0 4px 12px rgba(13, 148, 136, .22); }
.pnav-mark-violet { background: linear-gradient(140deg, #7C3AED, #A78BFA); box-shadow: 0 4px 12px rgba(124, 58, 237, .22); }
.pnav-mark-amber { background: linear-gradient(140deg, #D97706, #FBBF24); box-shadow: 0 4px 12px rgba(217, 119, 6, .22); }
.pnav-mark-rose { background: linear-gradient(140deg, #E11D48, #FB7185); box-shadow: 0 4px 12px rgba(225, 29, 72, .22); }
.pnav-mark-slate { background: linear-gradient(140deg, #334155, #64748B); box-shadow: 0 4px 12px rgba(51, 65, 85, .22); }

.pnav-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pnav-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.pnav-host {
  font-size: .6875rem;
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  line-height: 1.5;
  word-break: break-all;
}
.pnav-desc {
  margin-top: 6px;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.pnav-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  color: var(--text-tertiary);
  background: var(--bg-alt);
  transition: background .18s, color .18s, transform .18s;
}
.pnav-card:hover .pnav-go {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
}

.pnav-empty {
  margin: 24px 0 0;
  padding: 28px;
  text-align: center;
  font-size: .9375rem;
  color: var(--text-tertiary);
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.pnav-foot {
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--text-tertiary);
  text-align: center;
}
.pnav-foot a { color: var(--primary); }

.pnav-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pnav-tag {
  flex-shrink: 0;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .02em;
}
