/* SITE-T6 newsroom layout — CSS variables for spacing, serif for editorial gravitas,
 * tight density. Original visual design (yellow accent + custom D mark).
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:root {
  --container-max: 1280px;
  --gap: 24px;
  --gap-sm: 12px;
  --gap-lg: 40px;
  --card-pad: 22px;
  --card-pad-sm: 16px;
  --hairline: #ececec;
  --hairline-2: #d8d8d8;
  --radius: 8px;
  --radius-sm: 4px;
  --ink: #111;
  --gray-1: #1a1a1a;
  --gray-2: #4a4a4a;
  --gray-3: #777;
  --gray-4: #999;
  --gray-5: #bbb;
  --bg: #fafafa;
  --bg-card: #fff;
  --bg-soft: #f4f4f4;
  --accent: #ffd400;
  --accent-soft: #fff8c4;
  --red-live: #d62828;
  --green-up: #1f8a4c;
  --green-bg: #e8f5ec;
  --red-down: #d62828;
  --red-bg: #fbe9e9;
  --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "PMingLiU", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
body {
  background: var(--bg); color: var(--gray-1);
  font-family: var(--sans);
  line-height: 1.4; font-size: 14px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gray-2); }

/* ============== header ============== */
.site-head { background: #fff; border-bottom: 1px solid var(--hairline-2); }
.brand-bar { background: #111; color: #fff; }
.brand-bar-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 8px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: 0.04em; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; background: var(--accent); color: #111;
  font-weight: 900; font-size: 14px; line-height: 1; border-radius: var(--radius-sm);
}
.brand-bar-right { display: flex; gap: 16px; align-items: center; font-size: 12px; color: #ccc; }

/* Nav search box */
.nav-search { display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 3px 8px 3px 10px; min-width: 200px;
}
.nav-search input { font: inherit; font-size: 12px; border: 0; outline: none; flex: 1; background: transparent; color: var(--ink); }
.nav-search input::placeholder { color: var(--gray-4); }
.nav-search .key-hint {
  background: var(--bg-soft); color: var(--gray-3); font-family: var(--mono);
  font-size: 11px; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--hairline);
}
.nav-search-icon { color: var(--gray-3); font-size: 13px; }

.cat-nav { background: #fff; border-bottom: 1px solid var(--hairline-2); position: sticky; top: 0; z-index: 50; }
.cat-nav-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 0; overflow-x: auto;
}
.cat-link {
  color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 12px 16px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.cat-link:hover { border-bottom-color: var(--accent); }
.cat-link.cat-home { border-bottom-color: var(--accent); }
.rss-link { margin-left: auto; color: var(--gray-3); font-size: 12px; }
.rss-link:hover { color: var(--ink); }

/* ============== ticker as pills ============== */
.ticker-cards {
  max-width: var(--container-max); margin: 16px auto 0; padding: 0 24px;
  display: none; gap: 10px;
}
.ticker-cards.show { display: flex; flex-wrap: wrap; }
.ticker-card {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  padding: 12px 16px; min-width: 165px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: var(--radius);
}
.ticker-card .sym { color: var(--gray-3); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; }
.ticker-card .price-row { display: flex; gap: 10px; align-items: center; }
.ticker-card .price { color: var(--ink); font-size: 16px; font-weight: 800; font-family: var(--mono); }
.pct-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  font-family: var(--sans);
}
.pct-pill.up   { background: var(--green-bg); color: var(--green-up); }
.pct-pill.down { background: var(--red-bg);   color: var(--red-down); }
.pct-pill .arr { font-size: 9px; }

/* ============== layout ============== */
.site-main { max-width: var(--container-max); margin: 0 auto; padding: 16px 24px 48px; }
/* FEAT-HOME-LAYOUT (706): 3-col explicit grid. 快訊 col1 (full height) |
   最新消息 spans col2+col3 on row1 | row2: 內容(col2) + 編輯精選(col3). */
.three-col {
  display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px;
  /* FEAT-HOME-3COL-EQUAL-HEIGHT: stretch (was start) → row-2 items (center-col + right-col) fill
     the row track to equal height and left-rail (spanning rows 1-2) reaches the same bottom line,
     so the three columns bottom-align. Shorter columns just get trailing whitespace (Eins OK) —
     content stays top-anchored, nothing is clipped. */
  gap: var(--gap); align-items: stretch;
}
.three-col > .left-rail     { grid-column: 1;     grid-row: 1 / 3; }
.three-col > .featured-area { grid-column: 2 / 4; grid-row: 1; }
.three-col > .center-col    { grid-column: 2;     grid-row: 2; }
.three-col > .right-col     { grid-column: 3;     grid-row: 2; }

/* Yellow gradient prompt strip */
.prompt-strip {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #111; padding: 10px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
}
.prompt-strip a { color: #111; display: inline-flex; align-items: center; gap: 8px; }

/* ============== Section heading (uniform across blocks) ============== */
.section-head {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.section-head .head-name { display: inline-flex; align-items: center; gap: 8px; }
.section-head .head-more {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: none; color: var(--gray-2);
}
.section-head .head-more:hover { color: var(--ink); }
.live-pulse {
  width: 7px; height: 7px; background: var(--red-live);
  border-radius: 50%; box-shadow: 0 0 0 0 rgba(214,40,40,0.5);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(214,40,40,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(214,40,40,0); }
  100% { box-shadow: 0 0 0 0 rgba(214,40,40,0); }
}

/* ============== Left rail timeline ============== */
.left-rail { display: flex; flex-direction: column; gap: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.timeline li:last-child { border-bottom: none; }
.timeline .tl-row1 { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--gray-3); font-family: var(--mono); margin-bottom: 4px; }
.timeline .tl-time { color: var(--ink); font-weight: 600; }
.timeline .tl-title {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.3; font-weight: 600;
  color: var(--ink); margin: 0 0 4px;
}
.timeline a:hover .tl-title { color: var(--gray-2); }
.timeline .tl-summary {
  font-size: 12px; line-height: 1.45; color: var(--gray-3); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.timeline a { color: var(--ink); display: block; }
/* FEAT-FLASH-IN-SIGNALS: 短訊 row in the 快訊 rail = thumb + title link */
.timeline .tl-flash { display: flex; gap: 8px; align-items: center; }
.timeline .tl-flash-thumb { flex: 0 0 auto; width: 56px; height: 32px; object-fit: cover; border-radius: 3px; background: var(--hairline); }
.timeline .tl-flash-title { font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============== Feature tabs ============== */
.feat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 16px; }
.feat-tab {
  font-size: 12px; font-weight: 700; padding: 7px 14px;
  border: 1px solid var(--hairline-2); color: var(--gray-2);
  border-radius: 999px; background: #fff;
}
.feat-tab.active, .feat-tab:hover { background: #111; color: #fff; border-color: #111; }

/* ============== Center column ============== */
.center-col { display: flex; flex-direction: column; gap: var(--gap-lg); }

/* Featured area — image on top, big serif title below */
.featured-area {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: var(--card-pad);
}
.featured-area .section-head { margin-bottom: 16px; }

.featured-split {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px; align-items: start;
}

.feat-lead { display: flex; flex-direction: column; gap: 14px; }
.feat-lead .feat-lead-cover {
  display: block; aspect-ratio: 16/9; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.feat-lead .feat-lead-cover .cover-svg { width: 100%; height: 100%; display: block; }
.feat-lead-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--gray-3); font-family: var(--mono); }
.feat-lead-title {
  font-family: var(--serif); font-size: 28px; line-height: 1.22; font-weight: 700;
  margin: 0; letter-spacing: -0.005em; color: var(--ink);
}
.feat-lead-title a { color: var(--ink); }
.feat-lead-title a:hover { color: var(--gray-2); border-bottom: 1px solid var(--gray-3); }
.feat-lead-summary { font-size: 14px; color: var(--gray-2); line-height: 1.55; margin: 0; }

.feat-side { display: flex; flex-direction: column; }
.feat-side ul { list-style: none; padding: 0; margin: 0; }
.feat-side li {
  padding: 14px 0 14px 14px; border-bottom: 1px solid var(--hairline);
  position: relative;
}
.feat-side li:first-child {
  border-left: 3px solid var(--accent); padding-left: 14px;
  background: var(--accent-soft); margin-left: -3px;
}
.feat-side li:last-child { border-bottom: none; }
/* FEAT-HOME-LAYOUT: side stories get a small cover thumbnail beside the title */
.feat-side a { color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.feat-side .fs-thumb {
  flex: 0 0 auto; width: 72px; height: 48px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--hairline); background: var(--hairline);
}
.feat-side .fs-text { flex: 1; min-width: 0; }
.feat-side .fs-title {
  font-family: var(--serif); font-size: 15px; line-height: 1.3; font-weight: 600;
  margin: 0; color: var(--ink);
}
.feat-side .fs-time {
  display: block; margin-top: 4px; font-size: 11px; color: var(--gray-4); font-family: var(--mono);
}

/* ============== SITE-T8: Stacked category sections (full-width per category) ============== */
.stacked-section {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: var(--card-pad);
}
.stacked-section .cat-panel-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px; margin-bottom: 18px;
}
.stacked-body {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px; align-items: start;
}
/* FEAT-HOME-CAT-2COL-FINAL: Agent與應用 onward render TWO categories side-by-side
   (screen split in half), paired by NAV order; each category's article list is a SINGLE
   column. 晶片算力 (head) keeps the full feature+list layout. min-width:0 so a narrow
   half-column can't overflow. */
/* FEAT-HOME-CAT-FULLWIDTH: the category band sits below .three-col, inside .site-main,
   so it spans the full page content width (left edge aligns with 快訊, right with 編輯精選).
   晶片算力 head + the paired grid stack vertically with the usual section gap. */
.home-categories {
  display: flex; flex-direction: column; gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}
.cat-grid-2col {
  display: grid; grid-template-columns: 1fr 1fr;
  /* FEAT-HOME-BAND-ALT-LAYOUT: stretch (was start) → the two cells in each row lock to equal
     height; bottoms align regardless of which layout (A/B) the row uses. */
  gap: var(--gap-lg); align-items: stretch;
}
.cat-grid-2col > .stacked-section { min-width: 0; }

/* FEAT-HOME-BAND-ALT-LAYOUT: alternating band cells (版型A two-image / 版型B one-image).
   Both use pure titles (no summary) + line-clamp:1 + fixed-aspect covers so heights stay even. */
.band-cell { display: flex; flex-direction: column; }
/* FEAT-HOME-BAND-TITLE-3LINE: image titles (lead/duo) reserve 3 lines — short titles fill 3 lines
   (min-height) and long ones clamp to 3 — so each cell's title block is the same height and the
   two cells in a row align. Safe inside the flex-column .band-lead / .band-duo-item (the
   #897/#900 overlap病根 was the block container, now flex → no collapse). min-height uses the
   title's own font-size (em) × line-height(1.3) × 3 lines. band-list a stays single-line. */
.band-duo-title {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.band-list a {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 版型B — horizontal lead: cover LEFT (~38%), title + summary RIGHT.
   FEAT-HOME-BAND-B-HORIZONTAL: was a full-width top cover (too large); now row-layout so the
   image is small and the text sits beside it. flex stays (cover aspect-ratio resolves fine). */
.band-lead { display: flex; flex-direction: row; gap: 12px; align-items: flex-start; margin-top: 4px; }
.band-lead-cover {
  display: block; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
/* FEAT-HOME-BAND-B-COVER-WIDTH-FIX: .cover{width:100%} (line ~698, same specificity 0,1,0 but
   later in the file) was overriding a plain .band-lead-cover{width:38%} → the cover went full
   width inside the flex row and squeezed .band-lead-text (title+summary) to 0. A two-class
   selector (specificity 0,2,0) beats .cover (0,1,0) by specificity, order-independently. */
.band-lead .band-lead-cover { width: 38%; flex-shrink: 0; }
.band-lead-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* title sized for the narrower right column (was 23px full-width), clamp 2 lines */
.band-lead-title {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--serif); font-size: 18px; line-height: 1.3; letter-spacing: -0.005em;
  font-weight: 700; color: var(--ink);
}
/* summary beside the cover, clamped to keep the card height in check */
.band-lead-summary {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px; line-height: 1.5; color: var(--gray-2);
}
/* 版型A — two side-by-side covers */
.band-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.band-duo-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.band-duo-cover {
  display: block; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.band-duo-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.3; font-weight: 600;
  color: var(--ink); margin-top: 6px; min-height: calc(3 * 1.3em);
}
/* shared pure-title list */
.band-list { list-style: none; padding: 0; margin: 12px 0 0; }
.band-list li { padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.band-list li:last-child { border-bottom: none; }
.band-list a { color: var(--ink); font-size: 14px; line-height: 1.4; }
.band-list a:hover { color: var(--gray-2); }

/* FEAT-HOME-BAND-A-TEXTLIST: 版型A — one column of 4 title+summary items (no images).
   title clamp 2 + summary clamp 2 → even item heights; rows still equalised by align-items:stretch. */
.band-textlist { list-style: none; padding: 0; margin: 4px 0 0; }
.band-textlist li { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.band-textlist li:last-child { border-bottom: none; }
/* FEAT-HOME-BAND-A-THUMB: small thumb left + title/summary right, per item */
.band-textlist a { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
/* width MUST be a two-class selector (0,2,0) to beat .cover{width:100%} (0,1,0) — same cascade
   trap as #917 (a same-specificity later .cover would otherwise force the thumb full-width). */
.band-textlist .band-tl-cover {
  width: 84px; flex-shrink: 0; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.band-tl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.band-tl-title {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink);
}
.band-tl-summary {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 1.5; color: var(--gray-2); margin-top: 4px;
}
.band-textlist a:hover .band-tl-title { color: var(--gray-2); }
.cp-feature-summary {
  display: block; font-size: 13px; color: var(--gray-2);
  line-height: 1.55; margin: 6px 0 0;
}
.cpl-summary-mini {
  font-size: 11.5px; color: var(--gray-3); line-height: 1.5;
  margin: 4px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Article entity chips */
.entity-chips {
  display: flex; gap: 7px; flex-wrap: wrap; margin: 16px 0 0;
  padding-top: 14px; border-top: 1px solid var(--hairline);
}
.entity-chip {
  font-size: 12px; padding: 4px 12px;
  background: var(--bg-soft); border: 1px solid var(--hairline-2);
  border-radius: 999px; color: var(--gray-2); font-weight: 600;
}
.entity-chip:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.entity-chip .chip-label { font-size: 10px; color: var(--gray-4); margin-right: 4px; }

/* ============== 2×2 category panels (legacy, may still be used) ============== */
.cat-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.cat-panel {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: var(--card-pad-sm);
}
.cat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
}
.cat-panel-head a { color: var(--gray-2); font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0.04em; }
.cat-panel-head a:hover { color: var(--ink); }
.cat-panel-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
.cp-feature { display: flex; flex-direction: column; gap: 8px; }
.cp-feature-cover {
  display: block; aspect-ratio: 16/10; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.cp-feature-cover .cover-svg { width: 100%; height: 100%; display: block; }
.cp-feature-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.3; font-weight: 700;
  color: var(--ink); margin: 0;
}
.cp-feature-time { font-size: 11px; color: var(--gray-4); font-family: var(--mono); }
.cp-list { list-style: none; padding: 0; margin: 0; }
.cp-list li { padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.cp-list li:last-child { border-bottom: none; }
.cp-list a { color: var(--ink); display: block; }
.cp-list .cpl-title {
  font-family: var(--serif); font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--ink);
  margin: 0;
}
.cp-list .cpl-time { display: block; font-size: 10px; color: var(--gray-4); font-family: var(--mono); margin-top: 2px; }

/* ============== Numbered editor picks (right column) ============== */
.numbered-block {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: var(--card-pad-sm);
  /* FEAT-HOME-EDITORPICK-UNCLIP: the #886 px height-clip cut 編輯精選 down to 01-03 (破版) —
     reverted to natural height (no fixed height / overflow:hidden). 01-07 show in full.
     np-cover keeps aspect-ratio:16/10 below to prevent image-load reflow. Bottom-alignment to
     the left-rail will be reworked (px clip is unsuitable for only 7 picks). */
}
.numbered-list { list-style: none; padding: 0; margin: 0; }
.numbered-list .np-top { padding: 0 0 16px; border-bottom: 1px solid var(--hairline); }
.numbered-list .np-top .num { background: var(--accent); color: #111; }
.numbered-list .np-top .np-cover {
  display: block; aspect-ratio: 16/10; margin: 8px 0; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.numbered-list .np-top .np-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.3; font-weight: 700;
  color: var(--ink); margin: 0 0 4px;
  border-bottom: 1px solid var(--hairline); padding-bottom: 6px;
}
.numbered-list .np-top .np-summary {
  font-size: 12px; line-height: 1.5; color: var(--gray-3); margin: 6px 0 0;
  /* FEAT-HOME-NPSUMMARY-3LINE: clamp the 01 summary to 3 lines (was 2) — one extra preview line
     lengthens the right column ~1 line to line up with the others; .three-col stretch keeps containers even. */
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.numbered-list .np-top .np-time { font-size: 11px; color: var(--gray-4); font-family: var(--mono); }
.numbered-list .np-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 12px;
}
.numbered-item { display: flex; gap: 10px; align-items: start; }
.numbered-item .num {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--gray-5); color: #fff; border-radius: 50%;
  font-weight: 800; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono);
}
.numbered-item .np-title-sm {
  font-family: var(--serif); font-size: 12.5px; line-height: 1.3; font-weight: 600;
  color: var(--ink); margin: 0 0 3px;
}
.numbered-item a { color: var(--ink); }
.numbered-item:hover .np-title-sm { color: var(--gray-2); }
/* FEAT-HOME-LAYOUT: 編輯精選 full main width below 最新消息 — 01 card beside the 02-07 grid */
.numbered-wide .numbered-list {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 24px; align-items: start;
}
.numbered-wide .np-top { border-bottom: none; padding: 0; }
.numbered-wide .np-row { grid-template-columns: repeat(3, 1fr); margin-top: 0; }

/* ============== Right column generic blocks ============== */
.right-col { display: flex; flex-direction: column; gap: var(--gap); }
.right-block {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  padding: var(--card-pad-sm); border-radius: var(--radius);
}
.right-block.newsletter { border-color: var(--ink); }
.right-block h3 {
  display: flex; align-items: center;
  margin: 0 0 12px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink);
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.right-block h3 .head-more {
  margin-left: auto; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: none; color: var(--gray-2);
}
.right-block h3 .head-more:hover { color: var(--ink); }

/* Newsletter */
.nl-pitch { font-size: 12.5px; color: var(--gray-2); margin: 0 0 10px; line-height: 1.5; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-input {
  font: inherit; padding: 9px 11px; font-size: 13px;
  border: 1px solid var(--hairline-2); border-radius: var(--radius-sm); outline: none;
}
.nl-input:focus { border-color: var(--ink); }
.nl-btn {
  font: inherit; padding: 10px 14px; font-size: 12.5px; font-weight: 700;
  background: var(--accent); color: #111;
  border: 1px solid var(--accent); border-radius: var(--radius-sm); cursor: pointer;
}
.nl-btn:hover { background: #f0c700; }
.nl-status { font-size: 12px; color: var(--green-up); margin: 6px 0 0; min-height: 1em; }

/* ============== Cat tags (general) ============== */
.cat-tag {
  display: inline-block; padding: 2px 7px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  color: #fff; background: var(--gray-3);
  border-radius: 2px;
}
.cat-tag.mini { font-size: 9px; padding: 1px 5px; }
.cat-tag.big { font-size: 14px; padding: 4px 12px; }

/* ============== Explore (3-col rich cards) ============== */
.explore { margin-top: var(--gap-lg); }
.explore-rich { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.explore-card-rich {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: var(--card-pad-sm); display: flex; flex-direction: column;
}
.explore-card-rich h4 {
  display: flex; align-items: center; margin: 0 0 12px;
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.explore-card-rich h4 a.head-more { margin-left: auto; font-size: 11px; color: var(--gray-2); font-weight: 600; text-transform: none; letter-spacing: 0.04em; }
.explore-card-rich h4 a.head-more:hover { color: var(--ink); }
.price-list, .flash-list, .cat-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.price-list li, .flash-list li, .cat-list li {
  padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 12.5px;
}
.price-list li:last-child, .flash-list li:last-child, .cat-list li:last-child { border-bottom: none; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--mono); }
.price-list .pl-name { color: var(--gray-3); font-size: 11px; font-weight: 700; min-width: 50px; }
.price-list .pl-price { color: var(--ink); font-weight: 700; flex: 1; text-align: right; padding-right: 8px; }
.price-list .pct-pill { min-width: 56px; justify-content: center; }
.flash-list a { color: var(--ink); display: block; line-height: 1.4; }
.flash-list a:hover { color: var(--gray-2); }
.flash-list .fl-date { display: block; font-size: 10px; color: var(--gray-4); font-family: var(--mono); margin-top: 2px; }
.cat-list a { display: flex; justify-content: space-between; color: var(--ink); font-weight: 600; }
.cat-list a:hover { color: var(--gray-2); }
.cat-list .cl-count { color: var(--gray-4); font-family: var(--mono); font-size: 11px; }

/* ============== Opinion ============== */
.opinion-block {
  background: var(--bg-card); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); padding: var(--card-pad-sm);
}
.opinion-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opinion-list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.opinion-list a { color: var(--ink); display: flex; gap: 10px; align-items: start; }
.op-avatar {
  flex-shrink: 0; width: 32px; height: 32px;
  background: var(--accent); color: #111; font-weight: 900; font-size: 13px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.op-text { flex: 1; }
.op-title {
  font-family: var(--serif); font-size: 14px; line-height: 1.3; font-weight: 600;
  margin: 0; color: var(--ink);
}
.op-by { font-size: 10px; color: var(--gray-3); margin-top: 4px; display: block; }

/* FEAT-HOME-LAYOUT-MOVE2: 觀點 + 訂閱電子報 relocated into the 260px left-rail.
   opinion-list is a 2-col grid in the wide column → force single column in the narrow rail;
   small top-margin separates the card group from the 快訊 timeline above. */
.left-rail .opinion-list { grid-template-columns: 1fr; }
.left-rail .rail-block { margin-top: 8px; }

/* ============== Article page ============== */
.post { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 12px; color: var(--gray-3); margin: 16px 0 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--gray-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .bc-current { color: var(--ink); }

.post-head { margin: 4px 0 20px; }
.post-head .cat-tag { margin-bottom: 8px; }
.post-title {
  font-family: var(--serif); font-size: 32px; line-height: 1.22; font-weight: 700;
  margin: 4px 0 10px; letter-spacing: -0.008em; color: var(--ink);
}
.dek { font-size: 17px; line-height: 1.5; color: var(--gray-2); margin: 8px 0 14px; font-weight: 400; font-family: var(--sans); }

.byline {
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--gray-3);
  padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
}
.byline-author { color: var(--ink); font-weight: 700; }
.byline-sep { color: var(--gray-5); }

.share-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0 0; }
.share-btn {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--ink); padding: 6px 12px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; border-radius: var(--radius-sm);
}
.share-btn:hover { background: var(--accent); }
.share-copy { font-family: inherit; }

.post-cover { margin: 28px 0 32px; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--hairline); }
.post-cover .cover-svg { width: 100%; height: 100%; display: block; }
.post-body { font-size: 16.5px; line-height: 1.7; font-family: var(--sans); }
.post-body p { margin: 16px 0; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body h2 { font-family: var(--serif); font-size: 22px; margin: 36px 0 12px; line-height: 1.35; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); font-weight: 700; }
.post-body h3 { font-family: var(--serif); font-size: 18px; margin: 26px 0 9px; line-height: 1.4; font-weight: 700; }
.post-body ul {
  margin: 18px 0; padding: 14px 18px 14px 34px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: var(--radius-sm);
}
.post-body ul ul { background: transparent; border-left: none; padding: 0 0 0 20px; margin: 6px 0; }
.post-body li { margin: 7px 0; line-height: 1.55; }
.post-body a { color: #0a58c2; text-decoration: underline; word-break: break-word; }

.sources { margin: 40px 0 20px; padding: 14px 16px; background: var(--bg-soft); border-left: 3px solid var(--ink); border-radius: var(--radius-sm); }
.sources h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.sources ul { margin: 0; padding-left: 18px; list-style: disc; background: transparent; border-left: none; border-radius: 0; }
.sources li { font-size: 13px; word-break: break-word; margin: 4px 0; }
.sources a { color: #0a58c2; }

.tags-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 24px 0; }
.tag-pill { font-size: 12px; padding: 3px 11px; border: 1px solid var(--hairline-2); border-radius: 999px; color: var(--gray-2); background: #fff; }
.tag-pill:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.disclosure { margin: 24px 0; padding: 11px 14px; background: var(--bg-soft); border-left: 3px solid var(--gray-3); font-size: 13px; color: var(--gray-2); border-radius: var(--radius-sm); }
.disclosure a { color: var(--ink); text-decoration: underline; }

.related { margin: 48px 0 24px; padding-top: 24px; border-top: 2px solid var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
/* FEAT-RELATED-DATE-BOTTOM: flex-column so rc-body fills the remaining card height and the date can
   be pushed to the bottom (cards are equal-height via .related-grid stretch → dates align). */
.related-card { color: var(--ink); display: flex; flex-direction: column; border: 1px solid var(--hairline); padding: 0; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.related-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.related-cover { aspect-ratio: 16/10; overflow: hidden; }
/* FEAT-RELATED-COVER-HEIGHT-FIX: the card div carries `.cover` too, and global .cover{height:100%}
   (0,1,0) made the cover eat the whole grid-stretched card height → rc-body (title/date) pushed out
   and clipped by overflow:hidden. A two-class selector (0,2,0) beats .cover so height:auto wins and
   aspect-ratio:16/10 controls the cover height (cover no longer fills the card; rc-body stays visible). */
.related-card .related-cover { height: auto; aspect-ratio: 16/10; }
/* FEAT-ARTICLE-SOURCE-DEDUP+RELATED-FIX: this 2-class rule overrode the global .cover-svg; add
   object-fit:cover explicitly so the related cover is cropped to 16:10 (not stretched/variform). */
.related-cover .cover-svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.related-card .rc-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.related-title { font-family: var(--serif); font-size: 14px; line-height: 1.4; font-weight: 700; margin: 5px 0 4px; }
.related-date { font-size: 11px; color: var(--gray-3); font-family: var(--mono); margin-top: auto; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13.5px; }
.post-nav a { color: var(--gray-2); font-weight: 600; }
.post-nav a:hover { color: var(--ink); }

/* ============== Category page ============== */
.cat-page-head { padding: 24px 0 24px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.cat-page-title { font-family: var(--serif); font-size: 30px; font-weight: 700; margin: 6px 0 4px; }
.cat-page-count { color: var(--gray-3); font-size: 13px; margin: 0; }

/* Category page lead */
.cp-page-lead {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); margin-bottom: 24px;
  align-items: start;
}
.cp-page-lead .lead-cover {
  display: block; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
}
.cp-page-lead .lead-cover .cover-svg { width: 100%; height: 100%; display: block; }
.cp-page-lead .lead-title {
  font-family: var(--serif); font-size: 24px; line-height: 1.25; font-weight: 700;
  margin: 8px 0 8px;
}
.cp-page-lead .lead-summary { font-size: 13.5px; color: var(--gray-2); line-height: 1.6; }

/* Category 2-column list */
.cp-page-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.cp-page-list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); list-style: none; }
.cp-page-list li a { color: var(--ink); display: block; }
.cp-page-list .cpl-title { font-family: var(--serif); font-size: 16px; line-height: 1.3; font-weight: 600; margin: 0 0 6px; }
.cp-page-list .cpl-summary { font-size: 12.5px; color: var(--gray-3); line-height: 1.5; margin: 0 0 4px;
                              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-page-list .cpl-meta { font-size: 11px; color: var(--gray-4); font-family: var(--mono); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 32px 0 12px; }
.pagination a, .pagination span {
  font-size: 13px; font-weight: 600; padding: 6px 12px;
  border: 1px solid var(--hairline-2); border-radius: var(--radius-sm); color: var(--ink);
}
.pagination a:hover { background: var(--accent); border-color: var(--accent); }
.pagination .current { background: #111; color: #fff; border-color: #111; }
.pagination .disabled { color: var(--gray-5); cursor: not-allowed; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
.card-grid .card { background: #fff; border: 1px solid var(--hairline-2); border-radius: var(--radius-sm); overflow: hidden; }
.card-grid .card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card-grid .card-link { display: block; color: var(--ink); }
.card-grid .card-cover { aspect-ratio: 16/10; overflow: hidden; }
.card-grid .card-cover .cover-svg { width: 100%; height: 100%; display: block; }
.card-grid .card-body { padding: 10px 13px 13px; }
.card-grid .card-title { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.3; margin: 6px 0 6px; }
.card-grid .card-summary { font-size: 12.5px; color: var(--gray-2); margin: 0 0 8px; line-height: 1.5; }
.card-grid .card-date { font-size: 11px; color: var(--gray-3); font-family: var(--mono); }

/* ============== Static pages ============== */
.static-page { max-width: 720px; margin: 0 auto; padding: 8px 0; }
.static-head { margin: 16px 0 22px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.static-head h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin: 0; letter-spacing: -0.008em; }
.static-body { font-size: 16px; line-height: 1.7; }
.static-body h2 { font-family: var(--serif); font-size: 20px; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); font-weight: 700; }
.static-body p { margin: 14px 0; }
.static-body ul, .static-body ol { margin: 14px 0; padding-left: 24px; }
.static-body li { margin: 6px 0; line-height: 1.55; }
.static-body strong { color: var(--ink); }
.static-body a { color: #0a58c2; text-decoration: underline; }

/* Search page */
.search-page { max-width: 720px; margin: 0 auto; }
.search-form { margin: 24px 0 16px; }
#search-input {
  width: 100%; padding: 11px 14px; font-size: 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm); outline: none; font-family: inherit;
}
#search-input:focus { border-color: var(--accent); }
.search-stats { color: var(--gray-3); font-size: 13.5px; margin: 6px 0 16px; }
.search-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.search-results .card { padding: 14px; border: 1px solid var(--hairline-2); background: #fff; border-radius: var(--radius-sm); }

/* ============== SVG cover wrapper ============== */
.cover { width: 100%; height: 100%; }
.cover-svg { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Cover-wrapping anchor must be block so <img> fills the slot */
a.cover { display: block; }
.feat-lead-cover, .cp-feature-cover, .np-cover, .lead-cover { display: block; }

/* FEAT-EDITOR-PASTE-IMG P1: in-article (inline) images. Centered block, capped to
   container width, sensible vertical rhythm. Static — NO animation (Eins). RWD: the
   max-width keeps it inside the column on phones. */
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 6px;
}

/* ============== Footer ============== */
.site-foot { background: #111; color: #f4f4f4; margin-top: 48px; }
.foot-inner { max-width: var(--container-max); margin: 0 auto; padding: 36px 24px; display: flex; flex-direction: column; gap: 16px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 9px; color: var(--accent); font-weight: 800; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin: 5px 0; }
.foot-col a { color: #ccc; font-size: 13px; }
.foot-col a:hover { color: var(--accent); }
.foot-brand { font-size: 16px; font-weight: 900; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.foot-tagline { color: #aaa; font-size: 13px; margin: 4px 0 0; }
.foot-byline { color: #999; font-size: 12.5px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #2a2a2a; }
.foot-byline a { color: #ccc; }
.foot-byline a:hover { color: var(--accent); }

/* ============== Responsive ============== */
@media (max-width: 1100px) {
  /* FEAT-HOME-LAYOUT: 最新消息 full width, then 內容 | 編輯精選.
     FEAT-HOME-RAIL-MOBILE-FIX: keep .left-rail visible (觀點 + 訂閱電子報, a conversion entry);
     hide ONLY the 快訊 timeline (.rail-signals). 觀點/電子報 flow full-width below the content. */
  .three-col { grid-template-columns: minmax(0, 1fr) 300px; }
  .rail-signals { display: none; }
  .three-col > .left-rail { grid-column: 1 / 3; grid-row: 3; }
  .three-col > .featured-area { grid-column: 1 / 3; grid-row: 1; }
  .three-col > .center-col { grid-column: 1; grid-row: 2; }
  .three-col > .right-col { grid-column: 2; grid-row: 2; }
  .cat-panels { grid-template-columns: 1fr; }
  .cat-grid-2col { grid-template-columns: 1fr; }  /* FEAT-HOME-CAT-2COL-FINAL: side-by-side categories stack into one column when center narrows */
  .explore-rich { grid-template-columns: 1fr 1fr; }
  .nav-search { min-width: 150px; }
}
@media (max-width: 800px) {
  /* FEAT-HOME-LAYOUT: single column — featured, 內容, 編輯精選 stack in source order */
  .three-col { grid-template-columns: 1fr; }
  .three-col > .featured-area,
  .three-col > .center-col,
  .three-col > .right-col { grid-column: 1; grid-row: auto; }
  /* FEAT-HOME-RAIL-MOBILE-FIX: single column — 觀點+電子報 flow after the main content (快訊 stays hidden) */
  .three-col > .left-rail { grid-column: 1; grid-row: auto; order: 5; }
  .featured-split { grid-template-columns: 1fr; }
  .cat-panel-body { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .cp-page-list { grid-template-columns: 1fr; }
  .cp-page-lead { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .explore-rich { grid-template-columns: 1fr; }
  .post-title { font-size: 26px; }
  .numbered-list .np-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ticker-cards { flex-wrap: wrap; }
  .brand-bar-right { gap: 8px; }
  .nav-search { display: none; }
}

/* ============== Dark mode ============== */
@media (prefers-color-scheme: dark) {
  body { background: #0d0d0d; color: #e8e8e8; }
  :root, body {
    --ink: #f4f4f4;
    --gray-1: #e8e8e8;
    --gray-2: #c8c8c8;
    --gray-3: #999;
    --gray-4: #777;
    --gray-5: #555;
    --hairline: #1f1f1f;
    --hairline-2: #2a2a2a;
    --bg: #0d0d0d;
    --bg-card: #161616;
    --bg-soft: #1a1a1a;
    --accent-soft: #2a1f00;
  }
  a { color: var(--ink); }
  a:hover { color: var(--accent); }
  .site-head { background: #0d0d0d; }
  .brand-bar { background: #000; }
  .cat-nav, .cat-nav-inner { background: #0d0d0d; }
  .cat-link { color: #e8e8e8; }
  .ticker-card { background: #161616; border-color: #2a2a2a; }
  .ticker-card .price { color: #f4f4f4; }
  .nav-search { background: #161616; border-color: #2a2a2a; }
  .nav-search input { color: #f4f4f4; }
  .featured-area, .cat-panel, .right-block, .numbered-block, .explore-card-rich, .opinion-block,
  .card-grid .card, .related-card, .search-results .card, .feat-tab { background: #161616; border-color: #2a2a2a; }
  .feat-tab { color: #c8c8c8; }
  .feat-side li:first-child { background: #2a1f00; }
  .post-body ul { background: #2a1f00; }
  .sources, .disclosure { background: #161616; }
  .post-body a, .sources a, .static-body a { color: #79bfff; }
  .tag-pill { background: #161616; color: #c8c8c8; border-color: #2a2a2a; }
  .tag-pill:hover { background: var(--accent); color: #000; border-color: var(--accent); }
  .share-btn { background: #161616; color: var(--accent); border-color: var(--accent); }
  .nl-input { background: #161616; color: #f4f4f4; border-color: #2a2a2a; }
  .site-foot { background: #050505; }
}
