:root {
  --brand: #0c6b9e;
  --brand-dark: #08496c;
  --ink: #1b1f24;
  --muted: #69727d;
  --line: #e3e7ec;
  --bg: #f5f7f9;
  --card: #ffffff;
  --press: #c2410c;
  --media: #6d28d9;
  --radius: 10px;
  --font: "Noto Sans HK", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Heiti TC", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

.site-header { background: #fff; border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { margin: 0; line-height: 0; flex: none; }
.logo img { width: 150px; height: auto; display: block; }
.global-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.global-nav > a { padding: 8px 12px; font-weight: 700; font-size: 15px; border-radius: 6px; white-space: nowrap; }
.global-nav > a.active, .global-nav > a:hover { background: #e8f2f8; color: var(--brand-dark); }
.search { margin-left: auto; }
.search input { width: 200px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; background: var(--bg); }
.nav-toggle, .nav-button { display: none; }

.site-main { padding: 24px 0 48px; min-height: 60vh; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.block { margin-bottom: 32px; }
.block-title { font-size: 18px; margin: 0 0 14px; padding-left: 10px; border-left: 4px solid var(--brand); line-height: 1.3; }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 30, 50, .06); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-thumb { display: block; aspect-ratio: 16 / 9; background: #dfe5ea; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card-link:hover .card-thumb img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.card-title { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card-excerpt { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-hero .card-title { font-size: 22px; -webkit-line-clamp: 3; }
.card-hero .card-body { padding: 16px 18px 18px; }
.card-small .card-title { font-size: 14px; }
.card-wide .card-link { flex-direction: row; }
.card-wide .card-thumb { width: 240px; flex: none; aspect-ratio: 16 / 10; }
.card-wide .card-body { padding: 12px 16px; justify-content: center; }
.card-wide .card-title { font-size: 17px; -webkit-line-clamp: 2; }
.list { display: grid; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 4px; color: #fff; background: var(--brand); line-height: 1.7; }
.badge-press { background: var(--press); }
.badge-media { background: var(--media); }
a.badge:hover { color: #fff; opacity: .9; }

.side-block { background: #fff; border-radius: var(--radius); padding: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; counter-reset: side; }
.side-list li { counter-increment: side; position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.side-list li:first-child { border-top: 0; }
.side-list li::before { content: counter(side); position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: #e8f2f8; color: var(--brand-dark); font-size: 11px; font-weight: 700; text-align: center; line-height: 20px; }
.side-list time { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tags a { background: #eef3f7; color: var(--brand-dark); border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.tags a:hover { background: var(--brand); color: #fff; }
.tags-large a { font-size: 15px; padding: 6px 14px; }
.tags small { color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0; }
.pager a, .pager span { min-width: 40px; padding: 7px 12px; text-align: center; border-radius: 6px; background: #fff; font-size: 14px; }
.pager .current { background: var(--brand); color: #fff; font-weight: 700; }
.pager .gap { background: none; }

.list-header { margin: 8px 0 24px; }
.list-header h1 { margin: 0; font-size: 28px; }
.kicker { margin: 0; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .05em; }
.search-large { display: flex; gap: 8px; margin: 16px 0 8px; max-width: 560px; }
.search-large input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font: inherit; }
.search-large button { border: 0; background: var(--brand); color: #fff; border-radius: 8px; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; }
.preview-note { background: #fff4d6; border: 1px solid #f0d27a; padding: 10px 14px; border-radius: 8px; }
.entry { background: #fff; border-radius: var(--radius); padding: 28px 32px; }
.entry-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.entry-title { font-size: 28px; line-height: 1.45; margin: 0 0 8px; }
.entry-author { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.entry-eyecatch { margin: 0 0 20px; }
.entry-eyecatch img { width: 100%; border-radius: 8px; display: block; }
.entry-body { font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-body p { margin: 0 0 1.2em; }
.entry-body h2 { font-size: 21px; margin: 1.8em 0 .8em; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.entry-body h3 { font-size: 18px; margin: 1.6em 0 .6em; }
.entry-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.entry-body img { border-radius: 6px; display: block; margin: 0 auto; }
.entry-body figure { margin: 1.4em 0; }
.entry-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-body blockquote { margin: 1.4em 0; padding: 12px 18px; background: var(--bg); border-left: 4px solid var(--line); }
.entry-body table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.entry-body td, .entry-body th { border: 1px solid var(--line); padding: 6px 10px; }
.entry-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; }
.entry-body ul, .entry-body ol { padding-left: 1.4em; }
.entry-source { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }
.entry-source a { color: var(--brand); }
.entry-tags { margin: 18px 0; }
.entry-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.entry-adjacent a { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.entry-adjacent a.next { grid-column: 2; text-align: right; }
.entry-adjacent small { display: block; color: var(--muted); }
.related { margin-top: 32px; }

.site-footer { background: #10212e; color: #b9c4cc; padding: 32px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-logo img { width: 130px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0; }
.site-footer small { display: block; color: #7f8d97; }

@media (max-width: 960px) {
  .columns { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { min-height: 56px; justify-content: space-between; }
  .logo img { width: 120px; }
  .nav-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-button span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 3px solid var(--brand); box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav-toggle:checked ~ .global-nav { display: flex; }
  .search { margin: 8px 0 0; }
  .search input { width: 100%; }
  .hero-side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-wide .card-thumb { width: 120px; aspect-ratio: 1 / 1; }
  .card-wide .card-title { font-size: 15px; }
  .card-wide .card-excerpt { display: none; }
  .card-hero .card-title { font-size: 19px; }
  .entry { padding: 18px 16px; border-radius: 0; margin: 0 -16px; }
  .entry-title { font-size: 22px; }
  .entry-body { font-size: 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid .card-title { font-size: 14px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .entry-adjacent { grid-template-columns: 1fr; }
  .entry-adjacent a.next { grid-column: 1; }
}
