/* Dedicated styles for Li Yonghong lawyer electronic card. */

/* Shared-link landing page for lawyer electronic business cards. */
.lawyer-card-page {
  min-height: 100dvh;
  background: #f4f6f7;
  color: #1f2937;
}

.lawyer-card-shell {
  position: relative;
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 28px 40px;
  background: #fff;
}

.lawyer-card-shell::before {
  position: absolute;
  top: 92px;
  right: -168px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(181, 138, 73, 0.14);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lawyer-card-topbar,
.lawyer-card-hero,
.lawyer-card-contact,
.lawyer-card-expertise,
.lawyer-card-actions,
.lawyer-card-disclaimer {
  position: relative;
  z-index: 1;
}

.lawyer-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

.lawyer-card-brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #1c2738;
  font-size: 15px;
  font-weight: 760;
}

.lawyer-card-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #1d2b3f;
  color: #fff;
  font-size: 16px;
}

.lawyer-card-site-link {
  border: 1px solid #dbe2e9;
  border-radius: 6px;
  padding: 6px 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 680;
}

.lawyer-card-hero {
  margin-top: 28px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 28px;
  background: #fcfbf8;
  box-shadow: 0 10px 26px rgba(39, 52, 73, 0.06);
}

.lawyer-card-kicker {
  margin: 0;
  color: #98733e;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 1.4px;
}

.lawyer-card-identity {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.lawyer-card-avatar {
  width: 130px;
  height: 158px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #edf1f5;
  box-shadow: 0 5px 16px rgba(29, 43, 63, 0.12);
}

.lawyer-card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lawyer-card-identity h1 {
  margin: 0;
  color: #172033;
  font-size: 32px;
  line-height: 1.2;
}

.lawyer-card-role {
  margin: 9px 0 0;
  color: #98733e;
  font-size: 14px;
  font-weight: 720;
}

.lawyer-card-firm {
  margin: 12px 0 0;
  color: #536174;
  font-size: 14px;
  line-height: 1.6;
}

.lawyer-card-intro {
  max-width: 570px;
  margin: 22px 0 0;
  color: #4d5a6c;
  font-size: 15px;
  line-height: 1.75;
}

.lawyer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.lawyer-card-tags span {
  border: 1px solid #ded3bd;
  border-radius: 5px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.76);
  color: #70572e;
  font-size: 12px;
  font-weight: 680;
}

.lawyer-card-contact,
.lawyer-card-expertise {
  margin-top: 18px;
  border-top: 1px solid #e2e7ed;
  padding-top: 20px;
}

.lawyer-card-contact h2,
.lawyer-card-expertise h2 {
  margin: 0;
  color: #263346;
  font-size: 17px;
  line-height: 1.35;
}

.lawyer-card-contact dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 13px 0 0;
}

.lawyer-card-contact dl > div {
  min-width: 0;
  border: 1px solid #e0e6ed;
  border-radius: 7px;
  padding: 13px 14px;
  background: #fafbfd;
}

.lawyer-card-contact .lawyer-card-address {
  grid-column: 1 / -1;
}

.lawyer-card-contact dt {
  color: #7b8797;
  font-size: 12px;
  font-weight: 650;
}

.lawyer-card-contact dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #354256;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.55;
}

.lawyer-card-expertise {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: end;
}

.lawyer-card-expertise h2 {
  margin-top: 7px;
}

.lawyer-card-expertise > p {
  margin: 0;
  color: #647084;
  font-size: 13px;
  line-height: 1.75;
}

.lawyer-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.lawyer-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #ccd6e1;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 720;
  text-align: center;
}

button.lawyer-card-action {
  cursor: pointer;
}

.lawyer-card-action:hover,
.lawyer-card-action:focus-visible {
  border-color: #aebdcd;
  background: #f7f9fb;
}

.lawyer-card-action-primary,
.lawyer-card-action-primary:hover,
.lawyer-card-action-primary:focus-visible {
  border-color: #26384f;
  background: #26384f;
  color: #fff;
}

.lawyer-card-disclaimer {
  margin: 18px 0 0;
  color: #8b96a4;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.wechat-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 22px;
}

.wechat-qr-modal[hidden] {
  display: none;
}

.wechat-qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 32, 51, 0.38);
}

