/* 新零售商城系统 - 商户后台 - 红 + 白 + 浅灰 */
:root {
  --pt-red: #e60012;
  --pt-red-dark: #c4000f;
  --pt-red-light: #fff1f0;
  --pt-text: #333;
  --pt-muted: #999;
  --pt-border: #e8e8e8;
  --pt-bg: #f5f5f5;
  --pt-sidebar: #fafafa;
}

* { box-sizing: border-box; }
body.pt-body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--pt-text); background: var(--pt-bg); }

/* ========== 登录/注册 ========== */
.pt-auth-page { min-height: 100vh; display: flex; background: linear-gradient(135deg, #fff 0%, #fafafa 50%, #fff5f5 100%); }
.pt-auth-left { flex: 1; padding: 48px 64px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.pt-auth-left::before { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(230,0,18,.08) 0%, transparent 70%); top: 10%; left: 10%; }
.pt-auth-brand { font-size: 36px; font-weight: 700; color: #111; letter-spacing: 2px; position: relative; }
.pt-auth-sub { margin-top: 12px; color: var(--pt-muted); font-size: 16px; position: relative; }
.pt-auth-visual { margin-top: 48px; width: 280px; height: 280px; background: linear-gradient(145deg, var(--pt-red-light), #fff); border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--pt-red); box-shadow: 0 20px 60px rgba(230,0,18,.12); position: relative; }
.pt-auth-right { width: 480px; min-width: 420px; display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.04); }
.pt-auth-card { width: 100%; max-width: 380px; }
.pt-auth-tabs { display: flex; border-bottom: 1px solid var(--pt-border); margin-bottom: 32px; }
.pt-auth-tab { flex: 1; text-align: center; padding: 12px 0; color: var(--pt-muted); cursor: pointer; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.pt-auth-tab.active { color: var(--pt-red); border-bottom-color: var(--pt-red); font-weight: 600; }
.pt-field { margin-bottom: 20px; }
.pt-field label { display: block; font-size: 13px; color: #666; margin-bottom: 8px; }
.pt-field label .req { color: var(--pt-red); }
.pt-input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--pt-border); border-radius: 4px; font-size: 14px; outline: none; transition: border .2s; }
.pt-input:focus { border-color: var(--pt-red); }
.pt-input-row { display: flex; gap: 10px; }
.pt-input-row .pt-input { flex: 1; }
.pt-btn-red { width: 100%; height: 44px; background: var(--pt-red); color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background .2s; }
.pt-btn-red:hover { background: var(--pt-red-dark); }
.pt-btn-outline { height: 44px; padding: 0 16px; background: #fff; border: 1px solid var(--pt-red); color: var(--pt-red); border-radius: 4px; cursor: pointer; white-space: nowrap; font-size: 13px; }
.pt-auth-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13px; }
.pt-auth-links a { color: var(--pt-red); text-decoration: none; }
.pt-alert { padding: 10px 14px; background: var(--pt-red-light); color: var(--pt-red); border-radius: 4px; margin-bottom: 20px; font-size: 13px; }
.pt-checkbox { font-size: 12px; color: var(--pt-muted); margin-top: 16px; }
.pt-checkbox a { color: var(--pt-red); }
.pt-auth-onboard { margin-top: 24px; padding: 16px; background: var(--pt-red-light); border-radius: 8px; text-align: center; }
.pt-auth-onboard-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #333; }
.pt-auth-onboard-steps { margin: 0 0 12px; font-size: 12px; color: #666; }
.pt-auth-onboard .pt-btn-outline { display: inline-block; line-height: 42px; text-decoration: none; }
.pt-tag { display: inline-block; padding: 2px 10px; background: var(--pt-red-light); color: var(--pt-red); border-radius: 4px; font-size: 13px; }

/* ========== 登录页 · 高端视觉（仅 premium 变体） ========== */
.pt-auth-page--premium {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #08080f 0%, #120a14 38%, #1a0810 72%, #0d0d16 100%);
  overflow: hidden;
}

.pt-auth-page--premium .pt-auth-left::before {
  display: none;
}

.pt-auth-page__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout B：居中复合面板 ---------- */
.pt-auth-page--layout-b .pt-auth-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  padding: 40px 28px 48px;
  margin: 0 auto;
}

.pt-auth-hero {
  text-align: center;
  margin-bottom: 36px;
}

.pt-auth-hero__mark {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255, 160, 160, 0.9);
  border: 1px solid rgba(230, 0, 18, 0.35);
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.1);
}

.pt-auth-hero__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 2px 28px rgba(230, 0, 18, 0.22);
}

.pt-auth-hero__sub {
  margin: 12px 0 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
}

.pt-auth-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(230, 0, 18, 0.06) inset,
    0 0 120px rgba(230, 0, 18, 0.05);
  overflow: hidden;
}

