/* ============================================================
 * 公开主页 / 数字名片
 * ============================================================ */
.pv-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  color: var(--pv-text);
  font-family: var(--pv-font);
  font-size: calc(15px * var(--pv-scale, 1));
  overflow-x: hidden;
  background-color: #0b0716;
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
.pv-page.pv-preview { min-height: 100%; }
.pv-bg-veil { position: fixed; inset: 0; pointer-events: none; background: #0a0614; z-index: 0; }
.pv-inner {
  position: relative; z-index: 1; margin: 0 auto; padding: 22px 18px 60px;
  max-width: var(--pv-width);
  display: flex; flex-direction: column;
}
.pv-page.mobile .pv-inner { max-width: 100%; }
.pv-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 40px; margin-bottom: 14px; position: relative; z-index: 5;
}
.pv-toolbar-right { display: flex; gap: 6px; }
.pv-tool {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent;
  background: rgba(255,255,255,.12); color: var(--pv-text); display: grid; place-items: center;
  backdrop-filter: blur(10px); transition: all .2s; padding: 0;
}
.pv-tool:hover { background: rgba(255,255,255,.22); }
.pv-tool.active { color: #ffd166; }
.pv-light .pv-tool { background: rgba(255,255,255,.6); border-color: rgba(20,18,31,.08); color: #232733; box-shadow: 0 4px 14px -6px rgba(0,0,0,.2); }
.pv-light .pv-tool:hover { background: #fff; }

.pv-qr-corner {
  position: fixed; right: 26px; top: 26px; z-index: 6; width: 148px; padding: 14px 14px 12px;
  border-radius: 18px; background: rgba(255,255,255,.92); color: #232733; text-align: center;
  box-shadow: 0 20px 50px -24px rgba(10, 5, 30, .6); border: 1px solid rgba(255,255,255,.5);
}
.pv-qr-corner p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: #5b5870; }
.pv-qr-corner p span { color: #9a97ab; font-size: 10px; }

.pv-head { text-align: center; padding: 8px 0 6px; }
.pv-avatar {
  width: 96px; height: 96px; margin: 0 auto; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(255,255,255,.35), rgba(255,255,255,.12));
  display: grid; place-items: center;
}
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv-avatar-fallback { font-size: 30px; font-weight: 700; color: rgba(255,255,255,.9); }
.pv-avatar.shape-circle { border-radius: 50%; }
.pv-avatar.shape-rounded { border-radius: 22%; }
.pv-avatar.shape-square { border-radius: 6px; }
.pv-avatar.with-border { box-shadow: 0 0 0 3px rgba(255,255,255,.28), 0 14px 30px -16px rgba(0,0,0,.5); }
.pv-light .pv-avatar.with-border { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 14px 30px -18px rgba(20,10,40,.35); }

.pv-name { font-size: 24px; font-weight: 700; margin: 14px 0 0; letter-spacing: -.3px; line-height: 1.3; }
.pv-bio {
  margin: 9px auto 0; max-width: 460px; font-size: 13px; line-height: 1.85; color: var(--pv-muted);
  white-space: pre-wrap; word-break: break-word; display: flex; flex-direction: column; align-items: center;
}
.pv-bio span { display: block; }
.pv-urlchip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 5px 12px;
  border-radius: 99px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.16);
  font-size: 11.5px; color: var(--pv-muted); cursor: pointer; transition: all .2s;
}
.pv-urlchip:hover { background: rgba(255,255,255,.2); color: var(--pv-text); }
.pv-light .pv-urlchip { background: rgba(255,255,255,.7); border-color: rgba(20,18,31,.08); color: #54516a; }
.pv-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pv-social-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s; padding: 0;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.5);
}
.pv-social-btn img { filter: brightness(0) invert(1); width: 17px; height: 17px; }
.pv-social-btn:hover { transform: translateY(-2px) scale(1.06); }
.pv-social-btn .l3-icon { stroke-width: 1.8; }

.pv-blocks { display: flex; flex-direction: column; gap: var(--pv-gap); margin-top: 26px; }
.pv-card {
  border-radius: var(--pv-card-radius); background: var(--pv-card-bg);
  backdrop-filter: blur(var(--pv-card-blur)); -webkit-backdrop-filter: blur(var(--pv-card-blur));
  box-shadow: 0 10px 30px -24px rgba(0,0,0,.4);
}

