/* 配色：只有一個主色「鮮橘」（LOGO、按鈕、已選取、重點都用它），其餘都是灰階。
   卡片一律用淺灰底，不要用淡橘色當底（使用者看了不舒服）。
   --main 用在色塊，--main-text 用在文字，--tint 是「被標示」的卡片底色，目前跟一般卡片一樣是淺灰 */
:root {
  --bg: #ffffff;
  --page: #ffffff;
  --outer: #efefef;
  --bar: rgba(255, 255, 255, .92);
  --sheet: #ffffff;
  --card: #f5f5f5;
  --ink: #1a1a1a;
  --muted: #6e6e6e;
  --faint: #a8a8a8;
  --line: #e4e4e4;
  --gray: #dedede;
  --main: #fd6335;
  --main-dark: #e5532a;
  --main-text: #ef5327;
  --on-main: #ffffff;
  --tint: var(--card);
  --warn: #b3261e;
  --nav-h: 64px;
  --head-h: 56px;
}

/* 夜間模式：不用全黑，改成帶一點主色的深色漸層，卡片是半透明的 */
:root[data-theme="dark"] {
  --bg: #221f27;
  --page: linear-gradient(165deg, color-mix(in srgb, var(--main) 38%, #2a2630) 0%, #2a2630 42%, #1f1d25 100%) fixed;
  --outer: var(--page);
  --bar: rgba(34, 31, 39, .72);
  --sheet: #2d2932;
  --card: rgba(255, 255, 255, .08);
  --ink: #f6f3f1;
  --muted: #b9b3b8;
  --faint: #8a848b;
  --line: rgba(255, 255, 255, .13);
  --gray: rgba(255, 255, 255, .16);
  --main: #fd6335;
  --main-dark: #ff7a50;
  --main-text: #ff8f6b;
  --warn: #ff9a8f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100dvh;
  background: var(--outer);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
svg { display: block; }

#app {
  position: relative;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--page);
  overflow-x: hidden;
}

.logo {
  font-family: "Fredoka", "Noto Sans TC", sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--main-text);
}

/* ---------- 開場動畫 ---------- */
.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--main);
}
.splash .logo { color: var(--on-main); font-size: 56px; display: flex; }
.splash .logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(.6) rotate(-8deg);
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.splash .logo .gap { width: .28em; }
.splash .logo .q { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) forwards, wiggle .7s ease-in-out 1.5s 2; transform-origin: 50% 90%; }
.splash p { color: var(--on-main); opacity: 0; animation: fade .6s ease 1.5s forwards; letter-spacing: .2em; font-size: 14px; }
.splash.leaving { animation: fadeOut .4s ease forwards; }

@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(18deg) scale(1.15); } 60% { transform: rotate(-10deg); } }
@keyframes fade { to { opacity: .9; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }

/* ---------- 引導問題 ---------- */
.onb {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 0;
  animation: rise .35s ease;
}
.progress { height: 6px; border-radius: 99px; background: var(--card); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--main); transition: width .3s; }
.onb h1 { font-size: 26px; line-height: 1.35; margin-top: 28px; }
.onb h1 .logo { font-size: 1.05em; }
.onb .sub { color: var(--muted); font-size: 14px; margin-top: 8px; }
.onb .body { flex: 1; padding: 22px 0 24px; }
.onb-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -20px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: var(--bar);
  backdrop-filter: blur(14px);
}
.btn-back { color: var(--muted); font-weight: 500; padding: 12px 6px 12px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 99px;
  background: var(--main);
  color: var(--on-main);
  font-weight: 700;
  transition: transform .1s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--main-dark); }
.btn[disabled] { background: var(--gray); cursor: not-allowed; }
.btn.full { width: 100%; }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn.ghost, .btn.ghost:hover { background: var(--tint); color: var(--main-text); }

.options { display: grid; gap: 12px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 12px 16px;
  text-align: left;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 16px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.option .ico { flex: none; color: var(--muted); }
.option .ico svg { width: 24px; height: 24px; }
.option .tick { margin-left: auto; font-weight: 700; color: var(--main-text); opacity: 0; }
.option.on { border-color: var(--main); background: var(--tint); color: var(--main-text); font-weight: 700; }
.option.on .ico { color: var(--main-text); }
.option.on .tick { opacity: 1; }
.check {
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--faint);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--on-main);
  font-size: 15px;
  line-height: 1;
}
.option.on .check { background: var(--main); border-color: var(--main); }

