:root {
  --ink: #16191f;
  --navy: #0a3151;
  --gold: #c79609;
  --cyan: #54d8e7;
  --paper: #ffffff;
  --canvas: #f3f1ec;
  --muted: #68707a;
  --line: #e7e2d8;
  --shadow: 0 22px 60px rgba(22, 25, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 14% 0%, rgba(199, 150, 9, 0.1), transparent 28rem), var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page {
  width: min(100%, 1060px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(34px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.topbar > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.topbar__eyebrow,
.section-label {
  color: var(--gold);
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.topbar strong {
  font-size: 14px;
}

.share-link {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid #d8d1c3;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.business-card {
  display: grid;
  grid-template-columns: 30% 70%;
  width: 100%;
  aspect-ratio: 1.7 / 1;
  overflow: hidden;
  border: 1px solid #e6e1d7;
  border-right: 10px solid var(--gold);
  border-left: 10px solid var(--gold);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.business-card + .business-card {
  margin-top: 22px;
}

.business-card--en .profile-heading h1 {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(36px, 5.7vw, 66px);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.business-card--en .company-line {
  max-width: 38em;
}

.business-card--en .positioning {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(17px, 2.55vw, 30px);
  letter-spacing: 0.015em;
}

.business-card--en .details > div {
  grid-template-columns: clamp(52px, 7vw, 88px) 1fr;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(22px, 4vw, 48px) clamp(16px, 3vw, 36px);
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(84, 216, 231, 0.08), transparent 38%), #fff;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
}

.brand-mark {
  width: clamp(54px, 7.2vw, 82px);
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-name,
.brand-en {
  margin: 0;
  color: var(--navy);
  white-space: nowrap;
}

.brand-name {
  font-size: clamp(17px, 2.2vw, 27px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-en {
  margin-top: 3px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.qr-lockup {
  width: fit-content;
}

.contact-qr {
  display: block;
  width: clamp(90px, 12vw, 142px);
  aspect-ratio: 1;
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px #d9d9d9;
}

.qr-lockup p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 600;
  text-align: center;
}

.brand-slogan {
  margin: 0;
  color: var(--navy);
  font-size: clamp(12px, 1.6vw, 19px);
  font-weight: 800;
  line-height: 1.45;
}

.profile-panel {
  min-width: 0;
  padding: clamp(30px, 6.2vw, 72px) clamp(24px, 6vw, 70px);
}

.profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-heading h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 0.02em;
}

.company-line {
  margin: 13px 0 0;
  color: #3d434c;
  font-size: clamp(13px, 2vw, 24px);
  line-height: 1.55;
}

.profile-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(199, 150, 9, 0.42);
  border-radius: 999px;
  color: #8b6800;
  background: #fff9e6;
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 700;
}

.positioning {
  margin: clamp(18px, 3vw, 34px) 0 clamp(22px, 4vw, 44px);
  color: var(--navy);
  font-size: clamp(18px, 3.2vw, 37px);
  font-weight: 850;
  line-height: 1.2;
}

.details {
  display: grid;
  gap: clamp(8px, 1.6vw, 17px);
  margin: 0;
}

.details > div {
  display: grid;
  grid-template-columns: clamp(42px, 6vw, 76px) 1fr;
  gap: 6px;
  align-items: baseline;
}

.details dt,
.details dd {
  margin: 0;
  font-size: clamp(11px, 1.65vw, 20px);
  line-height: 1.45;
}

.details dt {
  color: var(--navy);
  font-weight: 800;
}

.details dd {
  color: #3f4650;
}

.details a {
  color: inherit;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 1.12em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.action-card {
  max-width: 680px;
  margin: 22px auto 0;
  padding: 24px;
  border: 1px solid #e5dfd3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(22, 25, 31, 0.07);
}

.scan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 680px;
  margin: 16px auto 0;
  padding: 24px 26px;
  border: 1px solid #e5dfd3;
  border-left: 6px solid var(--gold);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(22, 25, 31, 0.07);
}

.scan-card h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.scan-card__copy p {
  max-width: 29em;
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.scan-card__copy a {
  color: var(--navy);
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.scan-card__qr {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.scan-card__qr img {
  display: block;
  width: 132px;
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid #ddd7cb;
  background: #fff;
}

.scan-card__qr span {
  color: var(--muted);
  font-size: 10px;
}

.action-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.action-card h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #267457;
  font-size: 12px;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37b87c;
  box-shadow: 0 0 0 4px rgba(55, 184, 124, 0.12);
  content: "";
}

.phone-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.phone-row span {
  color: var(--muted);
  font-size: 13px;
}

.phone-row strong {
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 23px;
  letter-spacing: 0.04em;
}

.phone-row em {
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 22px rgba(10, 49, 81, 0.22);
}

.secondary-action {
  color: var(--navy);
  background: #edf4f7;
}

.copy-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: #f6f4f0;
  font-size: 12px;
  cursor: pointer;
}

.copy-action span:last-child {
  color: var(--ink);
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 28px auto 0;
  color: #9b958a;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.footer__line {
  flex: 1;
  height: 1px;
  background: #d8d2c8;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 48px);
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 38, 63, 0.94);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

.share-link:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.copy-action:focus-visible,
.phone-row:focus-visible,
.details a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .page {
    padding: calc(16px + env(safe-area-inset-top)) 10px calc(28px + env(safe-area-inset-bottom));
  }

  .topbar {
    margin: 0 6px 14px;
  }

  .topbar__eyebrow {
    display: none;
  }

  .business-card {
    grid-template-columns: 32% 68%;
    aspect-ratio: 1.36 / 1;
    border-right-width: 7px;
    border-left-width: 7px;
    border-radius: 5px;
  }

  .brand-panel {
    padding: 17px 11px;
  }

  .brand-lockup {
    display: block;
  }

  .brand-mark {
    width: 51px;
  }

  .brand-name {
    margin-top: 5px;
    font-size: 15px;
  }

  .brand-en {
    font-size: 8px;
  }

  .contact-qr {
    width: clamp(70px, 22vw, 96px);
    border-width: 3px;
  }

  .qr-lockup p {
    margin-top: 5px;
    font-size: 8px;
  }

  .brand-slogan {
    font-size: 10px;
  }

  .profile-panel {
    padding: 23px 15px;
  }

  .profile-heading {
    display: block;
  }

  .profile-heading h1 {
    font-size: clamp(34px, 11vw, 49px);
  }

  .business-card--en .profile-heading h1 {
    font-size: clamp(31px, 9.2vw, 41px);
  }

  .company-line {
    margin-top: 8px;
    font-size: clamp(10px, 3vw, 13px);
    line-height: 1.45;
  }

  .profile-badge {
    display: none;
  }

  .positioning {
    margin: 13px 0 18px;
    font-size: clamp(15px, 4.6vw, 20px);
  }

  .business-card--en .company-line {
    font-size: clamp(8px, 2.35vw, 11px);
  }

  .business-card--en .positioning {
    margin-bottom: 16px;
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.35;
  }

  .business-card--en .details > div {
    grid-template-columns: 43px 1fr;
  }

  .business-card--en .details dt,
  .business-card--en .details dd {
    font-size: clamp(8px, 2.3vw, 10px);
  }

  .details {
    gap: 7px;
  }

  .details > div {
    grid-template-columns: 35px 1fr;
  }

  .details dt,
  .details dd {
    font-size: clamp(9px, 2.8vw, 12px);
  }

  .details > div:last-child {
    display: none;
  }

  .action-card {
    margin-top: 14px;
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .scan-card {
    gap: 16px;
    margin-top: 12px;
    padding: 20px 16px 20px 18px;
    border-left-width: 5px;
    border-radius: 18px;
  }

  .scan-card h2 {
    font-size: 19px;
  }

  .scan-card__copy p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
  }

  .scan-card__copy a {
    font-size: 11px;
  }

  .scan-card__qr img {
    width: clamp(98px, 30vw, 118px);
  }

  .footer {
    margin-right: 10px;
    margin-left: 10px;
  }
}

@media (max-width: 370px) {
  .business-card {
    aspect-ratio: 1.32 / 1;
  }

  .brand-slogan,
  .details > div:nth-child(3) {
    display: none;
  }

  .phone-row strong {
    font-size: 20px;
  }

  .scan-card {
    grid-template-columns: 1fr;
  }

  .scan-card__qr {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .business-card,
  .action-card {
    animation: rise-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .action-card {
    animation-delay: 90ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
