:root {
  --blue: #376CCB; --blue-dark: #2655AD; --navy: #17243D;
  --ink: #292929; --muted: #626D7E; --line: #D5E2F7;
  --bg: #F4F7FD; --tint: #EDF3FF;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 500 16px/1.8 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.demo-bar { background: var(--navy); color: #fff; font-size: 13px; line-height: 1.6; padding: 10px 20px; text-align: center; }
.demo-bar b { color: #FFD9D6; }

header { background: #fff; border-bottom: 1px solid var(--line); }
header .wrap { max-width: 900px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { color: var(--navy); font-size: 21px; font-weight: 850; letter-spacing: -0.7px; text-decoration: none; }
.wordmark span { color: var(--blue); }
.wordmark .minor { color: var(--muted); font-size: 12px; margin-left: 10px; letter-spacing: .05em; }
.top-link { font-size: 13px; font-weight: 750; color: var(--blue-dark); border: 1px solid var(--line); padding: 7px 13px;
  border-radius: 50px; white-space: nowrap; text-decoration: none; background: #fff; }

/* 列表頁 */
.hero { padding: 56px 0 28px; }
.eyebrow { color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 7vw, 43px); line-height: 1.34; font-weight: 850; letter-spacing: -1.6px; margin: 0 0 18px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--blue); }
.subhead { color: var(--navy); font-size: clamp(18px, 4.6vw, 21px); line-height: 1.6; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 14px; max-width: 30em; }
.lead { color: var(--muted); margin: 0; max-width: 34em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 28px; }
.filters button { font: inherit; font-size: 14px; font-weight: 700; color: var(--blue-dark); background: #fff;
  border: 1px solid var(--line); border-radius: 50px; padding: 6px 16px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.filters-label { width: 100%; font-size: 13px; color: var(--muted); margin-bottom: 2px; }

.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
  margin-bottom: 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--blue); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card h2 { color: var(--navy); font-size: 22px; line-height: 1.45; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 14px; }
.nb { display: inline-block; }
.pull { margin: 0 0 12px; color: var(--ink); }
.more { color: var(--blue-dark); font-weight: 800; font-size: 15px; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tag { background: var(--tint); color: var(--blue-dark); font-weight: 750; border-radius: 6px; padding: 1px 9px; }
.tag.draft { background: #FFF1D6; color: #7A5300; }

.scores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--bg); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.scores .s { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.scores .label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.scores .from { font-size: 22px; font-weight: 800; color: var(--muted); }
.scores .to { font-size: 26px; font-weight: 850; color: var(--blue); letter-spacing: -0.5px; }
.scores .unit { font-size: 13px; color: var(--muted); }
.scores .arrow { color: var(--blue); font-weight: 800; }

.wall { padding: 36px 0 12px; }
.wall h3 { font-size: 20px; color: var(--navy); font-weight: 800; margin: 0 0 16px; }
.wall ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wall li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; }

/* 文章頁 */
.article { padding-top: 28px; }
.back { display: inline-block; color: var(--blue-dark); font-size: 14px; font-weight: 750; text-decoration: none; margin-bottom: 22px; }
.article .scores { background: #fff; border: 1px solid var(--line); }
.article-title { font-size: clamp(28px, 6.4vw, 38px); letter-spacing: -1.2px; margin-bottom: 18px; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--navy); margin: 8px 0 28px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; text-align: center; padding: 20px; }
.video-empty span { font-weight: 800; font-size: 18px; }
.video-empty small { color: #B9C6DE; font-size: 13px; max-width: 26em; }

.prose { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 26px 18px; }
.prose h2 { color: var(--navy); font-size: 20px; font-weight: 800; margin: 26px 0 8px; }
.prose h3 { color: var(--navy); font-size: 17px; font-weight: 800; margin: 20px 0 6px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose figure { margin: 18px 0; }
.prose img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.feedback { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--blue); border-radius: 0; }
.feedback p { margin: 0 0 8px; }

.todo { margin: 12px 0; border: 1px dashed #E0A93B; background: #FFF8EA; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #7A5300; }

.cta { text-align: center; padding: 52px 0 40px; }
.cta h3 { font-size: 28px; font-weight: 850; letter-spacing: -0.8px; margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 0 22px; }
.btn { display: inline-block; background: var(--blue-dark); color: #fff; text-decoration: none; font-weight: 800; border-radius: 50px; padding: 12px 30px; }

footer { border-top: 1px solid var(--line); margin-top: 8px; padding: 18px 0 26px; color: var(--muted); }
.footer-note { font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.footer-main { max-width: 900px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; line-height: 1.7; }
