/* canprint-smart-link 公開名片頁（v0.3.0 數位名片風）。
   配色用 CSS 變數，6 套 skin 只覆寫變數。預設 = paper 紙感。 */

:root {
  --paper: #f7f2e8;
  --paper-deep: #ede4d1;
  --card: #fdfaf2;
  --ink: #2a241d;
  --ink-soft: #5c5044;
  --ink-mute: #968774;
  --gold: #a8826b;
  --gold-deep: #8a6650;
  --line: rgba(42,36,29,.12);
  --line-soft: rgba(42,36,29,.06);
}

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

html, body { background: var(--paper); }

body {
  font-family: 'Noto Sans TC', -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  padding: 24px 16px 48px;
  position: relative;
  overflow-x: hidden;
}

/* 紙紋 grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: .55;
  z-index: 0;
}

main {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 試用倒數 pill */
.trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  margin-bottom: 18px;
  background: rgba(168,130,107,.08);
  border: 1px solid rgba(168,130,107,.22);
  border-radius: 999px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}
.trial-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* 名片本體 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px 32px 36px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 2px 8px rgba(42,36,29,.04),
    0 24px 60px -20px rgba(42,36,29,.18);
  position: relative;
}

/* 四角細線角標 */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  opacity: .35;
}
.card::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* header */
.header { text-align: center; margin-bottom: 32px; }

.logo {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--card);
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500; font-style: italic; letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(168,130,107,.3);
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 10px; font-weight: 500;
}
.storename {
  font-family: 'Noto Serif TC', serif;
  font-size: 26px; font-weight: 500; letter-spacing: .03em;
  color: var(--ink); margin-bottom: 8px; line-height: 1.3;
}
.tagline { font-size: 13px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }

/* ornamental divider */
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 22px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-size: 14px; font-style: italic; letter-spacing: .1em; }

/* links（ghost row） */
.links { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 4px;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: padding .25s ease, background .2s ease;
  position: relative;
}
.link:last-child { border-bottom: 0; }
.link:hover { padding-left: 10px; background: linear-gradient(90deg, rgba(168,130,107,.04), transparent); }
.link-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; background: rgba(168,130,107,.08); border-radius: 50%; flex-shrink: 0;
}
.link-body { flex: 1; min-width: 0; }
.link-label { font-size: 14px; font-weight: 500; color: var(--ink); display: block; letter-spacing: .02em; }
.link-sub { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; display: block; }
.link-arrow { color: var(--ink-mute); font-family: 'Cormorant Garamond', serif; font-size: 18px; transition: transform .2s; }
.link:hover .link-arrow { transform: translateX(3px); color: var(--gold); }

/* QR */
.qr {
  text-align: center; margin: 8px 0 4px; padding: 24px 16px 18px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.qr-frame {
  display: inline-block; padding: 12px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(42,36,29,.06);
}
.qr-frame img, .qr-frame svg { display: block; width: 120px; height: 120px; }
.qr-cap {
  font-family: 'Cormorant Garamond', serif; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 12px;
}

/* upgrade「Make It Real」 */
.upgrade { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); position: relative; }
.upgrade-head { text-align: center; margin-bottom: 22px; }
.upgrade-eyebrow {
  display: inline-block; font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; padding: 4px 12px; border: 1px solid var(--gold); border-radius: 2px;
}
.upgrade-title { font-family: 'Noto Serif TC', serif; font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 8px; letter-spacing: .02em; }
.upgrade-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; padding: 0 8px; }

.products { display: flex; flex-direction: column; gap: 12px; }
.product {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  text-decoration: none; color: inherit; transition: all .2s ease; position: relative;
}
.product:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(168,130,107,.2); }
.product-visual { width: 64px; height: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.product-body { flex: 1; min-width: 0; }
.product-name { font-family: 'Noto Serif TC', serif; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.product-spec { font-size: 11px; color: var(--ink-mute); line-height: 1.5; margin-bottom: 4px; }
.product-price { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 600; color: var(--gold-deep); letter-spacing: .04em; }
.product-arrow { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--gold); font-size: 18px; margin-left: 4px; }

/* footer */
.footer { margin-top: 28px; text-align: center; font-size: 10.5px; letter-spacing: .25em; color: var(--ink-mute); text-transform: uppercase; font-family: 'Cormorant Garamond', serif; }
.footer-custom { text-transform: none; letter-spacing: normal; font-family: 'Noto Sans TC', sans-serif; font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.footer a { color: var(--gold-deep); text-decoration: none; font-weight: 500; }

/* 訊息（草稿提示等） */
.csl-note {
  text-align: center; font-size: 12px; color: var(--gold-deep);
  background: rgba(168,130,107,.08); border: 1px solid rgba(168,130,107,.22);
  border-radius: 10px; padding: 8px; margin-bottom: 14px;
}

/* 入場動畫 */
.card, .upgrade, .footer { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) backwards; }
.upgrade { animation-delay: .15s; }
.footer { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
