/* 新聞媒體風格文章版型（自有品牌，不使用任何第三方平台的標識或名稱） */

:root {
  --text: #222;
  --text-soft: #666;
  --text-faint: #999;
  --link: #2440b3;
  --line: #e8e8e8;
  --bg: #fff;
  --bg-soft: #f7f8fa;
  --accent: #c8322b;
  --content-width: 740px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
}

/* ---- 站台頁首 ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  overflow-x: auto;
}
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.nav-external {
  color: var(--accent);
  font-weight: 600;
}

.footer-copy a {
  color: var(--text-faint);
  text-decoration: none;
}
.footer-copy a:hover { color: var(--accent); }

/* ---- 麵包屑 ---- */
.breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.cat-count {
  font-size: 13px;
  color: var(--text-faint);
  margin: -12px 0 18px;
}

/* ---- 文章主體 ---- */
.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.article h1 {
  font-size: 34px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.2px;
}

/* 作者／時間／地區資訊列 */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}
.article-meta__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.article-meta__author {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.article-meta__sep { color: var(--line); }
.article-meta__region {
  background: var(--bg-soft);
  padding: 1px 7px;
  border-radius: 3px;
}

/* 導語 */
.article-lead {
  font-size: 17px;
  color: var(--text-soft);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 0 0 30px;
  line-height: 1.85;
}

/* 編號小節標題 01 / 02 / 03 */
.article h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  margin: 44px 0 16px;
  padding-top: 8px;
}
.article h2 .num {
  display: block;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
}

.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.article p { margin: 0 0 20px; }

.article ul,
.article ol { margin: 0 0 22px; padding-left: 24px; }
.article li { margin-bottom: 9px; }

.article strong { font-weight: 700; }
.article em { font-style: normal; color: var(--accent); }

.article a { color: var(--link); text-decoration: none; }
.article a:hover { text-decoration: underline; }

/* 數據重點框 */
.data-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 24px;
}
.data-box ul { margin: 0; }
.data-box li:last-child { margin-bottom: 0; }

/* ---- 相關閱讀（內部連結）---- */
.related {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}
.related h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.related a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
.related a:hover { color: var(--accent); }

/* ---- 頁尾 ---- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.8;
}
.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px 20px 32px;
}
.site-footer a { color: var(--text-faint); text-decoration: none; }

/* ---- 首頁文章列表 ---- */
.home { max-width: var(--content-width); margin: 0 auto; padding: 28px 20px 56px; }
.home h1 { font-size: 24px; margin: 0 0 20px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.feed a { font-size: 19px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.5; }
.feed a:hover { color: var(--accent); }
.feed p { margin: 8px 0 0; font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.feed .feed-meta { margin-top: 8px; font-size: 12px; color: var(--text-faint); }

/* ---- 響應式 ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .article { padding: 22px 16px 40px; }
  .article h1 { font-size: 26px; }
  .article h2 { font-size: 19px; margin-top: 36px; }
  .site-header__inner { padding: 12px 16px; gap: 14px; }
  .related, .home { padding-left: 16px; padding-right: 16px; }
}

.disclaimer {
  font-size: 13px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 28px;
}
