/* 螞蟻聲量 buzzants — 招募期樣式（2026-11-14）
   顏色取自 logo：墨黑 #242326、螞蟻橘 #fe6f00；底色暖白 #faf7f2 */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --alt: #f3ede4;
  --ink: #242326;
  --ink-2: #4a4540;
  --muted: #776d63;
  --line: #e7dfd3;
  --orange: #fe6f00;
  --orange-hover: #e86400;
  --orange-text: #b34d00;     /* 小字用的橘（對暖白 5:1 以上） */
  --orange-soft: #fff1e4;
  --ok: #1f7a4d;
  --err: #c0362c;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --head-h: 60px;
}

/* html 底色不可刪：iOS Safari 26 會採樣它畫狀態列區域 */
html { background-color: #faf7f2; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: .01em; }
p { margin: 0; }

/* 連結一律無底線（全站規範） */
a, a:hover, a:visited, a:focus { text-decoration: none !important; }
a { color: var(--orange-text); }
/* 點擊不出現黑框（全站規範） */
a, button, label, input, select, textarea, summary, [role="button"], .clickable { -webkit-tap-highlight-color: transparent; }
a:focus, a:focus-visible, button:focus, button:focus-visible, summary:focus, summary:focus-visible { outline: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; line-height: 1.55; }
.nowrap { white-space: nowrap; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ---------- 頁首（不固定，避免 iOS 26 採樣問題） ---------- */
.site-head { padding-top: env(safe-area-inset-top); background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 12px; }
.site-head__logo img { height: 40px; width: auto; }
.site-head__nav { display: flex; gap: 4px; }
.site-head__nav a { color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.site-head__nav a:hover { background: var(--alt); }
.site-head__nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- 按鈕（hover 只加深背景色） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer;
       font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px;
       background: var(--alt); color: var(--ink); transition: background-color .15s; }
.btn:hover { background: #e9e0d3; color: var(--ink); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); color: var(--ink); }
.btn--lg { font-size: 17px; padding: 14px 26px; }
.btn--sm { font-size: 13px; padding: 6px 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- 首屏 ---------- */
.hero { padding: 36px 0 40px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0; } .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 48px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--orange-text); background: var(--orange-soft);
           padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(28px, 6.4vw, 46px); font-weight: 900; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); white-space: nowrap; }
.lead { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.hero__cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero__hint { font-size: 13px; color: var(--muted); }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }
@media (max-width: 480px) { .br-narrow { display: inline; } }
@media (min-width: 481px) { .br-narrow { display: none; } }

/* 首頁首屏：左文字、右動畫（手機上下疊，文字置中） */
.hero--home { padding-bottom: 12px; }
.hero-split { display: grid; gap: 28px; align-items: center; text-align: center; }
.hero-split .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-split .hero__cta { justify-content: center; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--alt); }
@media (min-width: 900px) {
  .hero--home { padding: 56px 0 40px; }
  .hero-split { grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; }
  .hero-split .lead { margin-left: 0; }
  .hero-split .hero__cta { justify-content: flex-start; }
}

/* ---------- 誘因卡（像一張券） ---------- */
.offer { position: relative; background: var(--surface); border: 2px dashed var(--orange); border-radius: var(--radius);
         padding: 22px 20px 18px; box-shadow: 0 10px 30px -18px rgba(36, 35, 38, .35); }
.offer__tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--ink);
              padding: 3px 10px; border-radius: 6px; }
