@charset "UTF-8";

/*----- 瀏覽器預設設定與主題色變數 -----*/
@font-face {
  font-family: 'FakePearl-Regular';
  src: url('https://cdn.jsdelivr.net/gh/max32002/FakePearl@1.1/webfont/FakePearl-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/max32002/FakePearl@1.1/webfont/FakePearl-Regular.woff') format('woff');
}

:root {
  --burgundy: #7B1E26;
  --burgundy-dark: #561218;
  --burgundy-hover: #A62934;
  --burgundy-soft: rgba(123, 30, 38, 0.14);
  --gold-accent: #C98B27;
  --ink-text: #2F2721;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

body {
  position: relative;
  font-family: 'FakePearl-Regular', 'Noto Sans TC', sans-serif;
  color: var(--ink-text);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  background: #ebd9be url('../img/bg.jpg') repeat center top;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*----- 全頁背景水墨雲層與滾動視差點點 -----*/
.bg-decor-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.parallax-item {
  translate: 0px var(--parallax-y, 0px);
  will-change: transform, translate;
}

.bg-ink-cloud {
  position: absolute;
  pointer-events: none;
  opacity: 0.72;
  animation: ink-cloud-breathe 11s ease-in-out infinite alternate;
}

.ink-cloud-1 {
  top: 1.5%;
  left: -3vw;
  width: 34vw;
  max-width: 580px;
}

.ink-cloud-2 {
  top: 9%;
  left: -5vw;
  width: 30vw;
  max-width: 500px;
  animation-delay: -3s;
}

.ink-cloud-3 {
  top: 26%;
  right: -4vw;
  width: 36vw;
  max-width: 620px;
  animation-delay: -5s;
}

.ink-cloud-4 {
  top: 43%;
  left: -4vw;
  width: 33vw;
  max-width: 560px;
  animation-delay: -2s;
}

.ink-cloud-5 {
  top: 60%;
  right: -4vw;
  width: 35vw;
  max-width: 600px;
  animation-delay: -7s;
}

.ink-cloud-6 {
  top: 75%;
  left: -3vw;
  width: 32vw;
  max-width: 540px;
  animation-delay: -4s;
}

.ink-cloud-7 {
  top: 89%;
  right: 2vw;
  width: 34vw;
  max-width: 580px;
  animation-delay: -6s;
}

/* 滾動視差雅緻點點 (Parallax Dots) */
.parallax-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: dot-twinkle 5s ease-in-out infinite alternate;
}

.dot-burgundy {
  background: radial-gradient(circle, rgba(123, 30, 38, 0.55) 0%, rgba(123, 30, 38, 0) 75%);
  box-shadow: 0 0 8px rgba(123, 30, 38, 0.25);
}

.dot-gold {
  background: radial-gradient(circle, rgba(201, 139, 39, 0.65) 0%, rgba(201, 139, 39, 0) 75%);
  box-shadow: 0 0 10px rgba(201, 139, 39, 0.3);
}

.dot-teal {
  background: radial-gradient(circle, rgba(43, 122, 136, 0.55) 0%, rgba(43, 122, 136, 0) 75%);
  box-shadow: 0 0 8px rgba(43, 122, 136, 0.25);
}

.dot-1  { top: 7%;  left: 14%; width: 14px; height: 14px; animation-delay: -0.5s; }
.dot-2  { top: 13%; right: 16%; width: 18px; height: 18px; animation-delay: -2.1s; }
.dot-3  { top: 22%; left: 8%;  width: 12px; height: 12px; animation-delay: -3.4s; }
.dot-4  { top: 31%; right: 9%; width: 16px; height: 16px; animation-delay: -1.2s; }
.dot-5  { top: 39%; left: 6%;  width: 11px; height: 11px; animation-delay: -4.0s; }
.dot-6  { top: 48%; right: 7%; width: 15px; height: 15px; animation-delay: -2.7s; }
.dot-7  { top: 57%; left: 9%;  width: 18px; height: 18px; animation-delay: -1.8s; }
.dot-8  { top: 65%; right: 11%; width: 13px; height: 13px; animation-delay: -3.9s; }
.dot-9  { top: 73%; left: 7%;  width: 15px; height: 15px; animation-delay: -0.9s; }
.dot-10 { top: 81%; right: 8%; width: 17px; height: 17px; animation-delay: -2.4s; }
.dot-11 { top: 88%; left: 12%; width: 12px; height: 12px; animation-delay: -4.3s; }
.dot-12 { top: 94%; right: 14%; width: 14px; height: 14px; animation-delay: -1.5s; }

/*----- 共用項目：Header & 導覽列 -----*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5.2vw;
  min-height: 64px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  z-index: 999;
  padding: 0 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(247, 238, 222, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(123, 30, 38, 0.16);
  box-shadow: 0 0.4vw 1.5vw rgba(55, 32, 12, 0.10);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1.3vw;
}

.logo-nmh,
.logo-gkids,
.logo-book {
  display: flex;
  align-items: center;
}

/* 國立歷史博物館原圖為 268x46，限制最大高度避免放大失真模糊 */
.logo-nmh img {
  height: 2.05vw;
  max-height: 35px;
  min-height: 22px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-gkids img {
  height: 2.25vw;
  max-height: 38px;
  min-height: 24px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-book img {
  height: 2.45vw;
  max-height: 42px;
  min-height: 26px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-nmh:hover img,
.logo-gkids:hover img,
.logo-book:hover img {
  transform: scale(1.04);
}

.navmenu {
  display: flex;
  align-items: center;
}

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 1.05vw;
}

.navmenu ul li a {
  font-size: 1.05vw;
  color: var(--burgundy);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4vw;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
  color: var(--burgundy-hover);
}

.navmenu ul li a:hover .link-icon,
.navmenu ul li a.active .link-icon {
  border-color: var(--burgundy-hover);
  box-shadow: 0 3px 10px rgba(123, 30, 38, 0.32);
  transform: rotate(5deg) scale(1.06);
}

.navmenu .link-icon {
  width: 2.3vw;
  height: 2.3vw;
  min-width: 30px;
  min-height: 30px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0.18vw solid var(--burgundy);
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* 1280px 以下中型螢幕導覽列微調 */
@media screen and (min-width: 992px) and (max-width: 1280px) {
  .header {
    padding: 0 2%;
  }
  .logo-group {
    gap: 0.9vw;
  }
  .navmenu ul {
    gap: 0.75vw;
  }
  .navmenu ul li a {
    font-size: 0.94vw;
    gap: 0.3vw;
  }
  .navmenu .link-icon {
    width: 2vw;
    height: 2vw;
    min-width: 26px;
    min-height: 26px;
  }
  .nav-lang-btn {
    font-size: 0.9vw !important;
    padding: 0.3vw 0.8vw !important;
  }
}

/* 導覽列最右側「前往 國立歷史博物館」按鈕 */
.nav-item-lang {
  margin-left: 0.4vw;
}

.nav-lang-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45vw !important;
  padding: 0.38vw 1.1vw !important;
  border: 1.5px solid var(--burgundy) !important;
  border-radius: 50px !important;
  background: rgba(255, 252, 246, 0.88) !important;
  color: var(--burgundy) !important;
  font-size: 1.02vw !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(123, 30, 38, 0.12);
  transition: all 0.3s ease !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-lang-btn .nav-btn-logo {
  height: 1.45vw;
  max-height: 24px;
  min-height: 16px;
  width: auto;
  display: block;
}

.nav-lang-btn:hover {
  background: #ffffff !important;
  color: var(--burgundy-hover) !important;
  border-color: var(--burgundy-hover) !important;
  box-shadow: 0 4px 14px rgba(123, 30, 38, 0.25) !important;
  transform: translateY(-0.15vw);
}

.mobile-nav-toggle {
  display: none;
  font-size: 4vw;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--burgundy);
}

/*----- 共用項目：Section 三段式紙張結構與週邊雲朵舞台 -----*/
.section-stage {
  position: relative;
  width: 100%;
  margin: 8.5vw auto;
  z-index: 5;
  overflow-x: clip;
}

.section-clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decor-cloud {
  position: absolute;
  pointer-events: none;
  will-change: transform, translate;
}

/* Section 本體：上(::before) + 中(bg_section_content.png) + 下(::after) + 右下 filter 陰影 */
.section {
  position: relative;
  z-index: 5;
  padding: 3.5vw 4.8vw;
  width: 84%;
  max-width: 1340px;
  margin: 0 auto;
  background: url('../img/bg_section_content.png') repeat-y center top;
  background-size: 100% auto;
  filter: drop-shadow(0.55vw 0.75vw 1.1vw rgba(58, 34, 14, 0.24));
}

.section::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  aspect-ratio: 1500 / 20;
  background: url('../img/bg_section_top.png') no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.section::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  aspect-ratio: 1500 / 20;
  background: url('../img/bg_section_btn.png') no-repeat center top;
  background-size: 100% 100%;
  pointer-events: none;
}

/* 區塊滾動進場動態 (Scroll Reveal) */
.reveal-section {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 各區塊週邊彩雲與藍雲配置 (全面錯開不重疊：L置於中線左側、R置於中線右側) */
/* 區塊二 (#story)：右上彩雲R1、左中藍雲01、左下藍雲02 */
.s1-color-r1 {
  top: -5.2vw;
  right: -1vw;
  width: 32vw;
  max-width: 520px;
  z-index: 3;
  animation: cloud-float-1 8s ease-in-out infinite alternate;
}

.s1-blue-01 {
  top: 12%;
  left: -1.5vw;
  width: 14.5vw;
  max-width: 235px;
  z-index: 7;
  animation: cloud-float-2 6.5s ease-in-out infinite alternate;
}

.s1-blue-02 {
  bottom: -4.2vw;
  right: 7vw;
  width: 13vw;
  max-width: 210px;
  z-index: 7;
  animation: cloud-float-3 7.2s ease-in-out infinite alternate;
}

/* 區塊三 (#read)：左上彩雲L1、右上藍雲03、左下藍雲04 */
.s2-color-l1 {
  top: -6.2vw;
  left: -1vw;
  width: 30vw;
  max-width: 490px;
  z-index: 3;
  animation: cloud-float-2 9s ease-in-out infinite alternate;
}

.s2-blue-03 {
  top: -3.4vw;
  right: 5vw;
  width: 11.5vw;
  max-width: 185px;
  z-index: 7;
  animation: cloud-float-1 6.8s ease-in-out infinite alternate;
}

.s2-blue-04 {
  bottom: -4vw;
  left: 6vw;
  width: 13.5vw;
  max-width: 220px;
  z-index: 7;
  animation: cloud-float-3 7.5s ease-in-out infinite alternate;
}

/* 區塊四 (#author)：右上彩雲R2、左上藍雲05、右下藍雲06 */
.s3-color-r2 {
  top: -4.8vw;
  right: 0;
  width: 26vw;
  max-width: 420px;
  z-index: 3;
  animation: cloud-float-1 8.5s ease-in-out infinite alternate;
}

.s3-blue-05 {
  top: -3.2vw;
  left: 4.5vw;
  width: 13.5vw;
  max-width: 220px;
  z-index: 7;
  animation: cloud-float-2 7s ease-in-out infinite alternate;
}

.s3-blue-06 {
  bottom: -4vw;
  right: 7.5vw;
  width: 14vw;
  max-width: 230px;
  z-index: 7;
  animation: cloud-float-3 6.6s ease-in-out infinite alternate;
}

/* 區塊五 (#illustrator)：左上彩雲L1、右上藍雲07、左下藍雲03 */
.s4-color-l1 {
  top: -5.8vw;
  left: -0.5vw;
  width: 28vw;
  max-width: 460px;
  z-index: 3;
  animation: cloud-float-2 8.2s ease-in-out infinite alternate;
}

.s4-blue-07 {
  top: -3.2vw;
  right: 5vw;
  width: 12.5vw;
  max-width: 200px;
  z-index: 7;
  animation: cloud-float-1 7.4s ease-in-out infinite alternate;
}

.s4-blue-03 {
  bottom: -3.6vw;
  left: 5.5vw;
  width: 11.5vw;
  max-width: 185px;
  z-index: 7;
  animation: cloud-float-3 6.9s ease-in-out infinite alternate;
}

/* 區塊六 (#video)：右上彩雲R1、左中藍雲01、右下藍雲02 */
.s5-color-r1 {
  top: -5.2vw;
  right: -1vw;
  width: 30vw;
  max-width: 500px;
  z-index: 3;
  animation: cloud-float-1 8s ease-in-out infinite alternate;
}

.s5-blue-01 {
  top: 10%;
  left: -1.8vw;
  width: 14vw;
  max-width: 225px;
  z-index: 7;
  animation: cloud-float-2 6.5s ease-in-out infinite alternate;
}

.s5-blue-02 {
  bottom: -4vw;
  right: 6vw;
  width: 13vw;
  max-width: 210px;
  z-index: 7;
  animation: cloud-float-3 7.2s ease-in-out infinite alternate;
}

/* 區塊七 (#detective)：左上彩雲L1、右上藍雲05、左下藍雲06 */
.s6-color-l1 {
  top: -5.6vw;
  left: -1vw;
  width: 29vw;
  max-width: 470px;
  z-index: 3;
  animation: cloud-float-2 8.5s ease-in-out infinite alternate;
}

.s6-blue-05 {
  top: -3vw;
  right: 5vw;
  width: 13vw;
  max-width: 210px;
  z-index: 7;
  animation: cloud-float-1 7s ease-in-out infinite alternate;
}

.s6-blue-06 {
  bottom: -3.8vw;
  left: 5vw;
  width: 13.5vw;
  max-width: 220px;
  z-index: 7;
  animation: cloud-float-3 6.8s ease-in-out infinite alternate;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2vw;
  font-weight: bold;
  color: var(--burgundy);
  margin-bottom: 3.6vw;
  border-bottom: 0.22vw solid var(--burgundy);
  padding-bottom: 1vw;
  width: 100%;
  letter-spacing: 0.06em;
}

.section-title .section-icon {
  width: 3vw;
  margin-right: 1vw;
  border-radius: 50%;
  border: 2px solid var(--burgundy);
  box-shadow: 0 0.2vw 0.5vw rgba(123, 30, 38, 0.2);
}

.btn {
  display: inline-block;
  padding: 1vw 2.5vw;
  font-size: 1.2vw;
  font-family: inherit;
  font-weight: bold;
  text-align: center;
  border-radius: 5vw;
  transition: 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-buy {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-hover) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 0.4vw 1.2vw rgba(123, 30, 38, 0.35);
}

.btn-buy:hover {
  background: linear-gradient(135deg, #8F222C 0%, #BD3440 100%);
  transform: translateY(-0.2vw);
  box-shadow: 0 0.6vw 1.5vw rgba(123, 30, 38, 0.45);
}

.scroll-top {
  position: fixed;
  bottom: 2vw;
  right: 4.4vw;
  transform: translateX(50%);
  background: rgba(123, 30, 38, 0.82);
  color: #fff;
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1vw;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 12px rgba(123, 30, 38, 0.3);
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, transform 0.3s ease;
  z-index: 998;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--burgundy);
  transform: translateX(50%) scale(1.08);
}

/*----- 正式內容 -----*/

/*--- 區塊一：KV 主視覺區 (依參考圖拼貼排列) ---*/
.kv-section {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: auto;
  padding-top: 7.2vw;
  padding-bottom: 3vw;
  margin-bottom: 1vw;
  box-sizing: border-box;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.kv-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 1vw;
}

.kv-slogan-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.14vw solid var(--burgundy);
  border-radius: 1.2vw;
  background: rgba(255, 252, 246, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35vw 1.8vw;
  margin-bottom: 1.5vw;
  box-shadow: 0 0.3vw 1vw rgba(123, 30, 38, 0.10);
  transition: transform 0.3s ease;
}

.kv-slogan-badge:hover {
  transform: translateY(-2px);
}

.kv-slogan-text {
  font-size: 1.05vw;
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.author-highlight {
  font-size: 1.4vw;
  font-weight: 900;
  color: var(--burgundy-dark);
  margin: 0 0.3vw;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.kv-bookname-wrap {
  margin-bottom: 1.2vw;
  width: 44vw;
  max-width: 660px;
}

.kv-bookname {
  width: 100%;
  height: auto;
  display: block;
}

/* KV 角色群像拼貼舞台 (等比例鎖定各元素相對位置) */
.kv-stage {
  position: relative;
  width: 100%;
  max-width: 940px;
  aspect-ratio: 1000 / 740;
  margin: 0.2vw auto 2vw;
}

.kv-el {
  position: absolute;
  pointer-events: none;
}

.kv-el img {
  width: 100%;
  height: auto;
  display: block;
}

/* 1. 左上跳躍小魚 (KV_Img_Fish01.webp) */
.kv-fish-01 {
  top: 0%;
  left: 13.5%;
  width: 10.5%;
  z-index: 4;
}

.kv-fish-01 img {
  animation: kv-fish-jump 4.2s ease-in-out infinite alternate;
}

/* 2. 左上版畫黑貓 (KV_Img02.webp) */
.kv-cat {
  top: 0%;
  left: 21.5%;
  width: 20.5%;
  z-index: 5;
}

.kv-cat img {
  filter: drop-shadow(0 6px 14px rgba(45, 28, 12, 0.14));
  animation: kv-cat-play 5.5s ease-in-out infinite alternate;
}

/* 3. 右側水墨老虎 (KV_Img01.webp) */
.kv-tiger {
  top: 3%;
  right: 5%;
  width: 56.5%;
  z-index: 5;
}

.kv-tiger img {
  filter: drop-shadow(0 8px 18px rgba(45, 28, 12, 0.16));
  animation: kv-tiger-leap 6s ease-in-out infinite alternate;
}

/* 4. 中左游動小魚 (KV_Img_Fish02.webp) */
.kv-fish-02 {
  top: 42%;
  left: 25%;
  width: 18.5%;
  z-index: 5;
}

.kv-fish-02 img {
  animation: kv-fish-swim 4.8s ease-in-out infinite alternate;
}

/* 5. 左下水墨雲 (KV_blackCloud03.webp，壓在陶獅後方) */
.kv-black-cloud-03 {
  bottom: 18%;
  left: -3%;
  width: 41%;
  z-index: 2;
}

.kv-black-cloud-03 img {
  animation: cloud-float-2 7.5s ease-in-out infinite alternate;
}

/* 6. 左下石灣陶獅阿弄 (KV_Img03.webp) */
.kv-lion {
  bottom: 4.5%;
  left: 8%;
  width: 47.5%;
  z-index: 4;
}

.kv-lion img {
  filter: drop-shadow(0 8px 16px rgba(25, 45, 35, 0.18));
  animation: kv-lion-play 5.8s ease-in-out infinite alternate;
}

/* 7. 右下細長尾水墨雲 (KV_blackCloud02.webp，老虎後腳下方) */
.kv-black-cloud-02 {
  bottom: 19.5%;
  right: 0%;
  width: 33%;
  z-index: 3;
}

.kv-black-cloud-02 img {
  animation: cloud-float-1 8s ease-in-out infinite alternate;
}

/* 8. 底部中央偏右水墨雲 (KV_blackCloud01.webp，陶獅右下方) */
.kv-black-cloud-01 {
  bottom: 0%;
  left: 34.5%;
  width: 41%;
  z-index: 6;
}

.kv-black-cloud-01 img {
  animation: cloud-float-3 7s ease-in-out infinite alternate;
}

.kv-poetry-wrap {
  position: relative;
  z-index: 5;
  margin-top: 0.5vw;
}

.kv-poetry-line {
  font-size: 1.45vw;
  color: var(--burgundy-dark);
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.12em;
}

/* 動畫 Keyframes */
.animate-kv {
  animation: kv-fade-in-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes kv-fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kv-tiger-leap {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-10px, -8px) rotate(-1.2deg); }
}

@keyframes kv-cat-play {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5px, 9px) rotate(1.8deg); }
}

@keyframes kv-fish-jump {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes kv-fish-swim {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(9px, -5px) rotate(2deg); }
}

@keyframes kv-lion-play {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(8px, -7px) rotate(-1.5deg); }
}

@keyframes cloud-float-1 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(14px, -8px); }
}