/* 链接按钮 */
.pv-link {
  display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 8px 12px 8px 8px;
  cursor: pointer; border: 1px solid var(--pv-btn-border);
  background: var(--pv-btn-bg); color: var(--pv-btn-color);
  border-radius: var(--pv-btn-radius);
  transition: transform .18s var(--ease), filter .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.pv-link:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pv-link:active { transform: scale(.995); }
.pv-btn-glass .pv-link { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pv-btn-solid .pv-link { box-shadow: 0 10px 24px -16px rgba(0,0,0,.45); }
.pv-btn-outline .pv-link { background: transparent; }
.pv-btn-outline .pv-link:hover { background: rgba(255,255,255,.08); }
.pv-light.pv-btn-outline .pv-link:hover { background: rgba(0,0,0,.03); }
.pv-btn-neon .pv-link { border-color: var(--pv-accent); box-shadow: 0 0 0 1px var(--pv-accent), 0 0 22px -8px var(--pv-accent); }

.pv-link-thumb { width: 48px; height: 48px; border-radius: 10px; background-size: cover; background-position: center; flex: none; }
.pv-link-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.pv-link-icon img { filter: brightness(0) invert(1); width: 19px; height: 19px; }
.pv-link-icon .l3-icon { width: 19px; height: 19px; }
.pv-link-text { flex: 1; min-width: 0; text-align: left; }
.pv-link-title { font-size: 14px; font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pv-link-sub { font-size: 11px; color: var(--pv-muted); margin-top: 2px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-badge { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--pv-accent); color: rgba(20,10,40,.9); }
.pv-link-arrow { color: var(--pv-faint); flex: none; }

/* 文本 */
.pv-text { padding: 6px 6px; font-size: 14px; line-height: 1.9; color: var(--pv-muted); word-break: break-word; }
.pv-text span { display: block; min-height: 4px; }

/* 图片 */
.pv-image { border-radius: var(--pv-card-radius); overflow: hidden; cursor: zoom-in; }
.pv-image img { width: 100%; max-height: 520px; object-fit: cover; }
.pv-gallery { border-radius: var(--pv-card-radius); overflow: hidden; }
.pv-gallery-scroll { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pv-gallery-scroll::-webkit-scrollbar { display: none; }
.pv-gallery-scroll img { width: 78%; max-width: 340px; height: 210px; object-fit: cover; border-radius: 12px; flex: none; cursor: zoom-in; }
.pv-gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv-gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }

/* 视频 */
.pv-video { position: relative; border-radius: var(--pv-card-radius); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; background: #0d0917; }
.pv-video img { width: 100%; height: 100%; object-fit: cover; }
.pv-video-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,20,.05), rgba(10,6,20,.6)); }
.pv-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1a1226; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.pv-video-title { position: absolute; left: 14px; bottom: 12px; right: 14px; color: #fff; font-size: 12.5px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* 音频 */
.pv-audio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--pv-btn-border); }
.pv-audio-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--pv-btn-bg); color: var(--pv-btn-color); display: grid; place-items: center; flex: none; border: 1px solid var(--pv-btn-border); }
.pv-audio-body { flex: 1; min-width: 0; }
.pv-audio-bar { height: 3px; border-radius: 3px; background: rgba(128,128,128,.25); margin-top: 8px; overflow: hidden; }
.pv-audio-bar i { display: block; height: 100%; width: 0; background: var(--pv-accent); transition: width .2s linear; }

/* 地图 */
.pv-map { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--pv-card-radius); background: var(--pv-card-bg); border: 1px solid var(--pv-btn-border); cursor: pointer; backdrop-filter: blur(var(--pv-card-blur)); }
.pv-map-pin { width: 36px; height: 36px; border-radius: 10px; background: var(--pv-accent); color: #20122f; display: grid; place-items: center; flex: none; }
.pv-map-go { font-size: 11px; color: var(--pv-muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }

/* 二维码卡 */
.pv-qrcard { display: flex; align-items: center; gap: 12px; padding: 12px; cursor: pointer; border: 1px solid var(--pv-btn-border); }
.pv-qrcard-img { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; overflow: hidden; flex: none; }
.pv-qrcard-img img { width: 100%; height: 100%; object-fit: cover; }

/* 分割线 */
.pv-divider { padding: 2px 0; }
.pv-divider.dv-line { border-top: 1px solid var(--pv-faint); opacity: .55; margin: 8px 0; }
.pv-divider.dv-space { height: 14px; }
.pv-divider.dv-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; }
.pv-divider.dv-dots span { display: flex; gap: 6px; }
.pv-divider.dv-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--pv-faint); }

/* 表单 */
.pv-formcard { padding: 16px; border: 1px solid var(--pv-btn-border); }
.pv-form-head { display: flex; gap: 11px; align-items: flex-start; }
.pv-form-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--pv-accent); color: #20122f; display: grid; place-items: center; flex: none; }
.pv-form-btn {
  width: 100%; height: 44px; margin-top: 14px; border: 0; border-radius: calc(var(--pv-btn-radius) / 1.6);
  background: var(--pv-btn-bg); color: var(--pv-btn-color); border: 1px solid var(--pv-btn-border);
  font-size: 13px; font-weight: 600;
}
.pv-form-btn:hover { filter: brightness(1.06); }

