/* Panama News Blog - 巴拿馬新聞中文博客 */
:root {
  --bg: #f7f5f0;
  --bg-card: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #6b655c;
  --line: #e5e0d6;
  --accent: #b03a2e;
  --accent-dark: #8f2c22;
  --brand: #7a1f1a;
  --cat-politics: #b03a2e;
  --cat-economy: #1f6f5c;
  --cat-society: #2c5f8a;
  --cat-transport: #8a6d1f;
  --cat-technology: #5b4b8a;
  --cat-international: #7a4a2c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Noto Sans SC", "Source Han Sans TC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.site-nav a {
  color: rgba(255,255,255,.92); text-decoration: none;
  padding: 6px 10px; border-radius: 6px; font-size: 14px;
}
.site-nav a:hover { background: rgba(255,255,255,.15); }
.lang-switch { display: flex; gap: 6px; }
.lang-switch a {
  color: rgba(255,255,255,.8); text-decoration: none; font-size: 13px;
  padding: 4px 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px;
}
.lang-switch a.active { background: #fff; color: var(--brand); font-weight: 600; }

/* Home hero */
.home-hero { padding: 36px 0 12px; text-align: center; }
.hero-date { color: var(--ink-soft); font-size: 14px; letter-spacing: 2px; }
.home-hero h1 { font-size: 30px; margin: 6px 0; font-weight: 800; }
.hero-sub { color: var(--ink-soft); font-size: 14px; }

.section-title {
  font-size: 19px; font-weight: 700; margin: 26px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}

/* News cards */
.news-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.news-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.news-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.news-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--accent); }
.news-desc { color: var(--ink-soft); font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Meta */
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.tag {
  padding: 2px 9px; border-radius: 20px; font-size: 12px; color: #fff; text-decoration: none; font-weight: 600;
}
.tag-politics { background: var(--cat-politics); }
.tag-economy { background: var(--cat-economy); }
.tag-society { background: var(--cat-society); }
.tag-transport { background: var(--cat-transport); }
.tag-technology { background: var(--cat-technology); }
.tag-international { background: var(--cat-international); }
.source { font-style: italic; }
.source::before { content: "· "; }

/* Single article */
.article { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; margin: 26px 0 40px; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.article-title { font-size: 26px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.source-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.article-body { font-size: 16.5px; }
.article-body p { margin-bottom: 1.1em; }
.article-body h2, .article-body h3 { margin: 1.3em 0 .5em; }
.article-body a { color: var(--accent); }
.article-body blockquote { border-left: 3px solid var(--line); padding-left: 14px; color: var(--ink-soft); margin: 1em 0; }

/* Page header */
.page-header { padding: 28px 0 8px; }
.page-header h1 { font-size: 24px; font-weight: 800; }

/* Taxonomy grid */
.taxonomy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 20px 0 40px; }
.taxonomy-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow .15s ease;
}
.taxonomy-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.taxonomy-name { font-weight: 700; font-size: 17px; }
.taxonomy-count { color: var(--ink-soft); font-size: 13px; }

/* Archives */
.archive-month { margin-bottom: 26px; }
.archive-date { font-size: 18px; font-weight: 700; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.archive-list { list-style: none; }
.archive-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.archive-list time { color: var(--ink-soft); font-size: 13px; min-width: 52px; }
.archive-list a { color: var(--ink); text-decoration: none; flex: 1; }
.archive-list a:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; margin-top: 30px; color: var(--ink-soft); font-size: 13px; text-align: center; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 40px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--bg-card); font-size: 14px; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* Responsive */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav { width: 100%; }
  .article { padding: 20px; }
  .article-title { font-size: 21px; }
  .home-hero h1 { font-size: 24px; }
}
