/* 福來偉 夥伴專區豪華版 fx-partner（2026-11-01 本機預覽中，Grok Bot，August 核准做預覽；尚未上線）
   疊在 fx-member.css 之上：深色底、金色細線；手機優先 390 → 768 → 1280。
   規則：字級最低 16px；<1024 只有一條底部導覽（.fp-tabbar），≥1024 改頂部 .fp-deskbar；
   「即將開放」沿用 .fm-soon（暗色、不可點、不可聚焦）；減少動態全部關閉。 */

/* ---------- 基礎 ---------- */
body.fp-body { background: var(--fm-bg, var(--fm-bg)); color: var(--fm-text, var(--fm-text)); font-family: "Noto Sans TC", system-ui, sans-serif; font-size: 17px; line-height: 1.7; overflow-x: hidden; }
.fp-body .fx-tabbar { display: none !important; }          /* 保險：夥伴區絕不出現第二條底部列 */
.fp-main { max-width: 34rem; padding-top: 5.75rem; }
.fp-main > * + * { margin-top: 1rem; }
.fp-main section > * + *, .fp-card > * + * { margin-top: .75rem; }
@media (min-width: 768px) { .fp-main { max-width: 46rem; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .fp-main { max-width: 72rem; padding-top: 6.5rem; } }
.fp-main *, .fp-main *::before, .fp-main *::after { min-width: 0; }
/* 字級下限 16px：蓋掉 Tailwind text-sm / fontscale 的較小設定（只限夥伴區主內容） */
.fp-main .text-sm, .fp-main .text-xs, .fp-main small, .fp-main .fm-soon-tag, .fp-main .fm-perks span { font-size: 16px !important; }
.fp-main .fm-qr-fail { font-size: 16px; }
.fp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 頁首 ---------- */
.fp-back { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--fm-gold); font-size: 16px; text-decoration: none; }
.fp-back svg { width: 20px; height: 20px; }
.fp-head { margin-bottom: .25rem; }
.fp-eyebrow { font-size: 16px; letter-spacing: .32em; color: rgba(var(--fx-gold),.75); margin: 0 0 .15rem; }
.fp-h1 { font-family: "Noto Serif TC", serif; font-size: 1.75rem; line-height: 1.35; margin: 0; }
@media (min-width: 768px) { .fp-h1 { font-size: 2.1rem; } }
.fp-who { margin: .5rem 0 0; }
.fp-who .fm-chip { max-width: 100%; }
.fp-intro { margin: .5rem 0 0; }
.fp-flash:empty { display: none; }
.fp-flash > * { border-radius: 14px; }

/* ---------- 卡片與標題 ---------- */
.fp-card { padding: 1.15rem; }
@media (min-width: 768px) { .fp-card { padding: 1.4rem 1.5rem; } }
.fp-h2, .fm-card h2.fp-h2 { display: flex; align-items: center; gap: .45rem; font-family: "Noto Serif TC", serif; font-size: 1.2rem; color: var(--fm-gold); font-weight: 700; letter-spacing: 2px; margin: 0; }
.fp-h2 svg { width: 22px; height: 22px; flex: 0 0 auto; }
.fp-h3 { font-size: 1.15rem; color: var(--fm-gold); font-weight: 700; letter-spacing: 1px; line-height: 1.5; margin: 0; }
.fp-sec { font-family: "Noto Serif TC", serif; font-size: 1.25rem; color: var(--fm-gold); letter-spacing: 3px; margin: 1.6rem 0 .75rem; display: flex; align-items: center; gap: .6rem; }
.fp-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--fx-gold),.45), transparent); }
.fp-sub-h { font-size: 17px; color: var(--fm-gold); letter-spacing: 2px; margin: 1.2rem 0 .6rem; }
.fp-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.fp-card-top .fp-sec { margin: 0; flex: 1; }
.fp-stack > * + * { margin-top: 1rem; }
.fp-lead { margin: 0; }
.fp-strong { color: var(--fm-gold); font-weight: 700; }
.fp-a { color: var(--fm-gold); text-decoration: underline; text-underline-offset: 3px; }
.fp-break { overflow-wrap: anywhere; word-break: break-all; }
.fp-rule { border-top: 1px solid rgba(var(--fx-gold),.15); padding-top: .75rem; }
.fp-date { font-size: 16px; color: rgba(var(--fx-gold),.75); letter-spacing: 1px; margin: 0; }
.fp-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid rgba(var(--fx-gold),.35); background: radial-gradient(circle at 30% 20%, rgba(246,227,161,.18), rgba(var(--fx-gold),.04)); color: var(--fm-gold); }
.fp-ic svg { width: 24px; height: 24px; }
.fp-chev { margin-left: auto; color: rgba(var(--fx-gold),.6); display: inline-flex; }
.fp-chev svg { width: 20px; height: 20px; }