.group-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 0 10px; }
.group-title:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 15px; border-radius: 99px; background: var(--card); font-size: 15px; transition: background .15s, color .15s; }
.chip.on { background: var(--main); color: var(--on-main); font-weight: 500; }
.chip.dim { opacity: .4; }
.chip.static { cursor: default; background: var(--tint); color: var(--main-text); font-size: 14px; }
.counter { font-weight: 700; color: var(--main-text); white-space: nowrap; }

/* ---------- 表單 ---------- */
.field { margin-bottom: 22px; }
.field > label, .field > .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 14px;
  outline: none;
}
select.input option { color: #1a1a1a; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--main); }
.input::placeholder { color: var(--faint); }
.hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.error { color: var(--warn); font-size: 14px; font-weight: 500; margin: 0 0 12px; }

.photo-pick { display: flex; align-items: center; gap: 16px; }
.photo {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background: var(--gray) center/cover no-repeat;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--muted);
}

/* ---------- 註冊／等待 ---------- */
.arranging { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border-radius: 16px; background: var(--tint); }
.arranging b { display: block; }
.arranging small { color: var(--muted); }
.spinner {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid var(--gray);
  border-top-color: var(--main);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--main); flex: none; }
.done-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.done-screen .spinner { width: 52px; height: 52px; }
.done-screen h1 { font-size: 22px; }
.done-screen p { color: var(--muted); }

/* ---------- 主畫面框架 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 20px;
  background: var(--bar);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo { font-size: 24px; }
.top-actions { display: flex; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn:hover { background: var(--card); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--main); }
.icon-btn .count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--main); color: var(--on-main); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.page { padding: 20px 20px calc(var(--nav-h) + 32px); animation: rise .25s ease; }
.page h1 { font-size: 24px; line-height: 1.3; }
.page h2 { font-size: 18px; margin: 28px 0 12px; display: flex; align-items: baseline; justify-content: space-between; }
.page h2 button { font-size: 13px; font-weight: 500; color: var(--main-text); }
.lead { color: var(--muted); font-size: 14px; }

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 6;
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--bar);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--main-text); font-weight: 700; }

/* ---------- 清單卡片（設定、通知、活動更新共用） ---------- */
.list { background: var(--card); border-radius: 16px; overflow: hidden; }
.list > * { border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.news { display: grid; gap: 10px; margin-top: 18px; }
.news-item { padding: 14px 16px; border-radius: 16px; background: var(--tint); }
.news-item b { display: block; color: var(--main-text); }
.news-item span { color: var(--muted); font-size: 14px; }
.update { display: block; width: 100%; text-align: left; padding: 14px 16px; font-size: 14px; }

/* ---------- 活動卡片 ---------- */
.act-list { display: grid; gap: 16px; }
.act { position: relative; background: var(--card); border-radius: 18px; overflow: hidden; cursor: pointer; }
/* 新上架的活動靠左上角的實心標籤來辨識 */
.act.new { background: var(--tint); }
.cover { height: 140px; background: var(--gray); }
.act .info { padding: 12px 16px 14px; }
.badge { position: absolute; top: 12px; left: 12px; padding: 2px 10px; border-radius: 99px; background: var(--main); color: var(--on-main); font-size: 12px; font-weight: 700; }
.kicker { font-size: 12px; font-weight: 700; color: var(--muted); }
.act h3 { font-size: 16px; line-height: 1.4; }
.act .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.act .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.act .foot b { color: var(--main-text); font-size: 15px; }
.heart { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; }
.heart svg { width: 20px; height: 20px; fill: none; stroke: #1a1a1a; stroke-width: 2; }
.heart.on svg { fill: var(--main); stroke: var(--main); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .act { flex: none; width: 240px; scroll-snap-align: start; }
.hscroll .cover { height: 116px; }

.search-row { display: flex; gap: 10px; margin-top: 14px; }
.search { flex: 1; position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search .input { padding-left: 44px; }
.filter-btn { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--card); display: grid; place-items: center; }
.filter-btn svg { width: 22px; height: 22px; }
.filter-btn.on { background: var(--tint); color: var(--main-text); }
.filters { margin-top: 12px; padding: 16px; background: var(--card); border-radius: 16px; }
.filters .chip { background: var(--bg); }
.filters .chip.on { background: var(--main); }
.result-count { color: var(--muted); font-size: 13px; margin: 16px 0 12px; }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 28px 16px; background: var(--card); border-radius: 16px; }

/* ---------- VIP ---------- */
.vip-page { text-align: center; padding-top: 48px; }
.vip-page .crown { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: var(--tint); color: var(--main-text); display: grid; place-items: center; }
.vip-page .crown svg { width: 42px; height: 42px; }
.vip-page .tag { display: inline-block; margin-top: 20px; padding: 3px 14px; border-radius: 99px; background: var(--main); color: var(--on-main); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.vip-page h1 { font-size: 28px; line-height: 1.4; margin-top: 14px; }
.vip-page h1 em { font-style: normal; color: var(--main-text); }
.vip-page .lead { margin: 12px auto 24px; max-width: 290px; font-size: 15px; }
.vip-page ul { display: grid; gap: 10px; text-align: left; }
.vip-page li { padding: 14px 16px; border-radius: 14px; background: var(--card); font-size: 15px; }
.vip-page .btn { margin-top: 24px; }

/* ---------- 自介 ---------- */
.me-photo { position: relative; height: 420px; border-radius: 24px; overflow: hidden; background: var(--gray) center/cover no-repeat; display: flex; align-items: flex-end; }
.me-photo .who { position: relative; width: 100%; padding: 70px 20px 18px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }
.me-photo .who b { font-size: 30px; line-height: 1.2; }
.me-photo .who span { display: block; font-size: 14px; }
.sec { margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--card); }
.sec h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.sec .quote { font-size: 19px; font-weight: 500; line-height: 1.55; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { text-align: right; }
.me-actions { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- 設定 ---------- */
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--tint); }
.plan-row small { display: block; color: var(--muted); font-size: 12px; }
.plan-row b { font-size: 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 10px 16px; text-align: left; font-size: 15px; }
.row .val { color: var(--muted); font-size: 14px; }
.row.danger { color: var(--warn); }
.row .mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .thumb { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gray); }
.row .mini small { display: block; font-size: 12px; color: var(--muted); }
.switch { position: relative; flex: none; width: 48px; height: 28px; border-radius: 99px; background: var(--gray); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--main); }
.switch.on::after { transform: translateX(20px); }
.version { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }

