/*
 * 來名片「網頁版名片」樣式（/share/<slug>，2026-10-13）
 * 6 種風格：wc-s-clean 簡約白／wc-s-dark 深色／wc-s-gradient 漸層／wc-s-layered 卡片疊層／wc-s-brand 品牌色塊／wc-s-pattern 圖案背景
 * 背景：wc-bg-none（風格預設）／color／pattern／image —— 實際的背景值由 public/js/webcard.js 算好放在 body 的 CSS 變數
 *   --wc-page 整頁背景（桌機卡片外面）、--wc-cover 名片頂部封面、--wc-head 品牌色塊的頭部
 * 手機優先（390 寬不橫捲），≥600px 變成置中卡片（最寬 520px），背景延伸到整個畫面
 * v2（2026-10-13 下午）：wc-f-<字型>、wc-bs-<按鈕形狀>、wc-bt-<按鈕樣式>、wc-l-2col（≥1024px 桌機雙欄）、
 *   自訂區塊 .wc-blk（文字／營業時間／服務項目／影片）、作品集 .wc-gal＋燈箱 .wc-lb（webcard-page.js 建）
 * 2026-10-13 晚（Kurt：名片底下做像 Linktree，不要太多連結）：拿掉「聯絡資訊」列表、QR 區塊（改成按鈕列最後一顆 .wc-ico-qr）、
 *   Powered by；LINE 分享＋複製連結改成一列兩顆小膠囊 .wc-sbtn；頁尾＝留白＋白色膠囊 .wc-foot-cta「在來名片上加入 <姓名>」
 *   （存進訪客名片夾；.is-saved／.is-self／.is-busy 由 webcard-page.js 切）＋小字 .wc-foot-links
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 基本變數用單一 class（.wc），下面各風格的 .wc-s-xxx 寫在後面才蓋得過去 */
.wc {
  --wc-fg: #111827; --wc-sub: #6b7280; --wc-surface: #ffffff; --wc-line: #e5e7eb; --wc-chip: var(--wc-tint, #eef7f1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--wc-fg); background: #eef1f4; line-height: 1.5; min-height: 100vh; min-height: 100dvh;
  overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.wc a { color: inherit; }
.wc svg { display: block; flex: none; }
.wc { position: relative; }
/* 整頁背景：鋪滿整份文件高度（不用 position:fixed，長頁面截圖、iOS 捲動都一致） */
.wc-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wc-backdrop::before { content: ""; position: absolute; inset: 0; background: var(--wc-page); }
.wc-wrap { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; }
.wc-card {
  position: relative; width: 100%; max-width: 520px; min-height: 100vh; min-height: 100dvh;
  background: var(--wc-surface); display: flex; flex-direction: column;
}
.wc-cover { height: 148px; flex: none; background: var(--wc-cover); }

/* ── 頭：頭像＋姓名＋職稱公司＋簡介 ── */
.wc-head { position: relative; text-align: center; padding: 0 22px; margin-top: -58px; }
.wc-avatar {
  width: 116px; height: 116px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--wc-surface); background: var(--wc-accent); color: var(--wc-on-accent);
  display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}
.wc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-head h1 { font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: .01em; color: var(--wc-name, var(--wc-fg)); overflow-wrap: anywhere; }
.wc-head .meta { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--wc-sub); overflow-wrap: anywhere; }
.wc-head .meta:empty { display: none; }
.wc-bio { margin: 14px auto 0; max-width: 420px; font-size: 15px; line-height: 1.75; color: var(--wc-fg); opacity: .88; white-space: pre-line; overflow-wrap: anywhere; }

