/* 從流程頁 A 版（瑜仔 10/18 選）搬過來的樣式；魚有魚官網色、昭源環方、只做淺色 */
@font-face { font-family: "GoRound"; src: url("/fonts/goround-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GoRound"; src: url("/fonts/goround-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --navy: #033652; --yellow: #FDBF2B; --orange: #FC7E22; --paper: #FEFEFA;
  --desk: #F2EEE4; --sub: #45697C; --line: #DDD6C8; --white: #FFFFFF;
  --yellow-tint: #FFF7E3; --orange-tint: #FFF1E6; --press: #01212F;
  --lift: 0 6px 0 rgba(3,54,82,.10);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--desk); color: var(--navy); font-family: "GoRound", "PingFang TC", "Noto Sans TC", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; text-align: inherit; }
a { color: inherit; }

html, body { height: 100%; }
.page { height: 100vh; height: 100dvh; }

/* ── App 本體 ── */
.app { height: 100%; position: relative; container-type: inline-size; background: var(--desk); }
.frame { height: 100%; display: flex; flex-direction: column; }
.ahead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 16px 10px; flex: none; }
.brandline { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.brandline b { color: var(--navy); }
.plan { background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 1px 10px; font-weight: 800; font-size: 12px; white-space: nowrap; }
.atitle { font-size: 21px; font-weight: 800; margin-top: 2px; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.atitle.sm { font-size: 18px; }
.asub { font-size: 13px; color: var(--sub); margin-top: 2px; }
.back { font-size: 14px; font-weight: 800; color: var(--navy); padding: 4px 0; min-height: 32px; }
.scroll { flex: 1; overflow-y: auto; padding: 14px 14px 28px; }
.scroll.nopad { padding: 0 0 20px; }
.abar { flex: none; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.abar .grow { flex: 1; }
.abar .count { flex: 1; font-size: 14px; color: var(--sub); }
.abar .count b { color: var(--navy); font-size: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; background: var(--navy); color: var(--paper); border-radius: 12px; padding: 8px 16px; font-weight: 800; box-shadow: 0 4px 0 var(--press); transition: transform .08s, box-shadow .08s; text-align: center; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--press); }
.btn[disabled] { background: var(--line); color: var(--sub); box-shadow: none; cursor: default; transform: none; }
.btn.ghost { background: var(--paper); color: var(--navy); border: 2px solid var(--navy); box-shadow: 0 4px 0 var(--navy); }
.btn.ghost[disabled] { border-color: var(--line); box-shadow: none; color: var(--sub); background: var(--desk); }
.btn.y { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 var(--press); }
.btn.sm { min-height: 38px; padding: 4px 12px; font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--press); flex: none; }
.btn.sm.ghost { box-shadow: 0 3px 0 var(--navy); }
.btn:focus-visible, .vcard:focus-visible, .drop:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.demo { font-size: 13px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.demo-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--lift); margin-bottom: 16px; }
.num { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--paper); display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; white-space: nowrap; color: var(--navy); flex: none; }
.p0, .p1 { background: var(--yellow); }
.p2 { background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy); }
.p3 { background: var(--orange); }
.p3.seen { background: var(--desk); box-shadow: inset 0 0 0 2px var(--line); }
.cnt { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; background: var(--white); white-space: nowrap; }
.cnt b { font-size: 14px; }
.cnt.off { color: var(--sub); background: var(--desk); border-color: transparent; }
.vc-title { font-weight: 800; font-size: 16px; line-height: 1.35; }
.vc-kind { font-size: 12px; color: var(--sub); }

/* ── A 片卡 ── */
.a-say { font-size: 14px; color: var(--sub); margin: 0 2px 12px; }
.a-say b { color: var(--navy); }
.vcard { display: block; width: 100%; text-align: left; }
.vcard.you { box-shadow: inset 6px 0 0 var(--orange), var(--lift); }
.vc-top { display: flex; gap: 10px; align-items: flex-start; }
.vc-name { flex: 1; min-width: 0; }
.ms { display: flex; gap: 4px; margin: 12px 0 10px; list-style: none; }
.ms li { flex: 1; text-align: center; font-size: 11px; color: var(--sub); }
.ms li::before { content: ""; display: block; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 3px; }
.ms li.done::before { background: var(--navy); }
.ms li.now::before { background: var(--orange); }
.ms li.now { color: var(--navy); font-weight: 800; }
.vc-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vc-foot .go { margin-left: auto; font-weight: 800; font-size: 14px; }

