/* =========================================================
   課程規劃 course-a.html 專用樣式（沿用 labs.css、based.css）
   ========================================================= */
.cp-page { --d1: #1F74D6; --d2: #23A06A; --d3: #E4572E; --d4: #7D5CC9; }

/* 五個出口 */
.goals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.goals span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; }
.goals span i { font-style: normal; font-size: 12px; color: var(--ink-3); font-family: ui-monospace, Menlo, monospace; }

/* 四大學門：十字圖 */
.domains-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.domain-dial { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin: 0 auto; }
.domain-dial .core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: clamp(15px, 2vw, 20px); line-height: 1.3; z-index: 2; box-shadow: 0 0 0 10px var(--bg); }
.domain-dial button { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font: 900 clamp(15px, 1.9vw, 19px)/1.35 inherit; font-family: inherit; display: grid; place-items: center; text-align: center; padding: 12px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, filter .3s; mix-blend-mode: multiply; }
.domain-dial button small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; opacity: .8; margin-top: 4px; }
.domain-dial button:nth-of-type(1) { left: 28%; top: 0; background: var(--d1); }
.domain-dial button:nth-of-type(2) { right: 0; top: 28%; background: var(--d3); }
.domain-dial button:nth-of-type(3) { left: 28%; bottom: 0; background: var(--d4); }
.domain-dial button:nth-of-type(4) { left: 0; top: 28%; background: var(--d2); }
.domain-dial button:hover, .domain-dial button[aria-pressed="true"] { transform: scale(1.06); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); mix-blend-mode: normal; z-index: 1; }
.domain-dial.picking button:not([aria-pressed="true"]) { filter: saturate(.3) opacity(.55); }

.domain-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dcard { background: var(--paper); border-radius: 18px; padding: 20px; border-top: 5px solid var(--dc); box-shadow: 0 1px 0 var(--line), 0 20px 40px -34px rgba(18, 19, 22, .45); transition: opacity .3s, transform .3s; }
.dcard h4 { margin: 0 0 4px; font-size: 19px; font-weight: 900; color: var(--ink); }
.dcard p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.dcard .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dcard .chip { background: color-mix(in srgb, var(--dc) 8%, #fff); border-color: color-mix(in srgb, var(--dc) 30%, transparent); }
.domain-cards.picking .dcard:not(.on) { opacity: .35; }
.domain-cards.picking .dcard.on { transform: translateY(-3px); }

/* 核心能力 */
.abil-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: ab; }
.abil { background: var(--paper); border-radius: 18px; padding: 22px 22px 20px; position: relative; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 20px 40px -34px rgba(18, 19, 22, .45); transition: transform .3s; }
.abil:hover { transform: translateY(-4px); }
.abil::before { counter-increment: ab; content: "0" counter(ab); position: absolute; right: 14px; top: 4px; font-size: 64px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.abil .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #ffd24d; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.abil h4 { margin: 0 0 6px; font-size: 19px; font-weight: 900; color: var(--ink); }
.abil p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.abil .eg { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.abil .eg b { color: var(--ink-2); font-weight: 700; }

/* 四年進程 */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.steps4::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 3px; background: linear-gradient(90deg, var(--d1), var(--d2), var(--d3), var(--m-intern, #E0A100)); border-radius: 3px; }
.step4 { position: relative; padding: 0 10px; text-align: center; }
.step4 .dot { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 18px; position: relative; z-index: 1; }
.step4 h4 { margin: 0; font-size: 20px; font-weight: 900; color: var(--ink); }
.step4 .kw { display: inline-block; margin: 6px 0 10px; font-size: 13px; font-weight: 700; color: #fff; background: var(--ink); border-radius: 6px; padding: 2px 10px; }
.step4 p { margin: 0 auto; font-size: 14px; line-height: 1.75; color: var(--ink-2); max-width: 22em; }
.step4 .chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 10px; }

/* 三大領域 */
.realms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.realm { border-radius: 18px; padding: 22px; background: var(--paper); box-shadow: 0 1px 0 var(--line); display: grid; gap: 8px; align-content: start; }
.realm b { font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.realm b small { font-size: 14px; margin-left: 4px; color: var(--ink-3); }
.realm h4 { margin: 0; font-size: 18px; font-weight: 900; color: var(--ink); }
.realm p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.realm.dark { background: var(--ink); color: #fff; }
.realm.dark h4 { color: #fff; } .realm.dark p { color: rgba(255, 255, 255, .72); } .realm.dark b small { color: rgba(255, 255, 255, .55); }

/* 課程怎麼訂 */
.flow3 { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.2fr) 40px minmax(0, 1fr); align-items: stretch; }
.flow3 .box { background: var(--paper); border-radius: 18px; padding: 22px; box-shadow: 0 1px 0 var(--line); }
.flow3 .box.main { background: var(--ink); color: #fff; }
.flow3 .box h4 { margin: 0 0 10px; font-size: 18px; font-weight: 900; color: inherit; }
.flow3 .box ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; }
.flow3 .box.main ul { color: rgba(255, 255, 255, .8); }
.flow3 .arr { display: grid; place-items: center; font-size: 22px; color: var(--ink-3); }

/* 延伸連結 */
.more-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.more-links a { background: var(--paper); border-radius: 16px; padding: 18px; display: grid; gap: 4px; color: var(--ink) !important; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s; }
.more-links a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .4); }
.more-links b { font-size: 16px; display: flex; justify-content: space-between; }
.more-links small { font-size: 13px; color: var(--ink-3); }

.cp-section { margin-top: 96px; }

@media (max-width: 991px) {
	.domains-wrap { grid-template-columns: 1fr; }
	.abil-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
	.steps4::before { display: none; }
	.realms { grid-template-columns: 1fr; }
	.flow3 { grid-template-columns: 1fr; }
	.flow3 .arr { transform: rotate(90deg); height: 36px; }
	.more-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.domain-cards, .abil-grid, .steps4, .more-links { grid-template-columns: 1fr; }
	.cp-section { margin-top: 72px; }
}
/* 十字圖微調：圓形不壓到中心與文字 */
.domain-dial .core { width: 27%; box-shadow: 0 0 0 8px var(--bg); }
.domain-dial button { width: 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; mix-blend-mode: normal; box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .45); }
.domain-dial button small { margin-top: 6px; }
.domain-dial button:nth-of-type(1) { left: 30%; top: 0; }
.domain-dial button:nth-of-type(2) { right: 0; left: auto; top: 30%; }
.domain-dial button:nth-of-type(3) { left: 30%; bottom: 0; top: auto; }
.domain-dial button:nth-of-type(4) { left: 0; top: 30%; }
