/* 電子名片（公開的 /c/<網址>：ec-）與會員中心「品牌與名片」（bc-）。手機優先。 */

/* ---------- 公開的名片 ---------- */
.ec-body { margin: 0; background: #eef0f5; color: #101729; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
.ec { --ec-brand: #4f2ddb; --ec-soft: #e4dcfb; --ec-bg: #fff; --ec-text: #101729; --ec-muted: #5b6478; --ec-line: #e6e8ef; --ec-chip: #f3f4f8;
  max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--ec-bg); color: var(--ec-text); padding-bottom: 28px; box-shadow: 0 0 0 1px rgba(16, 23, 41, .04); }
.ec[data-theme="white"] { --ec-soft: #f3f4f8; }
.ec[data-theme="dark"] { --ec-bg: #12141c; --ec-text: #f4f5f9; --ec-muted: #a9b0c2; --ec-line: #262a37; --ec-chip: #1d2130; }
@media (min-width: 560px) { .ec { margin: 24px auto; min-height: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 12px 40px rgba(16, 23, 41, .12); } }
.ec-ownerbar { max-width: 480px; margin: 0 auto; padding: 8px 16px; font-size: 13px; background: #fff7e0; color: #6b4b00; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ec-ownerbar a { color: inherit; font-weight: 700; }
@media (min-width: 560px) { .ec-ownerbar { margin-top: 16px; border-radius: 12px; } .ec-ownerbar + .ec { margin-top: 10px; } }

.ec-cover { position: relative; aspect-ratio: 16 / 9; background: var(--ec-soft); overflow: hidden; }
.ec[data-theme="brand"] .ec-cover.is-empty { background: linear-gradient(135deg, var(--ec-brand), var(--ec-soft)); }
.ec[data-theme="dark"] .ec-cover.is-empty { background: linear-gradient(135deg, var(--ec-brand), #12141c 80%); }
.ec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-share-top { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(16, 23, 41, .55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }

.ec-id { text-align: center; padding: 0 20px; margin-top: -48px; position: relative; }
.ec-logo { width: 96px; height: 96px; margin: 0 auto; border-radius: 24px; background: #fff; border: 4px solid var(--ec-bg); box-shadow: 0 6px 18px rgba(16, 23, 41, .14); overflow: hidden; display: grid; place-items: center; }
.ec-logo img { width: 100%; height: 100%; object-fit: contain; }
.ec-logo span { font-size: 30px; font-weight: 900; color: var(--ec-brand); letter-spacing: 1px; }
.ec-name { margin: 12px 0 4px; font-size: 24px; line-height: 1.3; font-weight: 900; }
.ec-slogan { margin: 0; color: var(--ec-muted); font-size: 15px; line-height: 1.6; }
.ec-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ec-tags li { padding: 4px 10px; border-radius: 999px; background: var(--ec-chip); font-size: 13px; color: var(--ec-muted); }
.ec-open { display: inline-flex; align-items: center; gap: 6px; }
.ec-open i { width: 8px; height: 8px; border-radius: 50%; background: #a3a9b8; }
.ec-open.is-open { color: #0b7a3b !important; background: #e3f7ec !important; }
.ec-open.is-open i { background: #18b45b; box-shadow: 0 0 0 3px rgba(24, 180, 91, .2); }

.ec-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; padding: 18px 16px 4px; }
.ec-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; color: var(--ec-text); text-decoration: none; font-size: 12px; font-weight: 700; background: var(--ec-chip); }
.ec-act-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ec-brand); color: #fff; }
.ec[data-theme="white"] .ec-act-ico { background: #fff; color: var(--ec-brand); box-shadow: inset 0 0 0 2px var(--ec-brand); }

.ec-main-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 4px; }
.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 0; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; background: var(--ec-chip); color: var(--ec-text); }
.ec-btn.is-small { min-height: 40px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.ec-btn.is-brand { background: var(--ec-brand); color: #fff; }
.ec-btn.is-line { background: #06c755; color: #fff; }
.ec-btn.is-dark { background: #101729; color: #fff; }
.ec-btn.is-doucat { background: linear-gradient(135deg, #6a3df0, #f0468a); color: #fff; }
.ec-btn:focus-visible, .ec-act:focus-visible, .ec-share-top:focus-visible { outline: 3px solid var(--ec-brand); outline-offset: 2px; }

.ec-box { margin: 16px 16px 0; padding: 14px 16px; border-radius: 16px; background: var(--ec-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ec[data-theme="dark"] .ec-box { background: var(--ec-chip); }
.ec-book b { display: block; font-size: 16px; }
.ec-book small { color: var(--ec-muted); font-size: 13px; }

.ec-sec { padding: 22px 16px 0; }
.ec-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ec-sec-head h2 { margin: 0; font-size: 18px; font-weight: 900; }
.ec-sec-head small { color: var(--ec-muted); font-size: 12px; }
.ec-about { margin: 0; line-height: 1.8; font-size: 15px; white-space: pre-line; }
.ec-info { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ec-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ec-muted); line-height: 1.6; }
.ec-info svg { flex: none; margin-top: 3px; color: var(--ec-brand); }

.ec-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ec-work { margin: 0; }
.ec-work-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--ec-chip); cursor: pointer; }
.ec-work-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-play { position: absolute; left: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 23, 41, .62); color: #fff; }
.ec-play svg { fill: currentColor; margin-left: 2px; }
.ec-work figcaption { font-size: 12px; color: var(--ec-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ec-prods { display: grid; gap: 10px; }
.ec-prod { display: flex; gap: 12px; padding: 10px; border-radius: 16px; border: 1px solid var(--ec-line); }
.ec-prod img, .ec-prod-ph { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; flex: none; background: var(--ec-chip); display: grid; place-items: center; color: var(--ec-muted); }
.ec-prod-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-prod-body h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.ec-prod-body b { color: var(--ec-brand); font-size: 15px; }
.ec[data-theme="dark"] .ec-prod-body b { color: #fff; }
.ec-prod-body p { margin: 0; font-size: 13px; color: var(--ec-muted); line-height: 1.5; }
.ec-prod-body a { font-size: 13px; font-weight: 700; color: var(--ec-brand); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
/* 商品的按鈕（立即購買、我要諮詢、看商品） */
.ec-prod-body a.ec-prod-btn { align-self: flex-start; margin-top: 6px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ec-brand); color: #fff; }
.ec-prod-body a.ec-prod-btn.is-view { background: transparent; color: var(--ec-brand); padding: 0; min-height: 0; }
.ec[data-theme="dark"] .ec-prod-body a.ec-prod-btn { color: #fff; }
.ec[data-theme="dark"] .ec-prod-body a { color: #c9bcff; }

.ec-badge { margin: 26px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--ec-chip); display: flex; align-items: center; gap: 10px; }
.ec-badge img { flex: none; }
.ec-badge div { flex: 1; min-width: 0; }
.ec-badge b { display: block; font-size: 14px; }
.ec-badge small { color: var(--ec-muted); font-size: 12px; }
.ec-foot { text-align: center; color: var(--ec-muted); font-size: 12px; padding: 18px 16px 0; }
.ec-foot a { color: inherit; }

/* 分享視窗（手機從下面滑上來） */
.ec-sheet { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.ec-sheet::backdrop { background: rgba(10, 12, 20, .55); }
.ec-sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.ec-sheet-box { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #fff; color: #101729; border-radius: 22px 22px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); box-sizing: border-box; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
.ec-sheet-box.is-wide { max-width: 720px; }
@media (min-width: 640px) { .ec-sheet[open] { align-items: center; } .ec-sheet-box { border-radius: 22px; } }
.ec-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ec-sheet-head h2 { margin: 0; font-size: 18px; }
.ec-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3f4f8; display: grid; place-items: center; cursor: pointer; color: #101729; }
.ec-sheet-qr { display: flex; gap: 14px; align-items: center; padding: 8px 0 12px; }
.ec-qr { flex: none; border-radius: 10px; border: 1px solid #e6e8ef; }
.ec-sheet-qr p { margin: 0; font-size: 14px; line-height: 1.6; color: #5b6478; }
.ec-sheet-qr b { color: #101729; }
.ec-sheet-link { display: flex; gap: 8px; }
.ec-sheet-link input { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid #d9dce5; padding: 0 12px; font: inherit; font-size: 14px; background: #f7f8fc; color: #101729; }
.ec-sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ec-sheet-acts .ec-btn { background: #f3f4f8; color: #101729; }
.ec-sheet-acts .ec-btn.is-line { background: #06c755; color: #fff; }
.ec-tip { font-size: 13px; color: #5b6478; line-height: 1.6; margin: 12px 0 0; }
.ec-dl { margin-top: 12px; display: grid; gap: 8px; justify-items: center; }
.ec-dl img { width: 100%; max-width: 320px; border-radius: 14px; box-shadow: 0 6px 20px rgba(16, 23, 41, .16); }
.ec-copied { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #101729; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 1000; }

/* ---------- 會員中心「品牌與名片」 ---------- */
.bc-top .dc-h2 { margin-bottom: 4px; }
.bc-link { display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--dc-surface-2, #f7f8fc); }
.bc-url { font-weight: 800; word-break: break-all; color: var(--dc-primary); text-decoration: none; }
.bc-tip { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--dc-surface-2, #f7f8fc); font-size: 14px; color: var(--dc-text-2); }
.bc-tip svg { flex: none; margin-top: 3px; color: var(--dc-primary); }
.bc-form { display: grid; gap: 14px; margin-top: 14px; padding-bottom: 84px; }
.bc-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.bc-head .dc-h3 { margin: 0; display: block; }
.bc-head small { display: block; margin-top: 2px; }
/* 每一區可以收起來（手機一次打開一區）：標題列顯示填了什麼 */
.bc-sec { padding-top: 0; padding-bottom: 0; }
.bc-sec[hidden] { display: none; }
.bc-sec > summary.bc-head { list-style: none; cursor: pointer; margin: 0; padding: 16px 0; align-items: center; -webkit-tap-highlight-color: transparent; }
.bc-sec > summary::-webkit-details-marker { display: none; }
.bc-head-txt { flex: 1; min-width: 0; display: grid; }
.bc-status { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--dc-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-status.is-done { color: #0b7a3b; }
.bc-status.is-todo { color: var(--dc-primary); }
.bc-chev { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--dc-surface-2, #f7f8fc); color: var(--dc-text-2); transition: transform .15s ease; }
.bc-sec[open] > summary .bc-chev { transform: rotate(180deg); }
.bc-sec[open] > summary { border-bottom: 1px solid var(--dc-line); margin-bottom: 14px; }
.bc-sec-body { padding-bottom: 16px; }
.bc-next { display: flex; justify-content: flex-end; margin-top: 6px; }
@media (min-width: 721px) { .bc-next { display: none; } }
@media (max-width: 720px) {
  .bc-head small { font-size: 12px; }
  .bc-sec > summary .bc-head-txt small { display: none; }
  .bc-sec[open] > summary .bc-head-txt small { display: block; }
}
.bc-sec[open] > summary .bc-status { display: none; }
/* 名片完成度：還沒填的一點就跳過去 */
.bc-progress { margin-top: 12px; display: grid; gap: 8px; }
.bc-progress[hidden] { display: none; }
.bc-progress-bar { height: 8px; border-radius: 999px; background: var(--dc-line); overflow: hidden; }
.bc-progress-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--dc-gradient, var(--dc-primary)); transition: width .2s ease; }
.bc-progress-txt { font-size: 13px; color: var(--dc-text-2); }
.bc-progress-todo { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-progress-todo button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--dc-primary); background: #fff; color: var(--dc-primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bc-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dc-gradient, var(--dc-primary)); color: #fff; font-weight: 900; font-size: 14px; }
.bc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.bc-span2 { grid-column: span 2; }
@media (max-width: 640px) { .bc-grid { grid-template-columns: minmax(0, 1fr); } .bc-span2 { grid-column: auto; } }
.bc-logo-row { display: flex; gap: 12px; align-items: center; }
.bc-logo { width: 84px; height: 84px; flex: none; border-radius: 16px; border: 1px dashed var(--dc-line); display: grid; place-items: center; overflow: hidden; background: #fff; text-align: center; padding: 4px; box-sizing: border-box; }
.bc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bc-logo-acts { display: grid; gap: 8px; min-width: 0; }
.bc-inline { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dc-text-2); }
.bc-inline select { height: 34px; border-radius: 10px; border: 1px solid var(--dc-line); padding: 0 8px; font: inherit; font-size: 13px; background: #fff; }
.bc-ai-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -4px 0 10px; }
.bc-ai-row small { font-size: 12px; }
.bc-ai-btn small { font-weight: 400; color: var(--dc-text-3); font-size: 12px; }
.bc-ai { margin: 0 0 12px; padding: 12px; border-radius: 14px; background: #f5f2ff; border: 1px solid #e2dbff; display: grid; gap: 10px; }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chips label { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--dc-line); background: #fff; font-size: 14px; cursor: pointer; }
.bc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.bc-chips label:has(input:checked) { border-color: var(--dc-primary); background: var(--dc-primary); color: #fff; font-weight: 700; }
.bc-chips label:has(input:focus-visible) { outline: 3px solid var(--dc-primary-tint, #d9d0ff); }
.bc-ai-out:empty { display: none; }
.bc-ai-out { display: grid; gap: 8px; }
.bc-opt { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dc-line); background: #fff; font: inherit; font-size: 14px; line-height: 1.6; cursor: pointer; color: var(--dc-text); }
.bc-opt:hover, .bc-opt:focus-visible { border-color: var(--dc-primary); outline: none; box-shadow: 0 0 0 3px var(--dc-primary-tint, #e4dcfb); }
.bc-opt b { display: block; font-size: 12px; color: var(--dc-primary); margin-bottom: 2px; }
.bc-ai-note { font-size: 12px; color: var(--dc-text-3); }
.bc-ai-img { display: grid; gap: 8px; }
.bc-ai-img img { width: 100%; max-width: 420px; border-radius: 12px; }
.bc-ai-wait { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--dc-text-2); }
.bc-ai-wait::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--dc-line); border-top-color: var(--dc-primary); animation: dc-pw-spin .8s linear infinite; }
.bc-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bc-days { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.bc-days legend { margin-bottom: 6px; color: var(--dc-text-2); }
.bc-days label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; min-width: 44px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--dc-line); font-size: 13px; cursor: pointer; background: #fff; }
.bc-form .bc-days input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.bc-days label:has(input:focus-visible) { outline: 3px solid var(--dc-primary-tint, #d9d0ff); }
.bc-days label:has(input:checked) { border-color: var(--dc-primary); background: #f5f2ff; color: var(--dc-primary); font-weight: 700; }
.bc-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--dc-line); cursor: pointer; }
.bc-sw:last-child { border-bottom: 0; }
.bc-sw b { display: block; font-size: 15px; }
.bc-sw small { display: block; color: var(--dc-text-3); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.bc-sw.is-off { opacity: .6; cursor: default; }
.bc-sw.is-main { padding: 12px 14px; border: 1px solid var(--dc-line); border-radius: 14px; margin-bottom: 14px; background: var(--dc-surface-2, #f7f8fc); }
.bc-sw input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #cfd3de; position: relative; cursor: pointer; transition: background .15s ease; margin: 0; }
.bc-sw input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.bc-sw input[type="checkbox"]:checked { background: var(--dc-primary); }
.bc-sw input[type="checkbox"]:checked::after { transform: translateX(18px); }
.bc-sw input[type="checkbox"]:focus-visible { outline: 3px solid var(--dc-primary-tint, #d9d0ff); outline-offset: 2px; }
.bc-sw input[type="checkbox"]:disabled { cursor: default; }
.bc-sws { display: grid; }
.bc-card-body[hidden] { display: none; }
.bc-handle { display: flex; align-items: center; border: 1px solid var(--dc-line); border-radius: 12px; overflow: hidden; background: #fff; }
.bc-handle > span { padding: 0 4px 0 12px; color: var(--dc-text-3); font-size: 14px; white-space: nowrap; }
.bc-handle input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; height: 44px; padding: 0 12px 0 0; font: inherit; font-size: 15px; outline: none; background: transparent; }
.bc-handle:focus-within { border-color: var(--dc-primary); box-shadow: 0 0 0 3px var(--dc-primary-tint, #e4dcfb); }
.bc-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bc-theme { display: grid; gap: 6px; justify-items: center; font-size: 13px; cursor: pointer; }
.bc-theme input { position: absolute; opacity: 0; pointer-events: none; }
.bc-theme-pv { width: 100%; max-width: 110px; aspect-ratio: 3 / 4; border-radius: 14px; border: 2px solid var(--dc-line); overflow: hidden; display: grid; grid-template-rows: 38% auto 1fr; background: #fff; }
.bc-theme-pv i { background: linear-gradient(135deg, var(--ec-brand), var(--ec-soft)); }
.bc-theme-pv b { width: 26px; height: 26px; border-radius: 8px; background: #fff; margin: -13px auto 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.bc-theme-pv em { margin: 8px 14px 0; border-radius: 6px; background: repeating-linear-gradient(#e6e8ef 0 6px, transparent 6px 12px); }
.bc-theme.is-white .bc-theme-pv i { background: #f3f4f8; }
.bc-theme.is-dark .bc-theme-pv { background: #12141c; }
.bc-theme.is-dark .bc-theme-pv i { background: linear-gradient(135deg, var(--ec-brand), #12141c 80%); }
.bc-theme.is-dark .bc-theme-pv em { background: repeating-linear-gradient(#262a37 0 6px, transparent 6px 12px); }
.bc-theme:has(input:checked) .bc-theme-pv { border-color: var(--dc-primary); box-shadow: 0 0 0 3px var(--dc-primary-tint, #e4dcfb); }
.bc-theme:has(input:checked) > span:last-child { color: var(--dc-primary); font-weight: 800; }
.bc-theme:has(input:focus-visible) .bc-theme-pv { outline: 3px solid var(--dc-primary); }
.bc-cover { aspect-ratio: 16 / 9; max-width: 480px; border-radius: 14px; overflow: hidden; background: var(--dc-surface-2, #f7f8fc); border: 1px dashed var(--dc-line); display: grid; place-items: center; text-align: center; padding: 8px; box-sizing: border-box; }
.bc-cover:has(img) { padding: 0; border-style: solid; }
.bc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-btns { margin-top: 8px; flex-wrap: wrap; }
.bc-works { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .bc-works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bc-works > p { grid-column: 1 / -1; margin: 0; }
.bc-work { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--dc-surface-2, #f7f8fc); display: grid; place-items: center; color: var(--dc-text-3); }
.bc-work img { width: 100%; height: 100%; object-fit: cover; }
.bc-work-play { position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(16, 23, 41, .6); color: #fff; display: grid; place-items: center; }
.bc-work-play svg { fill: currentColor; }
.bc-work-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16, 23, 41, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bc-prods { display: grid; gap: 10px; }
.bc-prod { border: 1px solid var(--dc-line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; }
.bc-prod-pick { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.bc-prod-pick input { width: 20px; height: 20px; flex: none; accent-color: var(--dc-primary); }
.bc-prod-pick img, .bc-prod-ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--dc-surface-2, #f7f8fc); display: grid; place-items: center; color: var(--dc-text-3); }
.bc-prod-pick b { display: block; font-size: 14px; }
.bc-prod-pick small { color: var(--dc-text-3); }
.bc-prod-more { display: grid; gap: 8px; padding-left: 30px; }
.bc-prod-more input { height: 40px; border-radius: 10px; border: 1px solid var(--dc-line); padding: 0 12px; font: inherit; font-size: 14px; }
.bc-prod:not(:has(.bc-prod-pick input:checked)) .bc-prod-more { display: none; }
.bc-save { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--dc-line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.bc-save-in { max-width: 860px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bc-save-in .dc-btn.is-primary { min-width: 140px; }
.bc-msg { font-size: 14px; color: var(--dc-text-2); flex: 1; min-width: 0; }
.bc-msg.is-ok { color: #0b7a3b; font-weight: 700; }
.bc-msg.is-error { color: #c62828; font-weight: 700; }
@media (min-width: 1024px) { .bc-save { left: var(--dc-side-w, 248px); } }
/* 手機：這一頁不放底部分頁列（儲存列在那裡），儲存按鈕撐滿 */
@media (max-width: 880px) { .dc-body-app:has(.bc-form) .dc-tabs { display: none; } .dc-body-app:has(.bc-form) .dc-content { padding-bottom: 24px; } }
@media (max-width: 720px) { .bc-save-in .dc-btn.is-primary { flex: 1; min-width: 0; } .bc-save-in .bc-msg:empty { display: none; } .bc-save-in .bc-msg { order: -1; flex-basis: 100%; font-size: 13px; } .bc-save-in { flex-wrap: wrap; gap: 6px 10px; } }
.bc-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .bc-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bc-pick > p { grid-column: 1 / -1; }
.bc-pick-item { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--dc-surface-2, #f7f8fc); cursor: pointer; }
.bc-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-pick-item.is-on { border-color: var(--dc-primary); }
.bc-pick-item .bc-pick-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; font-size: 11px; background: rgba(16, 23, 41, .65); color: #fff; }
.bc-pick-item.is-on .bc-pick-tag { background: var(--dc-primary); }
.bc-pick-item[disabled] { opacity: .5; cursor: default; }
/* 表單元件在 .dc-field 裡會被套上一般輸入框的樣式（寬 100%、高 48px）：選項、開關、勾選框改回自己的樣子（不然手機會被撐寬） */
.bc-theme, .bc-chips label { position: relative; }
.bc-form .bc-theme input, .bc-form .bc-chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; }
.bc-form .bc-sw input[type="checkbox"] { min-height: 0; padding: 0; border: 0; box-shadow: none; }
.bc-form .bc-prod-pick input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; }
.bc-form .bc-prod-more input { min-height: 40px; }
/* 更多連結（聯絡方式下面） */
.bc-links { display: grid; gap: 8px; }
.bc-link-rows { display: grid; gap: 8px; }
.bc-link-rows:empty { display: none; }
.bc-link-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 160px 36px; gap: 8px; align-items: center; }
.bc-form .bc-link-row select, .bc-form .bc-link-row input { height: 44px; min-height: 44px; border: 1px solid var(--dc-line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
.bc-link-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--dc-surface-2, #f7f8fc); color: var(--dc-text-2); display: grid; place-items: center; cursor: pointer; }
.bc-link-add { justify-self: start; }
.bc-link-add[hidden] { display: none; }
@media (max-width: 640px) {
  .bc-link-row { grid-template-columns: minmax(0, 1fr) 36px; padding: 10px; border: 1px solid var(--dc-line); border-radius: 12px; }
  .bc-link-row input { grid-column: 1 / -1; }
  .bc-link-x { grid-row: 1; grid-column: 2; }
}
/* 名片按鈕的字（自訂的連結名稱可能比較長） */
.ec-act > span:last-child { text-align: center; line-height: 1.3; }
/* 品牌色：小小一個色塊（不要撐滿整行） */
.bc-color-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.bc-form .bc-color-row input[type="color"] { flex: none; width: 44px; height: 44px; min-height: 0; padding: 3px; border: 1px solid var(--dc-line); border-radius: 12px; background: #fff; cursor: pointer; box-shadow: none; }
.bc-form .bc-color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.bc-form .bc-color-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.bc-form .bc-color-row input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }
.bc-inline { white-space: nowrap; }
/* 商品的購買／諮詢連結（品牌與名片） */
.bc-prod-link { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.bc-form .bc-prod-link select, .bc-form .bc-prod-link input { height: 40px; min-height: 40px; border-radius: 10px; border: 1px solid var(--dc-line); padding: 0 10px; font: inherit; font-size: 14px; background: #fff; min-width: 0; width: 100%; box-sizing: border-box; }
