/* 二级页统一顶栏 + Hero 卡片（与邀请有礼 / 认购记录一致，WebView 兼容） */

.pn-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 180px);
}
.pn-page.mall-page,
.pn-page.withdraw-page,
.pn-page.buy-page {
  background: #ffffff;
}

.pn-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 222, 228, 0.65);
}
.pn-nav .back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: #f0f2f4;
  color: var(--app-ink, #1c1c1c);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.pn-nav .back:active {
  opacity: 0.85;
}
.pn-nav .meta {
  flex: 1;
  min-width: 0;
}
.pn-nav .meta .k {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #b8860b;
  font-weight: 600;
}
.pn-nav .meta .t {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1.2;
  color: var(--app-ink, #1c1c1c);
}
.pn-nav .action {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #b8860b;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.pn-nav .action:active {
  opacity: 0.85;
}

.pn-dash {
  margin: 12px 16px 0;
  padding: 20px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1c1c1c 0%, #2a2a2a 55%, #1c1c1c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.pn-dash::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.pn-dash::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 102, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pn-dash > * {
  position: relative;
  z-index: 1;
}

.pn-dash-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pn-dash-top .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe566, #ffd100, #e6b800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1c;
  flex-shrink: 0;
}
.pn-dash-top .who {
  flex: 1;
  min-width: 0;
}
.pn-dash-top .who .name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pn-dash-top .who .sub {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.pn-dash-main {
  margin-top: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.pn-dash-main .big .k {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}
.pn-dash-main .big .v {
  margin-top: 4px;
  font-size: 42px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1;
  color: #ffd100;
}
.pn-dash-main .big .v small {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 2px;
}
.pn-dash-main .side {
  text-align: right;
  max-width: 46%;
}
.pn-dash-main .side .k {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.pn-dash-main .side .v {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.pn-dash-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pn-dash-row .cell {
  text-align: center;
  position: relative;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pn-dash-row .cell + .cell::before {
  display: none;
}
.pn-dash-row .cell .v {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  color: #fff;
  line-height: 1.1;
}
.pn-dash-row .cell .k {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

.pn-dash--text {
  padding: 18px 16px 16px;
}
.pn-dash--text .k {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}
.pn-dash--text h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1.25;
  color: #fff;
}
.pn-dash--text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.pn-sec {
  margin: 18px 16px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--app-muted, #999);
}
.pn-body {
  margin: 0 16px;
}
.pn-sheet {
  margin: 12px 16px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.pn-menu {
  margin: 0 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.pn-menu .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  position: relative;
}
.pn-menu .row + .row {
  border-top: 1px solid rgba(213, 222, 228, 0.45);
}
.pn-menu .row .avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f5f5;
}
.pn-menu .row .body {
  flex: 1;
  min-width: 0;
}
.pn-menu .row .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink, #1c1c1c);
  line-height: 1.35;
}
.pn-menu .row .sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--app-muted, #999);
  line-height: 1.4;
}
.pn-menu .row .qr {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.pn-page .sub-sheet {
  margin: 12px 16px 0;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.pn-page .sub-sheet::before {
  display: none;
}
.pn-page .sub-card {
  border-radius: 12px;
  background: #f7f8fa;
  border: 1px solid rgba(213, 222, 228, 0.5);
  overflow: hidden;
}
.pn-page .sub-tip {
  margin-bottom: 0;
  padding: 14px 16px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--app-muted, #999);
}
.pn-page .sub-actions {
  margin-top: 0;
  padding: 14px 16px;
}

.pn-empty {
  margin: 12px 16px;
  padding: 48px 20px;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  font-size: 13px;
  color: var(--app-muted, #999);
  line-height: 1.65;
}

/* ── 分组标题（带标签） ── */
.pn-sec-row {
  margin: 18px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pn-sec-row .t {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  color: var(--app-ink, #1c1c1c);
}
.pn-sec-row .tag {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f0f2f4;
  color: var(--app-muted, #999);
  letter-spacing: 0.04em;
}

/* ── 底部固定操作栏 ── */
.pn-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(213, 222, 228, 0.65);
}
.pn-dock .app-btn,
.pn-dock .pn-dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  border: 0;
  text-decoration: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
.pn-dock .app-btn {
  background: linear-gradient(135deg, #ffe566 0%, #ffd100 55%, #e6b800 100%) !important;
  color: #1c1c1c !important;
  box-shadow: 0 6px 18px rgba(255, 209, 0, 0.32) !important;
}
.pn-dock .app-btn:active {
  opacity: 0.92;
  transform: scale(0.99);
}
.pn-page.has-dock {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* ── 优惠券卡片 ── */
.pn-coupon-list {
  padding: 0 16px 12px;
}
.pn-coupon {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.pn-coupon.is-used {
  opacity: 0.55;
  filter: grayscale(0.25);
}
.pn-coupon .per {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: linear-gradient(160deg, #ffe566 0%, #ffd100 55%, #e6b800 100%);
  color: #1c1c1c;
  position: relative;
}
.pn-coupon .per::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f7f8fa;
  box-shadow: 0 -12px 0 #f7f8fa, 0 12px 0 #f7f8fa;
}
.pn-coupon .per .num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1;
}
.pn-coupon .per .unit {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
}
.pn-coupon .body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}
.pn-coupon .body .info .title {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-ink, #1c1c1c);
}
.pn-coupon .body .info .time {
  margin-top: 4px;
  font-size: 12px;
  color: var(--app-muted, #999);
}
.pn-coupon .body .status {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 209, 0, 0.16);
  color: #8b6914;
}
.pn-coupon.is-used .body .status {
  background: #f0f2f4;
  color: var(--app-muted, #999);
}

/* ── 股权证书卡片 ── */
.pn-cert-card {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(213, 222, 228, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.pn-cert-card:last-child {
  margin-bottom: 0;
}
.pn-cert-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pn-cert-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--app-display, sans-serif);
  line-height: 1.35;
  color: var(--app-ink, #1c1c1c);
}
.pn-cert-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #eef7ee;
  color: #2e7d32;
}
.pn-cert-badge.expired {
  background: #fff3e0;
  color: #ef6c00;
}
.pn-cert-badge.wait {
  background: #e3f2fd;
  color: #1565c0;
}
.pn-cert-badge.redeemed {
  background: #f5f5f5;
  color: #757575;
}
.pn-cert-meta {
  font-size: 13px;
  line-height: 1.75;
  color: var(--app-sub, #666);
}
.pn-cert-meta b {
  color: var(--app-ink, #1c1c1c);
  font-weight: 600;
  margin-right: 4px;
}
.pn-cert-actions {
  margin-top: 12px;
}
.pn-cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #ffe566 0%, #ffd100 55%, #e6b800 100%);
  color: #1c1c1c;
  box-shadow: 0 4px 12px rgba(255, 209, 0, 0.25);
}
.pn-cert-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fa;
  font-size: 12px;
  line-height: 1.65;
  color: var(--app-muted, #999);
}

/* ── 社群列表增强 ── */
.pn-menu .row .badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 209, 0, 0.16);
  color: #8b6914;
}
.pn-menu .row .badge.is-open {
  background: #eef7ee;
  color: #2e7d32;
}

/* ── 提示条 ── */
.pn-tip {
  margin: 8px 16px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fa;
  font-size: 12px;
  line-height: 1.65;
  color: var(--app-muted, #999);
}
.pn-tip strong {
  color: #b8860b;
  font-weight: 700;
}

/* ── 公司简介图片栈 ── */
.pn-img-stack {
  padding: 0 16px 16px;
}
.pn-img-stack img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── VIP 等级页（pn-nav + vip-rights 卡片） ── */
.pn-page.vip-staff-page {
  background: linear-gradient(180deg, #fff8d6 0%, #f7f8fa 220px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.pn-page.vip-staff-page .vip-rights-headline {
  padding: 8px 16px 0;
}
.pn-page.vip-staff-page .vip-rights-headline h1 {
  margin: 0;
  font-family: var(--app-display, sans-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  color: #1c1c1c;
}
.pn-page.vip-staff-page .vip-rights-headline .sub {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
  opacity: 0.78;
}
.pn-page.vip-staff-page .vip-rights-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #1c1c1c;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.pn-page.vip-staff-page .vip-rights-body {
  padding: 12px 14px 8px;
}
.pn-page.vip-staff-page .vip-rights-foot {
  margin: 4px 16px 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 209, 0, 0.2);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #8b6914;
}

/* bank-actions 复用 pn-dock */
.bank-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(213, 222, 228, 0.65);
}
.bank-actions .app-btn {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(255, 209, 0, 0.32) !important;
}

.pn-empty .ico {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #f0f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.pn-empty strong {
  color: var(--app-ink, #1c1c1c);
  font-weight: 700;
}
