/*
Theme Name: 地面報告 Ground Report
Theme URI: https://f-url.com/
Author: Ren / Zhou
Author URI: https://f-url.com/
Description: 地面報告 Ground Report 的子主題。父主題：Twenty Twenty-Four。普通人視角，看中國經濟數據背後真實情況。米色底、襯線字標題、克制排版，每個欄目有專屬色。
Version: 0.2.4
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: ground-report
Tags: blog, news, custom-colors, serif, beige
*/

/* ============ 地面報告：基礎（v0.6，2026-11-14 設計審閱） ============
   酒紅只做品牌，藍灰負責互動，圖表獨立配色；用留白、細線、字重做層次。 */
:root {
  --gr-bg: #EBE1CC;
  --gr-bg-2: #FFF9EA;
  --gr-ink: #2B2620;
  --gr-ink-2: #5A5248;
  --gr-muted: #5A5248;
  --gr-line: #D2C6AB;
  --gr-brand: #8B2E1F;
  --gr-brand-hover: #6F2418;
  --gr-accent: #2F3E46;
  --gr-accent-hover: #24313A;
  --gr-accent-soft: #DDE3E3;
  --gr-chart-past: #CDBB94;
  --gr-chart-current: #4F6D7A;
  --gr-chart-warn: #B7791F;
  --gr-chart-target: #2B2620;
  --gr-up: #C8372D;
  --gr-down: #2E7D5B;
  --gr-flat: #8A8274;
  --gr-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, "Times New Roman", serif;
  --gr-sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 各欄目專屬色：只有地面報告用酒紅實心（全站唯一）；其餘欄目統一藍灰標籤 */
  --gr-report: #8B2E1F;
}

body {
  background: var(--gr-bg);
  color: var(--gr-ink);
  font-family: var(--gr-sans);
  font-size: 17px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; }

a { color: var(--gr-accent); text-decoration: underline; }
a:hover { color: var(--gr-brand); }
.arr { display: inline-block; transition: transform .15s ease; }
a:hover .arr { transform: translateX(3px); }

h1, h2, h3, h4,
.site-title, .entry-title,
.gr-hero-title, .gr-section-title {
  font-family: var(--gr-serif);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* ============ 頁首 / 頁尾 ============ */
.gr-header {
  background: var(--gr-bg-2);
  border-bottom: 2px solid var(--gr-brand);
}
.gr-ruleline { border-top: 1px solid var(--gr-line); }
.gr-masthead { max-width: 1200px; margin: 0 auto; padding: 28px 24px 18px; }
.gr-masthead .site-title { font-size: 34px; margin: 0; }
.gr-masthead .site-title a { color: var(--gr-ink); text-decoration: none; }
.gr-logo { display: inline-block; }
.gr-logo img { height: 100px; width: auto; display: block; }
.gr-tagline { color: var(--gr-ink-2); margin: 6px 0 0; font-size: 15px; }
.gr-nav { max-width: 1200px; margin: 0 auto; padding: 0 24px 14px; }
.gr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.gr-nav a { color: var(--gr-ink); font-size: 15px; padding-bottom: 3px; border-bottom: 2px solid transparent; text-decoration: none; }
.gr-nav a:hover { color: var(--gr-brand); border-bottom-color: var(--gr-brand); text-decoration: none; }

.gr-footer {
  border-top: 1px solid var(--gr-line);
  background: var(--gr-bg-2);
  color: var(--gr-ink-2);
  font-size: 14px;
  margin-top: 56px;
}
.gr-footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; }

