/* WeKen 團隊後台
   Design read：內部團隊工具＋給快電商夥伴在手機（多半是 LINE 內建瀏覽器）填的領獎表單，
   信任優先、乾淨俐落，原生 CSS＋Noto Sans TC，WeKen 黃 #F5C518 當唯一強調色。
   Dials：VARIANCE 4／MOTION 3／DENSITY 4（工具頁，版面穩定優先，只有回饋型動態）
   放掉 taste：6.C／8 深色模式（週末哥規定一律淺色）、3.A React／Tailwind／Motion（不用建置工具）、
   3.C 圖示套件與不准手畫 SVG（他的規則是 inline SVG、lucide 風格） */
:root {
  --accent: #F5C518;
  --accent-deep: #7A5E00;   /* 黃底上的字、連結，對白底 6.1:1 */
  --accent-soft: #FFF6D1;
  --ink: #1C1C21;
  --ink-2: #4A4A51;
  --ink-3: #6B6B72;
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --line: #E3E3DE;
  --ok: #1E7A4C;
  --ok-soft: #E6F4EC;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --warn: #8A5A00;
  --warn-soft: #FFF3D6;
  --r: 16px;
  --r-sm: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Geist", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --shadow: 0 1px 2px rgba(40, 36, 20, .05), 0 10px 30px rgba(40, 36, 20, .07);
  color-scheme: light;
}
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
/* 字體（2026-10-15 他說「字體粗糙不精緻」後重排）：
   英文數字用 Geist（中文字體附的西文偏寬鈍），中文用 Noto Sans TC；全站最粗只到 600，主次靠字級與顏色，不靠一律加粗；
   標題與欄位標籤加 palt，把全形括號壓成半寬，「（台灣時間）」兩邊不再空一大塊 */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.75;
  letter-spacing: .01em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-break: strict; text-wrap: pretty; overflow-x: clip; }
h1, h2, h3 { margin: 0; line-height: 1.35; text-wrap: balance; font-weight: 600; letter-spacing: 0; }
/* palt 只給標題與標籤：內文的逗號壓成半寬會跟英數黏在一起（2026-10-15 截圖確認） */
h1, h2, h3, .field label, .group-title { font-feature-settings: "palt" 1; }
b, strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 560px; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 頂欄 */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 10px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.who img { width: 30px; height: 30px; border-radius: 50%; }

/* 按鈕：全部膠囊形（圓角規則：按鈕全圓、卡片 16、輸入框 10） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--ink); font-weight: 600; letter-spacing: .04em; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: #EDBB0B; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 3px solid #1F2937; outline-offset: 2px; }
.btn:disabled { background: #ECEBE6; color: var(--ink-3); cursor: not-allowed; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn.ghost:hover { background: #F0F0EC; }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn.line { background: #06C755; color: #fff; }
.btn.line:hover { background: #05B34C; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #F1C5C0; }
.btn.block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"]::before, .spin { content: ""; width: 18px; height: 18px; border-radius: 50%; display: inline-block;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 減少動態時只關掉移動，轉圈保留（不然等待時畫面完全不動） */
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .reveal { animation: none !important; } }

/* 表單 */
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; color: var(--ink); }
.field .help { font-size: 14px; color: var(--ink-3); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid #CFCFC8; background: var(--surface); font-size: 16px; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A90; }
.field .err { font-size: 14px; color: var(--danger); font-weight: 500; display: none; }
.field.bad input, .field.bad textarea { border-color: var(--danger); background: #FFFBFA; }
.field.bad .err { display: block; }
.group { display: grid; gap: 18px; }
.group-title { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; line-height: 1.6; }
.notice .ic { margin-top: 2px; }
.notice.danger { background: var(--danger-soft); color: #7A1810; }
.notice.ok { background: var(--ok-soft); color: #0F4D2E; }
.notice.warn { background: var(--warn-soft); color: #5C3C00; }
.notice[hidden] { display: none; }

/* 載入骨架 */
.skel { background: linear-gradient(90deg, #EEEEEA 25%, #F7F7F4 50%, #EEEEEA 75%); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
