{"id":2713,"date":"2025-08-20T16:05:31","date_gmt":"2025-08-20T08:05:31","guid":{"rendered":"http:\/\/localhost:8888\/wordpress\/?page_id=2713"},"modified":"2025-11-13T15:54:16","modified_gmt":"2025-11-13T07:54:16","slug":"horizonspark-videos","status":"publish","type":"page","link":"https:\/\/istageacademy.com\/index.php\/en\/horizonspark-videos\/","title":{"rendered":"HorizonSpark Videos"},"content":{"rendered":"\n<div class=\"youtube-grid\">\n  <div class=\"video-item\">\n    <div\n      class=\"thumbnail\"\n      data-video-id=\"FLXOw52KaoI\"\n      style=\"background-image: url(https:\/\/istageacademy.com\/wp-content\/uploads\/2025\/11\/v1.jpg)\"\n    >\n      <div class=\"play-button\"><\/div>\n    <\/div><div class=\"video-title\">\u65b0\u52a0\u5761\u97f3\u4e50\u5267\u51ac\u4ee4\u84252025<\/div>\n  <\/div>\n  <div class=\"video-item\">\n    <div\n      class=\"thumbnail\"\n      data-video-id=\"Lr8stSqedOM\"\n      style=\"background-image: url(https:\/\/istageacademy.com\/wp-content\/uploads\/2025\/11\/v2-scaled.jpg)\"\n    >\n      <div class=\"play-button\"><\/div>\n    <\/div><div class=\"video-title\">\u65b0\u52a0\u5761\u97f3\u4e50\u5267\u51ac\u4ee4\u84252025<\/div>\n  <\/div>\n<\/div>\n\n\n\n  <!-- \u6dfb\u52a0\u66f4\u591a\u89c6\u9891\u9879 -->\n<\/div>\n<style type='text\/css'>\n  \/* \u57fa\u7840\u6837\u5f0f\u91cd\u7f6e *\/\n  * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n  }\n\n  .youtube-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n  gap: 24px;\n  padding: 20px;\n  max-width: 1400px;\n  margin: 0 auto;\n  }\n\n  .video-item {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  cursor: pointer;\n  }\n\n  .thumbnail {\n  position: relative;\n  padding-top: 56.25%; \/* 16:9 \u6bd4\u4f8b *\/\n  background-size: cover;\n  background-position: center;\n  border-radius: 8px;\n  overflow: hidden;\n  box-shadow: 0 2px 8px rgba(0,0,0,0.1);\n  transition: transform 0.2s ease;\n  }\n\n  .thumbnail:hover {\n  transform: translateY(-4px);\n  }\n\n  .play-button {\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  transform: translate(-50%, -50%);\n  width: 60px;\n  height: 60px;\n  background: url('play-icon.png') no-repeat center\/contain;\n  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));\n  transition: all 0.2s ease;\n  }\n\n  .thumbnail:hover .play-button {\n  transform: translate(-50%, -50%) scale(1.05);\n  }\n\n  .video-title {\n  font-size: 16px;\n  font-weight: 500;\n  color: #333;\n  line-height: 1.4;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n  overflow: hidden;\n  padding: 0 4px;\n  text-align: center; \/* \u65b0\u589e\uff1a\u6807\u9898\u5c45\u4e2d\u5bf9\u9f50 *\/\n  }\n\n  \/* \u5f39\u7a97\u6837\u5f0f *\/\n  .youtube-lightbox {\n  position: fixed;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background: rgba(0,0,0,0.85);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  z-index: 9999;\n  padding: 20px;\n  }\n\n  .youtube-lightbox iframe {\n  width: 100%;\n  max-width: 900px;\n  height: 506px; \/* 16:9 \u6bd4\u4f8b\u8ba1\u7b97 *\/\n  border: none;\n  border-radius: 8px;\n  }\n\n  .close-button {\n  position: absolute;\n  top: 20px;\n  right: 20px;\n  color: white;\n  font-size: 32px;\n  font-weight: bold;\n  cursor: pointer;\n  width: 40px;\n  height: 40px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: rgba(0,0,0,0.5);\n  border-radius: 50%;\n  transition: background 0.2s ease;\n  }\n\n  .close-button:hover {\n  background: rgba(0,0,0,0.8);\n  }\n\n  \/* \u54cd\u5e94\u5f0f\u8c03\u6574 *\/\n  @media (max-width: 768px) {\n  .youtube-grid {\n  gap: 16px;\n  padding: 15px;\n  }\n\n  .play-button {\n  width: 50px;\n  height: 50px;\n  }\n\n  .video-title {\n  font-size: 14px; \/* \u5c0f\u5c4f\u5e55\u4fdd\u6301\u5c45\u4e2d\uff0c\u4ec5\u8c03\u6574\u5b57\u4f53\u5927\u5c0f *\/\n  }\n\n  .youtube-lightbox iframe {\n  height: 50vh; \/* \u624b\u673a\u7aef\u5360\u5c4f\u5e55\u9ad8\u5ea650% *\/\n  }\n\n  .close-button {\n  top: 15px;\n  right: 15px;\n  width: 36px;\n  height: 36px;\n  font-size: 28px;\n  }\n  }\n\n  @media (max-width: 480px) {\n  .play-button {\n  width: 40px;\n  height: 40px;\n  }\n\n  .youtube-lightbox {\n  padding: 10px;\n  }\n  }\n<\/style>\n<script>\n  document.querySelectorAll('.thumbnail').forEach(item => {\n    item.addEventListener('click', () => {\n      \/\/ \u5220\u9664\u5df2\u6709\u7684\u5f39\u7a97\u5bb9\u5668\n      const existingLightbox = document.querySelector('.youtube-lightbox')\n      if (existingLightbox) {\n        document.body.removeChild(existingLightbox)\n      }\n\n      const videoId = item.dataset.videoId\n      const iframe = `<iframe \n        width=\"100%\" \n        height=\"100%\" \n        src=\"https:\/\/www.youtube.com\/embed\/${videoId}?autoplay=1\" \n        frameborder=\"0\" \n        allow=\"autoplay; encrypted-media\" \n        allowfullscreen>\n      <\/iframe>`\n\n      \/\/ \u521b\u5efa\u5173\u95ed\u6309\u94ae\n      const closeButton = `<div class=\"close-button\" onclick=\"closeLightbox()\">\u00d7<\/div>`\n\n      \/\/ \u521b\u5efa\u5f39\u7a97\u5bb9\u5668\n      const lightbox = document.createElement('div')\n      lightbox.className = 'youtube-lightbox'\n      lightbox.innerHTML = closeButton + iframe\n\n      \/\/ \u63d2\u5165\u9875\u9762\u5e76\u663e\u793a\n      document.body.appendChild(lightbox)\n    })\n  })\n\n  \/\/ \u5173\u95ed\u5f39\u7a97\u7684\u51fd\u6570\n  function closeLightbox() {\n    const lightbox = document.querySelector('.youtube-lightbox')\n    if (lightbox) {\n      document.body.removeChild(lightbox)\n    }\n  }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u65b0\u52a0\u5761\u97f3\u4e50\u5267\u51ac\u4ee4\u84252025 \u65b0\u52a0\u5761\u97f3\u4e50\u5267\u51ac\u4ee4\u84252025<\/p>\n","protected":false},"author":1,"featured_media":2937,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"istage_academy_cn":[],"istage_academy_en":[],"aishen_cn":[],"aishen_en":[],"world_classroom_en":[373],"world_classroom_cn":[],"class_list":["post-2713","page","type-page","status-publish","has-post-thumbnail","hentry","world_classroom_en-horizonspark-videos"],"_links":{"self":[{"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/pages\/2713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/comments?post=2713"}],"version-history":[{"count":7,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/pages\/2713\/revisions"}],"predecessor-version":[{"id":3450,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/pages\/2713\/revisions\/3450"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/media\/2937"}],"wp:attachment":[{"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/media?parent=2713"}],"wp:term":[{"taxonomy":"istage_academy_cn","embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/istage_academy_cn?post=2713"},{"taxonomy":"istage_academy_en","embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/istage_academy_en?post=2713"},{"taxonomy":"aishen_cn","embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/aishen_cn?post=2713"},{"taxonomy":"aishen_en","embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/aishen_en?post=2713"},{"taxonomy":"world_classroom_en","embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/world_classroom_en?post=2713"},{"taxonomy":"world_classroom_cn","embeddable":true,"href":"https:\/\/istageacademy.com\/index.php\/wp-json\/wp\/v2\/world_classroom_cn?post=2713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}