*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #FFE369;
  --ink: #2B2B2B;
  --ink-2: #5A5A5A;
  --line: #E6E1CC;
  --link: #2F6F95;
  --bg: #FFFFFF;
  --soft: #FFFBEA;
  --max: 760px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Noto Sans TC', 'Noto Sans CJK TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere;
}

a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 頁首 */
.site-header { background: var(--brand); border-bottom: 1px solid #EBCB45; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.3; }
.brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 4px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.6; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.55); }
.site-nav a[aria-current="page"] { background: #FFFFFF; font-weight: 700; }

/* 內文 */
main { padding: 28px 0 48px; }
h1 { font-size: 28px; line-height: 1.4; margin: 0 0 16px; }
h2 { font-size: 21px; line-height: 1.5; margin: 36px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
h3 { font-size: 18px; line-height: 1.5; margin: 28px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.4em; }
li { margin: 4px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

.meta { margin: 0 0 20px; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.meta div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.meta dt { color: var(--ink-2); min-width: 5em; }
.meta dd { margin: 0; font-weight: 700; }

/* 表格 */
.table-wrap { margin: 8px 0 16px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.6; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--brand); font-weight: 700; }
tbody th { font-weight: 400; }
.plan-table td, .plan-table thead th + th { text-align: center; }

/* 首頁 */
.hero { margin: 0 0 24px; }
.hero-frame { position: relative; container-type: inline-size; border-radius: 16px; overflow: hidden; }
.hero img.hero-image { display: block; width: 100%; height: auto; }
/* COMING SOON：網頁文字疊在圖的左上（避開右側人手與左下手機）；左上局部暗角＋柔和陰影，亮處也看得清楚 */
.hero-frame::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 48% 52% at 0% 0%, rgba(20, 14, 6, 0.62) 0%, rgba(20, 14, 6, 0.32) 55%, rgba(20, 14, 6, 0) 100%); }
.hero-frame:not(:has(.hero-badge))::before { content: none; }
.hero-badge { position: absolute; top: 5.5%; left: 4.5%; margin: 0; display: flex; flex-direction: column; color: #FFFFFF; font-family: 'Noto Sans TC', 'Noto Sans CJK TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; font-weight: 700; font-size: clamp(18px, 6.2cqw, 46px); line-height: 1.08; letter-spacing: 0.06em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 14px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.hero-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: var(--brand); border-radius: 16px; }
.hero-placeholder img { width: 30%; max-width: 200px; height: auto; border-radius: 22%; }
.lead { font-size: 20px; font-weight: 700; line-height: 1.6; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.store { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); text-decoration: none; }
.store-name { font-weight: 700; }
.store-status { font-size: 14px; color: var(--ink-2); }
.cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cards li { margin: 0; }
.card { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: #D9B92E; background: var(--soft); }
.card-title { display: block; font-weight: 700; color: var(--link); }
.card-note { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* 草稿預覽標示（只出現在 --preview 產物，不會進部署） */
.draft-banner { margin: 0 0 20px; padding: 12px 14px; border: 2px solid #C0392B; border-radius: 10px; background: #FDECEA; color: #8E1F14; font-weight: 700; }
mark.todo { background: #FDECEA; color: #8E1F14; padding: 0 2px; }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; padding: 0; list-style: none; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 0; line-height: 1.7; }

@media (max-width: 479px) {
  .site-nav { width: 100%; }
  /* 360 寬：六個項目排成 3×2，不橫向捲動 */
  .site-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .site-nav a { padding: 3px 4px; font-size: 14px; text-align: center; white-space: nowrap; }
}

@media (min-width: 720px) {
  h1 { font-size: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
