:root {
  color-scheme: light;
  --ink: #1b1e27;
  --muted: #7b8190;
  --line: #e6e8ef;
  --canvas: #f3f5f8;
  --card: #fff;
  --accent: #e23b2f;
  --accent-ink: #9d241c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}
.brand h1, .brand-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(145deg, #ff6a3d, var(--accent) 55%, #9d241c);
  box-shadow: 0 4px 10px rgba(226, 59, 47, 0.28);
}

.feed, .sheet {
  width: min(720px, calc(100% - 24px));
  margin: 18px auto 48px;
}
.hero {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(27, 30, 39, 0.06);
}
.hero-media {
  display: block;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, #e7ebf3, #f8f9fb 60%, #d9e2ef);
}
.hero-media img, .eyecatch img, .row-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}
.hero-body strong {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
}
.hero-body time, .byline time { color: var(--muted); font-size: 13px; }
.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1ee;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.rows { list-style: none; margin: 14px 0 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 2px;
}
.row:hover strong { color: var(--accent-ink); }
.row-thumb {
  flex: 0 0 112px;
  width: 112px;
  height: 74px;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #e7ebf3, #f8f9fb 60%, #d9e2ef);
}
.row-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-copy strong {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.story {
  padding: 8px 4px 4px;
}
.crumb { margin: 0 0 14px; }
.crumb a { color: var(--muted); font-size: 13px; font-weight: 700; }
.crumb a:hover { color: var(--accent-ink); }
.story h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}
.eyecatch {
  margin: 16px 0 0;
  overflow: hidden;
  border-radius: 16px;
  background: #e7ebf3;
}
.eyecatch img { max-height: 420px; object-position: center 18%; }
.lead p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.85;
}
.origin {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}
.origin:hover { background: #2a3040; }
.origin-url { margin: 10px 0 0; font-size: 12px; word-break: break-all; }
.origin-url a { color: var(--muted); }
.more { margin-top: 28px; padding-top: 8px; }
.more h2 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-size: 18px;
  font-weight: 800;
}
.notfound h1 { margin-bottom: 8px; }
.empty { padding: 32px 0; color: var(--muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 22px 0 0;
}
.pagination .page-numbers, .pagination .gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
}
.pagination a.page-numbers { background: #fff; }
.pagination a.page-numbers:hover { color: var(--accent-ink); }
.pagination .current { background: var(--ink); color: #fff; font-weight: 700; }

.site-footer {
  padding: 8px 16px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .brand h1, .brand-name { font-size: 16px; }
  .hero-body strong, .story h1 { font-size: 22px; }
  .row-thumb { flex-basis: 96px; width: 96px; height: 64px; }
  .row-copy strong { font-size: 15px; }
  .eyecatch img { max-height: 240px; }
}