.pt-auth-panel__body {
  display: grid;
  grid-template-columns: 1fr 1px 400px;
  align-items: stretch;
}

.pt-auth-panel__intro {
  padding: 44px 48px 40px;
  color: #fff;
}

.pt-auth-panel__tag {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.pt-auth-panel__headline {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 30%, rgba(255, 200, 200, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pt-auth-panel__desc {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.42);
  max-width: 380px;
}

.pt-auth-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pt-auth-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

.pt-auth-point__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pt-red);
  box-shadow: 0 0 12px rgba(230, 0, 18, 0.7);
}

.pt-auth-panel__sep {
  background: linear-gradient(180deg, transparent, rgba(230, 0, 18, 0.35) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(230, 0, 18, 0.35) 70%, transparent);
  width: 1px;
}

.pt-auth-panel__form {
  padding: 44px 40px 40px;
  background: rgba(0, 0, 0, 0.18);
}

.pt-auth-form-head {
  margin-bottom: 28px;
}

.pt-auth-form-head__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.pt-auth-form-head__sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.pt-auth-panel__foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.pt-auth-stat {
  padding: 20px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.pt-auth-stat:last-child {
  border-right: none;
}

.pt-auth-stat__val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 2px;
}

.pt-auth-stat__key {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 1px;
}

.pt-auth-page--layout-b .pt-auth-ring {
  top: 50%;
  left: 50%;
}

.pt-auth-page--layout-b .pt-auth-ring--2 {
  top: 30%;
  left: 55%;
}

.pt-auth-page--layout-b .pt-auth-orb--2 {
  right: 5%;
  bottom: 10%;
}

.pt-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.9;
  will-change: transform;
}

.pt-auth-orb--1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.5) 0%, rgba(230, 0, 18, 0) 68%);
  animation: ptAuthOrbDrift1 14s ease-in-out infinite;
}

.pt-auth-orb--2 {
  width: 400px;
  height: 400px;
  bottom: -60px;
  right: 12%;
  background: radial-gradient(circle, rgba(255, 72, 88, 0.32) 0%, rgba(180, 0, 30, 0) 70%);
  animation: ptAuthOrbDrift2 18s ease-in-out infinite;
}

.pt-auth-orb--3 {
  width: 240px;
  height: 240px;
  top: 38%;
  left: 42%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 72%);
  animation: ptAuthOrbDrift3 11s ease-in-out infinite;
}

.pt-auth-orb--4 {
  width: 320px;
  height: 320px;
  top: 18%;
  right: 8%;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.22) 0%, transparent 70%);
  animation: ptAuthOrbDrift4 16s ease-in-out infinite;
}

.pt-auth-beam {
  position: absolute;
  width: 160%;
  height: 2px;
  top: 42%;
  left: -30%;
  background: linear-gradient(90deg, transparent 0%, rgba(230, 0, 18, 0) 18%, rgba(230, 0, 18, 0.4) 50%, rgba(230, 0, 18, 0) 82%, transparent 100%);
  transform: rotate(-8deg);
  animation: ptAuthBeamSweep 8s ease-in-out infinite;
}

.pt-auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 15%, transparent 80%);
}

