/* ============================================================
   页面 03 · 学生端待开通页（ST-03）
   ============================================================ */

.pending-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink-900);
  background:
    radial-gradient(760px 520px at 12% -12%, rgba(47, 107, 255, 0.13), transparent 62%),
    radial-gradient(620px 460px at 96% 108%, rgba(30, 79, 216, 0.1), transparent 62%),
    var(--bg);
}

.pending-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 35, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 41, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 74%);
  pointer-events: none;
}

/* ---------- 顶部 ---------- */
.pg-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 34px;
}

.pg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-brand-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pg-brand-name b {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-900);
}

.pg-brand-name span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--ink-400);
}

.pg-exit {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease-soft);
}

.pg-exit:hover {
  border-color: var(--brand-200);
  color: var(--brand-600);
  background: #fff;
}

/* ---------- 主体 ---------- */
.pg-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 32px 40px;
}

.pg-card {
  width: 484px;
  max-width: 100%;
  padding: 32px 36px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 2px 4px rgba(15, 30, 60, 0.03),
    0 26px 64px rgba(15, 30, 60, 0.1);
}

.pg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pg-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b8bff, #1e4fd8);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.pg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pg-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pg-tag.is-warn {
  background: var(--warn-bg);
  color: var(--warn-deep);
}

.pg-tag.is-neutral {
  background: #f2f4f8;
  color: var(--ink-600);
}

.pg-tag.is-danger {
  background: var(--danger-bg);
  color: var(--danger-deep);
}

.pg-eyebrow {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--ink-400);
}

.pg-card h1 {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pg-sub {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-600);
}

.pg-sub b {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

/* 申请课程 */
.pg-panel {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #f8fafc;
}

.pg-label {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}

.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pg-chips span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--brand-050);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 600;
}

.pg-empty {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-400);
}

.pg-reason {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger-deep);
}

.pg-reason b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}

.pg-reason p {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
}

/* 操作 */
.pg-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--dur-fast) var(--ease-soft);
}

.pg-btn:hover {
  background: #f7f9fc;
  color: var(--ink-900);
}

.pg-btn.primary {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.26);
}

.pg-btn.primary:hover {
  background: var(--brand-600);
  color: #fff;
}

.pg-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.pg-poll {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-400);
  text-align: center;
}

.pg-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-400);
}

.pg-foot a {
  color: var(--ink-600);
  font-weight: 600;
}

.pg-foot a:hover {
  color: var(--brand-600);
}

/* 演示控制 */
.pg-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 484px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  font-size: 11.5px;
  color: var(--ink-400);
}

.pg-demo-label {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

.pg-demo a {
  color: var(--ink-600);
  font-weight: 600;
}

.pg-demo a.is-on {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pg-demo a:hover {
  color: var(--brand-600);
}

.pg-demo button {
  color: var(--brand-600);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-050);
}

.pg-demo button:hover {
  background: var(--brand-100);
}

/* 小屏 */
@media (max-width: 640px) {
  .pg-top {
    padding: 14px 16px;
  }

  .pg-exit {
    height: 32px;
    padding: 0 10px;
  }

  .pg-main {
    justify-content: flex-start;
    padding: 5vh 16px 28px;
  }

  .pg-card {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .pg-avatar {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .pg-eyebrow {
    margin-top: 16px;
    font-size: 10px;
  }

  .pg-card h1 {
    font-size: 22px;
  }

  .pg-sub {
    font-size: 13px;
  }

  .pg-label {
    font-size: 12px;
  }

  .pg-btn {
    height: 46px;
    font-size: 14px;
  }

  .pg-poll {
    font-size: 12px;
  }

  .pg-demo {
    font-size: 12px;
  }

  .pg-demo a,
  .pg-demo button {
    font-size: 12px;
  }
}
