/* 股癌筆記 — Aqua Splash design system
   PANTONE 14-4812 Aqua Splash #85CED1 / 深海墨 #0B3336 / 深青 #017373
   淺水 #E4F4F3 / 浪花白 #F7FBFA / 琥珀 #C77414（僅風險警示）
   規則：Aqua Splash 上一律配深海墨字；白字只出現在深青／深海墨底上。 */
:root {
  --aqua: #85CED1;
  --ink: #0B3336;
  --teal: #017373;
  --pale: #E4F4F3;
  --foam: #F7FBFA;
  --white: #FFFFFF;
  --amber: #C77414;
  --muted: #4A6A67;
  --line: #CFE8E4;
  --shadow: 0 1px 4px rgba(11, 51, 54, .08);
  --shadow-lg: 0 4px 16px rgba(11, 51, 54, .14);
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--foam);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
mark { background: var(--aqua); color: var(--ink); padding: 0 3px; border-radius: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.reading { max-width: 680px; }

/* ---------- 頂部導覽 ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--foam);
  border-bottom: 2px solid var(--aqua);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 20px;
}
.logo { font-size: 20px; font-weight: 900; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--teal); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 16px; font-size: 14px; }
.nav-links a { color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-search { margin-left: auto; position: relative; }
.nav-search input {
  width: 200px; padding: 8px 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); outline: none;
}
.nav-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 115, 115, .15); }

/* ---------- 搜尋框共用 ---------- */
.search-box { position: relative; }
.search-box input {
  width: 100%; padding: 13px 18px; font-size: 15px;
  border: 2px solid var(--aqua); border-radius: 999px;
  background: var(--white); color: var(--ink); outline: none;
}
.search-box input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 115, 115, .15); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden;
  border: 1px solid var(--line); display: none;
}
.suggest.open { display: block; }
.suggest-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--pale);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item.active { background: var(--pale); }
.suggest-item .s-kind {
  flex: none; font-size: 11px; font-weight: 700; color: var(--teal);
  border: 1px solid var(--teal); border-radius: 4px; padding: 1px 6px; margin-top: 1px;
}
.suggest-item .s-title { font-weight: 700; }
.suggest-item .s-snip { color: var(--muted); line-height: 1.6; }
.suggest-loading { padding: 12px 14px; font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  /* 深青只留在漸層最右端作點綴，文字區一律落在淺水／Aqua 上（深海墨字對比才合格） */
  background: linear-gradient(115deg, #D9EFEA 0%, var(--aqua) 55%, var(--teal) 135%);
  color: var(--ink);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 44px 20px 48px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--teal); }
.hero-title { font-size: 46px; font-weight: 900; line-height: 1.15; margin-top: 10px; }
.hero-sub { font-size: 15px; line-height: 1.8; margin-top: 10px; max-width: 560px; }
.hero-search { max-width: 560px; margin-top: 20px; }
.hero-latest {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px;
  font-size: 13px;
}
.hero-latest .chip {
  background: var(--ink); color: var(--white);
  font-weight: 700; border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.hero-latest a { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- 區塊 ---------- */
.section { padding: 28px 0 8px; }
.section-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 18px; font-weight: 800; }
.section-head .hint { font-size: 13px; color: var(--muted); }
.section-head .right { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--teal); }