/* ---------- 按鈕 ---------- */
.fp-body .fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: auto; min-height: 50px; line-height: 1.35;
  padding: .6rem 1.2rem; letter-spacing: 1px; font-size: 17px; white-space: normal; text-wrap: balance; cursor: pointer; }
.fp-body .fm-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.fp-body .fm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fp-btn-block { display: flex !important; width: 100% !important; }
.fp-btn-sm { min-height: 44px !important; padding: .35rem 1rem !important; font-size: 16px !important; }
.fp-actions { display: grid; gap: .6rem; margin-top: .9rem; }
.fp-actions > .fm-btn { width: 100%; }
.fp-actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.fp-actions-2 .fm-btn { width: 100%; padding-left: .6rem; padding-right: .6rem; }
.fp-small-link { justify-self: center; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- 頂部 deskbar（≥1024） ---------- */
.fp-deskbar { display: none; }
@media (min-width: 1024px) {
  .fp-deskbar { display: flex; gap: .4rem; align-items: center; padding: .4rem; margin-bottom: 1.25rem; border-radius: 999px;
    border: 1px solid rgba(var(--fx-gold),.25); background: rgba(16,14,10,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .fp-deskbar a { display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: 0 1.15rem; border-radius: 999px;
    color: rgba(var(--fm-text-rgb),.78); font-size: 17px; letter-spacing: 2px; text-decoration: none; transition: background .25s, color .25s; }
  .fp-deskbar a:hover { color: var(--fm-gold); background: rgba(var(--fx-gold),.08); }
  .fp-deskbar a.on { color: var(--fm-dark); background: linear-gradient(90deg, var(--fm-gold), var(--fm-gold)); font-weight: 700; }
  .fp-deskbar svg { width: 20px; height: 20px; }
  .fp-deskbar .fp-deskbar-out { margin-left: auto; }
}

/* ---------- 底部導覽（<1024，唯一一條） ---------- */
.fp-tabbar { display: none; }
@media (max-width: 1023.98px) {
  .fp-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(16,14,10,.94), rgba(7,7,9,.97)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgba(var(--fx-gold),.28); box-shadow: 0 -10px 30px rgba(0,0,0,.45); font-family: "Noto Sans TC", sans-serif;
    transition: transform .3s ease, opacity .3s ease; }
  .fp-tabbar::before { content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(246,227,161,.85), transparent); opacity: .55; }
  .fp-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: 14px;
    color: rgba(var(--fm-text-rgb),.72); text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
  .fp-tab-ic { position: relative; display: block; width: 24px; height: 24px; }
  .fp-tab-ic svg { width: 24px; height: 24px; }
  .fp-tab.on { color: var(--fm-gold); background: radial-gradient(70% 90% at 50% 0%, rgba(var(--fx-gold),.2), transparent 70%); }
  .fp-tab.on::after { content: ""; position: absolute; top: -6px; left: 28%; right: 28%; height: 2px; border-radius: 2px; background: var(--fm-gold); box-shadow: 0 0 10px rgba(var(--fx-gold),.85); }
  .fp-tab.on .fp-tab-ic { filter: drop-shadow(0 0 6px rgba(var(--fx-gold),.6)); }
  .fp-tab-badge { position: absolute; top: -6px; right: -12px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--fm-gold); color: var(--fm-dark); font-size: 16px; font-weight: 700; line-height: 22px; text-align: center; }
  html body nav.fp-tabbar a.fp-tab, html body nav.fp-tabbar a.fp-tab .fp-tab-tx { font-size: 16px !important; letter-spacing: 1px; line-height: 1.2; }
  body.fp-body:has(.fp-tabbar) { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  body.fp-body:has(.fp-tabbar) .fx-fab, body.fp-body:has(.fp-tabbar) .fx-fab-new { bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
  .fp-tabbar.fp-tab-hide { transform: translateY(110%); opacity: 0; pointer-events: none; }
}
.fp-tabbar a:focus-visible, .fp-deskbar a:focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 2px; }
@media print { .fp-tabbar, .fp-deskbar { display: none !important; } }

/* ---------- 首頁：置頂（身分卡＋待處理） ---------- */
.fp-pinned { display: grid; gap: 1rem; }
@media (min-width: 768px) { .fp-pinned { grid-template-columns: 1.05fr 1fr; align-items: stretch; } }
.fp-idwrap { margin: 0; }
.fp-idcard { max-width: 30rem; width: 100%; }
.fp-mc-copy { position: relative; z-index: 2; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(42,29,5,.45);
  background: rgba(255,248,225,.55); color: var(--fm-dark); font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.fp-todo-list { list-style: none; padding: 0; margin: 0; }
.fp-todo-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid rgba(var(--fx-gold),.12); }
.fp-todo-list li:first-child { border-top: none; }
.fp-todo-list li > span { flex: 1; }
.fp-todo-list .fm-btn { flex: 0 0 auto; }
.fp-testnote { border-top: 1px dashed rgba(var(--fx-gold),.25); padding-top: .6rem; }

/* ---------- 首頁：功能模組 ---------- */
.fp-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .fp-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fp-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fp-mod { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem; min-height: 9.5rem; text-decoration: none; color: inherit;
  transition: border-color .3s, transform .3s, box-shadow .3s, opacity .7s; }
a.fp-mod:hover { border-color: rgba(var(--fx-gold),.6); box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 0 1px rgba(var(--fx-gold),.15); }
.fp-mod-t { font-size: 18px; color: var(--fm-gold); letter-spacing: 2px; margin-top: .25rem; }
.fp-mod-d { font-size: 16px; color: var(--fm-dim); line-height: 1.5; }
.fp-mod-s { margin-top: auto; font-size: 16px; color: var(--fm-gold); border-top: 1px solid rgba(var(--fx-gold),.15); padding-top: .4rem; width: 100%; }
.fp-mod .fm-soon-tag { margin: auto 0 0; }

/* ---------- 數據、連結、QR ---------- */
.fp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.fp-stats > div { border: 1px solid rgba(var(--fx-gold),.2); border-radius: 14px; padding: .6rem .3rem; }
.fp-stats small { display: block; color: var(--fm-dim); }
.fp-stats b { font-size: 1.5rem; color: var(--fm-gold); }
.fp-codeline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid rgba(var(--fx-gold),.2); background: rgba(0,0,0,.25); }
.fp-codeline > :first-child { flex: 1 1 12rem; font-size: 16px; }
.fp-codeline .fm-btn { flex: 0 0 auto; }
.fp-qrgrid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .fp-qrgrid { grid-template-columns: 1fr 1fr; } }
.fp-qrbox { display: flex; gap: .9rem; align-items: center; padding: .8rem; border-radius: 16px; border: 1px solid rgba(var(--fx-gold),.22); background: rgba(0,0,0,.2); }
.fp-qrbox-tx { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.fp-qrbox-tx b { color: var(--fm-gold); font-size: 17px; }
.fp-qrbox-tx small { color: var(--fm-dim); line-height: 1.5; }
.fp-guide { display: block; width: 100%; height: auto; border-radius: 14px; margin-top: .75rem; }

/* ---------- 展開區 ---------- */
.fp-details { border-top: 1px solid rgba(var(--fx-gold),.15); padding-top: .25rem; }
.fp-details > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--fm-gold); font-size: 16px; }
.fp-details > summary::-webkit-details-marker { display: none; }
.fp-details > summary::after { content: "＋"; color: rgba(var(--fx-gold),.8); font-size: 18px; }
.fp-details[open] > summary::after { content: "－"; }
.fp-details > summary:focus-visible, .fp-opener > summary:focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 2px; border-radius: 8px; }
.fp-prose { font-size: 17px; color: rgba(var(--fm-text-rgb),.88); line-height: 1.85; }
.fp-prose > * + * { margin-top: .7rem; }
.fp-prose a { color: var(--fm-gold); text-decoration: underline; overflow-wrap: anywhere; }
.fp-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.fp-body-text { white-space: pre-wrap; font-size: 16px; color: rgba(var(--fm-text-rgb),.85); line-height: 1.8; max-height: 26rem; overflow: auto; padding: .8rem; border-radius: 12px; background: rgba(0,0,0,.25); }
.fp-pills { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- 列表、狀態 ---------- */
.fp-menu { padding: .35rem .5rem; }
.fp-row { display: flex; align-items: center; gap: .8rem; min-height: 68px; padding: .55rem .5rem; border-top: 1px solid rgba(var(--fx-gold),.12); color: inherit; text-decoration: none; border-radius: 12px; }
.fp-menu > .fp-row:first-child { border-top: none; }
a.fp-row:hover { background: rgba(var(--fx-gold),.06); }
.fp-row-tx { display: flex; flex-direction: column; flex: 1; }
.fp-row-tx b { font-size: 17px; color: var(--fm-gold); letter-spacing: 1px; }
.fp-row-tx small { color: var(--fm-dim); line-height: 1.45; }
.fp-dot { flex: 0 0 auto; font-size: 16px; font-weight: 700; color: var(--fm-dark); background: var(--fm-gold); border-radius: 999px; padding: 1px 10px; }
.fp-linkcard { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.fp-linkcard-tx { display: flex; flex-direction: column; flex: 1; }
.fp-linkcard-tx b { color: var(--fm-gold); font-size: 17px; }
.fp-linkcard-tx small { color: var(--fm-dim); }
.fp-dl { margin: 0; }
.fp-dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; padding: .6rem 0; border-top: 1px solid rgba(var(--fx-gold),.12); }
.fp-dl > div:first-child { border-top: none; }
.fp-dl dt { color: var(--fm-dim); font-size: 16px; }
.fp-dl dd { margin: 0; color: var(--fm-text); overflow-wrap: anywhere; }
.fp-kvlist { list-style: none; padding: 0; margin: 0; }
.fp-kvlist li { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid rgba(var(--fx-gold),.12); }
.fp-kvlist li:first-child { border-top: none; }
.fp-state { display: flex; gap: .9rem; align-items: flex-start; }
.fp-state-main { font-size: 18px; color: var(--fm-gold); font-weight: 700; margin: 0; }
.fp-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.2rem .5rem; }
.fp-empty .fp-ic { width: 60px; height: 60px; border-radius: 50%; }
.fp-orders { list-style: none; padding: 0; margin: 0; }
.fp-order { flex-direction: column; align-items: stretch; }
.fp-order-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fp-order-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; font-size: 16px; color: var(--fm-dim); }
.fp-contact { list-style: none; padding: 0; margin: 0; }
.fp-contact li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem 0; border-top: 1px solid rgba(var(--fx-gold),.12); }
.fp-contact li:first-child { border-top: none; }
.fp-contact li > span:first-child { color: var(--fm-dim); }
.fp-contact b, .fp-contact a { color: var(--fm-gold); overflow-wrap: anywhere; }
.fp-alert { border-radius: 14px; padding: .8rem 1rem; font-size: 16px; line-height: 1.65; border: 1px solid; margin: 0; }
.fp-alert ul { margin: .4rem 0 0; padding-left: 1.2rem; list-style: disc; }
.fp-alert.ok { border-color: rgba(120,200,150,.45); background: rgba(40,90,60,.25); color: var(--fm-ok); }
.fp-alert.err { border-color: rgba(var(--fm-err-rgb),.5); background: rgba(110,30,25,.3); color: var(--fm-err); }
.fp-alert.warn { border-color: rgba(var(--fx-gold),.45); background: rgba(120,90,20,.22); color: var(--fm-gold); }
.fp-alert[hidden] { display: none; }
.fp-tips { list-style: disc; padding: .8rem 1rem .8rem 2.2rem; border-radius: 14px; border: 1px solid rgba(var(--fx-gold),.2); background: rgba(0,0,0,.25); color: var(--fm-dim); }
.fp-ann .fp-h3 { margin-top: .2rem; }