@keyframes cloud-float-2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-12px, 8px); }
}

@keyframes cloud-float-3 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, 7px); }
}

@keyframes ink-cloud-breathe {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(16px, -12px) scale(1.03); }
}

@keyframes dot-twinkle {
  0% { transform: translateY(0) scale(0.85); opacity: 0.45; }
  100% { transform: translateY(-14px) scale(1.15); opacity: 0.9; }
}

/*--- 區塊二：繪本介紹 (#story) ---*/
.story-content {
  display: flex;
  gap: 3.5vw;
  align-items: flex-start;
}

.story-left {
  flex: 0 0 320px;
  width: 320px;
  text-align: center;
  position: sticky;
  top: 8vw;
}

.story-left .book {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1.5vw auto;
  border-radius: 0.5vw;
  filter: drop-shadow(0 0.8vw 1.6vw rgba(58, 34, 14, 0.22));
  transition: transform 0.3s ease;
}

.story-left .book:hover {
  transform: translateY(-4px) scale(1.02);
}

.story-left .price {
  font-size: 1.25vw;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 1.2vw;
  letter-spacing: 0.04em;
}

.story-right {
  flex: 1;
  min-width: 0;
  font-size: 1.1vw;
}

.story-main-title {
  font-size: 1.75vw;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.8vw;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.story-sub-title {
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 700;
  color: var(--burgundy-hover);
  margin-bottom: 1.6vw;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.story-desc p {
  font-size: 1.1vw;
  line-height: 2;
  color: var(--ink-text);
  margin-bottom: 1.4vw;
  text-align: justify;
  letter-spacing: 0.02em;
}

.story-desc ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-top: 0.5vw;
}

.story-desc ul li {
  font-size: 1.1vw;
  line-height: 2;
  color: var(--ink-text);
  margin-bottom: 0.8vw;
  text-align: justify;
  letter-spacing: 0.02em;
}

.story-desc ul li::marker {
  color: var(--burgundy);
}

.story-desc ul li:last-child {
  margin-bottom: 0;
}

/*--- 區塊三：精彩試閱 (#read) ---*/
.read-gallery {
  display: flex;
  gap: 3vw;
  justify-content: center;
}

.read-item {
  width: 48%;
  border-radius: 1vw;
  overflow: hidden;
  border: 1px solid rgba(123, 30, 38, 0.18);
  box-shadow: 0 0.6vw 1.8vw rgba(58, 34, 14, 0.12);
  background: #fff;
  position: relative;
}

.read-item a {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
}

.read-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.read-item:hover img {
  transform: scale(1.04);
}

.zoom-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 4.5vw;
  height: 4.5vw;
  min-width: 52px;
  min-height: 52px;
  max-width: 70px;
  max-height: 70px;
  border-radius: 50%;
  background: rgba(86, 18, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.5vw 1.5vw rgba(45, 12, 16, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.92;
}

.read-item:hover .zoom-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(123, 30, 38, 0.92);
  border-color: #ffd972;
  color: #ffd972;
  box-shadow: 0 0.8vw 2.2vw rgba(123, 30, 38, 0.5);
  opacity: 1;
}

.zoom-icon {
  width: 1.4vw;
  height: 1.4vw;
  min-width: 18px;
  min-height: 18px;
  margin-bottom: 0.15vw;
  stroke: currentColor;
  stroke-width: 2.2;
}

.zoom-text {
  font-size: 0.72vw;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}

/*--- 區塊四 & 五：作者介紹 (#author) 與 繪者介紹 (#illustrator) ---*/
.author-info {
  display: flex;
  gap: 4vw;
  align-items: flex-start;
}

.author-left {
  flex: 0 0 250px;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-avatar {
  width: 195px;
  height: 195px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0.6vw 1.8vw rgba(58, 34, 14, 0.22);
  border: 4px solid #fff;
  margin-bottom: 1.2vw;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 0.8vw 2.2vw rgba(123, 30, 38, 0.3);
}

.author-title-name {
  font-size: 1.35vw;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 0;
  white-space: nowrap;
}

.author-bio {
  flex: 1;
  max-width: 820px;
  min-width: 0;
}

.author-bio p {
  font-size: 1.05vw;
  line-height: 2.1;
  color: var(--ink-text);
  margin-bottom: 1.2vw;
  text-align: justify;
  letter-spacing: 0.02em;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

/*--- 區塊六：來聽故事 (#video) ---*/
.video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.video-player-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.video-iframe-box {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 完美響應式比例 */
  height: 0;
  border-radius: 1vw;
  overflow: hidden;
  box-shadow: 0 0.8vw 2.4vw rgba(58, 34, 14, 0.22);
  border: 3px solid rgba(123, 30, 38, 0.22);
  background: #000000;
}

.video-iframe-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  margin-top: 2vw;
  text-align: center;
  max-width: 820px;
}

.video-info-title {
  font-size: 1.35vw;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.6vw;
  letter-spacing: 0.04em;
}

.video-info-desc {
  font-size: 1.05vw;
  line-height: 2;
  color: var(--ink-text);
  letter-spacing: 0.02em;
}

/*--- 區塊七：小偵探 (#detective) ---*/
.detective-content {
  display: flex;
  gap: 4.5vw;
  align-items: center;
  justify-content: center;
}

.detective-left {
  flex: 0 0 320px;
  width: 320px;
  text-align: center;
}

.learning-sheet-card {
  position: relative;
  background: #ffffff;
  border-radius: 1vw;
  padding: 0.8vw;
  border: 1px solid rgba(123, 30, 38, 0.2);
  box-shadow: 0 0.8vw 2.2vw rgba(58, 34, 14, 0.18);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

.learning-sheet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1.2vw 2.8vw rgba(123, 30, 38, 0.26);
}

.learning-sheet-card a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.6vw;
  line-height: 0;
}

.learning-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.learning-sheet-card:hover .learning-thumb {
  transform: scale(1.03);
}

.learning-sheet-card .zoom-overlay {
  opacity: 0.92;
}

.learning-sheet-card:hover .zoom-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.learning-hint {
  margin-top: 0.9vw;
  font-size: 0.92vw;
  color: var(--burgundy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4vw;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.learning-hint svg {
  width: 1.1vw;
  height: 1.1vw;
  min-width: 14px;
  min-height: 14px;
  stroke: currentColor;
}

.detective-right {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.detective-title {
  font-size: 1.6vw;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.5vw;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.detective-tag {
  display: inline-block;
  font-size: 0.95vw;
  font-weight: 700;
  color: #fff;
  background: var(--gold-accent);
  padding: 0.2vw 0.9vw;
  border-radius: 30px;
  margin-bottom: 1.2vw;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(201, 139, 39, 0.28);
}

.detective-desc p {
  font-size: 1.1vw;
  line-height: 2;
  color: var(--ink-text);
  margin-bottom: 1.2vw;
  text-align: justify;
  letter-spacing: 0.02em;
}

.detective-features {
  list-style: none;
  padding-left: 0;
  margin: 1.2vw 0 2vw;
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
}

.detective-features li {
  font-size: 1.05vw;
  line-height: 1.8;
  color: var(--ink-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6vw;
}

.detective-features li::before {
  content: "✦";
  color: var(--burgundy);
  font-weight: bold;
  font-size: 1.1vw;
  flex-shrink: 0;
  line-height: 1.7;
}

.detective-actions {
  display: flex;
  align-items: center;
  gap: 1.4vw;
  margin-top: 1.8vw;
}

.btn-learning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6vw;
  padding: 0.85vw 2.2vw;
  font-size: 1.15vw;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  font-family: inherit;
  letter-spacing: 0.04em;
}

.btn-learning .btn-icon {
  width: 1.3vw;
  height: 1.3vw;
  min-width: 18px;
  min-height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.btn-download {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-hover) 100%);
  color: #ffffff;
  box-shadow: 0 0.4vw 1.2vw rgba(123, 30, 38, 0.35);
}

.btn-download:hover {
  background: linear-gradient(135deg, #8F222C 0%, #BD3440 100%);
  transform: translateY(-3px);
  box-shadow: 0 0.6vw 1.6vw rgba(123, 30, 38, 0.45);
  color: #ffffff;
}

.btn-print {
  background: #ffffff;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
  box-shadow: 0 0.3vw 1vw rgba(123, 30, 38, 0.15);
}

.btn-print:hover {
  background: var(--burgundy);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0.6vw 1.5vw rgba(123, 30, 38, 0.35);
}

/*--- Footer 頂端祥雲裝飾帶 (分散排列不重疊) 與 Footer 本體 ---*/
.footer-top-clouds {
  position: relative;
  width: 100%;
  height: 8vw;
  min-height: 60px;
  margin-top: 5vw;
  pointer-events: none;
  z-index: 11;
  overflow-x: clip;
}

.ft-color-l1 {
  bottom: -2vw;
  left: -3vw;
  width: 31vw;
  max-width: 500px;
  z-index: 1;
  animation: cloud-float-2 9s ease-in-out infinite alternate;
}

.ft-blue-01 {
  bottom: 0.8vw;
  left: 25vw;
  width: 13.5vw;
  max-width: 215px;
  z-index: 3;
  animation: cloud-float-1 7s ease-in-out infinite alternate;
}

.ft-blue-04 {
  bottom: -0.8vw;
  left: 44vw;
  width: 11.5vw;
  max-width: 185px;
  z-index: 2;
  animation: cloud-float-3 6.8s ease-in-out infinite alternate;
}

.ft-color-r1 {
  bottom: -1.8vw;
  right: -2vw;
  width: 32vw;
  max-width: 520px;
  z-index: 1;
  animation: cloud-float-1 8.5s ease-in-out infinite alternate;
}

.ft-blue-06 {
  bottom: 2.2vw;
  right: 26vw;
  width: 13vw;
  max-width: 210px;
  z-index: 3;
  animation: cloud-float-2 7.6s ease-in-out infinite alternate;
}

.footer {
  position: relative;
  z-index: 12;
  background: #13335c url('../img/bg_footer.webp') repeat center top;
  color: #ffffff;
  padding: 4.5vw 10% 4vw;
  text-align: center;
  font-size: 1vw;
  box-shadow: 0 -6px 24px rgba(10, 25, 48, 0.25);
}

.footer .social {
  margin-bottom: 2.2vw;
  font-size: 1.15vw;
  line-height: 1.8;
}

.footer .social a {
  margin: 0 0.8vw;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer .social a:hover {
  color: #FFD972;
}

.footer .separator {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0.2vw;
  user-select: none;
}

.footer-logo-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-bottom: 2.2vw;
  padding: 0.75vw 2.4vw;
  background: rgba(255, 252, 245, 0.94);
  border-radius: 60px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.footer-logo-nmh,
.footer-logo-gkids,
.footer-logo-book {
  display: flex;
  align-items: center;
}

.footer-logo-nmh img {
  height: 2.2vw;
  min-height: 26px;
  max-height: 38px;
  width: auto;
  transition: transform 0.25s ease;
}

.footer-logo-gkids img {
  height: 2.5vw;
  min-height: 30px;
  max-height: 44px;
  width: auto;
  transition: transform 0.25s ease;
}

.footer-logo-book img {
  height: 2.8vw;
  min-height: 32px;
  max-height: 48px;
  width: auto;
  transition: transform 0.25s ease;
}

.footer-logo-nmh:hover img,
.footer-logo-gkids:hover img,
.footer-logo-book:hover img {
  transform: scale(1.05);
}

.footer-copyright {
  font-size: 0.95vw;
  line-height: 2;
  color: #ffffff;
}

.footer-copyright a {
  color: #FFD972;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-copyright a:hover {
  color: #ffffff;
}

/*----- RWD：平板 (max-width: 991px) -----*/
@media screen and (max-width: 991px) {
  .header {
    padding: 0 3.5%;
    height: 7.5vw;
  }

  .logo-group {
    gap: 1.6vw;
  }

  .logo-nmh img {
    height: 2.8vw;
    max-height: 30px;
    min-height: 20px;
  }

  .logo-gkids img {
    height: 3.1vw;
    max-height: 34px;
  }

  .logo-book img {
    height: 3.4vw;
    max-height: 38px;
  }

  .navmenu ul {
    gap: 1.6vw;
  }

  .navmenu ul li a {
    font-size: 1.65vw;
    gap: 0.5vw;
  }

  .navmenu .link-icon {
    width: 3.2vw;
    height: 3.2vw;
    min-width: 28px;
    min-height: 28px;
    border-width: 0.22vw;
  }

  .nav-lang-btn {
    font-size: 1.5vw !important;
    padding: 0.45vw 1.2vw !important;
  }

  .nav-lang-btn .nav-btn-logo {
    height: 2vw;
    max-height: 20px;
  }

  .section-stage {
    margin: 10vw auto;
  }

  .section {
    padding: 6vw 5%;
    width: 90%;
  }

  .section-title {
    font-size: 3.5vw;
    margin-bottom: 5vw;
  }

  .section-title .section-icon {
    width: 5vw;
  }

  .btn {
    font-size: 2.5vw;
    padding: 1.5vw 4vw;
  }

  .scroll-top {
    width: 7.5vw;
    height: 7.5vw;
    font-size: 2.3vw;
    bottom: 3.5vw;
    right: 7vw;
    transform: translateX(50%);
  }

  .scroll-top:hover {
    transform: translateX(50%) scale(1.08);
  }

  /* KV 平板適應 */
  .kv-section {
    padding-top: 12vw;
    padding-bottom: 5vw;
    margin-bottom: 3vw;
  }

  .kv-container {
    width: 95%;
    padding-bottom: 1vw;
  }

  .kv-slogan-badge {
    padding: 0.6vw 2.4vw;
    border-radius: 2vw;
    border-width: 0.18vw;
    margin-bottom: 2vw;
  }

  .kv-slogan-text {
    font-size: 1.6vw;
  }

  .author-highlight {
    font-size: 2.2vw;
  }

  .kv-bookname-wrap {
    width: 58vw;
    margin-bottom: 1.5vw;
  }

  .kv-stage {
    width: 98%;
    margin-bottom: 2.5vw;
  }

  .kv-poetry-line {
    font-size: 2.2vw;
    line-height: 2;
  }

  /* Story */
  .story-content {
    flex-direction: column;
    align-items: center;
  }

  .story-left {
    width: 70%;
    flex: 0 0 auto;
    margin-bottom: 5vw;
    position: relative;
    top: auto;
  }

  .story-left .price {
    font-size: 2.4vw;
    margin-bottom: 2vw;
  }

  .story-right {
    width: 100%;
    font-size: 2vw;
  }

  .story-main-title {
    font-size: 3.2vw;
    margin-bottom: 1.5vw;
  }

  .story-sub-title {
    font-size: 2.4vw;
    margin-bottom: 3vw;
  }

  .story-desc p,
  .story-desc ul li {
    font-size: 2.1vw;
    line-height: 2;
    margin-bottom: 2vw;
  }

  /* Read */
  .read-gallery {
    flex-direction: row;
    gap: 2.5vw;
  }

  .read-item {
    width: 48%;
  }

  .zoom-overlay {
    width: 5.5vw;
    height: 5.5vw;
    min-width: 48px;
    min-height: 48px;
  }

  .zoom-icon {
    width: 2.2vw;
    height: 2.2vw;
    min-width: 18px;
    min-height: 18px;
    margin-bottom: 0.2vw;
  }

  .zoom-text {
    font-size: 1.1vw;
  }

  /* Author & Illustrator */
  .author-info {
    gap: 3.5vw;
  }

  .author-left {
    flex: 0 0 200px;
    width: 200px;
  }

  .author-avatar {
    width: 155px;
    height: 155px;
    margin-bottom: 1.2vw;
    border-width: 3px;
  }

  .author-title-name {
    font-size: 2.2vw;
  }

  .author-bio p {
    font-size: 1.8vw;
    line-height: 1.9;
    margin-bottom: 1.4vw;
  }

  /* 區塊六 & 七 平板適應 */
  .s5-color-r1,
  .s6-color-l1 {
    width: 36vw;
  }

  .s5-blue-01,
  .s5-blue-02,
  .s6-blue-05,
  .s6-blue-06 {
    width: 18vw;
  }

  .video-info-title {
    font-size: 2.6vw;
    margin-bottom: 1vw;
  }

  .video-info-desc {
    font-size: 2vw;
    line-height: 1.9;
  }

  .detective-content {
    flex-direction: column;
    align-items: center;
    gap: 4vw;
  }

  .detective-left {
    width: 60%;
    max-width: 340px;
    flex: 0 0 auto;
  }

  .learning-hint {
    font-size: 1.8vw;
    margin-top: 1.4vw;
    gap: 0.8vw;
  }

  .learning-hint svg {
    width: 2vw;
    height: 2vw;
  }

  .detective-right {
    width: 100%;
    text-align: center;
  }

  .detective-title {
    font-size: 3vw;
    margin-bottom: 1.2vw;
  }

  .detective-tag {
    font-size: 1.8vw;
    padding: 0.4vw 1.6vw;
    margin-bottom: 2vw;
  }

  .detective-desc p {
    font-size: 2.1vw;
    line-height: 1.95;
    text-align: justify;
    margin-bottom: 1.8vw;
  }

  .detective-features {
    margin: 1.8vw 0 3vw;
    text-align: left;
    gap: 1vw;
  }

  .detective-features li {
    font-size: 2vw;
    line-height: 1.8;
  }

  .detective-features li::before {
    font-size: 2.2vw;
  }

  .detective-actions {
    justify-content: center;
    gap: 2.5vw;
  }

  .btn-learning {
    font-size: 2.3vw;
    padding: 1.3vw 3.6vw;
    gap: 1vw;
  }

  .btn-learning .btn-icon {
    width: 2.4vw;
    height: 2.4vw;
  }

  /* Footer */
  .footer {
    font-size: 1.8vw;
    padding: 6vw 5%;
  }

  .footer .social {
    font-size: 2.2vw;
    margin-bottom: 3.5vw;
  }

  .footer-logo-group {
    gap: 3vw;
    padding: 1.4vw 4vw;
    margin-bottom: 3.5vw;
  }

  .footer-logo-nmh img {
    height: 3.4vw;
    min-height: 24px;
    max-height: 34px;
  }

  .footer-logo-gkids img {
    height: 3.8vw;
    min-height: 28px;
    max-height: 38px;
  }

  .footer-logo-book img {
    height: 4.2vw;
    min-height: 30px;
    max-height: 42px;
  }

  .footer-copyright {
    font-size: 1.7vw;
    line-height: 2;
  }
}

/*----- RWD：手機 (max-width: 575px) -----*/
@media screen and (max-width: 575px) {
  .header {
    padding: 0 4%;
    height: 16vw;
  }

  .logo-group {
    gap: 2.2vw;
  }

  .logo-nmh img {
    height: 5.8vw;
    max-height: 26px;
    min-height: 18px;
  }

  .logo-gkids img {
    height: 6.4vw;
    max-height: 30px;
  }

  .logo-book img {
    height: 7vw;
    max-height: 34px;
  }

  .mobile-nav-toggle {
    display: block;
    font-size: 8vw;
    position: relative;
    z-index: 10000;
    color: var(--burgundy);
  }

  /* 手機版覆蓋式選單 */
  .navmenu ul {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    width: 82%;
    height: 100vh;
    background: rgba(247, 238, 222, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 2px solid rgba(123, 30, 38, 0.2);
    flex-direction: column;
    padding: 24vw 8vw;
    box-shadow: -1vw 0 3vw rgba(55, 32, 12, 0.25);
    transition: transform 0.4s ease, visibility 0.4s ease;
    gap: 6vw;
    margin: 0;
    z-index: 9999;
  }

  .navmenu.nav-active ul {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .navmenu ul li a {
    font-size: 5vw;
    gap: 3.5vw;
  }

  .navmenu .link-icon {
    width: 10vw;
    height: 10vw;
    border-width: 0.6vw;
  }

  .nav-item-lang {
    margin-left: 0;
    margin-top: 2vw;
    width: 100%;
  }

  .nav-lang-btn {
    font-size: 4.2vw !important;
    padding: 2.2vw 5vw !important;
    border-radius: 50px !important;
    width: 100%;
    text-align: center;
    gap: 2vw !important;
  }

  .nav-lang-btn .nav-btn-logo {
    height: 5.5vw;
    max-height: 24px;
  }

  .section-stage {
    margin: 16vw auto;
  }

  .section {
    padding: 8vw 5%;
    width: 94%;
  }

  .section-title {
    font-size: 6vw;
    margin-bottom: 8vw;
  }

  .section-title .section-icon {
    width: 8vw;
  }

  .btn {
    font-size: 4vw;
    padding: 2.5vw 6vw;
  }

  .scroll-top {
    width: 12vw;
    height: 12vw;
    font-size: 3.5vw;
    bottom: 4.5vw;
    right: 10vw;
    transform: translateX(50%);
  }

  .scroll-top:hover {
    transform: translateX(50%) scale(1.08);
  }

  /* 手機版裝飾雲微調尺寸與錯開距離 */
  .s1-color-r1,
  .s2-color-l1,
  .s3-color-r2,
  .s4-color-l1,
  .s5-color-r1,
  .s6-color-l1 {
    width: 44vw;
  }

  .s1-blue-01,
  .s1-blue-02,
  .s2-blue-03,
  .s2-blue-04,
  .s3-blue-05,
  .s3-blue-06,
  .s4-blue-07,
  .s4-blue-03,
  .s5-blue-01,
  .s5-blue-02,
  .s6-blue-05,
  .s6-blue-06 {
    width: 20vw;
  }

  /* KV 手機版 */
  .kv-section {
    padding-top: 22vw;
    padding-bottom: 8vw;
    margin-bottom: 4vw;
  }

  .kv-container {
    width: 98%;
  }

  .kv-slogan-badge {
    padding: 1.5vw 4vw;
    border-radius: 4vw;
    border-width: 0.28vw;
    margin-bottom: 3.5vw;
    max-width: 94vw;
  }

  .kv-slogan-text {
    font-size: 3.4vw;
    letter-spacing: 0.04em;
  }

  .author-highlight {
    font-size: 4.4vw;
    margin: 0 0.5vw;
    font-weight: 800;
  }

  .kv-bookname-wrap {
    width: 80vw;
    max-width: 340px;
    margin-bottom: 2.5vw;
  }

  .kv-stage {
    width: 100%;
    margin-bottom: 3.5vw;
  }

  .kv-poetry-wrap {
    width: 94vw;
  }

  .kv-poetry-line {
    font-size: 4.4vw;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.08em;
  }

  /* Story */
  .story-left {
    width: 90%;
    flex: 0 0 auto;
    margin-bottom: 6vw;
  }

  .story-left .book {
    max-width: 260px;
    margin-bottom: 3vw;
  }

  .story-left .price {
    font-size: 4.2vw;
    margin-bottom: 3vw;
  }

  .story-right {
    font-size: 3.8vw;
  }

  .story-main-title {
    font-size: 5.2vw;
    margin-bottom: 2.5vw;
    text-align: center;
  }

  .story-sub-title {
    font-size: 4vw;
    margin-bottom: 4.5vw;
    text-align: center;
  }

  .story-desc p,
  .story-desc ul li {
    font-size: 3.8vw;
    line-height: 1.95;
    margin-bottom: 3.5vw;
  }

  /* Read */
  .read-gallery {
    flex-direction: column;
    gap: 4vw;
  }

  .read-item {
    width: 100%;
  }

  .zoom-overlay {
    width: 14vw;
    height: 14vw;
    min-width: 52px;
    min-height: 52px;
    max-width: 65px;
    max-height: 65px;
  }

  .zoom-icon {
    width: 5vw;
    height: 5vw;
    min-width: 20px;
    min-height: 20px;
    margin-bottom: 0.3vw;
  }

  .zoom-text {
    font-size: 2.5vw;
  }

  /* Author & Illustrator */
  .author-info {
    flex-direction: column;
    align-items: center;
    gap: 3.5vw;
    text-align: center;
  }

  .author-left {
    width: 100%;
    flex: 0 0 auto;
    margin-bottom: 1.5vw;
  }

  .author-avatar {
    width: 135px;
    height: 135px;
    border-width: 3.5px;
    margin: 0 auto 2.5vw;
  }

  .author-title-name {
    font-size: 5.2vw;
    white-space: normal;
  }

  .author-bio {
    width: 100%;
  }

  .author-bio p {
    font-size: 3.7vw;
    line-height: 1.95;
    margin-bottom: 3vw;
  }

  /* 區塊六 & 七 手機版 */
  .video-iframe-box {
    border-radius: 2.5vw;
    border-width: 2px;
  }

  .video-info-title {
    font-size: 4.8vw;
    margin-bottom: 2vw;
  }

  .video-info-desc {
    font-size: 3.8vw;
    line-height: 1.95;
    text-align: justify;
  }

  .detective-content {
    flex-direction: column;
    gap: 5vw;
  }

  .detective-left {
    width: 80%;
    max-width: 280px;
  }

  .learning-sheet-card {
    border-radius: 2.5vw;
    padding: 2vw;
  }

  .learning-hint {
    font-size: 3.4vw;
    margin-top: 2.5vw;
    gap: 1vw;
  }

  .learning-hint svg {
    width: 3.8vw;
    height: 3.8vw;
  }

  .detective-title {
    font-size: 5vw;
    margin-bottom: 2vw;
    text-align: center;
  }

  .detective-tag {
    font-size: 3.2vw;
    padding: 0.8vw 3.2vw;
    margin-bottom: 3.5vw;
  }

  .detective-desc p {
    font-size: 3.8vw;
    line-height: 1.95;
    margin-bottom: 3vw;
  }

  .detective-features {
    margin: 3vw 0 5vw;
    gap: 2vw;
  }

  .detective-features li {
    font-size: 3.6vw;
    line-height: 1.8;
  }

  .detective-features li::before {
    font-size: 4vw;
  }

  .detective-actions {
    flex-direction: column;
    width: 100%;
    gap: 3vw;
  }

  .btn-learning {
    width: 100%;
    font-size: 4.2vw;
    padding: 2.8vw 6vw;
    border-radius: 50px;
    gap: 2vw;
  }

  .btn-learning .btn-icon {
    width: 4.8vw;
    height: 4.8vw;
  }

  /* Footer */
  .footer-top-clouds {
    height: 12vw;
  }

  .ft-color-l1,
  .ft-color-r1 {
    width: 44vw;
  }

  .ft-blue-01,
  .ft-blue-06 {
    width: 20vw;
  }

  .ft-blue-04 {
    width: 16vw;
  }

  .footer {
    font-size: 3.5vw;
    padding: 8vw 5%;
    line-height: 2;
  }

  .footer .social {
    font-size: 3.4vw;
    margin-bottom: 5vw;
    line-height: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1vw 1.5vw;
  }

  .footer .social a {
    margin: 0;
  }

  .footer .separator {
    margin: 0;
  }

  .footer-logo-group {
    gap: 4vw;
    padding: 2.5vw 5vw;
    margin-bottom: 5vw;
    max-width: 96%;
    flex-wrap: wrap;
  }

  .footer-logo-nmh img {
    height: 5.8vw;
    min-height: 20px;
    max-height: 28px;
  }

  .footer-logo-gkids img {
    height: 6.5vw;
    min-height: 24px;
    max-height: 32px;
  }

  .footer-logo-book img {
    height: 7.2vw;
    min-height: 26px;
    max-height: 36px;
  }

  .footer-copyright {
    font-size: 3.2vw;
    line-height: 2;
  }
}

/*----- 購買通路蓋版視窗 (Buy Modal) -----*/
body.modal-open,
body:has(dialog.buy-modal[open]) {
  overflow: hidden;
}

dialog.buy-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  width: min(92vw, 620px);
  height: fit-content;
  max-width: 92vw;
  max-height: 92dvh;
  overflow: visible;
  color: var(--ink-text);
  font-family: inherit;
  z-index: 10050;
}

dialog.buy-modal:not([open]) {
  display: none;
}

dialog.buy-modal::backdrop {
  background: rgba(34, 19, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: buy-backdrop-in 0.25s ease forwards;
}

.buy-modal-card {
  position: relative;
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #FFFDF9 0%, #F7ECDC 100%);
  border: 2px solid rgba(123, 30, 38, 0.24);
  border-radius: 22px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(40, 20, 8, 0.38);
  text-align: center;
}

.buy-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold-accent) 50%, var(--burgundy) 100%);
}

dialog.buy-modal[open] .buy-modal-card {
  animation: buy-modal-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.buy-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 30, 38, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.buy-modal-close svg {
  width: 18px;
  height: 18px;
}

.buy-modal-close:hover {
  background: var(--burgundy);
  color: #ffffff;
  border-color: var(--burgundy);
  transform: rotate(90deg);
}

.buy-modal-close:focus-visible,
.buy-channel-card:focus-visible {
  outline: 3px solid var(--gold-accent);
  outline-offset: 2px;
}

.buy-modal-header {
  margin-bottom: 24px;
  padding: 0 24px;
}

.buy-modal-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--gold-accent);
  padding: 4px 14px;
  border-radius: 30px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(201, 139, 39, 0.28);
}

.buy-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 6px;
}

.buy-modal-desc {
  font-size: 15px;
  color: #5C4C40;
  letter-spacing: 0.03em;
}

.buy-channel-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.buy-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid rgba(123, 30, 38, 0.16);
  border-radius: 16px;
  padding: 18px 14px 16px;
  box-shadow: 0 6px 18px rgba(58, 34, 14, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none;
  color: var(--ink-text);
}

.buy-channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--burgundy);
  box-shadow: 0 12px 26px rgba(123, 30, 38, 0.2);
}

.buy-channel-logo {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.buy-channel-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.buy-channel-logo--eslite img {
  width: 100%;
  max-width: 132px;
  height: auto;
  max-height: none;
}

.buy-channel-card:hover .buy-channel-logo img {
  transform: scale(1.06);
}

.buy-channel-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.buy-channel-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-text);
  letter-spacing: 0.05em;
}