.offer__big { margin-top: 10px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.offer__big strong { font-size: 64px; font-weight: 900; color: var(--orange); letter-spacing: -.02em; vertical-align: -6px; margin: 0 2px; }
.offer__big span { font-size: 20px; }
.offer__list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.offer__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.offer__list span { color: var(--ink-2); }
.offer__list b { white-space: nowrap; }
.offer__fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 名額進度 ---------- */
.progress { margin-top: 16px; }
.progress__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.progress__label { font-size: 14px; font-weight: 700; }
.progress__num { font-size: 14px; }
.progress__num b { font-size: 22px; font-weight: 900; color: var(--orange-text); }
.progress__num small { color: var(--muted); font-size: 13px; margin-left: 2px; }
.progress__bar { margin-top: 6px; height: 10px; border-radius: 999px; background: var(--alt); overflow: hidden; }
.progress__bar span { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.progress__note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.progress.is-full .progress__bar span { background: var(--muted); }

/* ---------- 區塊 ---------- */
.section { padding: 48px 0; }
.section--tight { padding-top: 8px; }
.section--alt { background: var(--alt); }
.section__title { font-size: clamp(22px, 4.6vw, 30px); font-weight: 900; margin-bottom: 22px; }
.section__lead { margin: -10px 0 22px; color: var(--ink-2); }
@media (min-width: 768px) { .section { padding: 72px 0; } }

.cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .cards--2 { grid-template-columns: 1fr 1fr; } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-2); }
.card__price { color: var(--ink) !important; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card__price b { font-size: 40px; font-weight: 900; color: var(--orange); letter-spacing: -.02em; line-height: 1; }
.card__meta { margin-top: 12px; font-size: 13px; color: var(--muted) !important; }
.card--plain { background: transparent; border: 0; padding: 0; }
.section--alt .card--plain h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--orange); margin-bottom: 12px; }

/* 流程 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius-sm); padding: 16px 16px 16px 58px; position: relative; }
.section:not(.section--alt) .steps li { border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
                    background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 16px; }
.steps span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { counter-increment: f; background: var(--surface); border-radius: var(--radius-sm); padding: 18px 16px; }
.flow li::before { content: "0" counter(f); display: block; font-size: 28px; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 8px; }
.flow b { display: block; font-size: 16px; }
.flow span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }

.two-col { display: grid; gap: 36px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1.3fr; gap: 56px; } }
.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 32px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 20px; height: 20px; border-radius: 50%;
                     background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23242326' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink-2); font-size: 15px; }
.section:not(.section--alt) .facts li { background: var(--alt); }
.facts b { color: var(--ink); }

/* 價格表 */
.table-wrap { margin-top: 18px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line);
               border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.price-table th, .price-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th { font-weight: 600; color: var(--muted); font-size: 13px; }
.price-table tbody th b { display: block; color: var(--ink); font-size: 16px; font-weight: 900; }
.price-table tr.is-hot { background: var(--orange-soft); }
.price-table td.hl { color: var(--orange-text); font-weight: 800; }
.price-table td, .price-table tbody th b, .price-table thead th { white-space: nowrap; }
.price-table td.hl span { display: block; }
@media (min-width: 560px) { .price-table td.hl span { display: inline; } .price-table td.hl span + span::before { content: "／"; } }
@media (max-width: 400px) { .price-table { font-size: 13px; } .price-table th, .price-table td { padding: 10px 7px; } .price-table tbody th b { font-size: 14px; } }
.price-table + .muted, .table-wrap + .muted { margin-top: 10px; }
@media (min-width: 720px) { .price-table { font-size: 16px; } .price-table th, .price-table td { padding: 14px 18px; } }

/* 首頁分流 */
.pick { display: grid; gap: 14px; }
@media (min-width: 800px) { .pick { grid-template-columns: 1fr 1fr; gap: 20px; } }
.pick__card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
              border-radius: var(--radius); padding: 24px 22px; transition: border-color .15s, box-shadow .15s; }