/* ---------- 表單 ---------- */
.fp-form > * + * { margin-top: 1rem; }
.fp-form-inline { margin-top: .9rem; }
.fp-form-inline > * + * { margin-top: .6rem; }
.fp-field { display: flex; flex-direction: column; gap: .35rem; }
.fp-field > label, .fp-fieldset legend { font-size: 17px; color: var(--fm-text); font-weight: 600; letter-spacing: 1px; }
.fp-fieldset { border: 1px solid rgba(var(--fx-gold),.22); border-radius: 16px; padding: .4rem 1rem 1rem; }
.fp-fieldset legend { padding: 0 .4rem; }
.fp-fieldset > * + * { margin-top: .8rem; }
.fp-input { width: 100%; min-height: 52px; padding: .6rem .9rem; border-radius: 14px; font-size: 18px; color: var(--fm-gold);
  background: rgba(0,0,0,.4); border: 1px solid rgba(var(--fx-gold),.35); outline: none; transition: border-color .2s, box-shadow .2s; }
.fp-input::placeholder { color: rgba(var(--fm-text-rgb),.45); }
.fp-input:focus { border-color: var(--fm-gold); box-shadow: 0 0 0 3px rgba(var(--fx-gold),.22); }
.fp-input[aria-invalid="true"] { border-color: rgba(var(--fm-err-rgb),.85); box-shadow: 0 0 0 3px rgba(var(--fm-err-rgb),.18); }
select.fp-input { appearance: auto; }
.fp-help { font-size: 16px; color: var(--fm-dim); margin: 0; }
.fp-err { font-size: 16px; color: var(--fm-err); margin: 0; font-weight: 600; }
.fp-check { display: flex; align-items: flex-start; gap: .7rem; min-height: 44px; font-size: 17px; cursor: pointer; }
.fp-check input { width: 24px; height: 24px; margin-top: .2rem; accent-color: var(--fm-gold); flex: 0 0 auto; }
.fp-check small { display: block; color: var(--fm-dim); }
.fp-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 16px; line-height: 1.75; color: rgba(var(--fm-text-rgb),.92);
  padding: .9rem 1rem; border-radius: 14px; background: rgba(0,0,0,.32); border: 1px solid rgba(var(--fx-gold),.16); margin: 0; }