/* ── 一支影片的頁面 ── */
.stepper { display: flex; list-style: none; margin: 2px 0 16px; }
.stepper li { flex: 1; text-align: center; font-size: 12px; color: var(--sub); position: relative; }
.stepper li i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); font-style: normal; font-weight: 800; font-size: 14px; position: relative; z-index: 1; }
.stepper li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px); height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper li.done i { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.stepper li.done::after { background: var(--navy); }
.stepper li.now i { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.stepper li.now { color: var(--navy); font-weight: 800; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sc-head b { font-size: 17px; }
.sc-head .sub { font-size: 12px; color: var(--sub); }
.sec { margin-top: 10px; }
.sec-h { display: inline-block; font-size: 12px; font-weight: 800; background: var(--desk); border-radius: 6px; padding: 1px 8px; margin-bottom: 4px; }
.ln { font-size: 16px; padding: 3px 6px; border-radius: 6px; margin: 2px 0; }
.ln.must span { background: linear-gradient(transparent 58%, var(--yellow) 58%); }
.ln.chg { background: var(--orange-tint); box-shadow: inset 4px 0 0 var(--orange); padding-left: 10px; }
.ln-ai { font-size: 12px; color: var(--sub); background: var(--desk); border-radius: 8px; padding: 4px 8px; margin: 2px 0 4px 10px; }
.ln.chg::after { content: "改過"; font-size: 11px; font-weight: 800; background: var(--orange); color: var(--navy); border-radius: 999px; padding: 0 7px; margin-left: 6px; vertical-align: 2px; }
.sc-note { font-size: 12px; color: var(--sub); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.sc-note .hl { background: linear-gradient(transparent 58%, var(--yellow) 58%); color: var(--navy); }
.sc-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sc-acthint { font-size: 12px; color: var(--sub); margin-top: 6px; }
.ln-edit { display: block; width: 100%; border: 2px solid var(--navy); border-radius: 8px; padding: 4px 8px; font-size: 16px; line-height: 1.5; resize: vertical; background: var(--white); margin: 3px 0; }
.ob-item { padding: 6px 0 10px; border-bottom: 1px dashed var(--line); }
.ob-item:last-child { border-bottom: 0; }
.ob .ob-check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; margin: 8px 0 0; min-height: 32px; }
.ob .ob-check input[type="checkbox"] { width: 22px; height: 22px; margin: 0; padding: 0; flex: none; accent-color: var(--navy); }
.drop.sm { padding: 10px 12px; margin-top: 6px; }
.drop.sm b { font-size: 15px; }
.ob-sheet { margin-top: 6px; font-size: 14px; background: var(--desk); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.notice { background: var(--yellow-tint); border: 2px solid var(--yellow); border-radius: 14px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.notice b { display: block; font-size: 15px; margin-bottom: 2px; }
.gift { background: var(--paper); border: 2px dashed var(--orange); border-radius: 20px; padding: 14px 16px; margin-bottom: 16px; }
.gift .gt { font-weight: 800; font-size: 16px; }
.gift p { font-size: 14px; color: var(--sub); margin: 2px 0 10px; }
.case-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 14px; }
.modal video { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #000; border-radius: 12px; margin: 10px 0; }
.howto-ph { margin: 10px 0; border: 2px dashed var(--line); border-radius: 12px; padding: 28px 12px; text-align: center; color: var(--sub); font-size: 14px; background: var(--desk); }
.modal .msub { font-size: 14px; color: var(--sub); margin-bottom: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 4px; }
.ftile { display: block; width: 100%; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); text-align: left; }
.ftile img { display: block; width: 100%; aspect-ratio: 600 / 180; object-fit: cover; }
.ftile span { display: block; padding: 5px 8px 7px; font-size: 12px; color: var(--sub); line-height: 1.35; }
.ftile b { display: block; font-size: 14px; color: var(--navy); }
.ftile.on { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.ftile.on b::after { content: "  ✓ 選這款"; font-size: 11px; background: var(--orange); color: var(--navy); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.fcur { display: flex; gap: 12px; align-items: center; }
.fcur img { width: 46%; max-width: 200px; border-radius: 10px; display: block; }
.fcur .fn { font-weight: 800; font-size: 16px; }
.fcur .fs { font-size: 12px; color: var(--sub); margin: 2px 0 8px; }
.fhome { display: flex; gap: 10px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; margin: 0 2px 14px; }
.fhome img { width: 120px; border-radius: 8px; display: block; }
.fhome .t { flex: 1; font-size: 13px; color: var(--sub); line-height: 1.4; }
.fhome .t b { display: block; color: var(--navy); font-size: 15px; }
.cfont { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.cfont img { width: 110px; border-radius: 8px; display: block; }
.cfont .t { flex: 1; font-size: 13px; color: var(--sub); line-height: 1.4; }
.cfont .t b { display: block; color: var(--navy); font-size: 15px; }
.cfont.changed { background: var(--orange-tint); box-shadow: inset 5px 0 0 var(--orange); }
.busy { position: relative; }
.busy::after { content: "AI 改腳本中…"; position: absolute; inset: 0; border-radius: 20px; background: rgba(254,254,250,.88); display: grid; place-items: center; font-weight: 800; }
.sform label { display: block; font-weight: 800; margin-bottom: 6px; }
.sform textarea, .ob input[type="text"] { width: 100%; border: 2px solid var(--navy); border-radius: 10px; padding: 8px 10px; font-size: 16px; resize: vertical; background: var(--white); }
.sform .hint { font-size: 13px; color: var(--sub); margin: 6px 0 10px; }
.row2 { display: flex; gap: 10px; }
.row2 .btn { flex: 1; }
details.card > summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "展開 ▾"; font-size: 12px; color: var(--sub); font-weight: 400; white-space: nowrap; }
details.card[open] > summary::after { content: "收起 ▴"; }
.tips { margin: 8px 0 2px; padding-left: 1.2em; font-size: 15px; }
.tips li { margin: 5px 0; }
.tips li b { background: linear-gradient(transparent 58%, var(--yellow) 58%); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; border: 2px dashed var(--navy); border-radius: 14px; padding: 18px 12px; background: var(--yellow-tint); text-align: center; }
.drop b { font-size: 17px; }
.drop span { font-size: 13px; color: var(--sub); }
.files { list-style: none; margin-top: 10px; }
.files li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files .fn { flex: 1; min-width: 0; }
.files .bar { height: 6px; background: var(--desk); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.files .bar i { display: block; height: 100%; background: var(--yellow); }
.files .ok { font-size: 12px; color: var(--sub); }
.files .rm { width: 32px; height: 32px; border-radius: 8px; color: var(--sub); font-size: 16px; }
.total { margin-top: 10px; font-size: 14px; background: var(--desk); border-radius: 10px; padding: 8px 10px; }
.total b { font-size: 16px; }
.wait { text-align: center; padding: 22px 16px; }
.wait .big { font-size: 22px; font-weight: 800; margin-top: 12px; }
.wait .sub { color: var(--sub); font-size: 14px; margin-top: 4px; }
.wsteps { list-style: none; text-align: left; margin: 16px auto 0; max-width: 280px; font-size: 14px; }
.wsteps li { padding: 6px 0 6px 30px; position: relative; color: var(--sub); }
.wsteps li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 16px; height: 16px; border-radius: 50%; border: 2px dashed var(--line); }
.wsteps li.done { color: var(--navy); }
.wsteps li.done::before { background: var(--navy); border: 2px solid var(--navy); }
.wsteps li.now { color: var(--navy); font-weight: 800; }
.wsteps li.now::before { background: var(--orange); border: 2px solid var(--orange); }
.spinner { width: 54px; height: 54px; margin: 0 auto; border: 6px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { display: flex; gap: 14px; align-items: center; }
.result video { width: 150px; height: 266px; object-fit: cover; background: #000; border-radius: 12px; flex: none; }
.result .big { font-size: 20px; font-weight: 800; }
.result .sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.capbox p { font-size: 14px; color: var(--sub); margin: 4px 0 12px; }

/* 改字頁（沿用 edit_page.html A 清單版） */
.badge { display: inline-block; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 800; }
.a-video { display: flex; gap: 12px; padding: 12px 16px; background: var(--desk); border-bottom: 1px solid var(--line); }
.a-video video { width: 112px; height: 199px; object-fit: cover; background: #000; border-radius: 12px; }
.a-video .side { font-size: 13px; color: var(--sub); display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.a-list { list-style: none; background: var(--paper); }
.a-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.a-item.now { background: var(--yellow-tint); }
.a-item.changed { background: var(--orange-tint); box-shadow: inset 5px 0 0 var(--orange); }
.a-time { font-size: 12px; color: var(--sub); background: var(--desk); border-radius: 6px; padding: 2px 6px; margin-top: 3px; white-space: nowrap; }
.a-text { flex: 1; font-size: 17px; cursor: text; }
.a-text .was { display: block; font-size: 12px; color: var(--sub); text-decoration: line-through; }
.edit-box { width: 100%; border: 2px solid var(--navy); border-radius: 10px; padding: 6px 8px; font-size: 17px; resize: none; background: var(--white); }
.edit-actions { display: flex; gap: 12px; margin-top: 6px; align-items: center; }
.small-btn { background: var(--navy); color: var(--paper); border-radius: 8px; padding: 3px 12px; font-size: 14px; font-weight: 800; }
.chip { font-size: 12px; background: var(--orange); color: var(--navy); border-radius: 999px; padding: 0 8px; font-weight: 800; margin-left: 6px; }
.link { color: var(--sub); text-decoration: underline; font-size: 13px; }

/* 付款完成、填主題 */
.ob .big { font-size: 22px; font-weight: 800; }
.ob ul { padding-left: 1.2em; margin-top: 8px; }
.ob li { margin: 6px 0; }
.ob label { display: block; font-size: 13px; font-weight: 800; margin: 10px 0 4px; }
.ob .sub { font-size: 13px; color: var(--sub); }

/* 確認視窗、提示 */
.modal { position: absolute; inset: 0; background: rgba(3,54,82,.45); display: none; align-items: flex-end; z-index: 10; }
.modal.open { display: flex; }
.modal .box { background: var(--paper); width: 100%; border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 85%; overflow-y: auto; }
.modal h3 { font-size: 19px; font-weight: 800; }
.warn { background: var(--orange-tint); box-shadow: inset 5px 0 0 var(--orange); border-radius: 8px; padding: 8px 12px; margin: 10px 0; font-size: 14px; }
.diff { list-style: none; margin: 8px 0 14px; }
.diff li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.diff .old { color: var(--sub); text-decoration: line-through; }
.diff .arrow { color: var(--sub); margin: 0 6px; }
.modal .center { text-align: center; padding: 10px 0; }
.progress { width: 80%; height: 10px; background: var(--desk); border-radius: 5px; overflow: hidden; margin: 14px auto 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .2s; }
.toast { position: absolute; left: 14px; right: 14px; bottom: 86px; background: var(--navy); color: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 20; }
.toast.on { opacity: 1; transform: none; }

/* 電腦寬度 */
@container (min-width: 720px) {
  .scroll { padding: 20px 28px 32px; }
  .ahead { padding: 14px 28px 12px; }
  .a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 18px; }
  .detail { max-width: 720px; margin: 0 auto; }
  .fgrid { grid-template-columns: repeat(4, 1fr); }
  .abar { justify-content: center; }
  .abar .grow { flex: 0 1 360px; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .toast, .progress i { transition: none; } }

/* ── 網站版加的（2026-10-21）── */
.pill.pw { background: var(--yellow-tint); box-shadow: inset 0 0 0 2px var(--yellow); }
.pill.pf { background: var(--navy); color: var(--paper); }
.writing { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--sub); margin: 12px 0 8px; }
.writing .spinner { width: 22px; height: 22px; border-width: 3px; margin: 0; flex: none; }
.err { background: var(--orange-tint); box-shadow: inset 5px 0 0 var(--orange); border-radius: 8px; padding: 8px 12px; margin: 10px 0; font-size: 14px; }
.inner { border: 2px dashed var(--sub); border-radius: 16px; padding: 12px 14px; margin-bottom: 16px; background: var(--paper); }
.inner .ih { font-size: 12px; font-weight: 800; color: var(--sub); margin-bottom: 6px; }
.inner video { display: block; width: 100%; max-height: 60vh; background: #000; border-radius: 12px; margin: 8px 0; }
.usage { font-size: 12px; color: var(--sub); text-align: center; margin-top: 12px; }
.ob textarea { width: 100%; border: 2px solid var(--navy); border-radius: 10px; padding: 8px 10px; font-size: 16px; resize: vertical; background: var(--white); }
.ob .opt { font-weight: 400; color: var(--sub); }
.loading { text-align: center; color: var(--sub); padding: 40px 0; }
.files .rm[disabled] { opacity: .3; }
.login-wrap { max-width: 380px; margin: 14vh auto 0; padding: 0 16px; }
.login-wrap input { width: 100%; border: 2px solid var(--navy); border-radius: 10px; padding: 10px 12px; font-size: 16px; background: var(--white); margin: 6px 0 14px; }
.login-wrap .btn { width: 100%; }
