/* =========================================================
   碩士班｜跨領域招生特色＋兩頁質感升級　v2（2026.11.25）
   用在 admission-master.html（#cross 完整版）與 master.html（.mx-lite 精簡版）
   配色：深墨＋香檳金（與首頁主視覺一致）＋低彩度輔色，取代原本的高飽和黃／紅／藍
   搭配 assets/js/master-cross.js
   ========================================================= */
.ms-page {
	--gold: #DCBC7E; --gold-d: #A98447; --gold-l: #F2E6C9; --gold-bg: #F7F1E3;
	--ox: #8E4A45;   /* 酒紅（原鮮紅） */
	--navy: #3B587D; /* 靛藍（原亮藍） */
	--sage: #557A69; /* 灰綠 */
	--plum: #6A5C8A; /* 灰紫 */
	--ochre: #9C7B45;/* 赭金 */
	--slate: #5B616C;
	--ink-d: #141519;
	--ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 0. 兩頁共用質感修正（覆蓋 labs.css／master.css 的高飽和色） ---------- */
.ms-page .labs-intro .labs-mono { color: var(--gold-d); }
.ms-page .labs-intro h2 em { background: linear-gradient(transparent 64%, var(--gold-l) 64%); }
.ms-page .labs-marquee span::after { color: var(--gold); }
.ms-page .labs-marquee { background: var(--ink-d); }
.ms-page .labs-section-head { position: relative; }
.ms-page .labs-section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--gold-d); transition: width 1.4s var(--ease) .2s; }
.ms-page .labs-section-head.in::after, .ms-page.no-io .labs-section-head::after { width: 100%; }
.ms-page .ms-foot a { color: var(--gold-d); }