.pt-auth-ring {
  position: absolute;
  width: 560px;
  height: 560px;
  top: 58%;
  left: 28%;
  border: 1px solid rgba(230, 0, 18, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ptAuthRingSpin 28s linear infinite;
}

.pt-auth-ring::before,
.pt-auth-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.pt-auth-ring::before {
  inset: 52px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

.pt-auth-ring::after {
  width: 10px;
  height: 10px;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  background: var(--pt-red);
  box-shadow: 0 0 18px rgba(230, 0, 18, 0.9), 0 0 40px rgba(230, 0, 18, 0.4);
}

.pt-auth-ring--2 {
  width: 380px;
  height: 380px;
  top: 22%;
  left: 72%;
  border-color: rgba(255, 255, 255, 0.05);
  animation: ptAuthRingSpinRev 22s linear infinite;
}

.pt-auth-ring--2::after {
  display: none;
}

.pt-auth-page--premium .pt-auth-brand {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(230, 0, 18, 0.25);
}

.pt-auth-page--premium .pt-auth-sub {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  letter-spacing: 1px;
}

.pt-auth-desc {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
  max-width: 420px;
}

.pt-auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 52px;
}

.pt-auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pt-auth-feature:hover {
  border-color: rgba(230, 0, 18, 0.35);
  transform: translateX(6px);
  box-shadow: 0 12px 40px rgba(230, 0, 18, 0.12);
}

.pt-auth-feature__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--pt-red);
  background: rgba(230, 0, 18, 0.15);
  border: 1px solid rgba(230, 0, 18, 0.28);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(230, 0, 18, 0.2);
}

.pt-auth-feature__title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.pt-auth-feature__text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
}

.pt-auth-card--glass {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(230, 0, 18, 0.08) inset,
    0 0 80px rgba(230, 0, 18, 0.06);
  position: relative;
  overflow: hidden;
}

.pt-auth-card--glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.pt-auth-card__head {
  text-align: center;
  margin-bottom: 28px;
}

.pt-auth-card__badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 180, 180, 0.95);
  background: rgba(230, 0, 18, 0.18);
  border: 1px solid rgba(230, 0, 18, 0.3);
  border-radius: 999px;
}

.pt-auth-card__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.pt-auth-card__sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.pt-auth-page--premium .pt-field--glass {
  margin-bottom: 18px;
}

.pt-auth-page--premium .pt-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.pt-auth-page--premium .pt-input--glass {
  height: 46px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.pt-auth-page--premium .pt-input--glass::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.pt-auth-page--premium .pt-input--glass:focus {
  border-color: rgba(230, 0, 18, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.15);
}

.pt-auth-page--premium .pt-btn-red--glow {
  height: 48px;
  margin-top: 8px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ff1a2e 0%, var(--pt-red) 45%, var(--pt-red-dark) 100%);
  box-shadow: 0 8px 28px rgba(230, 0, 18, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.pt-auth-page--premium .pt-btn-red--glow:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(230, 0, 18, 0.5);
  transform: translateY(-1px);
}

.pt-auth-page--premium .pt-alert {
  margin-bottom: 18px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid transparent;
}

.pt-auth-page--premium .pt-alert--ok {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #86efac;
}

.pt-auth-page--premium .pt-alert--error {
  background: rgba(230, 0, 18, 0.12);
  border-color: rgba(230, 0, 18, 0.28);
  color: #ffb3b8;
}

@keyframes ptAuthOrbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes ptAuthOrbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, -24px) scale(1.06); }
}

@keyframes ptAuthOrbDrift3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-42%, -58%) scale(1.15); opacity: 1; }
}

@keyframes ptAuthOrbDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-24px, 20px) scale(1.1); opacity: 0.9; }
}

@keyframes ptAuthBeamSweep {
  0%, 100% { opacity: 0.2; transform: rotate(-8deg) translateX(-10%); }
  50% { opacity: 0.75; transform: rotate(-8deg) translateX(10%); }
}