/* ---------- 彈出視窗 ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.sheet[hidden], .toast[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-box { width: 100%; max-width: 430px; max-height: 88dvh; overflow-y: auto; background: var(--sheet); border-radius: 26px 26px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .25s ease; }
@keyframes up { from { transform: translateY(40px); } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 20px; line-height: 1.4; padding-top: 3px; }
.close { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--card); font-size: 16px; }
.sheet .cover { height: 150px; border-radius: 18px; margin-bottom: 14px; }
.sheet .facts { margin: 14px 0; padding: 10px 16px; border-radius: 16px; background: var(--card); font-size: 14px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; padding: 0 12px; }
.notice { padding: 14px 16px; font-size: 14px; }
.notice small { display: block; color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { padding: 14px; border-radius: 16px; background: var(--card); border: 2px solid transparent; }
.plan.paid { border-color: var(--main); background: var(--tint); }
.plan b { display: block; font-size: 16px; }
.plan .price { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.plan li { font-size: 13px; margin-bottom: 6px; }
.plan li.no { color: var(--faint); text-decoration: line-through; }
.demo-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- 門票 ---------- */
.ticket { margin-bottom: 16px; border-radius: 20px; background: var(--card); overflow: hidden; }
.ticket-top { padding: 16px 18px; background: var(--main); color: var(--on-main); }
.ticket-top h3 { font-size: 18px; line-height: 1.4; }
.ticket-top p { font-size: 13px; opacity: .9; }
.ticket-bottom { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-top: 2px dashed var(--sheet); }
.qr { flex: none; width: 116px; height: 116px; padding: 8px; border-radius: 12px; background: #fff; }
.qr svg { width: 100%; height: 100%; }
.ticket small { display: block; color: var(--muted); font-size: 12px; }
.ticket .code { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 19px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.ticket .name { margin-top: 8px; font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%); z-index: 30; max-width: 340px; padding: 11px 20px; border-radius: 99px; background: #1a1a1a; color: #fff; font-size: 14px; text-align: center; animation: rise .2s; }

/* ---------- 預覽捷徑（試作期間用） ---------- */
.preview-btn {
  position: fixed;
  left: 0;
  top: 40%;
  z-index: 15;
  padding: 10px 6px;
  writing-mode: vertical-rl;
  letter-spacing: .15em;
  font-size: 12px;
  color: #fff;
  background: rgba(60, 60, 60, .75);
  border-radius: 0 8px 8px 0;
}
.jump-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 20px 0 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
}

/* ---------- 單選、照片、已報名標記、付費功能標記 ---------- */
.check.radio { border-radius: 50%; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photos .photo { position: relative; width: auto; height: auto; aspect-ratio: 3 / 4; border-radius: 16px; }
.photos .photo.add { cursor: pointer; border: 2px dashed var(--faint); background: none; color: var(--main-text); }
.photo-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; }
.photo-main { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 99px; background: var(--main); color: var(--on-main); font-size: 11px; font-weight: 700; }
.me-photo.more { margin-top: 14px; }
.joined-tag { display: inline-block; padding: 2px 10px; border: 1.5px solid var(--main); border-radius: 8px; color: var(--main-text); font-weight: 700; }
.paid-tag { padding: 2px 10px; border-radius: 99px; background: var(--main); color: var(--on-main); font-size: 11px; font-weight: 700; }
.paywall { margin-bottom: 14px; font-size: 15px; color: var(--ink); }

/* ---------- VIP 專屬團（蓋過上面舊的置中版面） ---------- */
.vip-page { text-align: left; padding-top: 28px; }
.vip-page .tag { margin-top: 0; }
.vip-page h1 { font-size: 30px; line-height: 1.3; margin-top: 12px; }
.vip-page .lead { margin: 10px 0 20px; max-width: none; font-size: 15px; }
.vip-page .perks { margin-bottom: 18px; }
.vip-page .perks li { display: flex; gap: 12px; align-items: flex-start; }
.vip-page .perks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--main-text); }
.vip-page .perks b { display: block; }
.vip-page .perks span { color: var(--muted); font-size: 14px; }
.vip-page .perks b { color: var(--ink); font-size: 15px; }
.vip-page .btn { margin-top: 0; }
.vip-bottom { margin-top: 24px; text-align: center; }
.vip-bottom .lead { margin: 0 0 12px; }
.act .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }
.locked-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--main-text); font-size: 13px; font-weight: 500; }
.locked-line svg { width: 16px; height: 16px; }

