/* 公司 / 职位社媒分享卡：预览是浏览器本地 DOM，保存 / 分享时才在本地导出图片。 */
.share-poster-trigger,
.share-poster-action,
.share-poster-close,
.share-poster-placeholder button{
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  font-family: inherit;
}

.share-poster-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
  touch-action: manipulation;
}
.share-poster-trigger svg,
.share-poster-action svg,
.share-poster-close svg{
  flex: 0 0 auto;
}

.share-poster-overlay{
  position: fixed;
  inset: 0;
  z-index: 9200;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding:
    max(20px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  background: rgba(10, 10, 12, 0.74);
  animation: share-poster-overlay-in 180ms cubic-bezier(.2, .8, .2, 1);
}

.share-poster-sheet{
  position: relative;
  width: min(405px, calc(100vw - 40px), 56dvh);
  min-width: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  outline: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: share-poster-sheet-in 220ms cubic-bezier(.2, .8, .2, 1);
}

.share-poster-overlay--closing{
  pointer-events: none;
  animation: share-poster-overlay-out 180ms cubic-bezier(.2, .8, .2, 1) both;
}
.share-poster-overlay--closing .share-poster-sheet{
  animation: share-poster-sheet-out 180ms cubic-bezier(.2, .8, .2, 1) both;
}

.share-poster-preview{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  corner-shape: round;
  -webkit-corner-shape: round;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 26px 64px -20px rgba(0, 0, 0, 0.62);
}

.share-poster-topbar{
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.share-poster-preview-scale{
  position: absolute;
  top: 0;
  left: 0;
  width: 540px;
  height: 720px;
  transform-origin: top left;
}

.share-poster-card{
  position: relative;
  width: 540px;
  height: 720px;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.share-poster-pic-a{
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: block;
  width: 540px;
  height: 222px;
  object-fit: contain;
  user-select: none;
}

.share-poster-content-frame{
  position: absolute;
  z-index: 1;
  top: 210px;
  left: 45px;
  width: 450px;
  height: 640px;
  overflow: hidden;
  border-radius: 32px;
  background: #f4f4f4;
}

.share-poster-content-source{
  width: 642.8571428571px;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  transform: scale(.7);
  transform-origin: top left;
  color: #1d1d1f;
}
.share-poster-content-source,
.share-poster-content-source *{
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif !important;
  animation: none !important;
  transition: none !important;
  pointer-events: none !important;
}
.share-poster-content-source .share-poster-content-clone{
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  padding: 44px 42px 180px !important;
}
.share-poster-content-source--team .t4-topcard{
  margin: 0 0 20px !important;
  padding: 0 !important;
}
.share-poster-content-source--job .jd-hero{
  padding-top: 0;
}
.share-poster-content-source .t4-chip:not(.t4-chip--visited):not(.jd-hero-fact--salary){
  background: #ffffff !important;
}

.share-poster-bottom{
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 24px 32px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 41.346%,
    #ffffff 84.135%
  );
}
.share-poster-qr-row{
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding: 0 12px;
}
.share-poster-qr-frame{
  position: relative;
  width: 152px;
  height: 174px;
  flex: 0 0 152px;
}
.share-poster-qr-frame-image{
  position: absolute;
  inset: 0;
  display: block;
  width: 152px;
  height: 174px;
  object-fit: contain;
  user-select: none;
}
.share-poster-qr-code{
  position: absolute;
  top: 11px;
  left: 12px;
  display: block;
  width: 128px;
  height: 128px;
  object-fit: contain;
  transform: scale(1.06);
  transform-origin: center;
  user-select: none;
}
.share-poster-pic-b{
  display: block;
  width: 247px;
  height: 89px;
  object-fit: contain;
  user-select: none;
}

.share-poster-close{
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.92);
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, transform 100ms ease;
}
.share-poster-close:active{
  transform: scale(.96);
}
.share-poster-placeholder{
  position: absolute;
  z-index: 10;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}
.share-poster-placeholder--error{
  color: #8a2f28;
}
.share-poster-placeholder button{
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.share-poster-actions{
  width: 100%;
  max-width: 360px;
  margin: 18px auto 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.share-poster-action{
  width: 0;
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 0 24px 0 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, transform 100ms ease, opacity 150ms ease;
}
.share-poster-action--primary{
  background: #ffffff;
  color: #1d1d1f;
}
.share-poster-action:disabled{
  cursor: not-allowed;
  opacity: 0.42;
}
.share-poster-action:active:not(:disabled){
  transform: scale(.985);
}
.share-poster-action-loader{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: share-poster-spin 900ms linear infinite;
}

.share-poster-feedback{
  min-height: 18px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.share-poster-feedback--error{
  color: #ffd2cf;
}

.share-poster-sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.share-poster-loader{
  animation: share-poster-spin 900ms linear infinite;
}

.share-poster-trigger:focus-visible,
.share-poster-action:focus-visible,
.share-poster-close:focus-visible,
.share-poster-placeholder button:focus-visible{
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine){
  .share-poster-action:hover:not(:disabled){
    background: rgba(255, 255, 255, 0.22);
  }
  .share-poster-action--primary:hover:not(:disabled){
    background: #f0f0f0;
  }
  .share-poster-close:hover{
    background: #ffffff;
  }
}

@media (max-width: 720px){
  .share-poster-overlay{
    padding:
      max(16px, env(safe-area-inset-top, 0px))
      max(16px, env(safe-area-inset-right, 0px))
      max(16px, env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
  }
  .share-poster-sheet{
    width: min(405px, calc(100vw - 32px), 56dvh);
  }
}

@media (max-height: 620px){
  .share-poster-overlay{
    align-items: flex-start;
  }
  .share-poster-sheet{
    width: min(405px, calc(100vw - 32px), 52dvh);
  }
  .share-poster-actions{
    margin-top: 12px;
    gap: 8px;
  }
  .share-poster-action{
    min-height: 44px;
  }
}

@keyframes share-poster-overlay-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes share-poster-sheet-in{
  from{ opacity: 0; transform: translateY(10px) scale(.985); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes share-poster-overlay-out{
  from{ opacity: 1; }
  to{ opacity: 0; }
}
@keyframes share-poster-sheet-out{
  from{ opacity: 1; transform: translateY(0) scale(1); }
  to{ opacity: 0; transform: translateY(8px) scale(.985); }
}
@keyframes share-poster-spin{
  to{ transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .share-poster-overlay,
  .share-poster-overlay--closing .share-poster-sheet,
  .share-poster-sheet,
  .share-poster-loader,
  .share-poster-action-loader{
    animation: none;
  }
  .share-poster-action{
    transition: none;
  }
  .share-poster-close{
    transition: none;
  }
}
