/* 积分规则：与个人中心沿用同一套布局和卡片样式 */
.pr-main {
  min-height: 70vh;
  padding-top: 56px;
  padding-bottom: 96px;
}

.pr-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pr-side {
  position: sticky;
  top: 96px;
}

.pr-sidecard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fffdf7a8;
}

.pr-sidecard__brand {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.pr-sidecard__title {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.pr-sidecard__lead {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.pr-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.pr-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.pr-nav a::after {
  content: "›";
  font-size: 14px;
  color: #bdb4a6;
}

.pr-nav a:hover {
  color: var(--gold-ink);
}

.pr-body {
  min-width: 0;
}

.pr-head {
  margin-bottom: 24px;
}

.pr-head__eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-ink);
}

.pr-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.pr-head p {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.pr-panel {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fffdf7b8;
  scroll-margin-top: 110px;
}

.pr-panel:last-of-type {
  margin-bottom: 0;
}

.pr-panel__head {
  margin-bottom: 14px;
}

.pr-panel__eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
}

.pr-panel__head h3 {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.pr-panel__head p {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.pr-table-wrap {
  overflow-x: auto;
}

.pr-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.pr-table thead th {
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.pr-table thead th:last-child {
  padding-right: 0;
}

.pr-table tbody th {
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

.pr-table tbody th,
.pr-table tbody td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.75;
}

.pr-table tbody td:last-child,
.pr-table tbody th + td:last-child {
  padding-right: 0;
}

.pr-table tbody tr:last-child th,
.pr-table tbody tr:last-child td {
  border-bottom: 0;
  padding-bottom: 0;
}

.pr-table tbody td:nth-child(2) {
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.pr-table b {
  font-weight: 600;
  color: var(--ink);
}

.pr-note {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

.pr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

@media (max-width: 1000px) {
  .pr-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pr-side {
    position: static;
  }

  .pr-sidecard {
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 20px;
  }

  .pr-sidecard__brand,
  .pr-sidecard__lead {
    display: none;
  }

  .pr-sidecard__title {
    margin: 0;
    font-size: 22px;
  }

  .pr-nav {
    flex-flow: row wrap;
    gap: 0 18px;
    width: auto;
    margin-top: 0;
    border-top: 0;
  }

  .pr-nav a {
    gap: 6px;
    border-bottom: 0;
    padding: 6px 0;
  }

  .pr-nav a::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .pr-main {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .pr-panel {
    padding: 18px;
  }

  .pr-head h2 {
    font-size: 26px;
  }

  .pr-table {
    min-width: 560px;
  }
}

/* 窄屏把表格收成竖排，避免横向截断 */
@media (max-width: 700px) {
  .pr-table-wrap {
    overflow: visible;
  }

  .pr-table {
    min-width: 0;
    display: block;
  }

  .pr-table thead {
    display: none;
  }

  .pr-table tbody {
    display: block;
  }

  .pr-table tbody tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .pr-table tbody tr:last-child {
    padding-bottom: 0;
  }

  .pr-table tbody th,
  .pr-table tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .pr-table tbody th {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .pr-table tbody td {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .pr-table tbody td + td {
    margin-top: 2px;
  }
}

/* 登录后不再显示申请加入 */
.pr-actions .auth-in {
  display: none;
}

html.auth-in .pr-actions .auth-in {
  display: inline-flex;
}

html.auth-in .pr-actions .auth-out {
  display: none;
}