@keyframes ptAuthRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ptAuthRingSpinRev {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pt-auth-page--premium .pt-auth-orb,
  .pt-auth-page--premium .pt-auth-beam,
  .pt-auth-page--premium .pt-auth-ring {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .pt-auth-page--layout-b .pt-auth-panel__body {
    grid-template-columns: 1fr 1px 360px;
  }
  .pt-auth-panel__intro {
    padding: 36px 32px 32px;
  }
  .pt-auth-panel__form {
    padding: 36px 28px 32px;
  }
  .pt-auth-panel__headline {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .pt-auth-page--layout-b .pt-auth-panel__body {
    grid-template-columns: 1fr;
  }
  .pt-auth-panel__sep {
    display: none;
  }
  .pt-auth-panel__intro {
    padding: 32px 28px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .pt-auth-panel__headline {
    font-size: 28px;
  }
  .pt-auth-points {
    margin-top: 20px;
    gap: 10px;
  }
  .pt-auth-panel__form {
    padding: 28px 28px 32px;
  }
  .pt-auth-hero__title {
    font-size: 28px;
    letter-spacing: 2px;
  }
}

@media (max-width: 960px) {
  .pt-auth-page--layout-b .pt-auth-stage {
    padding: 28px 16px 36px;
  }
  .pt-auth-panel__foot {
    grid-template-columns: 1fr;
  }
  .pt-auth-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
  }
  .pt-auth-stat:last-child {
    border-bottom: none;
  }
}

/* ========== 会员中心布局 ========== */
.pt-layout { display: flex; min-height: 100vh; }
.pt-sidebar { width: 236px; background: var(--pt-sidebar); border-right: 1px solid var(--pt-border); flex-shrink: 0; display: flex; flex-direction: column; }
.pt-sidebar-head { height: 60px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--pt-border); flex-shrink: 0; }
.pt-sidebar-logo { font-size: 16px; font-weight: 700; color: var(--pt-red); }
.pt-sidebar-logo span { color: #333; font-weight: 500; margin-left: 6px; font-size: 14px; }
.pt-sidebar-nav-wrap { flex: 1; overflow-x: hidden; overflow-y: auto; padding: 8px 0 16px; }
.pt-sidebar-nav-wrap::-webkit-scrollbar { width: 4px; }
.pt-sidebar-nav-wrap::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 4px; }

/* 侧栏导航 */
.pt-nav { list-style: none; margin: 0; padding: 4px 10px; }
.pt-nav-item,
.pt-nav-group { margin-bottom: 2px; }

.pt-nav-link,
.pt-nav-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.pt-nav-link:hover,
.pt-nav-group__head:hover {
  color: var(--pt-red);
  background: var(--pt-red-light);
}

.pt-nav-link.active,
.pt-nav-group.open > .pt-nav-group__head {
  color: var(--pt-red);
  background: var(--pt-red-light);
  font-weight: 600;
}

.pt-nav-sub .pt-nav-link {
  min-height: 38px;
  padding-left: 42px;
  font-size: 13px;
  font-weight: normal;
  border-radius: 6px;
}

.pt-nav-sub .pt-nav-link.active {
  color: var(--pt-red);
  background: var(--pt-red-light);
  position: relative;
}

.pt-nav-sub .pt-nav-link.active::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--pt-red);
}

.pt-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-nav-arrow {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 2px solid #bbb;
  border-bottom: 2px solid #bbb;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.15s ease;
  margin-right: 2px;
}

.pt-nav-group.open > .pt-nav-group__head .pt-nav-arrow {
  transform: rotate(-135deg);
  border-color: var(--pt-red);
}

.pt-nav-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.pt-nav-group.open > .pt-nav-sub-wrap {
  grid-template-rows: 1fr;
}

.pt-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.pt-nav-group.open > .pt-nav-sub-wrap > .pt-nav-sub {
  padding: 2px 0 6px;
}

.pt-nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.88;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.pt-nav-icon--home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a1 1 0 01-1 1h-5v-6H9v6H4a1 1 0 01-1-1v-9.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 10.5L12 3l9 7.5V20a1 1 0 01-1 1h-5v-6H9v6H4a1 1 0 01-1-1v-9.5z'/%3E%3C/svg%3E");
}

