/* 第一屆台灣金廚獎｜UI 設計系統（依企劃書第九章）
   展示頁：深色主題（曜黑＋香檳金）；表單與後台：淺色主題（象牙白＋深金） */
:root {
  --obsidian: #0E0E0F; --charcoal: #1C1C1E; --graphite: #2E2E31;
  --gold: #C9A96E; --gold-light: #E3C98F; --gold-deep: #7A5C30;
  --ivory: #F5F1EA; --stone: #8E8A84; --alert: #B3412E;
  --paper: #FBF9F5; --line-light: #DDD6CA; --ink: #26231F; --ink-soft: #5E5850;
  --serif: 'Noto Serif TC', 'Songti TC', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --en-serif: 'Cormorant Garamond', Georgia, serif;
  --en: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad: 120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.8; }
body.theme-dark { background: var(--obsidian); color: var(--ivory); --bg: var(--obsidian); --bg-alt: var(--charcoal); --line: var(--graphite); --muted: var(--stone); --accent: var(--gold); --text: var(--ivory); }
body.theme-light { background: var(--ivory); color: var(--ink); --bg: var(--ivory); --bg-alt: var(--paper); --line: var(--line-light); --muted: var(--ink-soft); --accent: var(--gold-deep); --text: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: .05em; line-height: 1.35; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: 48px; }
h2 { font-size: 32px; font-weight: 500; }
h3, .h3 { font-family: var(--sans); font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.h3 { margin: 48px 0 16px; }
.h3.first { margin-top: 0; }
.reset-pw { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 32px; padding: 16px 20px; border: 1px dashed var(--line); }
.reset-pw p { margin: 0; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 48px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--obsidian); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 860px; }
.label { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.en-serif { font-family: var(--en-serif); font-size: 1.15em; letter-spacing: .02em; }

/* 按鈕：圓角 2px，主要按鈕每屏一顆 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 2px; border: 1px solid transparent; font: 500 16px var(--sans); letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn-primary { background: var(--gold); color: var(--obsidian); }
.btn-primary:hover { background: var(--gold-light); }
.theme-light .btn-primary { background: var(--ink); color: var(--ivory); }
.theme-light .btn-primary:hover { background: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-ghost:hover { background: rgba(201, 169, 110, .12); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.text-link { color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.text-link::after { content: ' →'; }
.text-link:hover { background-size: 100% 1px; }
.link-btn { background: none; border: 0; color: var(--alert); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; padding: 4px; }

/* 導覽列：首屏透明，捲動後轉曜黑並縮小 */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: background .4s var(--ease), height .4s var(--ease); }
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.has-hero .site-header.scrolled { background: rgba(14, 14, 15, .94); border-color: var(--graphite); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .4s var(--ease); }
.has-hero .scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { font-family: var(--en); font-weight: 500; letter-spacing: .3em; color: var(--accent); font-size: 15px; margin: 0; }
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 15px; letter-spacing: .08em; color: var(--muted); transition: color .3s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current] { box-shadow: inset 0 -1px var(--accent); }
.nav-account { padding-left: 20px; border-left: 1px solid var(--line); }
.lang { font-family: var(--en); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.lang [aria-disabled] { opacity: .4; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: transform .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* 首屏：光落在檯面上 */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--obsidian); }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.04); animation: settle 2.4s var(--ease) forwards; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,15,.94) 0%, rgba(14,14,15,.78) 38%, rgba(14,14,15,.2) 75%), linear-gradient(0deg, rgba(14,14,15,.9), transparent 45%); }
.hero-scene { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; }
.hero-content { z-index: 2; }
@keyframes settle { to { transform: scale(1); } }
.hero-beam { position: absolute; top: -20%; left: 46%; width: 30%; height: 120%; background: linear-gradient(180deg, rgba(245,241,234,.0), rgba(245,241,234,.07) 55%, rgba(227,201,143,.12)); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); filter: blur(6px); transform: translateX(-60%); opacity: 0; animation: beam 2.2s var(--ease) .3s forwards; }
@keyframes beam { to { transform: translateX(0); opacity: 1; } }
.hero-content { position: relative; padding-top: 160px; padding-bottom: 96px; width: 100%; }
.display { font-size: 72px; font-weight: 600; letter-spacing: .08em; line-height: 1.15; margin-bottom: 8px; }
.d-small { display: block; font-size: .5em; letter-spacing: .3em; color: var(--ivory); margin-bottom: 8px; }
.d-gold { display: block; font-size: 1.45em; color: var(--gold); letter-spacing: .06em; }
.hero-en { color: var(--stone); }
.hero-theme { font-size: 20px; color: var(--gold); margin: 16px 0 8px; }
.hero-slogan { color: var(--stone); max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0 40px; }
.hero-stage { font-family: var(--en); font-size: 14px; letter-spacing: .08em; color: var(--ivory); border-top: 1px solid var(--graphite); padding-top: 20px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-stage strong { font-weight: 300; font-size: 22px; color: var(--gold); }
.stage-sub { color: var(--stone); margin-left: 8px; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* 區塊 */
.section { padding: var(--pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split .section-head { margin: 0; }
.page-head { padding: 96px 0 64px; border-bottom: 1px solid var(--line); }
.has-hero .page-head { padding-top: 180px; }
.page-head h1 { margin-bottom: 16px; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: 8px; }
.prose h3 { margin: 32px 0 12px; } .prose h3:first-child { margin-top: 0; }
.plain { list-style: none; padding: 0; } .plain li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.note { font-size: 14px; color: var(--muted); margin-top: 48px; }

/* 獎項卡片：無圓角，懸停影像放大 3%、底部浮現金線 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.award-card { position: relative; background: var(--charcoal); text-decoration: none; overflow: hidden; display: block; }
.award-card::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.award-card:hover::after { transform: scaleX(1); }
.award-visual { aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.award-card:hover .award-visual { transform: scale(1.03); }
.award-body { padding: 28px 28px 32px; }
.award-body h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
/* 材質影像：取自主視覺照片的局部特寫 */
.award-visual { background: #1C1C1E center / cover no-repeat; filter: saturate(.9); }
.av-design { background-image: url(/static/img/mat-steel.webp); }
.av-vote { background-image: url(/static/img/mat-glass.webp); }
.av-contrib { background-image: url(/static/img/mat-wood.webp); }
.award-banner { aspect-ratio: auto; height: 260px; margin-bottom: 40px; }

/* 時程軸：已完成石灰、進行中金點、未來石墨 */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 48px; position: relative; }
.timeline li { position: relative; padding: 28px 20px 0 0; border-top: 1px solid var(--line); }
.tl-dot { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--graphite); border: 1px solid var(--stone); }
.tl-done .tl-dot { background: var(--stone); }
.tl-now .tl-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(201,169,110,.18); }
.tl-date { font-family: var(--en); font-weight: 300; font-size: 15px; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.tl-title { font-size: 17px; margin-bottom: 4px; }
.tl-next .tl-title { color: var(--muted); }
.tl-now .tl-title { color: var(--text); font-weight: 500; }
.tl-badge { font-size: 13px; color: var(--accent); letter-spacing: .1em; margin: 0; }
.tl-note { font-size: 13px; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--bg-alt); padding: 32px 28px; }
.section:not(.section-alt) .principle { background: var(--bg); }
.principle h3 { margin-bottom: 12px; }
.num { font-family: var(--en); font-weight: 300; font-size: 28px; color: var(--accent); margin-bottom: 16px; }

.news-list { display: grid; gap: 0; }
.news-item { padding: 32px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; column-gap: 40px; }
.news-item h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }
.news-item .muted { grid-column: 2; margin: 0; }
.news-meta { font-family: var(--en); font-size: 14px; color: var(--muted); grid-row: span 2; display: flex; gap: 12px; align-items: baseline; }
.tag { font-family: var(--sans); font-size: 12px; color: var(--accent); border: 1px solid var(--accent); padding: 0 8px; letter-spacing: .1em; }

.cta-band { border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cta-grid h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }

/* 獎項頁：左側固定目錄＋右側內文 */
.awards-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding-top: 64px; padding-bottom: var(--pad); }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.toc a { text-decoration: none; color: var(--muted); padding: 8px 0 8px 16px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-color: var(--gold); }
.toc-cta { margin-top: 24px; color: var(--gold) !important; }
.award-group { padding-bottom: 96px; scroll-margin-top: 100px; }
.award-group h2 { margin-bottom: 8px; }
.award-rows { margin-top: 40px; border-top: 1px solid var(--line); }
.award-row { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.award-row .code { font-family: var(--en); font-weight: 300; font-size: 22px; color: var(--accent); margin: 0; }
.award-row h3 { font-family: var(--serif); margin-bottom: 8px; }
.group { color: var(--muted); font-size: .85em; }

.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 24px 16px 0 0; }
.steps li p:last-child { font-size: 18px; }
.enter-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: .08em; background: var(--bg-alt); }
.table.compact th, .table.compact td { padding: 10px 12px; }
.num-cell { text-align: right !important; font-family: var(--en); }
.kv th { width: 28%; color: var(--muted); font-weight: 400; background: var(--bg-alt); }
.kv { border: 1px solid var(--line); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.chip { border: 1px solid var(--line); padding: 6px 16px; font-size: 14px; color: var(--muted); }
.chip.is-on { border-color: var(--gold); color: var(--gold); }
.empty { border: 1px solid var(--line); padding: 96px 48px; text-align: center; }
.empty h2 { margin-bottom: 16px; }
.empty .muted { max-width: 560px; margin: 0 auto; }

.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--en); font-weight: 300; font-size: 24px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding-bottom: 16px; }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 15px; background: var(--bg); }
.theme-light .site-footer { background: var(--obsidian); color: var(--ivory); --line: var(--graphite); --muted: var(--stone); --accent: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { margin-bottom: 6px; }
.footer-name { font-family: var(--serif); font-size: 20px; margin-top: 8px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--en); font-size: 13px; }