/* ---------- 自介（參考 Bumble：滿版照片、一段一段往下滑） ---------- */
.me-page { padding-top: 0; }
.me-page .me-photo { height: 500px; margin: 0 -20px; border-radius: 0 0 28px 28px; }
.me-page .me-photo.more { height: 440px; margin: 14px 0 0; border-radius: 24px; }
.me-photo .who b { display: block; font-size: 34px; margin-bottom: 4px; }
.me-photo .who span { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.me-photo .who svg { width: 16px; height: 16px; }
.me-edit { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1a1a1a; display: grid; place-items: center; }
.me-edit svg { width: 20px; height: 20px; }
.me-page .sec { padding: 20px; border-radius: 24px; }
.me-page .sec .quote { font-size: 21px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: var(--bg); font-size: 14px; font-weight: 500; }
:root[data-theme="dark"] .pill { background: rgba(255, 255, 255, .1); }
.pill svg { width: 16px; height: 16px; color: var(--muted); }
.quote.place { display: flex; align-items: center; gap: 8px; }
.quote.place svg { width: 22px; height: 22px; color: var(--main-text); }

/* ---------- VIP 限定活動（簡單版：標題加上卡片） ---------- */
.vip-page { padding-top: 20px; }
.vip-page h1 { font-size: 24px; margin: 0 0 16px; }
.vip-page > .btn { margin-top: 20px; }

/* ---------- 活動詳情（整頁） ---------- */
.sheet-box.full { position: relative; height: 100dvh; max-height: none; padding: 0; border-radius: 0; background: var(--bg); }
.detail-cover { position: relative; height: 240px; border-radius: 0; margin: 0; display: flex; justify-content: space-between; padding: 14px; }
.sheet .detail-cover.cover { height: 240px; border-radius: 0; margin: 0; }
.round-btn { position: static; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1a1a1a; display: grid; place-items: center; }
.round-btn svg { width: 22px; height: 22px; }
.detail-body { padding: 18px 20px 110px; }
.detail-body h2 { font-size: 26px; line-height: 1.35; margin: 2px 0 8px; }
.detail-body .sec p { font-size: 15px; }
.detail-body .pills { margin-top: 12px; }
.info-row { display: flex; gap: 12px; padding: 4px 0; }
.info-row + .info-row { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.info-row > svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--main-text); }
.info-row b, .info-row span, .info-row a { display: block; }
.info-row span { color: var(--muted); font-size: 14px; }
.info-row a { margin-top: 6px; color: var(--main-text); font-size: 14px; font-weight: 700; text-decoration: none; }
.host { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--gray); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.host b, .host span { display: block; }
.host span { color: var(--muted); font-size: 13px; }
.host-intro { margin-top: 12px; color: var(--muted); }
.fee { font-size: 22px !important; font-weight: 700; color: var(--main-text); }
.sub-text { color: var(--muted); }
.detail-body .progress { margin-top: 12px; background: var(--gray); }
.notes { padding-left: 18px; list-style: disc; color: var(--muted); font-size: 14px; }
.notes li + li { margin-top: 6px; }
.detail-bar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 430px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--bar); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.detail-bar small { display: block; color: var(--muted); font-size: 12px; }
.detail-bar b { font-size: 18px; }
.detail-bar .btn { flex: 1; max-width: 220px; }
:root[data-theme="dark"] .sheet-box.full { background: var(--page); }
.host .avatar { display: grid; color: var(--ink); font-size: 18px; }

