/* ── 所有品牌色 / 尺寸集中喺度改 ───────────────────────── */
:root {
  --brand: #0b6db7;         /* Allinpay 藍（名片底色） */
  --brand-deep: #07508a;
  --ink: #1c2430;
  --ink-2: #55606e;
  --ink-3: #8a94a0;
  --line: #e6ebf0;
  --paper: #ffffff;
  --radius: 18px;
  --font: -apple-system, "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

/* 只做 light。一定要用 `only light` —— 淨寫 `light` 嘅話 Android Chrome
   個 Auto Dark Theme 仍然會夾硬反轉成頁色；`only` 先係正式 opt-out 關鍵字。 */
:root { color-scheme: only light; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--brand);
  background-image: linear-gradient(170deg, var(--brand) 0%, var(--brand-deep) 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;   /* 唔俾 double-tap 放大 */
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 30, 60, .35);
  overflow: hidden;
  animation: rise .45s ease-out both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.brand { padding: 26px 24px 18px; border-bottom: 1px solid var(--line); }
/* slogan 一定唔換行；實際字級同字距由 app.js 度過 logo 闊度之後填返落嚟
   （唔可以靠 CSS justify — 各部機字體闊度唔同，iPhone 會迫爆兩行） */
.lockup { display: inline-block; }
.logo { height: 44px; width: auto; display: block; }
.tagline {
  width: 0; min-width: 100%;
  margin-top: 3px;
  font-size: 9px; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

/* 節奏：名字自己一組（中英貼實），上下各留大氣口，令個名讀得出係主角。
   組內 5px / 2px，組與組之間 36px / 28px —— 靠遠近分組，唔靠線同框。 */
/* 英文名做主角（大字），中文名細字承托。
   組內 5px / 2px，組與組之間 36px / 28px —— 靠遠近分組，唔靠線同框。 */
/* 落面留白比上面多 —— 名字靠上，下面條氣口令成張卡長啲、鬆啲 */
.identity { padding: 34px 24px 52px; }
.name-en { font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.name-zh {
  font-size: 16px; font-weight: 500; color: var(--ink-2);
  letter-spacing: .12em;   /* 細字唔用大字嗰種 .2em 疏排，會鬆散 */
  margin-top: 5px;
}
.role { margin-top: 28px; font-size: 14px; color: var(--ink); }
.role-en { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 喺白卡外面、藍底之上 —— 反轉做白底藍字，先夠對比同份量 */
.save {
  display: block;
  width: 100%; max-width: 420px;
  margin-top: 16px;
  padding: 15px 0;
  text-align: center;
  font-size: 15px; font-weight: 600;
  color: var(--brand); background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 30, 60, .28);
  transition: transform .08s ease, background .15s;
  animation: rise .45s .1s ease-out both;
}
.save:active { transform: scale(.985); background: #eef4fa; }

.contacts { padding: 12px 24px 8px; }
.row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  border-top: 0; border-left: 0; border-right: 0;
  background: none;
  font: inherit; font-size: 15px; color: inherit;
  text-align: left;
  cursor: pointer;
}
.group { border-bottom: 1px solid var(--line); }
.group .row { border-bottom: 0; }
.contacts > *:last-child .row, .contacts > .row:last-child { border-bottom: 0; }
.row:active { opacity: .55; }
.k { color: var(--ink-3); font-size: 12px; flex: none; }
.v { font-variant-numeric: tabular-nums; color: var(--ink); margin-left: auto; }



/* 展開之後嘅兩個選擇 */
.actions {
  display: flex; gap: 8px;
  padding: 0 0 12px;
  animation: fade .18s ease-out both;
}
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
.act {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 14px; font-weight: 500;
  color: var(--brand);
  background: #eef4fa;
  border-radius: 9px;
}
.act:active { background: #dde9f5; }

/* 第三個掣：淨圖形，複製號碼。成功時圖標換剔號 */
.act--icon {
  flex: none; width: 48px;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  color: var(--brand);
  transition: background .15s ease;
}
.act--icon svg { grid-area: 1 / 1; transition: opacity .18s ease, transform .18s ease; }
.act--icon .i-done { opacity: 0; transform: scale(.7); }
.act--icon.ok .i-copy { opacity: 0; transform: scale(.7); }
.act--icon.ok .i-done { opacity: 1; transform: none; }

.company {
  background: #f6f8fa;
  padding: 18px 24px 22px;
  font-size: 13px; line-height: 1.5;
}
.co-zh { font-weight: 600; letter-spacing: .06em; font-size: 14px; }
.co-en { color: var(--ink-2); margin-bottom: 8px; }
.co-en.co-lead { color: var(--ink); font-weight: 600; letter-spacing: .04em; font-size: 14px; }
.addr { display: block; color: var(--ink-2); }
.foot {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-top: 10px;
}
.site { color: var(--brand); font-weight: 500; }
.card-view { color: var(--ink-3); font-size: 12px; }
.card-view::after { content: " ↗"; font-size: 10px; }
.card-view:active { opacity: .55; }

/* 實體名片圖（可選）：裁好嘅白卡，用同主卡一樣嘅圓角同 shadow */