/* 打赏 */
.pv-donate { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--pv-btn-border); cursor: pointer; }
.pv-donate-go { font-size: 12px; font-weight: 600; color: #ffd166; }

/* 付费内容 */
.pv-paid { border-radius: var(--pv-card-radius); overflow: hidden; background: var(--pv-card-bg); border: 1px solid var(--pv-btn-border); backdrop-filter: blur(var(--pv-card-blur)); display: flex; }
.pv-paid-cover { width: 108px; object-fit: cover; flex: none; filter: blur(2px); }
.pv-paid-body { padding: 14px; flex: 1; min-width: 0; }
.pv-paid-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; padding: 3px 7px; border-radius: 4px; background: var(--pv-accent); color: #20122f; margin-bottom: 7px; }
.pv-paid-desc { font-size: 11.5px; color: var(--pv-muted); margin-top: 4px; }
.pv-paid-content { font-size: 12.5px; line-height: 1.8; margin-top: 8px; white-space: pre-wrap; }
.pv-paid-price { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--pv-accent); }

/* 页脚 */
.pv-foot { margin-top: 44px; padding-top: 22px; text-align: center; border-top: 1px solid rgba(255,255,255,.12); }
.pv-light .pv-foot { border-color: rgba(20,18,31,.1); }
.pv-badge-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pv-brand { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--pv-text); letter-spacing: -.2px; }
.pv-brand-mark { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(145deg,#a855f7,#6d28d9); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: .4px; }
.pv-brand + p { font-size: 11px; color: var(--pv-faint); margin: 0; }
.pv-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 18px;
  margin-top: 6px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #a855f7, #6d28d9); box-shadow: 0 10px 24px -12px rgba(109,40,217,.7);
}
.pv-cta:hover { filter: brightness(1.08); }
.pv-foot-meta { display: flex; justify-content: center; gap: 14px; margin-top: 16px; font-size: 10.5px; color: var(--pv-faint); }
.pv-report { border: 0; background: transparent; color: var(--pv-faint); font-size: 10.5px; padding: 0; }
.pv-report:hover { color: var(--pv-danger, #e5484d); }

/* 查看器 */
.pv-viewer { position: fixed; inset: 0; z-index: 9500; background: rgba(8,5,15,.92); display: grid; place-items: center; padding: 24px; }
.pv-viewer img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.pv-viewer-x { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }

/* 弹窗内容 */
.form-fields { margin-bottom: 4px; }
.form-fields .l3-field { margin-bottom: 14px; }
.form-fields textarea { min-height: 78px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; cursor: pointer; }
.opt input { accent-color: var(--violet); }
.form-error { color: var(--danger); font-size: 12px; margin: 0; }
.donate-box p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.donate-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.donate-amounts button { height: 54px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; }
.donate-amounts button.on { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-deep); }
.donate-box small { display: block; text-align: center; color: var(--faint); font-size: 11px; margin-top: 10px; }
.share-box { text-align: center; }
.share-box .l3-qr { margin: 0 auto 10px; }
.share-url { font-size: 12px; color: var(--muted); margin: 0 0 14px; word-break: break-all; }
.share-channels { text-align: left; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.share-ch { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.share-ch span { flex: 1; }
.share-ch-qr { display: flex; gap: 8px; justify-content: center; padding: 8px 0 12px; width: 100%; }
.share-ch-qr img { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.share-tip { font-size: 11px; color: var(--faint); line-height: 1.7; margin-top: 14px; text-align: left; }

/* 封禁 */
.pv-banned { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f6f4f8; color: #232733; text-align: center; }
.pv-banned .box { max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 26px; box-shadow: var(--shadow-m); }
.pv-banned h2 { font-size: 18px; margin: 12px 0 6px; }
.pv-banned p { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.pv-banned .ic { width: 56px; height: 56px; border-radius: 50%; background: #fff0f0; color: #e5484d; display: grid; place-items: center; margin: 0 auto; }

/* 加载骨架 */
.pv-skel {
  min-height: 100vh; background: linear-gradient(160deg,#241048,#0b1524);
  display: flex; flex-direction: column; align-items: center; padding: 80px 24px;
}
.sk-ava { width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.1); margin-bottom: 18px; animation: skp 1.4s infinite; }
.sk-line { height: 12px; border-radius: 6px; background: rgba(255,255,255,.1); margin-bottom: 10px; animation: skp 1.4s infinite; }
.sk-card { width: min(100%,520px); height: 56px; border-radius: 18px; background: rgba(255,255,255,.08); margin-top: 10px; animation: skp 1.4s infinite; }
@keyframes skp { 0%,100%{opacity:.55} 50%{opacity:1} }

/* 响应式 */
@media (max-width: 1120px) {
  .pv-qr-corner { display: none; }
}
@media (max-width: 640px) {
  .pv-inner { padding: 16px 14px 46px; }
  .pv-name { font-size: 22px; }
  .pv-bio { font-size: 12.5px; }
  .pv-blocks { margin-top: 22px; }
  .pv-link { min-height: 54px; }
  .pv-social-btn { width: 32px; height: 32px; }
}
@media (min-width: 900px) {
  .pv-inner { padding: 30px 24px 70px; }
}
