/* =====================================================================
   NTPC Youth Site — 前台正式樣式（0-dependency；Strict CSP 相容：零 inline）
   設計基準：docs/mockup/assets/mockup.css（2026-11-04 核可）——class 前綴
   與 Mockup 一致（mk-）以確保 1:1 對照移植；結構規則＝Wireframe rev.2~11。
   攝影缺檔之佔位視覺（mk-ph 系）於正式資產到位後仍保留為載入失敗 fallback。
   ===================================================================== */

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

:root {
  --mk-gold: #f2c230;
  --mk-gold-deep: #d9a406;
  --mk-gold-soft: #fdf3d0;
  --mk-btn-gold-top: #ffd75e;
  --mk-navy: #173a54;
  --mk-ink: #2e3f4b;
  --mk-blue: #2266a8;
  --mk-title-color: #2f8fbc;
  --mk-h2-color: #1f6fb2;
  --mk-nav-color: #3c5260;
  --mk-teal: #178f89;
  --mk-teal-bright: #23b3ab;
  --mk-teal-dark: #106b66;
  --mk-ext-vote: #009ab8;
  --mk-ext-vote-hover: #0086a0;
  --mk-header: #e3f0f5;
  --mk-header-border: #cfe0e8;
  --mk-theme-bg-color: #d9ecf2;
  --mk-line: #cfdde4;
  --mk-soft: #f6fafb;
  --mk-red: #c0392b;
  --mk-pad: 32px;
}
@media (max-width: 640px) { :root { --mk-pad: 16px; } }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.4) rgba(0, 0, 0, 0.04);
}