/* 卡片共用：細緻浮起＋頂端金線 */
.ms-page .ms-feat > div, .ms-page .ma-hl > div, .ms-page .ma-steps li, .ms-page .ma-schol > div, .ms-page .ms-flow li, .ms-page .ms-sem, .ms-page .mx-feat > div, .ms-page .mx-prac > div, .ms-page .mx-study > div {
	position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ms-page .ms-feat > div:hover, .ms-page .ma-hl > div:hover, .ms-page .ma-steps li:hover, .ms-page .ma-schol > div:hover, .ms-page .ms-flow li:hover, .ms-page .mx-feat > div:hover, .ms-page .mx-prac > div:hover, .ms-page .mx-study > div:hover {
	transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 44px -30px rgba(20,21,25,.45); }
.ms-page .ms-feat > div::before, .ms-page .ma-hl > div::before, .ms-page .ma-steps li::before {
	content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, var(--gold-d), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ms-page .ms-feat > div:hover::before, .ms-page .ma-hl > div:hover::before, .ms-page .ma-steps li:hover::before { transform: scaleX(1); }

/* master.html 區塊 */
.ms-page .ms-feat i { background: var(--ink-d); color: var(--gold); }
.ms-page .ms-fields > div { background: linear-gradient(155deg, var(--c), color-mix(in srgb, var(--c) 70%, #101114)); transition: transform .5s var(--ease); }
.ms-page .ms-fields > div:nth-child(1) { --c: var(--ox) !important; }
.ms-page .ms-fields > div:nth-child(2) { --c: var(--navy) !important; }
.ms-page .ms-fields > div:nth-child(3) { --c: var(--sage) !important; }
.ms-page .ms-fields > div:nth-child(4) { --c: var(--ochre) !important; }
.ms-page .ms-fields > div::after { background: none; border: 1px solid rgba(255,255,255,.22); width: 140px; height: 140px; right: -40px; bottom: -40px; transition: transform .8s var(--ease); }
.ms-page .ms-fields > div:hover { transform: translateY(-5px); }
.ms-page .ms-fields > div:hover::after { transform: scale(1.35); }
.ms-page .ms-sem { border-top: 2px solid var(--gold-d); }
.ms-page .ms-sem li.req { background: #F6EEEC; border-left-color: var(--ox); }
.ms-page .ms-notes b { background: var(--ox); }
.ms-page .ms-flow li:not(:last-child)::after { background: var(--gold); color: var(--ink-d); }
.ms-page .ms-flow span { color: var(--ox); }
.ms-page .ms-flow p b { background: linear-gradient(transparent 62%, var(--gold-l) 62%); }
.ms-page .ma-cross a:hover, .ms-page .ma-contact a:hover, .ms-page .ma-news a:hover { background: var(--gold-bg); }
.ms-page .ms-fac img { transition: transform .6s var(--ease), filter .6s; filter: grayscale(.25); }
.ms-page .ms-fac a:hover img { transform: scale(1.06); filter: none; }
.ms-page .ms-cta { background: var(--ink-d); position: relative; overflow: hidden; }
.ms-page .ms-cta .labs-mono { color: var(--gold); }
.ms-page .ms-cta > a { background: var(--gold); color: var(--ink-d) !important; }
.ms-page .ms-cta > a:hover { background: #fff; }

/* admission-master.html 區塊 */
.ms-page .ma-hl b { color: var(--ox); }
.ms-page .ma-route { background-color: var(--ink-d); }
.ms-page .ma-route.b { background-color: var(--navy); }
.ms-page .ma-route .labs-mono { color: var(--gold); }
.ms-page .ma-route .go { background: var(--gold); }
.ms-page .ma-note { background: var(--gold-bg); }
.ms-page .ma-steps li > span { background: var(--ink-d); color: var(--gold); font-family: var(--serif-title, serif); }
.ms-page .ma-schol > div { border-left: 3px solid var(--gold-d); }
.ms-page .ma-schol b { color: var(--ox); }
.ms-page .ma-alumni span { transition: transform .4s var(--ease), box-shadow .4s; }
.ms-page .ma-alumni span:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 16px 30px -22px rgba(20,21,25,.5); }

/* 深色面板：游標聚光（JS 寫入 --mx --my） */
.mx-spot { background-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(220,188,126,.12), transparent 45%), var(--grad, none) !important; }

/* 開場「非本科也歡迎」膠囊 */
.mx-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 9px 10px 9px 16px; border-radius: 999px; background: var(--ink-d); color: #fff !important; font-size: 14.5px; font-weight: 700; transition: transform .3s var(--ease); }
.mx-pill span { padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--ink-d); font-size: 12.5px; }
.mx-pill:hover { transform: translateY(-2px); }

/* =========================================================
   1. #cross 完整版
   ========================================================= */
.mx { margin-top: 88px; scroll-margin-top: 90px; }
.mx h3, .mx h4, .mx h5, .mx h6 { font-family: inherit; }

/* ---------- A. 主視覺 ---------- */
.mx-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; padding: 64px 56px; border-radius: 32px; background-color: var(--ink-d); color: #fff; isolation: isolate; }
.mx-hero::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(closest-side, rgba(59,88,125,.38), transparent 70%) 74% 32% / 60% 60% no-repeat, radial-gradient(closest-side, rgba(142,74,69,.22), transparent 70%) 16% 90% / 50% 50% no-repeat, radial-gradient(closest-side, rgba(220,188,126,.13), transparent 70%) 92% 92% / 40% 40% no-repeat; animation: mxGlow 18s ease-in-out infinite alternate; }
.mx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); }
@keyframes mxGlow { to { transform: translate(-6%, 4%) rotate(8deg); } }
.mx-hero .labs-mono { color: var(--gold); display: flex; align-items: center; gap: 10px; }
.mx-hero .labs-mono::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.mx-hero h3 { margin: 20px 0 0; font-family: var(--serif-title, serif) !important; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.22; font-weight: 900; letter-spacing: .02em; color: #fff; }
.mx-hero h3 em { font-style: normal; color: var(--gold); }
/* 逐字進場（em 內的字用香檳金流光） */
.mx-ch { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s; transition-delay: calc(var(--i) * 32ms + .15s); }
.mx-hero.in .mx-ch, .no-io .mx-ch { opacity: 1; transform: none; filter: none; }
.mx-hero h3 em .mx-ch { color: var(--gold); }
.mx-hero.in h3 em .mx-ch { animation: mxGlint 5.5s ease-in-out infinite; animation-delay: calc(var(--j, 0) * 110ms + 1.6s); }
@keyframes mxGlint { 0%, 78%, 100% { color: var(--gold); text-shadow: none; } 86% { color: #FFF8E6; text-shadow: 0 0 18px rgba(247,235,205,.55); } }
.mx-hero > div > p { margin: 22px 0 0; font-size: 16px; line-height: 1.95; color: rgba(255,255,255,.72); max-width: 34em; }
.mx-hero > div > p b { color: #fff; font-weight: 700; }

/* 公式 */
.mx-eq { display: grid; grid-template-columns: 30px auto; justify-content: start; align-items: center; gap: 8px 10px; margin-top: 30px; }
.mx-eq > span { justify-self: start; display: inline-flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 9px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); }
.mx-eq small { font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.5); font-weight: 700; }
.mx-eq b { font-size: 18px; font-weight: 700; line-height: 1.4; white-space: nowrap; letter-spacing: .02em; }
.mx-eq .you { border-color: rgba(220,188,126,.55); }
.mx-eq .you b { color: var(--gold); }
.mx-eq .res { position: relative; background: linear-gradient(135deg, #F7EBCD, #DCBC7E); border-color: transparent; color: var(--ink-d); }
.mx-eq .res small { color: rgba(20,21,25,.55); }
.mx-eq .res b { font-family: var(--serif-title, serif); font-weight: 900; font-size: 21px; }
.mx-eq .res::before { content: ""; position: absolute; left: -40px; right: 0; top: -5px; height: 1px; background: rgba(255,255,255,.3); }
.mx-eq i { font-style: normal; font-size: 22px; font-weight: 300; color: rgba(255,255,255,.45); text-align: center; }
.mx-eq .sw { display: inline-block; transition: opacity .35s, transform .45s var(--ease), filter .35s; }
.mx-eq .sw.out { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.mx-eq .sw.pre { opacity: 0; transform: translateY(10px); filter: blur(4px); transition: none; }
.mx-eq > span.bar { grid-column: 2; justify-self: stretch; display: block; min-height: 0; height: 2px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 2px; }
.mx-eq .bar b { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.mx-eq .bar.run b { animation: mxBar 2.8s linear forwards; }
@keyframes mxBar { to { transform: scaleX(1); } }

.mx-hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mx-hero-act a { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .3s var(--ease), border-color .3s, color .3s; }
.mx-hero-act a:first-child { background: var(--gold); color: var(--ink-d) !important; }
.mx-hero-act a:first-child::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: mxSweep 4.5s ease-in-out infinite 1.5s; }
@keyframes mxSweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.mx-hero-act a:last-child { border: 1px solid rgba(255,255,255,.3); color: #fff !important; }
.mx-hero-act a:last-child:hover { border-color: var(--gold); color: var(--gold) !important; }

/* 軌道圖：細線＋訊號點＋視差 */
.mx-orbit { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto; perspective: 900px; }
.mx-orbit-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.mx-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mx-orbit .ring { fill: none; stroke: rgba(255,255,255,.14); stroke-width: .18; }
.mx-orbit .ring.d { stroke: rgba(220,188,126,.4); stroke-dasharray: .3 1.4; animation: mxSpin 80s linear infinite; transform-origin: 50% 50%; }
.mx-orbit .ring.d2 { animation-direction: reverse; animation-duration: 120s; }
.mx-orbit .ln { stroke: rgba(255,255,255,.16); stroke-width: .18; transition: stroke .5s, stroke-width .5s; }
.mx-orbit .ln.on { stroke: var(--gold); stroke-width: .3; }
.mx-orbit .sig { fill: var(--gold); }
@keyframes mxSpin { to { transform: rotate(360deg); } }
.mx-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(30px); border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 34% 28%, #FBF3DF, #DCBC7E 48%, #A98447 100%); color: var(--ink-d); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 0 0 12px rgba(220,188,126,.08), 0 0 0 26px rgba(220,188,126,.04), 0 24px 70px -12px rgba(220,188,126,.45); animation: mxPulse 4s ease-in-out infinite; }
.mx-core b { display: block; font: 900 clamp(20px, 2.4vw, 30px)/1 var(--serif-title, serif); letter-spacing: .12em; }
.mx-core span { display: block; margin-top: 6px; font-size: clamp(10px, .95vw, 12px); font-weight: 700; letter-spacing: .1em; }
@keyframes mxPulse { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 0 0 18px rgba(220,188,126,.07), 0 0 0 38px rgba(220,188,126,.025), 0 24px 70px -12px rgba(220,188,126,.55); } }
.mx-node { position: absolute; transform: translate(-50%, -50%) translateZ(50px); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(20,21,25,.78); color: rgba(255,255,255,.88); font: 500 13.5px/1 "Noto Sans TC", sans-serif; letter-spacing: .04em; white-space: nowrap; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.mx-node i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.mx-node:hover, .mx-node:focus-visible { border-color: rgba(220,188,126,.7); color: #fff; outline: none; }
.mx-node.on { background: var(--gold-l); color: var(--ink-d); border-color: var(--gold-l); font-weight: 700; box-shadow: 0 10px 30px -8px rgba(220,188,126,.55); }

/* ---------- 子導覽（#cross 內浮動） ---------- */
.mx-nav { position: fixed; left: 50%; bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(20,21,25,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .4s; }
.mx-nav.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mx-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.62) !important; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .3s, background .3s; }
.mx-nav a small { font: 600 10.5px/1 ui-monospace, Menlo, monospace; color: var(--gold-d); }
.mx-nav a:hover { color: #fff !important; }
.mx-nav a.on { background: var(--gold); color: var(--ink-d) !important; }
.mx-nav a.on small { color: var(--ink-d); }

/* ---------- 共用小標 ---------- */
.mx-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 80px 0 24px; scroll-margin-top: 100px; }
.mx-h h4 { margin: 0; font-family: var(--serif-title, serif) !important; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; }
.mx-h h4 small { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); }
.mx-h h4 small::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.mx-h p { margin: 0; font-size: 14px; color: var(--ink-3); }

/* ---------- B. 背景選擇器 ---------- */
.mx-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.mx-tab { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s, background .45s, color .45s, border-color .45s; }
.mx-tab::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.mx-tab svg { width: 28px; height: 28px; stroke: var(--c); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s, transform .6s var(--ease); }
.mx-tab b { font-size: 15.5px; font-weight: 900; line-height: 1.3; }
.mx-tab small { font-size: 12px; color: var(--ink-3); line-height: 1.4; transition: color .45s; }
.mx-tab:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -26px rgba(20,21,25,.55); }
.mx-tab:hover::before { transform: scaleX(1); }
.mx-tab:hover svg { transform: scale(1.1) rotate(-6deg); }
.mx-tab.on { background: var(--ink-d); border-color: var(--ink-d); color: #fff; box-shadow: 0 24px 40px -24px rgba(20,21,25,.7); }
.mx-tab.on::before { transform: scaleX(1); height: 3px; }
.mx-tab.on svg { stroke: color-mix(in srgb, var(--c) 45%, #fff); }
.mx-tab.on small { color: rgba(255,255,255,.6); }

.mx-panel { --c: var(--navy); position: relative; margin-top: 16px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 26px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 34px 60px -46px rgba(20,21,25,.55); }
.mx-pl { position: relative; padding: 38px 34px; background-color: var(--ink-d); color: #fff; overflow: hidden; isolation: isolate; }
.mx-pl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 9px); }
.mx-pl::after { content: attr(data-en); position: absolute; right: -4px; bottom: -12px; z-index: -1; font: 900 70px/1 var(--serif-title, serif); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; pointer-events: none; animation: mxDrift 14s ease-in-out infinite alternate; }
@keyframes mxDrift { to { transform: translateX(-24px); } }
.mx-pl .labs-mono { color: var(--gold); }
.mx-pl h5 { margin: 12px 0 0; font-family: var(--serif-title, serif) !important; font-size: clamp(26px, 2.8vw, 36px); font-weight: 900; line-height: 1.25; color: #fff; letter-spacing: .03em; }
.mx-pl .q { margin: 16px 0 0; font-size: 15.5px; line-height: 1.9; color: rgba(255,255,255,.82); }
.mx-pl .bring { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-pl .bring span { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(220,188,126,.4); color: var(--gold-l); font-size: 13px; font-weight: 500; }
.mx-pr { padding: 32px 34px; display: grid; gap: 20px; align-content: start; }
.mx-row h6 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.mx-row h6 i { font: 900 13px/1 var(--serif-title, serif); font-style: normal; color: var(--gold-d); }
.mx-row h6::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mx-row p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.mx-row p b { color: var(--ink); background: linear-gradient(transparent 64%, var(--gold-l) 64%); }
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; background: var(--bg); font-size: 14px; font-weight: 700; color: var(--ink); }
.mx-chips.c span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.mx-chips.o span { background: transparent; border: 1px solid var(--line); font-weight: 500; }
.mx-map { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-map span { padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 500; border: 1px dashed var(--line); color: var(--ink-3); transition: all .5s var(--ease); }
.mx-map span.on { border: 1px solid var(--ink-d); background: var(--ink-d); color: var(--gold-l); font-weight: 700; }
.mx-swap { animation: mxIn .7s var(--ease) both; }
.mx-pr .mx-swap:nth-child(2) { animation-delay: .07s; } .mx-pr .mx-swap:nth-child(3) { animation-delay: .14s; } .mx-pr .mx-swap:nth-child(4) { animation-delay: .21s; } .mx-pr .mx-swap:nth-child(5) { animation-delay: .28s; }
@keyframes mxIn { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } }
.mx-bridge { margin: 14px 0 0; display: flex; gap: 14px; align-items: flex-start; padding: 15px 20px; border-radius: 14px; background: var(--gold-bg); border: 1px solid #EADFC4; font-size: 14.5px; line-height: 1.75; }
.mx-bridge b { flex: none; padding: 3px 10px; border-radius: 6px; background: var(--ink-d); color: var(--gold); font-size: 12.5px; margin-top: 2px; }

/* ---------- C. 三大強化領域（淺色卡＋線條繪製） ---------- */
.mx-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mx-field { position: relative; overflow: hidden; min-height: 320px; padding: 30px 28px 28px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s, border-color .6s; isolation: isolate; }
.mx-field::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 85%) var(--my, 0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 55%); opacity: .7; transition: opacity .6s; }
.mx-field:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 30px 50px -36px color-mix(in srgb, var(--c) 70%, #000); }
.mx-field:hover::before { opacity: 1; }
.mx-field .n { display: flex; align-items: baseline; gap: 10px; font: 600 11.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .16em; color: var(--c); }
.mx-field .n b { font: 900 46px/1 var(--serif-title, serif); letter-spacing: 0; color: transparent; -webkit-text-stroke: 1px var(--c); }
.mx-field svg.ic { position: absolute; right: 18px; top: 18px; width: 120px; height: 120px; stroke: var(--c); fill: none; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: transform 1.2s var(--ease); }
.mx-field:hover svg.ic { transform: rotate(-8deg) scale(1.06); }
.mx-field svg.ic * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.mx-field.in svg.ic *, .no-io .mx-field svg.ic * { stroke-dashoffset: 0; }
.mx-field h5 { margin: 64px 0 0; font-family: var(--serif-title, serif) !important; font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1.3; letter-spacing: .02em; }
.mx-field h5 small { display: block; margin-top: 6px; font: 600 11.5px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mx-field p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.mx-field ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.mx-field li { padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 9%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font-size: 12.5px; font-weight: 700; }

/* 四項實務內容 */
.mx-prac { margin-top: 16px; display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.mx-prac > b { display: flex; align-items: center; padding: 0 22px; border-radius: 18px; background: var(--ink-d); color: var(--gold); font: 900 16px/1.45 var(--serif-title, serif); letter-spacing: .04em; }
.mx-prac > div { overflow: hidden; padding: 20px 18px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.mx-prac > div::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold)); transition: width 1.2s var(--ease) var(--d, 0s); }
.mx-prac.in > div::before, .no-io .mx-prac > div::before { width: 100%; }
.mx-prac h6 { margin: 0; font-size: 16.5px; font-weight: 900; }
.mx-prac h6 small { display: block; margin-top: 4px; font: 600 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--gold-d); text-transform: uppercase; }
.mx-prac p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ---------- D. 教學特色 ---------- */
.mx-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mx-feat > div { overflow: hidden; padding: 28px 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.mx-feat > div::after { content: ""; position: absolute; left: 26px; top: 0; width: 36px; height: 2px; background: var(--c); transition: width .7s var(--ease); }
.mx-feat > div:hover::after { width: calc(100% - 52px); }
.mx-feat .big { display: flex; align-items: baseline; gap: 8px; font: 900 46px/1 var(--serif-title, serif); color: var(--ink); }
.mx-feat .big small { font: 700 13px/1 "Noto Sans TC", sans-serif; color: var(--c); letter-spacing: .06em; }
.mx-feat h5 { margin: 16px 0 8px; font-size: 18px; font-weight: 900; }
.mx-feat p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.mx-disc { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mx-disc span { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: var(--bg); font-size: 13.5px; font-weight: 700; transition: background .4s, color .4s; }
.mx-disc span:hover { background: var(--ink-d); color: var(--gold-l); }
.mx-disc span i { width: 7px; height: 7px; border-radius: 1px; background: var(--k); transform: rotate(45deg); animation: mxBlink 3s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes mxBlink { 50% { transform: rotate(225deg) scale(1.4); } }
.mx-note { margin: 14px 0 0; padding: 16px 20px; border-radius: 14px; background-color: var(--ink-d); color: rgba(255,255,255,.8); font-size: 14.5px; line-height: 1.8; }
.mx-note b { color: var(--gold); }

/* ---------- E. 修業與出路 ---------- */
.mx-path { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; }
.mx-study { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mx-study > div { padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.mx-study b { display: block; font: 900 32px/1 var(--serif-title, serif); color: var(--ink); }
.mx-study b small { font: 700 13px/1 "Noto Sans TC", sans-serif; color: var(--gold-d); margin-left: 4px; }
.mx-study span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.mx-study .w { grid-column: 1 / -1; }
.mx-study b [data-count] { display: inline; margin: 0; font: inherit; color: inherit; }
.mx-study .w ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: o; }
.mx-study .w li { counter-increment: o; padding: 11px; border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 700; line-height: 1.45; transition: background .4s, color .4s; }
.mx-study .w li:hover { background: var(--ink-d); color: var(--gold-l); }
.mx-study .w li::before { content: "0" counter(o); display: block; font: 900 12px/1 var(--serif-title, serif); color: var(--gold-d); margin-bottom: 6px; }
.mx-study .w h6 { margin: 0; font-size: 14px; font-weight: 900; }

.mx-out { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; background-color: var(--ink-d); color: #fff; }
.mx-out .labs-mono { color: var(--gold); }
.mx-out h5 { margin: 10px 0 18px; font-family: var(--serif-title, serif) !important; font-size: 24px; font-weight: 900; color: #fff; }
.mx-out ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-out li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: 14.5px; font-weight: 500; cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s var(--ease), background .3s, border-color .3s, color .3s; transition-delay: var(--d, 0s); }
.mx-out li i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.mx-out li:hover, .mx-out li.on { background: var(--gold-l); border-color: var(--gold-l); color: var(--ink-d); transition-delay: 0s; }
.mx-out.in li, .no-io .mx-out li { opacity: 1; transform: none; }
.mx-from { min-height: 48px; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.14); font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.6); }
.mx-from b { color: var(--gold-l); font-weight: 700; }
.mx-phd { margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px; border: 1px solid rgba(220,188,126,.45); color: #fff; font-weight: 700; font-size: 15px; }
.mx-phd svg { flex: none; width: 32px; height: 32px; }
.mx-phd small { display: block; font-weight: 400; font-size: 12.5px; color: rgba(255,255,255,.6); }

/* =========================================================
   2. master.html 精簡版（.mx-lite）
   ========================================================= */
.mx-lite { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 40px; border-radius: 28px; background-color: var(--ink-d); color: #fff; isolation: isolate; }
.mx-lite::before { content: ""; position: absolute; right: -90px; top: -90px; z-index: -1; width: 300px; height: 300px; border-radius: 50%; border: 1px dashed rgba(220,188,126,.35); animation: mxSpin 60s linear infinite; }
.mx-lite::after { content: ""; position: absolute; right: -30px; top: -30px; z-index: -1; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.mx-lite .labs-mono { color: var(--gold); }
.mx-lite h4 { margin: 12px 0 0; font-family: var(--serif-title, serif) !important; font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; line-height: 1.3; color: #fff; letter-spacing: .02em; }
.mx-lite h4 em { font-style: normal; color: var(--gold); }
.mx-lite > div > p { margin: 14px 0 0; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); }
.mx-lite .go { display: inline-flex; margin-top: 20px; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--ink-d) !important; font-weight: 700; transition: transform .3s var(--ease), background .3s; }
.mx-lite .go:hover { transform: translateY(-2px); background: #fff; }
.mx-lite-g { position: relative; display: grid; gap: 14px; }
.mx-lite-g > div { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mx-lite-g small { width: 100%; font: 600 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: rgba(220,188,126,.75); text-transform: uppercase; }
.mx-lite-g span { padding: 8px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease), background .3s, color .3s; transition-delay: var(--d, 0s); }
.mx-lite.in .mx-lite-g span, .no-io .mx-lite-g span { opacity: 1; transform: none; }
.mx-lite-g span:hover { background: var(--gold-l); color: var(--ink-d); transition-delay: 0s; }
.mx-lite-g .f span { border-color: color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 35%, transparent); font-weight: 700; }

/* ---------- RWD ---------- */
@media (max-width: 1100px) {
	.mx-hero { grid-template-columns: 1fr; padding: 48px 36px; }
	.mx-orbit { max-width: 420px; }
	.mx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mx-panel { grid-template-columns: 1fr; }
	.mx-prac { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mx-prac > b { grid-column: 1 / -1; padding: 14px 18px; }
	.mx-path { grid-template-columns: 1fr; }
	.mx-lite { grid-template-columns: 1fr; padding: 30px 24px; }
}
@media (max-width: 767px) {
	.mx { margin-top: 64px; }
	.mx-hero { padding: 34px 20px; border-radius: 24px; gap: 8px; }
	.mx-eq { grid-template-columns: 22px auto; }
	.mx-eq > span { min-height: 0; padding: 8px 12px; }
	.mx-eq b { font-size: 15.5px; white-space: normal; }
	.mx-eq .res b { font-size: 17px; }
	.mx-eq .res::before { left: -32px; }
	.mx-eq i { font-size: 18px; }
	.mx-node { font-size: 11.5px; padding: 6px 9px 6px 7px; gap: 5px; }
	.mx-node i { width: 6px; height: 6px; }
	.mx-h { margin-top: 56px; }
	.mx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.mx-tab { padding: 13px; }
	.mx-tab svg { width: 24px; height: 24px; }
	.mx-pl, .mx-pr { padding: 26px 20px; }
	.mx-pl::after { font-size: 46px; }
	.mx-fields, .mx-feat { grid-template-columns: 1fr; }
	.mx-field { min-height: 0; }
	.mx-field svg.ic { width: 90px; height: 90px; }
	.mx-field h5 { margin-top: 40px; }
	.mx-prac { grid-template-columns: 1fr; }
	.mx-study .w ol { grid-template-columns: 1fr; }
	.mx-bridge { flex-direction: column; gap: 6px; }
	.mx-nav { bottom: 14px; left: 16px; max-width: calc(100% - 92px); overflow-x: auto; transform: translate(0, 140%); }
	.mx-nav.show { transform: none; }
	.mx-nav a { padding: 7px 9px; font-size: 12px; }
	.mx-nav a small { display: none; }
}
/* =========================================================
   v3（2026.11.25）：更多漸層色彩、跑馬燈、為什麼讀／三個特色互動卡、下載區反差、箭頭置中
   ========================================================= */
/* 深色區塊加上色彩漸層（不再整片黑） */
.mx-hero { --grad: linear-gradient(135deg, #17191F 0%, #22344D 42%, #3A2C47 78%, #4A3530 100%); }
.mx-hero::before { opacity: 1.0; filter: saturate(1.25); }
.mx-eq .res.pop { animation: mxPop .7s var(--ease); }
@keyframes mxPop { 0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(220,188,126,.6); } 60% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(220,188,126,0); } 100% { transform: none; } }
.mx-out { --grad: linear-gradient(150deg, #1D2A3C 0%, #18191F 52%, #33272A 100%); }
.mx-note { --grad: linear-gradient(100deg, #2D2438, #1D2A3C 60%, #2A3A34); }
.mx-lite { --grad: linear-gradient(130deg, #1D2A3C 0%, #17181D 48%, #3A2A2C 100%); }
.ms-page .ms-cta { --grad: linear-gradient(115deg, #15171C 0%, #233249 55%, #3E2C30 100%); }
.ms-page .ma-route { --grad: linear-gradient(155deg, #262F40 0%, #16171C 70%); }
.ms-page .ma-route.b { --grad: linear-gradient(155deg, #4A6A93 0%, #2B3F5C 55%, #1E2A3D 100%); }
.mx-pl::before { background: radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--c) 75%, transparent), transparent 62%), radial-gradient(90% 80% at 100% 100%, rgba(220,188,126,.16), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 9px); }
.mx-tab.on { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 70%, #15171C), #15171C 75%); border-color: transparent; }
.mx-prac > b { background: linear-gradient(150deg, #2B3F5C, #15171C); }
.mx-field { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 11%, #fff) 0%, #fff 55%); }
.mx-field .ic { width: 130px; height: 130px; right: 14px; top: 14px; stroke-width: 1.1; }
.mx-field .ic .o { stroke-dasharray: 2 4 !important; stroke-dashoffset: 0 !important; opacity: .45; transform-origin: 60px 60px; animation: mxSpin 40s linear infinite; }
.mx-field .ic .dot { fill: var(--gold); stroke: none; }
.mx-field.in .ic .dot { animation: mxDot 2.4s ease-in-out infinite 2s; transform-box: fill-box; transform-origin: center; }
@keyframes mxDot { 50% { transform: scale(1.8); opacity: .6; } }
.mx-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--c), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.mx-field:hover::after { transform: scaleX(1); }

/* 跑馬燈：漸層底＋明體＋金色描邊＋兩列反向 */
.ms-page .labs-marquee { position: relative; border: 0; background: linear-gradient(90deg, #15171C, #1F2B3E 35%, #2E2438 65%, #15171C); background-size: 200% 100%; animation: mxBgPan 18s ease-in-out infinite alternate; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes mxBgPan { to { background-position: 100% 0; } }
.ms-page .labs-marquee::before, .ms-page .labs-marquee::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(220,188,126,.6), transparent); }
.ms-page .labs-marquee::before { top: 0; } .ms-page .labs-marquee::after { bottom: 0; }
.ms-page .labs-marquee-track { padding: 16px 0 10px; animation-duration: 52s; }
.ms-page .labs-marquee span { font-family: var(--serif-title, serif); font-weight: 900; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: .08em; color: #F7F1E3; padding: 0 30px; gap: 30px; }
.ms-page .labs-marquee span.o { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: clamp(14px, 1.5vw, 19px); letter-spacing: .24em; color: transparent; -webkit-text-stroke: .8px var(--gold); }
.ms-page .labs-marquee span::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); font-size: 0; }
.ms-page .labs-marquee:hover .labs-marquee-track { animation-play-state: paused; }
.mx-mq2 { display: block; overflow: hidden; white-space: nowrap; padding: 0 0 13px; }
.mx-mq2 > div { display: inline-flex; animation: mxMq2 70s linear infinite; }
.mx-mq2 i { font: 600 11px/1 ui-monospace, Menlo, monospace; font-style: normal; letter-spacing: .3em; color: rgba(220,188,126,.55); padding: 0 22px; text-transform: uppercase; }
.mx-mq2 i::before { content: "— "; color: rgba(255,255,255,.25); }
@keyframes mxMq2 { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* 為什麼讀（admission）＋三個特色（master）：共用互動卡 */
.mxh > div, .mxf > article { position: relative; overflow: hidden; isolation: isolate; cursor: default; transition: transform .6s var(--ease), box-shadow .6s, color .5s; }
.mxh > div::after, .mxf > article::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 110%), rgba(220,188,126,.22), transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--c, #3B587D) 85%, #15171C) 0%, #15171C 85%); clip-path: circle(0% at var(--mx, 50%) var(--my, 100%)); transition: clip-path .8s var(--ease); }
.mxh > div:hover::after, .mxf > article:hover::after, .mxh > div.is-open::after, .mxf > article.is-open::after { clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); }
.mxh > div:hover, .mxf > article:hover, .mxh > div.is-open, .mxf > article.is-open { color: #fff; transform: translateY(-6px); box-shadow: 0 34px 50px -34px rgba(20,21,25,.7); }
.mxh > div.is-hot::before, .mxf > article.is-hot::before { transform: scaleX(1) !important; }
.mxh .no, .mxf .no { position: absolute; right: 18px; top: 14px; font: 900 54px/1 var(--serif-title, serif); color: transparent; -webkit-text-stroke: 1px rgba(20,21,25,.12); transition: -webkit-text-stroke-color .5s, transform .8s var(--ease); }
.mxh > div:hover .no, .mxf > article:hover .no, .is-open .no { -webkit-text-stroke-color: rgba(220,188,126,.45); transform: translateY(-4px); }
.mxh h4, .mxh p, .mxf h4, .mxf p { transition: color .5s; }
.mxh > div:hover h4, .mxf > article:hover h4, .is-open h4 { color: #fff; }
.mxh > div:hover p, .mxf > article:hover p, .is-open p { color: rgba(255,255,255,.78); }

.ma-hl.mxh > div { --c: #3B587D; padding: 26px 22px 22px; border: 1px solid var(--line); box-shadow: none; display: flex; flex-direction: column; }
.ma-hl.mxh > div:nth-child(2) { --c: #8E4A45; } .ma-hl.mxh > div:nth-child(3) { --c: #557A69; } .ma-hl.mxh > div:nth-child(4) { --c: #6A5C8A; }
.ma-hl.mxh b { font-size: 46px; color: var(--ink); transition: color .5s; }
.ma-hl.mxh b small { font-size: 18px; margin-left: 4px; }
.ma-hl.mxh > div:hover b, .ma-hl.mxh .is-open b { color: var(--gold); }
.mxh em { margin-top: auto; padding-top: 14px; font-style: normal; font-size: 12.5px; line-height: 1.6; font-weight: 700; color: var(--gold-d); border-top: 1px dashed var(--line); transition: color .5s, border-color .5s; }
.mxh em a { color: inherit !important; }
.mxh > div:hover em, .mxh .is-open em { color: var(--gold-l); border-top-color: rgba(255,255,255,.2); }
.mxh p { margin-bottom: 0; }

.mxf > article { --c: #3B587D; padding: 28px 26px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.mxf > article::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 2px; background: linear-gradient(90deg, var(--gold-d), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.mxf > article:hover::before { transform: scaleX(1); }
.mxf i { transition: transform .8s var(--ease), background .5s; }
.mxf > article:hover i, .mxf .is-open i { transform: rotate(-12deg) scale(1.08); background: var(--gold) !important; color: var(--ink-d) !important; }
.mxf-stat { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 14px 0; border-block: 1px solid var(--line); transition: border-color .5s; }
.mxf-stat b { font: 900 42px/1 var(--serif-title, serif); color: var(--c); transition: color .5s; }
.mxf-stat span { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); transition: color .5s; }
.mxf > article:hover .mxf-stat, .mxf .is-open .mxf-stat { border-color: rgba(255,255,255,.16); }
.mxf > article:hover .mxf-stat b, .mxf .is-open .mxf-stat b { color: var(--gold); }
.mxf > article:hover .mxf-stat span, .mxf .is-open .mxf-stat span { color: rgba(255,255,255,.65); }
.mxf ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mxf li { padding: 6px 11px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; transition: background .4s, color .4s, transform .5s var(--ease); }
.mxf li a { color: var(--gold-d) !important; }
.mxf > article:hover li, .mxf .is-open li { background: rgba(255,255,255,.1); color: #fff; }
.mxf > article:hover li a, .mxf .is-open li a { color: var(--gold) !important; }
.mxf > article:hover li:nth-child(1) { transition-delay: .05s; } .mxf > article:hover li:nth-child(2) { transition-delay: .1s; } .mxf > article:hover li:nth-child(3) { transition-delay: .15s; } .mxf > article:hover li:nth-child(4) { transition-delay: .2s; } .mxf > article:hover li:nth-child(5) { transition-delay: .25s; }
.mxf > article:hover li { transform: translateY(-2px); }

/* 精簡版標籤 hover：清楚的反差（深底亮字／金底深字） */
.mx-lite .mx-lite-g span:hover { background: var(--gold); border-color: var(--gold); color: var(--ink-d); }
.mx-lite .mx-lite-g .f span { color: #fff; }
.mx-lite .mx-lite-g .f span:hover { background: var(--c); border-color: #fff; color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }

/* 從入學到畢業：箭頭放在兩卡間距正中央 */
.ms-page .ms-flow li:not(:last-child)::after { content: ""; z-index: 5; right: -18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5L12 8l-3.5 3.5' fill='none' stroke='%23141519' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 4px var(--bg); }

/* 下載專區：hover 深色反差 */
.ms-page .ms-dl a { border: 1px solid var(--line); box-shadow: none; transition: background .45s, color .45s, transform .45s var(--ease), box-shadow .45s; }
.ms-page .ms-dl a:hover { background: linear-gradient(145deg, #233249, #15171C 80%); color: #fff !important; transform: translateY(-4px); box-shadow: 0 26px 40px -26px rgba(20,21,25,.8); border-color: transparent; }
.ms-page .ms-dl a:hover small { color: rgba(255,255,255,.65); }
.ms-page .ms-dl a:hover .ty { background: var(--gold); color: var(--ink-d); }
.ms-page .ms-dl a:hover i { color: var(--gold); animation: mxDl 1s var(--ease) infinite; }
@keyframes mxDl { 50% { transform: translateY(4px); } }

@media (hover: none) { .mxh em { color: var(--gold-d); } }

/* v4：視傳本科（第一個背景、中心 VCD 可點、主視覺入口） */
.mx-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mx-tab.is-vcd { background: linear-gradient(160deg, #FBF5E6, #fff 70%); border-color: #E6D6B0; }
.mx-tab.is-vcd small { color: var(--gold-d); }
.mx-tab.is-vcd.on { background: linear-gradient(150deg, #6E5730, #15171C 78%); }
.mx-tab.is-vcd.on small { color: var(--gold-l); }
.mx-core { cursor: pointer; transition: transform .5s var(--ease); }
.mx-core.on { box-shadow: 0 0 0 2px #fff inset, 0 0 0 14px rgba(220,188,126,.18), 0 0 0 32px rgba(220,188,126,.07), 0 24px 80px -8px rgba(220,188,126,.75); }
.mx-core:hover { transform: translate(-50%, -50%) translateZ(30px) scale(1.04); }
.mx-vcd { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(220,188,126,.45); color: rgba(255,255,255,.82) !important; font-size: 14px; line-height: 1.6; transition: background .4s, border-color .4s; max-width: 34em; }
.mx-vcd b { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink-d); font-size: 12.5px; }
.mx-vcd:hover { background: rgba(220,188,126,.1); border-style: solid; }
.mx-lite .vcd-line { display: block; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--gold); color: var(--gold-l); font-size: 14.5px; }
@media (max-width: 1100px) { .mx-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mx-tab.is-vcd { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
@media (max-width: 767px) { .mx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
	.mx *, .mx *::before, .mx *::after, .mx-lite *, .mx-lite::before { animation: none !important; transition: none !important; }
	.mx-out li, .mx-lite-g span, .mx-ch { opacity: 1; transform: none; filter: none; }
	.mx-field svg.ic * { stroke-dashoffset: 0; }
	.ms-page .labs-marquee, .mx-mq2 > div { animation: none !important; }
}

/* 從入學到畢業：箭頭永遠在最上層（前一張卡疊在後一張之上，hover 浮起也不會蓋住箭頭） */
.ms-page .ms-flow li:nth-child(1) { z-index: 5; } .ms-page .ms-flow li:nth-child(2) { z-index: 4; } .ms-page .ms-flow li:nth-child(3) { z-index: 3; } .ms-page .ms-flow li:nth-child(4) { z-index: 2; } .ms-page .ms-flow li:nth-child(5) { z-index: 1; }

/* 大標題：只在詞組之間換行（不讓逗號或「設計超能力」被拆開） */
.mx-hero h3 .nw { display: inline-block; white-space: nowrap; }
/* v5 主視覺：細緻有力、一屏看完（標題兩行、公式橫排、段落精簡） */
.mx-hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); padding: 48px 52px; gap: 28px; }
.mx-hero h3 { margin-top: 16px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.24; letter-spacing: .03em; }
.mx-hero h3 em { font-size: 1.04em; }
.mx-hero > div > p { margin-top: 16px; font-size: 15px; line-height: 1.85; max-width: 36em; }
.mx-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.mx-eq > i:first-child { display: none; }
.mx-eq > span { min-height: 0; padding: 7px 14px; border-radius: 12px; }
.mx-eq small { font-size: 10.5px; }
.mx-eq b { font-size: 15.5px; }
.mx-eq .res b { font-size: 17px; }
.mx-eq .res::before { display: none; }
.mx-eq i { font-size: 18px; width: 14px; }
.mx-eq > span.bar { flex-basis: 100%; margin-top: 4px; }
.mx-hero-act { margin-top: 20px; }
.mx-hero-act a { padding: 11px 20px; font-size: 14.5px; }
.mx-vcd { margin-top: 12px; padding: 9px 14px; font-size: 13.5px; }
.mx-orbit { max-width: 420px; }
@media (max-width: 1100px) { .mx-hero { grid-template-columns: 1fr; padding: 40px 32px; } .mx-orbit { max-width: 380px; } }
@media (max-width: 767px) {
	.mx-hero { padding: 30px 20px; }
	.mx-hero h3 { font-size: clamp(25px, 7.5vw, 30px); }
	.mx-eq b { font-size: 14px; } .mx-eq .res b { font-size: 15.5px; }
	.mx-orbit { max-width: 320px; }
}