.buy-channel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--burgundy);
  background: rgba(123, 30, 38, 0.08);
  border: 1px solid rgba(123, 30, 38, 0.22);
  padding: 5px 14px;
  border-radius: 30px;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.buy-channel-cta .cta-arrow {
  transition: transform 0.25s ease;
}

.buy-channel-card:hover .buy-channel-cta {
  background: var(--burgundy);
  color: #ffffff;
  border-color: var(--burgundy);
}

.buy-channel-card:hover .buy-channel-cta .cta-arrow {
  transform: translateX(3px);
}

@keyframes buy-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes buy-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media screen and (max-width: 575px) {
  .buy-modal-card {
    padding: 30px 18px 22px;
    border-radius: 18px;
  }

  .buy-modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .buy-modal-header {
    margin-bottom: 18px;
    padding: 0 18px;
  }

  .buy-modal-title {
    font-size: 19px;
  }

  .buy-modal-desc {
    font-size: 13.5px;
  }

  .buy-channel-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .buy-channel-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 14px;
    gap: 14px;
  }

  .buy-channel-logo {
    flex: 0 0 78px;
    width: 78px;
    height: 58px;
    margin-bottom: 0;
    padding: 2px;
  }

  .buy-channel-logo--eslite img {
    max-width: 78px;
  }

  .buy-channel-info {
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .buy-channel-name {
    font-size: 16px;
  }

  .buy-channel-cta {
    font-size: 13px;
    padding: 6px 12px;
    white-space: nowrap;
  }
}

/*----- 列印學習單專屬樣式 (100% 僅列印單張學習單，避開整頁干擾) -----*/
#learningPrintArea {
  display: none;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  body.is-printing-learning {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.is-printing-learning > *:not(#learningPrintArea) {
    display: none !important;
  }

  body.is-printing-learning #learningPrintArea {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.is-printing-learning #learningPrintArea img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: auto !important;
    object-fit: contain !important;
    page-break-inside: avoid !important;
  }
}