.wechat-qr-dialog {
  position: relative;
  width: min(340px, 100%);
  border: 1px solid #dbe3eb;
  border-radius: 10px;
  padding: 28px 24px 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.18);
}

.wechat-qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: #f5f7f9;
  color: #687588;
  font-size: 20px;
  line-height: 1;
}

.wechat-qr-placeholder {
  display: grid;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border: 1px dashed #b9c4d0;
  border-radius: 8px;
  place-items: center;
  background-color: #fafbfc;
  background-image: linear-gradient(90deg, transparent 47%, #e6ebf0 47%, #e6ebf0 53%, transparent 53%), linear-gradient(transparent 47%, #e6ebf0 47%, #e6ebf0 53%, transparent 53%);
  background-size: 20px 20px;
  color: #8d9aad;
}

.wechat-qr-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 32, 51, 0.09);
  font-size: 26px;
  font-weight: 800;
}

.wechat-qr-dialog h2 {
  margin: 18px 0 0;
  color: #253247;
  font-size: 18px;
}

.wechat-qr-dialog p {
  margin: 8px 0 0;
  color: #778397;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .lawyer-card-shell {
    width: 100%;
    padding: max(16px, env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  }

  .lawyer-card-shell::before {
    top: 84px;
    right: -230px;
  }

  .lawyer-card-hero {
    margin-top: 18px;
    padding: 21px 17px;
  }

  .lawyer-card-identity {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
  }

  .lawyer-card-avatar {
    width: 92px;
    height: 116px;
    border-width: 3px;
  }

  .lawyer-card-identity h1 {
    font-size: 26px;
  }

  .lawyer-card-role,
  .lawyer-card-firm {
    font-size: 12px;
  }

  .lawyer-card-firm {
    margin-top: 8px;
  }

  .lawyer-card-intro {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.7;
  }

  .lawyer-card-contact,
  .lawyer-card-expertise {
    margin-top: 16px;
    padding-top: 17px;
  }

  .lawyer-card-contact dl,
  .lawyer-card-expertise {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .lawyer-card-contact dl > div {
    padding: 12px;
  }

  .lawyer-card-expertise {
    gap: 12px;
  }

  .lawyer-card-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .lawyer-card-action {
    min-height: 44px;
    padding: 0 8px;
    font-size: 13px;
  }

  .wechat-qr-modal {
    align-items: end;
    padding: 0;
  }

  .wechat-qr-dialog {
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* Poster-style electronic card: shared link on mobile, a two-column stage on desktop. */
.lawyer-card-poster-page {
  overflow-x: hidden;
  background: #e8edf1;
}

.lawyer-card-photo-layer,
.lawyer-card-photo-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lawyer-card-photo-layer {
  z-index: 0;
  background: #c9d4df url("./assets/card/shanghai-world-financial-center.jpg") center 58% / cover no-repeat;
}

.lawyer-card-photo-wash {
  z-index: 1;
  background: rgba(242, 247, 250, 0.46);
}

.lawyer-card-poster-page .lawyer-card-shell {
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  min-height: 100dvh;
  padding: 30px clamp(28px, 5vw, 72px) 24px;
  background: transparent;
}

.lawyer-card-poster-page .lawyer-card-topbar {
  flex: 0 0 auto;
}

.lawyer-card-poster-page .lawyer-card-brand,
.lawyer-card-poster-page .lawyer-card-site-link {
  color: #23364c;
}

.lawyer-card-poster-page .lawyer-card-site-link {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.lawyer-card-stage {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 470px);
  gap: clamp(32px, 8vw, 136px);
  align-items: center;
  padding: 34px 0 20px;
}

.lawyer-card-stage-copy {
  align-self: end;
  padding: 0 0 48px clamp(4px, 4vw, 44px);
  color: #263b53;
}

.lawyer-card-stage-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
}

.lawyer-card-stage-copy strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(31px, 3.1vw, 50px);
  line-height: 1.24;
  letter-spacing: 0;
}

.lawyer-card-stage-copy span {
  display: block;
  margin-top: 20px;
  color: #52677e;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.4px;
}

.lawyer-card-poster {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(219, 226, 233, 0.94);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 24px 56px rgba(25, 41, 60, 0.2);
  backdrop-filter: blur(13px);
}

.lawyer-card-poster::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #b58a49;
  content: "";
}

