@charset "UTF-8";
:root {
  font-family:
    "Helvetica Neue", Arial, "PingFang HK", "Microsoft JhengHei", sans-serif;
  font-size: 100%;
  color: #161616;
  background: #f7f8fa;
  color-scheme: light;
  --red: #af1c2d;
  --serif: "Times New Roman", "Songti TC", "Noto Serif TC", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 18% 12%, #dce5fa44, transparent 48%),
    radial-gradient(ellipse at 86% 90%, #f2e4e855, transparent 46%);
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button,
a,
input {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
}
::selection {
  background: #f4d9dd;
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: white;
  transform: translateY(-150%);
  z-index: 20;
}
.skip-link:focus {
  transform: none;
}
.js-control {
  visibility: hidden;
}
.js .js-control {
  visibility: visible;
}
.page {
  width: min(900px, calc(100% - 64px));
  min-height: 100svh;
  margin: auto;
  padding: 48px 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-scene {
  perspective: 1800px;
  --shine-x: 72%;
  --shine-y: 20%;
  --edge-angle: 125deg;
}
.card-tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card-scene.is-tracking .card-tilt {
  transition-duration: 0.12s;
}
.business-card {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.business-card.is-english {
  transform: rotateY(180deg);
}
.paper {
  position: relative;
  grid-area: 1/1;
  min-width: 0;
  min-height: 530px;
  padding: 44px 48px 46px;
  background:
    linear-gradient(120deg, #ffffff, #fff 48%, #fdfcfe) padding-box,
    linear-gradient(
        var(--edge-angle),
        #dce2e9,
        #ece9f4 26%,
        #cee2e4 54%,
        #ece3ed 80%,
        #dce2e9
      )
      border-box;
  border: 1px solid transparent;
  box-shadow:
    0 1px 1px #33374412,
    0 4px 0 -2px #f5f5f8,
    0 5px 0 -2px #d9dce4,
    0 22px 52px -24px #3c426b33;
  border-radius: 6px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0.1px);
  font-family: var(--serif);
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at var(--shine-x) var(--shine-y),
      #e1e9fb38,
      transparent 56%
    ),
    repeating-linear-gradient(0deg, #949dba05 0 1px, transparent 1px 3px);
}
.paper-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 20%,
    #d7e7f215 39%,
    #ffffffa6 46%,
    #e5dcf219 53%,
    transparent 70%
  );
  background-size: 250% 100%;
  background-position: var(--shine-x) 50%;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 3;
}
.card-scene.is-tracking .paper-light {
  opacity: 0.65;
}
.card-scene.is-touch-lit .paper-light {
  animation: paper-glint 1.1s ease-out;
}
@keyframes paper-glint {
  0% {
    background-position: 100% 50%;
    opacity: 0;
  }
  25% {
    opacity: 0.65;
  }
  100% {
    background-position: 0 50%;
    opacity: 0;
  }
}
.card-en {
  transform: rotateY(180deg) translateZ(0.1px);
}
.card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.bank-link {
  display: block;
  width: min(68%, 338px);
  flex: none;
}
.bank-logo {
  display: block;
  width: 100%;
  height: auto;
}
.card-qr {
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  color: #666;
  flex: none;
}
.card-qr img {
  display: block;
  width: 88px;
  height: 88px;
}
.card-qr span {
  line-height: 1.5;
}
.card-body {
  position: relative;
  z-index: 2;
  margin: 46px 0 0 86px;
}
.paper h1 {
  font-size: 2.65rem;
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.005em;
}
.chinese-identity {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
}
.chinese-identity h1 {
  font-size: 2.8rem;
  letter-spacing: 0.06em;
}
.chinese-identity h1 span {
  margin-left: 0.55em;
}
.paper p {
  margin: 0;
}
.job-title {
  font-size: 1.35rem;
  line-height: 1.4;
}
.card-en .job-title {
  margin-top: 5px;
}
.department {
  font-size: 1.45rem;
  line-height: 1.4;
}
.card-zh .department {
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.card-en .department {
  font-size: 1.32rem;
}
.red-rule {
  height: 4px;
  background: linear-gradient(to right, #232323 0 14%, var(--red) 14% 100%);
  margin: 22px 0 19px;
}
.card-details {
  font-size: 1.125rem;
  line-height: 1.45;
}
.company {
  font-size: 1.24rem;
  font-weight: 600;
}
.address {
  margin-top: 2px !important;
}
.address a {
  overflow-wrap: anywhere;
}
.contact-lines {
  display: grid;
  grid-template-columns: 0.93fr 1.25fr;
  gap: 0 20px;
}
.contact-lines a {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.contact-lines a span:first-child {
  flex: none;
}
.contact-lines a span:last-child {
  overflow-wrap: anywhere;
}
.card-details a:hover {
  color: var(--red);
}
.toolbar {
  margin: 20px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.875rem;
  color: #8b8b8b;
}
.language-switch button {
  border: 0;
  background: none;
  padding: 10px 3px;
  min-height: 44px;
  color: #777;
  transition: color 0.2s;
}
.language-switch .is-selected {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--red);
}
.language-switch > span {
  color: #c5c5c5;
}
.card-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.action {
  background: none;
  border: 0;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.875rem;
  color: #626262;
  transition:
    color 0.2s,
    transform 0.2s;
}
.save-contact {
  color: var(--red);
}
.action:hover {
  color: var(--red);
  transform: translateY(-1px);
}
.personal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 25px 0 0;
  font-size: 0.75rem;
  color: #737987;
}
.chain-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chain-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  color: #606b82;
  background:
    linear-gradient(#ffffffbb, #ffffffbb) padding-box,
    linear-gradient(125deg, #dce1eb, #e2deed 45%, #d9e7e6) border-box;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 0 12px;
  min-height: 38px;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.chain-icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: #8693af;
}
.solana-tag .chain-icon {
  color: #8687ac;
}
.chain-tag .copy-icon {
  width: 12px;
  height: 12px;
  color: #9ca3b2;
  margin-left: 3px;
}
.personal-links a {
  padding: 10px 0;
}
.chain-tag:hover {
  color: #414f6a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px #868fb21a;
}
.chain-tag:active {
  transform: translateY(0);
}
.personal-links a:hover {
  color: var(--red);
}
.noscript-note {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}
html:not(.js) .card-en {
  display: none;
}
dialog {
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #222;
  width: min(420px, calc(100% - 32px));
  padding: 0;
  box-shadow: 0 10px 50px #00000012;
  max-height: calc(100dvh - 32px);
}
dialog::backdrop {
  background: #eeeeeec9;
  backdrop-filter: blur(3px);
}
.dialog-content {
  padding: 28px;
  text-align: center;
  position: relative;
}
.dialog-close {
  position: absolute;
  right: 8px;
  top: 8px;
}
.icon-button {
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #777;
}
.icon-button:hover {
  color: var(--red);
}
.dialog-content h2 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 8px 0 20px;
}
.share-qr {
  display: block;
  width: 232px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.share-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 14px 0 20px;
}
.share-name span {
  margin-left: 8px;
  white-space: nowrap;
}
.share-url-row {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding-left: 12px;
}
.share-url-row input {
  font-size: 1rem;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  color: #555;
}
.dialog-feedback {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--red);
  overflow-wrap: anywhere;
  margin: 0;
}
.dialog-feedback:not(:empty) {
  margin-top: 12px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.dialog-button {
  flex: 1;
  min-height: 44px;
  padding: 12px 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.875rem;
}
.dialog-button:hover {
  border-color: var(--red);
  color: var(--red);
}
.cover-download {
  font-size: 0.8rem;
  color: #777;
  display: inline-block;
  padding: 8px;
}
.cover-download:hover {
  color: var(--red);
}
.in-app-note {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.6;
  margin: 12px 0 0;
}
.toast {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 20;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 5px 25px #0000000c;
  color: #333;
  padding: 12px 20px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.dialog-open {
  overflow: hidden;
}
@media (max-width: 800px) {
  .page {
    width: calc(100% - 40px);
    padding-top: 32px;
  }
  .paper {
    padding: 36px;
    min-height: 490px;
  }
  .card-body {
    margin-left: 36px;
    margin-top: 40px;
  }
  .bank-link {
    max-width: 290px;
  }
  .card-details {
    font-size: 1rem;
  }
  .contact-lines {
    gap: 0 12px;
  }
  .company {
    font-size: 1.12rem;
  }
  .card-en .department {
    font-size: 1.18rem;
  }
}
@media (max-width: 600px) {
  .page {
    width: calc(100% - 28px);
    min-height: 100svh;
    padding: 24px 0;
    justify-content: center;
  }
  .paper {
    padding: 26px 24px 30px;
    min-height: 0;
  }
  .card-top {
    gap: 12px;
  }
  .bank-link {
    width: 68%;
    max-width: 248px;
  }
  .card-qr img {
    width: 62px;
    height: 62px;
  }
  .card-qr span {
    display: none;
  }
  .card-body {
    margin: 40px 0 0;
  }
  .paper h1 {
    font-size: 1.85rem;
  }
  .chinese-identity {
    gap: 15px;
  }
  .chinese-identity h1 {
    font-size: 2.05rem;
  }
  .chinese-identity h1 span {
    margin-left: 0.42em;
  }
  .job-title {
    font-size: 1rem;
  }
  .department {
    font-size: 1.2rem;
  }
  .card-zh .department {
    margin-top: 5px;
  }
  .card-en .department {
    font-size: 1rem;
  }
  .red-rule {
    height: 3px;
    margin: 19px 0 15px;
  }
  .card-details {
    font-size: 1rem;
    line-height: 1.55;
  }
  .company {
    font-size: 1.08rem;
  }
  .contact-lines {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .contact-lines a span:first-child {
    min-width: 5em;
  }
  .card-en .contact-lines a span:first-child {
    min-width: 3.6em;
  }
  .contact-lines a:nth-child(3) {
    order: 4;
  }
  .address {
    margin: 4px 0 7px !important;
  }
  .toolbar {
    justify-content: center;
    gap: 7px 22px;
    margin-top: 14px;
  }
  .card-actions {
    gap: 20px;
  }
  .action {
    font-size: 0.875rem;
  }
  .language-switch {
    font-size: 0.875rem;
    gap: 8px;
  }
  .personal-links {
    gap: 2px;
    margin-top: 14px;
    flex-direction: column;
  }
  .chain-tag {
    min-height: 40px;
  }
  .personal-links a {
    padding: 8px;
  }
  .dialog-content {
    padding: 27px 22px;
  }
  .share-name {
    font-size: 1.125rem;
  }
}
@media (max-width: 360px) {
  .paper {
    padding: 23px 19px 27px;
  }
  .card-qr img {
    width: 56px;
    height: 56px;
  }
  .card-body {
    margin-top: 35px;
  }
  .chinese-identity {
    gap: 10px;
  }
  .chinese-identity h1 {
    font-size: 1.9rem;
  }
  .job-title {
    font-size: 1rem;
  }
  .toolbar {
    gap: 0;
    justify-content: space-between;
  }
  .language-switch {
    gap: 4px;
  }
  .card-actions {
    gap: 12px;
  }
  .action {
    gap: 5px;
  }
  .action .icon {
    width: 16px;
    height: 16px;
  }
  .chain-links {
    gap: 6px;
  }
  .chain-tag {
    padding: 0 9px;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-tilt {
    transform: none !important;
  }
  .paper-light {
    display: none;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  :root,
  body {
    background: white;
  }
  .page {
    width: 100%;
    padding: 0;
    min-height: 0;
  }
  .toolbar,
  .personal-links,
  dialog,
  .toast {
    display: none;
  }
  .paper {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }
  .business-card,
  .card-tilt {
    transform: none;
  }
  .paper::before,
  .paper-light {
    display: none;
  }
  .card-en {
    display: none;
  }
  html[lang="en-HK"] .card-en {
    display: block;
    transform: none;
  }
  html[lang="en-HK"] .card-zh {
    display: none;
  }
}
