
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --t1:   #286e7d;
      --t2:   #3a8789;
      --t3:   #448d8f;
      --tacc: #138c90;
      --w100: #ffffff;
      --w80:  rgba(255,255,255,0.80);
      --w55:  rgba(255,255,255,0.55);
      --w25:  rgba(255,255,255,0.25);
      --w14:  rgba(255,255,255,0.14);
      --w08:  rgba(255,255,255,0.08);
    }

    html { scroll-behavior: smooth; }

    body {
      background: linear-gradient(175deg, #2d7f8e 0%, #3d8b8d 45%, #276474 100%);
      background-attachment: fixed;
      color: var(--w100);
      font-family: 'Ubuntu', sans-serif;
      font-size: 14px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }

    .card-wrapper {
      max-width: 420px;
      margin: 0 auto;
      min-height: 100dvh;
      position: relative;
      overflow-x: hidden;
    }

    /* ─── HEADER ─────────────────────────────────── */
    .header {
      padding: 52px 24px 36px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .header::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0; height: 1px;
      background: var(--w25);
    }

    /* subtle watermark circle */
    .header-bg-circle {
      position: absolute;
      right: -60px;
      top: -60px;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      border: 1px solid var(--w14);
      pointer-events: none;
    }

    .header-bg-circle2 {
      position: absolute;
      right: -20px;
      top: -20px;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      border: 1px solid var(--w08);
      pointer-events: none;
    }

    /* Avatar */
    .avatar-wrap {
      position: relative;
      width: 120px;
      height: 120px;
      margin: 0 auto 22px;
      z-index: 1;
    }

    .avatar-ring {
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: conic-gradient(
        rgba(255,255,255,0.9) 0deg,
        rgba(255,255,255,0.4) 120deg,
        rgba(255,255,255,0.1) 200deg,
        rgba(255,255,255,0.9) 360deg
      );
      animation: ring-spin 6s linear infinite;
    }

    @keyframes ring-spin { to { transform: rotate(360deg); } }

    .avatar-mask {
      position: absolute;
      inset: 3px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--t2);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .avatar-initials {
      font-family: 'Barlow', sans-serif;
      font-weight: 700;
      font-size: 32px;
      color: var(--w100);
      letter-spacing: -1px;
    }

    .avatar-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      border-radius: 50%;
    }

    .header-name {
      font-family: 'Ubuntu', sans-serif;
      font-weight: 600;
      font-size: 36px;
      color: var(--w100);
      letter-spacing: -0.5px;
      margin-bottom: 4px;
      position: relative;
      z-index: 1;
    }

    .header-chinese {
      font-family: 'Ubuntu', sans-serif;
      font-weight: 400;
      font-size: 24px;
      color: var(--w100);
      letter-spacing: 5px;
      margin-bottom: 10px;
      position: relative;
      z-index: 1;
    }

    .header-title {
      font-family: 'Barlow', sans-serif;
      font-weight: 500;
      font-size: 21px;
      color: var(--w100);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      position: relative;
      z-index: 1;
    }

    /* ─── CAROUSEL ────────────────────────────────── */
    .carousel-section {
      background: var(--w100);
      position: relative;
    }

    .carousel-track-wrap {
      overflow: hidden;
      touch-action: pan-y;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      will-change: transform;
    }

    .slide {
      min-width: 100%;
      position: relative;
      overflow: hidden;
      user-select: none;
      -webkit-user-drag: none;
    }

    .slide-link {
      display: block;
      line-height: 0;
    }

    .slide-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      object-position: center;
      display: block;
      pointer-events: none;
    }

    /* Arrow buttons */
    .carousel-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.45);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--tacc);
      cursor: pointer;
      z-index: 10;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s, transform 0.1s;
      backdrop-filter: blur(6px);
      box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    }

    .carousel-arrow:active {
      background: rgba(255,255,255,0.65);
      transform: translateY(-50%) scale(0.93);
    }

    .carousel-arrow svg { width: 16px; height: 16px; }

    .arrow-prev { left: 2px; }
    .arrow-next { right: 2px; }

    /* Dots */
    .carousel-dots {
      display: none;
    }

    .dot {
      height: 6px;
      width: 6px;
      border-radius: 3px;
      background: rgba(40,110,125,0.25);
      transition: all 0.3s ease;
      cursor: pointer;
      border: none;
      padding: 0;
    }

    .dot.active {
      width: 22px;
      background: var(--tacc);
    }

    /* ─── LINKS ───────────────────────────────────── */
    .links-section {
      padding: 24px 16px;
    }

    .section-eyebrow {
      font-family: 'Barlow', sans-serif;
      font-size: 16px;
      font-weight: 600;
      color: var(--w100);
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 12px;
      padding: 0 4px;
    }

    .links-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 10px;
    }

    .link-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 13px;
      background: var(--w14);
      border: 1px solid var(--w25);
      border-radius: 13px;
      color: var(--w100);
      text-decoration: none;
      font-family: 'Barlow', sans-serif;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.15s, transform 0.1s;
      backdrop-filter: blur(6px);
    }

    .link-btn:active {
      background: var(--w25);
      transform: scale(0.97);
    }

    .link-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .link-icon svg { width: 16px; height: 16px; }

    .li   { background: #0077b5; color: #fff; }
    .ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
    .fb   { background: #1877f2; color: #fff; }
    .wa   { background: #25d366; color: #fff; }
    .tel  { background: #138c90; color: #fff; }
    .tel2 { background: #0e7377; color: #fff; }
    .mail { background: #d44638; color: #fff; }
    .web  { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
    .pdf  { background: #e8362a; color: #fff; }
    .gift { background: linear-gradient(135deg, #286e7d, #138c90); color: #fff; }

    .link-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      text-align: left;
    }

    .link-title {
      font-size: 16px;
      font-weight: 600;
      line-height: 1.2;
    }

    .link-sub {
      font-size: 12px;
      font-weight: 400;
      opacity: 0.75;
      line-height: 1.3;
    }

    .link-full { grid-column: span 2; }

    .save-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      width: 100%;
      padding: 17px;
      background: var(--w100);
      border: none;
      border-radius: 14px;
      color: var(--t1);
      font-family: 'Barlow', sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      transition: filter 0.15s, transform 0.1s;
      margin-top: 10px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    }

    .save-btn:active { transform: scale(0.98); filter: brightness(0.94); }
    .save-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

    /* ─── QR ──────────────────────────────────────── */
    .qr-section {
      padding: 4px 16px 44px;
    }

    .qr-card {
      background: var(--w14);
      border: 1px solid var(--w25);
      border-radius: 16px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      backdrop-filter: blur(6px);
    }

    .qr-label {
      font-family: 'Barlow', sans-serif;
      font-size: 14px;
      font-weight: 600;
      color: var(--w100);
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    #qrcode {
      outline: solid 10px white;
      border-radius: 5px;
    }

    #qrcode canvas,
    #qrcode img {
      border-radius: 4px;
      display: block;
    }

    /* ─── FOOTER ─────────────────────────────────── */
    .site-footer {
      text-align: center;
      padding: 28px 24px 36px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      border-top: 1px solid var(--w14);
    }

    .footer-logo {
      max-width: 120px;
      height: auto;
      opacity: 0.75;
      margin-bottom: 4px;
      filter: brightness(0) invert(1);
    }

    .footer-copy,
    .footer-dev {
      font-family: 'Ubuntu', sans-serif;
      font-size: 10px;
      color: var(--w55);
      line-height: 1.4;
    }

    .footer-version {
      font-family: 'Ubuntu', sans-serif;
      font-size: 9px;
      color: var(--w25);
      letter-spacing: 0.5px;
      margin-top: 2px;
    }

    /* ─── ANIMATIONS ──────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .header           { animation: fadeUp 0.5s ease both; }
    .carousel-section { animation: fadeUp 0.5s 0.07s ease both; }
    .links-section    { animation: fadeUp 0.5s 0.14s ease both; }
    .qr-section       { animation: fadeUp 0.5s 0.21s ease both; }
  