/* 官网会员壳 · 全屏工作台 */
:root {
  --pv-mc-bg: #f4f7fb;
  --pv-mc-surface: #fff;
  --pv-mc-border: #e6ebf2;
  --pv-mc-text: #0f172a;
  --pv-mc-muted: #64748b;
  --pv-mc-primary: #1e4b9b;
  --pv-mc-primary-soft: #eef4ff;
  --pv-mc-shadow: 0 10px 30px rgb(15 23 42 / 6%);
  --pv-mc-radius: 14px;
}

.pv-mc-body {
  margin: 0;
  min-height: 100vh;
  color: var(--pv-mc-text);
  background: var(--pv-mc-bg);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pv-mc-top {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 56px;
  padding: 0 1.5rem;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid var(--pv-mc-border);
  backdrop-filter: blur(10px);
}

.pv-mc-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pv-mc-primary);
  text-decoration: none;
  white-space: nowrap;
}

.pv-mc-top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
}

.pv-mc-top-link {
  color: var(--pv-mc-muted);
  text-decoration: none;
}

.pv-mc-top-link:hover {
  color: var(--pv-mc-primary);
}

.pv-mc-user-menu__toggle {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pv-mc-text);
  background: #fff;
  border: 1px solid var(--pv-mc-border);
  border-radius: 999px;
}

.pv-mc-user-menu__toggle::after {
  margin-left: 0.15rem;
}

.pv-mc-user-menu__avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pv-mc-primary);
  background: var(--pv-mc-primary-soft);
  border-radius: 50%;
}

.pv-mc-user-menu__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-mc-user-menu__dropdown {
  min-width: 11rem;
  padding: 0.35rem;
  border-color: var(--pv-mc-border);
  box-shadow: var(--pv-mc-shadow);
}

.pv-mc-app {
  display: flex;
  min-height: calc(100vh - 56px);
  align-items: stretch;
}

.pv-mc-side {
  flex: 0 0 200px;
  width: 200px;
  background: var(--pv-mc-surface);
  border-right: 1px solid var(--pv-mc-border);
}

.pv-mc-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 1.75rem 2.5rem;
}

.pv-mc-main:has(.pv-mc-home) > .pv-member-asset-bar {
  display: none;
}

.pv-mc-nav-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 190;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: var(--pv-mc-primary);
  box-shadow: 0 8px 20px rgb(30 75 155 / 28%);
}

.pv-mc-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100vh - 56px);
  padding: 0.85rem 0.55rem 1rem;
}

.pv-mc-nav__profile {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0.45rem 1rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #eef2f7;
}

.pv-mc-nav__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  font-weight: 700;
  color: var(--pv-mc-primary);
  background: var(--pv-mc-primary-soft);
  border-radius: 50%;
}

.pv-mc-nav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-mc-nav__who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pv-mc-nav__who strong {
  overflow: hidden;
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-mc-nav__who span {
  font-size: 0.75rem;
  color: var(--pv-mc-muted);
}

.pv-mc-nav__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.2rem;
}

.pv-mc-nav__item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  color: #334155;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pv-mc-nav__item i {
  width: 1.1rem;
  font-size: 1rem;
  color: #94a3b8;
}

.pv-mc-nav__item:hover {
  color: var(--pv-mc-primary);
  background: #f8fafc;
}

.pv-mc-nav__item:hover i {
  color: var(--pv-mc-primary);
}

.pv-mc-nav__item.active {
  font-weight: 600;
  color: var(--pv-mc-primary);
  background: var(--pv-mc-primary-soft);
  border-color: #dbeafe;
}

.pv-mc-nav__item.active i {
  color: var(--pv-mc-primary);
}

.pv-mc-nav__item--tail {
  margin-top: 0.35rem;
  border-top: 1px dashed #e2e8f0;
  border-radius: 10px 10px var(--pv-mc-radius) var(--pv-mc-radius);
}

.pv-mc-nav__logout-form {
  margin: 0;
}

.pv-mc-nav__logout {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.62rem 0.7rem;
  color: var(--pv-mc-muted);
  text-decoration: none;
  text-align: left;
  border: 0;
  border-top: 1px solid #eef2f7;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* —— 会员首页 —— */
.pv-mc-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

.pv-mc-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgb(37 99 235 / 8%), transparent 42%),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  border: 1px solid var(--pv-mc-border);
  border-radius: var(--pv-mc-radius);
  box-shadow: var(--pv-mc-shadow);
}

