/* =========
   Linktree-like UI (pixel-close)
   ========= */

:root{
  /* extracted from your screenshot (approx) */
  --bg: #d5b38e;          /* page background */
  --bg2: #caa983;         /* subtle vignette */
  --card: #ffffff;
  --card-border: rgba(255,255,255,.28);
  --shadow: rgba(0,0,0,.14);
  --text-on-bg: #ffffff;
  --text-strong: #b98e5f; /* warm gold text inside cards */
  --text-muted: rgba(255,255,255,.82);
  --icon-bg: #ffffff;
  --icon-shadow: rgba(0,0,0,.12);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: radial-gradient(1200px 900px at 50% -10%, var(--bg2), var(--bg));
  color: var(--text-on-bg);
}

.page{
  min-height: 100%;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  position: relative;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* floating buttons */
.fab{
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: none;
  background: rgba(255,255,255,.88);
  color:#000;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  display:grid;
  place-items:center;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.fab-left{ left: max(12px, env(safe-area-inset-left)); }
.fab-right{ right: max(12px, env(safe-area-inset-right)); }
.fab svg{ width:20px; height:20px; fill:#111; }
.fab-glyph{ font-size: 22px; line-height:1; }

.hero{
  width: min(620px, 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-top: 22px;
}

.logoWrap{
  width: 92px;
  height: 92px;
  border-radius: 46px;
  display:grid;
  place-items:center;
  margin-top: 10px;
}
.logo{
  width: 92px;
  height: 92px;
  border-radius: 46px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  background: #b33b2c;
}

.title{
  margin: 18px 0 6px;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: .5px;
}
.subtitle{
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
}

.links{
  width: min(620px, 100%);
  display:flex;
  flex-direction:column;
  gap: 14px;
  margin-top: 10px;
}

.linkCard{
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  min-height: 64px;
  box-shadow: 0 2px 0 rgba(255,255,255,.45);
  display:flex;
  align-items:center;
  padding: 10px 10px 10px 12px;
}

.linkLeft{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow:hidden;
  background: var(--icon-bg);
  box-shadow: 0 8px 14px var(--icon-shadow);
  flex: 0 0 auto;
  display:grid;
  place-items:center;
}
.linkLeft img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkCenter{
  flex: 1 1 auto;
  padding: 0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.linkCenter a{
  width:100%;
  text-align:center;
  text-decoration:none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-strong);
  padding: 8px 6px;
  border-radius: 10px;
  outline: none;
}
.linkCenter a:focus-visible{
  box-shadow: 0 0 0 3px rgba(185,142,95,.35);
}

.linkRight{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
}
.shareBtn{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: none;
  background: transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}
.shareBtn svg{
  width: 18px;
  height: 18px;
  fill: #c9a884;
  opacity: .95;
}
.shareBtn:active svg{ transform: scale(.96); }

.footer{
  margin-top: auto;
  padding: 18px 0 4px;
  opacity: .25;
}
.footer-dot{ font-size: 22px; }

/* toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  transform-origin:center;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* mobile: match your "手機版樣式太小" complaint */
@media (max-width: 420px){
  .title{ font-size: 32px; }
  .linkCenter a{ font-size: 17px; }
  .linkCard{ min-height: 66px; }
}
