/* ============================================================
   PUMA HUB — 沈伯洋（Puma）文章與專訪索引
   （樣式承襲 PUMA 老師專訪站，另加索引頁專用區塊）
   ============================================================ */

:root {
  --navy: #0b1424;
  --navy-2: #101c31;
  --navy-3: #182840;
  --lime: #c6f24e;
  --lime-soft: #d8f88a;
  --paper: #f6f3ec;
  --card: #fffefa;
  --ink: #232f3d;
  --muted: #68727e;
  --line: #e6e1d3;
  --green: #3f6212;
  --green-soft: #eef6d8;
  --violet: #5b5bd6;
  --amber: #b45309;
  --amber-soft: #fdf0dd;
  --teal: #0f766e;
  --teal-soft: #ddf3f1;
  --gray-soft: #eef0f2;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -12px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--navy); }

img, svg { max-width: 100%; }

/* ---------- 閱讀進度條 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a8e10c, #c6f24e, #e9ffa0);
  transition: width 0.1s linear;
}

/* ---------- 頂部導覽 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 20, 36, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198, 242, 78, 0.14);
}
.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand .paw { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.brand em { color: var(--lime); font-style: normal; }
.topnav { display: flex; gap: 0.25rem; align-items: center; }
.topnav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.topnav a.active { color: var(--navy); background: var(--lime); font-weight: 600; }
.topnav a.nav-cta {
  color: var(--navy);
  background: var(--lime);
  font-weight: 600;
}
.topnav a.nav-cta:hover { background: var(--lime-soft); }
@media (max-width: 720px) {
  .topnav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(198, 242, 78, 0.16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(91, 91, 214, 0.22), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
  position: relative;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--lime);
  border: 1px solid rgba(198, 242, 78, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  margin-bottom: 1.6rem;
  background: rgba(198, 242, 78, 0.06);
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.32;
  margin: 0 0 1.1rem;
  letter-spacing: 0.01em;
}
.hero h1 .hl {
  color: var(--lime);
  background-image: linear-gradient(transparent 68%, rgba(198, 242, 78, 0.28) 68%);
}
.hero__sub {
  max-width: 46em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  margin: 0 0 1.9rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}
.chip b { color: #fff; font-weight: 600; }
.chip .dot { color: var(--lime); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 12px;
  padding: 0.72rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 8px 24px -8px rgba(198, 242, 78, 0.55);
}
.btn--primary:hover { background: var(--lime-soft); }
.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- 版面 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
section.block { padding: 4rem 0 1rem; }
.sec-head { margin-bottom: 2.2rem; }
.sec-eyebrow {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0.5rem;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0;
  color: var(--navy);
  line-height: 1.4;
}
.sec-title .num { color: var(--green); margin-right: 0.5rem; }
.sec-desc { color: var(--muted); margin-top: 0.6rem; max-width: 42em; }

/* ---------- 數據列 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3.2rem auto 0;
  max-width: 1080px;
  padding: 0 1.25rem;
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1rem;
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--green);
  line-height: 1.2;
}
.stat__label { font-size: 0.86rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- 一日行程 Timeline ---------- */
.timeline { position: relative; max-width: 820px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 29px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--lime) 0%, #d9d3c2 100%);
}
.stop {
  position: relative;
  display: flex;
  gap: 1.3rem;
  padding: 0 0 1.6rem 0;
}
.stop:last-child { padding-bottom: 0; }
.stop__badge {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.62rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 5px var(--paper);
  z-index: 1;
  text-align: center;
}
.stop__badge .t { font-size: 0.78rem; font-family: var(--serif); }
.stop__card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.stop__card:hover { transform: translateY(-2px); border-color: #c9d67f; }
.stop__time { font-size: 0.8rem; color: var(--green); font-weight: 700; letter-spacing: 0.06em; }
.stop__card h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--navy);
}
.stop__card h3 a { color: inherit; text-decoration: none; }
.stop__card h3 a:hover { color: var(--green); }
.stop__card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- 亮點卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(15, 23, 42, 0.22); }
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  background: var(--green-soft);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy);
}
.card p { margin: 0; font-size: 0.94rem; color: var(--muted); flex: 1; }

/* ---------- 金句橫幅 ---------- */
.banner {
  margin: 4rem 0 0;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(198, 242, 78, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 4.2rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.banner__inner { max-width: 860px; margin: 0 auto; text-align: center; }
.banner__quote-mark {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--lime);
  line-height: 0.5;
  display: block;
  margin-bottom: 1.2rem;
}
.banner blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 2.05rem);
  line-height: 1.65;
}
.banner blockquote .hl { color: var(--lime); }
.banner cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.2em;
}

