/* Malilion AI Radar — 編輯感報刊樣式 */

:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --card: #f8f4ec;
  --ink: #1b1814;
  --ink-2: #463f36;
  --muted: #6b6155;
  --rule: #d6cbb8;
  --rule-strong: #1b1814;
  --accent: #c2381f;
  --accent-ink: #fff;
  --accent-soft: rgba(194, 56, 31, .1);
  --shadow: 0 18px 40px -24px rgba(40, 28, 12, .35);

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* 紙張紋理：極淡的雜訊，增加印刷質感 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
kbd {
  font: 500 .72rem/1 var(--sans);
  padding: .2em .45em; border: 1px solid var(--rule); border-radius: 4px; color: var(--muted);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- 印章 ---------- */
.seal {
  display: inline-grid; place-items: center;
  width: 1.9em; height: 1.9em;
  background: var(--accent); color: var(--accent-ink);
  font: 900 1em/1 var(--serif);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3px rgba(255,255,255,.35);
  transform: rotate(-4deg);
}
.seal span { display: block; line-height: 1.05; }
.seal--sm { width: 1.5em; height: 1.5em; font-size: .9em; margin-right: .5em; box-shadow: none; }

/* ---------- 報頭 ---------- */
.masthead { padding: clamp(18px, 3vw, 28px) 0 0; }
.masthead__meta {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  font: 500 .78rem/1.4 var(--sans); letter-spacing: .06em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.masthead__date { text-align: center; flex: 1 1 auto; }
.masthead__title {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2.4vw, 28px);
  padding: clamp(18px, 4vw, 40px) 0 clamp(8px, 2vw, 16px);
}
.masthead__title .seal { font-size: clamp(1.1rem, 3.4vw, 2.2rem); flex-direction: column; display: inline-flex; justify-content: center; width: 1.6em; height: 2.6em; }
.masthead h1, .kicker, .lead__title, .second__title { font-feature-settings: "palt" 1; }
.masthead h1 {
  margin: 0; text-align: center;
  font: 900 clamp(2.3rem, 8.4vw, 6.6rem)/1.02 var(--serif);
  letter-spacing: -.01em;
}
.h1__a, .h1__b { white-space: nowrap; }
.h1__b { font-weight: 500; font-style: italic; color: var(--accent); }
.masthead__sep { margin: 0 1.2em; opacity: .5; }
.masthead__tagline {
  margin: 0; padding-bottom: 14px; text-align: center;
  font: 500 clamp(.78rem, 1.6vw, .9rem)/1.5 var(--serif); letter-spacing: .2em; color: var(--ink-2);
}
.masthead__nav {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  border-top: 3px double var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.masthead__nav li { flex: 0 1 auto; }
.masthead__nav a, .masthead__nav button {
  display: flex; align-items: baseline; gap: .5em;
  padding: 12px clamp(12px, 2.6vw, 28px);
  background: none; border: 0; cursor: pointer;
  font: 700 .95rem/1 var(--serif); letter-spacing: .12em;
  position: relative;
}
.masthead__nav b { font: 500 .7rem/1 var(--sans); color: var(--accent); letter-spacing: .04em; }
.masthead__nav a::after, .masthead__nav button::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 6px; height: 1px; background: var(--accent);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.masthead__nav a:hover::after, .masthead__nav button:hover::after { left: 22%; right: 22%; }
[data-saved-count] { font: 500 .72rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 縮小導覽列 ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-101%); transition: transform .45s var(--ease);
}
.bar.is-on { transform: none; }
.bar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 56px; display: flex; align-items: center; gap: 20px;
}
.bar__brand { display: flex; align-items: center; font: 900 1.08rem/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.bar__links { list-style: none; margin: 0 auto 0 0; padding: 0; display: flex; gap: 2px; }
.bar__links a {
  display: block; padding: 8px 12px; font: 500 .88rem/1 var(--sans); color: var(--ink-2); border-radius: 999px;
  transition: color .2s, background .2s;
}
.bar__links a:hover { color: var(--ink); }
.bar__links a.is-active { color: var(--accent); background: var(--accent-soft); }
.saved-btn {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
  font: 500 .85rem/1 var(--sans); transition: border-color .2s;
}
.saved-btn:hover { border-color: var(--ink); }
.saved-count { min-width: 1.2em; text-align: center; color: var(--accent); }

/* ---------- 區塊共用 ---------- */
.section { padding: clamp(40px, 7vw, 88px) 0 clamp(8px, 2vw, 24px); }
#front { padding-top: clamp(20px, 3vw, 36px); }
#front .section__head { border-top: 0; padding-top: 0; }
.section--tint { background: var(--paper-2); margin-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); }
/* 區塊標頭：粗線之下，左為版名、右為工具 */
.section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.4vw, 28px); padding-top: 14px;
  border-top: 3px solid var(--rule-strong);
}
.section__note { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--muted); max-width: 40ch; text-align: right; }
.kicker {
  display: flex; align-items: baseline; gap: 12px; margin: 0;
  font: 900 clamp(1.5rem, 3.2vw, 2.2rem)/1.1 var(--serif); letter-spacing: .08em;
}
.kicker__no {
  align-self: center; padding: 4px 6px 3px; border: 1px solid var(--accent); border-radius: 2px;
  font: 700 .72rem/1 var(--sans); color: var(--accent); letter-spacing: .06em;
}
.kicker__en { font: italic 500 clamp(.8rem, 1.3vw, .92rem)/1 var(--serif); letter-spacing: .04em; color: var(--muted); }
.count { margin: 0 0 8px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.empty { margin: 24px 0; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); font-size: .9rem; }

