/* biology_plant_transport：V5 頁首與版面（與 electronics_4／biology_plant_structure 一致）
 * 只加外層樣式，全部掛在 body.pt-v5 底下，不改既有畫布與引擎的 CSS。
 * 順序：主標題 → 副標題 → 模式鈕（✋學生操作／👩‍🏫老師講解）＋提示 → 單元卡片 → 曉臻 Hook → 畫布框
 */
body.pt-v5 { max-width: none; }
body.pt-v5 .wrap { max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 16px; }
body.pt-v5 .hero { text-align: center; }
body.pt-v5 .hero p#subtitle { font-size: 24px; font-weight: 700; color: #b8c9c1; margin: 8px 0 14px; }

/* 模式鈕列 */
body.pt-v5 .mode-bar { text-align: center; margin: 4px 0 6px; }
body.pt-v5 .mode-row { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
body.pt-v5 .mode-pill {
  font: 700 22px/1.3 'Noto Sans TC', sans-serif; color: #f2ecd9;
  background: transparent; border: 2px dashed rgba(246, 243, 234, 0.45);
  border-radius: 999px; padding: 8px 20px; min-height: 48px; cursor: pointer;
}
body.pt-v5 .mode-pill.active { background: #fde047; color: #0b1a15; border: 3px solid #fde047; box-shadow: 0 0 18px rgba(253, 224, 71, 0.45); }
body.pt-v5 .mode-hint { font-size: 17px; color: #b8c9c1; margin: 8px auto 4px; max-width: 880px; line-height: 1.6; }

/* 單元卡片（引擎產生的 .tab-btn，內容為鉤子問句＋學科小字） */
body.pt-v5 .tabs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 10px 0 14px; }
body.pt-v5 .tabs.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.pt-v5 .tab-btn {
  min-height: 136px; padding: 20px 12px; gap: 6px; line-height: 1.4; width: 100%;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05); color: #a3b8b0;
  border: 2px dashed rgba(246, 243, 234, 0.22); border-radius: 10px; cursor: pointer;
}
body.pt-v5 .tab-btn .tab-main { font-size: 22px; font-weight: 700; line-height: 1.38; color: inherit; text-align: center; text-wrap: balance; }
body.pt-v5 .tab-btn .tab-sub { font-size: 17px; font-weight: 700; line-height: 1.3; opacity: 0.82; color: inherit; text-align: center; }
body.pt-v5 .tab-btn:hover { background: #1f4236; color: #f6f3ea; border-color: #f6f3ea; }
body.pt-v5 .tab-btn.active { background: #fde047; color: #11261f; border: 3px solid #fde047; box-shadow: 0 0 20px rgba(253, 224, 71, 0.5); }
body.pt-v5 .tab-btn.active .tab-main, body.pt-v5 .tab-btn.active .tab-sub { color: #11261f; }
@media (max-width: 900px) { body.pt-v5 .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.pt-v5 .tab-btn { min-height: 118px; } }
@media (max-width: 480px) { body.pt-v5 .tabs, body.pt-v5 .tabs.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.pt-v5 .tab-btn { min-height: 96px; } }

/* 曉臻 Hook：88px 青色圓框頭像、青色薄膜底（疊在 --bg-panel 上，不靠父層底色） */
body.pt-v5 .hook-box {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(rgba(77, 210, 255, 0.08), rgba(77, 210, 255, 0.08)), #16332a;
  border: 2px solid rgba(77, 210, 255, 0.4); border-left: 6px solid #4dd2ff;
  border-radius: 12px; padding: 18px 22px; margin: 0 0 18px;
}
body.pt-v5 .xiaozhen-logo { width: 88px; height: 88px; flex: 0 0 88px; overflow: hidden; border: 4px solid #55e9ff; border-radius: 50%; }
body.pt-v5 .xiaozhen-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.pt-v5 .hook-title { font-size: 26px; font-weight: 700; color: #4dd2ff; margin-bottom: 6px; }
body.pt-v5 .hook-text { font-size: 22px; line-height: 1.75; color: #f2ecd9; }

/* 畫布框（板書）：控制、步驟、畫布、說明 */
body.pt-v5 .lesson-body { font-size: 22px; line-height: 1.75; color: #f2ecd9; }
body.pt-v5 .bench.board { border-radius: 16px; }
body.pt-v5 #playButton { display: none !important; }   /* 學生操作由步驟鈕與「動手做」負責，不放播放鈕（AGENTS 10.6） */

/* 步驟鈕：一列，字小、內距小（畫布內文字仍維持 22px 以上） */
body.pt-v5 .pt-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 10px; }
body.pt-v5 .pt-step {
  font: 700 15px/1.3 'Noto Sans TC', sans-serif; color: #f2ecd9; background: transparent;
  border: 2px dashed rgba(246, 243, 234, 0.35); border-radius: 999px; padding: 5px 12px; min-height: 36px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
body.pt-v5 .pt-step b { font-family: 'JetBrains Mono', monospace; color: #55e9ff; }
body.pt-v5 .pt-step.on { background: #fde047; border: 2px solid #fde047; color: #11261f; }
body.pt-v5 .pt-step.on b { color: #11261f; }
/* 老師講解控制列：只在老師模式出現 */
body.pt-v5 .pt-teach { display: none; justify-content: center; gap: 8px; margin: 0 0 8px; }
body.mode-teacher.pt-v5 .pt-teach { display: flex; }
body.pt-v5 .pt-teach button {
  font: 700 15px/1.3 'Noto Sans TC', sans-serif; color: #f2ecd9; background: transparent;
  border: 2px solid #55e9ff; border-radius: 10px; padding: 5px 12px; min-height: 36px; cursor: pointer;
}
body.mode-teacher.pt-v5 .pt-student-only { display: none !important; }
body.pt-v5 .pt-hl-note { font-size: 17px; color: #b8c9c1; text-align: center; margin: 4px 0 0; }

/* 封面背景：引擎把 url 放在 --cover，::before 會以 living_book 的樣式檔為基準解析，路徑錯成 assets/biology/assets/…；這裡改成本檔的相對路徑 */
body.pt-v5 .intro-screen::before { background-image: url('../covers/biology_plant_1008_v1.png') !important; }
