/* 认证页 + 用户中心（与站点顶栏/页脚一体） */

body.pt-auth-page {
  background: #eef3fb;
  color: #1a2233;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
body.pt-auth-page .pt-header {
  background: rgba(238, 243, 251, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #dce7f5;
  box-shadow: none;
}
body.pt-auth-page .pt-shell__main {
  position: relative;
  background-color: #eef3fb;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    radial-gradient(900px 360px at 88% 0%, rgba(6, 182, 212, 0.12), transparent 62%),
    radial-gradient(760px 320px at 8% 18%, rgba(99, 102, 241, 0.08), transparent 60%);
  background-size: 26px 26px, 26px 26px, auto, auto;
}
body.pt-auth-page .pt-shell__main::before { content: none; }
body.pt-auth-page .pt-shell { position: relative; }

.pt-auth {
  min-height: calc(100vh - var(--h-header) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 56px;
}
.pt-auth__panel {
  width: 100%;
  max-width: 480px;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(40, 60, 140, 0.08);
  animation: pt-auth-in .4s ease both;
}
.pt-auth__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0;
  background: transparent;
}
.pt-auth__tab {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #5b6275;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #e3ebf7;
  background: #f7f9fd;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.pt-auth__tab:hover { color: #2361FC; border-color: #b9ccf5; text-decoration: none; }
.pt-auth__tab.is-active {
  background: #2361FC;
  color: #fff;
  border-color: #2361FC;
  box-shadow: 0 8px 18px rgba(35, 97, 252, 0.22);
}
.pt-auth__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  background: linear-gradient(120deg, #1a2233 55%, #2361FC);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pt-auth__lead {
  margin: 0 0 20px;
  color: #5c6166;
  font-size: 14px;
  line-height: 1.6;
}
.pt-auth .pt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pt-auth .pt-field {
  gap: 6px;
  margin-bottom: 0;
}
.pt-auth .pt-field__label {
  font-size: 13px;
  font-weight: 700;
  color: #1a2233;
}
.pt-auth .pt-input {
  height: 46px;
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 12px;
  color: #1a2233;
}
.pt-auth .pt-input:focus {
  background: #fff;
  border-color: #2361FC;
  box-shadow: 0 0 0 4px rgba(35, 97, 252, 0.12);
}
.pt-auth .pt-field__row .pt-btn,
.pt-auth .pt-captcha {
  height: 46px;
  border-radius: 12px;
}
.pt-auth .pt-captcha {
  border: 1px solid #e3ebf7;
  background: #f7f9fd;
}
.pt-auth .pt-pw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pt-auth .pt-btn--primary {
  background: linear-gradient(135deg, #5B9AFF 0%, #2361FC 55%, #4A7FFF 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 10px 22px rgba(35, 97, 252, 0.28);
}
.pt-auth .pt-btn--primary:hover {
  color: #fff;
  filter: brightness(1.05);
}
.pt-auth .pt-btn--block {
  margin-top: 4px;
  height: 48px;
  font-size: 16px;
  border-radius: 12px;
}
.pt-auth .pt-reg-channel {
  background: #f4f7fd;
  border: 1px solid #e3ebf7;
  border-radius: 12px;
}
.pt-auth .pt-reg-channel__item:has(input:checked) {
  background: #2361FC;
  color: #fff;
  box-shadow: none;
}
.pt-auth__foot {
  margin-top: 18px;
  font-size: 13px;
  color: #5c6166;
  text-align: center;
}
.pt-auth__foot a { font-weight: 700; color: #2361FC; }
.pt-auth__help {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f4f7fd;
  border: 1px solid #e3ebf7;
  border-radius: 14px;
}
.pt-auth__help h2 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #1a2233;
}
.pt-auth__help p {
  margin: 0;
  color: #5c6166;
  font-size: 13px;
  line-height: 1.7;
}
.pt-auth__agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--c-text-sub);
  line-height: 1.6;
  cursor: pointer;
}
.pt-auth__agree input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--c-primary);
  flex-shrink: 0;
}
.pt-field__pw { position: relative; }
.pt-field__pw .pt-input { padding-right: 44px; }
.pt-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-weak, #9aa3b5);
  border-radius: var(--r-sm);
}
.pt-pw-toggle:hover { background: var(--c-bg-page, #f3f5f9); color: var(--c-primary); }
.pt-pw-toggle svg { width: 17px; height: 17px; }

@keyframes pt-auth-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.pt-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.pt-field { display: flex; flex-direction: column; gap: 6px; }
.pt-field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.pt-req {
  color: #dc2626;
  font-style: normal;
  font-weight: 700;
  margin-left: 2px;
}
.pt-field__row { display: flex; gap: var(--sp-3); align-items: center; }
.pt-field__row .pt-input { flex: 1; }
.pt-field__row .pt-btn { flex: 0 0 auto; height: 40px; white-space: nowrap; }
.pt-reg-channel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--c-bg-page, #f3f5f9);
}
.pt-reg-channel__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: calc(var(--r-md) - 2px);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-sub);
  transition: background .15s, color .15s, box-shadow .15s;
}
.pt-reg-channel__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pt-reg-channel__item:has(input:checked) {
  background: #fff;
  color: var(--c-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.pt-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.pt-field-hint {
  margin: -8px 0 0;
  font-size: var(--fs-xs);
  color: var(--c-text-weak);
}
.pt-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  background: var(--c-bg);
  color: var(--c-text);
  width: 100%;
  box-sizing: border-box;
}
.pt-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.pt-input:disabled { background: var(--c-bg-page); color: var(--c-text-sub); }
textarea.pt-input { height: auto; padding: 10px 12px; resize: vertical; }
.pt-captcha {
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  cursor: pointer;
  flex-shrink: 0;
}

.pt-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  line-height: 1.55;
}
.pt-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pt-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pt-alert--warn { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.pt-alert__extra { margin-top: 8px; }
.pt-alert__inline-form { display: inline-block; margin-left: 8px; vertical-align: middle; }
.pt-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ========== 用户中心 ========== */
.pt-member-page .pt-shell__main {
  background:
    radial-gradient(ellipse 48% 36% at 8% 0%, rgba(45, 177, 195, .08), transparent 60%),
    radial-gradient(ellipse 40% 32% at 96% 12%, rgba(0, 83, 201, .06), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 48%, #f8fafc 100%);
}
.pt-member {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-height: 520px;
  padding: 8px 0 28px;
}
.pt-member__nav {
  position: sticky;
  top: calc(var(--h-header) + 18px);
  padding: 18px 16px;
  border: 1px solid #e7eef5;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
.pt-member__who {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}
.pt-member__who .pt-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 20px;
  background: linear-gradient(145deg, #0053c9, #38bdf8);
  color: #fff;
  border-radius: 16px;
}
.pt-member__nick {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.02em;
  color: #17233b;
}
.pt-member__src {
  font-size: 12px;
  color: #8b95a8;
  margin-top: 3px;
}
.pt-member__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pt-member__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #5b657a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.pt-member__link-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #93a0b5;
}
.pt-member__link-ico .pt-icon { width: 18px; height: 18px; }
.pt-member__link:hover {
  background: #f4f7fb;
  color: #1d4ed8;
  text-decoration: none;
}
.pt-member__link:hover .pt-member__link-ico { color: #0053c9; }
.pt-member__link.is-active {
  background: linear-gradient(135deg, rgba(0, 83, 201, .12), rgba(56, 189, 248, .1));
  color: #1d4ed8;
}
.pt-member__link.is-active .pt-member__link-ico { color: #2563eb; }
.pt-member__link--accent { margin-top: 6px; }
.pt-member__explore {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  font-size: 13px;
  font-weight: 700;
  color: #0053c9;
  text-decoration: none;
}
.pt-member__explore:hover { color: #1d4ed8; text-decoration: none; }

.pt-member__main { min-width: 0; }
.pt-member__hero { margin-bottom: 22px; }
.pt-member__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8b95a8;
}
.pt-member__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #17233b;
  line-height: 1.2;
}
.pt-member__lead {
  margin: 0;
  color: #8b95a8;
  font-size: 14px;
  line-height: 1.55;
}

/* 注册成功欢迎条 */
.pt-welcome {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 26px 28px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(480px 220px at 92% 18%, rgba(255,255,255,.22), transparent 58%),
    linear-gradient(128deg, #1d4ed8 0%, #2563eb 42%, #38bdf8 100%);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .22);
  animation: pt-auth-in .45s ease both;
}
.pt-welcome__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.pt-welcome__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.pt-welcome__lead {
  margin: 0 0 18px;
  max-width: 36em;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.92);
}
.pt-welcome__gift {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 36em;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
}
.pt-welcome__gift strong {
  font-size: 16px;
  letter-spacing: -.02em;
}
.pt-welcome__gift span {
  font-size: 13px;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}
.pt-welcome__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-welcome__actions .pt-btn--primary {
  background: #fff;
  color: #1e3a8a;
  border-color: #fff;
}
.pt-welcome__actions .pt-btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.pt-invite-url {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}
.pt-invite-row { align-items: stretch; }

.pt-member-block { margin-bottom: var(--sp-8); }
.pt-muted { color: #8b95a8; font-size: 13px; line-height: 1.6; }
.pt-muted a { font-weight: 700; color: #0053c9; }

.pt-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.pt-stat {
  padding: 16px 16px 14px;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .03);
}
.pt-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #17233b;
}
.pt-stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #8b95a8;
}

.pt-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #e8eef6;
  border-radius: 14px;
  background: #fff;
}
.pt-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.pt-table__col-src { width: 26%; }
.pt-table__col-num { width: 15%; }
.pt-table__col-exp { width: 28%; }
.pt-table__col-st { width: 16%; }
.pt-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e8eef6;
  white-space: nowrap;
}
.pt-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
}
.pt-table tbody tr:last-child td { border-bottom: 0; }
.pt-table tbody tr:hover { background: #fafbfd; }
.pt-table__src {
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}
.pt-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}
.pt-table th.pt-table__num { text-align: right; }
.pt-table__when {
  white-space: nowrap;
  color: #334155;
}
.pt-table__when-main {
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.pt-table__when-hint {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}
.pt-table__row--warn .pt-table__when-hint { color: #c2410c; }
.pt-table__row--muted {
  background: #f8fafc;
}
.pt-table__row--muted .pt-table__src,
.pt-table__row--muted .pt-table__num,
.pt-table__row--muted .pt-table__when-main {
  color: #94a3b8;
}
.pt-table-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}
.pt-table-badge--ok { background: #ecfdf5; color: #047857; }
.pt-table-badge--soon { background: #fffbeb; color: #a16207; }
.pt-table-badge--warn { background: #fff7ed; color: #c2410c; }
.pt-table-badge--muted { background: #f1f5f9; color: #64748b; }

.pt-member-panel {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .035);
}
.pt-member-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pt-member-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #17233b;
}
.pt-member-panel__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: #8b95a8;
  line-height: 1.5;
}
.pt-member-panel__desc strong { color: #17233b; }
.pt-member-panel__more {
  font-size: 13px;
  font-weight: 700;
  color: #0053c9;
  text-decoration: none;
  white-space: nowrap;
}
.pt-member-panel__more:hover { color: #1d4ed8; text-decoration: none; }
.pt-member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pt-checkin .pt-member-panel__head { margin-bottom: 0; align-items: flex-end; }
.pt-checkin .pt-btn[disabled] {
  opacity: 0.7;
  cursor: default;
}

.pt-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pt-plain-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 14px;
}
.pt-plain-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.pt-plain-list a { font-weight: 600; color: #17233b; text-decoration: none; }
.pt-plain-list a:hover { color: #2563eb; }

.pt-fav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.pt-fav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid #e5eaf2;
  background: #fff;
  color: #334155;
  text-decoration: none;
  transition: all .2s;
}
.pt-fav-tab:hover { border-color: #2563eb; color: #2563eb; text-decoration: none; }
.pt-fav-tab.is-active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.pt-fav-tab em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  opacity: .72;
  background: rgba(0,0,0,.06);
  padding: 1px 6px;
  border-radius: 10px;
}
.pt-fav-tab.is-active em { background: rgba(255,255,255,.22); color: #fff; }

.pt-fav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pt-fav-card {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.pt-fav-card__link {
  display: flex;
  align-items: stretch;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-height: 88px;
}
.pt-fav-card__link:hover { color: inherit; text-decoration: none; }
.pt-fav-card:hover { border-color: #c7d2fe; box-shadow: 0 8px 24px rgba(37,99,235,.06); }
.pt-fav-card__cover {
  flex: 0 0 120px;
  background: #fff center/cover no-repeat;
  overflow: hidden;
}
.pt-fav-card__cover--default {
  background-color: #fff;
  background-size: 58% auto;
}
.pt-fav-card__cover--blank {
  background-image: linear-gradient(135deg, #0053c9, #2470e0);
}
.pt-fav-card__cover--practice.pt-fav-card__cover--blank {
  background-image: linear-gradient(135deg, #14b8a6, #2563eb);
}
.pt-fav-card__cover--article.pt-fav-card__cover--blank {
  background-image: linear-gradient(135deg, #f59e0b, #ef4444);
}
.pt-fav-card__cover--work.pt-fav-card__cover--blank {
  background-image: linear-gradient(135deg, #0053c9, #38bdf8);
}
.pt-fav-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px 12px 0;
}
.pt-fav-card__title {
  font-size: 15px;
  color: #17233b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pt-fav-card__sum {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pt-fav-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 2px;
}

.pt-sites-panel { margin-bottom: 16px; }
.pt-site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.pt-site-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pt-site-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}
.pt-site-card.is-wake {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.pt-site-card.is-expired {
  opacity: .88;
}
.pt-site-card.is-expired:hover {
  border-color: #e8eef6;
  box-shadow: none;
}
.pt-site-card__cover {
  position: relative;
  height: 128px;
  background: #eef4ff center / cover no-repeat;
}
.pt-site-card__cover--blank {
  background-image: linear-gradient(135deg, #0053c9 0%, #38bdf8 100%);
}
.pt-site-card.is-expired .pt-site-card__cover--blank {
  background-image: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
}
.pt-site-card__mark {
  position: absolute;
  left: 16px;
  bottom: 10px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .3);
  pointer-events: none;
  user-select: none;
}
.pt-site-card__pill {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  background: #f1f5f9;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.pt-site-card__pill--review {
  top: 10px;
  right: auto;
  left: 10px;
  background: #fffbeb;
  color: #a16207;
}
.pt-site-card__pill--ok { background: #ecfdf5; color: #047857; }
.pt-site-card__pill--soon { background: #fffbeb; color: #a16207; }
.pt-site-card__pill--warn { background: #fff7ed; color: #c2410c; }
.pt-site-card__pill--muted { background: #f1f5f9; color: #64748b; }
.pt-site-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 12px 14px 14px;
  min-width: 0;
}
.pt-site-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #17233b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pt-site-card__host {
  margin: 0;
  font-size: 12px;
  color: #8b95a8;
  line-height: 1.45;
  word-break: break-all;
}
.pt-site-card__hint {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.pt-site-card.is-openable .pt-site-card__cover,
.pt-site-card.is-openable .pt-site-card__title {
  cursor: pointer;
}
.pt-site-card__ops {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-site-card__ops .pt-btn {
  flex: 1 1 calc(50% - 4px);
  width: auto;
  min-width: 0;
  text-align: center;
}
.pt-site-card__ops .pt-site-card__ended {
  flex: 1 1 100%;
}
.pt-plan-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pt-plan-modal[hidden] { display: none !important; }
.pt-plan-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}
.pt-plan-modal__box {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}
.pt-plan-modal__box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.pt-plan-modal__box p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.pt-plan-modal__ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-site-card__ended {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 40px;
}
.pt-hist-n {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 999px;
}
.pt-hist-day { margin: 0 0 22px; }
.pt-hist-day:last-child { margin-bottom: 0; }
.pt-hist-day__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .04em;
}
@media (max-width: 560px) {
  .pt-fav-card__cover { flex-basis: 88px; }
  .pt-fav-card__body { padding-right: 12px; }
}

.pt-course-rows { display: flex; flex-direction: column; gap: 2px; }
.pt-course-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 14px 4px;
  border-bottom: 1px solid #eef2f7;
  color: inherit;
  text-decoration: none;
}
.pt-course-row__cover {
  flex: 0 0 88px;
  width: 88px;
  height: 52px;
  border-radius: 8px;
  background: #fff center/cover no-repeat;
  overflow: hidden;
}
.pt-course-row__cover--default {
  background-color: #fff;
  background-size: 58% auto;
}
.pt-course-row__cover--blank {
  background-image: linear-gradient(135deg, #0053c9, #2470e0);
}
.pt-course-row:hover { color: inherit; text-decoration: none; }
.pt-course-row__body { flex: 1; min-width: 0; }
.pt-course-row__title { font-weight: 700; margin-bottom: 8px; color: #17233b; }
.pt-course-row:hover .pt-course-row__title { color: #2563eb; }

.pt-note-list { list-style: none; margin: 0; padding: 0; }
.pt-note-item {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}
.pt-note-item__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: 8px;
  font-size: var(--fs-sm);
}
.pt-note-item__body {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 8px;
  white-space: pre-wrap;
}

/* 教程页收藏 / 笔记条 */
.pt-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.pt-doc-note {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-light);
}
.pt-doc-note textarea {
  width: 100%;
  min-height: 80px;
  margin-bottom: var(--sp-2);
}

.pt-avatar-upload {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  flex-wrap: wrap;
}
.pt-avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 28px;
  flex-shrink: 0;
}
.pt-avatar--xl {
  width: 88px;
  height: 88px;
  font-size: 34px;
  flex-shrink: 0;
  border-radius: 22px;
  background: linear-gradient(145deg, #0053c9, #38bdf8);
  color: #fff;
  overflow: hidden;
}
.pt-avatar--xl img { width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* 侧栏 / 概览头像编辑 */
.pt-member__avatar-wrap,
.pt-dash-hero__avatar {
  position: relative;
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.pt-member__avatar-edit,
.pt-dash-hero__avatar-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #e8eef6;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.pt-member__avatar-edit .pt-icon,
.pt-dash-hero__avatar-edit .pt-icon { width: 14px; height: 14px; }
.pt-member__avatar-tip {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.pt-member__avatar-tip:hover { color: #1d4ed8; text-decoration: none; }

/* 概览 Hero */
.pt-dash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid #e8eef6;
  border-radius: 22px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(56, 189, 248, .12), transparent 60%),
    linear-gradient(135deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .04);
}
.pt-dash-hero__main { display: flex; gap: 18px; align-items: center; min-width: 0; }
.pt-dash-hero__copy { min-width: 0; }
.pt-dash-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pt-dash-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.pt-dash-chip--hot { background: #eff6ff; color: #1d4ed8; }
.pt-dash-chip--warn { background: #fff7ed; color: #c2410c; }
.pt-dash-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; align-items: center; }
.pt-dash-hero__actions form { margin: 0; }
.pt-dash-hero__actions .pt-btn[disabled] { opacity: .7; cursor: default; }
.pt-welcome__checkin { display: inline; margin: 0; }

/* 统计卡片 */
.pt-stat-row--rich .pt-stat { position: relative; padding-top: 46px; }
.pt-stat--link {
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pt-stat--link:hover {
  transform: translateY(-2px);
  border-color: #c7d7fe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .08);
  text-decoration: none;
}
.pt-stat .pt-stat__ico {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
}
.pt-stat .pt-stat__ico .pt-icon {
  width: 16px;
  height: 16px;
  display: block;
  vertical-align: 0;
  fill: none;
  stroke: currentColor;
}
.pt-stat .pt-stat__ico--fav { background: #fffbeb; color: #d97706; }
.pt-stat .pt-stat__ico--note { background: #eaf2ff; color: #0053c9; }
.pt-stat .pt-stat__ico--check { background: #ecfdf5; color: #059669; }

/* 打卡增强 */
.pt-checkin--rich {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(56, 189, 248, .04)),
    #fff;
}
.pt-checkin__visual {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #2563eb, #38bdf8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}
.pt-checkin__visual .pt-icon { width: 28px; height: 28px; }

/* 新手引导 */
.pt-onboard__head { margin-bottom: 14px; }
.pt-onboard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pt-onboard__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e8eef6;
  background: #f8fbff;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pt-onboard__card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
  text-decoration: none;
}
.pt-onboard__card strong { font-size: 15px; color: #17233b; }
.pt-onboard__card span:last-child { font-size: 12px; color: #8b95a8; line-height: 1.5; }
.pt-onboard__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 快捷入口 */
.pt-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pt-quick-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid #e8eef6;
  background: var(--tile-bg, #f8fafc);
  color: #17233b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s;
}
.pt-quick-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  text-decoration: none;
}
.pt-quick-tile__ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  color: var(--tile-fg, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pt-quick-tile__ico .pt-icon { width: 18px; height: 18px; }

/* 空状态 */
.pt-empty {
  text-align: center;
  padding: 28px 18px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  border: 1px dashed #dbeafe;
}
.pt-empty__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pt-empty__ico .pt-icon { width: 24px; height: 24px; }
.pt-empty__title { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #17233b; }
.pt-empty__desc { margin: 0 0 14px; font-size: 13px; color: #8b95a8; line-height: 1.6; }
.pt-empty__actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* 头像上传表单 */
.pt-avatar-form {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.pt-avatar-picker {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  border-radius: 22px;
}
.pt-avatar-picker__overlay {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: rgba(15, 23, 42, .45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .18s;
  font-size: 12px;
  font-weight: 700;
}
.pt-avatar-picker:hover .pt-avatar-picker__overlay,
.pt-avatar-picker:focus-within .pt-avatar-picker__overlay { opacity: 1; }
.pt-avatar-picker__overlay .pt-icon { width: 22px; height: 22px; }
.pt-avatar-form__body { flex: 1; min-width: 240px; }
.pt-avatar-form__hint { margin: 0 0 10px; font-size: 13px; color: #8b95a8; line-height: 1.6; }
.pt-avatar-form__file {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 13px;
  color: #64748b;
}
.pt-avatar-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pt-avatar-form__actions .pt-btn[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 960px) {
  .pt-onboard__grid,
  .pt-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-dash-hero { flex-direction: column; align-items: stretch; }
  .pt-dash-hero__actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .pt-onboard__grid,
  .pt-quick-grid { grid-template-columns: 1fr; }
  .pt-checkin--rich { grid-template-columns: 1fr; }
  .pt-checkin__visual { display: none; }
  .pt-avatar-form { flex-direction: column; }
  .pt-invite-row { flex-wrap: wrap; }
  .pt-invite-row .pt-btn { width: 100%; }
}

@media (max-width: 960px) {
  .pt-member-grid { grid-template-columns: 1fr; }
  .pt-site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pt-member { grid-template-columns: 1fr; gap: 14px; padding-top: 0; }
  .pt-member__nav {
    position: sticky;
    top: var(--h-header);
    z-index: 20;
    padding: 12px;
    border-radius: 14px;
  }
  .pt-member__who { margin-bottom: 10px; padding-bottom: 10px; }
  .pt-member__menu {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pt-member__menu::-webkit-scrollbar { display: none; }
  .pt-member__link { padding: 8px 12px; flex: 0 0 auto; white-space: nowrap; }
  .pt-member__link-ico { display: none; }
  .pt-member__explore { margin-top: 10px; padding-top: 10px; }
  .pt-stat-row { grid-template-columns: repeat(2, 1fr); }
  .pt-field-grid { grid-template-columns: 1fr; }
  .pt-checkin .pt-member-panel__head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .pt-auth { padding: 16px 0 28px; align-items: flex-start; }
  .pt-auth__panel {
    max-width: none;
    padding: 20px 16px 18px;
    border-radius: 14px;
  }
  .pt-auth .pt-pw-grid { grid-template-columns: 1fr; }
  .pt-welcome { padding: 22px 18px; }
  .pt-member__nav { padding: 12px; border-radius: 14px; }
  .pt-pay-orders__item { align-items: flex-start; }
  .pt-pay-orders__top { width: 100%; }
  .pt-pay-orders__actions { width: 100%; margin-left: 0; }
  .pt-site-grid { grid-template-columns: 1fr; }
  .pt-plan-grid { grid-template-columns: 1fr; }
  .pt-dash-hero { padding: 16px; }
  .pt-dash-hero__main { flex-direction: column; align-items: flex-start; }
  .pt-dash-hero__actions .pt-btn { width: 100%; justify-content: center; }
  .pt-member-panel { padding-left: 14px; padding-right: 14px; }
}

.pt-invite-list {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.pt-invite-list__head {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #17233b;
}
.pt-invite-list__head strong { font-size: 16px; }
.pt-invite-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pt-invite-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 13px;
}
.pt-invite-list li:last-child { border-bottom: 0; }
.pt-invite-list__user {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  color: #0f172a;
}

.pt-stat--hero {
  background: linear-gradient(135deg, #eef4ff 0%, #fff 58%);
  border-color: #d7e4ff;
}
.pt-stat--hero strong { color: #1d4ed8; }
.pt-credit-shop { scroll-margin-top: 88px; }
.pt-credit-shop-head { margin-bottom: 4px; }
.pt-credit-shop-tabs {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.pt-credit-shop-tab {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 8px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #94a3b8;
  line-height: 1.2;
  border-bottom: 2px solid transparent;
}
.pt-credit-shop-tab:hover { color: #334155; }
.pt-credit-shop-tab.is-on {
  color: #0f172a;
  border-bottom-color: #2563eb;
}
.pt-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
  align-items: stretch;
}
.pt-plan-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 20px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.pt-plan-card.is-current,
.pt-plan-card--public {
  border-color: #bfd0ff;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 42%);
}
.pt-plan-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pt-plan-card__top h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.pt-plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 4px;
}
.pt-plan-card__unit {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
}
.pt-plan-card__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}
.pt-plan-feat {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pt-plan-feat li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}
.pt-plan-feat li::before {
  content: "√";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 800;
}
.pt-plan-card .pt-btn { margin-top: 16px; width: 100%; }
@media (max-width: 720px) {
  .pt-plan-grid { grid-template-columns: 1fr; }
  .pt-credit-shop-tab { font-size: 18px; }
}
.pt-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.pt-pack-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pt-pack-card:hover {
  transform: translateY(-3px);
  border-color: #bfd0ff;
  box-shadow: 0 16px 36px rgba(35, 97, 252, .12);
}
.pt-pack-card.is-featured {
  border-color: #ffb089;
  background: linear-gradient(180deg, #fff8f4 0%, #fff 42%);
}
.pt-pack-card__badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  z-index: 1;
}
.pt-pack-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}
.pt-pack-badge--first {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}
.pt-pack-badge--hot {
  color: #fff;
  background: linear-gradient(135deg, #ff7a45, #ff4d6d);
  box-shadow: 0 4px 10px rgba(255, 77, 109, .25);
}
.pt-pack-badge--ok { background: #dcfce7; color: #15803d; }
.pt-pack-badge--wait { background: #fff7ed; color: #c2410c; }
.pt-pack-badge--muted { background: #f1f5f9; color: #64748b; }
.pt-pack-card__mp {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #17233b;
  line-height: 1.1;
  padding-right: 92px;
}
.pt-pack-card__mp small {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0;
}
.pt-pack-card__name {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
}
.pt-pack-card__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}
.pt-pack-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.pt-pack-card__now {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #e11d48;
  line-height: 1;
}
.pt-pack-card__list {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
}
.pt-pack-card__list em {
  font-style: normal;
  margin-right: 2px;
}
.pt-pack-card__list s {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.pt-pack-card__hint { color: #94a3b8; font-size: 12px; margin-top: 8px; line-height: 1.45; }
.pt-pack-card .pt-pack-buy { margin-top: 14px; width: 100%; }
.pt-pay-orders {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pt-pay-orders__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 12px;
  border: 1px solid #e8eef6;
  border-radius: 10px;
  background: #fff;
}
.pt-pay-orders__item.is-pending {
  border-color: #fed7aa;
  background: #fffaf5;
}
.pt-pay-orders__item.is-paid {
  border-color: #d1fae5;
  background: #f6fffb;
}
.pt-pay-orders__item.is-expired,
.pt-pay-orders__item.is-closed {
  background: #f8fafc;
}
.pt-pay-orders__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
}
.pt-pay-orders__sku {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.pt-pay-orders__sku strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #17233b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-pay-orders__sku-sub {
  font-size: 12px;
  color: #94a3b8;
  flex: 0 0 auto;
}
.pt-pay-orders__pay {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.pt-pay-orders__amt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #17233b;
  line-height: 1.2;
}
.pt-pay-orders__item.is-pending .pt-pay-orders__amt { color: #c2410c; }
.pt-pay-orders__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12px;
  color: #94a3b8;
  flex: 1 1 160px;
  min-width: 0;
}
.pt-pay-orders__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.pt-pay-resume {
  width: auto;
  margin: 0;
  min-width: 0;
  padding: 5px 12px;
}
.pt-pay-orders__cd {
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
  font-variant-numeric: tabular-nums;
}
.pt-pay-cancel {
  width: auto;
  margin: 0;
  padding: 5px 12px;
}
.pt-pay-cd {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #e11d48;
  font-variant-numeric: tabular-nums;
}
.pt-checkout-modal { text-align: left; width: min(400px, 100%); }
.pt-checkout-summary {
  text-align: center;
  padding: 16px 12px 18px;
  margin: 8px 0 18px;
  background: #f8fafc;
  border-radius: 14px;
}
.pt-checkout-summary #pt-checkout-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #17233b;
  margin-bottom: 4px;
}
.pt-checkout-summary #pt-checkout-name[hidden] { display: none; }
.pt-checkout-summary #pt-checkout-mp {
  display: block;
  font-size: 13px;
  color: #64748b;
}
.pt-checkout-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 10px 0 0;
  text-align: center;
}
.pt-checkout-price #pt-checkout-now {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #e11d48;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-align: center;
}
.pt-checkout-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}
.pt-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.pt-pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.pt-pay-method.is-on {
  border-color: #07c160;
  background: #f3fbf6;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .12);
}
.pt-pay-method.is-off,
.pt-pay-method:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.pt-pay-method__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pt-pay-method__txt strong { font-size: 14px; color: #0f172a; }
.pt-pay-method__txt em { font-style: normal; font-size: 12px; color: #94a3b8; }
.pt-pay-method__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex: 0 0 auto;
}
.pt-pay-method.is-on .pt-pay-method__check {
  border-color: #07c160;
  background: #07c160;
  box-shadow: inset 0 0 0 3px #fff;
}
.pt-pay-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pt-pay-mask[hidden] { display: none; }
.pt-pay-modal {
  position: relative;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  text-align: center;
}
.pt-pay-modal h3 { margin: 0 0 6px; font-size: 18px; }
.pt-pay-sub { margin: 0 0 14px; color: #475569; font-size: 14px; }
.pt-pay-qr {
  width: 196px;
  height: 196px;
  margin: 0 auto 12px;
  background: #fff;
}
.pt-pay-qr img, .pt-pay-qr canvas { display: block; margin: 0 auto; }
.pt-pay-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.pt-pay-err { color: #b91c1c; font-size: 13px; margin: 8px 0 12px; }

.pt-redeem-panel { margin-top: 16px; }
.pt-redeem-box {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}
.pt-redeem-box .pt-input {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}
.pt-redeem-box .pt-btn {
  flex: 0 0 auto;
  min-width: 108px;
  height: 44px;
  border-radius: 12px;
  font-weight: 700;
}
.pt-redeem-modal__icon { font-size: 42px; line-height: 1; margin: 4px 0 10px; }
.pt-redeem-modal__lead {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f766e;
  line-height: 1.5;
}
.pt-redeem-modal__ops {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.pt-redeem-modal__ops .pt-btn { min-width: 108px; }
@media (max-width: 640px) {
  .pt-redeem-box { flex-wrap: wrap; }
  .pt-redeem-box .pt-btn { width: 100%; }
}

.pt-ledger-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  margin-top: 14px;
}
.pt-ledger-filters .pt-field { margin: 0; min-width: 0; }
.pt-ledger-filters__date { flex: 0 1 160px; }
.pt-ledger-filters__kind { flex: 1 1 180px; }
.pt-ledger-filters__ops {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  padding-bottom: 1px;
}
.pt-ledger-filters__ops .pt-btn { height: 40px; min-width: 72px; }
.pt-ledger-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.pt-ledger-quick a {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
}
.pt-ledger-quick a:hover { background: #dbeafe; }
.pt-ledger-sum {
  margin: 12px 0 0;
  font-size: 13px;
  color: #64748b;
}
.pt-ledger-sum strong { font-weight: 700; }
.pt-ledger-empty { margin: 16px 0 0; }
.pt-ledger-table-wrap { overflow-x: auto; margin-top: 12px; }
.pt-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pt-ledger-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.pt-ledger-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #334155;
}
.pt-ledger-table tbody tr:last-child td { border-bottom: 0; }
.pt-ledger-table__when { white-space: nowrap; color: #64748b; }
.pt-ledger-table__detail { color: #64748b; line-height: 1.5; word-break: break-word; }
.pt-ledger-table__amt {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pt-ledger-kind {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.pt-ledger-kind--out { background: #fef2f2; color: #b91c1c; }
.pt-ledger-kind--in { background: #ecfdf5; color: #047857; }
.pt-ledger-amt--out { color: #b91c1c; }
.pt-ledger-amt--in { color: #15803d; }
.pt-member-page .pt-pagination.pt-ledger-pager {
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  gap: 8px;
}
.pt-member-page .pt-pagination.pt-ledger-pager a,
.pt-member-page .pt-pagination.pt-ledger-pager span {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: none;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 36px;
  aspect-ratio: 1 / 1;
}
.pt-member-page .pt-pagination.pt-ledger-pager a:hover {
  border-color: #0053c9;
  color: #0053c9;
  background: #f8fbff;
}
.pt-member-page .pt-pagination.pt-ledger-pager .is-active {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #0053c9;
  border-color: #0053c9;
  color: #fff;
  box-shadow: none;
}
.pt-member-page .pt-pagination.pt-ledger-pager a:first-child,
.pt-member-page .pt-pagination.pt-ledger-pager span:first-child,
.pt-member-page .pt-pagination.pt-ledger-pager a:last-child,
.pt-member-page .pt-pagination.pt-ledger-pager span:last-child {
  width: auto;
  min-width: 72px;
  max-width: none;
  padding: 0 14px;
  border-radius: 18px;
  flex: 0 0 auto;
  aspect-ratio: auto;
}
.pt-ledger-result { min-height: 88px; }
.pt-ledger-result.is-loading { opacity: .65; pointer-events: none; }
.pt-ledger-skel { padding: 12px 0 4px; }
.pt-ledger-skel__sum { height: 14px; width: 240px; margin-bottom: 14px; }
.pt-ledger-skel__row { height: 44px; margin-bottom: 8px; }
@media (max-width: 720px) {
  .pt-ledger-filters__date,
  .pt-ledger-filters__kind { flex: 1 1 calc(50% - 8px); }
  .pt-ledger-filters__ops { width: 100%; }
  .pt-ledger-filters__ops .pt-btn { flex: 1; }
  .pt-ledger-table thead { display: none; }
  .pt-ledger-table, .pt-ledger-table tbody, .pt-ledger-table tr, .pt-ledger-table td { display: block; width: 100%; }
  .pt-ledger-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .pt-ledger-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .pt-ledger-table td::before {
    content: attr(data-label);
    color: #94a3b8;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .pt-ledger-table__amt { text-align: right; }
  .pt-table { min-width: 0; table-layout: auto; }
  .pt-table thead { display: none; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: 100%; }
  .pt-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
  }
  .pt-table tbody tr:last-child { border-bottom: 0; }
  .pt-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    border: 0;
    text-align: right;
  }
  .pt-table td::before {
    content: attr(data-label);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    flex: 0 0 auto;
    text-align: left;
  }
  .pt-table__num,
  .pt-table th.pt-table__num { text-align: right; }
  .pt-table__when { white-space: normal; text-align: right; }
}

.pt-badge-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.pt-badge-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e8eef6;
  border-radius: 18px;
  background: #fff;
}
.pt-badge-card.is-got {
  border-color: #f5d78a;
  background: #fffaf0;
}
.pt-badge-card__ic {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 16px;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #94a3b8;
  font-weight: 800;
}
.pt-badge-card.is-got .pt-badge-card__ic { background: #fff6e4; }
.pt-badge-card__ic img { width: 48px; height: 48px; object-fit: contain; }
.pt-badge-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #17233b;
}
.pt-badge-card__name em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.pt-badge-card.is-got .pt-badge-card__name em { color: #b45309; }
.pt-badge-card__desc,
.pt-badge-card__how,
.pt-badge-card__when {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}
.pt-badge-card__how { color: #1e3a5f; }
.pt-badge-card__when { color: #b45309; font-weight: 700; }
.pt-badge-wall__more { margin: 16px 0 0; }
.pt-badge-card:not(.is-got) .pt-badge-card__ic { opacity: .72; }