/* ---------- 參加名單 ---------- */
.people { margin-top: 14px; border-top: 1px solid var(--line); }
.person-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.person-row:last-child { border-bottom: 0; padding-bottom: 0; }
.person-row .avatar { width: 44px; height: 44px; background: var(--gray) center/cover no-repeat; }
.person-row .avatar svg { width: 18px; height: 18px; color: var(--muted); }
.person-row > div { flex: 1; min-width: 0; }
.person-row b, .person-row div span { display: block; }
.person-row div span { color: var(--muted); font-size: 13px; }
.person-row .val { color: var(--muted); }

/* 浮起來、可以左右滑的資料卡 */
.sheet:has(.deck) { align-items: center; background: rgba(0, 0, 0, .7); }
.deck { width: 100%; max-width: 430px; animation: up .25s ease; }
.deck-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 14px; color: #fff; font-size: 18px; }
.deck-track { display: flex; gap: 14px; overflow-x: auto; padding: 0 44px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.deck-track::-webkit-scrollbar { display: none; }
.pcard { flex: none; width: 100%; scroll-snap-align: center; border-radius: 26px; overflow: hidden; background: var(--sheet); cursor: pointer; }
.pcard-photo { height: 46dvh; max-height: 400px; background: var(--gray) center/cover no-repeat; }
.pcard-info { padding: 16px 20px 20px; }
.pcard-info b { display: block; font-size: 24px; line-height: 1.3; }
.pcard-info span { display: block; color: var(--muted); font-size: 14px; }
.pcard-info .pcard-more { margin-top: 12px; color: var(--main-text); font-weight: 700; }
.deck-hint { margin-top: 14px; text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px; }

/* 看別人的完整個人資料 */
.person-page { padding: 0 20px 40px; }
.person-back { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* 付款 */
.sheet .facts.order { margin-top: 0; }
.facts .total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; }
.facts .total dt { color: var(--ink); }
.facts .total dd { color: var(--main-text); font-size: 18px; }
.detail-bar .btn.ghost { flex: none; padding: 0 16px; }

/* ---------- 語言切換、VIP 標記 ---------- */
.lang-btn { font-size: 13px; font-weight: 700; }
.onb-top { display: flex; align-items: center; gap: 12px; }
.onb-top .progress { flex: 1; }
.onb-lang { flex: none; min-width: 40px; height: 30px; border-radius: 99px; background: var(--card); }
.brand { display: flex; align-items: center; gap: 8px; }
.vip-chip { padding: 1px 8px; border-radius: 99px; background: var(--main); color: var(--on-main); font-size: 11px; font-weight: 700; letter-spacing: .05em; vertical-align: middle; }
.vip-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1.5px solid var(--main); border-radius: 16px; }
.vip-note svg { flex: none; width: 24px; height: 24px; color: var(--main-text); }
.vip-note b { display: block; }
.vip-note span { color: var(--muted); font-size: 13px; }
.vip-note b { color: var(--ink); font-size: 15px; }