.pt-nav-icon--site {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-8 0 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-8 0 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
}

.pt-nav-icon--race {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
}

.pt-nav-icon--enroll {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2'/%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3C/svg%3E");
}

.pt-nav-icon--finance {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E");
}

.pt-nav-icon--users {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2M9 11a4 4 0 100-8 4 4 0 000 8zm10 10v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2M9 11a4 4 0 100-8 4 4 0 000 8zm10 10v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E");
}

.pt-nav-icon--plugin {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.pt-nav-icon--bonus {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9 10c0-1.5 1.5-2 3-2s3 .5 3 2-1.5 2-3 2-3 .5-3 2 1.5 2 3 2 3-.5 3-2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v10M9 10c0-1.5 1.5-2 3-2s3 .5 3 2-1.5 2-3 2-3 .5-3 2 1.5 2 3 2 3-.5 3-2'/%3E%3C/svg%3E");
}

.pt-nav-icon--sys {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E");
}

.pt-nav-icon--cert {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .pt-nav-sub-wrap,
  .pt-nav-arrow {
    transition: none;
  }
}

/* 认证流程等仍使用 plain <a> 的侧栏 */
.pt-nav > li > a:not(.pt-nav-link) {
  display: block;
  padding: 12px 20px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  margin: 0 10px 2px;
}
.pt-nav > li > a:not(.pt-nav-link):hover {
  color: var(--pt-red);
  background: var(--pt-red-light);
}
.pt-nav > li > a:not(.pt-nav-link).active {
  color: var(--pt-red);
  background: var(--pt-red-light);
  font-weight: 600;
}

.pt-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pt-header { height: 56px; background: #fff; border-bottom: 1px solid var(--pt-border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.pt-breadcrumb { font-size: 13px; color: var(--pt-muted); }
.pt-breadcrumb b { color: var(--pt-text); font-weight: 500; }
.pt-header-right { display: flex; align-items: center; flex-shrink: 0; }
.pt-header-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-size: 12px;
  line-height: 1.2;
  color: #666;
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--pt-border);
  border-radius: 6px;
  transition: color .15s, border-color .15s, background .15s;
}
.pt-header-cert__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  opacity: 0.9;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.pt-header-cert__text { white-space: nowrap; }
.pt-header-cert:hover { color: var(--pt-red); border-color: rgba(230, 0, 18, 0.35); background: var(--pt-red-light); }
.pt-header-cert.active { color: var(--pt-red); border-color: rgba(230, 0, 18, 0.45); background: var(--pt-red-light); font-weight: 600; }
.pt-header-user { font-size: 13px; color: #666; white-space: nowrap; }
.pt-header-user a { color: var(--pt-red); margin-left: 12px; text-decoration: none; }
.pt-content { flex: 1; padding: 24px; }

/* ========== 服务大厅首页 ========== */
.pt-hall-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; }
.pt-notice { background: #fff; border: 1px solid var(--pt-border); border-radius: 8px; padding: 14px 20px; margin-bottom: 32px; font-size: 13px; color: #666; display: flex; align-items: center; gap: 10px; }
.pt-notice-icon { color: var(--pt-red); font-size: 18px; }
.pt-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; }
.pt-service-card { background: var(--pt-red); border-radius: 12px; padding: 40px 28px; color: #fff; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s; text-decoration: none; display: block; min-height: 220px; }
.pt-service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(230,0,18,.3); color: #fff; }
.pt-service-card .icon { font-size: 48px; margin-bottom: 16px; opacity: .9; }
.pt-service-card h3 { font-size: 18px; margin: 0 0 12px; font-weight: 600; }
.pt-service-card p { font-size: 13px; opacity: .85; line-height: 1.6; margin: 0; }

/* ========== 三步认证 ========== */
.pt-steps { display: flex; align-items: center; justify-content: center; max-width: 640px; margin: 0 auto 40px; }
.pt-step { display: flex; align-items: center; color: var(--pt-muted); font-size: 14px; }
.pt-step-num { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--pt-border); display: flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 14px; }
.pt-step.done { color: var(--pt-text); }
.pt-step.done .pt-step-num { background: var(--pt-red); border-color: var(--pt-red); color: #fff; }
.pt-step.active { color: var(--pt-red); font-weight: 600; }
.pt-step.active .pt-step-num { border-color: var(--pt-red); color: var(--pt-red); }
.pt-step-line { width: 80px; height: 2px; background: var(--pt-border); margin: 0 16px; }
.pt-step-line.done { background: var(--pt-red); }
.pt-form-card { background: #fff; border-radius: 8px; padding: 32px 40px; max-width: 900px; margin: 0 auto; border: 1px solid var(--pt-border); }
.pt-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.pt-form-grid .full { grid-column: 1 / -1; }
.pt-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--pt-border); }
.pt-btn-gray { height: 40px; padding: 0 24px; background: #fff; border: 1px solid var(--pt-border); border-radius: 4px; cursor: pointer; font-size: 14px; color: #666; text-decoration: none; line-height: 38px; }
.pt-btn-red-sm { height: 40px; padding: 0 32px; background: var(--pt-red); color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.pt-textarea { width: 100%; min-height: 100px; padding: 10px 14px; border: 1px solid var(--pt-border); border-radius: 4px; font-size: 14px; resize: vertical; font-family: inherit; }
.pt-upload-box { border: 1px dashed var(--pt-border); border-radius: 8px; padding: 24px; text-align: center; color: var(--pt-muted); font-size: 13px; cursor: pointer; }
.pt-upload-box img { max-width: 200px; max-height: 120px; margin-top: 8px; }
.pt-pending-box { max-width: 520px; margin: 80px auto; text-align: center; background: #fff; padding: 48px; border-radius: 12px; border: 1px solid var(--pt-border); }
.pt-pending-box .icon { font-size: 64px; color: var(--pt-red); margin-bottom: 20px; }
.pt-pending-box h2 { font-size: 20px; margin-bottom: 12px; }
.pt-pending-box p { color: var(--pt-muted); font-size: 14px; line-height: 1.8; }
.pt-alert { padding: 10px 14px; background: var(--pt-red-light); color: var(--pt-red); border-radius: 4px; font-size: 13px; }

@media (max-width: 960px) {
  .pt-auth-page:not(.pt-auth-page--premium) { flex-direction: column; }
  .pt-auth-page:not(.pt-auth-page--premium) .pt-auth-left { display: none; }
  .pt-auth-page:not(.pt-auth-page--premium) .pt-auth-right { width: 100%; min-width: auto; }
  .pt-service-grid { grid-template-columns: 1fr; }
  .pt-form-grid { grid-template-columns: 1fr; }
  .pt-sidebar { display: none; }
}

/* ========== 图片上传组件 ========== */
.pt-upload-wrap { margin-bottom: 8px; }
.pt-upload-preview {
  width: 100%;
  min-height: 160px;
  border: 1px dashed var(--pt-border);
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
  margin-top: 8px;
}
.pt-upload-preview:hover { border-color: var(--pt-red); }
.pt-upload-empty { text-align: center; padding: 24px; }
.pt-upload-icon {
  display: block;
  width: 48px;
  height: 48px;
  line-height: 44px;
  margin: 0 auto 12px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  font-size: 28px;
  color: #bbb;
}
.pt-upload-tip { font-size: 12px; color: var(--pt-muted); line-height: 1.6; }
.pt-upload-img { max-width: 100%; max-height: 200px; object-fit: contain; display: block; padding: 12px; }
.pt-upload-repick { font-size: 12px; color: var(--pt-red); padding-bottom: 12px; text-align: center; display: block; }
.pt-upload-trigger {
  margin-top: 10px;
  height: 36px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--pt-red);
  color: var(--pt-red);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.pt-cert-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-detail-img { max-width: 280px; max-height: 180px; border: 1px solid var(--pt-border); border-radius: 4px; margin: 8px 8px 8px 0; vertical-align: top; }
@media (max-width: 640px) { .pt-cert-imgs { grid-template-columns: 1fr; } }