.fp-pre-sm { padding: .7rem .85rem; }
.fp-live .fp-pre { border-style: dashed; }
.fp-login { max-width: 30rem; }

/* ---------- 素材專區 ---------- */
.fp-seg { position: sticky; top: 4.6rem; z-index: 30; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .45rem;
  margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem;
  background: linear-gradient(180deg, rgba(7,7,10,.95), rgba(7,7,10,.82)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--fx-gold),.15); scroll-snap-type: x proximity; }
.fp-seg::-webkit-scrollbar { display: none; }
.fp-seg a { flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgba(var(--fx-gold),.35); color: var(--fm-text); font-size: 16px; letter-spacing: 1px; text-decoration: none; white-space: nowrap; }
.fp-seg a.on { background: linear-gradient(90deg, var(--fm-gold), var(--fm-gold)); color: var(--fm-dark); border-color: transparent; font-weight: 700; }
@media (min-width: 1024px) { .fp-seg { position: static; margin: 0; padding: 0; background: none; border: none; flex-wrap: wrap; } }
.fp-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: 0; margin: 0; font-size: 16px; color: var(--fm-dim); }
.fp-flow li { padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(var(--fx-gold),.3); }
.fp-flow li + li::before { content: "→"; margin: 0 .35rem 0 -.1rem; color: rgba(var(--fx-gold),.7); position: relative; left: -.55rem; }
.fp-opener { border: 1px solid rgba(var(--fx-gold),.25); border-radius: 16px; background: rgba(0,0,0,.22); }
.fp-opener > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; min-height: 56px; padding: .55rem .9rem; }
.fp-opener > summary::-webkit-details-marker { display: none; }
.fp-opener > summary b { flex: 1 1 10rem; color: var(--fm-gold); font-weight: 600; }
.fp-opener-chg { font-size: 16px; color: var(--fm-gold); border: 1px solid rgba(var(--fx-gold),.45); border-radius: 999px; padding: 2px 12px; }
.fp-opener[open] .fp-opener-chg { visibility: hidden; }
.fp-opener fieldset { border: 0; margin: 0; padding: 0 .6rem .6rem; }
div.fp-opener { padding: .8rem .9rem; }
.fp-radio { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .3rem .4rem; border-radius: 12px; cursor: pointer; font-size: 17px; }
.fp-radio + .fp-radio { border-top: 1px solid rgba(var(--fx-gold),.1); }
.fp-radio input { width: 22px; height: 22px; accent-color: var(--fm-gold); flex: 0 0 auto; }
.fp-radio:has(input:checked) { background: rgba(var(--fx-gold),.1); color: var(--fm-gold); }
.fp-pinfo > * + * { margin-top: .5rem; }
.fp-mats { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .fp-mats { grid-template-columns: 1fr 1fr; align-items: start; } }
.fp-mat { padding: 0; overflow: hidden; }
.fp-mat-img { display: block; width: 100%; height: auto; max-height: 16rem; object-fit: cover; background: var(--fm-bg2); border-bottom: 1px solid rgba(var(--fx-gold),.15); }
.fp-mat-body { padding: 1.1rem; }
.fp-mat-body > * + * { margin-top: .7rem; }
.fp-print-prev { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; padding: 1rem; background: var(--fm-bg2); border-bottom: 1px solid rgba(var(--fx-gold),.15); }
.fp-print-prev img { display: block; max-width: 100%; width: auto; height: auto; max-height: 20rem; border-radius: 8px; background: #fff; }
.fp-print + .fp-print { margin-top: 1.5rem; }
.fp-langsw { display: inline-flex; gap: .3rem; padding: .25rem; border-radius: 999px; border: 1px solid rgba(var(--fx-gold),.3); }
.fp-langsw button { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; font-size: 16px; color: var(--fm-text); background: transparent; border: 0; cursor: pointer; }
.fp-langsw button.on { background: linear-gradient(90deg, var(--fm-gold), var(--fm-gold)); color: var(--fm-dark); font-weight: 700; }
.fp-guides { display: grid; gap: .8rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .fp-guides { grid-template-columns: 1fr 1fr; align-items: start; } }
.fp-guidecard { display: block; padding: .6rem; text-decoration: none; }
.fp-guidecard img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fp-guidecard > span { display: block; text-align: center; padding-top: .4rem; font-size: 16px; color: var(--fm-gold); }
/* 小手冊沿用 content.php 的舊 class，在此改成豪華版外觀 */
.fp-handbook .partner-card { position: relative; border-radius: 20px; padding: 1.15rem; background: var(--fm-card); border: 1px solid var(--fm-line); }
.fp-handbook .partner-subcard { border-radius: 14px; border: 1px solid rgba(var(--fx-gold),.18); background: rgba(0,0,0,.2); }
.fp-handbook .partner-prose { line-height: 1.85; }
.fp-handbook summary { min-height: 44px; }
.fp-handbook .text-gold-200 { color: var(--fm-gold); }

/* ---------- 複製提示 ---------- */
.fp-toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 9100; transform: translate(-50%, 12px);
  max-width: calc(100vw - 2rem); padding: .7rem 1.2rem; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--fm-dark);
  background: linear-gradient(90deg, var(--fm-gold), var(--fm-gold)); box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; text-align: center; }
.fp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fp-toast.err { background: var(--fm-err); }
@media (min-width: 1024px) { .fp-toast { bottom: 2rem; } }

/* ---------- 鍵盤焦點 ---------- */
.fp-main a:focus-visible, .fp-main button:focus-visible, .fp-main input:focus-visible, .fp-main select:focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 3px; }

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  .fp-tabbar, .fp-toast, .fp-mod, .fp-input, .fp-deskbar a { transition: none !important; }
  .fp-toast { transform: translate(-50%, 0) !important; }
  html { scroll-behavior: auto !important; }
}
.fp-field em, .fp-fieldset legend em { font-style: normal; font-size: 16px; color: var(--fm-gold); font-weight: 600; margin-left: .3rem; }

/* fontscale.css 對所有 nav a 強制 15px !important；夥伴區自己的導覽一律 16px（最小字級規範） */
html body.fp-body nav[class*="fp-"] a { font-size: 16px !important; }
/* fx-member.js 會把描線 svg 附加到每張 .fm-card 最後；不可吃到上方的間距規則，否則外框會往下偏一條 */
.fp-body .fm-card > .fm-card-edge { margin: 0 !important; }