.lawyer-card-poster .lawyer-card-hero {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 28px 28px 19px;
  background: #fcfbf8;
  box-shadow: none;
}

.lawyer-card-poster .lawyer-card-identity {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 17px;
  margin-top: 16px;
}

.lawyer-card-poster .lawyer-card-avatar {
  width: 112px;
  height: 140px;
}

.lawyer-card-poster .lawyer-card-identity h1 {
  font-size: 29px;
}

.lawyer-card-poster .lawyer-card-role {
  margin-top: 7px;
  font-size: 13px;
}

.lawyer-card-poster .lawyer-card-firm {
  margin-top: 10px;
  font-size: 13px;
}

.lawyer-card-poster .lawyer-card-tags {
  margin-top: 18px;
}

.lawyer-card-qr-entry {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 50px;
  border: 0;
  background: transparent;
  color: #718095;
  cursor: pointer;
}

.lawyer-card-qr-entry span {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid #cbd5df;
  border-radius: 5px;
  place-items: center;
  background: #fff;
  color: #4b5e73;
  font-size: 14px;
  font-weight: 800;
}

.lawyer-card-qr-entry small {
  font-size: 10px;
  white-space: nowrap;
}

.lawyer-card-poster .lawyer-card-contact {
  margin: 0;
  border-top: 1px solid #e5e9ee;
  padding: 16px 28px 0;
}

.lawyer-card-poster .lawyer-card-contact dl {
  gap: 8px;
  margin: 0;
}

.lawyer-card-poster .lawyer-card-contact dl > div {
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
}

.lawyer-card-poster .lawyer-card-contact .lawyer-card-address {
  border-top: 1px solid #edf0f3;
}

.lawyer-card-poster .lawyer-card-contact dd {
  margin-top: 4px;
  font-size: 13px;
}

.lawyer-card-poster .lawyer-card-actions {
  margin: 20px 28px 26px;
}

.lawyer-card-poster .lawyer-card-action-quiet {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  color: #6d7b8e;
  background: transparent;
}

.lawyer-card-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(470px, 100%);
  margin: 0 0 0 auto;
  padding-top: 2px;
}

.lawyer-card-quick-links a,
.lawyer-card-quick-links button {
  display: grid;
  gap: 7px;
  min-width: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #31465d;
  font: inherit;
  cursor: pointer;
}

.lawyer-card-quick-links strong {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.64);
  color: #3f536a;
  font-size: 14px;
}