.pv-mc-hero__profile {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.pv-mc-hero__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pv-mc-primary);
  background: var(--pv-mc-primary-soft);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgb(30 75 155 / 12%);
}

.pv-mc-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-mc-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pv-mc-hero__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pv-mc-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pv-mc-primary);
  background: var(--pv-mc-primary-soft);
  border-radius: 999px;
}

.pv-mc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--pv-mc-muted);
}

.pv-mc-hero__dot {
  opacity: 0.55;
}

.pv-mc-hero__status {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #b45309;
}

.pv-mc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.pv-mc-btn {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
}

.pv-mc-btn--ghost {
  color: var(--pv-mc-primary);
  background: #fff;
  border-color: #bfdbfe;
}

.pv-mc-btn--ghost:hover {
  background: var(--pv-mc-primary-soft);
}

.pv-mc-btn--primary {
  color: #fff;
  background: var(--pv-mc-primary);
  border-color: var(--pv-mc-primary);
}

.pv-mc-btn--primary:hover {
  color: #fff;
  background: #183f84;
}

.pv-mc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.pv-mc-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 96px;
  padding: 1rem 1.05rem;
  text-decoration: none;
  background: var(--pv-mc-surface);
  border: 1px solid var(--pv-mc-border);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgb(15 23 42 / 3%);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.pv-mc-metric:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 24px rgb(30 75 155 / 8%);
  transform: translateY(-1px);
}

.pv-mc-metric__label {
  font-size: 0.8125rem;
  color: var(--pv-mc-muted);
}

.pv-mc-metric__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pv-mc-text);
  letter-spacing: -0.02em;
}

.pv-mc-metric__value--sm {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.pv-mc-metric--balance .pv-mc-metric__value {
  color: var(--pv-mc-primary);
}

.pv-mc-metric--points .pv-mc-metric__value {
  color: #0f766e;
}

.pv-mc-panel {
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--pv-mc-surface);
  border: 1px solid var(--pv-mc-border);
  border-radius: var(--pv-mc-radius);
  box-shadow: var(--pv-mc-shadow);
}

.pv-mc-panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pv-mc-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.pv-mc-panel__lead {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pv-mc-muted);
}

.pv-mc-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pv-mc-tile {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 76px;
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  background: #fafbfd;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pv-mc-tile:hover {
  background: #fff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.pv-mc-tile__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  color: var(--pv-mc-primary);
  background: var(--pv-mc-primary-soft);
  border-radius: 50%;
}

.pv-mc-tile__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pv-mc-tile__title {
  font-size: 0.9375rem;
  font-weight: 700;
}

.pv-mc-tile__desc {
  font-size: 0.75rem;
  color: var(--pv-mc-muted);
}

.pv-mc-tile__arrow {
  flex-shrink: 0;
  color: #cbd5e1;
}

.pv-mc-tile:hover .pv-mc-tile__arrow {
  color: var(--pv-mc-primary);
}

/* 插件嵌入页：主内容区拉满 */
.pv-www-member-embed {
  width: 100%;
  max-width: none;
}

.pv-www-member-embed .pv-card,
.pv-www-member-embed .pv-activate-page {
  border-radius: var(--pv-mc-radius);
  box-shadow: var(--pv-mc-shadow);
}

@media (min-width: 992px) {
  .pv-mc-offcanvas {
    position: static;
    display: block;
    transform: none !important;
    visibility: visible !important;
    width: 100%;
    height: auto;
    background: transparent;
    border: none;
  }

  .pv-mc-offcanvas .offcanvas-body {
    overflow: visible;
  }
}

@media (max-width: 991.98px) {
  .pv-mc-side {
    flex: 0 0 0;
    width: 0;
    border: none;
  }

  .pv-mc-main {
    width: 100%;
    padding: 1rem;
  }

  .pv-mc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pv-mc-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pv-mc-hero {
    padding: 1rem;
  }

  .pv-mc-tiles {
    grid-template-columns: 1fr;
  }

  .pv-mc-hero__actions {
    width: 100%;
  }

  .pv-mc-btn {
    flex: 1 1 auto;
  }

  .pv-mc-metrics {
    grid-template-columns: 1fr;
  }
}