/* ---------- 淺色主題：帳號、報名表、後台 ---------- */
.form-page { padding: 96px 20px; display: flex; justify-content: center; }
.form-card { width: 100%; max-width: 480px; background: var(--paper); border: 1px solid var(--line); padding: 48px 40px; }
.form-card h1 { font-size: 32px; margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.stack .field { margin: 0; }
.field > span, .field > label { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.field small { color: var(--muted); font-size: 14px; line-height: 1.6; }
.req, .opt { font-size: 12px; font-weight: 400; padding: 0 6px; border: 1px solid; }
.req { color: var(--alert); } .opt { color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #CFC6B8; border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%; transition: border-color .3s; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold-deep); }
textarea { resize: vertical; line-height: 1.7; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--alert); }
.err { color: var(--alert); font-size: 14px; margin: 4px 0 0; }
.err::before { content: '! '; font-weight: 700; }
.counter { align-self: flex-end; font-family: var(--en); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.7; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; flex: none; accent-color: var(--gold-deep); }
.check a { color: var(--gold-deep); }
.switch { margin-top: 24px; text-align: center; font-size: 15px; }
.switch a { color: var(--gold-deep); }
.alert { border: 1px solid var(--alert); border-left-width: 4px; background: #FBEFEC; color: #7A2A1D; padding: 14px 18px; margin: 16px 0; font-size: 15px; }
.alert-ok { border-color: #4E7A4A; background: #EEF5EC; color: #2F4F2C; }
.alert ul { margin: 8px 0 0; padding-left: 1.2em; }

.dash { padding: 64px 0 var(--pad); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.dash-head h1 { font-size: 40px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.next { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold-deep); padding: 20px 24px; margin-bottom: 24px; }
.next p:last-child { margin: 0; font-size: 18px; }
.new-entry { margin-bottom: 32px; }
.fix-note { font-size: 14px; color: var(--alert); margin: 8px 0 0; }
.danger-zone { margin-top: 32px; }
.status { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 2px 10px; border: 1px solid; white-space: nowrap; }
.status-draft { color: #6B655C; } .status-submitted { color: #2F5E8A; } .status-needs_fix { color: var(--alert); background: #FBEFEC; }
.status-verified { color: #3E6B3A; } .status-nominee { color: var(--gold-deep); } .status-winner { color: var(--obsidian); background: var(--gold); border-color: var(--gold); }
.status-rejected { color: #6B655C; text-decoration: line-through; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { background: var(--paper); border: 1px solid var(--line); padding: 20px 24px; }
.kpi-num { font-family: var(--en); font-weight: 300; font-size: 40px; line-height: 1.1; margin: 0 0 4px; }
.kpi .muted { margin: 0; font-size: 14px; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar select, .filter-bar input { width: auto; flex: 1 1 200px; }
.admin-status { background: var(--paper); border: 1px solid var(--line); padding: 24px; margin: 0 0 32px; }
.log { list-style: none; padding: 0; font-size: 14px; } .log li { padding: 8px 0; border-bottom: 1px solid var(--line); }
code { font-size: 12px; color: var(--muted); word-break: break-all; }

/* 報名步驟 */
.apply { padding-bottom: var(--pad); }
.stepper-bar { position: sticky; top: 84px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.stepper-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.step-count { margin: 0; font-weight: 500; font-size: 15px; }
.stepper { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; flex: 1; }
.stepper li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 4px 10px; cursor: pointer; border-bottom: 2px solid transparent; }
.stepper li em { font-style: normal; }
.stepper li span { font-family: var(--en); width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper li.is-now { color: var(--ink); border-color: var(--gold-deep); }
.stepper li.is-done span { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.saved { margin: 0; font-family: var(--en); font-size: 13px; color: var(--muted); }
.apply-form { margin-top: 48px; }
.step { border: 0; padding: 0; margin: 0; }
.step legend { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: .05em; margin-bottom: 12px; padding: 0; }
.step > .muted { margin-bottom: 32px; }
.award-pick { margin: 32px 0; }
.pick { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border: 1px solid var(--line); background: #fff; margin-bottom: -1px; cursor: pointer; transition: border-color .3s, background .3s; }
.pick:hover { background: var(--paper); }
.pick input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; flex: none; accent-color: var(--gold-deep); }
.pick > span { display: flex; flex-direction: column; }
.pick small { color: var(--muted); font-size: 14px; }
.pick:has(input:checked) { border-color: var(--gold-deep); background: #FAF5EA; position: relative; z-index: 1; }
.upload { border: 1px solid var(--line); background: #fff; padding: 20px 24px; margin-bottom: 16px; }
.upload-head p { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-head .muted { font-size: 14px; }
.file-list { list-style: none; padding: 0; margin: 12px 0; }
.file-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 15px; flex-wrap: wrap; }
.file-list a { color: var(--gold-deep); flex: 1; word-break: break-all; }
.upload-btn { cursor: pointer; margin-top: 8px; }
.upload-progress { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.review h3 { font-size: 18px; margin: 24px 0 8px; }
.review .table { margin-bottom: 8px; background: #fff; }
.review .missing { color: var(--alert); }
.step-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-actions [data-next], .step-actions [data-submit] { margin-left: auto; }

/* 捲動淡入：同一屏只觸發一次 */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* 響應式 */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; } .lang { display: none; }
}
@media (max-width: 1023px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: 0; top: 0; background: var(--obsidian); flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 96px 40px 40px; transform: translateY(-100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; z-index: -1; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { font-family: var(--serif); font-size: 30px; color: var(--ivory); letter-spacing: .1em; }
  .theme-light .main-nav a { color: var(--ivory); }
  .nav-account { border: 0; padding: 0; margin-top: 24px; font-family: var(--sans) !important; font-size: 18px !important; color: var(--gold) !important; }
  .menu-open .menu-btn span:not(.sr) { background: var(--ivory); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .score-preview, .score-tables { grid-template-columns: 1fr; }
  .principles.three { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .awards-layout { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .toc a { border: 1px solid var(--line); padding: 6px 14px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .stepper li em { display: none; }
}
@media (max-width: 767px) {
  :root { --pad: 64px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  h1 { font-size: 32px; } h2 { font-size: 24px; } h3, .h3 { font-size: 20px; }
  .display { font-size: 40px; }
  .brand-name { font-size: 15px; }
  .header-inner { height: 64px; gap: 12px; }
  .hero-content { padding-bottom: 56px; }
  .hero-beam { left: 20%; width: 60%; }
  .hero-glow { width: 90vw; height: 30vw; }
  .card-grid, .principles, .cta-grid, .footer-grid, .kpis { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-left: 28px; border-left: 1px solid var(--line); margin-left: 5px; }
  .timeline li { padding: 0 0 28px; border-top: 0; }
  .tl-dot { left: -34px; top: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .muted { grid-column: 1; }
  .news-meta { grid-row: auto; }
  .award-row { grid-template-columns: 1fr; gap: 4px; }
  .form-card { padding: 32px 20px; }
  .page-head { padding: 56px 0 40px; }
  .has-hero .page-head { padding-top: 120px; }
  .stepper-bar { top: 64px; }
  .stepper { display: none; }
  .step legend { font-size: 26px; }
  .dash-head h1 { font-size: 30px; }
  .empty { padding: 56px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-beam { opacity: 1; transform: none; } .hero-glow { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; }
}

/* ---------- 簡章內容元件 ---------- */
a.inline { color: var(--accent); text-underline-offset: 3px; }
.section-tight { padding: 64px 0; border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.facts div { padding: 8px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.facts dd { margin: 4px 0 0; font-size: 18px; }
.fact-num { font-family: var(--en); font-weight: 300; font-size: 48px; color: var(--gold); margin-right: 6px; line-height: 1.1; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 22px; width: 14px; height: 1px; background: var(--gold); }
.mini { list-style: none; padding: 0; margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.mini li { padding: 4px 0; } .mini span { font-family: var(--en); color: var(--gold); margin-right: 10px; font-size: 13px; }
.score-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.bar { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3em; align-items: center; gap: 16px; padding: 8px 0; font-size: 15px; }
.bar-track { height: 2px; background: var(--line); position: relative; }
.bar-track span { position: absolute; left: 0; top: -1px; height: 4px; background: var(--gold); }
.bar b { font-family: var(--en); font-weight: 300; text-align: right; color: var(--gold); }
.seats { font-family: var(--sans); font-size: 13px; color: var(--accent); border: 1px solid var(--accent); padding: 0 8px; margin-left: 12px; vertical-align: middle; letter-spacing: .05em; }
.guide { font-size: 15px; margin: 8px 0 0; }
.docs-label { font-size: 13px; color: var(--accent); letter-spacing: .1em; margin: 16px 0 6px; }
.docs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.docs li { font-size: 13px; padding: 2px 10px; border: 1px solid var(--line); color: var(--text); }
.docs li.opt-doc { color: var(--muted); border-style: dashed; }
.callout { border-left: 3px solid var(--accent); background: var(--bg-alt); padding: 16px 20px; margin: 0 0 32px; font-size: 16px; }
.theme-light .callout { background: #F3EDE2; }
.principles.three { grid-template-columns: repeat(3, 1fr); }
.score-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.table caption { text-align: left; padding: 14px 16px; font-weight: 500; caption-side: top; border-bottom: 1px solid var(--line); }
.rules { margin: 32px 0 0; padding-left: 1.2em; color: var(--text); }
.rules li { margin-bottom: 8px; }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.footer-grid a.inline { display: inline; padding: 0; color: var(--ivory); }
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact-num { font-size: 40px; }
  .hero::after { background: linear-gradient(0deg, rgba(14,14,15,.96) 30%, rgba(14,14,15,.55) 70%, rgba(14,14,15,.35)); }
  .bar { grid-template-columns: 7.5em 1fr 2.6em; gap: 10px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 1023px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .score-preview, .score-tables, .principles.three { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; }
  .bar { grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 2.6em; }
}

/* 預覽站提示（環境變數 PREVIEW=1 時顯示） */
.preview-bar { position: relative; z-index: 60; background: #B3412E; color: #fff; text-align: center; font-size: 14px; padding: 0 12px; height: 38px; line-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-hero .preview-bar { position: fixed; top: 0; left: 0; right: 0; }
.has-hero.has-preview .site-header { top: 38px; }

/* ---------- 設計優化 ---------- */
/* 專注模式：報名時只保留品牌與返回 */
.focus-exit { font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.focus-exit:hover { color: var(--text); border-color: var(--accent); }
.step legend:focus { outline: none; }
/* 表單兩欄 */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; grid-auto-flow: row dense; }
.field-grid .field { grid-column: 1 / -1; }
.field-grid .field.half { grid-column: auto; }
/* 類別切換 */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; margin: 8px 0 8px; }
.seg-btn { font: inherit; font-size: 16px; background: none; border: 0; border-left: 1px solid var(--line); padding: 14px 8px; cursor: pointer; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; }
.seg-btn:first-child { border-left: 0; }
.seg-btn small { font-size: 12px; font-family: var(--en); letter-spacing: .05em; }
.seg-btn[aria-selected="true"] { background: var(--ink); color: var(--ivory); }
.award-pick { margin: 24px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag-sm { font-size: 12px; padding: 1px 8px; border: 1px solid var(--line); color: var(--muted); letter-spacing: .04em; }
.theme-dark .tag-sm { border-color: var(--graphite); color: var(--stone); }
/* 獎項頁文件收合 */
.docs-box { margin-top: 12px; }
.docs-box summary { cursor: pointer; font-size: 14px; color: var(--accent); list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
.docs-box summary::-webkit-details-marker { display: none; }
.docs-box summary::after { content: '+'; font-family: var(--en); font-weight: 300; font-size: 18px; line-height: 1; }
.docs-box[open] summary::after { content: '−'; }
.docs-box .docs { margin-top: 10px; }
/* 首頁影像帶 */
.band { position: relative; height: 420px; overflow: hidden; background: var(--obsidian); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,15,.85), rgba(14,14,15,.2) 60%, rgba(14,14,15,.05)); }
.band-text { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 1; }
.band-text .en-serif { font-size: 44px; color: var(--gold); margin: 0 0 8px; }
.band-zh { font-family: var(--serif); font-size: 22px; color: var(--ivory); max-width: 520px; letter-spacing: .05em; }
/* 評選頁配分表等高 */
.score-tables { align-items: stretch; }
.score-tables .table-wrap { height: 100%; }
@media (max-width: 767px) {
  .display { font-size: 44px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .field.half { grid-column: 1 / -1; }
  .band { height: 300px; }
  .band-text .en-serif { font-size: 32px; }
  .band-zh { font-size: 18px; }
  .seg-btn { font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 1100px) { .display { font-size: 60px; } }

/* ---------- 品牌字標 ---------- */
.brand { align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text .brand-name { font-size: 17px; }
.brand-text .brand-mark { font-size: 10px; letter-spacing: .38em; margin-top: 2px; }
.footer-grid img { margin-bottom: 12px; }
/* 內頁頁首材質影像 */
.page-head.has-img { position: relative; overflow: hidden; }
.page-head.has-img::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 55%; background: var(--head-img) center / cover no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-head.has-img .wrap { position: relative; }
@media (max-width: 767px) {
  .brand-logo { width: 30px; height: 30px; }
  .brand-text .brand-name { font-size: 15px; }
  .page-head.has-img::before { width: 100%; opacity: .18; }
}

/* 原創性審查辦法條文 */
.prose ol.articles { list-style: none; padding: 0; margin: 0; }
.prose ol.articles li { margin: 0 0 22px; }
.prose ol.articles h3 { margin: 0 0 6px; }
.prose ol.articles p { margin: 0; }