.lawyer-card-quick-links span {
  overflow: hidden;
  max-width: 100%;
  color: #31465d;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lawyer-card-footer {
  width: min(470px, 100%);
  margin: 12px 0 0 auto;
  color: #5e7083;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.lawyer-card-footer p,
.lawyer-card-footer small {
  margin: 0;
}

.lawyer-card-footer small {
  display: block;
  margin-top: 4px;
  font-size: inherit;
}

/* Refined sharing panel for the lawyer electronic card. */
.share-card-dialog-refined {
  width: min(550px, 100%);
  gap: 18px;
  border-color: #dbe3eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(23, 37, 56, 0.25);
}

.share-card-dialog-refined .share-card-head h2 {
  color: #203047;
  font-size: 21px;
}

.share-card-dialog-refined .share-card-head p {
  margin-top: 5px;
}

.share-card-live-preview {
  display: grid;
  gap: 10px;
}

.share-card-preview-scene {
  min-height: 172px;
  border: 1px solid #d8e1e9;
  border-radius: 9px;
  padding: 18px;
  background: #dce6ed url("./assets/card/shanghai-world-financial-center.jpg") center 61% / cover no-repeat;
}

.share-card-preview-surface {
  display: grid;
  gap: 12px;
  min-height: 134px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 22px rgba(27, 44, 63, 0.13);
}

.share-card-preview-brand {
  color: #96723f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.share-card-preview-person {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.share-card-preview-person img {
  width: 54px;
  height: 68px;
  border: 2px solid #fff;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(33, 48, 67, 0.12);
}

.share-card-preview-person strong,
.share-card-preview-person span,
.share-card-preview-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-card-preview-person strong {
  color: #1f2d42;
  font-size: 18px;
  line-height: 1.25;
}

.share-card-preview-person span {
  margin-top: 4px;
  color: #5d6d80;
  font-size: 11px;
}

.share-card-preview-person small {
  margin-top: 6px;
  color: #929dac;
  font-size: 10px;
}

.share-card-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.share-card-preview-tags span {
  border: 1px solid #e0d3ba;
  border-radius: 4px;
  padding: 3px 6px;
  background: #fffdf9;
  color: #7b6036;
  font-size: 10px;
  font-weight: 700;
}

.share-card-preview-caption {
  margin: 0;
  color: #788496;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.share-card-share-guide {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  padding: 11px 12px;
  background: #f8fafb;
}

.share-card-guide-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid #d1dce6;
  border-radius: 7px;
  place-items: center;
  background: #fff;
  color: #60758c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}

.share-card-share-guide strong {
  color: #33445a;
  font-size: 13px;
}

.share-card-share-guide p {
  margin: 3px 0 0;
  color: #788496;
  font-size: 12px;
  line-height: 1.5;
}

.share-card-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-card-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d1dbe5;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: #35485f;
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

button.share-card-control {
  cursor: pointer;
}

.share-card-control:hover,
.share-card-control:focus-visible {
  border-color: #b9c8d5;
  background: #f7f9fb;
}

.share-card-control-primary,
.share-card-control-primary:hover,
.share-card-control-primary:focus-visible {
  border-color: #2b4058;
  background: #2b4058;
  color: #fff;
}

.lawyer-card-qr-entry {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
}

.lawyer-card-qr-entry .lawyer-card-qr-symbol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.lawyer-card-qr-symbol i {
  display: block;
  width: 100%;
  height: 100%;
  background: #53677c;
}

.lawyer-card-qr-symbol i:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.lawyer-card-qr-symbol i:nth-child(2) { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.lawyer-card-qr-symbol i:nth-child(3) { grid-column: 1 / span 2; grid-row: 4 / span 2; }
.lawyer-card-qr-symbol i:nth-child(4) { grid-column: 4; grid-row: 4; }
.lawyer-card-qr-symbol i:nth-child(5) { grid-column: 5; grid-row: 5; }
.lawyer-card-qr-symbol i:nth-child(6) { grid-column: 3; grid-row: 3; }
.lawyer-card-qr-symbol i:nth-child(7) { grid-column: 4; grid-row: 3; }

@media (max-width: 640px) {
  .share-card-dialog-refined {
    gap: 15px;
    border-radius: 13px 13px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .share-card-preview-scene {
    min-height: 158px;
    padding: 14px;
  }

  .share-card-preview-surface {
    min-height: 128px;
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .lawyer-card-photo-layer {
    background-position: 46% 65%;
  }

  .lawyer-card-photo-wash {
    background: rgba(243, 247, 249, 0.34);
  }

  .lawyer-card-poster-page .lawyer-card-shell {
    padding: max(14px, env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  }

  .lawyer-card-stage {
    display: flex;
    justify-content: center;
    padding: 22px 0 16px;
  }

  .lawyer-card-stage-copy {
    display: none;
  }

  .lawyer-card-poster {
    max-width: 450px;
  }

  .lawyer-card-poster .lawyer-card-hero {
    padding: 23px 19px 17px;
  }

  .lawyer-card-poster .lawyer-card-identity {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    margin-top: 14px;
  }

  .lawyer-card-poster .lawyer-card-avatar {
    width: 88px;
    height: 112px;
  }

  .lawyer-card-poster .lawyer-card-identity h1 {
    font-size: 25px;
  }

  .lawyer-card-qr-entry {
    top: 16px;
    right: 15px;
  }

  .lawyer-card-poster .lawyer-card-contact {
    padding: 13px 19px 0;
  }

  .lawyer-card-poster .lawyer-card-contact dl {
    grid-template-columns: 1fr;
  }

  .lawyer-card-poster .lawyer-card-actions {
    margin: 16px 19px 20px;
  }

  .lawyer-card-quick-links,
  .lawyer-card-footer {
    width: 100%;
    margin-left: 0;
  }

  .lawyer-card-quick-links {
    padding: 0 4px;
  }

  .lawyer-card-quick-links span {
    font-size: 10px;
  }

  .lawyer-card-footer {
    color: #53677c;
  }
}