.pick__card:hover { color: var(--ink); border-color: var(--orange); box-shadow: 0 12px 30px -20px rgba(254, 111, 0, .6); }
.pick__who { font-size: 13px; font-weight: 800; color: var(--orange-text); letter-spacing: .06em; }
.pick__card h2 { font-size: 22px; font-weight: 900; }
.pick__card ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.pick__offer { background: var(--orange-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.pick__offer b { color: var(--orange-text); font-size: 17px; }
.pick__card .btn { align-self: flex-start; margin-top: auto; }

.goals__grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .goals__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 18px; }
.goal__link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--orange-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

/* ---------- 表單 ---------- */
.section--form { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apply-form { display: grid; gap: 20px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--orange-text); margin-left: 4px; }
.field i.opt { color: var(--muted); }
.field-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="password"], .field select,
.admin-login input, .c-review select, .c-review textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23776d63' stroke-width='1.6'/%3E%3C/svg%3E");
                background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field input:focus, .field select:focus, .admin-login input:focus, .c-review select:focus, .c-review textarea:focus {
  outline: none; border-color: var(--orange); background-color: #fff; }
.field__hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field > legend + .field__hint { margin: -2px 0 8px; }
.field__err { font-size: 13px; color: var(--err); font-weight: 600; margin-top: 6px; }
.field__err:empty { display: none; }
.field.has-err input, .field.has-err select { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
             font-size: 15px; transition: background-color .12s, border-color .12s; user-select: none; }
.chip:hover span { border-color: #d6c9b8; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip input:focus-visible + span { border-color: var(--orange); }
.field.has-err .chip span { border-color: #e7b7b2; }

.agree { display: grid; gap: 4px; padding: 16px; background: var(--alt); border-radius: var(--radius-sm); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--orange); flex: none; }
.agree .field__err { margin: -2px 0 4px 30px; }

/* honeypot：真人看不到 */
.hp-wrap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 送出完成 */
.done { text-align: center; padding: 28px 20px; border: 2px dashed var(--orange); border-radius: var(--radius); background: var(--bg); }
.done:focus { outline: none; }
.done__badge { display: inline-block; font-weight: 900; font-size: 14px; color: #fff; background: var(--ink); border-radius: 999px; padding: 4px 14px; }
.done__badge:empty { display: none; }
.done h3 { font-size: 24px; font-weight: 900; margin: 14px 0 8px; }
.done p { color: var(--ink-2); }
.done .muted { margin-top: 12px; }

/* ---------- 提示（toast）：背景色＋圓角，不加左側色條 ---------- */
.toast-stack { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 999;
               display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 15px;
         box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); animation: toast-in .2s ease-out; }
.toast--ok { background: var(--ok); }
.toast--err { background: var(--err); }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.notice { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; }
.notice--err { background: #fbe4e1; color: var(--err); }

/* ---------- 頁尾 ---------- */
.site-foot { background: var(--ink); color: #cfc8bf; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-foot__in { display: grid; gap: 16px; }
.site-foot strong { color: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--orange); }
.site-foot__copy { font-size: 12px; color: #9a9188; }

/* ---------- 文件頁 ---------- */
.doc h1 { font-size: 30px; font-weight: 900; margin-bottom: 8px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc li + li { margin-top: 6px; }
.page-doc .center h1 { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.page-doc .center .btn { margin-top: 20px; }

/* ---------- 後台 ---------- */
.page-admin { background: var(--bg); }
.admin-login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.admin-login__box { width: min(360px, 100%); display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.admin-login__box img { width: 140px; margin: 0 auto 4px; }
.admin-login__box h1 { font-size: 18px; text-align: center; margin-bottom: 6px; }
.admin-login__box label { font-weight: 700; font-size: 14px; }

.admin-bar { background: var(--ink); color: #fff; padding-top: env(safe-area-inset-top); }
.admin-bar__in { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px; }
.admin-bar__brand { color: #fff; font-weight: 800; white-space: nowrap; }
.admin-bar__brand:hover { color: #fff; }
.admin-tabs { display: flex; gap: 4px; flex: 1; }
.admin-tabs a { color: #cfc8bf; padding: 6px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.admin-tabs a[aria-current="page"] { background: var(--orange); color: var(--ink); font-weight: 700; }
.admin-bar__out { color: #cfc8bf; font-size: 13px; }
.admin-main { padding: 16px; }
.admin-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.admin-summary b { color: var(--orange-text); font-size: 18px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-filter a { color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.admin-filter a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* 名單表：外層不設 overflow，thead 才能 sticky（全站規範） */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: 14px; table-layout: fixed; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.admin-table thead th { position: sticky; top: 0; background: #ede5da; z-index: 2; font-size: 13px; }
.admin-table .c-id { width: 44px; color: var(--muted); }
.admin-table th:last-child, .admin-table .c-review { width: 190px; }
.admin-table tr.st-approved { background: #f1f8f3; }
.admin-table tr.st-rejected { background: #f6f2ee; color: var(--muted); }
.c-main { min-width: 0; }
.c-main > * + * { margin-top: 3px; }
.c-review { display: grid; gap: 6px; }
.c-review select, .c-review textarea { font-size: 14px; padding: 6px 8px; }
.c-review textarea { resize: vertical; }
.ellipsis { display: flex; min-width: 0; max-width: 100%; }
.ellipsis > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tag { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--alt); color: var(--ink-2); margin-right: 4px; }
.tag--orange { background: var(--orange-soft); color: var(--orange-text); }
.tag--warn { background: #fbe4e1; color: var(--err); }
/* 手機：表格改成一筆一張卡片 */
@media (max-width: 760px) {
  .admin-bar__brand { display: none; }
  .admin-main { padding: 12px; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: auto !important; }
  .admin-table { background: transparent; }
  .admin-table thead { display: none; }
  .admin-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 10px 12px; position: relative; }
  .admin-table td { border: 0; padding: 3px 0; }
  .admin-table .c-id { position: absolute; right: 12px; top: 10px; }
  .admin-table .c-main { padding-right: 40px; }
  .c-review { grid-template-columns: 1fr auto; padding-top: 8px !important; }
  .c-review textarea { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 會員登入（2026-11-14） ---------- */
.site-head__user { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.site-head__user form { margin: 0; }
.site-head__name { display: inline-flex; max-width: 110px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.site-head__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .site-head__name { display: none; } .site-head__nav a { padding: 6px 8px; } }
.link-btn { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--orange-text); cursor: pointer; }
.link-btn:hover { background: none; color: var(--orange-hover); }
.link-btn[disabled] { color: var(--muted); cursor: default; }

/* 社群登入按鈕：LINE 綠、Google 白底細框；hover 只加深背景色 */
.login-btns { display: grid; gap: 10px; margin: 16px 0; }
.btn--social { width: 100%; justify-content: center; gap: 10px; font-size: 16px; padding: 13px 18px; position: relative; }
.btn--line { background: #06c755; color: #fff; }
.btn--line:hover { background: #05b34c; color: #fff; }
.btn--google { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--google:hover { background: #f4efe7; color: var(--ink); }
.btn--email { background: var(--alt); color: var(--ink); }
.btn--social.is-off { opacity: .5; cursor: not-allowed; flex-wrap: wrap; }
.btn--social.is-off:hover { background: inherit; }
.btn--line.is-off:hover { background: #06c755; }
.btn--google.is-off:hover { background: #fff; }
.btn--social small { flex-basis: 100%; text-align: center; font-size: 11px; font-weight: 600; line-height: 1.2; margin-top: -4px; }

/* 登入頁 */
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; max-width: 460px; margin: 0 auto; }
.login-card h1 { font-size: 26px; font-weight: 900; }
.login-card__lead { margin: 8px 0 4px; color: var(--ink-2); font-size: 15px; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-form { display: grid; gap: 14px; margin-top: 14px; }
.login-form[hidden] { display: none; }
.login-form .field input[type="email"], .login-form .field input[type="text"] { width: 100%; }
.otp-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-weight: 800; }
.login-sent { font-size: 15px; color: var(--ink-2); }
.login-sent b { word-break: break-all; }
.login-links { text-align: center; margin: 0; }
.login-out { margin-top: 14px; text-align: center; }
.login-note { margin-top: 18px; text-align: center; }

/* 表單前的登入提示、已登記狀態 */
.gate { text-align: center; padding: 28px 20px; border: 2px dashed var(--orange); border-radius: var(--radius); background: var(--bg); }
.gate h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.gate p { color: var(--ink-2); }
.gate .login-btns { max-width: 340px; margin: 18px auto; }
.done--static .mine__row { margin-top: 6px; }
.tag--pending, .tag--approved, .tag--rejected { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag--pending { background: var(--alt); color: var(--ink-2); }
.tag--approved { background: #e3f4ea; color: var(--ok); }
.tag--rejected { background: #fbe7e4; color: var(--err); }

/* ---------- 步驟說明 1 ⇒ 2 ⇒ 3 ⇒ 4（表單上方） ---------- */
.stepper-wrap { margin: 0 0 24px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
/* 步驟之間的連接線（接在圓點中心高度） */
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--line); }
.stepper li:not(:last-child)::before { content: "⇒"; position: absolute; top: 4px; left: calc(100% - 9px); width: 18px; text-align: center; font-size: 14px; line-height: 22px; color: var(--muted); background: var(--surface); z-index: 1; }
.stepper li.is-done:not(:last-child)::after { background: var(--orange); }
.stepper__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
                background: var(--surface); border: 2px solid var(--line); color: var(--muted); }
.stepper li.is-now .stepper__dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper li.is-done .stepper__dot { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.stepper b { margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.stepper li.is-now b { color: var(--ink); }
.stepper__desc { display: none; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.stepper__note { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--orange-soft); color: var(--orange-text); font-size: 14px; font-weight: 600; text-align: center; }
.stepper__note[hidden] { display: none; }
@media (min-width: 640px) {
  .stepper__desc { display: block; }
  .stepper b { font-size: 15px; }
}

/* ---------- 首頁豐富化（2026-11-14）：圖示、畫面示意、安心區塊 ---------- */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-text); flex: none; }
.ico-badge--lg { width: 52px; height: 52px; border-radius: 16px; }
.ico-badge--lg .ico { width: 28px; height: 28px; }

/* 畫面示意：Threads 風格的視窗動畫＋四周飄的互動小卡（純 HTML／CSS，動畫由 hero.js 驅動） */
.mock__ava { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 800; flex: none; }
.a1 { background: var(--ink); } .a2 { background: #e8833a; } .a3 { background: #4d8f7c; } .a4 { background: #7a6fb0; }
.a5 { background: #c2675a; } .a6 { background: #3d7ea6; } .a7 { background: #a08a2e; } .a8 { background: #d0627f; }
.mock__co { display: inline-block; margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--orange-text);
            background: var(--orange-soft); padding: 0 7px; border-radius: 6px; vertical-align: 1px; white-space: nowrap; }

.stage { position: relative; height: 470px; display: flex; align-items: center; justify-content: center; overflow: hidden;
         margin: 0 -16px; text-align: left; }
@media (min-width: 900px) { .stage { height: 520px; margin: 0; } }

.tw { position: relative; z-index: 2; margin: 0; width: min(330px, 80%); height: 86%; display: flex; flex-direction: column;
      background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
      box-shadow: 0 20px 36px -24px rgba(36, 35, 38, .5), 0 2px 6px rgba(36, 35, 38, .05); }
.tw__bar { flex: none; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; height: 42px; padding: 0 10px;
           border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; }
.tw__back { font-size: 22px; line-height: 1; color: var(--ink-2); }
.tw__body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px 0; transition: opacity .4s; scroll-behavior: smooth; }
.tw__body.is-out { opacity: 0; }
.tw__row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tw__row b { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw__row small { color: var(--muted); font-size: 12px; margin-left: auto; flex: none; }
.tw__text { font-size: 14.5px; line-height: 1.6; min-height: 2.3em; }
.tw__text.is-typing::after, .tw__input.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px;
           vertical-align: -2px; background: var(--orange); animation: tw-blink 1s steps(1) infinite; }
@keyframes tw-blink { 50% { opacity: 0; } }

.tw__acts { position: relative; display: flex; gap: 16px; margin-top: 8px; color: var(--muted); transition: opacity .3s; }
.tw__acts.is-hidden { opacity: 0; }
.tw__act { display: inline-flex; align-items: center; gap: 4px; }
.tw__act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tw__act em { font-style: normal; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tw__act--like.is-on { color: #e8344e; }
.tw__act--like.is-on svg { fill: currentColor; }
.tw__act--like.is-pop svg { animation: tw-pop .35s ease-out; }
@keyframes tw-pop { 40% { transform: scale(1.35); } }
.tw__heart { position: absolute; left: 4px; bottom: 4px; font-size: 13px; color: #e8344e; pointer-events: none; animation: tw-heart .9s ease-out forwards; }
@keyframes tw-heart { from { opacity: 1; transform: translate(0, 0) scale(.8); } to { opacity: 0; transform: translate(var(--dx, 0), -38px) scale(1.2); } }

.tw__list { margin-top: 10px; border-top: 1px solid var(--line); }
.tw__reply { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tw__reply b { font-size: 13.5px; }
.tw__reply p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.tw__reply .mock__ava { width: 30px; height: 30px; font-size: 13px; }
.tw__reply.is-new { animation: tw-in .45s ease-out; }
@keyframes tw-in { from { opacity: 0; transform: translateY(10px); } }

.tw__composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.tw__composer .mock__ava { width: 28px; height: 28px; font-size: 12px; }
.tw__input { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--muted); background: var(--alt); border-radius: 14px; padding: 6px 12px;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tw__input.is-typing { color: var(--ink); }
.tw__send { flex: none; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 5px 11px; border-radius: 999px; transition: background-color .2s, color .2s, transform .15s; }
.tw__send.is-ready { background: var(--ink); color: #fff; }
.tw__send.is-hit { transform: scale(.9); }
.tw__tag { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding: 5px 8px 7px; background: var(--alt); }

/* 四周飄的小卡：z-index 1 在視窗後面、加 .is-front 的在視窗前面 */
.stage__float { position: absolute; inset: 0; pointer-events: none; }
.fchip { position: absolute; z-index: 1; display: flex; align-items: flex-start; gap: 8px; width: max-content; max-width: 196px; padding: 8px 10px;
        background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 26px -16px rgba(36, 35, 38, .45);
        font-size: 12.5px; line-height: 1.45; animation: fchip-up 7s linear forwards; }
.fchip.is-front { z-index: 3; }
.fchip .mock__ava { width: 24px; height: 24px; font-size: 11px; }
.fchip__main { min-width: 0; }
.fchip__who { display: block; font-size: 11.5px; color: var(--muted); }
.fchip__who b { color: var(--ink); margin-right: 4px; }
.fchip__txt { display: block; color: var(--ink-2); }
.fchip--like { align-items: center; border-radius: 999px; padding: 5px 12px 5px 6px; }
.fchip--like .fchip__who { font-size: 12px; }
.fchip--like .fchip__who::after { content: " ♥"; color: #e8344e; }
@keyframes fchip-up {
  0%   { opacity: 0; transform: translateY(30px) scale(.92); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-230px) scale(1); }
}
.stage.is-paused .fchip, .stage.is-paused .tw__heart { animation-play-state: paused; }
@media (max-width: 520px) { .fchip { max-width: 150px; font-size: 12px; padding: 7px 9px; } }
@media (prefers-reduced-motion: reduce) { .stage__float { display: none; } }

/* 首頁分流卡：圖示放在最上面 */
.pick__card .ico-badge--lg { margin-bottom: -2px; }

/* 流程：圖示＋淡色大數字 */
.flow li { position: relative; }
.flow li::before { position: absolute; right: 14px; top: 8px; margin: 0; font-size: 34px; color: #fbd9bd; }
.flow li .ico-badge { display: inline-grid; margin: 0 0 12px; font-size: inherit; color: var(--orange-text); }

/* 為什麼可以放心 */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.trust b { display: block; font-size: 16px; margin-bottom: 2px; }
.trust p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.trust p a { word-break: break-all; }

/* ---------- Email 欄位：常用信箱下拉＋打錯提示（email-field.js） ---------- */
.email-wrap { position: relative; }
.email-suggest {
  position: absolute; left: 0; right: 0; z-index: 20;
  margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(36, 35, 38, .12); max-height: 280px; overflow-y: auto;
}
.email-suggest[hidden] { display: none; }
.email-suggest li {
  padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.email-suggest li:hover, .email-suggest li.is-active { background: var(--orange-soft); }
.email-typo { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.email-typo[hidden] { display: none; }
.email-typo .link-btn { font-size: 13px; }

/* ---------- 會員中心（/me、/me/creator、/me/brand） ---------- */
.site-head__name .me { display: none; }
@media (max-width: 520px) { .site-head__name { display: inline-flex; } .site-head__name .nm { display: none; } .site-head__name .me { display: inline; } }
.site-head__name:hover { color: var(--orange-text); }
.me-title { font-size: 28px; margin: 0 0 6px; }
.me-lead { color: var(--muted); margin: 0 0 24px; }
.role-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .role-grid { grid-template-columns: 1fr 1fr; } }
.role-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.role-card:hover, .role-card.is-last { border-color: var(--orange); box-shadow: 0 6px 20px rgba(254, 111, 0, .12); }
.role-card b { font-size: 20px; margin-top: 8px; }
.role-card__desc { color: var(--muted); font-size: 14px; }
.role-card__state { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 26px; }
.role-card__go { margin-top: 10px; font-weight: 700; color: var(--orange-text); }
.role-tabs { display: flex; gap: 6px; padding: 4px; margin: 0 0 24px; background: var(--alt); border-radius: 999px; }
.role-tabs a { flex: 1; text-align: center; padding: 10px 12px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.role-tabs a i { font-style: normal; color: var(--ok); margin-left: 4px; }
.role-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(36, 35, 38, .12); }
.me-card { margin-top: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.me-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.me-card__head h2 { font-size: 18px; margin: 0; }
.me-founding { margin: 0 0 8px; }
.me-dl { margin: 14px 0; }
.me-dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.me-dl dt { color: var(--muted); font-size: 14px; }
.me-dl dd { margin: 0; min-width: 0; display: flex; align-items: center; gap: 6px; }
.me-dl dd > span { overflow-wrap: anywhere; }
.me-card .tag--approved i { font-style: normal; }

/* ---------- 標頭按鈕：線條圖示＋「錯位底色」（色塊往右下偏移，墊在線條後面） ---------- */
.ico-off { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ico-off::before { content: ""; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; background: rgba(254, 111, 0, .36); }
.ico-off .ico { position: relative; width: 19px; height: 19px; stroke-width: 1.9; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 11px; border: 0; border-radius: 999px; background: var(--alt); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.hbtn:hover { background: #ebe2d4; }
.hbtn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hbtn--ghost:hover { background: var(--alt); }
.site-head__user { gap: 6px; }
@media (max-width: 520px) {
  .site-head__nav a { padding: 6px 6px; }
  .hbtn { padding: 6px 10px 6px 8px; gap: 6px; }
}
@media (max-width: 400px) {
  /* 手機窄：登出只留圖示（有 aria-label） */
  .hbtn--ghost { padding: 6px 8px; }
  .hbtn--ghost > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) {
  /* 再窄（360 寬手機）：帳號中心也只留圖示，登入維持有文字 */
  .site-head__user a.hbtn[href="/me"] { padding: 6px 8px; }
  .site-head__user a.hbtn[href="/me"] > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 金額小字（茶葉蛋／咖啡說法旁邊的實際金額） */
.card__amt { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.amt { font-size: .62em; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---------- 脆友任務頁 /task/{id}（2026-11-14） ---------- */
.task { padding-top: 24px; }
.task__back { margin-bottom: 12px; font-size: 14px; }
.task__back a { color: var(--muted); font-weight: 600; }
.task-head { margin-bottom: 22px; }
.task-head__tags { margin-bottom: 8px; }
.task-head h1 { font-size: clamp(24px, 5.6vw, 32px); font-weight: 900; }
.task-head__treat { margin-top: 8px; font-size: 16px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.task-head__treat b { font-size: 22px; font-weight: 900; color: var(--orange); }
.task-head__treat .amt { font-size: 14px; }
.task-head__due { margin-top: 8px; display: inline-block; font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--alt); padding: 3px 12px; border-radius: 999px; }
.task-head__due.is-late { background: #fbe7e4; color: var(--err); }
.task-h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.task-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; display: inline-grid; place-items: center; flex: none; }
.task-brief { color: var(--ink-2); margin-bottom: 12px; overflow-wrap: anywhere; }
.task-facts { margin: 14px 0 18px; }
.task-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.task-actions__hint { margin-top: 10px; }
.task-steps { list-style: none; margin: 0; padding: 0; }
.task-steps > li:first-child { margin-top: 0; }
.task-note { margin: 10px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--orange-soft); color: var(--orange-text); font-size: 14px; font-weight: 600; }
.task-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--alt); color: var(--ink-2); font-size: 15px; }
.task-alert--warn { background: #fbe7e4; color: var(--err); }
.task-alert--warn p { color: var(--ink-2); margin-top: 4px; }
.drafts { display: grid; gap: 12px; margin: 14px 0 12px; }
.draft { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--bg); }
.draft:focus-within { border-color: var(--orange); }
.draft__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.draft__head span { font-size: 12.5px; font-weight: 700; color: var(--orange-text); background: var(--orange-soft); padding: 1px 10px; border-radius: 999px; }
.draft__text { width: 100%; font: inherit; font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
               border-radius: 8px; padding: 10px 12px; resize: vertical; min-height: 72px; }
.draft__text:focus { outline: none; border-color: var(--orange); }
.draft__meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin: 6px 2px 10px; }
.draft__reset { border: 0; background: none; color: var(--orange-text); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.draft__reset[hidden] { display: none; }
.draft__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.draft__btns .btn { flex: 1 1 auto; }
.task-submit { display: grid; gap: 14px; }
.task-result h2 { margin-bottom: 8px; }
.task-result p { color: var(--ink-2); }
.task-result p + p { margin-top: 10px; }
.task-result--passed { border-color: #bfe3cc; background: #f3faf5; }
.task-result__link a { display: flex; min-width: 0; font-size: 14px; }
.task-result__link a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-rules { margin-top: 28px; }

/* 會員中心：我的任務 */
.my-tasks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.my-tasks a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
              border-radius: var(--radius-sm); color: var(--ink); background: var(--bg); }
.my-tasks a:hover { background: var(--alt); }
.my-tasks li.is-hot a { border-color: var(--orange); background: var(--orange-soft); }
.my-tasks__main { min-width: 0; display: grid; }
.my-tasks__main b, .my-tasks__main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 後台任務 */
.admin-back { font-size: 14px; margin-bottom: 6px; }
.admin-h1 { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.admin-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.admin-box > summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; }
.admin-box > summary::-webkit-details-marker { display: none; }
.admin-box > summary::after { content: " ＋"; color: var(--orange-text); }
.admin-box[open] > summary::after { content: " －"; }
.admin-box[open] > summary { margin-bottom: 14px; }
.admin-box h2 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.admin-form [hidden] { display: none !important; }
.admin-ta, .admin-dt, .admin-form input[type="text"], .admin-form input[type="url"] {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.admin-ta:focus, .admin-dt:focus { outline: none; border-color: var(--orange); background: #fff; }
.admin-assign th:last-child, .admin-assign .c-review { width: 230px; }
.admin-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admin-drafts { margin-top: 6px; }
.admin-drafts summary { cursor: pointer; color: var(--orange-text); font-weight: 700; }
.admin-drafts p { margin-top: 8px; padding: 8px 10px; background: var(--bg); border-radius: 8px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--orange-text); font-weight: 700; cursor: pointer; }
.admin-pick { display: grid; gap: 2px; max-height: 480px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; margin: 10px 0; }
.admin-pick__all { border-bottom: 1px solid var(--line); font-weight: 700; }
.admin-pick__row span .small { margin-left: 6px; }
.admin-pick__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* 任務驗收表：名單表的 .c-review 是 grid，放在表格裡會讓儲存格脫離表格（框線錯位），這裡改回 table-cell */
.admin-assign td.c-review { display: table-cell; }
.admin-assign td.c-review textarea { width: 100%; }
@media (max-width: 760px) { .admin-assign td.c-review { display: block; } }