/* ── 圖示按鈕列 ── */
.wc-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 8px; padding: 22px 14px 4px; }
.wc-ico { width: 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--wc-fg); }
.wc-ico-c {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--wc-chip); color: var(--wc-ink); transition: transform .15s ease, box-shadow .15s ease;
}
.wc-ico-c svg { width: 24px; height: 24px; }
.wc-ico:hover .wc-ico-c { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.wc-ico:active .wc-ico-c { transform: scale(.94); }
.wc-ico-t { font-size: 12px; line-height: 1.3; color: var(--wc-sub); white-space: nowrap; }

/* ── 主要內容 ── */
/* 加入聯絡人（.wc-actions）在 .wc-main 外面（桌機雙欄時放左欄），間距跟以前在 .wc-main 裡一樣 */
.wc-main { padding: 18px 16px 6px; display: flex; flex-direction: column; gap: 14px; }
.wc-card > .wc-actions { padding: 18px 16px 0; }
.wc-card > .wc-actions + .wc-main { padding-top: 14px; }
.wc-actions, .wc-share { display: flex; flex-direction: column; gap: 10px; }
.wc-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px;
  padding: 14px 18px; border: 0; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; white-space: nowrap;
}
.wc-btn svg { width: 21px; height: 21px; }
.wc-btn:active { transform: scale(.98); }
.wc-btn:disabled { opacity: .7; cursor: default; }
.wc .wc-btn-main { background: var(--wc-btn); color: var(--wc-on-btn); box-shadow: 0 10px 24px var(--wc-btn-shadow); }
.wc-btn-main:hover { filter: brightness(1.05); }
.wc-vcard-hint { margin-top: -2px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--wc-sub); }
.wc-btn-ghost { background: transparent; color: var(--wc-fg); border: 1.5px solid var(--wc-line); min-height: 50px; font-weight: 600; font-size: 15px; }
.wc-btn-ghost:hover { border-color: var(--wc-ink); }
.wc-lock { background: #fff7e0; color: #7a5a00; border: 1px solid #ffe3a1; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.6; text-align: left; }
/* ── 分享列：LINE 分享＋複製連結，一列兩顆小膠囊（半寬、淡色，比連結列小一號）──
 * 「分享到 LINE」等 LIFF 好了才出現（share.html）；只剩一顆時置中、一樣半寬。圖示用 ::before，JS 改字不會洗掉 */
.wc-share { margin-top: 4px; gap: 8px; }
.wc-share-row { display: flex; justify-content: center; gap: 10px; }
.wc-sbtn {
  flex: 0 1 calc(50% - 5px); min-width: 0; min-height: 42px; padding: 9px 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--wc-line); border-radius: 999px; background: var(--wc-chip); color: var(--wc-fg);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, filter .15s ease;
}
.wc-sbtn::before { content: ""; width: 17px; height: 17px; flex: none; }
.wc-sbtn-line::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2306c755'%3E%3Cpath d='M24 10.31C24 4.94 18.62.57 12 .57S0 4.94 0 10.31c0 4.82 4.27 8.85 10.04 9.61.39.08.92.26 1.05.59.12.3.08.77.04 1.08l-.16 1.02c-.05.3-.24 1.19 1.05.65 1.29-.54 6.92-4.08 9.44-6.98C23.18 14.39 24 12.46 24 10.31'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wc-sbtn-copy::before {
  color: var(--wc-ink); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center/contain no-repeat;
}
.wc-sbtn:hover { border-color: var(--wc-ink); }
.wc-sbtn:active { transform: scale(.97); }
.wc-sbtn:disabled { opacity: .7; cursor: default; }
.wc .status { font-size: 13px; line-height: 1.6; color: var(--wc-sub); text-align: center; }
.wc .status:empty { display: none; }
.wc .status.error { color: #dc2626; }

/* ── 連結（Linktree 式） ── */
.wc-links { display: flex; flex-direction: column; gap: 10px; }
.wc-link {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px 10px 10px;
  background: var(--wc-surface); border: 1.5px solid var(--wc-line); border-radius: 16px;
  color: var(--wc-fg); text-decoration: none; font-size: 15px; font-weight: 650; line-height: 1.4;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wc-link:hover { border-color: var(--wc-ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.wc-link-i { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--wc-chip); color: var(--wc-ink); display: flex; align-items: center; justify-content: center; }
.wc-link-i svg { width: 20px; height: 20px; }
.wc-link-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wc-link-a { width: 18px; height: 18px; color: var(--wc-sub); }

/* ── 頁尾（Linktree「在 Linktree 上加入 XXX」）：留白 → 白色膠囊「在來名片上加入 <姓名>」（深色風格用淺灰）→ 小字連結 ── */
.wc-foot { margin-top: auto; padding: 60px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.wc-foot-save { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.wc .wc-foot-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; background: #ffffff; color: #111827; border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1); text-shadow: none; text-decoration: none; cursor: pointer;
  font-size: 15px; font-weight: 700; line-height: 1.3; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wc-foot-cta svg { width: 18px; height: 18px; color: var(--wc-deep); }
/* 名字很長：膠囊最寬到畫面寬，名字用省略號 */
.wc-foot-cta-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-foot-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 23, 42, .14); }
.wc-foot-cta:active { transform: scale(.98); }
.wc-s-dark .wc-foot-cta { background: #eceef2; border-color: transparent; box-shadow: none; }
.wc .wc-foot-cta.is-busy { opacity: .7; cursor: progress; }
.wc .wc-foot-cta.is-saved { cursor: default; transform: none; box-shadow: none; }
.wc-foot-cta.is-saved svg { display: none; }
.wc-foot-msg { font-size: 13px; line-height: 1.5; color: var(--wc-sub); }
.wc-foot-msg[hidden] { display: none; }
.wc-foot-msg a { color: var(--wc-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wc-foot-msg.is-error { color: #dc2626; }
.wc-s-dark .wc-foot-msg.is-error, .wc-s-gradient .wc-foot-msg.is-error { color: #fecaca; }
.wc-s-gradient.wc-fg-dark .wc-foot-msg.is-error { color: #b91c1c; }
.wc-foot-small { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wc-foot-links { font-size: 12px; line-height: 1.6; color: var(--wc-sub); }
.wc-foot-links[hidden] { display: none; }
.wc-foot-links a { color: inherit; text-decoration: none; }
.wc-foot-links a:hover { text-decoration: underline; }
.wc-foot-links span { margin: 0 3px; opacity: .6; }

/* ── 區塊標題（作品集、自訂區塊共用）── */
.wc-sec-t { font-size: 13px; font-weight: 700; color: var(--wc-sub); letter-spacing: .08em; margin: 4px 4px 8px; }

/* ── 自訂區塊（v2）── */
.wc-blk-box { border: 1.5px solid var(--wc-line); border-radius: 18px; background: var(--wc-surface); padding: 14px 16px; }
.wc-blk-body { font-size: 15px; line-height: 1.75; color: var(--wc-fg); overflow-wrap: anywhere; }
.wc-hours { list-style: none; }
.wc-hours li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 15px; line-height: 1.5; }
.wc-hours li + li { border-top: 1px dashed var(--wc-line); }
.wc-hours-d { color: var(--wc-sub); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.wc-hours-d em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--wc-on-accent); background: var(--wc-accent); padding: 1px 7px; border-radius: 999px; }
.wc-hours-v { font-weight: 650; color: var(--wc-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-hours li.is-today .wc-hours-d { color: var(--wc-fg); font-weight: 700; }
.wc-hours-off { color: var(--wc-sub); font-weight: 500; }
.wc-hours-note { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--wc-sub); }
.wc-svc { list-style: none; }
.wc-svc li { padding: 10px 0; }
.wc-svc li:first-child { padding-top: 2px; }
.wc-svc li:last-child { padding-bottom: 2px; }
.wc-svc li + li { border-top: 1px solid var(--wc-line); }
.wc-svc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wc-svc-n { font-size: 15px; font-weight: 700; color: var(--wc-fg); overflow-wrap: anywhere; min-width: 0; }
.wc-svc-p { flex: none; font-size: 14px; font-weight: 700; color: var(--wc-ink); white-space: nowrap; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.wc-svc-d { margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--wc-sub); overflow-wrap: anywhere; }
/* 影片：16:9（Shorts 9:16、最寬 300px 置中） */
.wc-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0b0f; box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.wc-video.wc-video-v { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.wc-video iframe, .wc-video-pv, .wc-video-pv img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.wc-video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: rgba(255, 0, 0, .9); }
.wc-video-play::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.wc-igcard { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; border: 1.5px solid var(--wc-line); border-radius: 16px; background: var(--wc-surface); color: var(--wc-fg); text-decoration: none; }
.wc-igcard:hover { border-color: var(--wc-ink); }
.wc-igcard-i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.wc-igcard-i svg { width: 24px; height: 24px; }
.wc-igcard-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wc-igcard-b strong { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.wc-igcard-b span { font-size: 12px; color: var(--wc-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 作品集：3 欄方格，點開燈箱 */
.wc-gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wc-gal-i { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--wc-chip); cursor: zoom-in; }
.wc-gal-i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.wc-gal-i:hover img { transform: scale(1.04); }
/* 燈箱（webcard-page.js 建在 body 最後）：不外連套件 */
.wc-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(8, 10, 14, .92); padding: 56px 12px calc(56px + env(safe-area-inset-bottom)); touch-action: pan-y; }
.wc-lb[hidden] { display: none; }
.wc-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wc-lb img { max-width: min(92vw, 1100px); max-height: calc(100dvh - 150px); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 10px; background: #fff; }
.wc-lb figcaption { color: #e5e7eb; font-size: 14px; line-height: 1.5; text-align: center; max-width: 92vw; overflow-wrap: anywhere; white-space: pre-line; }
.wc-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wc-lb button:hover { background: rgba(255, 255, 255, .26); }
.wc-lb .wc-lb-x { top: 10px; right: 10px; }
.wc-lb .wc-lb-p { left: 10px; top: 50%; margin-top: -23px; }
.wc-lb .wc-lb-n { right: 10px; top: 50%; margin-top: -23px; }
.wc-lb .wc-lb-c { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: 13px; pointer-events: none; }
.wc-lb.wc-lb-one .wc-lb-p, .wc-lb.wc-lb-one .wc-lb-n, .wc-lb.wc-lb-one .wc-lb-c { display: none; }
html.wc-lb-open, html.wc-lb-open body { overflow: hidden; }

/* ── 404 ── */
.wc-missing-t { font-size: 24px; font-weight: 800; }
.wc-card-missing .wc-head .status { margin-top: 8px; font-size: 15px; }

/* ════════ 6 種風格 ════════ */

/* 深色 */
.wc-s-dark { --wc-fg: #f3f4f6; --wc-sub: #9ca3af; --wc-surface: #14161c; --wc-line: rgba(255, 255, 255, .1); --wc-chip: rgba(255, 255, 255, .07); background: #07080b; }
.wc-s-dark .wc-avatar { box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }

/* 漸層：整頁主色漸層，內容直接浮在上面（玻璃感按鈕） */
.wc-s-gradient { --wc-fg: #ffffff; --wc-sub: rgba(255, 255, 255, .8); --wc-surface: transparent; --wc-line: rgba(255, 255, 255, .3); --wc-chip: rgba(255, 255, 255, .18); background: var(--wc-accent); }
.wc-s-gradient.wc-fg-dark { --wc-fg: #111827; --wc-sub: rgba(17, 24, 39, .72); --wc-line: rgba(17, 24, 39, .18); --wc-chip: rgba(17, 24, 39, .08); }
.wc-s-gradient .wc-card { background: transparent; }
.wc-s-gradient:not(.wc-fg-dark) .wc-head, .wc-s-gradient:not(.wc-fg-dark) .wc-ico-t, .wc-s-gradient:not(.wc-fg-dark) .wc-sec-t, .wc-s-gradient:not(.wc-fg-dark) .wc-foot-links, .wc-s-gradient:not(.wc-fg-dark) .wc-foot-msg { text-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.wc-s-gradient .wc-cover { height: 64px; }
.wc-s-gradient .wc-head { margin-top: 0; }
.wc-s-gradient .wc-avatar { border-color: rgba(255, 255, 255, .75); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.wc-s-gradient .wc-link, .wc-s-gradient .wc-blk-box, .wc-s-gradient .wc-igcard {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wc-s-gradient.wc-fg-dark .wc-link, .wc-s-gradient.wc-fg-dark .wc-blk-box, .wc-s-gradient.wc-fg-dark .wc-igcard { background: rgba(255, 255, 255, .5); border-color: rgba(17, 24, 39, .12); }
.wc-s-gradient .wc-btn-main { background: #ffffff; color: var(--wc-deep); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.wc-s-gradient.wc-fg-dark .wc-btn-main { background: #111827; color: #ffffff; }
.wc-s-gradient .wc-btn-ghost { color: var(--wc-fg); }
.wc-s-gradient .wc-svc-p { color: var(--wc-fg); }
.wc-s-gradient .wc-hours li + li { border-top-color: var(--wc-line); }

/* 卡片疊層：白卡片後面疊兩張主色卡（在頂端露出來） */
.wc-s-layered .wc-wrap { padding: 34px 14px 20px; }
.wc-s-layered .wc-card { border-radius: 26px; min-height: 0; box-shadow: 0 18px 48px rgba(15, 23, 42, .14); }
.wc-s-layered .wc-card::before, .wc-s-layered .wc-card::after { content: ""; position: absolute; height: 80px; border-radius: 26px; z-index: -1; }
.wc-s-layered .wc-card::before { top: -11px; left: 14px; right: 14px; background: var(--wc-accent); opacity: .45; }
.wc-s-layered .wc-card::after { top: -21px; left: 30px; right: 30px; background: var(--wc-accent2); opacity: .28; }
.wc-s-layered .wc-cover { border-radius: 26px 26px 0 0; height: 132px; }
.wc-s-layered .wc-link, .wc-s-layered .wc-blk-box, .wc-s-layered .wc-igcard { box-shadow: 0 2px 0 var(--wc-tint); }

/* 品牌色塊：頭部是一大塊主色（斜切），按鈕實心主色 */
.wc-s-brand .wc-cover { display: none; }
.wc-s-brand .wc-head {
  margin-top: 0; padding: 44px 22px 64px; background: var(--wc-head); color: var(--wc-head-fg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}
.wc-s-brand .wc-head h1 { color: var(--wc-head-fg); }
.wc-s-brand .wc-head .meta, .wc-s-brand .wc-bio { color: var(--wc-head-fg); opacity: .88; }
.wc-s-brand .wc-avatar { border-color: rgba(255, 255, 255, .85); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.wc-s-brand .wc-icons { padding-top: 6px; }
.wc-s-brand .wc-ico-c { background: var(--wc-accent); color: var(--wc-on-accent); box-shadow: 0 6px 16px var(--wc-btn-shadow); }

/* 圖案背景：整頁鋪圖案，白卡片半透明浮在上面 */
.wc-s-pattern .wc-wrap { padding: 16px 12px 16px; }
.wc-s-pattern .wc-card { border-radius: 24px; min-height: 0; background: rgba(255, 255, 255, .93); box-shadow: 0 16px 44px rgba(15, 23, 42, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wc-s-pattern .wc-cover { border-radius: 24px 24px 0 0; height: 128px; }
.wc-s-pattern .wc-link, .wc-s-pattern .wc-blk-box, .wc-s-pattern .wc-igcard { background: rgba(255, 255, 255, .85); }

/* ════════ v2：字型、按鈕形狀、按鈕樣式 ════════ */
/* 字型：Google Fonts 只有選了才由 server.js 載入（display=swap），還沒載到前用系統字 */
.wc.wc-f-rounded { font-family: "Huninn", -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.wc.wc-f-sans { font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif; }
.wc.wc-f-serif { font-family: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif; }
/* 按鈕形狀：圓角（預設 16px）／膠囊／直角 —— 套在「加入聯絡人」、分享鈕、連結列 */
.wc-bs-pill .wc-btn, .wc-bs-pill .wc-link, .wc-bs-pill .wc-igcard { border-radius: 999px; }
.wc-bs-pill .wc-link, .wc-bs-pill .wc-igcard { padding-left: 9px; padding-right: 18px; }
.wc-bs-pill .wc-link-i, .wc-bs-pill .wc-igcard-i { border-radius: 50%; }
.wc-bs-square .wc-btn, .wc-bs-square .wc-link, .wc-bs-square .wc-igcard { border-radius: 4px; }
.wc-bs-square .wc-link-i, .wc-bs-square .wc-igcard-i { border-radius: 3px; }
/* 按鈕樣式：實心（預設，就是原本的樣子）／外框／柔和底色 —— 套在「加入聯絡人」和連結列 */
.wc.wc-bt-outline .wc-btn-main { background: transparent; color: var(--wc-ink); border: 2px solid var(--wc-btn); box-shadow: none; }
.wc.wc-bt-outline .wc-link { background: transparent; border: 2px solid var(--wc-btn); box-shadow: none; }
.wc.wc-bt-soft .wc-btn-main { background: var(--wc-btn-soft); color: var(--wc-ink); box-shadow: none; }
.wc.wc-bt-soft .wc-link { background: var(--wc-btn-soft); border-color: transparent; box-shadow: none; }
.wc.wc-bt-soft .wc-link-i { background: var(--wc-surface); }
/* 漸層風格底下是彩色整頁：外框／柔和用白色系 */
.wc.wc-s-gradient.wc-bt-outline .wc-btn-main, .wc.wc-s-gradient.wc-bt-outline .wc-link { background: transparent; color: var(--wc-fg); border-color: var(--wc-fg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.wc.wc-s-gradient.wc-bt-soft .wc-btn-main, .wc.wc-s-gradient.wc-bt-soft .wc-link { background: rgba(255, 255, 255, .24); color: var(--wc-fg); border-color: transparent; }
.wc.wc-s-gradient.wc-fg-dark.wc-bt-soft .wc-btn-main, .wc.wc-s-gradient.wc-fg-dark.wc-bt-soft .wc-link { background: rgba(17, 24, 39, .08); }
.wc.wc-s-gradient.wc-bt-soft .wc-link-i { background: rgba(255, 255, 255, .22); }

/* 上傳背景圖：卡片外的整頁背景糊開（卡片頂部封面保持清楚）；糊開的邊緣被 .wc-backdrop overflow 切掉 */
.wc-bg-image .wc-backdrop::before { inset: -48px; filter: blur(26px) saturate(1.15); }
.wc-bg-image .wc-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .16); }
.wc-s-gradient.wc-bg-image .wc-backdrop::before { inset: 0; filter: none; }
.wc-s-gradient.wc-bg-image .wc-backdrop::after { display: none; }

/* ════════ 桌機：置中卡片 ════════ */
@media (min-width: 600px) {
  .wc-wrap { padding: 56px 24px 48px; }
  .wc-card { min-height: 0; border-radius: 30px; box-shadow: 0 30px 80px rgba(15, 23, 42, .2); }
  .wc-card > .wc-cover { border-radius: 30px 30px 0 0; height: 176px; }
  .wc-s-gradient .wc-card { box-shadow: none; }
  .wc-s-gradient .wc-card > .wc-cover { height: 24px; }
  .wc-s-brand .wc-head { border-radius: 30px 30px 0 0; }
  .wc-s-layered .wc-wrap, .wc-s-pattern .wc-wrap { padding: 64px 24px 48px; }
  .wc-main { padding: 22px 30px 8px; }
  .wc-card > .wc-actions { padding: 22px 30px 0; }
  .wc-card > .wc-actions + .wc-main { padding-top: 14px; }
  .wc-icons { padding: 24px 24px 4px; gap: 16px 12px; }
  .wc-foot { padding-top: 64px; padding-bottom: 32px; }
}
/* ════════ v2：桌機雙欄（≥1024px、會員選了「桌機雙欄」才有；手機、平板照舊單欄）════════
 * 左欄：封面下的頭像／姓名／簡介、圖示按鈕列（含 QR）、加入聯絡人；右欄：連結、區塊、作品集、分享列，右欄底部是頁尾
 * 用 grid：封面橫跨兩欄當橫幅；右欄 .wc-main 跨 2～5 列，第 5 列 1fr 吃掉高度差，左欄各列不會被撐開 */
@media (min-width: 1024px) {
  .wc-l-2col .wc-card { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr auto; }
  .wc-l-2col .wc-card > .wc-cover { grid-column: 1 / -1; grid-row: 1; }
  .wc-l-2col .wc-card > .wc-head { grid-column: 1; grid-row: 2; }
  .wc-l-2col .wc-card > .wc-icons { grid-column: 1; grid-row: 3; }
  .wc-l-2col .wc-card > .wc-actions { grid-column: 1; grid-row: 4; padding: 22px 30px 8px; }
  .wc-l-2col .wc-card > .wc-main { grid-column: 2; grid-row: 2 / 6; padding: 30px 36px 12px; border-left: 1px solid var(--wc-line); min-width: 0; }
  .wc-l-2col .wc-card > .wc-foot { grid-column: 2; grid-row: 6; padding-top: 48px; border-left: 1px solid var(--wc-line); }
  .wc-l-2col .wc-gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wc-l-2col.wc-s-brand .wc-head { border-radius: 30px 0 0 0; }
  .wc-l-2col.wc-s-gradient .wc-card > .wc-main, .wc-l-2col.wc-s-gradient .wc-card > .wc-foot { border-left-color: rgba(255, 255, 255, .25); }
}
@media (max-width: 360px) {
  .wc-ico { width: 62px; }
  .wc-ico-c { width: 50px; height: 50px; }
  .wc-head h1 { font-size: 24px; }
}

/* 編輯器預覽（iframe，沒有 script）：按鈕不能點 */
.wc-preview a, .wc-preview button { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wc * { transition: none !important; } }

/* ════════ v2.1（2026-10-14）：顯示項目可以關掉頭像；頁尾品牌小字 ════════ */
/* 沒有頭像：頭部不再往封面上疊（品牌色塊、漸層本來就不疊） */
.wc-hide-av:not(.wc-s-brand):not(.wc-s-gradient) .wc-head { margin-top: 0; padding-top: 22px; }
.wc-hide-av:not(.wc-s-brand):not(.wc-s-gradient) .wc-card > .wc-cover { height: 92px; }
/* 「本頁由 來名片 LITECARD 免費提供」：低調但看得到（品牌字稍粗） */
.wc-foot-brand a:first-of-type { font-weight: 600; }
