:root {
  --ivory: #FBF6F1;
  --ink: #2B2320;
  --plum: #8B3A52;
  --plum-deep: #6E2A40;
  --sage: #7A8B6F;
  --gold: #C9A15A;
  --card: #FFFFFF;
  --line: #E7DCD1;
  --topbar-h: 92px;
  --rail-w: 104px;        /* left progress rail width */
  --content-left: 128px;  /* space reserved on the left for the rail */
  --page-w: 1300px;       /* content max width */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.7;
}

.wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 28px; }

/* ---- PPT / full-page scroll-snap ---- */
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }
.slide {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--topbar-h) + 20px) 0 28px;
  margin: 0 !important;
}

/* ---- fixed top bar: big title + scrollable category tabs ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(251, 246, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-top {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 14px 28px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; flex-direction: row; align-items: center; gap: 14px; min-width: 0; flex: none;
  cursor: pointer; /* the title/logo doubles as the 首頁 button */
  border-radius: 8px;
  transition: opacity .15s;
}
.brand:hover { opacity: .8; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-logo {
  height: 40px;
  width: auto;
  flex: none; /* don't let the flex row stretch/shrink it off its intrinsic 3.08:1 ratio */
}
.brand .eyebrow {
  font-size: 11px; letter-spacing: .18em; color: var(--plum); font-weight: 700; text-transform: uppercase;
}
.brand-title { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.15; margin: 0; }
.brand-updated { font-size: 11px; color: #a89c8f; white-space: nowrap; }

/* right cluster: update time (top) + smaller, right-aligned category tabs */
.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
/* industry tabs — 首頁 is the site title/logo now, not a tab in this cluster */
.tabs-cluster { display: flex; align-items: center; gap: 10px; }
.topbar .tabs {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  max-width: 100%;
}
/* single row when it fits; wraps to further rows on narrow screens rather than
   overflowing or getting clipped */
.tabs-row { display: flex; gap: 5px; justify-content: flex-start; flex-wrap: wrap; }
.topbar .tab-btn { flex: none; white-space: nowrap; padding: 6px 12px; font-size: 13px; }

/* ---- left vertical section progress / jump rail ---- */
.side-progress {
  position: fixed;
  top: calc(var(--topbar-h) + 28px);
  left: max(20px, calc((100vw - var(--page-w)) / 2 - 28px));
  width: var(--rail-w);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.side-progress .prog-seg {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 10px;
  border: none;
  border-left: 2px solid var(--line);
  background: none;
  font-family: inherit;
  color: #a89c8f;
  cursor: pointer;
  text-align: left;
  transition: .15s;
}
.side-progress .prog-seg:hover { color: var(--plum); border-left-color: #d8c3b0; }
.side-progress .prog-seg.active { color: var(--plum); border-left-color: var(--plum); }
.side-progress .prog-num { font-size: 10.5px; font-weight: 700; }
.side-progress .prog-label { font-size: 12.5px; font-weight: 500; white-space: nowrap; }

/* show the left rail (and reserve room for it) only when the gutter is wide enough */
@media (min-width: 1024px) {
  .side-progress { display: flex; }
  .wrap { padding-left: var(--content-left); }
}

/* 首頁: single flat section, not a multi-slide PPT page — no section rail, no
   reserved rail gutter, no full-page scroll-snap */
html.homepage-active { scroll-snap-type: none; }
html.homepage-active .side-progress { display: none; }
@media (min-width: 1024px) {
  html.homepage-active .wrap { padding-left: 28px; }
}
/* replaces the top offset 'slide' used to provide, so content still clears the
   fixed topbar (without slide's full-viewport centering/snap) */
.homepage-section { padding: calc(var(--topbar-h) + 20px) 0 40px; }

/* mobile: content rarely fits one screen — relax snap and stack heat cards */
@media (max-width: 720px) {
  html { scroll-snap-type: none; }
  .slide { min-height: auto; padding: calc(var(--topbar-h) + 12px) 0 32px; }
  .heat-grid { grid-template-columns: 1fr; }
  .brand-title { font-size: 20px; }
}

/* ---- (legacy hero styles kept for any fallback) ---- */
.eyebrow {
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--plum);
  font-weight: 700;
  text-transform: uppercase;
}
.meta-row {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7a6f66;
}
.meta-row span { display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---- tabs ---- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.tab-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
}
/* :not(.active) matters: .tab-btn:hover:not(.disabled) has higher specificity
   than .tab-btn.active, so without this exclusion, hovering an already-active
   tab (e.g. right after clicking it, before the mouse moves away) overrode its
   white text color to plum — same as the active background, making the label
   invisible until the mouse moved off. */
.tab-btn:hover:not(.disabled):not(.active) { border-color: var(--plum); color: var(--plum); }
.tab-btn.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.tab-btn.disabled { color: #b8ada2; cursor: not-allowed; background: transparent; }

/* ---- sections ---- */
main { min-height: 200px; }
.loading, .empty { color: #9a8f84; padding: 40px 0; text-align: center; }

section.block { margin-bottom: 52px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.section-num { font-family: 'Noto Serif TC', serif; color: var(--gold); font-size: 14px; font-weight: 700; }
section.block h2 { font-family: 'Noto Serif TC', serif; font-size: 22px; margin: 0; font-weight: 700; }
.section-desc { color: #7a6f66; font-size: 13.5px; margin: 6px 0 18px; }

/* ---- topic cards ---- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.topic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
}
.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  background: #EFF1EA;
  color: var(--sage);
}
.tag.成分話題, .tag.技術話題 { background: #EFF1EA; color: var(--sage); }
.tag.聯名話題, .tag.明星效應 { background: #F7E9EE; color: var(--plum); }
.tag.季節話題, .tag.通路話題, .tag.其他 { background: #FBF1DF; color: #9c7a2e; }
/* Clamp title/summary to a fixed number of lines with a matching reserved
   height, so every card is the same height regardless of how long its text
   happens to be — otherwise different categories' topic text lengths made
   the "近期熱門話題" section a different overall height on every tab. */
.topic-card h3 {
  font-family: 'Noto Serif TC', serif; font-size: 17px; font-weight: 700;
  margin: 0 0 8px; line-height: 1.3; height: calc(1.3em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topic-card p {
  font-size: 13.5px; color: #544a43; margin: 0 0 10px; line-height: 1.55; height: calc(1.55em * 3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.topic-card .source {
  font-size: 11.5px;
  color: #a89c8f;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  margin-top: auto;
}

/* ---- coming soon placeholder ---- */
.coming-soon {
  background: repeating-linear-gradient(45deg, #FBF6F1, #FBF6F1 12px, #F7F1E9 12px, #F7F1E9 24px);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
}
.coming-soon-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--plum);
  background: #F7E9EE;
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 10px;
}
.coming-soon p { margin: 0; font-size: 13.5px; color: #7a6f66; }

/* ---- social pulse (快報 style) ---- */
/* platform pills */
.plat-pill, .tk-plat {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 9px; border-radius: 100px;
  border: 1px solid; white-space: nowrap;
}
.plat-Threads { color: #2B2320; border-color: #2B2320; }
.plat-Facebook { color: #2f68b3; border-color: #2f68b3; }
.plat-Instagram { color: #b8457e; border-color: #b8457e; }
.plat-Google { color: #3a7; border-color: #3a7; }

/* search-trends chips */
.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 900px) { .question-grid { grid-template-columns: repeat(2, 1fr); } }
.question-grid .search-chip { justify-content: flex-start; }
/* pull the second subsection close to the questions block */
.question-grid + .subsection-head { margin-top: 6px; }
.subsection-head + .search-topic-grid { margin-top: 4px; }
.search-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 900px) { .search-topic-grid { grid-template-columns: repeat(2, 1fr); } }
.search-topic-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px 15px;
}
.stc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--plum);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.stc-name { white-space: nowrap; }
.stc-heat { display: inline-flex; align-items: center; gap: 7px; }
.stc-bar {
  width: 70px; height: 8px;
  background: #EBE0D4; border-radius: 100px; overflow: hidden;
}
.stc-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--plum));
  border-radius: 100px;
}
.stc-val { font-size: 11.5px; font-weight: 700; color: #6b5f57; white-space: nowrap; }
.stc-trend { font-size: 13px; font-weight: 700; }
.subsection-note { font-size: 12px; color: #9a8f85; margin: -8px 0 14px; line-height: 1.5; }
.stc-trend.trend-up { color: #b4322f; }
.stc-trend.trend-down { color: #9a9088; }
.stc-trend.trend-flat { color: #c2b8ad; }
.search-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.search-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  color: var(--ink);
  text-decoration: none;
  transition: .15s;
}
.search-topic-card .search-chip { background: var(--ivory); }
.search-chip:hover { border-color: var(--plum); color: var(--plum); background: #F7E9EE; }
.search-chip .sc-icon { font-size: 11px; opacity: .7; }
.search-chip.is-question { background: #FBF1E9; border-color: #EAD9C4; }
.search-chip.is-question:hover { border-color: var(--gold); color: #8a6a2a; background: #F6E6D2; }
.social-author { font-size: 12px; color: #a89c8f; }

/* lead story */
.social-lead {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 4px 0 22px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.heat-gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hg-track { width: 6px; height: 84px; background: #F1E9E0; border-radius: 3px; overflow: hidden; position: relative; }
.hg-fill { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px; background: linear-gradient(to top, var(--gold), var(--plum)); }
.hg-num { font-size: 11px; font-weight: 700; color: var(--plum); text-align: center; }
.lead-body .lead-headline {
  display: inline-block;
  font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 19px; line-height: 1.4;
  color: var(--ink); text-decoration: none; margin-bottom: 8px;
}
.lead-body .lead-headline:hover { color: var(--plum); }
.lead-sub { font-size: 14px; color: #5b5049; margin: 0 0 12px; }
.pillrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ticker */
.social-ticker { }
.tk-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.tk-item:last-child { border-bottom: none; }
.tk-num { font-size: 12px; font-weight: 700; color: #c2b5a6; }
.tk-headline {
  display: inline-block; font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; margin-bottom: 3px;
}
.tk-headline:hover { color: var(--plum); text-decoration: underline; }
.tk-sub { font-size: 12.5px; color: #7a6f66; line-height: 1.5; }
.tk-stat { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tk-heat { font-size: 12.5px; font-weight: 700; color: var(--plum); }

/* ---- news list ---- */
.news-list {
  list-style: none; padding: 0; margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.news-list li { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.news-list li:last-child { border-bottom: none; }
.news-list a { color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--plum); text-decoration: underline; }
.news-meta { display: block; margin-top: 4px; font-size: 12px; color: #a89c8f; }

.more-btn {
  display: block;
  margin: 14px auto 0;
  padding: 8px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--plum);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
}
.more-btn:hover { border-color: var(--plum); background: #F7E9EE; }

/* ---- ad heat (per-topic) ---- */
.subsection-note { font-size: 12.5px; color: #7a6f66; margin: 0 0 18px; }
.subsection-head {
  font-family: 'Noto Serif TC', serif;
  font-size: 16px;
  font-weight: 700;
  margin: 34px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
/* first subsection sits right under the section header — no redundant separator */
.section-desc + .subsection-head {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
/* same, for a subsection-head that's the first thing inside its own column
   (e.g. 首頁's two side-by-side columns) rather than a direct sibling. 首頁 has
   no page title above these anymore, so the three column headings (今日全台
   熱搜 / 產業熱門話題 / 社群脈動焦點) carry that role — sized up accordingly. */
.hp-col > .subsection-head:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 21px;
}
.heat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.heat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
}
.heat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.heat-title { font-family: 'Noto Serif TC', serif; font-size: 17px; font-weight: 700; }
.heat-count { font-size: 12px; color: var(--plum); font-weight: 700; white-space: nowrap; }
.meter { height: 8px; background: #F1E9E0; border-radius: 100px; margin: 9px 0; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--plum)); }
.brand-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.brand-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  background: #FAF5EF;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 100px;
  color: #544a43;
  text-decoration: none;
  transition: .15s;
}
.brand-chip:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.brand-chip:hover .chip-platform { color: #fff; border-color: rgba(255,255,255,.5); }
.chip-platform {
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
  color: #a89c8f; border: 1px solid var(--line);
  border-radius: 4px; padding: 0 4px;
}
.heat-note {
  font-size: 12.5px; color: #6b6058; margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 首頁: cross-industry heat ranking ---- */
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-row {
  display: flex; align-items: center; gap: 18px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: .15s;
}
.rank-row:hover { border-color: var(--plum); box-shadow: 0 2px 10px rgba(139,58,82,.08); }
.rank-num {
  font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 18px;
  color: var(--gold); width: 28px; flex: none;
}
.rank-mid { flex: 1; min-width: 0; }
.rank-label-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rank-label { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 16px; }
.rank-keyword { font-size: 12.5px; color: #a89c8f; }
.rank-bar { height: 8px; background: #F1E9E0; border-radius: 100px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--plum)); }
.rank-stat { display: flex; align-items: center; gap: 8px; flex: none; }
.rank-val { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 20px; color: var(--plum); min-width: 34px; text-align: right; }
.rank-trend { font-size: 15px; font-weight: 700; }
.rank-trend.trend-up { color: #b4322f; }
.rank-trend.trend-down { color: #9a9088; }

/* 首頁: ranking (left) + nationwide trending searches (right), side by side */
.homepage-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1150px) { .homepage-grid { grid-template-columns: 1fr; } }
.hp-col { min-width: 0; }
.trend-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
}
.trend-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.trend-row:last-child { border-bottom: none; }
.trend-row:hover .trend-term { color: var(--plum); text-decoration: underline; }
.trend-num { font-size: 12px; font-weight: 700; color: #c2b5a6; }
.trend-term { font-size: 14.5px; font-weight: 500; }
.trend-traffic { font-size: 12px; color: var(--plum); font-weight: 700; white-space: nowrap; }

/* 首頁: 產業熱門話題 / 社群脈動焦點 — one row per industry, single column so
   all three homepage columns read as plain top-to-bottom lists that line up */
.itopic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.itopic-row {
  /* buttons default to vertically-centering their content in some browsers once
     stretched taller than natural height (a CSS grid row with a taller sibling
     card does exactly that) — force normal top-down block flow so the title
     always starts right under the head, regardless of row height. */
  display: block;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}
.itopic-row:hover { border-color: var(--plum); box-shadow: 0 2px 10px rgba(139,58,82,.08); }
.itopic-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.itopic-industry { font-family: 'Noto Serif TC', serif; font-weight: 700; font-size: 13.5px; color: var(--plum); }
.itopic-tags { display: flex; align-items: center; gap: 6px; flex: none; }
.itopic-tag { font-size: 10.5px; color: #a89c8f; background: #F3EAE0; padding: 2px 7px; border-radius: 100px; white-space: nowrap; }
.itopic-title {
  font-size: 13px; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- ad cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.ad-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ad-media { position: relative; }
.ad-card img.thumb { width: 100%; background: #f0ebe4; display: block; }
.ad-card img.thumb-photo { aspect-ratio: 1 / 1; object-fit: cover; }
.ad-card img.thumb-screenshot { max-height: 420px; object-fit: contain; }
.platform-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 100px; color: #fff;
}
.platform-badge.platform-Meta { background: rgba(24, 119, 242, .92); }
.platform-badge.platform-Google { background: rgba(52, 168, 83, .92); }
.ad-topic { font-size: 11.5px; color: var(--plum); font-weight: 500; }
.ad-card .placeholder-thumb {
  width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  background: #f0ebe4; color: #a89c8f; font-size: 13px; text-align: center; padding: 0 16px;
}
.ad-card .ad-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ad-card .advertiser { font-weight: 700; font-size: 13.5px; }
.ad-card .ad-text { font-size: 12.5px; color: #6b6058; white-space: pre-line; max-height: 88px; overflow: hidden; line-height: 1.5; }
.ad-card .ad-date { font-size: 11px; color: #a89c8f; }
.ad-card .ad-link { font-size: 12px; color: var(--plum); text-decoration: none; margin-top: auto; font-weight: 500; }
.ad-card .ad-link:hover { text-decoration: underline; }

footer {
  /* without its own snap point, mandatory scroll-snap has nowhere to land here
     and bounces back to the last slide — the text "跳開消失" the user saw */
  scroll-snap-align: end;
  scroll-snap-stop: always;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  padding-bottom: 28px;
  margin-top: 20px;
  font-size: 12px;
  color: #a89c8f;
}