/* ---------- 逐字稿 ---------- */
.chapters {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr; } .toc { display: none; } }
.toc {
  position: sticky;
  top: 76px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow);
}
.toc h4 {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
}
.toc a {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.42rem 0.6rem;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
  line-height: 1.5;
}
.toc a .tc { color: var(--green); font-size: 0.76rem; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--green-soft); }
.toc a.active { background: var(--navy); color: #fff; }
.toc a.active .tc { color: var(--lime); }

.chapter { margin-bottom: 3.2rem; }
.chapter:last-child { margin-bottom: 0; }
.chapter-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 0 1.3rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--navy);
}
.tc-badge {
  flex: none;
  background: var(--navy);
  color: var(--lime);
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
}
.chapter-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.turn {
  display: flex;
  gap: 0.85rem;
  padding: 0.42rem 0;
  scroll-margin-top: 90px;
}
.turn__avatar {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  color: #fff;
}
.turn__body { min-width: 0; }
.turn__who {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.05rem;
}
.turn p { margin: 0; }
.turn p + p { margin-top: 0.5rem; }

.turn--shen .turn__avatar { background: var(--green); }
.turn--shen .turn__who { color: var(--green); }
.turn--shen .turn__body p { color: #1d2a38; }

.turn--host .turn__avatar { background: var(--violet); }
.turn--host .turn__who { color: var(--violet); }
.turn--host .turn__body p { color: #47505c; }

.turn--people .turn__avatar { background: #94a3b8; }
.turn--people .turn__who { color: #64748b; }
.turn--people .turn__body p { color: #5b6673; }

.turn--runner .turn__avatar { background: var(--teal); }
.turn--runner .turn__who { color: var(--teal); }
.turn--runner .turn__body p { color: #445654; }

.turn--boss .turn__avatar { background: var(--amber); }
.turn--boss .turn__who { color: var(--amber); }
.turn--boss .turn__body p { color: #5c4d33; }

.turn--staff .turn__avatar { background: #6b7280; }
.turn--staff .turn__who { color: #6b7280; }
.turn--staff .turn__body p { color: #5b6673; }

.quote-in {
  margin: 1rem 0 0.6rem;
  padding: 0.9rem 1.2rem;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  color: #274012;
  line-height: 1.9;
}
.quote-in p { margin: 0.35rem 0; }

/* ---------- 譯註 / 分隔 ---------- */
.scene-break {
  text-align: center;
  color: #b9b29e;
  letter-spacing: 0.6em;
  margin: 0.6rem 0;
  font-size: 0.8rem;
}

/* ---------- CTA ---------- */
.cta {
  margin: 4.5rem 0 0;
  padding: 3.4rem 1.25rem;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: #fff;
}
.cta__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.7rem;
}
.cta p { color: rgba(255, 255, 255, 0.75); margin: 0 0 1.8rem; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.6rem 1.25rem 2.8rem;
  border-top: 1px solid rgba(198, 242, 78, 0.15);
}
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.88rem;
}
.footer__inner a { color: var(--lime); text-decoration: none; }
.footer__inner a:hover { text-decoration: underline; }
.footer__note { max-width: 34em; line-height: 1.8; }

/* ---------- 回到頂端 ---------- */
#toTop {
  position: fixed;
  right: 1.4rem;
  bottom: 1.6rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--lime);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(11, 20, 36, 0.5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 80;
}
#toTop.show { opacity: 1; transform: none; pointer-events: auto; }
#toTop:hover { background: var(--navy-3); }

/* ---------- 進場動畫 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   PUMA HUB — 文章與專訪索引（本頁專用）
   ============================================================ */

/* 兩欄卡片 */
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .cards--2 { grid-template-columns: 1fr; } }

/* 卡片：節目資訊標籤 */
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}
.card__meta span {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--gray-soft);
  border-radius: 999px;
  padding: 0.16rem 0.62rem;
  white-space: nowrap;
}
.card h3 { line-height: 1.5; }

/* 卡片：前往按鈕固定在底部 */
.card__cta {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.btn--sm { font-size: 0.9rem; padding: 0.5rem 1.15rem; border-radius: 10px; }

/* 全部網址清單 */
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.linklist li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  transition: transform 0.15s, border-color 0.15s;
}
.linklist li:hover { transform: translateY(-2px); border-color: #c9d67f; }
.linklist .ll-label {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.97rem;
}
.linklist .ll-url {
  font-size: 0.84rem;
  color: var(--green);
  word-break: break-all;
  text-decoration: none;
}
.linklist .ll-url:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .linklist li { display: block; }
  .linklist .ll-url { display: block; margin-top: 0.4rem; }
}
