<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>尺寸參考 - MTSportswear一站式解決運動員服飾訂製難題-波衫定製| 訂波衫| 籃球服|足球服| 排球服</title>
	<atom:link href="https://mtsportswear.com.hk/category/%e5%b0%ba%e5%af%b8%e5%8f%83%e8%80%83/feed/" rel="self" type="application/rss+xml" />
	<link>https://mtsportswear.com.hk/category/尺寸參考/</link>
	<description>籃球服 &#124; 足球服 &#124; 排球服 &#124; 手球服 &#124; 龍舟服 &#124; 田徑服</description>
	<lastBuildDate>Wed, 09 Sep 2026 06:48:51 +0000</lastBuildDate>
	<language>zh-HK</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.14</generator>

<image>
	<url>https://mtsportswear.com.hk/wp-content/uploads/2019/07/cropped-MT-LOGO-NEW-02-32x32.png</url>
	<title>尺寸參考 - MTSportswear一站式解決運動員服飾訂製難題-波衫定製| 訂波衫| 籃球服|足球服| 排球服</title>
	<link>https://mtsportswear.com.hk/category/尺寸參考/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>尺寸參考</title>
		<link>https://mtsportswear.com.hk/2019/07/22/%e5%b0%ba%e5%af%b8%e5%8f%83%e8%80%83/</link>
		
		<dc:creator><![CDATA[mtsportswear]]></dc:creator>
		<pubDate>Mon, 22 Jul 2019 10:22:19 +0000</pubDate>
				<category><![CDATA[尺寸參考]]></category>
		<guid isPermaLink="false">https://hku88.com/mt/?p=165</guid>

					<description><![CDATA[<p>這篇文章 <a rel="nofollow" href="https://mtsportswear.com.hk/2019/07/22/%e5%b0%ba%e5%af%b8%e5%8f%83%e8%80%83/">尺寸參考</a> 最早出現於 <a rel="nofollow" href="https://mtsportswear.com.hk">MTSportswear一站式解決運動員服飾訂製難題-波衫定製| 訂波衫| 籃球服|足球服| 排球服</a>。</p>
]]></description>
										<content:encoded><![CDATA[<section class="wpb-content-wrapper"><div      class="vc_row wpb_row section vc_row-fluid " style=' text-align:left;'><div class=" full_section_inner clearfix"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper">
	<div class="wpb_raw_code wpb_content_element wpb_raw_html" >
		<div class="wpb_wrapper">
			<meta charset="utf-8">
<div id="mt-size-guide" class="mtg mtg-fixed-region">
  <div class="mtg-grain" aria-hidden="true"></div>

  <main>
    <section id="mtg-tool" class="mtg-section mtg-tool-section">
      <div class="mtg-wrap">
        <div class="mtg-section-head">
          <div>
            <p class="mtg-eyebrow">SMART SIZE FINDER</p>
            <h2>開始選擇你的尺碼</h2>
          </div>
          <p>推薦結果只需作初步參考，正式訂購前請核對對應產品尺寸圖。</p>
        </div>

        <div class="mtg-tabs" role="tablist" aria-label="尺寸工具">
          <button class="mtg-tab is-active" id="mtg-tab-recommend" type="button" role="tab"
            aria-selected="true" aria-controls="mtg-panel-recommend" data-tab="recommend">
            <span>01</span> 智能推薦
          </button>
          <button class="mtg-tab" id="mtg-tab-chart" type="button" role="tab"
            aria-selected="false" aria-controls="mtg-panel-chart" data-tab="chart">
            <span>02</span> 官方尺寸表
          </button>
        </div>

        <div class="mtg-panel is-active" id="mtg-panel-recommend" role="tabpanel"
          aria-labelledby="mtg-tab-recommend">
          <div class="mtg-finder-grid">
            <form class="mtg-form" id="mtg-size-form">
              <div class="mtg-step">
                <div class="mtg-step-label"><b>1</b><span>選擇產品類別<small>PRODUCT</small></span></div>
                <label class="mtg-field">
                  <span>產品類別</span>
                  <select id="mtg-product" required aria-describedby="mtg-product-hint"></select>
                </label>
                <small id="mtg-product-hint" class="mtg-hint">請選擇準備訂製的產品。</small>
              </div>

              <div class="mtg-step">
                <div class="mtg-step-label"><b>2</b><span>輸入身體數據<small>BODY DATA</small></span></div>
                <div class="mtg-fields-2">
                  <label class="mtg-field">
                    <span>身高 <em>HEIGHT</em></span>
                    <span class="mtg-input-wrap"><input id="mtg-height" type="number" inputmode="decimal"
                      min="110" max="220" step="1" placeholder="例：172" required><i>cm</i></span>
                  </label>
                  <label class="mtg-field">
                    <span>體重 <em>WEIGHT</em></span>
                    <span class="mtg-input-wrap"><input id="mtg-weight" type="number" inputmode="decimal"
                      min="25" max="200" step="0.1" placeholder="例：68" required><i>kg</i></span>
                  </label>
                </div>
              </div>

              <fieldset class="mtg-step mtg-fit-step">
                <legend class="mtg-step-label"><b>3</b><span>選擇穿著偏好<small>FIT</small></span></legend>
                <div class="mtg-fit-options">
                  <label><input type="radio" name="mtg-fit" value="tight"><span><b>貼身</b><small>TIGHT</small></span></label>
                  <label><input type="radio" name="mtg-fit" value="standard" checked><span><b>舒適</b><small>STANDARD</small></span></label>
                  <label><input type="radio" name="mtg-fit" value="loose"><span><b>寬鬆</b><small>LOOSE</small></span></label>
                </div>
              </fieldset>

              <p class="mtg-form-error" id="mtg-form-error" role="alert" aria-live="polite"></p>
              <button class="mtg-calc" type="submit">智能推算尺碼 <span>→</span></button>
            </form>

            <aside class="mtg-result" id="mtg-result" aria-live="polite">
              <div class="mtg-result-empty">
                <div class="mtg-empty-icon"><span></span><i></i></div>
                <p>等待你的身體數據</p>
                <small>完成左方 3 個步驟後，這裡會顯示建議尺碼。</small>
              </div>
              <div class="mtg-result-ready" hidden>
                <div class="mtg-result-head">
                  <div>
                    <p>RECOMMENDATION</p>
                    <h3>你的尺碼建議</h3>
                  </div>
                  <span class="mtg-confidence">可信程度 <b id="mtg-confidence">—</b></span>
                </div>

                <div class="mtg-size-results">
                  <article class="mtg-size-card mtg-top-result">
                    <span>上衣 TOP</span>
                    <strong id="mtg-top-size">—</strong>
                    <small>主要建議</small>
                  </article>
                  <article class="mtg-size-card mtg-bottom-result">
                    <span>褲裝 BOTTOM</span>
                    <strong id="mtg-bottom-size">—</strong>
                    <small>主要建議</small>
                  </article>
                </div>

                <div class="mtg-alternatives">
                  <div><span>較貼身</span><b id="mtg-tight-size">—</b></div>
                  <div><span>建議</span><b id="mtg-main-size">—</b></div>
                  <div><span>較寬鬆</span><b id="mtg-loose-size">—</b></div>
                </div>

                <p class="mtg-reason" id="mtg-reason"></p>
                <div class="mtg-result-actions">
                  <button class="mtg-btn mtg-btn-primary" id="mtg-view-chart" type="button">核對尺寸表 <span>→</span></button>
                  <button class="mtg-text-btn" id="mtg-reset" type="button">重新輸入</button>
                </div>
              </div>
            </aside>
          </div>
        </div>

        <div class="mtg-panel" id="mtg-panel-chart" role="tabpanel" aria-labelledby="mtg-tab-chart" hidden>
          <div class="mtg-chart-layout">
            <aside class="mtg-chart-side">
              <p class="mtg-eyebrow">OFFICIAL SIZE CHART</p>
              <h3>選擇產品尺寸表</h3>
              <label class="mtg-field">
                <span>產品類別</span>
                <select id="mtg-chart-product"></select>
              </label>
              <div class="mtg-chart-tip">
                <b>量度提示</b>
                <p>將衣物平放後量度。胸闊是腋下至腋下，不是胸圍一圈。</p>
              </div>
              <button class="mtg-btn mtg-btn-dark" id="mtg-zoom-chart" type="button">放大查看尺寸表</button>
            </aside>

            <div class="mtg-chart-view">
              <div class="mtg-chart-bar">
                <div><span class="mtg-dot"></span><b id="mtg-chart-title">籃球服（新版）</b></div>
                <span>單位：CM</span>
              </div>
              <div class="mtg-image-stage">
                <span class="mtg-loader" aria-hidden="true"></span>
                <img id="mtg-chart-image" alt="球衣官方尺寸表" loading="lazy">
                <p class="mtg-image-error" hidden>尺寸圖暫時未能載入，請聯絡客服索取。</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section id="mtg-measure" class="mtg-section mtg-measure-section">
      <div class="mtg-wrap">
        <div class="mtg-section-head">
          <div>
            <p class="mtg-eyebrow">HOW TO MEASURE</p>
            <h2>正確量度，只需 3 步</h2>
          </div>
          <p>先觀看教學影片，再按以下步驟量度衣物尺寸。</p>
        </div>

        <div class="mtg-video-card">
          <div class="mtg-video-head">
            <div>
              <span class="mtg-video-icon" aria-hidden="true">▶</span>
              <div>
                <b>球衣尺寸量度教學</b>
                <small>跟著影片正確量度胸闊及衣長</small>
              </div>
            </div>
            <span>VIDEO GUIDE</span>
          </div>
          <div class="mtg-video-frame">
            <iframe width="1497" height="582" src="https://www.youtube.com/embed/S1dTaAceeaA"
              title="MTSPORTSWEAR度尺影片HK" frameborder="0"
              allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
              referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
          </div>
        </div>

        <div class="mtg-measure-grid">
          <article>
            <span class="mtg-num">01</span>
            <div class="mtg-measure-art mtg-art-flat"><i></i><b></b></div>
            <h3>衣物平放</h3>
            <p>找一件合身衣物，扣好拉鏈或鈕扣，在平坦桌面完全攤平。</p>
          </article>
          <article>
            <span class="mtg-num">02</span>
            <div class="mtg-measure-art mtg-art-width"><i></i><b></b></div>
            <h3>量度胸闊</h3>
            <p>由左腋下直線量到右腋下。尺寸表胸闊是平量數值，不需乘二。</p>
          </article>
          <article>
            <span class="mtg-num">03</span>
            <div class="mtg-measure-art mtg-art-length"><i></i><b></b></div>
            <h3>量度衣長</h3>
            <p>由肩膀最高點垂直量至衣腳，再與尺寸表最接近的數值比較。</p>
          </article>
        </div>
      </div>
    </section>

    <section id="mtg-notice" class="mtg-section mtg-notice-section">
      <div class="mtg-wrap">
        <div class="mtg-notice-card">
          <div class="mtg-notice-title">
            <span>!</span>
            <div><p>SIZE NOTICE</p><h2>選碼前必須知道</h2></div>
          </div>
          <div class="mtg-notice-points">
            <div><b>CM</b><span><strong>單位為公分</strong>產品需平放量度</span></div>
            <div><b>±5%</b><span><strong>合理尺寸誤差</strong>客製產品由人工製作</span></div>
            <div><b>↑</b><span><strong>兩碼之間選大碼</strong>活動量大或偏寬鬆時</span></div>
          </div>
          <details>
            <summary>查看詳細尺寸說明 <span>＋</span></summary>
            <ul>
              <li>智能推薦只供參考，實際合身效果會受身形比例、量度方式、布料及穿著偏好影響。</li>
              <li>介乎兩個尺碼之間：偏貼身可選較小尺碼；偏寬鬆或活動量較大，建議選較大尺碼。</li>
              <li>上衣與褲裝可選不同尺碼；團體訂購前建議先安排成員逐一確認。</li>
              <li>如對結果有疑問，請把身高、體重及平量衣物數據傳給 MT Sportswear 顧問協助確認。</li>
            </ul>
          </details>
        </div>
      </div>
    </section>

  </main>

  <div class="mtg-modal" id="mtg-modal" role="dialog" aria-modal="true" aria-labelledby="mtg-modal-title" hidden>
    <button class="mtg-modal-close" id="mtg-modal-close" type="button" aria-label="關閉尺寸表">×</button>
    <div class="mtg-modal-body">
      <h2 id="mtg-modal-title">官方尺寸表</h2>
      <img id="mtg-modal-image" alt="放大的官方尺寸表">
    </div>
  </div>
</div>

<style>
  #mt-size-guide {
    --mtg-ink: #07111f;
    --mtg-ink-2: #10223a;
    --mtg-blue: #2f7df6;
    --mtg-blue-dark: #165ac7;
    --mtg-green: #20c863;
    --mtg-lime: #b9ff3f;
    --mtg-white: #ffffff;
    --mtg-bg: #f3f6fa;
    --mtg-line: #ccd7e3;
    --mtg-muted: #4b5d73;
    --mtg-radius: 22px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--mtg-bg);
    color: var(--mtg-ink);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* WordPress 固定內容區：桌面 1180px，窄版自動縮小 */
  #mt-size-guide.mtg-fixed-region {
    display: block !important;
    width: 100% !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  #mt-size-guide *, #mt-size-guide *::before, #mt-size-guide *::after { box-sizing: border-box; }
  #mt-size-guide a { color: inherit; }
  #mt-size-guide button, #mt-size-guide input, #mt-size-guide select { font: inherit; }
  #mt-size-guide button, #mt-size-guide a { -webkit-tap-highlight-color: transparent; }
  #mt-size-guide h1, #mt-size-guide h2, #mt-size-guide h3, #mt-size-guide p { margin: 0; }
  #mt-size-guide .mtg-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; }
  #mt-size-guide .mtg-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .2; background-image: radial-gradient(rgba(7,17,31,.16) .55px, transparent .55px); background-size: 5px 5px; }

  #mt-size-guide .mtg-eyebrow { color: var(--mtg-blue-dark); font-size: 13px; font-weight: 950; letter-spacing: .16em; line-height: 1.4; }
  #mt-size-guide .mtg-btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 24px; border: 0; border-radius: 8px; text-decoration: none !important; font-size: 15px; font-weight: 950; letter-spacing: .01em; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
  #mt-size-guide .mtg-btn:hover { transform: translateY(-2px); }
  #mt-size-guide .mtg-btn-primary { color: #fff !important; background: var(--mtg-blue); }
  #mt-size-guide .mtg-btn-primary:hover { background: var(--mtg-blue-dark); }
  #mt-size-guide .mtg-btn-ghost { color: #fff !important; border: 1px solid rgba(255,255,255,.27); background: transparent; }
  #mt-size-guide .mtg-btn-ghost:hover { border-color: #fff; }
  #mt-size-guide .mtg-btn-dark { color: #fff !important; background: var(--mtg-ink); }
  #mt-size-guide .mtg-section { padding: 92px 0; }
  #mt-size-guide .mtg-section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
  #mt-size-guide .mtg-section-head h2 { margin-top: 9px; font-size: clamp(32px, 4vw, 50px); font-weight: 950; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
  #mt-size-guide .mtg-section-head > p { max-width: 480px; padding-left: 16px; border-left: 4px solid var(--mtg-blue); color: #35485f; font-size: 16px; font-weight: 700; line-height: 1.7; }
  #mt-size-guide .mtg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: 530px; padding: 4px; border-radius: 12px; background: #e5eaf1; }
  #mt-size-guide .mtg-tab { min-height: 50px; border: 0; border-radius: 9px; background: transparent; color: #485b72; font-size: 15px; font-weight: 950; cursor: pointer; }
  #mt-size-guide .mtg-tab span { margin-right: 8px; font-size: 12px; }
  #mt-size-guide .mtg-tab.is-active { color: #fff; background: var(--mtg-ink); box-shadow: 0 8px 25px rgba(7,17,31,.15); }
  #mt-size-guide .mtg-panel { margin-top: 20px; }
  #mt-size-guide .mtg-finder-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 665px; overflow: hidden; border: 1px solid var(--mtg-line); border-radius: var(--mtg-radius); background: #fff; box-shadow: 0 24px 70px rgba(39,57,82,.09); }
  #mt-size-guide .mtg-form { padding: 38px 44px 42px; }
  #mt-size-guide .mtg-step { margin: 0 0 29px; padding: 0; border: 0; }
  #mt-size-guide .mtg-step-label { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
  #mt-size-guide .mtg-step-label > b { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--mtg-blue); font-size: 13px; box-shadow: 0 0 0 5px #eaf2ff; }
  #mt-size-guide .mtg-step-label span { color: var(--mtg-ink); font-size: 17px; font-weight: 950; line-height: 1.25; }
  #mt-size-guide .mtg-step-label small { display: block; margin-top: 2px; color: #65778d; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
  #mt-size-guide .mtg-field { display: grid; gap: 8px; color: #24364c; font-size: 14px; font-weight: 900; }
  #mt-size-guide .mtg-field > span:first-child { display: flex; justify-content: space-between; }
  #mt-size-guide .mtg-field em { color: #62748a; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
  #mt-size-guide select, #mt-size-guide input { width: 100%; min-height: 52px; border: 1px solid #d8e0ea; border-radius: 9px; outline: none; background: #fff; color: var(--mtg-ink); transition: border-color .2s, box-shadow .2s; }
  #mt-size-guide select { padding: 0 42px 0 15px; appearance: auto; font-size: 15px; font-weight: 750; cursor: pointer; }
  #mt-size-guide input { padding: 0 51px 0 15px; font-size: 16px; font-weight: 850; }
  #mt-size-guide select:focus, #mt-size-guide input:focus { border-color: var(--mtg-blue); box-shadow: 0 0 0 4px rgba(47,125,246,.1); }
  #mt-size-guide .mtg-hint { display: block; margin-top: 8px; color: #566a81; font-size: 12px; font-weight: 650; line-height: 1.55; }
  #mt-size-guide .mtg-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  #mt-size-guide .mtg-input-wrap { position: relative; }
  #mt-size-guide .mtg-input-wrap i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #51657c; font-size: 12px; font-style: normal; font-weight: 850; }
  #mt-size-guide .mtg-fit-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
  #mt-size-guide .mtg-fit-options label { position: relative; cursor: pointer; }
  #mt-size-guide .mtg-fit-options input { position: absolute; opacity: 0; pointer-events: none; }
  #mt-size-guide .mtg-fit-options label > span { min-height: 66px; display: grid; place-content: center; text-align: center; border: 1px solid #dbe2eb; border-radius: 9px; background: #fff; transition: .2s; }
  #mt-size-guide .mtg-fit-options b { font-size: 15px; }
  #mt-size-guide .mtg-fit-options small { display: block; margin-top: 2px; color: #62748a; font-size: 9px; font-weight: 800; letter-spacing: .09em; }
  #mt-size-guide .mtg-fit-options input:checked + span { border-color: var(--mtg-blue); color: var(--mtg-blue); background: #f1f6ff; box-shadow: inset 0 0 0 1px var(--mtg-blue); }
  #mt-size-guide .mtg-fit-options input:focus-visible + span { outline: 3px solid rgba(47,125,246,.3); outline-offset: 2px; }
  #mt-size-guide .mtg-form-error { min-height: 20px; margin: -8px 0 7px; color: #d73333; font-size: 12px; font-weight: 700; }
  #mt-size-guide .mtg-calc { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 21px; border: 0; border-radius: 9px; color: #fff; background: var(--mtg-blue); font-size: 16px; font-weight: 950; letter-spacing: .015em; cursor: pointer; transition: background .2s, transform .2s; }
  #mt-size-guide .mtg-calc:hover { background: var(--mtg-blue-dark); transform: translateY(-1px); }

  #mt-size-guide .mtg-result { min-width: 0; display: grid; place-items: center; padding: 44px; color: #fff; background: var(--mtg-ink); position: relative; overflow: hidden; }
  #mt-size-guide .mtg-result::before { content: ""; position: absolute; width: 470px; height: 470px; right: -250px; bottom: -210px; border: 1px solid rgba(47,125,246,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(47,125,246,.04), 0 0 0 140px rgba(47,125,246,.025); }
  #mt-size-guide .mtg-result-empty { position: relative; max-width: 300px; text-align: center; }
  #mt-size-guide .mtg-empty-icon { width: 150px; height: 150px; margin: 0 auto 28px; position: relative; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
  #mt-size-guide .mtg-empty-icon::before, #mt-size-guide .mtg-empty-icon::after { content: ""; position: absolute; background: #35465c; }
  #mt-size-guide .mtg-empty-icon::before { width: 54px; height: 70px; left: 48px; top: 34px; clip-path: polygon(25% 0, 40% 14%, 60% 14%, 75% 0, 100% 19%, 85% 39%, 78% 100%, 22% 100%, 15% 39%, 0 19%); }
  #mt-size-guide .mtg-empty-icon::after { width: 66px; height: 2px; left: 42px; top: 112px; background: var(--mtg-blue); }
  #mt-size-guide .mtg-result-empty p { font-size: 22px; font-weight: 950; letter-spacing: -.02em; }
  /* 防止 WordPress 主題把空白狀態標題改成黑色 */
  #mt-size-guide .mtg-result .mtg-result-empty p,
  #mt-size-guide .mtg-result .mtg-result-empty p * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    opacity: 1 !important;
  }
  #mt-size-guide .mtg-result-empty small { display: block; margin-top: 10px; color: #b4c2d2; font-size: 14px; font-weight: 650; line-height: 1.7; }
  #mt-size-guide .mtg-result-ready { width: 100%; position: relative; }
  #mt-size-guide .mtg-result-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.11); }
  #mt-size-guide .mtg-result-head p { color: #92b9f7; font-size: 11px; letter-spacing: .15em; font-weight: 950; }
  #mt-size-guide .mtg-result-head h3 { margin-top: 5px; font-size: 31px; font-weight: 950; letter-spacing: -.04em; }
  /* 防止 WordPress 主題直接把結果區 h3 改成黑色 */
  #mt-size-guide .mtg-result .mtg-result-head h3,
  #mt-size-guide .mtg-result .mtg-result-head h3 * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    opacity: 1 !important;
  }
  #mt-size-guide .mtg-confidence { padding: 8px 11px; border: 1px solid rgba(32,200,99,.45); border-radius: 99px; color: #bec9d6; font-size: 11px; font-weight: 750; white-space: nowrap; }
  #mt-size-guide .mtg-confidence b { color: #65dc91; }
  #mt-size-guide .mtg-size-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
  #mt-size-guide .mtg-size-card { min-height: 171px; display: grid; align-content: center; justify-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.04); }
  #mt-size-guide .mtg-size-card span { color: #b6c4d4; font-size: 11px; font-weight: 950; letter-spacing: .1em; }
  #mt-size-guide .mtg-size-card strong { color: #fff; font-size: 60px; line-height: 1.1; letter-spacing: -.05em; }
  #mt-size-guide .mtg-size-card small { color: #73e69d; font-size: 12px; font-weight: 850; }
  #mt-size-guide .mtg-size-card.is-hidden { display: none; }
  #mt-size-guide .mtg-size-results.is-single { grid-template-columns: 1fr; }
  #mt-size-guide .mtg-alternatives { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
  #mt-size-guide .mtg-alternatives div { padding: 11px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
  #mt-size-guide .mtg-alternatives div:last-child { border-right: 0; }
  #mt-size-guide .mtg-alternatives span { display: block; color: #aebdce; font-size: 11px; font-weight: 750; }
  #mt-size-guide .mtg-alternatives b { font-size: 17px; }
  #mt-size-guide .mtg-reason { min-height: 58px; margin: 18px 0; padding: 12px 14px; border-left: 3px solid var(--mtg-blue); color: #c3cedb; background: rgba(255,255,255,.045); font-size: 14px; font-weight: 650; line-height: 1.75; }
  #mt-size-guide .mtg-result-actions { display: flex; align-items: center; gap: 18px; }
  #mt-size-guide .mtg-result-actions .mtg-btn { flex: 1; }
  #mt-size-guide .mtg-text-btn { border: 0; color: #c1ccda; background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

  #mt-size-guide .mtg-chart-layout { display: grid; grid-template-columns: 330px 1fr; min-height: 650px; overflow: hidden; border: 1px solid var(--mtg-line); border-radius: var(--mtg-radius); background: #fff; box-shadow: 0 24px 70px rgba(39,57,82,.09); }
  #mt-size-guide .mtg-chart-side { padding: 38px; background: #fff; border-right: 1px solid var(--mtg-line); }
  #mt-size-guide .mtg-chart-side h3 { margin: 8px 0 24px; font-size: 30px; font-weight: 950; line-height: 1.18; letter-spacing: -.04em; }
  #mt-size-guide .mtg-chart-tip { margin: 24px 0; padding: 18px; border-left: 4px solid var(--mtg-blue); border-radius: 10px; color: #43566c; background: #eef4fb; font-size: 14px; font-weight: 650; line-height: 1.75; }
  #mt-size-guide .mtg-chart-tip b { display: block; color: var(--mtg-ink); margin-bottom: 5px; font-size: 16px; font-weight: 950; }
  #mt-size-guide .mtg-chart-side .mtg-btn { width: 100%; }
  #mt-size-guide .mtg-chart-view { min-width: 0; padding: 28px; background: #eef2f7; }
  #mt-size-guide .mtg-chart-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; color: #50637a; font-size: 12px; font-weight: 750; letter-spacing: .05em; }
  #mt-size-guide .mtg-chart-bar div { display: flex; align-items: center; gap: 9px; color: var(--mtg-ink); font-size: 15px; font-weight: 900; letter-spacing: 0; }
  #mt-size-guide .mtg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mtg-green); box-shadow: 0 0 0 5px rgba(32,200,99,.12); }
  #mt-size-guide .mtg-image-stage { position: relative; min-height: 540px; display: grid; place-items: center; overflow: auto; border-radius: 12px; background: #fff; }
  #mt-size-guide .mtg-image-stage img { display: block; max-width: 100%; max-height: 600px; object-fit: contain; position: relative; z-index: 1; }
  #mt-size-guide .mtg-loader { width: 34px; height: 34px; position: absolute; border: 3px solid #dce5ef; border-top-color: var(--mtg-blue); border-radius: 50%; animation: mtg-spin .8s linear infinite; }
  #mt-size-guide .mtg-image-stage.is-loaded .mtg-loader { display: none; }
  #mt-size-guide .mtg-image-error { max-width: 280px; color: #465a70; text-align: center; font-size: 14px; font-weight: 750; }
  @keyframes mtg-spin { to { transform: rotate(360deg); } }

  #mt-size-guide .mtg-measure-section { background: #fff; }
  #mt-size-guide .mtg-video-card { margin-bottom: 24px; overflow: hidden; border: 1px solid var(--mtg-line); border-radius: 16px; background: var(--mtg-ink); box-shadow: 0 20px 55px rgba(7,17,31,.12); }
  #mt-size-guide .mtg-video-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 18px; color: #fff; }
  #mt-size-guide .mtg-video-head > div { display: flex; align-items: center; gap: 12px; }
  #mt-size-guide .mtg-video-head b { display: block; font-size: 17px; font-weight: 950; }
  #mt-size-guide .mtg-video-head small { display: block; margin-top: 2px; color: #b6c3d2; font-size: 13px; font-weight: 650; }
  #mt-size-guide .mtg-video-head > span { color: #9dc0f8; font-size: 11px; font-weight: 950; letter-spacing: .14em; }
  #mt-size-guide .mtg-video-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; padding-left: 2px; border-radius: 50%; color: #fff; background: var(--mtg-blue); font-size: 13px; }
  #mt-size-guide .mtg-video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
  #mt-size-guide .mtg-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; }
  #mt-size-guide .mtg-measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  #mt-size-guide .mtg-measure-grid article { position: relative; min-height: 365px; padding: 27px; overflow: hidden; border: 1px solid var(--mtg-line); border-radius: 16px; background: #f8fafc; }
  #mt-size-guide .mtg-num { color: var(--mtg-blue); font-size: 12px; font-weight: 950; }
  #mt-size-guide .mtg-measure-grid h3 { font-size: 23px; font-weight: 950; margin-bottom: 8px; }
  #mt-size-guide .mtg-measure-grid p { color: #43566c; font-size: 15px; font-weight: 650; line-height: 1.75; }
  #mt-size-guide .mtg-measure-art { height: 178px; position: relative; margin: 4px 0 15px; }
  #mt-size-guide .mtg-measure-art::before { content: ""; position: absolute; width: 112px; height: 132px; left: 50%; top: 22px; transform: translateX(-50%); background: #dce5f0; clip-path: polygon(24% 0,39% 12%,61% 12%,76% 0,100% 18%,86% 39%,80% 100%,20% 100%,14% 39%,0 18%); }
  #mt-size-guide .mtg-measure-art i, #mt-size-guide .mtg-measure-art b { position: absolute; display: block; z-index: 1; }
  #mt-size-guide .mtg-art-flat i { width: 155px; height: 1px; left: 50%; bottom: 17px; transform: translateX(-50%); background: #9cacbf; box-shadow: 0 6px 0 #dce3eb; }
  #mt-size-guide .mtg-art-flat b { width: 9px; height: 9px; left: calc(50% + 43px); top: 50px; border-radius: 50%; background: var(--mtg-green); }
  #mt-size-guide .mtg-art-width i { width: 126px; height: 2px; left: 50%; top: 84px; transform: translateX(-50%); background: var(--mtg-blue); }
  #mt-size-guide .mtg-art-width i::before, #mt-size-guide .mtg-art-width i::after { content: ""; position: absolute; top: -4px; border: 5px solid transparent; }
  #mt-size-guide .mtg-art-width i::before { left: -5px; border-right-color: var(--mtg-blue); }
  #mt-size-guide .mtg-art-width i::after { right: -5px; border-left-color: var(--mtg-blue); }
  #mt-size-guide .mtg-art-width b { width: 48px; height: 18px; left: 50%; top: 59px; transform: translateX(-50%); color: var(--mtg-blue); font-size: 10px; text-align: center; }
  #mt-size-guide .mtg-art-length i { width: 2px; height: 132px; left: calc(50% + 73px); top: 22px; background: var(--mtg-blue); }
  #mt-size-guide .mtg-art-length i::before, #mt-size-guide .mtg-art-length i::after { content: ""; position: absolute; left: -4px; border: 5px solid transparent; }
  #mt-size-guide .mtg-art-length i::before { top: -5px; border-bottom-color: var(--mtg-blue); }
  #mt-size-guide .mtg-art-length i::after { bottom: -5px; border-top-color: var(--mtg-blue); }

  #mt-size-guide .mtg-notice-section { padding-top: 62px; }
  #mt-size-guide .mtg-notice-card { padding: 35px 38px; border: 1px solid #d9e3ee; border-left: 5px solid var(--mtg-blue); border-radius: 14px; background: #fff; }
  #mt-size-guide .mtg-notice-title { display: flex; align-items: center; gap: 15px; }
  #mt-size-guide .mtg-notice-title > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: #fff; background: var(--mtg-blue); font-size: 20px; font-weight: 950; }
  #mt-size-guide .mtg-notice-title p { color: #52667d; font-size: 11px; letter-spacing: .16em; font-weight: 950; }
  #mt-size-guide .mtg-notice-title h2 { font-size: 29px; font-weight: 950; letter-spacing: -.03em; }
  #mt-size-guide .mtg-notice-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 28px 0 22px; }
  #mt-size-guide .mtg-notice-points > div { display: flex; align-items: center; gap: 13px; padding: 17px; border-radius: 10px; background: #f3f6fa; }
  #mt-size-guide .mtg-notice-points b { min-width: 47px; color: var(--mtg-blue); font-size: 20px; }
  #mt-size-guide .mtg-notice-points span { color: #52657b; font-size: 13px; font-weight: 650; line-height: 1.55; }
  #mt-size-guide .mtg-notice-points strong { display: block; color: var(--mtg-ink); font-size: 15px; font-weight: 950; }
  #mt-size-guide details { border-top: 1px solid var(--mtg-line); }
  #mt-size-guide summary { display: flex; justify-content: space-between; padding: 20px 0 0; cursor: pointer; list-style: none; color: var(--mtg-ink); font-size: 15px; font-weight: 950; }
  #mt-size-guide summary::-webkit-details-marker { display: none; }
  #mt-size-guide details[open] summary span { transform: rotate(45deg); }
  #mt-size-guide details ul { margin: 18px 0 0; padding: 20px 20px 8px 38px; border-radius: 9px; color: #40536a; background: #f4f7fb; font-size: 14px; font-weight: 600; line-height: 1.85; }
  #mt-size-guide details li + li { margin-top: 6px; }

  #mt-size-guide .mtg-cta-section { padding: 75px 0; color: #fff; background: var(--mtg-ink); }
  #mt-size-guide .mtg-cta-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 70px; }
  #mt-size-guide .mtg-cta-section h2 { margin-top: 10px; font-size: clamp(32px, 4vw, 50px); font-weight: 950; line-height: 1.1; letter-spacing: -.045em; }
  #mt-size-guide .mtg-cta-actions { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 340px; }
  #mt-size-guide .mtg-btn-line { color: #fff !important; background: var(--mtg-green); }
  #mt-size-guide .mtg-btn-line:hover { background: #17b557; }
  #mt-size-guide .mtg-cta-actions small { grid-column: 1 / -1; margin-top: 7px; color: #b7c3d1; font-size: 13px; font-weight: 650; text-align: right; }

  /* 防止 WordPress 主題覆蓋 CTA 文字顏色 */
  #mt-size-guide .mtg-cta-section h2,
  #mt-size-guide .mtg-cta-section h2 * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  #mt-size-guide .mtg-cta-section .mtg-eyebrow {
    color: #2f7df6 !important;
    -webkit-text-fill-color: #2f7df6 !important;
  }
  #mt-size-guide .mtg-cta-section .mtg-cta-note {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
  }

  #mt-size-guide .mtg-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 30px; background: rgba(2,8,16,.92); backdrop-filter: blur(8px); }
  #mt-size-guide .mtg-modal[hidden] { display: none; }
  #mt-size-guide .mtg-modal-body { max-width: min(1100px, 95vw); max-height: 90vh; overflow: auto; padding: 18px; border-radius: 14px; background: #fff; }
  #mt-size-guide .mtg-modal-body h2 { margin: 0 0 12px; font-size: 18px; }
  #mt-size-guide .mtg-modal-body img { display: block; max-width: 100%; height: auto; }
  #mt-size-guide .mtg-modal-close { position: fixed; right: 25px; top: 19px; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: transparent; font-size: 29px; cursor: pointer; }

  #mt-size-guide :focus-visible { outline: 3px solid #ffc247; outline-offset: 3px; }

  @media (max-width: 900px) {
    #mt-size-guide .mtg-finder-grid { grid-template-columns: 1fr; }
    #mt-size-guide .mtg-result { min-height: 610px; }
    #mt-size-guide .mtg-chart-layout { grid-template-columns: 1fr; }
    #mt-size-guide .mtg-chart-side { border-right: 0; border-bottom: 1px solid var(--mtg-line); }
    #mt-size-guide .mtg-measure-grid { grid-template-columns: 1fr; }
    #mt-size-guide .mtg-measure-grid article { min-height: 285px; display: grid; grid-template-columns: 190px 1fr; grid-template-rows: auto auto 1fr; column-gap: 15px; }
    #mt-size-guide .mtg-measure-grid .mtg-num { grid-column: 1 / -1; }
    #mt-size-guide .mtg-measure-art { grid-row: 2 / 4; height: 210px; }
    #mt-size-guide .mtg-measure-grid h3 { align-self: end; }
    #mt-size-guide .mtg-notice-points { grid-template-columns: 1fr; }
    #mt-size-guide .mtg-cta-grid { grid-template-columns: 1fr; gap: 35px; }
    #mt-size-guide .mtg-cta-actions { min-width: 0; }
  }

  @media (max-width: 620px) {
    #mt-size-guide .mtg-wrap { width: min(100% - 30px, 560px); }
    #mt-size-guide .mtg-section { padding: 68px 0; }
    #mt-size-guide .mtg-section-head { display: grid; gap: 18px; }
    #mt-size-guide .mtg-section-head > p { padding: 12px 14px; border-left-width: 4px; border-radius: 0 8px 8px 0; background: #eaf2ff; font-size: 15px; line-height: 1.65; }
    #mt-size-guide .mtg-tabs { max-width: none; }
    #mt-size-guide .mtg-tab { font-size: 13px; }
    #mt-size-guide .mtg-finder-grid { min-height: 0; }
    #mt-size-guide .mtg-form, #mt-size-guide .mtg-result { padding: 27px 20px; }
    #mt-size-guide .mtg-result { min-height: 560px; }
    #mt-size-guide .mtg-fields-2 { grid-template-columns: 1fr; }
    #mt-size-guide .mtg-step-label span { font-size: 16px; }
    #mt-size-guide .mtg-result-head { display: grid; gap: 12px; }
    #mt-size-guide .mtg-result-head h3 { font-size: 29px; white-space: nowrap; }
    #mt-size-guide .mtg-confidence { justify-self: start; }
    #mt-size-guide .mtg-fit-options label > span { min-height: 62px; }
    #mt-size-guide .mtg-size-card { min-height: 145px; }
    #mt-size-guide .mtg-size-card strong { font-size: 47px; }
    #mt-size-guide .mtg-result-actions { align-items: stretch; flex-direction: column; }
    #mt-size-guide .mtg-chart-side, #mt-size-guide .mtg-chart-view { padding: 22px 18px; }
    #mt-size-guide .mtg-image-stage { min-height: 400px; }
    #mt-size-guide .mtg-measure-section .mtg-section-head .mtg-btn { width: 100%; }
    #mt-size-guide .mtg-video-head { min-height: 66px; padding: 11px 13px; }
    #mt-size-guide .mtg-video-head > span { display: none; }
    #mt-size-guide .mtg-measure-grid article { display: block; min-height: 365px; }
    #mt-size-guide .mtg-measure-art { height: 185px; }
    #mt-size-guide .mtg-notice-card { padding: 26px 20px; }
    #mt-size-guide .mtg-notice-points > div { padding: 14px; }
    #mt-size-guide .mtg-cta-actions { grid-template-columns: 1fr; }
    #mt-size-guide .mtg-cta-actions small { grid-column: 1; text-align: left; }
    #mt-size-guide .mtg-modal { padding: 15px; }
    #mt-size-guide .mtg-modal-close { right: 11px; top: 10px; }
  }

  @media (prefers-reduced-motion: reduce) {
    #mt-size-guide *, #mt-size-guide *::before, #mt-size-guide *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  }

  /*
   * MTG POST 165 FULL-WIDTH FIX
   * 只修正香港站「尺寸參考」文章，不影響其他文章或產品頁。
   */
  body.single-post.postid-165 .two_columns_25_75 > .column1 {
    display: none !important;
  }

  body.single-post.postid-165 .two_columns_25_75 > .column2 {
    width: 100% !important;
    float: none !important;
  }

  body.single-post.postid-165 .two_columns_25_75 > .column2 > .column_inner {
    padding-left: 0 !important;
  }

  @media (min-width: 1200px) {
    body.single-post.postid-165 .container_inner.default_template_holder {
      width: 100% !important;
      max-width: 1200px !important;
      padding-right: 0 !important;
      box-sizing: border-box !important;
    }

    body.single-post.postid-165 .two_columns_25_75 {
      width: 100% !important;
    }
  }
</style>

<script>
(function () {
  "use strict";

  var root = document.getElementById("mt-size-guide");
  if (!root || root.dataset.ready === "true") return;
  root.dataset.ready = "true";

  var products = [
    { id: "basketball-new", name: "籃球服（新版）", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/籃球服新）.jpg" },
    { id: "basketball-old", name: "籃球服（舊版）", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/籃球服（舊）.jpg" },
    { id: "football", name: "足球服", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/足球服.jpg" },
    { id: "football-alt", name: "雙面足球服", type: "set", img: "https://mtsportswear.com.tw/wp-content/uploads/2025/08/WhatsApp-Image-2025-08-28-at-12.01.21.jpeg" },
    { id: "volleyball-f", name: "排球服（女）", type: "set", offset: -1, img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/排球服女.jpg" },
    { id: "volleyball-m", name: "排球服（男）", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/09/排球服（男）.jpg" },
    { id: "athletics", name: "田徑服", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/田徑服.jpg" },
    { id: "handball", name: "手球服", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/09/手閃服.jpg" },
    { id: "dodgeball", name: "閃避球服", type: "set", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/09/手閃服.jpg" },
    { id: "touch-rugby", name: "Touch Rugby", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/TOUCH-RUGBY-VEST-TOP.jpg" },
    { id: "tee-polo", name: "TEE／POLO", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/09/熱昇華.jpg" },
    { id: "shorts", name: "中褲", type: "bottom", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/中褲.jpg" },
    { id: "skirt-shorts", name: "褲裙", type: "bottom", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/褲裙.jpg" },
    { id: "jacket", name: "風褸", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/風衣長褲.jpg" },
    { id: "badminton", name: "羽毛球服", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/09/羽毛球服.jpg" },
    { id: "table-tennis", name: "乒乓球服", type: "top", img: "https://mtsportswear.com.tw/wp-content/uploads/2025/08/WhatsApp-Image-2025-08-26-at-20.46.30-1.jpeg" },
    { id: "oversized-tee", name: "潮流寬身 TEE", type: "top", offset: -1, img: "https://mtsportswear.com.tw/wp-content/uploads/2025/08/WhatsApp-Image-2025-08-29-at-15.01.01.jpeg" },
    { id: "dragonboat-a", name: "半拉鏈熱身服", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/半拉鏈熱身服.jpg" },
    { id: "dragonboat-b", name: "龍舟服", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/龍舟服.jpg" },
    { id: "baseball-a", name: "闊身棒球衣", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/09/寬身棒球衣.jpg" },
    { id: "baseball-training", name: "棒球訓練衣", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/棒球訓練衣.jpg" },
    { id: "baseball-b", name: "棒球衣", type: "top", img: "https://mtsportswear.com.hk/wp-content/uploads/2026/08/棒球衣.jpg" }
  ];

  var sizes = ["2XS", "XS", "S", "M", "L", "XL", "2XL", "3XL", "4XL", "5XL"];
  var productSelect = root.querySelector("#mtg-product");
  var chartSelect = root.querySelector("#mtg-chart-product");
  var form = root.querySelector("#mtg-size-form");
  var chartImage = root.querySelector("#mtg-chart-image");
  var imageStage = root.querySelector(".mtg-image-stage");
  var chartTitle = root.querySelector("#mtg-chart-title");
  var imageError = root.querySelector(".mtg-image-error");
  var modal = root.querySelector("#mtg-modal");
  var lastFocus = null;

  function addOptions(select) {
    products.forEach(function (product) {
      var option = document.createElement("option");
      option.value = product.id;
      option.textContent = product.name;
      select.appendChild(option);
    });
  }

  function getProduct(id) {
    return products.find(function (product) { return product.id === id; }) || products[0];
  }

  function clamp(number, min, max) {
    return Math.max(min, Math.min(max, number));
  }

  function heightIndex(height) {
    var limits = [145, 155, 163, 170, 177, 184, 191, 198, 205];
    for (var i = 0; i < limits.length; i++) if (height < limits[i]) return i;
    return 9;
  }

  function weightIndex(weight) {
    var limits = [40, 48, 56, 65, 75, 86, 98, 112, 128];
    for (var i = 0; i < limits.length; i++) if (weight < limits[i]) return i;
    return 9;
  }

  function setActiveTab(name) {
    root.querySelectorAll(".mtg-tab").forEach(function (tab) {
      var active = tab.dataset.tab === name;
      tab.classList.toggle("is-active", active);
      tab.setAttribute("aria-selected", active ? "true" : "false");
    });
    root.querySelectorAll(".mtg-panel").forEach(function (panel) {
      var active = panel.id === "mtg-panel-" + name;
      panel.classList.toggle("is-active", active);
      panel.hidden = !active;
    });
  }

  function updateChart(productId) {
    var product = getProduct(productId);
    chartSelect.value = product.id;
    productSelect.value = product.id;
    chartTitle.textContent = product.name;
    chartImage.alt = product.name + "官方尺寸表";
    imageStage.classList.remove("is-loaded");
    imageError.hidden = true;
    chartImage.hidden = false;
    chartImage.src = product.img;
  }

  function sizeAt(index) {
    return sizes[clamp(index, 0, sizes.length - 1)];
  }

  function showResult(top, bottom, main, confidence, reason, type) {
    root.querySelector(".mtg-result-empty").hidden = true;
    root.querySelector(".mtg-result-ready").hidden = false;
    root.querySelector("#mtg-top-size").textContent = top;
    root.querySelector("#mtg-bottom-size").textContent = bottom;
    root.querySelector("#mtg-main-size").textContent = sizeAt(main);
    root.querySelector("#mtg-tight-size").textContent = sizeAt(main - 1);
    root.querySelector("#mtg-loose-size").textContent = sizeAt(main + 1);
    root.querySelector("#mtg-confidence").textContent = confidence + "%";
    root.querySelector("#mtg-reason").textContent = reason;

    var topCard = root.querySelector(".mtg-top-result");
    var bottomCard = root.querySelector(".mtg-bottom-result");
    var resultGrid = root.querySelector(".mtg-size-results");
    topCard.classList.toggle("is-hidden", type === "bottom");
    bottomCard.classList.toggle("is-hidden", type === "top");
    resultGrid.classList.toggle("is-single", type !== "set");
  }

  addOptions(productSelect);
  addOptions(chartSelect);
  updateChart(products[0].id);

  root.querySelectorAll(".mtg-tab").forEach(function (tab) {
    tab.addEventListener("click", function () { setActiveTab(tab.dataset.tab); });
  });

  form.addEventListener("submit", function (event) {
    event.preventDefault();
    var height = Number(root.querySelector("#mtg-height").value);
    var weight = Number(root.querySelector("#mtg-weight").value);
    var error = root.querySelector("#mtg-form-error");

    if (!height || height < 110 || height > 220 || !weight || weight < 25 || weight > 200) {
      error.textContent = "請輸入有效身高（110–220 cm）及體重（25–200 kg）。";
      return;
    }
    error.textContent = "";

    var product = getProduct(productSelect.value);
    var fit = root.querySelector('input[name="mtg-fit"]:checked').value;
    var fitOffset = fit === "tight" ? -1 : fit === "loose" ? 1 : 0;
    var h = heightIndex(height);
    var w = weightIndex(weight);
    var productOffset = product.offset || 0;
    var topIndex = clamp(Math.round(h * .55 + w * .45) + fitOffset + productOffset, 0, 9);
    var bottomIndex = clamp(Math.round(h * .25 + w * .75) + fitOffset + productOffset, 0, 9);
    var mainIndex = product.type === "bottom" ? bottomIndex : topIndex;
    var gap = Math.abs(h - w);
    var confidence = gap <= 1 ? 92 : gap === 2 ? 83 : gap === 3 ? 75 : 68;
    var fitText = fit === "tight" ? "貼身" : fit === "loose" ? "寬鬆" : "舒適";
    var proportionText = gap <= 1
      ? "身高與體重落點接近，建議結果較穩定。"
      : "身高與體重落點有差距，請特別核對胸闊、衣長及腰圍。";
    var reason = "按 " + height + " cm、" + weight + " kg 及「" + fitText + "」偏好推算。" + proportionText;

    showResult(sizeAt(topIndex), sizeAt(bottomIndex), mainIndex, confidence, reason, product.type);
    updateChart(product.id);

    if (window.matchMedia("(max-width: 900px)").matches) {
      root.querySelector("#mtg-result").scrollIntoView({ behavior: "smooth", block: "start" });
    }
  });

  productSelect.addEventListener("change", function () {
    updateChart(productSelect.value);
  });

  chartSelect.addEventListener("change", function () {
    updateChart(chartSelect.value);
  });

  chartImage.addEventListener("load", function () {
    imageStage.classList.add("is-loaded");
    imageError.hidden = true;
  });

  chartImage.addEventListener("error", function () {
    imageStage.classList.add("is-loaded");
    chartImage.hidden = true;
    imageError.hidden = false;
  });

  root.querySelector("#mtg-view-chart").addEventListener("click", function () {
    setActiveTab("chart");
    root.querySelector("#mtg-tool").scrollIntoView({ behavior: "smooth", block: "start" });
  });

  root.querySelector("#mtg-reset").addEventListener("click", function () {
    form.reset();
    root.querySelector(".mtg-result-empty").hidden = false;
    root.querySelector(".mtg-result-ready").hidden = true;
    root.querySelector("#mtg-form-error").textContent = "";
    root.querySelector("#mtg-height").focus();
  });

  function openModal() {
    if (chartImage.hidden || !chartImage.src) return;
    lastFocus = document.activeElement;
    root.querySelector("#mtg-modal-title").textContent = chartTitle.textContent + "｜官方尺寸表";
    root.querySelector("#mtg-modal-image").src = chartImage.src;
    root.querySelector("#mtg-modal-image").alt = chartImage.alt;
    modal.hidden = false;
    document.documentElement.style.overflow = "hidden";
    root.querySelector("#mtg-modal-close").focus();
  }

  function closeModal() {
    modal.hidden = true;
    document.documentElement.style.overflow = "";
    if (lastFocus) lastFocus.focus();
  }

  root.querySelector("#mtg-zoom-chart").addEventListener("click", openModal);
  chartImage.addEventListener("click", openModal);
  chartImage.style.cursor = "zoom-in";
  root.querySelector("#mtg-modal-close").addEventListener("click", closeModal);
  modal.addEventListener("click", function (event) {
    if (event.target === modal) closeModal();
  });
  document.addEventListener("keydown", function (event) {
    if (event.key === "Escape" && !modal.hidden) closeModal();
  });

  root.querySelectorAll('a[href^="#mtg-"]').forEach(function (anchor) {
    anchor.addEventListener("click", function (event) {
      var target = root.querySelector(anchor.getAttribute("href"));
      if (target) {
        event.preventDefault();
        target.scrollIntoView({ behavior: "smooth", block: "start" });
      }
    });
  });
})();
</script>

		</div>
	</div>
</div></div></div></div></div>
</section><p>這篇文章 <a rel="nofollow" href="https://mtsportswear.com.hk/2019/07/22/%e5%b0%ba%e5%af%b8%e5%8f%83%e8%80%83/">尺寸參考</a> 最早出現於 <a rel="nofollow" href="https://mtsportswear.com.hk">MTSportswear一站式解決運動員服飾訂製難題-波衫定製| 訂波衫| 籃球服|足球服| 排球服</a>。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