/* ---------- 焦點輪播 ---------- */
.carousel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.focus-stage { position: relative; height: clamp(280px, 52vw, 470px); overflow: hidden; border-radius: 10px; background: var(--foam); }
.focus-card {
  position: absolute; left: 50%; top: 50%;
  height: 100%; aspect-ratio: 1 / 1;
  cursor: pointer; background: var(--pale); border-radius: 10px; overflow: hidden;
  border: none; padding: 0;
  box-shadow: var(--shadow-lg);
  /* 依與目前索引的距離設定位置、大小、透明度（--d 由 JS 設定，-2..2） */
  transform: translate(-50%, -50%) translateX(calc(var(--d, 0) * 58%)) scale(var(--s, 1));
  opacity: var(--o, 1);
  z-index: var(--z, 1);
  transition: transform .6s ease-in-out, opacity .6s ease-in-out;
}
.focus-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-ph {
  width: 100%; height: 100%;
  /* 佔位卡：淺水底＋深海墨字（白字放 Aqua 漸層上對比不合格，故不用漸層） */
  background: var(--pale);
  border: 2px dashed var(--teal);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink); text-align: center; padding: 20px;
}
.card-ph .card-no { font-size: 26px; font-weight: 900; }
.card-ph .card-note { font-size: 13px; margin-top: 6px; color: var(--muted); }
.card-ph .card-ep { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--teal); margin-bottom: 4px; }
.focus-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.focus-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: var(--ink); color: var(--white); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; opacity: .92; cursor: pointer;
}
.focus-arrow:hover { background: var(--teal); }
.carousel-dots { display: flex; gap: 6px; justify-content: center; align-items: center; }
.carousel-dots .dot {
  width: 8px; height: 8px; border-radius: 4px; border: none;
  background: #BFE3E0; padding: 0; cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.carousel-dots .dot.active { width: 26px; background: var(--teal); }
.carousel-cap { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.7; text-align: center; }
.carousel-cap a { font-weight: 700; }

/* ---------- 手繪圈重點 ---------- */
.draw-hl { position: relative; display: inline-block; padding: 0 .1em; white-space: nowrap; }
.draw-hl-svg {
  position: absolute; left: -0.5em; top: -0.32em;
  width: calc(100% + 1em); height: calc(100% + 0.55em);
  overflow: visible; pointer-events: none;
}
.draw-hl-svg path {
  fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.draw-hl-svg .draw-circle { animation: draw-circle 9s ease-in-out infinite; }
.draw-hl-svg .draw-line { animation: draw-line 9s ease-in-out infinite; }
@keyframes draw-circle {
  0% { stroke-dashoffset: 100; }
  13% { stroke-dashoffset: 0; }
  48% { stroke-dashoffset: 0; }
  62% { stroke-dashoffset: -100; }
  100% { stroke-dashoffset: -100; }
}
@keyframes draw-line {
  0%, 11% { stroke-dashoffset: 100; }
  22% { stroke-dashoffset: 0; }
  52% { stroke-dashoffset: 0; }
  66%, 100% { stroke-dashoffset: -100; }
}

/* ---------- 螢光筆（只用在 30 秒快讀標籤，取代手繪圈；兩大標題仍用手繪圈） ---------- */
.hl-mark {
  position: relative; display: inline-block; padding: 0 .15em;
  white-space: nowrap; isolation: isolate;
}
.hl-mark::before {
  content: ""; position: absolute; left: -0.05em; right: -0.05em;
  top: 52%; bottom: -0.08em; z-index: -1;
  background: rgba(255, 235, 120, 0.6);
  transform: scaleX(0); transform-origin: left center;
  animation: hl-sweep 3s ease-in-out infinite;
}
@keyframes hl-sweep {
  0% { transform: scaleX(0); opacity: 1; }
  33% { transform: scaleX(1); opacity: 1; }
  66% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- 心跳放大（品牌首頁標題專用） ---------- */
.hb { position: relative; display: inline-block; animation: hb-beat 2.2s ease-in-out infinite; }
@keyframes hb-beat {
  0%, 100% { transform: scale(1); }
  6% { transform: scale(1.06); }
  14% { transform: scale(1); }
  28% { transform: scale(1.09); }
  38% { transform: scale(1); }
}
.hb-ring {
  position: absolute; left: 50%; top: 50%;
  width: 130%; aspect-ratio: 1;
  border: 2px solid rgba(1, 115, 115, 0.45); border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.55); opacity: 0;
  pointer-events: none;
  animation: hb-ring 2.2s ease-out infinite;
}
.hb-ring.r2 { animation-delay: 0.15s; }
.hb-ring.r3 { animation-delay: 0.43s; }
.hb-ring.r4 { animation-delay: 0.58s; }
@keyframes hb-ring {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 0; }
  12% { opacity: 0.5; }
  55% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

@font-face {
  font-family: 'Better Saturday';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/better-saturday.woff') format('woff');
}

/* ---------- 品牌簽名（手寫，標題下方） ---------- */
.brand-sig { display: block; width: 340px; height: auto; margin: 0 0 10px; position: relative; z-index: 1; cursor: pointer; }
.brand-sig path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
#sig-text { font-family: 'Better Saturday', cursive; fill: var(--ink); transform: skewX(-10deg); transform-box: fill-box; transform-origin: left bottom; } /* Kai：英文再斜一點（右傾 10°，以字底左端為軸） */
#sig-line { fill: var(--ink); stroke: none; } /* 填色筆觸形狀：左端粗、向右收成尖（粗細變化）；揭示靠 clip，初始寬度 0 即隱藏 */
#sig-tip { fill: var(--teal); opacity: 0; }

/* ---------- Hero 粒子連線 ---------- */
.hero-brand { position: relative; }
.hero-brand .hero-inner { position: relative; z-index: 1; }
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- 集數列表 ---------- */
.ep-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ep-row {
  display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start;
  border-bottom: 1px solid var(--pale); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ep-row:last-child { border-bottom: none; }
.ep-row:hover { transform: translateY(-1px); box-shadow: var(--shadow); background: var(--foam); }
.ep-row:hover .ep-title { color: var(--teal); }
.ep-badge {
  flex: none; background: var(--aqua); color: var(--ink);
  border-radius: 8px; padding: 7px 10px; font-weight: 800; font-size: 13px; white-space: nowrap;
}
.ep-badge.gap { background: var(--pale); color: var(--muted); }
.ep-body { min-width: 0; }
.ep-title { font-weight: 700; font-size: 15px; line-height: 1.5; }
.ep-title .tag-new {
  background: var(--teal); color: var(--white); font-size: 10px;
  border-radius: 999px; padding: 2px 7px; vertical-align: 2px; margin-left: 4px;
}
.ep-meta { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.ep-meta .ep-date { color: var(--teal); font-weight: 700; }
.list-sentinel { padding: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.list-end { padding: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- 單集頁 ---------- */
.ep-page { padding: 28px 0 8px; }
.ep-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ep-head h1 { font-size: 24px; font-weight: 800; line-height: 1.35; }
.ep-subtitle { font-size: 15px; color: var(--muted); margin-top: 4px; }
.ep-date-line { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ep-buttons { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 8px 16px; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #015E5E; }
.btn-outline { background: var(--white); border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--muted); }
.video-wrap {
  position: relative; width: 100%; max-width: 680px; margin: 18px auto 0;
  border-radius: var(--radius); overflow: hidden;
}
.video-wrap.playing { aspect-ratio: 16 / 9; background: var(--ink); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 影片連結條：縮圖 + 標題 + YouTube 連結，點縮圖才在站內載入播放器 */
.video-strip { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 10px; }
.vs-thumb { flex: none; position: relative; width: 160px; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; }
.vs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; text-shadow: 0 1px 8px rgba(0,0,0,.55); background: rgba(11,51,54,.18); }
.vs-thumb:hover .vs-play { background: rgba(1,115,115,.35); }
.vs-meta { flex: 1; min-width: 0; text-align: left; }
.vs-title { font-weight: 700; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.vs-yt { flex: none; white-space: nowrap; }
@media (max-width: 640px) {
  .video-strip { gap: 10px; padding: 8px 10px 8px 8px; }
  .vs-thumb { width: 112px; }
  .vs-title { font-size: 14px; }
  .vs-yt { padding: 8px 10px; font-size: 13px; }
}

.notice {
  border-radius: var(--radius); padding: 14px 16px; font-size: 14px; line-height: 1.8;
  margin-top: 18px;
}
.notice.amber { background: #FBF3E4; border-left: 4px solid var(--amber); }
.notice.aqua { background: var(--pale); border-left: 4px solid var(--aqua); }
.notice strong { display: block; font-size: 13px; letter-spacing: .04em; }

/* 30 秒快讀 */
.card-30s {
  background: var(--pale); border-left: 4px solid var(--aqua);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin-top: 18px;
}
.card-30s .label { font-size: 18px; font-weight: 800; letter-spacing: .06em; color: var(--teal); }
.card-30s .body { font-size: 15px; line-height: 1.9; margin-top: 8px; }
.card-30s .body p + p { margin-top: 6px; }

.ep-layout { display: grid; grid-template-columns: 190px 1fr; gap: 28px; margin-top: 22px; align-items: start; }
.ep-nav { position: sticky; top: 76px; }
.ep-nav a {
  display: block; padding: 8px 12px; font-size: 14px; color: var(--muted);
  border-left: 3px solid transparent; font-weight: 500;
}
.ep-nav a:hover { color: var(--teal); text-decoration: none; }
.ep-nav a.active { color: var(--teal); font-weight: 700; border-left-color: var(--teal); background: var(--pale); border-radius: 0 8px 8px 0; }
.ep-nav-mobile { display: none; }
.ep-main { min-width: 0; }
.ep-main h2.sec {
  font-size: 18px; font-weight: 800; margin: 30px 0 12px;
  padding-top: 8px; border-top: 2px solid var(--pale);
}
.ep-main h2.sec:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.ep-main h3 { font-size: 16px; font-weight: 800; margin: 20px 0 8px; }
.ep-main p { font-size: 16px; line-height: 1.9; margin-bottom: 10px; }
.ep-main ul { list-style: none; }
.ep-main ul li {
  position: relative; font-size: 15px; line-height: 1.9;
  padding-left: 16px; margin-bottom: 8px;
}
.ep-main ul li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--aqua);
}
.ep-main ol { padding-left: 22px; }
.ep-main ol li { font-size: 15px; line-height: 1.9; margin-bottom: 8px; }

/* 重點卡 */
.point-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
.point-title { font-weight: 800; font-size: 15px; line-height: 1.6; }
.point-title .time-chip {
  background: var(--pale); color: var(--teal); font-size: 12px; font-weight: 700;
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
/* 深度解析主題的時間標記（可點，跳到影片該段） */
.ep-main h3 .time-chip {
  background: var(--pale); color: var(--teal); font-size: 12px; font-weight: 700;
  border: none; border-radius: 6px; padding: 2px 8px; white-space: nowrap;
  cursor: pointer; vertical-align: 2px; font-family: inherit;
}
.ep-main h3 .time-chip:hover { background: var(--aqua); }
.point-rows { margin-top: 12px; font-size: 15px; line-height: 1.9; }
.point-rows > div { margin-top: 8px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  border-radius: 4px; padding: 2px 7px; margin-right: 6px; vertical-align: 1px;
}
.tag-arg { background: var(--teal); color: var(--white); }
.tag-practice { background: var(--aqua); color: var(--ink); }
.tag-risk { background: #7A4A00; color: var(--white); } /* 琥珀 #C77414 配白字只有 3.54:1，標籤改用深琥珀 */
.tag-logic { background: var(--ink); color: var(--white); }

/* 內容尚未整理的佔位：與 EP714 同一套白卡骨架，文字用 muted */
.point-card .muted-ph { color: var(--muted); margin: 0; }
.point-card h3:first-child { margin-top: 0; }
.point-card p:last-child, .point-card ul:last-child { margin-bottom: 0; }
.card-30s .muted-ph { color: var(--muted); margin: 0; }

/* 逐字稿 */
.transcript { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.tr-block { font-size: 15px; line-height: 1.9; margin-bottom: 12px; }
.tr-time {
  display: inline-block; background: var(--pale); color: var(--teal);
  font-weight: 700; font-size: 12px; border-radius: 6px; padding: 3px 8px; margin-right: 8px;
  border: none;
}
button.tr-time:hover { background: var(--aqua); color: var(--ink); }
.tr-more { text-align: center; margin-top: 8px; }
.tr-count { font-size: 13px; color: var(--muted); margin-top: 6px; }
details.corrections { margin-top: 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
details.corrections summary { font-weight: 700; font-size: 14px; cursor: pointer; }
details.corrections ul { margin-top: 10px; }

/* 上一集／下一集 */
.pager { display: flex; gap: 12px; margin: 30px 0 10px; }
.pager a {
  flex: 1; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; color: var(--ink);
}
.pager a:hover { text-decoration: none; border-color: var(--teal); }
.pager a:hover .pg-title { color: var(--teal); }
.pager .pg-dir { font-size: 12px; color: var(--muted); }
.pager .pg-title { font-weight: 700; font-size: 14px; margin-top: 2px; }
.pager .pg-next { text-align: right; }
.pager .pg-empty { flex: 1; }

/* ---------- 搜尋結果 ---------- */
.search-head { padding: 28px 0 4px; }
.search-head h1 { font-size: 22px; font-weight: 800; }
.search-head .count { font-size: 14px; color: var(--muted); margin-top: 6px; }
.result-ep { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.result-ep .r-head { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.result-ep .r-head:hover .r-title { color: var(--teal); }
.r-title { font-weight: 700; font-size: 15px; }
.r-date { font-size: 12px; color: var(--muted); }
.snippet { font-size: 14px; line-height: 1.9; margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--aqua); }
.snippet .s-label { font-size: 11px; font-weight: 700; color: var(--teal); }
.empty-state { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 20px; }
.empty-state h2 { font-size: 17px; font-weight: 800; }
.empty-state ul { margin-top: 12px; }
.empty-state li { margin-bottom: 6px; }

/* ---------- 頁尾 ---------- */
.footer { background: var(--ink); color: var(--foam); margin-top: 48px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 36px 20px 24px; }
.footer-cols { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 180px; font-size: 13px; line-height: 2; }
.footer-col h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; color: var(--aqua); }
.footer-col .f-logo { font-size: 18px; font-weight: 900; color: var(--foam); }
.footer-col .f-logo span { color: var(--aqua); }
.footer-col p { line-height: 1.8; opacity: .85; }
.footer-col a { color: var(--foam); }
.footer-col a:hover { color: var(--aqua); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(247, 251, 250, .2);
  margin-top: 24px; padding-top: 16px;
  font-size: 12px; line-height: 1.8; opacity: .75;
}

/* ---------- 燈箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(11, 51, 54, .85);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 720px; width: 100%; text-align: center; }
.lightbox-inner .card-ph { border-radius: 12px; aspect-ratio: 16 / 9; }
.lightbox-inner img#lightbox-img { width: 100%; border-radius: 12px; }
.lightbox-close {
  margin-top: 14px; background: var(--white); color: var(--ink);
  border: none; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 13px;
}
.lightbox-cap { color: var(--foam); font-size: 13px; margin-top: 10px; }

/* ---------- 響應式 ---------- */
@media (max-width: 900px) {
  .ep-layout { grid-template-columns: 1fr; gap: 0; }
  .ep-nav { display: none; }
  .ep-nav-mobile {
    display: flex; gap: 6px; overflow-x: auto; margin-top: 18px;
    padding-bottom: 6px; scrollbar-width: none;
  }
  .ep-nav-mobile::-webkit-scrollbar { display: none; }
  .ep-nav-mobile a {
    flex: none; background: var(--white); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--ink); font-weight: 500;
  }
  .ep-nav-mobile a:hover { text-decoration: none; border-color: var(--teal); color: var(--teal); }
  .nav-search input { width: 140px; }
  .nav-links { gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero-inner { padding: 32px 20px 36px; }
  .hero-title { font-size: 34px; }
  .nav-inner { flex-wrap: wrap; gap: 8px 16px; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 6px 14px; order: 3; flex-basis: 100%; padding-bottom: 2px; }
  .ep-head h1 { font-size: 20px; }
  .pager { flex-direction: column; }
  .pager .pg-next { text-align: left; }
  .ep-row { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-card { transition: none; }
  .draw-hl-svg { display: none; }
  .hb { animation: none; }
  .hb-ring { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 品牌站共用導覽（2026-12-05） ---------- */
.nav-links a.active { color: var(--teal); font-weight: 700; border-bottom: 2px solid var(--teal); padding-bottom: 2px; }
/* 導覽列搜尋改成表單時（品牌首頁／書籍頁，GET 到 /gooaye/search.html） */
form.nav-search { margin-left: auto; position: relative; }
form.nav-search input {
  width: 200px; padding: 8px 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); outline: none;
}
form.nav-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 115, 115, .15); }

/* ---------- 股癌次導覽（只在 /gooaye/ 首頁，導覽列下方） ---------- */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav-inner {
  max-width: 1080px; margin: 0 auto; padding: 8px 20px;
  display: flex; gap: 20px; font-size: 13px;
}
.subnav-inner a { color: var(--muted); font-weight: 500; }
.subnav-inner a:hover { color: var(--teal); text-decoration: none; }

/* ---------- 品牌首頁 Hero（比股癌 Hero 更簡潔、留白更多） ---------- */
/* 2026-12-05 Kai 回饋：上面那片綠太重——漸層改淡（淺水起頭、深青推到 170% 才出現），Hero 壓回約 340px */
.hero-brand { background: linear-gradient(115deg, #EAF7F5 0%, var(--aqua) 70%, var(--teal) 170%); color: var(--ink); }
.hero-brand .hero-inner { padding: 56px 20px 60px; display: flex; align-items: center; gap: 36px; }
.hero-avatar { flex: none; width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 10px 28px rgba(11,51,54,.20); position: relative; z-index: 1; }
.hero-text { flex: 1; min-width: 0; }
.hero-brand .hero-title { font-size: 52px; }
.hero-brand .hero-sub { font-size: 16px; max-width: 620px; }

/* ---------- 單元入口大卡 ---------- */
.unit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.unit-card {
  display: block; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; color: var(--ink);
  border-top: 4px solid var(--aqua);
  transition: transform .15s ease, box-shadow .15s ease;
}
.unit-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.unit-card h3 { font-size: 20px; font-weight: 800; }
.unit-card h3 .u-arrow { color: var(--teal); font-weight: 700; }
.unit-card p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.unit-card .u-meta { font-size: 12px; font-weight: 700; color: var(--teal); margin-top: 12px; letter-spacing: .04em; }

/* ---------- 書籍列表 ---------- */
.book-note {
  background: var(--pale); border-left: 4px solid var(--aqua);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; font-size: 14px; line-height: 1.8; margin: 18px 0 22px;
}
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.book-card h3 { font-size: 16px; font-weight: 800; line-height: 1.6; }
.book-card .b-author { font-size: 13px; font-weight: 700; color: var(--teal); margin-top: 4px; }
.book-card p { font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.book-status {
  display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700;
  background: var(--pale); color: var(--teal); border-radius: 999px; padding: 3px 10px;
}

/* ---------- 品牌首頁最新內容：集數列改成連結 ---------- */
.ep-list a.ep-row { color: inherit; }
.ep-list a.ep-row:hover { text-decoration: none; }
.ep-list a.ep-row:hover .ep-title { color: var(--teal); }
.section-more { text-align: right; margin-top: 14px; font-size: 14px; font-weight: 700; }

/* ---------- 品牌首頁：每單元最新內容（2026-12-05） ---------- */
.unit-latest { margin-bottom: 30px; }
.unit-latest:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .unit-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-brand .hero-inner { padding: 40px 20px 44px; flex-direction: column; gap: 20px; text-align: center; }
  .hero-avatar { width: 120px; height: 120px; }
  .hero-brand .hero-sub, .hero-brand .hero-search, .hero-brand .brand-sig { margin-left: auto; margin-right: auto; }
  .hero-brand .hero-title { font-size: 38px; }
  form.nav-search input { width: 140px; }
}

/* ---------- 書籍文章頁（2026-12-05，vocus 讀書心得搬遷） ---------- */
.book-crumb { margin: 22px 0 0; font-size: 14px; font-weight: 700; }
.book-eyebrow { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--teal); }
.book-h1 { font-size: 30px; font-weight: 900; line-height: 1.35; margin-top: 8px; }
.book-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.book-hero { margin-top: 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.book-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.book-lead {
  margin-top: 20px; background: var(--pale); border-left: 4px solid var(--aqua);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; font-size: 15px; line-height: 1.9;
}
.book-article { margin-top: 8px; font-size: 17px; line-height: 1.9; }
.book-article h2 { font-size: 22px; font-weight: 800; line-height: 1.5; margin: 34px 0 12px; }
.book-article h3 { font-size: 18px; font-weight: 800; line-height: 1.6; margin: 26px 0 10px; }
.book-article p { margin: 0 0 16px; }
.book-article blockquote {
  margin: 0 0 16px; padding: 12px 18px; background: var(--pale);
  border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0;
}
.book-article blockquote p { margin: 0; }
.book-article ul, .book-article ol { margin: 0 0 16px 22px; }
.book-article li { margin-bottom: 8px; }
.book-article figure { margin: 20px 0; }
.book-article figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.book-article hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.book-pager { display: flex; justify-content: space-between; gap: 12px; margin: 34px 0 8px; }
.book-pager a {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.book-pager a:hover { text-decoration: none; border-color: var(--teal); color: var(--teal); }
.book-pager .pg-next { text-align: right; margin-left: auto; }
.book-pager .pg-label { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.book-source { margin: 26px 0 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--muted); }
/* 有筆記的書卡（可點） */
a.book-card.has-note { display: block; color: inherit; }
a.book-card.has-note:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
a.book-card.has-note h3:hover { color: var(--teal); }
.book-card .b-cover { margin: -18px -20px 14px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.book-card .b-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.book-card .b-date { font-size: 12px; color: var(--muted); margin-top: 8px; }
.book-status.has-note { background: var(--teal); color: var(--white); }
.book-section-head { font-size: 18px; font-weight: 800; margin: 26px 0 4px; }
.book-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 640px) {
  .book-h1 { font-size: 24px; }
  .book-article { font-size: 16px; }
  .book-pager { flex-direction: column; }
  .book-pager .pg-next { text-align: left; margin-left: 0; }
}

/* ---------- 書籍主題分類＋一句話心得＋相關閱讀（2026-12-05） ---------- */
.book-theme-head { font-size: 16px; font-weight: 800; margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid var(--teal); }
.book-theme-head .th-count { font-size: 12px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.b-verdict { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--ink); }
.b-verdict strong { color: var(--teal); }
.b-theme { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--teal); background: var(--pale); border-radius: 999px; padding: 2px 10px; }
.book-verdict { margin-top: 20px; background: var(--pale); border: 1px solid var(--aqua); border-radius: var(--radius); padding: 16px 18px; }
.book-verdict .bv-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--teal); }
.book-verdict p { margin: 8px 0; font-size: 16px; line-height: 1.9; }
.book-verdict .bv-fit { font-size: 14px; line-height: 1.8; color: var(--muted); }
.book-verdict .bv-fit strong { color: var(--ink); }
.book-related { margin: 30px 0 8px; }
.book-related .br-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--teal); margin-bottom: 8px; }
.book-related ul { margin: 0; padding: 0; list-style: none; }
.book-related li { margin-bottom: 6px; }
.book-related a { font-size: 15px; font-weight: 700; }

/* 廣告版位（2026-12-06，手動放置；AdSense 通過、貼上廣告碼前保持空白不佔位） */
.ad-slot:empty { display: none; }
.ad-slot { margin: 28px 0; text-align: center; }