/* ---------- 活動詳情新增的區塊 ---------- */
.title-tags { margin: 0 0 4px; }
.title-tags .pill { background: var(--card); }
.detail-body .title-tags { margin-top: 0; }
.fit li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.fit li + li { margin-top: 8px; }
.fit svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--main-text); }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery span { flex: none; width: 150px; height: 110px; border-radius: 14px; background: var(--gray); }
.list-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; font-weight: 700; }
.list-link .grow { flex: 1; }
.list-link .val { color: var(--muted); }
.stack { display: flex; }
.stack .avatar { width: 34px; height: 34px; font-size: 13px; margin-left: -8px; border: 2px solid var(--sheet); }
.stack .avatar:first-child { margin-left: 0; }
.sheet-box > .people { margin-top: 0; }

/* ---------- 月曆 ---------- */
.cal { padding: 16px; border-radius: 18px; background: var(--card); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 16px; }
.cal-nav { width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; }
.cal-nav:hover { background: var(--gray); }
.cal-nav[disabled] { color: var(--faint); cursor: not-allowed; background: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal-week { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.cal-grid > * { position: relative; height: 40px; display: grid; place-items: center; font-size: 15px; border-radius: 50%; justify-self: center; width: 40px; }
.cal-week > * { height: 24px; }
.cal-grid .past { color: var(--faint); }
.cal-grid .today { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-grid .has { font-weight: 700; color: var(--main-text); }
.cal-grid .has i { position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--main); }
.cal-grid .on { background: var(--main); color: var(--on-main); box-shadow: none; }
.cal-grid .on i { background: var(--on-main); }
.cal-label { margin: 16px 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.sheet-box.full { animation: none; }
.agree-row { margin-top: 14px; font-size: 14px; min-height: 0; }

/* ---------- 檢舉、照片審核 ---------- */
.report-link { display: block; margin: 22px auto 0; padding: 8px 12px; color: var(--warn); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.report-text { margin: 18px 0 0; }
.photo-review { position: absolute; left: 6px; top: 6px; padding: 1px 8px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; }
.report-link.plain { margin-top: 12px; color: var(--muted); }

/* ---------- 活動取消、退款規則 ---------- */
.cancel-banner { margin-top: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--warn); }
.cancel-banner b { display: block; color: var(--warn); font-size: 16px; }
.cancel-banner span { font-size: 14px; color: var(--muted); }
.cancel-tag { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1.5px solid var(--warn); color: var(--warn); font-size: 12px; font-weight: 700; vertical-align: middle; }
.ticket.void .ticket-top { background: var(--gray); color: var(--muted); }
.ticket.void .cancel-tag { font-size: 14px; padding: 2px 10px; }
.rules > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules > div:last-child { border-bottom: 0; }
.rules p { margin-top: 2px; color: var(--muted); font-size: 14px; }

/* ---------- 常見問題 ---------- */
.faq { background: var(--card); border-radius: 16px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; flex: none; color: var(--muted); }
.faq details[open] summary::after { content: "－"; }
.faq details[open] summary { color: var(--main-text); }
.faq p { padding: 0 16px 16px; color: var(--muted); font-size: 14px; }
a.row { color: inherit; text-decoration: none; }

/* ---------- 登入、確認信箱 ---------- */
.auth-logo { flex: 1; font-size: 24px; }
.text-link { color: var(--main-text); font-weight: 500; font-size: 14px; padding: 6px 0; }
.steps { padding: 16px; margin-bottom: 14px; border-radius: 16px; background: var(--card); font-size: 15px; }
.steps p + p { margin-top: 8px; }
/* 正在跟伺服器連線時，先不讓人重複按按鈕 */
body.busy .btn, body.busy .text-link, body.busy .btn-back { pointer-events: none; opacity: .5; }

/* ---------- 品牌圖示（YD? 對話框） ---------- */
.mark { width: 34px; height: 34px; flex: none; }
.brand { display: flex; align-items: center; gap: 6px; }
.topbar .logo { font-size: 22px; }
.side .brand { padding: 0 6px; }
.side .brand .logo { padding: 0; }
.splash-mark { width: 150px; height: 150px; margin-bottom: -6px; opacity: 0; transform: scale(.5) rotate(-10deg); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.splash .logo { font-size: 44px; }
.splash .logo span { animation-delay: .5s; }