/* 文章連結：底線由左展開 */
.hl {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .2s;
}
a:hover .hl, a:focus-visible .hl { background-size: 100% 1px; }
.meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font: 500 .76rem/1.4 var(--sans); color: var(--muted); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.meta .src { color: var(--ink-2); font-weight: 700; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

/* 收藏按鈕 */
.star {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  margin: -6px -8px 0 4px; border: 0; background: none; cursor: pointer; border-radius: 50%;
  color: var(--muted); opacity: 0; transition: opacity .2s, color .2s, background .2s;
}
.star svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.star:hover { color: var(--accent); background: var(--accent-soft); }
.star[aria-pressed="true"] { color: var(--accent); opacity: 1; }
.star[aria-pressed="true"] svg { fill: currentColor; }
.star.pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35) rotate(-8deg); } }
.item:hover .star, .item:focus-within .star { opacity: 1; }
@media (hover: none) { .star { opacity: 1; } }

/* 已讀 */
.is-read .hl, .is-read .t { color: var(--muted); }
.is-read .num { opacity: .45; }

/* ---------- 頭版 ---------- */
.front {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}
.lead { position: relative; padding: 0 clamp(20px, 3vw, 40px) clamp(24px, 3vw, 36px) 0; border-right: 1px solid var(--rule); }
.lead__no {
  display: block; font: 900 clamp(4rem, 9vw, 7.5rem)/.8 var(--serif); color: var(--accent);
  margin-bottom: 18px; letter-spacing: -.02em;
}
.lead__title {
  margin: 0 0 18px;
  font: 900 clamp(1.75rem, 4.2vw, 3.3rem)/1.22 var(--serif); letter-spacing: .01em; text-wrap: balance;
}
.lead__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead .meta { font-size: .85rem; }
.second { display: grid; align-content: start; }
/* 頭條下方的三則短訊 */
.briefs {
  list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 16px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--rule);
}
.briefs .item { padding: 0 18px; border-left: 1px solid var(--rule); }
.briefs .item:first-child { padding-left: 0; border-left: 0; }
.briefs .num { display: block; font: 700 .72rem/1 var(--sans); color: var(--accent); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.briefs h3 { margin: 0 0 8px; font: 700 .98rem/1.55 var(--serif); }
.second .item { padding: 0 0 clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 40px); }
.second .item + .item { border-top: 1px solid var(--rule); padding-top: clamp(18px, 2.4vw, 28px); }
.second__no { display: block; font: 900 2.2rem/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.second__title { margin: 0 0 12px; font: 700 clamp(1.15rem, 2vw, 1.45rem)/1.45 var(--serif); text-wrap: balance; }
.front .item > a { display: block; }

/* ---------- 要聞 ---------- */
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (min-width: 1025px) { .tools { flex-wrap: nowrap; } .field { width: 240px; } }
.field {
  position: relative; display: flex; align-items: center; gap: 8px;
  width: min(280px, 100%); padding: 0 2px; border-bottom: 1px solid var(--ink);
}
.field svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.field input {
  flex: 1; min-width: 0; padding: 9px 0; border: 0; background: none; outline: none;
  font: 400 .95rem/1.2 var(--sans); color: var(--ink);
}
.field input::placeholder { color: var(--muted); }
.field input::-webkit-search-cancel-button { filter: grayscale(1); }
.field:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 9px 30px 9px 12px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8073' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center no-repeat;
  font: 500 .85rem/1.2 var(--sans); color: var(--ink); max-width: 46vw;
}
.toggle {
  white-space: nowrap; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); cursor: pointer;
  font: 500 .85rem/1.2 var(--sans); transition: all .2s;
}
.toggle:hover { border-color: var(--ink); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.columns {
  list-style: none; margin: 0; padding: 0;
  columns: 3; column-gap: clamp(24px, 3.5vw, 48px); column-rule: 1px solid var(--rule);
}
.columns .item { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.row { display: flex; gap: 14px; padding: 16px 0; }
.row .num {
  flex: none; width: 1.8em; padding-top: .32em;
  font: 500 .74rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; transition: color .2s;
}
.row:hover .num { color: var(--accent); }
.row a { flex: 1; min-width: 0; }
.row .t { margin: 0 0 6px; font: 700 1.04rem/1.55 var(--serif); }

/* ---------- 社群版 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
  font: 500 .82rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip small { opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.quotes { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; align-items: start; }
.quotes__col { display: grid; gap: 20px; }
.quote {
  margin: 0; position: relative;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s;
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--rule) 50%, var(--ink)); }
.quote > a { display: block; padding: 22px 22px 18px; }
.quote__mark { position: absolute; top: 6px; right: 16px; font: 900 3.4rem/1 var(--serif); color: var(--accent); opacity: .22; pointer-events: none; }
.quote__who { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding-right: 30px; }
.quote__rank { font: 700 .75rem/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.quote__name { font: 700 .92rem/1.3 var(--sans); }
.quote__handle { font: 400 .78rem/1.3 var(--sans); color: var(--muted); }
.quote__body {
  margin: 0 0 14px; font: 500 .98rem/1.75 var(--serif); white-space: pre-line; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden;
}
.quote .star { position: absolute; right: 12px; bottom: 12px; margin: 0; }
.stats { display: flex; gap: 14px; font: 500 .76rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.stats span { display: inline-flex; align-items: center; gap: 4px; }
.stats svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.more { text-align: center; margin-top: 28px; }
.more__btn {
  padding: 12px 28px; border: 1px solid var(--ink); background: none; cursor: pointer;
  font: 700 .88rem/1 var(--serif); letter-spacing: .2em; transition: background .25s, color .25s;
}
.more__btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- 科技副刊 ---------- */
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button {
  width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 50%; background: var(--card); cursor: pointer;
  font-size: 1rem; transition: all .2s;
}
.rail-ctrl button:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.rail-ctrl button:disabled { opacity: .35; cursor: default; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 360px); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
.rail:focus-visible { outline-offset: -2px; }
.card { scroll-snap-align: start; position: relative; }
.card > a { display: block; }
.card__img {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--paper-2); margin-bottom: 14px;
  border: 1px solid var(--rule);
}
.card__img:empty { display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--rule) 45%, transparent) 10px 11px), var(--paper-2); }
.card__img:empty::after { content: "Unwind AI"; font: italic 700 1.4rem/1 var(--serif); color: var(--muted); letter-spacing: .04em; }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.85) sepia(.25) contrast(1.05);
  transform: scale(1.02); transition: filter .6s var(--ease), transform .8s var(--ease);
}
.card:hover .card__img img, .card:focus-within .card__img img { filter: none; transform: scale(1.06); }
.card__issue { display: block; font: 700 .72rem/1 var(--sans); color: var(--accent); letter-spacing: .08em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.card__title { margin: 0 0 8px; font: 700 1.12rem/1.5 var(--serif); text-wrap: pretty; }
.card__sum { margin: 0 0 10px; font-size: .86rem; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .star { position: absolute; top: 10px; right: 10px; margin: 0; opacity: 1; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(6px); }

/* ---------- AI 業界動態 ---------- */
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); }
.seg__btn { padding: 7px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 .85rem/1 var(--sans); color: var(--ink-2); transition: background .25s, color .25s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.dispatches {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3.5vw, 48px);
}
.dispatch { border-top: 1px solid var(--rule); position: relative; }
.dispatch > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px 40px 20px 0; }
.dispatch__src { display: block; margin-bottom: 6px; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dispatch__title { margin: 0 0 6px; font: 700 1.06rem/1.55 var(--serif); }
.dispatch__orig { margin: 0 0 6px; font: italic 400 .8rem/1.4 var(--serif); color: var(--muted); }
.dispatch__sum { margin: 0 0 8px; font-size: .85rem; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dispatch__img { width: 104px; aspect-ratio: 1; overflow: hidden; border-radius: 3px; border: 1px solid var(--rule); background: var(--paper-2); align-self: start; margin-top: 4px; }
.dispatch__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) sepia(.25); transition: filter .5s var(--ease); }
.dispatch:hover .dispatch__img img { filter: none; }
.dispatch .star { position: absolute; right: 0; top: 22px; margin: 0; }

