/* =========================================================
   meat.observer — style.css
   改顏色：只要改 :root 的色碼
   ========================================================= */
:root {
  --ice: #EEF2F4;        /* 頁面底色：冷鏈冰藍灰 */
  --paper: #FFFFFF;
  --ink: #142233;        /* 主文字、標題 */
  --muted: #5B6B7A;      /* 次要文字 */
  --line: #D3DCE2;       /* 分隔線 */
  --red: #9E2A3A;        /* 強調色：肉品紅（少量使用） */
  --gold: #8A6A1F;       /* 輔助色：穀物金（飼料、穀物相關） */
  --gold-soft: #F3EAD3;
  --max: 1120px;
  --read: 720px;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ice); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); }

/* ---------- 頁首 ---------- */
.top { background: var(--ink); color: #FFFFFF; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #FFFFFF; text-decoration: none; letter-spacing: 0.5px; }
.brand span { color: #E8A0AA; }
.menu { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.menu a { color: #D6DEE5; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; }
.menu .lang { border: 1px solid #4A5C70; border-radius: 4px; padding: 1px 10px; }

/* ---------- 首頁主視覺：豬 牛 禽 ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.3; margin: 0 0 16px; max-width: 18em; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 40px; max-width: 36em; }
.species { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.species > div { padding: 20px 24px 8px 0; }
.species > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.species .char { font-family: var(--serif); font-weight: 900; font-size: clamp(88px, 13vw, 168px); line-height: 1; margin: 0; color: var(--ink); }
.species .char::after { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-top: 14px; }
.species h2 { font-size: 18px; margin: 16px 0 4px; }
.species p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.status { margin: 36px 0 0; padding: 14px 18px; background: var(--paper); border-left: 4px solid var(--gold); font-size: 16px; }

/* ---------- 一般區塊 ---------- */
.block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: 0; }
.block h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); margin: 0 0 12px; line-height: 1.4; }
.block .intro { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* 價格背後的力量 */
.drivers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.driver { padding-left: 18px; border-left: 3px solid var(--ink); }
.driver.grain { border-left-color: var(--gold); }
.driver h3 { font-size: 18px; margin: 0 0 4px; }
.driver p { margin: 0; color: var(--muted); font-size: 16px; }

/* 報告 */
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.empty h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.empty p { margin: 0 0 18px; color: var(--muted); }
.planned { list-style: none; margin: 24px 0 0; padding: 0; }
.planned li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.planned li span { color: var(--muted); font-size: 14px; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.report-list a { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); text-decoration: none; }
.report-list a:hover { color: var(--red); }
.report-list p { margin: 4px 0 0; color: var(--muted); }

/* 資料來源 */
.sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; }
.sources div { padding: 12px 0; border-top: 1px solid var(--line); }
.sources dt { font-weight: 700; }
.sources dd { margin: 0; color: var(--muted); font-size: 15px; }

/* 作者 */
.author { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.author img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); }
.author p { margin: 0 0 12px; }

/* 按鈕 */
.btn { display: inline-block; background: var(--ink); color: #FFFFFF; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: 4px; font-size: 16px; }
.btn:hover { background: var(--red); color: #FFFFFF; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #FFFFFF; }

/* 文章（報告範本、關於頁） */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.35; margin: 0 0 10px; }
.page-head .meta { color: var(--muted); margin: 0; }
.article { padding: 40px 0 64px; }
.article h2 { font-family: var(--serif); font-size: 25px; margin: 48px 0 12px; line-height: 1.4; }
.article h3 { font-size: 19px; margin: 28px 0 8px; }
.article p, .article li { margin: 0 0 14px; }
.article ul { padding-left: 22px; }
.summary { background: var(--paper); border-left: 4px solid var(--red); padding: 18px 22px; margin: 0 0 24px; }
.summary ul { margin: 0; }
figure { margin: 24px 0; }
figure .chart-slot { aspect-ratio: 16 / 9; background: var(--paper); border: 1px dashed #9AA9B5; display: flex; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--ink); color: #AEBBC7; font-size: 14px; padding: 32px 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 46em; }
.foot a { color: #FFFFFF; }

/* ---------- 手機與平板 ---------- */
@media (max-width: 860px) {
  .species { grid-template-columns: 1fr; }
  .species > div { display: grid; grid-template-columns: 96px 1fr; gap: 0 18px; align-items: start; padding: 18px 0; }
  .species > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .species .char { font-size: 84px; grid-row: span 2; }
  .species .char::after { width: 32px; height: 3px; margin-top: 8px; }
  .species h2 { margin-top: 4px; }
  .drivers, .sources { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .block { padding: 48px 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .menu { gap: 14px; font-size: 14px; }
  .menu .hide-small { display: none; }
}

/* =========================================================
   v2：依「Meat Observer 網站架構」白板
   ========================================================= */
/* 五種肉品大字 */
.meats { display: grid; grid-template-columns: 1fr 1fr 1fr 1.55fr 1fr; border-top: 2px solid var(--ink); }
.meats a { display: block; padding: 18px 18px 14px 0; color: var(--ink); text-decoration: none; }
.meats a + a { border-left: 1px solid var(--line); padding-left: 18px; }
.meats .char { font-family: var(--serif); font-weight: 900; font-size: clamp(64px, 9vw, 120px); line-height: 1; margin: 0; white-space: nowrap; }
.meats .char::after { content: ""; display: block; width: 40px; height: 4px; background: var(--red); margin-top: 12px; }
.meats a:hover .char { color: var(--red); }
.meats .name { display: block; font-weight: 700; margin-top: 12px; }
.meats .phase { display: block; font-size: 14px; color: var(--muted); }

/* 閱讀地圖：全球結構 → 當下與展望 → 台灣 */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 0.9fr; gap: 0 16px; align-items: stretch; }
.flow .col h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; }
.flow .arrow { align-self: center; font-size: 28px; color: var(--muted); }
.flow .item { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; color: var(--ink); text-decoration: none; }
.flow a.item:hover { border-color: var(--ink); }
.flow .item strong { display: block; font-size: 17px; }
.flow .item span { display: block; font-size: 15px; color: var(--muted); line-height: 1.6; }
.flow .item.star { border: 2px solid var(--red); }
.flow .tw { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.flow .tw span { color: #C6D0DA; }

/* 本週重點 */
.weekly { background: var(--paper); border-top: 4px solid var(--ink); padding: 22px 24px; }
.weekly h2 { margin-bottom: 6px; }
.weekly p { margin: 0; color: var(--muted); }

/* 建置進度（真正的順序，所以用編號） */
.phases { list-style: none; counter-reset: ph; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; }
.phases li { counter-increment: ph; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.phases li::before { content: "第 " counter(ph) " 階段"; display: block; font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.phases li.now { border: 2px solid var(--red); }
.phases li.now::before { content: "第 " counter(ph) " 階段（進行中）"; color: var(--red); }
.phases p { margin: 0; font-size: 15px; }

/* 棋盤格示意 */
.matrix { border-collapse: collapse; width: 100%; max-width: 640px; background: var(--paper); font-size: 15px; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.matrix thead th { font-family: var(--serif); font-size: 18px; }
.matrix tbody th { text-align: left; font-weight: 700; white-space: nowrap; }
.matrix td { color: #B6C2CC; }
.matrix-wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: start; }
.matrix-key p { margin: 0 0 10px; }
.matrix-key strong { color: var(--red); }

/* 清單與大綱 */
.outline { margin: 0; padding-left: 22px; }
.outline li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.panel h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; }
.panel .when { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.panel p { margin: 0 0 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
.tag-list li { background: var(--ice); border: 1px solid var(--line); border-radius: 4px; padding: 2px 10px; font-size: 15px; }

@media (max-width: 860px) {
  .meats { grid-template-columns: repeat(3, 1fr); }
  .meats a:nth-child(4) { grid-column: span 2; }
  .meats a:nth-child(4), .meats a:nth-child(4) ~ a { border-top: 1px solid var(--line); }
  .meats a:nth-child(4) { border-left: 0; padding-left: 0; }
  .meats .char { font-size: 64px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; margin: 4px 0 12px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .matrix-wrap, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .phases { grid-template-columns: 1fr; }
  .meats .char { font-size: 52px; }
  .matrix { font-size: 14px; }
  .matrix th, .matrix td { padding: 6px; }
}
