{"id":26387,"date":"2026-07-31T17:28:09","date_gmt":"2026-07-31T09:28:09","guid":{"rendered":"https:\/\/hwis.org.tw\/news\/"},"modified":"2026-11-11T09:39:07","modified_gmt":"2026-11-11T01:39:07","slug":"news","status":"publish","type":"page","link":"https:\/\/hwis.org.tw\/zh\/news\/","title":{"rendered":"NEWS"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"26387\" class=\"elementor elementor-26387\">\n\t\t\t\t<div class=\"elementor-element elementor-element-94f4381 e-con e-atomic-element e-flexbox-base e-default-div e-38027b7 \" data-id=\"94f4381\" data-element_type=\"e-flexbox\" data-e-type=\"e-flexbox\" data-interaction-id=\"94f4381\">\n    \t\t<div class=\"elementor-element elementor-element-fcfdef1 elementor-widget elementor-widget-html\" data-id=\"fcfdef1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- This page is the automatic HWIS News archive for school stories, achievements, academic updates, and community announcements. -->\n\n<style>\n#hwis-news-page {\n  --hwis-navy: #00127d;\n  --hwis-deep: #050c5d;\n  --hwis-blue: #064a99;\n  --hwis-yellow: #ffcc00;\n  --hwis-ink: #111a38;\n  --hwis-text: #34405a;\n  --hwis-muted: #6d7688;\n  --hwis-line: #dfe4ec;\n  --hwis-light: #f4f6fa;\n  --hwis-white: #ffffff;\n  --hwis-max: 1200px;\n\n  position: relative;\n  left: 50%;\n  width: 100vw;\n  max-width: 100vw;\n  margin-left: -50vw;\n  margin-right: -50vw;\n  overflow: hidden;\n  background: var(--hwis-white);\n  color: var(--hwis-text);\n  font-family: inherit;\n  line-height: 1.65;\n}\n\n#hwis-news-page,\n#hwis-news-page * {\n  box-sizing: border-box;\n}\n\n#hwis-news-page h1,\n#hwis-news-page h2,\n#hwis-news-page h3,\n#hwis-news-page p,\n#hwis-news-page figure {\n  margin-top: 0;\n}\n\n#hwis-news-page a {\n  color: inherit;\n  text-decoration: none;\n}\n\n#hwis-news-page img {\n  display: block;\n  max-width: 100%;\n}\n\n#hwis-news-page .hwis-news-wrap {\n  width: min(var(--hwis-max), calc(100% - 48px));\n  margin-right: auto;\n  margin-left: auto;\n}\n\n#hwis-news-page .hwis-news-hero {\n  position: relative;\n  isolation: isolate;\n  min-height: 465px;\n  display: flex;\n  align-items: flex-end;\n  padding: 90px 0 78px;\n  overflow: hidden;\n  background:\n    radial-gradient(circle at 92% 20%, rgba(46, 139, 212, 0.34), transparent 34%),\n    linear-gradient(112deg, var(--hwis-deep) 0%, var(--hwis-navy) 56%, var(--hwis-blue) 100%);\n}\n\n#hwis-news-page .hwis-news-hero::after {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  right: -70px;\n  bottom: -135px;\n  width: 560px;\n  height: 310px;\n  border: 1px solid rgba(255, 255, 255, 0.10);\n  border-radius: 50%;\n  transform: rotate(-10deg);\n}\n\n#hwis-news-page .hwis-news-kicker,\n#hwis-news-page .hwis-section-kicker {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  margin-bottom: 18px;\n  color: var(--hwis-yellow);\n  font-size: 0.78rem;\n  font-weight: 800;\n  letter-spacing: 0.14em;\n  text-transform: uppercase;\n}\n\n#hwis-news-page .hwis-news-kicker::before,\n#hwis-news-page .hwis-section-kicker::before {\n  content: \"\";\n  width: 34px;\n  height: 4px;\n  flex: 0 0 auto;\n  border-radius: 20px;\n  background: var(--hwis-yellow);\n}\n\n#hwis-news-page .hwis-news-hero h1 {\n  max-width: 900px;\n  margin-bottom: 22px;\n  color: var(--hwis-white);\n  font-size: clamp(3.7rem, 8vw, 7rem);\n  font-weight: 700;\n  line-height: 0.96;\n  letter-spacing: -0.045em;\n}\n\n#hwis-news-page .hwis-news-hero p {\n  max-width: 760px;\n  margin-bottom: 0;\n  color: rgba(255, 255, 255, 0.86);\n  font-size: clamp(1.05rem, 2vw, 1.28rem);\n  line-height: 1.65;\n}\n\n#hwis-news-page .hwis-news-main {\n  padding: 82px 0 96px;\n  background: var(--hwis-white);\n}\n\n#hwis-news-page .hwis-news-heading {\n  display: flex;\n  align-items: flex-end;\n  justify-content: space-between;\n  gap: 32px;\n  margin-bottom: 38px;\n}\n\n#hwis-news-page .hwis-section-kicker {\n  margin-bottom: 12px;\n  color: var(--hwis-navy);\n}\n\n#hwis-news-page .hwis-news-heading h2 {\n  margin-bottom: 0;\n  color: var(--hwis-ink);\n  font-size: clamp(2rem, 4vw, 3.35rem);\n  line-height: 1.1;\n  letter-spacing: -0.03em;\n}\n\n#hwis-news-page .hwis-news-heading p {\n  max-width: 430px;\n  margin-bottom: 5px;\n  color: var(--hwis-muted);\n}\n\n#hwis-news-page .hwis-card-media {\n  position: relative;\n  overflow: hidden;\n  background: linear-gradient(135deg, var(--hwis-deep), var(--hwis-blue));\n}\n\n#hwis-news-page .hwis-card-media img {\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  transition: transform 0.35s ease;\n}\n\n#hwis-news-page .hwis-news-card:hover img {\n  transform: scale(1.025);\n}\n\n#hwis-news-page .hwis-image-fallback {\n  width: 100%;\n  height: 100%;\n  min-height: inherit;\n  display: flex;\n  align-items: flex-end;\n  padding: 30px;\n  background:\n    radial-gradient(circle at 80% 15%, rgba(255, 204, 0, 0.22), transparent 28%),\n    linear-gradient(135deg, var(--hwis-deep), var(--hwis-blue));\n  color: rgba(255, 255, 255, 0.86);\n  font-size: 0.82rem;\n  font-weight: 800;\n  letter-spacing: 0.13em;\n  text-transform: uppercase;\n}\n\n#hwis-news-page .hwis-post-meta {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  margin-bottom: 17px;\n  color: var(--hwis-navy);\n  font-size: 0.78rem;\n  font-weight: 800;\n  letter-spacing: 0.09em;\n  text-transform: uppercase;\n}\n\n#hwis-news-page .hwis-post-meta::before {\n  content: \"\";\n  width: 24px;\n  height: 3px;\n  border-radius: 12px;\n  background: var(--hwis-yellow);\n}\n\n#hwis-news-page .hwis-card-content p {\n  color: var(--hwis-muted);\n}\n\n#hwis-news-page .hwis-read-link {\n  display: inline-flex;\n  width: fit-content;\n  align-items: center;\n  gap: 10px;\n  color: var(--hwis-navy);\n  font-size: 0.92rem;\n  font-weight: 800;\n}\n\n#hwis-news-page .hwis-read-link::after {\n  content: \"\\2192\";\n  color: var(--hwis-navy);\n  font-size: 1.2rem;\n  transition: transform 0.18s ease;\n}\n\n#hwis-news-page a:hover .hwis-read-link::after,\n#hwis-news-page a:focus .hwis-read-link::after {\n  transform: translateX(4px);\n}\n\n#hwis-news-page .hwis-news-grid {\n  display: grid;\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n  gap: 26px;\n}\n\n#hwis-news-page .hwis-news-card {\n  height: 100%;\n  overflow: hidden;\n  border: 1px solid var(--hwis-line);\n  border-radius: 14px;\n  background: var(--hwis-white);\n  box-shadow: 0 10px 28px rgba(11, 21, 63, 0.07);\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n}\n\n#hwis-news-page .hwis-news-card:hover,\n#hwis-news-page .hwis-news-card:focus-within {\n  transform: translateY(-5px);\n  box-shadow: 0 18px 38px rgba(11, 21, 63, 0.13);\n}\n\n#hwis-news-page .hwis-news-card > a {\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n}\n\n#hwis-news-page .hwis-card-media {\n  aspect-ratio: 16 \/ 10;\n}\n\n#hwis-news-page .hwis-card-content {\n  flex: 1;\n  display: flex;\n  flex-direction: column;\n  padding: 25px 25px 27px;\n}\n\n#hwis-news-page .hwis-card-content h3 {\n  margin-bottom: 13px;\n  color: var(--hwis-ink);\n  font-size: 1.38rem;\n  line-height: 1.3;\n  letter-spacing: -0.015em;\n}\n\n#hwis-news-page .hwis-card-content p {\n  margin-bottom: 22px;\n  font-size: 0.96rem;\n}\n\n#hwis-news-page .hwis-card-content .hwis-read-link {\n  margin-top: auto;\n}\n\n#hwis-news-page .hwis-pagination {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: center;\n  gap: 9px;\n  margin-top: 48px;\n}\n\n#hwis-news-page .hwis-page-button {\n  min-width: 44px;\n  min-height: 44px;\n  padding: 9px 14px;\n  border: 1px solid var(--hwis-line);\n  border-radius: 8px;\n  background: var(--hwis-white);\n  color: var(--hwis-navy);\n  cursor: pointer;\n  font: inherit;\n  font-size: 0.9rem;\n  font-weight: 800;\n  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;\n}\n\n#hwis-news-page .hwis-page-button:hover,\n#hwis-news-page .hwis-page-button:focus {\n  border-color: var(--hwis-navy);\n  transform: translateY(-2px);\n}\n\n#hwis-news-page .hwis-page-button.is-current {\n  border-color: var(--hwis-navy);\n  background: var(--hwis-navy);\n  color: var(--hwis-white);\n}\n\n#hwis-news-page .hwis-page-button:disabled {\n  cursor: default;\n  opacity: 0.4;\n  transform: none;\n}\n\n#hwis-news-page .hwis-news-message {\n  grid-column: 1 \/ -1;\n  padding: 42px 24px;\n  border: 1px solid var(--hwis-line);\n  border-radius: 12px;\n  background: var(--hwis-light);\n  color: var(--hwis-muted);\n  text-align: center;\n}\n\n#hwis-news-page .hwis-news-skeleton {\n  min-height: 420px;\n  border-radius: 14px;\n  background: linear-gradient(90deg, #eef1f5 25%, #f8f9fb 50%, #eef1f5 75%);\n  background-size: 200% 100%;\n  animation: hwis-news-loading 1.25s infinite;\n}\n\n@keyframes hwis-news-loading {\n  from { background-position: 200% 0; }\n  to { background-position: -200% 0; }\n}\n\n@media (max-width: 1024px) {\n  #hwis-news-page .hwis-news-grid {\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n  }\n}\n\n@media (max-width: 700px) {\n  #hwis-news-page .hwis-news-wrap {\n    width: calc(100% - 28px);\n  }\n\n  #hwis-news-page .hwis-news-hero {\n    min-height: 390px;\n    padding: 70px 0 54px;\n  }\n\n  #hwis-news-page .hwis-news-hero h1 {\n    font-size: clamp(3.15rem, 17vw, 4.5rem);\n  }\n\n  #hwis-news-page .hwis-news-main {\n    padding: 58px 0 72px;\n  }\n\n  #hwis-news-page .hwis-news-heading {\n    align-items: flex-start;\n    flex-direction: column;\n    gap: 12px;\n    margin-bottom: 28px;\n  }\n\n  #hwis-news-page .hwis-news-grid {\n    grid-template-columns: 1fr;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  #hwis-news-page *,\n  #hwis-news-page *::before,\n  #hwis-news-page *::after {\n    scroll-behavior: auto !important;\n    animation-duration: 0.01ms !important;\n    animation-iteration-count: 1 !important;\n    transition-duration: 0.01ms !important;\n  }\n}\n<\/style>\n\n<div id=\"hwis-news-page\">\n  <header class=\"hwis-news-hero\">\n    <div class=\"hwis-news-wrap\">\n      <div class=\"hwis-news-kicker\">News &amp; Events \/ News<\/div>\n      <h1>HWIS News<\/h1>\n      <p>Discover the latest stories, achievements, academic developments, and community updates from Hong Wen International School.<\/p>\n    <\/div>\n  <\/header>\n\n  <section class=\"hwis-news-main\" aria-labelledby=\"hwis-latest-news-heading\">\n    <div class=\"hwis-news-wrap\">\n      <div class=\"hwis-news-heading\">\n        <div>\n          <div class=\"hwis-section-kicker\">Latest Stories<\/div>\n          <h2 id=\"hwis-latest-news-heading\">News from our community<\/h2>\n        <\/div>\n      <\/div>\n\n      <div id=\"hwis-news-grid\" class=\"hwis-news-grid\" aria-live=\"polite\">\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n        <div class=\"hwis-news-skeleton\" aria-hidden=\"true\"><\/div>\n      <\/div>\n\n      <nav id=\"hwis-news-pagination\" class=\"hwis-pagination\" aria-label=\"News pages\" hidden><\/nav>\n    <\/div>\n  <\/section>\n<\/div>\n\n<script>\n(function () {\n  const root = document.getElementById('hwis-news-page');\n  if (!root || root.dataset.newsReady === 'true') return;\n  root.dataset.newsReady = 'true';\n\n  const grid = document.getElementById('hwis-news-grid');\n  const pagination = document.getElementById('hwis-news-pagination');\n  const endpoint = 'https:\/\/hwis.org.tw\/wp-json\/wp\/v2\/posts';\n  const categoryId = 1431;\n  const postsPerPage = 9;\n  let currentPage = 1;\n  let totalPages = 1;\n\n  function decode(value) {\n    return textFromHtml(value);\n  }\n\n  function textFromHtml(value) {\n    const parsed = new DOMParser().parseFromString(value || '', 'text\/html');\n    return (parsed.body.textContent || '').replace(\/\\s+\/g, ' ').trim();\n  }\n\n  function shorten(value, limit) {\n    const words = value.split(\/\\s+\/).filter(Boolean);\n    return words.length > limit ? words.slice(0, limit).join(' ') + '\\u2026' : value;\n  }\n\n  function formatDate(value) {\n    return new Intl.DateTimeFormat('en-US', {\n      year: 'numeric',\n      month: 'long',\n      day: 'numeric',\n      timeZone: 'Asia\/Taipei'\n    }).format(new Date(value));\n  }\n\n  function imageFor(post, preferredSize) {\n    const media = post._embedded?.['wp:featuredmedia']\n      ? post._embedded['wp:featuredmedia'][0]\n      : null;\n    if (!media) return null;\n\n    const sizes = media.media_details?.sizes\n      ? media.media_details.sizes\n      : {};\n    const preferred = sizes[preferredSize] || sizes.large || sizes.medium_large || sizes.full;\n\n    return {\n      src: preferred?.source_url ? preferred.source_url : media.source_url,\n      alt: media.alt_text || decode(post.title.rendered) + ' - Hong Wen International School'\n    };\n  }\n\n  function createMedia(post, className, size) {\n    const media = document.createElement('div');\n    media.className = className;\n    const image = imageFor(post, size);\n\n    if (image?.src) {\n      const img = document.createElement('img');\n      img.src = image.src;\n      img.alt = image.alt;\n      img.loading = 'lazy';\n      img.decoding = 'async';\n      media.appendChild(img);\n    } else {\n      const fallback = document.createElement('div');\n      fallback.className = 'hwis-image-fallback';\n      fallback.textContent = 'Hong Wen International School News';\n      media.appendChild(fallback);\n    }\n\n    return media;\n  }\n\n  function createMeta(post) {\n    const meta = document.createElement('div');\n    meta.className = 'hwis-post-meta';\n    meta.textContent = formatDate(post.date);\n    return meta;\n  }\n\n  function createReadLink() {\n    const link = document.createElement('span');\n    link.className = 'hwis-read-link';\n    link.textContent = 'Read Article';\n    return link;\n  }\n\n  function createCard(post) {\n    const article = document.createElement('article');\n    const anchor = document.createElement('a');\n    const content = document.createElement('div');\n    const title = document.createElement('h3');\n    const excerpt = document.createElement('p');\n\n    article.className = 'hwis-news-card';\n    anchor.href = post.link;\n    anchor.setAttribute('aria-label', 'Read ' + decode(post.title.rendered));\n    content.className = 'hwis-card-content';\n    title.textContent = decode(post.title.rendered);\n    excerpt.textContent = shorten(textFromHtml(post.excerpt.rendered), 24);\n\n    anchor.appendChild(createMedia(post, 'hwis-card-media', 'medium_large'));\n    content.appendChild(createMeta(post));\n    content.appendChild(title);\n    content.appendChild(excerpt);\n    content.appendChild(createReadLink());\n    anchor.appendChild(content);\n    article.appendChild(anchor);\n\n    return article;\n  }\n\n  function showMessage(message) {\n    grid.innerHTML = '';\n    const box = document.createElement('div');\n    box.className = 'hwis-news-message';\n    box.textContent = message;\n    grid.appendChild(box);\n  }\n\n  function makePageButton(label, page, options) {\n    const button = document.createElement('button');\n    button.type = 'button';\n    button.className = 'hwis-page-button';\n    button.textContent = label;\n    button.disabled = Boolean(options?.disabled);\n\n    if (options?.current) {\n      button.classList.add('is-current');\n      button.setAttribute('aria-current', 'page');\n    }\n\n    button.addEventListener('click', function () {\n      if (button.disabled) return;\n      if (page === currentPage) return;\n      fetchPosts(page, true);\n    });\n\n    return button;\n  }\n\n  function renderPagination() {\n    pagination.innerHTML = '';\n    pagination.hidden = totalPages <= 1;\n    if (totalPages <= 1) return;\n\n    pagination.appendChild(makePageButton('Previous', currentPage - 1, {\n      disabled: currentPage === 1\n    }));\n\n    const start = Math.max(1, currentPage - 2);\n    const end = Math.min(totalPages, currentPage + 2);\n\n    for (let page = start; page <= end; page += 1) {\n      pagination.appendChild(makePageButton(String(page), page, {\n        current: page === currentPage\n      }));\n    }\n\n    pagination.appendChild(makePageButton('Next', currentPage + 1, {\n      disabled: currentPage === totalPages\n    }));\n  }\n\n  async function fetchPosts(page, moveToGrid) {\n    pagination.setAttribute('aria-busy', 'true');\n\n    try {\n      const url = new URL(endpoint);\n      url.searchParams.set('categories', String(categoryId));\n      url.searchParams.set('per_page', String(postsPerPage));\n      url.searchParams.set('page', String(page));\n      url.searchParams.set('orderby', 'date');\n      url.searchParams.set('order', 'desc');\n      url.searchParams.set('_embed', '1');\n\n      const response = await fetch(url.toString(), { credentials: 'same-origin' });\n      if (!response.ok) throw new Error('News feed unavailable');\n\n      const posts = await response.json();\n      totalPages = Number(response.headers.get('X-WP-TotalPages')) || 1;\n\n      grid.innerHTML = '';\n\n      if (!posts.length) {\n        if (page === 1) {\n          showMessage('New HWIS stories will appear here after they are published in the News category.');\n          pagination.hidden = true;\n          return;\n        }\n      }\n\n      posts.forEach(function (post) {\n        grid.appendChild(createCard(post));\n      });\n\n      currentPage = page;\n      renderPagination();\n\n      if (moveToGrid) {\n        root.querySelector('.hwis-news-main').scrollIntoView({\n          behavior: 'smooth',\n          block: 'start'\n        });\n      }\n    } catch (error) {\n      showMessage('News could not be loaded right now. Please refresh the page and try again.');\n      pagination.hidden = true;\n    } finally {\n      pagination.removeAttribute('aria-busy');\n    }\n  }\n\n  fetchPosts(1, false);\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\n<\/div>\n\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>News &amp; Events \/ News HWIS News Discover the latest stories, achievements, academic developments, and community updates from Hong Wen International School. Latest Stories News from our community<\/p>","protected":false},"author":281108996,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","jetpack_seo_llms_txt_always_include":false,"_wpcom_ai_launchpad_about_page":false,"_wpcom_ai_launchpad_gallery_page":false,"_wpcom_ai_launchpad_contact_page":false,"_wpcom_ai_launchpad_events_page":false,"_wpcom_ai_launchpad_video_page":false,"_wpcom_ai_launchpad_portfolio_piece":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":""},"class_list":["post-26387","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PhgwCZ-6RB","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/pages\/26387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/users\/281108996"}],"replies":[{"embeddable":true,"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/comments?post=26387"}],"version-history":[{"count":12,"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/pages\/26387\/revisions"}],"predecessor-version":[{"id":28215,"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/pages\/26387\/revisions\/28215"}],"wp:attachment":[{"href":"https:\/\/hwis.org.tw\/zh\/wp-json\/wp\/v2\/media?parent=26387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}