/* B2 重置雷達 */
.reset { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); margin: 0 0 24px; padding: clamp(18px, 3vw, 28px); background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--muted); }
.reset--reset { border-left-color: var(--accent); }
.reset--soon { border-left-color: #b7791f; }
.reset__stamp {
  flex: none; display: grid; place-items: center; min-width: 7.5em; padding: 14px 16px; border: 3px double currentColor; border-radius: 4px;
  font: 900 clamp(1.1rem, 2.6vw, 1.5rem)/1.1 var(--serif); letter-spacing: .12em; color: var(--muted); transform: rotate(-4deg); text-align: center;
}
.reset--reset .reset__stamp { color: var(--accent); }
.reset--soon .reset__stamp { color: #b7791f; }
.reset__text { min-width: 0; }
.reset__head { margin: 0 0 4px; font: 700 1.1rem/1.5 var(--serif); }
.reset__when { margin: 0 0 8px; font-size: .85rem; color: var(--ink-2); }
.reset__quote { display: block; font: italic 400 .9rem/1.6 var(--serif); color: var(--ink-2); border-left: 2px solid var(--rule); padding-left: 10px; overflow-wrap: anywhere; }
.reset__quote:hover { color: var(--ink); }
.dispatch--signal { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.dispatch--signal > a { padding-left: 12px; }
.signal { margin-left: 8px; padding: 2px 6px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; }
.signal--soon { background: #b7791f; }
.signal--limits { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
#tiboList .dispatch__title { overflow-wrap: anywhere; }
@media (max-width: 560px) { .reset { flex-direction: column; align-items: flex-start; } }

/* ---------- 社群與活動 ---------- */
.community { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); }
.sub-kicker { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); font: 700 1rem/1 var(--serif); letter-spacing: .12em; }
.events { list-style: none; margin: 0; padding: 0; }
.event { border-bottom: 1px solid var(--rule); }
.event > a { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 16px; padding: 16px 0; }
.event__date { text-align: center; padding: 8px 0 6px; border: 1px solid var(--rule-strong); border-radius: 3px; align-self: start; }
.event__m { display: block; font: 700 .68rem/1 var(--sans); letter-spacing: .08em; color: var(--accent); }
.event__d { display: block; margin: 4px 0 2px; font: 900 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.event__w { display: block; font: 500 .68rem/1 var(--sans); color: var(--muted); }
.event__title { margin: 0 0 4px; font: 700 1.05rem/1.5 var(--serif); }
.event__sum { margin: 0 0 6px; font-size: .84rem; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event.is-past { opacity: .55; }
.clubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.club {
  position: relative; display: block; height: 100%; padding: 14px 40px 14px 16px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.club:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.club__tag { display: block; margin-bottom: 6px; font: 700 .66rem/1 var(--sans); letter-spacing: .1em; color: var(--accent); }
.club__name { display: block; font: 700 .98rem/1.35 var(--serif); }
.club__desc { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.clubs__feature { grid-column: 1 / -1; }
.club--feature { padding: 18px 44px 18px 20px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.club--feature .club__tag { color: #06c755; }
.club--feature .club__name { font-size: 1.25rem; }
.club--feature .club__desc { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.club--feature .club__go { color: var(--paper); }
.club--feature:hover { border-color: var(--accent); }
.club__go { position: absolute; top: 12px; right: 14px; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.club:hover .club__go { color: var(--accent); transform: translate(2px, -2px); }

/* ---------- 版權頁 ---------- */
.colophon { margin-top: clamp(40px, 6vw, 80px); padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 3px double var(--rule-strong); font-size: .82rem; color: var(--ink-2); }
.colophon .wrap { display: grid; gap: 8px; }
.colophon p { margin: 0; }
.colophon__title { display: flex; align-items: center; font: 900 1.2rem/1 var(--serif); letter-spacing: .01em; color: var(--ink); margin-bottom: 6px !important; }
.colophon a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.colophon a:hover { text-decoration-color: var(--accent); }
.colophon__keys { color: var(--muted); }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 14px; }
.follow__label { font: 700 .72rem/1 var(--sans); letter-spacing: .12em; color: var(--accent); margin-right: 4px; }
.colophon .follow__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font: 600 .88rem/1 var(--sans); color: var(--ink); text-decoration: none;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.colophon .follow__btn:hover { transform: translateY(-1px); background: var(--ink); color: var(--paper); }
.colophon .follow__btn--main { background: var(--ink); color: var(--paper); }
.colophon .follow__btn--main:hover { background: var(--accent); border-color: var(--accent); }
.follow__btn b { font: 900 1rem/1 var(--serif); }
.follow__line { color: #06c755; font-size: .7rem !important; }
@media (hover: none) { .colophon__keys { display: none; } }

/* ---------- 收藏抽屜 ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(440px, 100vw);
  padding: 0; border: 0; border-left: 1px solid var(--rule);
  background: var(--paper); color: var(--ink);
}
.drawer[open] { animation: slide .45s var(--ease); }
.drawer::backdrop { background: rgba(20, 16, 10, .35); backdrop-filter: blur(2px); animation: fade .35s; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer__head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; background: var(--paper); border-bottom: 3px double var(--rule-strong);
}
.drawer__head h2 { margin: 0; font: 900 1.4rem/1 var(--serif); letter-spacing: .1em; }
.drawer__close { width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; background: none; cursor: pointer; }
.drawer__close:hover { border-color: var(--ink); }
.drawer__list { list-style: none; margin: 0; padding: 0 24px; }
.drawer__list .item { border-bottom: 1px solid var(--rule); }
.drawer .row .num { color: var(--muted); }
.drawer .empty { margin: 24px; }
.drawer__list .star { opacity: 1; }

/* ---------- 往期 ---------- */
.archive-note {
  margin: 0; padding: 10px var(--gutter); text-align: center;
  background: var(--ink); color: var(--paper); font: 500 .85rem/1.5 var(--sans); letter-spacing: .04em;
}
.archive-note a { display: inline-block; white-space: nowrap; margin-left: 12px; padding-bottom: 1px; border-bottom: 1px solid currentColor; font-weight: 700; }
.archive-note a:hover { color: var(--accent); }
.past { padding: 0 24px 24px; }
.past__month { margin: 22px 0 6px; font: 900 1rem/1 var(--serif); letter-spacing: .1em; color: var(--accent); }
.past__day { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.past__day:hover .past__date { color: var(--accent); }
.past__date { font: 900 1.35rem/1 var(--serif); font-variant-numeric: tabular-nums; transition: color .2s; }
.past__info { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.past__info b { display: block; font: 700 .9rem/1.4 var(--sans); color: var(--ink); }
.past__day[aria-current="page"] .past__date { color: var(--accent); }
.past__tag { font: 700 .7rem/1 var(--sans); color: var(--accent); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 .85rem/1 var(--sans); pointer-events: none;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 載入骨架 ---------- */
.skeleton { min-height: 220px; background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)) 0 0 / 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 3px; margin: 0 0 24px; }
.skeleton--lead { min-height: 320px; margin-right: 32px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 進場動效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.masthead h1 { animation: rise 1s var(--ease) both; }
.masthead__title .seal { animation: stamp .7s .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); letter-spacing: .08em; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.6) rotate(-14deg); } }

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
  .columns { columns: 2; }
  .masthead__nav a, .masthead__nav button { padding: 12px 11px; letter-spacing: .06em; }
  .briefs { grid-template-columns: 1fr; padding-top: 0; }
  .briefs .item { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .briefs .item:last-child { border-bottom: 0; }
  .briefs .item > a { display: grid; grid-template-columns: 2.4em 1fr; }
  .briefs .num { grid-row: span 2; padding-top: .35em; }
}
@media (max-width: 760px) {
  .front { grid-template-columns: 1fr; }
  .lead { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .second { grid-template-rows: none; }
  .second .item { padding-left: 0; padding-top: 20px; }
  .second__no { font-size: 1.8rem; }
  .columns { columns: 1; }
  .masthead__meta { font-size: .7rem; }
  .masthead__meta #issue, .masthead__meta #updated { flex: 1 1 40%; }
  .masthead__meta #updated { text-align: right; }
  .masthead__date { order: 3; flex-basis: 100%; text-align: center; padding-top: 4px; }
  .masthead__nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .masthead__nav::-webkit-scrollbar { display: none; }
  .masthead__nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .masthead__nav li { flex: none; }
  .masthead__nav a, .masthead__nav button { white-space: nowrap; }
  .masthead__nav a, .masthead__nav button { padding: 12px 9px; font-size: .86rem; letter-spacing: .06em; gap: .35em; }
  .masthead__nav b { font-size: .62rem; }
  .masthead__nav [data-saved-count] { display: none; }
  .masthead__sep, .masthead__tagline span:last-child { display: none; }
  .lead__no { font-size: 3.6rem; margin-bottom: 12px; }
  /* 手機：頭條 → 02、03 → 短訊 */
  .front { display: flex; flex-direction: column; }
  .lead { display: contents; }
  .lead > a, .lead > .lead__row { order: 1; }
  .lead > .lead__row { padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
  .second { order: 2; }
  .briefs { order: 3; grid-template-columns: 1fr; margin-top: 4px; padding-top: 0; border-top: 1px solid var(--rule); }
  .briefs .item { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .briefs .item:last-child { border-bottom: 0; padding-bottom: 0; }
  .bar__links { display: none; }
  .bar [data-newsletter] { display: none; }
  .bar__inner { gap: 10px; }
  .bar__brand { margin-right: auto; }
  .tools { width: 100%; }
  .field { width: 100%; }
  .kicker__en { display: none; }
  .section__note { text-align: left; }
  .star { margin-right: -10px; }
  .rail-ctrl { display: none; }
  .dispatches { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .clubs { grid-template-columns: 1fr; }
  .dispatch > a { padding-right: 36px; }
  .dispatch__img { width: 76px; }
  .rail { grid-auto-columns: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .bar, .tools, .star, .chips, .more, .rail-ctrl, .skip, .toast { display: none !important; }
  body::before { display: none; }
}
