/* ==========================================
   CSS Prefix: chg_
   CHANGE 活動頁（一頁式、嵌入緯來日本台主網站）
   風格：報紙頭條（報頭、雙線、襯線字、圖說）
   需要主網站已載入 Bootstrap 5.3（使用 row / col / ratio / img-fluid / modal）
   字體使用系統內建襯線字，不另外載入網路字型。
   ※ 請不要對圖片加灰階、褐色等濾鏡，保持圖片原貌。
========================================== */
:root {
  --chg-paper: #f3eee1;
  --chg-ink: #1a1a1a;
  --chg-sub: #5b5b5b;
  --chg-red: #b3202a;
  --chg-red-dark: #8f1821;
}

/* 紙張底色（極淡的橫紋）與襯線字 */
.chg_paper {
  background-color: var(--chg-paper);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.025) 0,
    rgba(0, 0, 0, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  color: var(--chg-ink);
  font-family:
    "Noto Serif TC", "Source Han Serif TC", "Noto Serif CJK TC", "Songti TC",
    "PMingLiU", "MingLiU", serif;
  border-top: 6px solid var(--chg-ink);
  padding: 1.25rem 0 2.5rem;
}
.chg_inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

/* 雙線：粗線 + 細線 */
.chg_rule {
  height: 7px;
  border-top: 3px solid var(--chg-ink);
  border-bottom: 1px solid var(--chg-ink);
}

/* 報頭 */
.chg_edition {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.chg_nameplate {
  padding: 0.6rem 0 0.5rem;
  text-align: center;
}
.chg_name {
  display: block;
  font-size: clamp(2.1rem, 8vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.12em;
}
.chg_slogan {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--chg-sub);
}

/* 頭條 */
.chg_headline_block {
  padding: 1.1rem 0 1rem;
  text-align: center;
}
.chg_tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.1rem 0.8rem;
  background: var(--chg-red);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.3em;
}
.chg_headline {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
}
.chg_deck {
  margin: 0.6rem 0 0;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: #7a7a7a;
}

/* 圖片外框與圖說（圖片本身不加任何濾鏡或文字） */
.chg_photo {
  margin: 0 0 1.5rem;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--chg-ink);
}
.chg_hero_img {
  display: block;
  width: 100%;
  height: auto;
}
.chg_caption {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #bbbbbb;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--chg-sub);
}

/* 區塊小標籤與標題 */
.chg_label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.05rem 0.7rem;
  background: var(--chg-ink);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.chg_story {
  margin-top: 0.25rem;
}
.chg_title {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.chg_actors {
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--chg-ink);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--chg-sub);
}
.chg_desc {
  font-size: 0.97rem;
  line-height: 1.95;
  text-align: justify;
}
.chg_notice {
  margin: 1rem 0 0;
  padding: 0.5rem 0.8rem;
  border-top: 2px solid var(--chg-ink);
  border-bottom: 2px solid var(--chg-ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.6;
}
.chg_btn_wrap {
  margin-top: 1rem;
}
.chg_btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background: var(--chg-ink);
  border: 2px solid var(--chg-ink);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.chg_btn:focus-visible {
  outline: 3px solid var(--chg-red);
  outline-offset: 2px;
}
/* 只在有滑鼠的裝置套用 hover，避免手機點完卡在 hover 狀態 */
@media (hover: hover) {
  .chg_btn:hover {
    background: var(--chg-red);
    border-color: var(--chg-red);
    color: #ffffff;
  }
}

/* 人物關係圖 */
.chg_section {
  margin-top: 1.5rem;
}
.chg_section .chg_rule {
  margin-bottom: 0.9rem;
}
.chg_sec_title {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}
.chg_relation {
  display: block;
  cursor: zoom-in;
}
.chg_relation img {
  display: block;
  margin: 0 auto;
}

/* 人物關係圖放大視窗 */
.chg_modal .modal-content {
  border-radius: 0;
  border: 2px solid var(--chg-ink);
}
.chg_modal .modal-title {
  font-weight: 900;
}
.chg_modal .modal-body {
  padding: 0;
  overflow: auto;
  background: #ffffff;
}
.chg_relation_big {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 電腦版：影片與介紹之間加一條直線（報紙欄線） */
@media (min-width: 768px) {
  .chg_col_rule {
    border-left: 1px solid var(--chg-ink);
    padding-left: 1.5rem;
  }
}

/* 手機 */
@media (max-width: 767.98px) {
  .chg_btn_wrap {
    text-align: center;
  }
  /* 關係圖通常很細，手機放大視窗改成可左右、上下拖曳看原尺寸 */
  .chg_relation_big {
    max-width: none;
    width: 220%;
  }
}
@media (max-width: 575.98px) {
  .chg_edition {
    font-size: 0.72rem;
  }
  .chg_title {
    font-size: 1.6rem;
  }
}

/* 影片佔位區塊（換成 iframe 後可刪除） */
.chg_video {
  background: #000;
}
.chg_video iframe {
  border: 0;
}
.chg_video_placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #ffffff;
  font-size: 0.95rem;
}

/* 劇照 slider（圖片完整顯示、不裁切；上一張／下一張放在圖片下方） */
.chg_stills {
  max-width: 860px;
}
.chg_still_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}
.chg_stills_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chg_stills_text {
  flex: 1;
  text-align: center;
}
.chg_nav_btn {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--chg-ink);
  background: #ffffff;
  color: var(--chg-ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.chg_nav_btn:focus-visible {
  outline: 3px solid var(--chg-red);
  outline-offset: 2px;
}
@media (hover: hover) {
  .chg_nav_btn:hover {
    background: var(--chg-ink);
    color: #ffffff;
  }
}