/* ═════ 全站自訂美化滾動條（透明灰底 ＋ 精緻圓角滑塊） ═════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
}
body {
  font-family: Arial, "Microsoft JhengHei", sans-serif;
  color: var(--mk-ink); background: #fff; font-size: 18px; line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main#content {
  flex: 1 0 auto;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mk-blue); }
:focus-visible { outline: 3px solid var(--mk-teal); outline-offset: 2px; }

/* ---------- 無障礙工具列 / 存取列 ---------- */
.mk-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 13px;
  line-height: 1.4;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  padding: 0;
  margin: 0;
  flex: 0 0 26px;
  box-sizing: border-box;
}
.mk-header__top .mk-accessbar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  height: 26px;
  line-height: 1;
}
.mk-header__top .mk-accessbar span { color: #475569; font-weight: 700; }
.mk-header__top .mk-accessbar a { color: #334155; text-decoration: none; font-weight: 500; }
.mk-header__top .mk-accessbar a:hover { color: var(--mk-navy); text-decoration: underline; }
.mk-header__top-right {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  height: 26px;
}

/* ---------- Header（內頁／首頁兩形態） ---------- */
.mk-header--inner,
.mk-header--home {
  height: 130px;
  min-height: 130px;
  padding: 6px var(--mk-pad) 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

/* 內頁 Header：採用淺青水藍紙質紋理背景圖（優先採用動態主題底圖，回落為純相對路徑） */
.mk-header--inner {
  background: var(--mk-theme-bg, url('../media/theme/2026/bg.jpg')) repeat var(--mk-theme-bg-color, #d9ecf2);
  border-bottom: 1px solid var(--mk-header-border, #cfe0e8);
}

/* 首頁 Header：背景透明，使首頁全頁背景圖自頂部壓過 Header 滿版貫穿 */
.mk-header--home {
  background: transparent;
  border-bottom: none;
}

/* ---------- 全頁背景佈局（首頁全頁紋理背景 vs 內頁白底內容） ---------- */
/* 首頁：全頁背景（滿版淺青水藍紙質紋理背景圖，壓過 Header、Main 與 Footer） */
body.mk-page--home {
  background: var(--mk-theme-bg, url('../media/theme/2026/bg.jpg')) repeat var(--mk-theme-bg-color, #d9ecf2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.mk-page--home main#content {
  background: transparent;
  flex: 1 0 auto;
}
body.mk-page--home .mk-footer {
  background: transparent;
  border-top: 1px solid rgba(207, 221, 228, 0.5);
  margin-top: auto;
}

/* 內頁：Header 採用同一張紋理圖，但 Header 下方內容與 Footer 皆為純白底 */
body.mk-page--inner {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.mk-page--inner main#content,
body.mk-page--inner .mk-title,
body.mk-page--inner .mk-main {
  background: #ffffff;
  flex: 1 0 auto;
}
body.mk-page--inner .mk-footer {
  background: #ffffff;
  border-top: 1px solid var(--mk-line);
  margin-top: auto;
}

.mk-header__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  position: relative;
}
.mk-header__main nav {
  display: contents;
}

.mk-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: auto 0;
  text-decoration: none;
  flex-shrink: 0;
}
.mk-logo__img {
  max-width: 180px;
  width: auto;
  height: 46px;
  display: block;
  object-fit: contain;
}

/* 首頁 Header：左上 Logo 預設隱藏，由 env / body.show-home-logo 類別控制 */
.mk-header--home .mk-logo {
  display: none;
}
body.show-home-logo .mk-header--home .mk-logo {
  display: inline-flex;
}

.mk-nav {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  align-self: flex-end;
  margin: 0 0 0 auto;
  padding: 0 0 8px;
  font-weight: 700;
}
.mk-nav > li {
  display: flex;
  align-items: center;
  font-size: 16.5px;
  font-weight: 700;
  position: relative;
  padding: 0;
}
.mk-nav > li + li::before { display: none; }
.mk-nav__divider {
  color: #7a9ba8;
  margin: 0 2px;
  font-weight: 300;
  user-select: none;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  align-self: center;
}
.mk-nav > li > a,
.mk-nav > li > span,
.mk-nav > li > form {
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-weight: 700;
}
.mk-nav > li.has-dropdown > a::after {
  display: none !important;
  content: none;
}
.mk-nav a,
.mk-nav a.here,
.mk-nav a.is-active {
  color: var(--mk-nav-color, #3c5260);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 5px;
  white-space: nowrap;
  font-weight: 700;
}
.mk-nav a:hover,
.mk-nav a.here:hover,
.mk-nav a.is-active:hover,
.mk-nav a:focus-visible { color: var(--mk-teal); }

/* ---- 頂層導覽項目容器 ---- */
.mk-nav__item {
  position: relative;
}

/* 廣域透明防護橋 (Hover Hitbox & Bridge)：掛在父級 item 上，徹底避免被 .mk-dropdown 之 overflow-y: auto 裁切 */
.mk-nav__item.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -25px;
  right: -25px;
  height: 30px;
  background: transparent;
  pointer-events: none;
  z-index: 999;
}
.mk-nav__item.has-dropdown:hover::after,
.mk-nav__item.has-dropdown.is-open::after {
  pointer-events: auto;
}

/* ---- 二級下拉選單卡片 (Dropitem) ---- */
.mk-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 140px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s ease;
}

/* 懸停、.is-open 與 :focus-within 展開平滑動畫 (transform translateY) */
.mk-nav__item:hover .mk-dropdown,
.mk-nav__item.is-open .mk-dropdown,
.mk-nav__item:focus-within .mk-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 靠右項目防止超出螢幕右緣 */
.mk-nav > li:nth-last-child(-n+3) > .mk-dropdown {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(0);
}
.mk-nav > li:nth-last-child(-n+3):hover > .mk-dropdown,
.mk-nav > li:nth-last-child(-n+3).is-open > .mk-dropdown,
.mk-nav > li:nth-last-child(-n+3):focus-within > .mk-dropdown {
  transform: translateX(0) translateY(0);
}

/* 歷屆作品多項目長度適配與捲軸美化 */
.mk-dropdown::-webkit-scrollbar {
  width: 5px;
}
.mk-dropdown::-webkit-scrollbar-track {
  background: #f8fafc;
}
.mk-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.mk-dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 子選單項目樣式：靠左、padding: 8px 18px、hover: #f2f6f9 */
.mk-dropdown li {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
}
.mk-dropdown a {
  display: block;
  width: 100%;
  padding: 8px 18px;
  text-align: left;
  color: var(--mk-nav-color, #3c5260);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}
.mk-dropdown a.here {
  color: var(--mk-navy);
  font-weight: 700;
  background: #f8fafc;
}
.mk-dropdown a:hover,
.mk-dropdown a.here:hover {
  background: #f2f6f9;
  color: var(--mk-teal);
}
.mk-cam {
  display: inline-block;
  width: 20px;
  height: 18px;
  background: var(--mk-list-icon, url("images/list_icon.png")) no-repeat center center;
  background-size: contain;
  border: none;
  border-radius: 0;
  position: relative;
  top: -1px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.mk-cam::after {
  display: none;
}

/* 登出投票身分 */
.mk-logout-form { display: inline-flex; align-items: center; margin: 0; height: 26px; }
.mk-logout-form[hidden], #mmenuLogoutItem[hidden] { display: none !important; }
.mk-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.6px solid var(--mk-red);
  color: var(--mk-red);
  background: #fff;
  height: 22px;
  box-sizing: border-box;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.mk-logout::before { content: "⏻"; font-size: 12px; }
.mk-logout:hover { background: #fff5f5; }
body.mk-mobile .mk-accessbar .mk-logout,
body.mk-mobile .mk-accessbar .mk-logout-form {
  display: none;
}

/* 手機漢堡＋直式選單（640px 斷點） */
.mk-hamburger { display: none; justify-content: flex-end; padding: 4px 0 10px; cursor: pointer; }
.mk-hamburger .box {
  width: 44px;
  height: 38px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #ccd8e0;
  border-radius: 6px;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  transform: scale(1.08);
  transform-origin: center right;
}
.mk-hamburger:hover .box,
.mk-hamburger[aria-expanded="true"] .box {
  background: rgba(255, 255, 255, 0.9);
  border-color: #a8bcc8;
}
.mk-hamburger .box i {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 3px;
  border-radius: 2px;
  background: #222;
}
.mk-hamburger .box i:nth-child(1) { top: 8px; }
.mk-hamburger .box i:nth-child(2) { top: 16px; }
.mk-hamburger .box i:nth-child(3) { top: 24px; }
.mk-mmenu {
  list-style: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 120;
  background: #fff; border-bottom: 1px solid var(--mk-line);
  box-shadow: 0 10px 18px rgba(23,58,84,.18); max-height: 70vh; overflow-y: auto;
  margin: 0; padding: 0;
  font-weight: 700;
}
.mk-mmenu[hidden] { display: none; }
.mk-mmenu__item {
  border-bottom: 1px solid #e8f0f4;
  font-size: 18px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mk-mmenu__item > a {
  display: block;
  padding: 12px 16px;
  color: #1a2a35;
  font-weight: 700;
  text-decoration: none;
}
.mk-mmenu__item > a:hover,
.mk-mmenu__item > a.here {
  color: var(--mk-teal);
  font-weight: 700;
}
.mk-mmenu__details {
  width: 100%;
}
.mk-mmenu__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #1a2a35;
  padding: 12px 16px;
  user-select: none;
}
.mk-mmenu__summary::-webkit-details-marker {
  display: none;
}
.mk-mmenu__arrow {
  font-size: 14px;
  color: #7a9ba8;
  transition: transform 0.2s ease;
}
.mk-mmenu__details[open] .mk-mmenu__arrow {
  transform: rotate(180deg);
}
.mk-mmenu__sub {
  list-style: none;
  padding: 4px 0 8px 18px;
  margin: 0;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
.mk-mmenu__sub li {
  padding: 8px 16px;
  border-bottom: none;
  font-size: 18px;
  font-weight: 700;
}
.mk-mmenu__sub a {
  color: #4b6371;
  font-weight: 700;
  text-decoration: none;
  display: block;
}
.mk-mmenu__sub a:hover,
.mk-mmenu__sub a.here {
  color: var(--mk-teal);
  font-weight: 700;
}
.mk-mmenu__sub .mk-mmenu__sub-main {
  font-size: 13.5px;
  color: #7a9ba8;
}
@media (max-width: 640px) {
  .mk-header--home .mk-logo,
  .mk-header--inner .mk-logo {
    display: inline-flex !important;
  }
  .mk-header--inner,
  .mk-header--home {
    height: auto;
    min-height: auto;
    padding: 8px var(--mk-pad) 12px;
    display: flex;
    flex-direction: column;
  }
  .mk-header__top {
    padding: 2px 0 8px;
  }
  .mk-header__top-right .mk-logout,
  .mk-header__top-right .mk-logout-form {
    display: none;
  }
  .mk-header__main {
    padding: 10px 0 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .mk-logo {
    align-self: center;
    margin: auto 0;
  }
  .mk-nav { display: none; }
  .mk-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: auto 0;
    margin-left: auto;
    padding: 0;
    cursor: pointer;
  }
  .mk-logo__img {
    max-width: 140px;
    max-height: 44px;
  }
}
body.mk-mobile .mk-header--home .mk-logo,
body.mk-mobile .mk-header--inner .mk-logo {
  display: inline-flex !important;
}
body.mk-mobile .mk-header--inner,
body.mk-mobile .mk-header--home {
  height: auto;
  min-height: auto;
  padding: 8px var(--mk-pad) 12px;
  display: flex;
  flex-direction: column;
}
body.mk-mobile .mk-header__top {
  padding: 2px 0 8px;
}
body.mk-mobile .mk-header__top-right .mk-logout,
body.mk-mobile .mk-header__top-right .mk-logout-form {
  display: none;
}
body.mk-mobile .mk-header__main {
  padding: 10px 0 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
body.mk-mobile .mk-logo {
  align-self: center;
  margin: auto 0;
}
body.mk-mobile .mk-nav { display: none; }
body.mk-mobile .mk-hamburger {
  display: flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: auto 0;
  margin-left: auto;
  padding: 0;
  cursor: pointer;
}

/* 平板模式 (641px～1024px)：導覽選單 100% 滿寬自適應、單行不斷行 */
@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --mk-pad: 10px;
    --mk-nav-size: 15px;
    --mk-nav-pad: 2px;
  }
  .mk-header--inner,
  .mk-header--home {
    height: auto;
    min-height: auto;
    padding: 10px var(--mk-pad) 12px;
    display: flex;
    flex-direction: column;
  }
  .mk-header__top {
    padding: 2px 0 8px;
  }
  .mk-header__main {
    flex-direction: column;
    align-items: flex-start;
  }
  .mk-logo {
    align-self: flex-start;
    margin: 10px 0 14px;
  }
  .mk-logo__img {
    max-width: 160px;
    max-height: 52px;
    height: auto;
  }
  .mk-nav {
    width: 100%;
    align-self: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 0 6px;
  }
  .mk-nav > li {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    font-size: var(--mk-nav-size, 15px);
  }
  .mk-nav > li > a,
  .mk-nav > li > span {
    padding: 0 var(--mk-nav-pad, 2px);
    font-size: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0;
    font-weight: 700;
  }
  .mk-nav .mk-cam {
    width: 15px;
    height: 13px;
    background: var(--mk-list-icon, url("images/list_icon.png")) no-repeat center center;
    background-size: contain;
    border: none;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
  }
  .mk-nav > li + li::before {
    display: none;
  }
  .mk-nav__divider {
    font-size: 11px;
    margin: 0 1px;
    opacity: 0.65;
    flex-shrink: 0;
  }
}
body.mk-pad {
  --mk-pad: 10px;
  --mk-nav-size: 15px;
  --mk-nav-pad: 2px;
}
body.mk-pad .mk-header--inner,
body.mk-pad .mk-header--home {
  height: auto;
  min-height: auto;
  padding: 10px var(--mk-pad) 12px;
  display: flex;
  flex-direction: column;
}
body.mk-pad .mk-header__top {
  padding: 2px 0 8px;
}
body.mk-pad .mk-header__main {
  flex-direction: column;
  align-items: flex-start;
}
body.mk-pad .mk-logo {
  align-self: flex-start;
  margin: 10px 0 14px;
}
body.mk-pad .mk-logo__img {
  max-width: 160px;
  max-height: 52px;
  height: auto;
}
body.mk-pad .mk-nav {
  width: 100%;
  align-self: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0 0 6px;
}
body.mk-pad .mk-nav > li {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  font-size: var(--mk-nav-size, 15px);
}
body.mk-pad .mk-nav > li > a,
body.mk-pad .mk-nav > li > span {
  padding: 0 var(--mk-nav-pad, 2px);
  font-size: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0;
  font-weight: 700;
}
body.mk-pad .mk-nav .mk-cam {
  width: 15px;
  height: 13px;
  background: var(--mk-list-icon, url("images/list_icon.png")) no-repeat center center;
  background-size: contain;
  border: none;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
body.mk-pad .mk-nav > li + li::before {
  display: none;
}
body.mk-pad .mk-nav__divider {
  font-size: 11px;
  margin: 0 1px;
  opacity: 0.65;
  flex-shrink: 0;
}

/* ---------- 頁面標題（::: 點陣＋齊頭） ---------- */
.mk-title {
  display: flex; align-items: center; gap: 10px;
  padding: 22px var(--mk-pad) 14px; font-size: 32px; font-weight: 700; color: var(--mk-title-color, #2f8fbc);
  width: 100%; max-width: 100%; margin: 0 auto; letter-spacing: 1px;
}
.mk-title .dots { display: inline-grid; grid-template-columns: repeat(3, 5px); gap: 2.5px; align-items: center; margin-right: 2px; }
.mk-title .dots i { width: 5px; height: 5px; background: #333333; border-radius: 0; display: block; }
@media (max-width: 640px) { .mk-title { font-size: 24px; padding: 14px var(--mk-pad) 8px; } }

/* ---------- 內容區（階梯斷點 container：置中、隨斷點遞增；內容齊頭） ---------- */
.mk-main { padding: 2px var(--mk-pad) 60px; width: 100%; max-width: 100%; margin: 0 auto; }
/* 後台圖文編輯器輸出內容排版對齊（以全站 .mk-p / .mk-h2 為主樣式基礎，編輯器另設字級/色票時覆寫；不影響具特定 UI class 之元件） */
.mk-main :where(p:not([class]), p[class^="c-"], p[class*=" c-"], p[class^="size-"], p[class*=" size-"]) { font-size: inherit; line-height: inherit; margin: 0 0 14px; color: var(--mk-ink); }
.mk-main :where(ul:not([class]), ol:not([class]), ul[class*="content-list-"], ol[class*="content-list-"]) { margin: 8px 0 14px; padding-left: 28px; font-size: inherit; line-height: inherit; color: var(--mk-ink); }
.mk-main ul:not([class]) { list-style: disc; }
.mk-main ol:not([class]) { list-style: decimal; }
.mk-main .content-list-disc    { list-style-type: disc; }
.mk-main .content-list-circle  { list-style-type: circle; }
.mk-main .content-list-decimal { list-style-type: decimal; }
.mk-main .content-list-cjk     { list-style-type: cjk-ideographic; padding-left: 36px; }
.mk-main .content-list-alpha   { list-style-type: upper-alpha; }
.mk-main .content-list-none    { list-style-type: none; padding-left: 0; }
.mk-main li:not([class]), .mk-main ul[class*="content-list-"] > li, .mk-main ol[class*="content-list-"] > li { margin-bottom: 6px; }
:where(.mk-main ol > li)::marker {
  color: var(--mk-h2-color, #1f6fb2);
  font-size: 22px;
  font-weight: 700;
}
.mk-main ol > li.c-primary::marker, .mk-main ol > li:has(.c-primary)::marker { color: #1b4965; }
.mk-main ol > li.c-navy::marker,    .mk-main ol > li:has(.c-navy)::marker    { color: #0f2b3c; }
.mk-main ol > li.c-blue::marker,    .mk-main ol > li:has(.c-blue)::marker    { color: #0284c7; }
.mk-main ol > li.c-sky::marker,     .mk-main ol > li:has(.c-sky)::marker     { color: #38bdf8; }
.mk-main ol > li.c-teal::marker,    .mk-main ol > li:has(.c-teal)::marker    { color: #0d9488; }
.mk-main ol > li.c-green::marker,   .mk-main ol > li:has(.c-green)::marker   { color: #16a34a; }
.mk-main ol > li.c-amber::marker,   .mk-main ol > li:has(.c-amber)::marker   { color: #d97706; }
.mk-main ol > li.c-orange::marker,  .mk-main ol > li:has(.c-orange)::marker  { color: #ea580c; }
.mk-main ol > li.c-red::marker,     .mk-main ol > li:has(.c-red)::marker     { color: #e11d48; }
.mk-main ol > li.c-purple::marker,  .mk-main ol > li:has(.c-purple)::marker  { color: #7c3aed; }
.mk-main ol > li.c-dark::marker,    .mk-main ol > li:has(.c-dark)::marker    { color: #0f172a; }
.mk-main ol > li.c-slate::marker,   .mk-main ol > li:has(.c-slate)::marker   { color: #334155; }
.mk-main ol > li.c-gray::marker,    .mk-main ol > li:has(.c-gray)::marker    { color: #64748b; }
.mk-main ol > li.c-gold::marker,    .mk-main ol > li:has(.c-gold)::marker    { color: #b45309; }
.mk-main ol > li.c-sand::marker,    .mk-main ol > li:has(.c-sand)::marker    { color: #d97706; }
.mk-main ol > li.c-wine::marker,    .mk-main ol > li:has(.c-wine)::marker    { color: #9f1239; }
.mk-main ol > li.size-85::marker,  .mk-main ol > li:has(.size-85)::marker,
.mk-main ol > li.size-sm::marker,  .mk-main ol > li:has(.size-sm)::marker  { font-size: 0.85em; }
.mk-main ol > li.size-100::marker, .mk-main ol > li:has(.size-100)::marker,
.mk-main ol > li.size-md::marker,  .mk-main ol > li:has(.size-md)::marker  { font-size: 1em; }
.mk-main ol > li.size-115::marker, .mk-main ol > li:has(.size-115)::marker { font-size: 1.15em; }
.mk-main ol > li.size-125::marker, .mk-main ol > li:has(.size-125)::marker,
.mk-main ol > li.size-lg::marker,  .mk-main ol > li:has(.size-lg)::marker  { font-size: 1.25em; }
.mk-main ol > li.size-150::marker, .mk-main ol > li:has(.size-150)::marker,
.mk-main ol > li.size-xl::marker,  .mk-main ol > li:has(.size-xl)::marker  { font-size: 1.5em; }
.mk-main ol > li.w-normal::marker, .mk-main ol > li:has(.w-normal)::marker { font-weight: 400; }
.mk-main ol > li.w-bold::marker,   .mk-main ol > li:has(.w-bold)::marker   { font-weight: 700; }
.mk-main ol > li.w-xbold::marker,  .mk-main ol > li:has(.w-xbold)::marker  { font-weight: 800; }
.mk-main :where(h2:not([class]), h2[class^="c-"], h2[class*=" c-"], h2[class^="size-"], h2[class*=" size-"]) { font-size: 22px; font-weight: 800; color: var(--mk-h2-color, #1f6fb2); margin: 24px 0 10px; }
.mk-main :where(h3:not([class]), h3[class^="c-"], h3[class*=" c-"], h3[class^="size-"], h3[class*=" size-"]) { font-size: 20px; font-weight: 700; color: var(--mk-navy); margin: 18px 0 8px; }
.mk-main :where(h4:not([class]), h4[class^="c-"], h4[class*=" c-"], h4[class^="size-"], h4[class*=" size-"]) { font-size: 18px; font-weight: 700; color: #334155; margin: 14px 0 6px; }
.mk-main blockquote:not([class]) { margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--mk-blue); background: #f8fafc; color: #334155; }
.mk-main table.content-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.mk-main table.content-table th, .mk-main table.content-table td { border: 1px solid #cbd5e1; padding: 8px 12px; text-align: left; }
.mk-main table.content-table th { background: #f1f5f9; font-weight: 700; color: var(--mk-navy); }
/* VanillaEditor 16 色核准色票 */
.c-primary { color: #1b4965; }
.c-navy    { color: #0f2b3c; }
.c-blue    { color: #0284c7; }
.c-sky     { color: #38bdf8; }
.c-teal    { color: #0d9488; }
.c-green   { color: #16a34a; }
.c-amber   { color: #d97706; }
.c-orange  { color: #ea580c; }
.c-red     { color: #e11d48; }
.c-purple  { color: #7c3aed; }
.c-dark    { color: #0f172a; }
.c-slate   { color: #334155; }
.c-gray    { color: #64748b; }
.c-gold    { color: #b45309; }
.c-sand    { color: #d97706; }
.c-wine    { color: #9f1239; }
.size-85, .size-sm  { font-size: 0.85em; }
.size-100, .size-md { font-size: 1em; }
.size-115           { font-size: 1.15em; }
.size-125, .size-lg { font-size: 1.25em; }
.size-150, .size-xl { font-size: 1.5em; }
.w-normal { font-weight: 400; }
.w-bold   { font-weight: 700; }
.w-xbold  { font-weight: 800; }

/* 通用容器類別支援（顯式容器包裹用，外層不加額外 padding，由內層 mk-title 與 mk-main 定義各自 padding） */
.mk-container { width: 100%; margin: 0 auto; box-sizing: border-box; }

/* ---------- 段落元素 ---------- */
.mk-p { margin-bottom: 14px; }
.mk-h2 { font-size: 22px; font-weight: 800; color: var(--mk-h2-color, #1f6fb2); margin: 24px 0 10px; }
.mk-h2--big { font-size: 26px; font-weight: 800; color: var(--mk-navy); margin: 20px 0 12px; }
.mk-li { margin: 0 0 10px 1.7em; }
.mk-li-sub { margin: 0 0 6px 3.4em; }
.mk-req { color: var(--mk-red); font-weight: 700; }
.mk-muted { color: #7d97a5; }

/* ---------- 佔位視覺（正式資產 fallback；載入失敗不破版） ---------- */
.mk-ph {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.92); overflow: hidden;
  background: linear-gradient(135deg, #2b5d7e, #173a54);
}
.mk-ph--poster { background: linear-gradient(150deg, #f2c230 0%, #d9a406 38%, #173a54 38.5%, #0f2a3e 100%); }
.mk-ph--photo { background: linear-gradient(135deg, #74b9d4, #4a8db0); }
.mk-ph--prize { background: #f1f5f9; border: 1px solid #e2e8f0; color: #64748b; font-weight: 600; border-radius: 6px; }
.mk-ph--doc { background: linear-gradient(135deg, #e9f3f7, #c9dde7); color: #4a6a7c; }
.r-16-9 { aspect-ratio: 16/9; } .r-4-3 { aspect-ratio: 4/3; } .r-3-4 { aspect-ratio: 3/4; }
.r-1-1 { aspect-ratio: 1/1; } .r-21-9 { aspect-ratio: 21/9; }

.mk-play { width: 58px; height: 41px; border-radius: 10px; background: var(--mk-red); display: flex; align-items: center; justify-content: center; }
.mk-play::after { content: ""; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.mk-videobox { background: #10151a; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: #93a7b3; font-size: 13px; }

/* ---------- 按鈕 ---------- */
.mk-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; padding: 8px 20px; font-size: 17px; cursor: pointer; text-decoration: none; font-family: inherit; border: none; white-space: nowrap; }
.mk-btn--gold { background: linear-gradient(180deg, var(--mk-btn-gold-top, #ffd75e), var(--mk-gold)); border: 1.5px solid var(--mk-gold-deep); color: #4a3603; font-weight: 700; }
.mk-btn--teal { background: linear-gradient(180deg, var(--mk-teal-bright, #23b3ab), var(--mk-teal)); border: 1.5px solid var(--mk-teal-dark, #106b66); color: #fff; font-weight: 700; }
.mk-btn--teal:active { transform: translateY(1px); }
.mk-vote-ext-wrap { text-align: center; margin-top: 32px; }
.mk-btn-ext-vote {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mk-ext-vote, #009ab8); color: #fff; font-size: 20px; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1.3; padding: 13px 34px;
  border-radius: 12px; border: 2px solid #fff;
  box-shadow: 0 0 0 2.5px var(--mk-ext-vote, #009ab8); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.mk-btn-ext-vote:hover, .mk-btn-ext-vote:focus-visible {
  background: var(--mk-ext-vote-hover, #0086a0); box-shadow: 0 0 0 2.5px var(--mk-ext-vote-hover, #0086a0); color: #fff;
}
.mk-btn-ext-vote:active { transform: translateY(1px); }
.mk-btn--pill { border-radius: 999px; background: linear-gradient(180deg, #ffe083, #f6c93a); border: 1.5px solid var(--mk-gold-deep); color: #4a3603; font-weight: 800; padding: 5px 16px; font-size: 13.5px; }
.mk-btn--ghost { background: #fff; border: 1.5px solid var(--mk-line); color: #4a6272; }

/* ---------- 首頁 Hero（滿版；主視覺槽自適應：寬 100% 等比、與看板垂直置中） ---------- */
.mk-hero { display: grid; grid-template-columns: 1fr 2.05fr; gap: 24px; padding: 26px var(--mk-pad) 44px; align-items: center; }
.mk-hero .mk-hero-poster, .mk-hero .mk-hero-poster img { width: 100%; }
@media (max-width: 1024px) and (orientation: portrait) {
  .mk-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px var(--mk-pad) 36px;
  }
  .mk-hero .mk-hero-poster {
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) { .mk-hero { grid-template-columns: 1fr; padding: 14px var(--mk-pad) 26px; } }
@media (min-width: 1025px) {
  .mk-hero {
    margin-inline: auto;
  }
  .mk-hero--ratio-16-9 { max-width: calc(80vh * 1.7778 * 1.4878 + 24px + var(--mk-pad) * 2); }
  .mk-hero--ratio-3-2  { max-width: calc(80vh * 1.5    * 1.4878 + 24px + var(--mk-pad) * 2); }
  .mk-hero--ratio-4-3  { max-width: calc(80vh * 1.3333 * 1.4878 + 24px + var(--mk-pad) * 2); }
  .mk-hero--ratio-1-1  { max-width: calc(80vh * 1.0    * 1.4878 + 24px + var(--mk-pad) * 2); }
}

.mk-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.mk-carousel--ratio-16-9 { aspect-ratio: 16 / 9; }
.mk-carousel--ratio-3-2 { aspect-ratio: 3 / 2; }
.mk-carousel--ratio-4-3 { aspect-ratio: 4 / 3; }
.mk-carousel--ratio-1-1 { aspect-ratio: 1 / 1; }
.mk-carousel [data-slide] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  will-change: transform, opacity;
}
.mk-carousel [data-slide].is-active {
  pointer-events: auto;
}
.mk-carousel [data-slide][hidden] {
  display: none !important;
}
.mk-carousel [data-slide] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.mk-carousel .arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 60px;
  padding: 0;
  padding-bottom: 4px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background-color 0.2s ease;
}
.mk-carousel .arr:hover {
  background: rgba(0, 0, 0, 0.9);
}
.mk-carousel .arr.l {
  left: 0;
  border-radius: 0 6px 6px 0;
}
.mk-carousel .arr.r {
  right: 0;
  border-radius: 6px 0 0 6px;
}
.mk-carousel, .mk-feature-main {
  position: relative;
  overflow: hidden;
}
.mk-carousel.has-slides, .mk-feature-main.has-slides {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.mk-carousel.has-slides:active, .mk-feature-main.has-slides:active {
  cursor: grabbing;
}
.mk-carousel.is-static, .mk-feature-main.is-static, .mk-carousel:not(.has-slides), .mk-feature-main:not(.has-slides) {
  cursor: default !important;
  touch-action: auto !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
}
.mk-carousel:not(.has-slides) [data-slide], .mk-feature-main:not(.has-slides) img {
  will-change: auto !important;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}
@media (max-width: 640px) {
  .mk-carousel .arr {
    width: 32px;
    height: 48px;
    font-size: 38px;
    padding-bottom: 3px;
  }
}
.mk-carousel .dots-nav { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.mk-carousel .dots-nav button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(15, 23, 42, 0.35); cursor: pointer; padding: 0; }
.mk-carousel .dots-nav button.on { background: var(--mk-gold); }

/* ---------- 最新消息列 ---------- */
.mk-newsrow { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px solid #e3edf2; align-items: baseline; }
.mk-newsrow .no { font-size: 22px; font-weight: 800; color: #6fa3d8; min-width: 34px; font-family: Georgia, serif; }
.mk-newsrow .tt { flex: 1; min-width: 0; }
.mk-newsrow .tt a { color: var(--mk-blue); text-decoration: none; font-size: 18.5px; }
.mk-newsrow .tt a:hover { text-decoration: underline; }
.mk-newsrow .dt { color: #8aa0ad; font-size: 15px; white-space: nowrap; }

/* ---------- 數字分頁 ---------- */
.mk-pager { display: flex; flex-wrap: nowrap; gap: 8px; justify-content: center; align-items: center; margin: 26px 0 6px; overflow-x: auto; }
.mk-pager .pg { min-width: 38px; text-align: center; padding: 6px 12px; font-size: 16px; white-space: nowrap; border: 1px solid var(--mk-line); background: #fff; color: #4a6272; border-radius: 4px; text-decoration: none; flex: 0 0 auto; }
a.mk-pager .pg:hover, .mk-pager a.pg:hover { border-color: var(--mk-blue); color: var(--mk-blue); }
.mk-pager .pg.num.on { background: var(--mk-blue); border-color: var(--mk-blue); color: #fff; font-weight: 800; }
.mk-pager .pg.dis { color: #b7c6cf; background: var(--mk-soft); }
.mk-pager .dots { color: #8aa0ad; padding-bottom: 2px; flex: 0 0 auto; }
@media (max-width: 640px) {
  /* 手機：上下頁僅箭頭（文字隱藏），保證單行不斷行 */
  .mk-pager .pg .lbl { display: none; }
  .mk-pager .pg { min-width: 34px; padding: 5px 9px; font-size: 14px; }
  .mk-pager { gap: 6px; }
}

/* ---------- 卡格（含 grid 撐爆護欄與響應式降欄——Wireframe rev.9 教訓） ---------- */
.mk-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; align-items: stretch; }
.mk-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 28px; }
.mk-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mk-grid2 > *, .mk-grid3 > *, .mk-grid4 > * { min-width: 0; }
@media (max-width: 680px) { .mk-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .mk-grid3, .mk-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mk-grid3, .mk-grid4 { grid-template-columns: 1fr; } }

/* 活動獎項專用 3 欄卡格 */
.mk-prizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 22px;
  margin-bottom: 24px;
}
.mk-prizes-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .mk-prizes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .mk-prizes-grid .mk-prize__thumb {
    max-width: 280px;
    height: auto;
  }
}
@media (max-width: 600px) {
  .mk-prizes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 10px;
  }
  .mk-prizes-grid .mk-prize {
    padding: 6px 4px 8px;
  }
  .mk-prizes-grid .mk-prize__thumb {
    max-width: 220px;
    height: auto;
  }
}
body.mk-mobile .mk-prizes-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px 10px;
}
body.mk-mobile .mk-prizes-grid .mk-prize {
  padding: 6px 4px 8px;
}
body.mk-mobile .mk-prizes-grid .mk-prize__thumb {
  max-width: 220px;
  height: auto;
}

/* 相簿卡／內頁 */
.mk-album { text-decoration: none; color: inherit; display: block; }
.mk-album .cap { margin-top: 9px; font-size: 16.5px; color: #35586e; font-weight: 600; text-align: center; }
.mk-artrow { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--mk-navy); padding-bottom: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.mk-artrow .t { font-size: 22px; font-weight: 800; color: var(--mk-navy); }
.mk-artrow .d { color: #8aa0ad; font-size: 15px; }

.mk-feature-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.mk-feature-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  will-change: transform, opacity;
}
.mk-feature-main .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1e293b;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 14.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}
/* ---------- 活動花絮相簿縮圖帶與溢出導航 ---------- */
.mk-thumbstrip-wrap {
  position: relative;
  width: 100%;
  margin-top: 16px;
}
.mk-thumbstrip {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding-bottom: 6px;
  transition: justify-content 0.2s ease;
}
.mk-thumbstrip .thumb {
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 16/10;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  border: none;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #74b9d4, #4a8db0);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-family: inherit;
}
.mk-thumbstrip .thumb.on {
  outline: 3px solid var(--mk-gold);
  outline-offset: -3px;
}
.mk-thumbstrip-wrap .arr {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px;
  height: 52px;
  border: none;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.mk-thumbstrip-wrap .arr:hover {
  background: rgba(0, 0, 0, 1);
}
.mk-thumbstrip-wrap .arr.l {
  left: 0;
  border-radius: 0 5px 5px 0;
}
.mk-thumbstrip-wrap .arr.r {
  right: 0;
  border-radius: 5px 0 0 5px;
}
/* 溢出多圖態：啟用靠左排列、橫向滾動與切換箭頭 */
.mk-thumbstrip-wrap.has-overflow .mk-thumbstrip {
  justify-content: flex-start;
  overflow-x: auto;
  padding: 4px 26px 8px;
  scroll-behavior: smooth;
}
.mk-thumbstrip-wrap.has-overflow .arr {
  display: flex;
}
@media (max-width: 640px) {
  .mk-thumbstrip-wrap .arr {
    display: none !important;
  }
  .mk-thumbstrip-wrap.has-overflow .mk-thumbstrip {
    padding: 4px 0 8px;
  }
}

/* ---------- 黃藥丸節標／◆ 標／獎項卡 ---------- */
.mk-pillrow { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.mk-pill {
  background: linear-gradient(180deg, #ffe083 0%, #f6c93a 100%);
  border: 1.6px solid var(--mk-gold-deep);
  border-radius: 999px;
  padding: 5px 26px;
  font-weight: 800;
  color: #4a3603;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
}
.mk-pill::before { content: "◎"; font-size: 15px; color: var(--mk-gold-deep); }
.mk-pill::after { content: "◎"; font-size: 15px; color: var(--mk-gold-deep); }

.mk-diamond {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #009eb2;
  margin: 26px 0 12px;
}
.mk-diamond::before {
  display: none !important;
  content: "";
}
.mk-diamond:not(:has(svg))::before {
  display: inline-block !important;
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 27 35'%3E%3Cpolygon fill='%23ef8579' points='5.5,0 0,21.5 26.5,16.5'/%3E%3Cpolygon fill='%23ee9366' points='1,20 23.5,14 12,35'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mk-diamond .title-icon--orange {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.mk-prize {
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 6px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.2s ease;
}
.mk-prize:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}
.mk-prize__thumb {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.mk-prize__thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.mk-prize .nm {
  font-size: 16px;
  font-weight: 800;
  margin-top: 10px;
  color: #3b2d18;
  line-height: 1.4;
  word-break: break-word;
}
.mk-prize .ct {
  display: inline-block;
  margin-top: 6px;
  background: #e11d48;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 14px;
  line-height: 1.3;
  border: none;
}

/* ---------- 入圍作品卡 ---------- */
.mk-entry { display: grid; grid-template-columns: 38px 1fr; height: 100%; border: 2px solid #c79f62; border-radius: 2px; background: #ffffff; overflow: hidden; align-items: stretch; }
.mk-entry .ribbon { writing-mode: vertical-rl; text-orientation: upright; background: #ffffff; border: none; color: #c79f62; font-weight: 700; font-size: 18px; letter-spacing: 4px; display: flex; align-items: center; justify-content: center; padding: 12px 0 12px 6px; }
.mk-entry .body { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: auto 1fr; height: 100%; align-items: stretch; padding: 14px 12px; gap: 16px; row-gap: 10px; }
.mk-entry .body > * { min-width: 0; }
.mk-entry .body .mk-ph--thumb {
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  align-self: stretch;
}
.mk-entry .body .mk-ph--thumb img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: transparent !important;
  display: block;
}
.mk-entry .meta { padding: 4px 6px; display: flex; flex-direction: column; height: 100%; gap: 5px; justify-content: center; box-sizing: border-box; min-width: 0; max-width: 100%; }
.mk-entry .body .tt {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: #000000;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: clip;
}
.mk-entry .meta .st-label { color: #f8d204; font-weight: 700; font-size: 17px; line-height: 1.3; margin-top: 2px; }
/* 卡片雙欄名單網格（project.php 與 previous.php 學校學生呈現共用） */
.mk-team-grid {
  display: inline-grid;
  margin: 0 auto;
  grid-template-columns: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  font-size: 14px;
  line-height: 1.4;
}
.mk-workcard .mk-team-grid,
.mk-entry .mk-team-grid {
  display: inline-grid;
  margin: 0 auto;
}
.mk-entry .mk-team-grid {
  max-width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
}
.mk-team-school {
  color: #000000;
  white-space: nowrap;
  text-align: right;
}
.mk-team-student {
  color: #000000;
  white-space: nowrap;
  min-width: 0;
  overflow-wrap: break-word;
  text-align: left;
}
.mk-entry .mk-team-student {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
}

.mk-entry .meta .school,
.mk-entry .meta .desc {
  display: block;
  background: none !important;
  border: none !important;
  color: #000000;
  font-size: 14px;
  padding: 0 !important;
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-weight: 400;
  white-space: normal;
  min-height: 120px;
  max-height: none;
  overflow-y: visible;
  text-align: center;
  scrollbar-width: none;
}
.mk-entry .meta .desc::-webkit-scrollbar,
.mk-entry .meta .school::-webkit-scrollbar {
  display: none;
}
.mk-entry .meta .mk-team-box {
  min-height: 120px;
  max-height: none;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
}
.mk-entry .meta .mk-team-box::-webkit-scrollbar {
  display: none;
}
.mk-entry .meta .mk-team-box .desc {
  min-height: 120px;
  max-height: none;
  overflow-y: visible;
}
.mk-entry .meta .mk-votes {
  margin-top: auto !important;
  margin-bottom: 6px !important;
  font-size: 14px;
  font-weight: 700;
  color: #b45309;
  text-align: center;
}
.mk-entry .meta .acts {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}
.mk-entry .meta .acts .mk-btn,
.mk-btn.mk-btn--work-yellow,
.mk-btn--work-yellow {
  background-color: #ffd700 !important;
  background-image: none !important;
  color: #111111 !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
  max-width: 140px;
}
.mk-btn.mk-btn--work-yellow:hover,
.mk-btn--work-yellow:hover { background-color: #f0c800 !important; color: #000000 !important; text-decoration: none; }
@media (min-width: 1200px) {
  .mk-entry .body { grid-template-columns: 1.25fr 1fr; gap: 14px; row-gap: 10px; }
}
@media (max-width: 1199.98px) {
  .mk-entry {
    grid-template-columns: 1fr;
    grid-template-rows: 44px 1fr !important;
  }
  .mk-entry .ribbon {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-right: none;
    border-bottom: 1px solid #c79f62;
    background: #ffffff;
    height: 44px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 28px !important;
    letter-spacing: 4px;
    text-align: center;
    font-size: 18px;
    width: 100%;
  }
  .mk-entry .body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr !important;
    padding: 14px;
    gap: 14px;
  }
  .mk-entry .body .tt {
    text-align: center;
    font-size: 17px;
  }
  .mk-entry .body .mk-ph--thumb {
    align-self: start !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
  }
  .mk-workcard .mk-ph--thumb {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100%;
  }
  .mk-entry .meta {
    justify-content: flex-start !important;
  }
  .mk-entry .meta .desc,
  .mk-entry .meta .school,
  .mk-workcard .body .desc {
    text-align: left !important;
  }
  .mk-entry .mk-team-grid,
  .mk-workcard .mk-team-grid {
    margin: 0 !important;
    grid-template-columns: minmax(100px, max-content) minmax(0, 1fr) !important;
    max-width: 100%;
    column-gap: 8px !important;
    justify-content: start !important;
  }
  .mk-team-school {
    min-width: 100px !important;
    text-align: left !important;
  }
  .mk-team-student {
    text-align: left !important;
  }
  .mk-workcard { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .mk-entry {
    grid-template-columns: 1fr;
    grid-template-rows: 44px 1fr !important;
  }
  .mk-entry .ribbon {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-right: none;
    border-bottom: 1px solid #c79f62;
    background: #ffffff;
    height: 44px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 28px !important;
    letter-spacing: 4px;
    text-align: center;
    font-size: 18px;
    width: 100%;
  }
  .mk-entry .body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr !important;
    padding: 14px;
    gap: 14px;
  }
  .mk-entry .body .tt {
    text-align: center;
    font-size: 17px;
  }
  .mk-entry .body .mk-ph--thumb {
    align-self: start !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100% !important;
  }
  .mk-workcard .mk-ph--thumb {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    width: 100%;
  }
  .mk-entry .meta {
    justify-content: flex-start !important;
  }
  .mk-entry .meta .desc,
  .mk-entry .meta .school,
  .mk-workcard .body .desc {
    text-align: left !important;
  }
  .mk-entry .mk-team-grid,
  .mk-workcard .mk-team-grid {
    margin: 0 !important;
    grid-template-columns: minmax(100px, max-content) minmax(0, 1fr) !important;
    max-width: 100%;
    column-gap: 8px !important;
    justify-content: start !important;
  }
  .mk-team-school {
    min-width: 100px !important;
    text-align: left !important;
  }
  .mk-team-student {
    text-align: left !important;
  }
}
body.mk-pad .mk-entry,
body.mk-mobile .mk-entry {
  grid-template-columns: 1fr;
  grid-template-rows: 44px 1fr !important;
}
body.mk-pad .mk-entry .ribbon,
body.mk-mobile .mk-entry .ribbon {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  border-right: none;
  border-bottom: 1px solid #c79f62;
  background: #ffffff;
  height: 44px !important;
  box-sizing: border-box !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 28px !important;
  letter-spacing: 4px;
  text-align: center;
  font-size: 18px;
  width: 100%;
}
body.mk-pad .mk-entry .body,
body.mk-mobile .mk-entry .body {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr !important;
  padding: 14px;
  gap: 14px;
}
body.mk-pad .mk-entry .body .tt,
body.mk-mobile .mk-entry .body .tt {
  text-align: center;
  font-size: 17px;
}
body.mk-pad .mk-entry .body .mk-ph--thumb,
body.mk-mobile .mk-entry .body .mk-ph--thumb {
  align-self: start !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  width: 100% !important;
}
body.mk-pad .mk-workcard .mk-ph--thumb,
body.mk-mobile .mk-workcard .mk-ph--thumb {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  width: 100%;
}
body.mk-pad .mk-entry .meta,
body.mk-mobile .mk-entry .meta {
  justify-content: flex-start !important;
}
body.mk-pad .mk-entry .meta .desc,
body.mk-pad .mk-entry .meta .school,
body.mk-pad .mk-workcard .body .desc,
body.mk-mobile .mk-entry .meta .desc,
body.mk-mobile .mk-entry .meta .school,
body.mk-mobile .mk-workcard .body .desc {
  text-align: left !important;
}
body.mk-pad .mk-entry .mk-team-grid,
body.mk-pad .mk-workcard .mk-team-grid,
body.mk-mobile .mk-entry .mk-team-grid,
body.mk-mobile .mk-workcard .mk-team-grid {
  margin: 0 !important;
  grid-template-columns: minmax(100px, max-content) minmax(0, 1fr) !important;
  max-width: 100%;
  column-gap: 8px !important;
  justify-content: start !important;
}
body.mk-pad .mk-team-school,
body.mk-mobile .mk-team-school {
  min-width: 100px !important;
  text-align: left !important;
}
body.mk-pad .mk-team-student,
body.mk-mobile .mk-team-student {
  text-align: left !important;
}
body.mk-pad .mk-workcard,
body.mk-mobile .mk-workcard {
  grid-template-columns: 1fr;
}
@media (max-width: 480px) {
  .mk-entry .body,
  body.mk-mobile .mk-entry .body {
    padding: 12px;
    gap: 10px;
  }
  .mk-entry .body .tt,
  body.mk-mobile .mk-entry .body .tt {
    font-size: 16.5px;
  }
  .mk-entry .mk-team-grid,
  body.mk-mobile .mk-entry .mk-team-grid {
    grid-template-columns: minmax(84px, max-content) minmax(0, 1fr) !important;
  }
  .mk-entry .mk-team-school,
  body.mk-mobile .mk-entry .mk-team-school {
    min-width: 84px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ---------- 歷屆作品卡＋年份 tab＋頁內展開＋燈箱 ---------- */
.mk-yeartabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 24px; }
.mk-yeartabs .tab { border: 1px solid #b9cdd7; background: #fff; color: #4a6272; padding: 7px 20px; font-size: 16.5px; white-space: nowrap; border-radius: 3px; text-decoration: none; }
.mk-yeartabs .tab:hover { border-color: var(--mk-teal); color: var(--mk-teal); }
.mk-yeartabs .tab.on { background: var(--mk-navy); border-color: var(--mk-navy); color: #fff; font-weight: 800; }
.mk-workcard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  align-items: stretch;
  padding: 10px;
  gap: 8px;
}
.mk-workcard > * { min-width: 0; }
.mk-workcard .mk-ph--thumb {
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto !important;
  min-height: 0;
  background: rgba(255, 255, 255, 0.9) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  cursor: pointer;
  align-self: stretch;
}
.mk-workcard .mk-ph--thumb img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: transparent !important;
  display: block;
}
.mk-workcard .body {
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  justify-content: center;
}
.mk-workcard .tt {
  font-weight: 800;
  color: var(--mk-navy);
  font-size: 18px;
  text-align: center;
}
.mk-workcard .mk-award-slot {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 4px 0 6px;
  width: 100%;
}
.mk-workcard .mk-award {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  text-align: center;
}
.mk-workcard .mk-award__item {
  color: #0094c3;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}
.mk-workcard .desc {
  font-size: 14px;
  color: #000000;
  text-align: center;
  white-space: normal;
  min-height: 120px;
  max-height: none;
  overflow-y: visible;
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  scrollbar-width: none;
}
.mk-workcard .desc::-webkit-scrollbar {
  display: none;
}
.mk-workcard .mk-workcard__actions {
  margin-top: auto !important;
  padding-top: 8px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.mk-workcard .mk-workcard__actions .mk-btn {
  min-width: 140px;
  text-align: center;
}
.mk-workcard .more { color: var(--mk-blue); font-size: 15.5px; text-decoration: none; font-weight: 700; }
@media (max-width: 1024px) { .mk-workcard { grid-template-columns: 1fr; } }
body.mk-mobile .mk-workcard { grid-template-columns: 1fr; }
.mk-expand { border: 1px solid var(--mk-line); border-left: 5px solid var(--mk-gold); border-radius: 8px; background: var(--mk-soft); padding: 16px 18px; margin-top: 24px; }
.mk-expand .hd { font-weight: 800; color: var(--mk-navy); margin-bottom: 10px; }
.mk-expand .duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.mk-expand .duo > * { min-width: 0; }
@media (max-width: 760px) { .mk-expand .duo { grid-template-columns: 1fr; } }

/* G02 全站 Lightbox Modal 燈箱樣式（支援全螢幕暗色遮罩 Overlay + 浮動彈出視窗） */
.mk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mk-lightbox[hidden] {
  display: none !important;
}
.mk-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 20, 0.92);
  backdrop-filter: blur(4px);
}
.mk-lightbox__modal {
  position: relative;
  z-index: 1;
  width: 60%;
  max-width: 60%;
  background: #14222d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 24px;
  color: #fff;
  box-sizing: border-box;
}
.mk-lightbox .x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--mk-gold);
  color: #4a3603;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-lightbox__video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.mk-lightbox__video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.mk-lightbox__info {
  margin-top: 16px;
  text-align: left;
}
.mk-lightbox__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mk-lightbox__title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.mk-lightbox__team {
  margin-top: 8px;
  font-size: 14.5px;
  color: #38bdf8;
  font-weight: 600;
}
.mk-lightbox__desc {
  margin-top: 10px;
  font-size: 14px;
  color: #c3ced6;
  line-height: 1.6;
}

/* 相容舊式 .inner / [open] 選擇器 */
.mk-lightbox .inner {
  width: 60%;
  max-width: 60%;
  position: relative;
  z-index: 1;
}
.mk-lightbox[open] {
  display: flex;
}
.mk-lightbox iframe,
.mk-lightbox .mk-videobox {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  background: #000;
}

/* ---------- 作品 modal（G02 work 模式：原生 <dialog>） ---------- */
dialog.mk-modal,
.mk-modal {
  background: #14171c;
  color: #fff;
  width: 60%;
  max-width: 60%;
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 26px 26px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.65);
  box-sizing: border-box;
}
dialog.mk-modal::backdrop,
.mk-modal::backdrop { background: rgba(8,14,20,.75); }

/* 平板媒體查詢 (641px - 1024px) 與 body.mk-pad */
@media (min-width: 641px) and (max-width: 1024px) {
  dialog.mk-modal,
  .mk-modal,
  .mk-lightbox__modal,
  .mk-lightbox .inner {
    width: 80% !important;
    max-width: 80% !important;
  }
}
body.mk-pad dialog.mk-modal,
body.mk-pad .mk-modal,
body.mk-pad .mk-lightbox__modal,
body.mk-pad .mk-lightbox .inner {
  width: 80% !important;
  max-width: 80% !important;
}

/* 手機媒體查詢 (<= 640px) 與 body.mk-mobile */
@media (max-width: 640px) {
  dialog.mk-modal,
  .mk-modal,
  .mk-lightbox__modal,
  .mk-lightbox .inner {
    width: 92% !important;
    max-width: 92% !important;
    padding: 20px 14px 22px !important;
  }
}
body.mk-mobile dialog.mk-modal,
body.mk-mobile .mk-modal,
body.mk-mobile .mk-lightbox__modal,
body.mk-mobile .mk-lightbox .inner {
  width: 92% !important;
  max-width: 92% !important;
  padding: 20px 14px 22px !important;
}

/* ---------- 投票身分驗證登入框 (#projectVoteModal) 響應式寬度 ---------- */
dialog#projectVoteModal,
#projectVoteModal {
  width: 50% !important;
  max-width: 550px !important;
  min-width: 440px !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
@media (min-width: 641px) and (max-width: 1024px) {
  dialog#projectVoteModal,
  #projectVoteModal {
    width: 70% !important;
    max-width: 70% !important;
    min-width: 0 !important;
  }
}
body.mk-pad dialog#projectVoteModal,
body.mk-pad #projectVoteModal {
  width: 70% !important;
  max-width: 70% !important;
  min-width: 0 !important;
}
@media (max-width: 640px) {
  dialog#projectVoteModal,
  #projectVoteModal {
    width: 90% !important;
    max-width: 90% !important;
    min-width: 0 !important;
  }
}
body.mk-mobile dialog#projectVoteModal,
body.mk-mobile #projectVoteModal {
  width: 90% !important;
  max-width: 90% !important;
  min-width: 0 !important;
}
.mk-modal .x,
dialog.mk-modal .x,
dialog.proto-dialog .x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f08c00;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.mk-modal .mtitle { text-align: center; font-size: 17.5px; font-weight: 800; margin: 13px 0 8px; }
dialog.mk-modal .mdesc { font-size: 13.5px; color: #d3dce2; margin-bottom: 12px; }
dialog.mk-modal .team {
  font-size: 13px;
  color: #e7edf1;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 14px;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.6;
  white-space: pre-line;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
dialog.mk-modal .team .mk-team-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
dialog.mk-modal .team .mk-team-val {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.65;
  word-break: break-word;
}
dialog.mk-modal .team::-webkit-scrollbar {
  width: 4px;
}
dialog.mk-modal .team::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}
dialog.mk-modal .acts { display: flex; justify-content: center; gap: 38px; margin: 16px 0 8px; }
dialog.mk-modal iframe, dialog.mk-modal .mk-videobox { width: 100%; aspect-ratio: 16/9; border: none; background: #000; border-radius: 4px; }
.mk-roundbtn { width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.mk-roundbtn.vote { background: radial-gradient(circle at 35% 30%, #ffa14f, #ef8b4d); border: 3px solid #fff; color: #fff; }
.mk-roundbtn.fb { background: radial-gradient(circle at 35% 30%, #5f7dc0, #3b5998); border: 3px solid #fff; color: #fff; }

/* ---------- 前台燈箱操作按鈕群 (.mk-modal-btns / .mk-modal-actions) ---------- */
.mk-modal-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.mk-modal-actions .mk-votes { margin: 0; }
.mk-modal-btns { display: inline-flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mk-modal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 20px; min-height: 42px; font-size: 15px; font-weight: 700; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none; box-shadow: 0 2px 4px rgba(0,0,0,0.25); transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.15s ease; }
.mk-modal-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.35); }
.mk-modal-btn svg { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.mk-modal-btn--vote { background-color: #f68c64; color: #ffffff !important; border-color: #e5764d; }
.mk-modal-btn--vote:hover { background-color: #e5764d; }
.mk-modal-btn--fb { background-color: #45568c; color: #ffffff !important; border-color: #384775; }
.mk-modal-btn--fb:hover { background-color: #384775; }
.mk-modal-btn--copy { background-color: #5a6578; color: #ffffff !important; border-color: #485263; }
.mk-modal-btn--copy:hover { background-color: #485263; }
.mk-votes { text-align: center; color: #ffd43b; font-size: 20px; font-weight: 800; letter-spacing: 1px; }

/* 手機版 (<= 640px) 與 body.mk-mobile 燈箱按鈕滿寬堆疊 */
@media (max-width: 640px) {
  .mk-modal-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .mk-modal-btns { display: flex; flex-direction: column; width: 100%; gap: 10px; }
  .mk-modal-btns .mk-modal-btn { width: 100%; box-sizing: border-box; }
  .mk-modal-actions .mk-votes { width: 100%; text-align: center; margin-top: 4px; }
}
body.mk-mobile .mk-modal-actions { flex-direction: column; align-items: stretch; gap: 12px; }
body.mk-mobile .mk-modal-btns { display: flex; flex-direction: column; width: 100%; gap: 10px; }
body.mk-mobile .mk-modal-btns .mk-modal-btn { width: 100%; box-sizing: border-box; }
body.mk-mobile .mk-modal-actions .mk-votes { width: 100%; text-align: center; margin-top: 4px; }
.mk-form-dark { border: 1px solid #3a4450; background: rgba(255,255,255,.04); border-radius: 8px; padding: 14px 16px; margin-top: 16px; box-sizing: border-box; max-width: 100%; overflow: hidden; }
.mk-form-dark .fld { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.mk-form-dark .lbl { width: 86px; font-size: 13px; color: #c3ced6; flex: 0 0 auto; }
.mk-form-dark .inp { flex: 1; min-width: 0; background: #fff; border: 1px solid #cfdde4; border-radius: 4px; min-height: 34px; display: flex; align-items: center; padding: 4px 10px; color: #526b7a; font-size: 13px; }
.mk-form-dark .tip { font-size: 12px; color: #8fa0ac; line-height: 1.6; }

/* ---------- 投票燈箱已登入會員卡與訪客欄位 (.mk-voter-card, .mk-vote-guest-fields) ---------- */
.mk-voter-card { display: flex; align-items: center; justify-content: space-between; background: rgba(15, 23, 42, 0.75); border: 1px solid #38bdf8; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.mk-voter-card[hidden] { display: none !important; }
.mk-voter-card__left { display: flex; align-items: center; gap: 10px; }
.mk-voter-card__icon { font-size: 20px; line-height: 1; }
.mk-voter-card__info { font-size: 13.5px; color: #e2e8f0; }
.mk-voter-card__info strong { color: #38bdf8; font-weight: 700; margin: 0 4px; }
.mk-badge--verified { background: #10b981; color: #ffffff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 6px; display: inline-block; vertical-align: middle; }
.mk-vote-guest-fields { display: contents; }
.mk-vote-guest-fields[hidden] { display: none !important; }

/* ---------- 投票燈箱全端單欄網格與表單元素 (.mk-vote-grid, .mk-form-item) ---------- */
.mk-vote-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; width: 100%; min-width: 0; box-sizing: border-box; }
.mk-vote-grid > [hidden], #voteOtpRow[hidden] { display: none !important; }
.mk-form-item { display: flex; align-items: center; width: 100%; min-height: 40px; flex-wrap: nowrap; box-sizing: border-box; min-width: 0; }
.mk-form-lbl { width: 72px; flex: 0 0 72px; text-align: right; margin-right: 8px; font-size: 13.5px; color: #cbd5e1; font-weight: 500; line-height: 40px; white-space: nowrap; }
.mk-form-item .inp { height: 40px !important; min-height: 40px !important; box-sizing: border-box !important; padding: 0 12px; background: #ffffff; border: 1px solid #cfdde4; border-radius: 4px; color: #1e293b; font-size: 14px; flex: 1; min-width: 0; }
.mk-form-item .inp:disabled { background: #1e293b !important; color: #94a3b8 !important; border-color: #334155 !important; cursor: not-allowed; }
.mk-btn--captcha-refresh:disabled { opacity: 0.5 !important; cursor: not-allowed !important; }
.inp.mk-inp-error, .mk-code-group .inp--captcha.mk-inp-error { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important; animation: mkShake 0.3s ease-in-out; }
@keyframes mkShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mk-code-group { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 40px; flex-wrap: nowrap; }
.mk-code-group .inp--captcha { flex: 1; min-width: 55px; text-align: center; font-weight: 600; letter-spacing: 1px; }
.mk-code-group img { width: 105px !important; height: 40px !important; border-radius: 4px; cursor: pointer; flex-shrink: 0; display: block; object-fit: contain; background: #f8fafc; border: 1px solid #cfdde4; box-sizing: border-box; }
.mk-btn--captcha-refresh, .mk-btn--otp-send { height: 40px !important; box-sizing: border-box !important; padding: 0 12px !important; font-size: 13px !important; font-weight: 600 !important; border-radius: 4px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; white-space: nowrap !important; flex-shrink: 0 !important; background: #334155 !important; color: #f8fafc !important; border: 1px solid #475569 !important; cursor: pointer; }
.mk-otp-group { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 40px; flex-wrap: nowrap; }
.mk-otp-group .inp--otp { flex: 1; min-width: 80px; letter-spacing: 1px; }

/* ---------- 投票彈窗頂部橫條動態狀態指示器 (Zero Layout Shift) ---------- */
.mk-vote-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-sizing: border-box;
  word-break: break-word;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.mk-vote-banner[hidden] {
  display: none;
}
.mk-vote-banner.is-default {
  background: rgba(251, 191, 36, 0.12);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}
.mk-vote-banner.is-error {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #b91c1c;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.mk-vote-banner.is-success {
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #047857;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.mk-vote-banner.is-loading {
  background: #f8fafc;
  border: 1.5px solid #94a3b8;
  color: #334155;
  animation: mk-banner-pulse 1.4s infinite ease-in-out;
}
@keyframes mk-banner-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.995); }
}
@media (max-width: 640px) {
  .mk-vote-banner {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 40px;
    margin-bottom: 12px;
  }
}

.mk-vote-notify { display: none; align-items: center; gap: 10px; margin: 12px 0 14px; padding: 10px 14px; border-radius: 6px; background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; font-size: 13.5px; line-height: 1.5; }
.mk-vote-notify.is-active { display: flex !important; }
.mk-vote-notify .mk-notify-icon { font-size: 20px; flex-shrink: 0; }

/* ---------- 投票狀態即時提示卡片（醒目白底、邊框、加大加粗） ---------- */
.mk-vote-status {
  display: none;
  background: #ffffff;
  border-radius: 8px;
  padding: 11px 16px;
  margin: 12px 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}
.mk-vote-status[hidden] {
  display: none !important;
}
.mk-vote-status.is-active {
  display: block !important;
}
.mk-vote-status.is-error {
  border: 2px solid #ef4444;
  color: #b91c1c;
}
.mk-vote-status.is-success {
  border: 2px solid #10b981;
  color: #047857;
}
@media (max-width: 640px) {
  .mk-vote-status {
    font-size: 14px;
    padding: 10px 12px;
  }
}
@media (max-width: 640px) {
  .mk-form-dark { padding: 12px 12px !important; }
  .mk-vote-grid { grid-template-columns: 1fr; gap: 12px; min-width: 0; }
  .mk-form-item { flex-direction: column; align-items: stretch; min-height: auto; width: 100%; min-width: 0; }
  .mk-form-lbl { width: 100%; flex: 0 0 auto; text-align: left; margin: 0 0 4px 0; line-height: 1.3; font-size: 13.5px; }
  .mk-form-item .inp { width: 100%; min-width: 0; }
  .mk-code-group, .mk-otp-group { width: 100%; min-width: 0; }
  .mk-code-group .inp--captcha, .mk-otp-group .inp--otp { flex: 1; min-width: 0; }
  .mk-code-group img { width: 95px !important; height: 38px !important; }
  .mk-btn--captcha-refresh, .mk-btn--otp-send { height: 38px !important; padding: 0 8px !important; font-size: 12.5px !important; }
}
body.mk-mobile .mk-form-dark { padding: 12px 12px !important; }
body.mk-mobile .mk-vote-grid { grid-template-columns: 1fr; gap: 12px; min-width: 0; }
body.mk-mobile .mk-form-item { flex-direction: column; align-items: stretch; min-height: auto; width: 100%; min-width: 0; }
body.mk-mobile .mk-form-lbl { width: 100%; flex: 0 0 auto; text-align: left; margin: 0 0 4px 0; line-height: 1.3; font-size: 13.5px; }
body.mk-mobile .mk-form-item .inp { width: 100%; min-width: 0; }
body.mk-mobile .mk-code-group, body.mk-mobile .mk-otp-group { width: 100%; min-width: 0; }
body.mk-mobile .mk-code-group .inp--captcha, body.mk-mobile .mk-otp-group .inp--otp { flex: 1; min-width: 0; }
body.mk-mobile .mk-code-group img { width: 95px !important; height: 38px !important; }
body.mk-mobile .mk-btn--captcha-refresh, body.mk-mobile .mk-btn--otp-send { height: 38px !important; padding: 0 8px !important; font-size: 12.5px !important; }

/* ---------- 表單（報名） ---------- */
.mk-formrow { display: grid; grid-template-columns: 195px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.mk-formrow .lbl { text-align: right; color: #35586e; font-weight: 700; font-size: 17px; white-space: nowrap; padding-top: 7px; }
@media (max-width: 640px) { .mk-formrow { grid-template-columns: 1fr; } .mk-formrow .lbl { text-align: left; padding-top: 0; } }
.mk-input, .mk-select, .mk-textarea { border: 1px solid #b9cdd7; background: #fff; min-height: 40px; border-radius: 4px; display: flex; align-items: center; padding: 5px 12px; color: #526b7a; font-size: 16.5px; width: 100%; font-family: inherit; }
.mk-input:focus, .mk-textarea:focus { outline: 2px solid var(--mk-teal); outline-offset: -1px; }
.mk-textarea { min-height: 120px; align-items: flex-start; }
.mk-hint { font-size: 15px; color: #526b7a; }
.mk-filebtn { display: inline-block; border: 1px solid #b9cdd7; background: linear-gradient(180deg,#fff,#eef5f8); padding: 4px 14px; font-size: 15px; white-space: nowrap; border-radius: 4px; color: #35586e; cursor: pointer; }
.mk-uploadcol { border: 1px solid var(--mk-line); border-radius: 8px; padding: 16px 18px; text-align: center; background: var(--mk-soft); min-width: 0; }
.mk-uploadcol h4 { font-size: 20px; color: var(--mk-navy); }
.mk-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
body.mk-mobile .mk-duo { grid-template-columns: 1fr; }
body.mk-mobile .mk-uploadcol .mk-filename-preview { display: block; margin-left: 0 !important; margin-top: 8px; }
.mk-filename-preview { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
@media (max-width: 760px) {
  .mk-duo { grid-template-columns: 1fr; }
  .mk-uploadcol .mk-filename-preview { display: block; margin-left: 0 !important; margin-top: 8px; }
}
.mk-numrow { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-num { width: 46px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1.6px solid #b9cdd7; background: #fff; font-size: 17px; font-weight: 800; border-radius: 6px; color: #35586e; cursor: pointer; font-family: inherit; padding: 0; }
.mk-num:hover { border-color: var(--mk-teal); color: var(--mk-teal); }
.mk-num.on { background: linear-gradient(180deg, var(--mk-teal-bright, #23b3ab), var(--mk-teal)); border-color: var(--mk-teal-dark, #106b66); color: #fff; }

/* ---------- accordion（P09：原生 details） ---------- */
.mk-acc { border: 1px solid var(--mk-line); border-radius: 8px; overflow: hidden; }
.mk-acc details { border-bottom: 1px solid var(--mk-line); }
.mk-acc details:last-child { border-bottom: none; }
.mk-acc summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; color: var(--mk-navy); background: linear-gradient(180deg,#fff,#f2f8fa); display: flex; align-items: center; gap: 10px; font-size: 16px; }
.mk-acc summary::-webkit-details-marker { display: none; }
.mk-acc summary::before { content: "Q"; background: var(--mk-gold); color: #4a3603; font-size: 13px; font-weight: 900; border-radius: 5px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mk-acc summary::after { content: "＋"; margin-left: auto; color: var(--mk-teal); font-size: 19px; font-weight: 400; }
.mk-acc details[open] summary::after { content: "－"; }
.mk-acc .body { padding: 14px 20px 18px 52px; background: #fff; }
@media (max-width: 640px) { .mk-acc .body { padding-left: 20px; } }

/* ---------- P09 懶人包連續圖堆疊（高度自適應、水平絕對置中） ---------- */
.mk-imgstack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  gap: var(--imgstack-gap, 0px);
}
.mk-imgstack > *,
.mk-imgstack img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
.mk-imgstack > *:first-child,
.mk-imgstack img:first-child {
  border-radius: 0;
}
.mk-imgstack > *:last-child,
.mk-imgstack img:last-child {
  border-radius: 0;
}
.mk-imgstack > *:only-child,
.mk-imgstack img:only-child {
  border-radius: 0;
}
.mk-dummies__item {
  min-height: 260px;
  background: #e2e8f0;
  transition: background-color 0.25s ease;
}
.mk-dummies__item.is-loaded {
  min-height: 0;
  background: transparent;
}

.mk-captcha-audio-txt { display: none !important; }
.mk-btn--captcha-audio { padding: 0 10px !important; min-width: 40px; }
.mk-btn--captcha-audio.is-playing {
  opacity: 0.65;
  cursor: wait;
}

/* ---------- P10 影片標題列 ---------- */
.mk-vtitle { background: linear-gradient(180deg,#fff,#f2f8fa); border: 1px solid var(--mk-line); border-bottom: none; padding: 7px 14px; font-size: 14.5px; font-weight: 700; color: var(--mk-navy); border-radius: 7px 7px 0 0; }
.mk-video-stack { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 100%; margin: 14px auto 0; }
.mk-video-stack .mk-videobox, .mk-video-stack .mk-vtitle + .mk-videobox { border-radius: 8px; background: #e2e8f0; }
.mk-video-stack .mk-vtitle + .mk-videobox { border-radius: 0 0 8px 8px; }

/* ---------- 網站地圖 ---------- */
.mk-sitemap { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px 34px; font-size: 14.5px; }
@media (max-width: 900px) { .mk-sitemap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mk-sitemap { grid-template-columns: 1fr; } }
.mk-sitemap .grp b { display: block; color: var(--mk-navy); border-bottom: 2px solid var(--mk-gold); margin-bottom: 7px; padding-bottom: 4px; font-size: 15.5px; }
.mk-sitemap .grp > a { display: block; color: #4a6272; text-decoration: none; padding: 2.5px 0 2.5px 14px; position: relative; }
.mk-sitemap .grp > a::before { content: "·"; position: absolute; left: 2px; color: var(--mk-gold-deep); font-weight: 900; }
.mk-sitemap .grp > a:hover { color: var(--mk-blue); }
.mk-accesskey { color: inherit; text-decoration: none; font-weight: 700; }
.mk-accesskey:focus-visible { outline: 2px solid var(--mk-gold-deep); outline-offset: 2px; border-radius: 2px; }
.mk-a11y-guide { background: #f8fbfd; border: 1px solid #d9e4ec; border-radius: 8px; padding: 18px 22px; margin-bottom: 20px; font-size: 15px; line-height: 1.75; color: #2b3f4e; }
.mk-a11y-guide p { margin: 0 0 8px; }
.mk-a11y-guide ul { margin: 4px 0 14px; padding-left: 22px; }
.mk-a11y-guide ul:last-child { margin-bottom: 0; }
.mk-a11y-guide li { margin-bottom: 4px; }
.mk-a11y-guide kbd { display: inline-block; padding: 1px 6px; font-size: 13px; font-family: inherit; font-weight: 700; color: var(--mk-navy); background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; }
.mk-search-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #e6f2fa; color: var(--mk-navy); margin-right: 6px; }

/* ---------- Footer ---------- */
.mk-footer { border-top: 1px solid var(--mk-line); margin-top: auto; padding: 26px 12px 28px; text-align: center; background: #ffffff; }
.mk-footer .cr { font-size: 14px; color: #000000; font-weight: 500; margin-bottom: 10px; }
.mk-footer .mk-footer__line { display: inline; }
.mk-footer .mk-footer__line + .mk-footer__line { margin-left: 0.4em; }
.mk-footer .badge { display: inline-flex; align-items: center; justify-content: center; background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.mk-footer .badge a { display: inline-block; line-height: 0; }
.mk-footer .badge img { width: 88px; height: 31px; display: block; }

/* ---------- 手機版緊湊排版與縮小尺寸視覺保護規則（rev.8） ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; line-height: 1.62; }
  .mk-main { padding-bottom: 40px !important; }
  .mk-p { margin-bottom: 10px; }
  .mk-h2 { font-size: 19.5px; margin: 18px 0 8px; }
  .mk-main :where(h2:not([class]), h2[class^="c-"], h2[class*=" c-"], h2[class^="size-"], h2[class*=" size-"]) { font-size: 19.5px; margin: 18px 0 8px; }
  :where(.mk-main ol > li)::marker {
    font-size: 19.5px;
  }
  .mk-h2--big { font-size: 21.5px; margin: 16px 0 10px; }
  .mk-li { margin: 0 0 8px 0.4em; }
  .mk-li-sub { margin: 0 0 6px 1.2em; }
  .mk-pill { font-size: 18px; padding: 4px 18px; }
  .mk-diamond { font-size: 18px; }
  .mk-input, .mk-select, .mk-textarea { font-size: 15.5px; min-height: 38px; }
  .mk-btn { font-size: 16px; padding: 7px 16px; }
  .mk-filebtn { font-size: 14.5px; }
  .mk-hint { font-size: 14px; }
  .mk-uploadcol h4 { font-size: 18px; }
  .mk-video-stack { width: 95% !important; max-width: 95% !important; margin: 14px auto 0 !important; padding: 0 !important; }
  .mk-video-stack .mk-vtitle, .mk-video-stack .mk-videobox { width: 100% !important; box-sizing: border-box !important; }
  .mk-sample-desc { width: 95% !important; max-width: 95% !important; margin: 0 auto 10px !important; padding: 0 !important; }
  .mk-main--sample { padding-left: 0 !important; padding-right: 0 !important; }

  /* 手機版頁尾版權 4 行斷行優化 */
  .mk-footer .mk-footer__line {
    display: block !important;
    margin-left: 0 !important;
    white-space: normal !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    text-align: center !important;
  }
  .mk-footer .badge {
    margin-top: 8px !important;
  }
}

body.mk-mobile .mk-footer .mk-footer__line {
  display: block !important;
  margin-left: 0 !important;
  white-space: normal !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

body.mk-mobile .mk-main { padding-bottom: 40px !important; }
body.mk-mobile .mk-video-stack { width: 95% !important; max-width: 95% !important; margin: 14px auto 0 !important; padding: 0 !important; }
body.mk-mobile .mk-video-stack .mk-vtitle, body.mk-mobile .mk-video-stack .mk-videobox { width: 100% !important; box-sizing: border-box !important; }
body.mk-mobile .mk-sample-desc { width: 95% !important; max-width: 95% !important; margin: 0 auto 10px !important; padding: 0 !important; }
body.mk-mobile .mk-main--sample { padding-left: 0 !important; padding-right: 0 !important; }

/* ---------- modal 暗表單窄寬 wrap（rev.4） ---------- */
@media (max-width: 480px) {
  .mk-form-dark .lbl { width: 100%; }
  .mk-form-dark .inp { flex: 1 1 100%; }
}

/* ---------- 頁尾訊息（flash／名單外提示） ---------- */
.mk-flash { background: #e6f7f5; border: 1px solid #9adfd9; color: #0f6f6a; border-radius: 6px; padding: 10px 14px; margin: 12px 0; }
.mk-flash--err { background: #fdecea; border-color: #f1b0aa; color: var(--mk-red); }

/* ---------- 階梯斷點 container 斷點（1200px 主流容器，標題靠外緣 0px，內文深度內縮 32px） ---------- */
@media (min-width: 576px)  { .mk-container, .mk-title, .mk-main { max-width: 540px; margin: 0 auto; } }
@media (min-width: 768px)  { .mk-container, .mk-title, .mk-main { max-width: 720px; margin: 0 auto; } }
@media (min-width: 992px)  { .mk-container, .mk-title, .mk-main { max-width: 960px; margin: 0 auto; } }
@media (min-width: 1200px) {
  .mk-container, .mk-title, .mk-main {
    max-width: 1200px;
    margin: 0 auto;
  }
  .mk-title {
    padding-left: 0px;
    padding-right: 0px;
  }
  .mk-main {
    padding-left: 32px;
    padding-right: 32px;
  }
}
@media (min-width: 1400px) {
  .mk-container, .mk-title, .mk-main {
    max-width: 1200px;
    margin: 0 auto;
  }
  .mk-title {
    padding-left: 0px;
    padding-right: 0px;
  }
  .mk-main {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ---------- 動態減弱 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- P14 signup 我要報名專用樣式 (rev.8) ---------- */
.p14-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
@media (max-width: 860px) { .p14-grid { grid-template-columns: 1fr; } }
.p14-grid .span2 { grid-column: 1 / -1; }
.p14-field { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; align-items: start; }
.p14-field .lbl { color: #35586e; font-weight: 700; font-size: 17px; text-align: right; white-space: nowrap; padding-top: 9px; }
.p14-field .lbl:empty { display: none; }
@media (max-width: 640px) {
  .p14-field { grid-template-columns: 1fr; gap: 4px; }
  .p14-field .lbl { text-align: left; font-size: 16px; white-space: nowrap; padding-top: 0; }
}

/* 控制項包覆容器與欄位級紅字錯誤提示 */
.p14-control {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.mk-field-error {
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mk-field-error::before {
  content: "⚠ ";
}
.mk-field-error[hidden] {
  display: none !important;
}

/* 欄位錯誤高亮與動畫 */
.mk-input.mk-inp-error,
.mk-textarea.mk-inp-error,
.mk-filebtn.mk-inp-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
  animation: mkShake 0.3s ease-in-out;
}

/* 選檔成功視覺樣式 */
.mk-filebtn.has-file {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
  font-weight: 700;
}
.mk-filename-preview.has-file {
  color: #0f766e !important;
  font-weight: 700 !important;
}
.p14-member { border: 1px solid var(--mk-line); border-radius: 8px; padding: 12px 14px; margin: 14px 0; background: #fbfdfe; }
.p14-member > h3 { color: var(--mk-navy); font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.p14-member > h3::before { content: attr(data-no); background: var(--mk-gold); color: #4a3603; border-radius: 5px; padding: 0 8px; font-size: 14.5px; }
@media (max-width: 640px) {
  .p14-member > h3 { font-size: 17.5px; }
}
.p14-notice { list-style: none; margin: 0 0 18px 0; padding: 0; }
.p14-notice li { margin: 0 0 6px 0; line-height: 1.72; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .p14-notice li { margin-bottom: 5px; line-height: 1.62; }
}
.p14-idrow { display: grid; grid-template-columns: 108px repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: center; }
@media (max-width: 640px) { .p14-idrow { grid-template-columns: 1fr; } }
.p14-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.p14-captcha { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.p14-captcha > span:first-child { white-space: nowrap; font-size: 17px; }
@media (max-width: 640px) { .p14-captcha > span:first-child { font-size: 16px; } }
.p14-captcha .mk-ph { width: 110px; height: 42px; border-radius: 5px; font-size: 20px; letter-spacing: 3px; font-weight: 800; }
.p14-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.p14-overlay[hidden], .p14-loading[hidden] { display: none !important; }
@keyframes p14-modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.p14-loading {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  animation: p14-modal-in .25s ease-out;
  box-sizing: border-box;
}
.p14-spinner { width: 26px; height: 26px; border: 3px solid #cfdde4; border-top-color: var(--mk-teal); border-radius: 50%; animation: p14-spin .85s linear infinite; flex-shrink: 0; }
@keyframes p14-spin { to { transform: rotate(360deg); } }
.p14-prog { height: 8px; background: #dbe7ed; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.p14-prog-bar { height: 100%; background: var(--mk-teal); border-radius: 999px; }

/* ---------- 報名頁圖形驗證碼元件 (42px 高度統一、狀態齊頭、自動清除) ---------- */
.p14-captcha__wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 10px;
  box-sizing: border-box;
}
.p14-captcha__lbl {
  color: #35586e;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  line-height: 42px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.p14-captcha__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.p14-captcha__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p14-captcha__input {
  width: 140px;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  box-sizing: border-box !important;
  font-size: 16px;
  padding: 0 12px;
  line-height: 42px;
  margin: 0 !important;
}
.p14-captcha__img {
  width: 105px;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 4px;
  border: 1px solid #cfdde4;
  background: #f8fafc;
  object-fit: contain;
  cursor: pointer;
  box-sizing: border-box !important;
  display: block;
}
.p14-captcha__btn {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.p14-captcha__status {
  width: 100%;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: #dc2626;
  margin-top: 6px;
  min-height: 22px;
  line-height: 1.4;
  word-break: break-word;
  transition: opacity 0.2s ease;
}
.p14-captcha__status:empty {
  display: none;
}
.p14-captcha__status.is-success {
  color: #059669;
}
@media (max-width: 640px) {
  .p14-captcha__wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 16px 0 8px;
  }
  .p14-captcha__lbl {
    line-height: 1.4;
    font-size: 16px;
    text-align: left;
  }
  .p14-captcha__row {
    width: 100%;
    gap: 8px;
  }
  .p14-captcha__input {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 15px;
  }
  .p14-captcha__img {
    width: 95px;
  }
  .p14-captcha__btn {
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}

/* ---------- 學生證上傳範例卡片 (.p14-card-samples) ---------- */
.p14-card-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.p14-card-sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--mk-line, #cfdde4);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.p14-card-sample__img {
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.p14-card-sample__caption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #35586e;
  text-align: center;
}
@media (max-width: 640px) {
  .p14-card-samples {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ═════ 內容排版：表格與圖片通用樣式 (G05 規格) ═════ */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 16px;
  background-color: #ffffff;
}
.content-table th,
.content-table td {
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.content-table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: #1e293b;
}
.content-table tbody tr:nth-child(even) {
  background-color: #fbfcfe;
}
.content-table tbody tr:hover {
  background-color: #f1f5f9;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}
.img-center {
  display: block;
  margin: 16px auto;
  max-width: 100%;
}
.img-left {
  float: left;
  margin: 0 16px 14px 0;
  max-width: 100%;
}
.img-right {
  float: right;
  margin: 0 0 14px 16px;
  max-width: 100%;
}
.img-w-5   { width: 5% !important;  height: auto; }
.img-w-10  { width: 10% !important; height: auto; }
.img-w-15  { width: 15% !important; height: auto; }
.img-w-20  { width: 20% !important; height: auto; }
.img-w-25  { width: 25% !important; height: auto; }
.img-w-30  { width: 30% !important; height: auto; }
.img-w-35  { width: 35% !important; height: auto; }
.img-w-40  { width: 40% !important; height: auto; }
.img-w-45  { width: 45% !important; height: auto; }
.img-w-50  { width: 50% !important; height: auto; }
.img-w-55  { width: 55% !important; height: auto; }
.img-w-60  { width: 60% !important; height: auto; }
.img-w-65  { width: 65% !important; height: auto; }
.img-w-70  { width: 70% !important; height: auto; }
.img-w-75  { width: 75% !important; height: auto; }
.img-w-80  { width: 80% !important; height: auto; }
.img-w-85  { width: 85% !important; height: auto; }
.img-w-90  { width: 90% !important; height: auto; }
.img-w-95  { width: 95% !important; height: auto; }
.img-w-100 { width: 100% !important; height: auto; }

/* 縮圖上下補黑底改為透明度 0.9 白色 */
.mk-entry .body .mk-ph--thumb,
.mk-workcard .mk-ph--thumb {
  background: rgba(255, 255, 255, 0.9) !important;
}
.mk-entry .body .mk-ph--thumb img,
.mk-workcard .mk-ph--thumb img {
  background: transparent !important;
}

/* ---------- 縮圖 16:9 媒體視框 (嚴格限制遮罩與圖片範圍) ---------- */
.mk-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  background: #000000;
  isolation: isolate;
  transform: translateZ(0);
}
.mk-thumb-wrap img,
.mk-entry .body .mk-ph--thumb .mk-thumb-wrap img,
.mk-workcard .mk-ph--thumb .mk-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent !important;
}

/* ═════ 影片縮圖灰色遮罩 (0.3) 與 SVG Play Icon ═════ */
.mk-thumb-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
  z-index: 2;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.mk-thumb-overlay * {
  pointer-events: none !important;
}

.mk-thumb-overlay .mk-play-icon {
  width: 48px;
  height: 48px;
  color: #db2b42;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 滑鼠懸停感應：只作用在縮圖本體與視框 hover，離開保證 100% 復位，杜絕整卡 hover 干擾與閃爍 */
.mk-ph--thumb:hover .mk-thumb-overlay,
.mk-thumb-wrap:hover .mk-thumb-overlay {
  background-color: rgba(0, 0, 0, 0);
}

.mk-ph--thumb:hover .mk-play-icon,
.mk-thumb-wrap:hover .mk-play-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(219, 43, 66, 0.5));
}

/* 我要報名頁面（signup.php）內容字體統一為 18px */
.mk-page--signup .p14-notice li,
.mk-page--signup .p14-field .lbl,
.mk-page--signup .mk-input,
.mk-page--signup .mk-select,
.mk-page--signup .mk-textarea,
.mk-page--signup .mk-filebtn,
.mk-page--signup .mk-btn,
.mk-page--signup .p14-actions .mk-btn,
.mk-page--signup .p14-member > h3,
.mk-page--signup .mk-h2--big,
.mk-page--signup .mk-h2,
.mk-page--signup .mk-uploadcol h4,
.mk-page--signup .p14-captcha__lbl,
.mk-page--signup .p14-captcha__input,
.mk-page--signup .p14-captcha__btn,
.mk-page--signup .mk-filename-preview,
.mk-page--signup .p14-card-sample__caption,
.mk-page--signup .mk-hint,
.mk-page--signup .mk-field-error {
  font-size: 18px !important;
}

.mk-page--signup .mk-h2--big,
.mk-page--signup .mk-h2,
.mk-page--signup .p14-member > h3,
.mk-page--signup .mk-uploadcol h4 {
  font-weight: 800;
}

.mk-page--signup .mk-input,
.mk-page--signup .mk-select,
.mk-page--signup .mk-textarea {
  min-height: 44px;
}

/* G07 / Modern Web Guidance: 原生使用者互動無效狀態增強 */
.mk-input:user-invalid,
.inp:user-invalid {
  border-color: #ef4444;
  outline-color: #ef4444;
}

/* ---------- 投票燈箱前往投票分流入口 (.mk-vote-chooser, .mk-vote-back) ---------- */
.mk-vote-chooser {
  text-align: center;
  padding: 16px 10px 20px;
}
.mk-vote-chooser[hidden] {
  display: none !important;
}
.mk-vote-chooser__title {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.mk-vote-chooser__desc {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 22px;
}
.mk-vote-chooser__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}
.mk-vote-chooser__item {
  flex: 1;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mk-vote-chooser__item .mk-btn {
  width: 100%;
  height: 44px;
  font-size: 15.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}
.mk-vote-chooser__item .mk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.mk-btn--outline-light {
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
}
.mk-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
}
.mk-vote-chooser__hint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  text-align: center;
}
.mk-vote-back {
  margin-bottom: 12px;
  text-align: left;
}
.mk-vote-back[hidden] {
  display: none !important;
}
.mk-vote-back__btn {
  background: transparent;
  border: none;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.mk-vote-back__btn:hover {
  color: #bfdbfe;
  text-decoration: underline;
}
@media (max-width: 640px) {
  .mk-vote-chooser__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .mk-vote-chooser__item {
    max-width: 100%;
    width: 100%;
  }
}

/* 投票按鈕禁用灰色樣式 (Round 232) */
#btnSubmitVote:disabled,
.mk-btn--gold:disabled,
.mk-btn--primary:disabled {
  background: #64748b !important;
  border-color: #475569 !important;
  color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
  box-shadow: none !important;
  transform: none !important;
}

#btnSendOtp:disabled,
.mk-btn--otp-send:disabled,
.mk-btn--otp:disabled {
  background: #475569 !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}