/* ============ 首頁區塊 ============ */
.gr-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gr-hero { padding: 46px 0 32px; border-bottom: 1px solid var(--gr-line); }
.gr-hero-title { font-size: 40px; margin: 0 0 10px; }
.gr-hero p { color: var(--gr-ink-2); max-width: 640px; }
.gr-btn {
  display: inline-block; background: var(--gr-accent); color: #fff;
  padding: 10px 20px; border-radius: 4px; font-size: 15px; text-decoration: none;
}
.gr-btn:hover { background: var(--gr-accent-hover); color: #fff; text-decoration: none; }

.gr-section { padding: 37px 0; border-bottom: 1px solid var(--gr-line); }
.gr-section-title { font-size: 24px; margin: 0 0 4px; }
/* 主題報告標題用酒紅，是整頁唯一的酒紅大標題 */
.gr-section-title--brand { color: var(--gr-brand); }
.gr-section-title--brand a { color: var(--gr-brand); text-decoration: none; }
.gr-section-title--brand a:hover { color: var(--gr-brand-hover); }
.gr-kicker { color: var(--gr-muted); font-size: 13px; letter-spacing: 0.12em; margin: 0 0 6px; }
.gr-lede { color: var(--gr-ink-2); }

.gr-indicators { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gr-indicator { background: var(--gr-bg-2); border: 1px solid var(--gr-line); border-radius: 6px; padding: 16px; box-shadow: 0 1px 2px rgba(43, 38, 32, .06); }
.gr-indicator .label { font-size: 14px; color: var(--gr-ink-2); }
.gr-indicator .value { font-family: var(--gr-serif); font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.gr-indicator .note { font-size: 13px; color: var(--gr-muted); }
.gr-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.gr-dot-up { background: var(--gr-up); }
.gr-dot-down { background: var(--gr-down); }

.gr-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gr-cards-3 { grid-template-columns: repeat(3, 1fr); }
.gr-card { background: var(--gr-bg-2); border: 1px solid var(--gr-line); border-radius: 6px; padding: 20px; }
.gr-card h3 { margin-top: 0; }
.gr-quote { font-family: var(--gr-serif); font-size: 22px; line-height: 1.6; }
.gr-voice { font-style: normal; }
.gr-meta { color: var(--gr-muted); font-size: 13px; }
.gr-thin { border: 0; border-top: 1px solid var(--gr-line); margin: 4px 0 16px; }

/* 欄目標籤：地面報告酒紅實心；其餘欄目統一藍灰樣式 */
.gr-cat { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; color: #fff; text-decoration: none; }
.gr-cat-report { background: var(--gr-report); }
.gr-cat-map, .gr-cat-index, .gr-cat-story, .gr-cat-watch, .gr-cat-weekly { background: var(--gr-accent-soft); color: var(--gr-accent); }

/* 近期更新：分類標籤統一藍灰樣式，標題深墨色、hover 才變酒紅 */
.gr-tag { display: inline-block; background: var(--gr-accent-soft); color: var(--gr-accent); border-radius: 999px; padding: 2px 10px; font-size: 12px; text-decoration: none; }
.gr-updates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gr-update { background: var(--gr-bg-2); border: 1px solid var(--gr-line); border-radius: 6px; padding: 18px 20px; }
.gr-update h3 { margin: 8px 0 4px; font-size: 18px; }
.gr-update h3 a { color: var(--gr-ink); text-decoration: none; }
.gr-update h3 a:hover { color: var(--gr-brand); }

/* 文章與列表：內文另限 720px 寬，好讀，主流新聞站做法 */
.entry-title { font-size: 32px; }
.entry-content > *, .gr-prose { max-width: 720px; }
.post, .page { background: var(--gr-bg-2); border: 1px solid var(--gr-line); border-radius: 6px; padding: 24px; margin-top: 24px; margin-bottom: 24px; }
.gr-chart-placeholder {
  border: 1px dashed var(--gr-line); border-radius: 6px; padding: 28px;
  text-align: center; color: var(--gr-muted); background: var(--gr-bg-2);
}
.gr-chart-placeholder .gr-meta { font-size: 14px; }

/* 留言表單：輸入框與留言框不超出容器（WordPress 留言框預設 cols=45，手機上會撐出界） */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 4 欄指標（地面指數）：不要用行內 style，改用 class，才吃得到斷點 */
.gr-indicators-4 { grid-template-columns: repeat(4, 1fr); }

/* 主流斷點：桌機 1200px 容器 → 平板 1024 → 手機 640 → 小手機 420 */
@media (max-width: 1024px) {
  .gr-indicators { grid-template-columns: repeat(3, 1fr); }
  .gr-indicators-4 { grid-template-columns: repeat(2, 1fr); }
  .gr-cards-3 { grid-template-columns: repeat(3, 1fr); }
  .gr-wrap, .gr-masthead, .gr-nav, .gr-footer-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 640px) {
  .gr-indicators, .gr-indicators-4 { grid-template-columns: repeat(2, 1fr); }
  .gr-cards, .gr-cards-3, .gr-updates { grid-template-columns: 1fr; }
  .gr-hero-title { font-size: 30px; }
  .gr-hero { padding: 32px 0 23px; }
  .gr-section { padding: 28px 0; }
  .post, .page { margin-top: 16px; }
  .gr-wrap, .gr-masthead, .gr-nav, .gr-footer-inner { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) {
  .gr-indicators, .gr-indicators-4 { grid-template-columns: 1fr; }
  .gr-indicator .value { font-size: 26px; }
}
