@charset "UTF-8";
/* 2026 NCKU AISSM Semiconductor Summer School */

/* 色彩：淺色 */
:root {
  color-scheme: light;

  --bg:            #FFFFFF;
  --surface:       #F8F4EF;
  --surface-2:     #EFE6DA;
  --text:          #1E1414;
  --text-muted:    #4A3A36;
  --link:          #5D0011;
  --link-visited:  #4B2466;
  --primary:       #5D0011;
  --primary-ink:   #FFFFFF;
  --primary-hover: #3F000B;
  --accent:        #8E1428;
  --accent-ink:    #FFFFFF;
  --accent-hover:  #5D0011;
  --gold:          #9E7D51;
  --gold-text:     #614829;
  --danger:        #8E1414;
  --border:        #6A5953;
  --border-soft:   #8A7770;

  --hero-bg:       #F3E9DC;
  --hero-ink:      #5D0011;
  --hero-text:     #1E1414;
  --hero-muted:    #4A3A36;
  --hero-line:     #9E7D51;

  --foot-bg:       #5D0011;
  --foot-ink:      #FFFFFF;
  --foot-muted:    #F0DFC8;
  --foot-line:     #9E7D51;

  --focus-a:       #1E1414;
  --focus-b:       #FFD400;
  --focus-on-dark: #FFFFFF;

  --svg-bg:        #EFE6DA;
  --svg-line:      #5D0011;
  --svg-dot:       #9E7D51;

  --radius: 10px;
  --wrap: 78rem;
  --measure: 68ch;
  --tap: 2.75rem;

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Oswald", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

/* 色彩：深色 */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #150D0E;
  --surface:       #201617;
  --surface-2:     #2C1F20;
  --text:          #F4ECE8;
  --text-muted:    #D2C3BC;
  --link:          #F5B8C4;
  --link-visited:  #D9C2F0;
  --primary:       #F5B8C4;
  --primary-ink:   #2A0009;
  --primary-hover: #FAD3DA;
  --accent:        #E9CFA3;
  --accent-ink:    #2A1A06;
  --accent-hover:  #F3E1C2;
  --gold:          #C9A774;
  --gold-text:     #E0C592;
  --danger:        #FFA3AC;
  --border:        #B09E97;
  --border-soft:   #7A6862;

  --hero-bg:       #2C1F20;
  --hero-ink:      #F5B8C4;
  --hero-text:     #F4ECE8;
  --hero-muted:    #D2C3BC;
  --hero-line:     #C9A774;

  --foot-bg:       #1C1012;
  --foot-ink:      #F4ECE8;
  --foot-muted:    #E0CDB3;
  --foot-line:     #6B5236;

  --focus-a:       #FFFFFF;
  --focus-b:       #150D0E;
  --focus-on-dark: #FFFFFF;

  --svg-bg:        #2C1F20;
  --svg-line:      #F5B8C4;
  --svg-dot:       #C9A774;
}

/* 色彩：高對比 */
:root[data-theme="contrast"] {
  color-scheme: dark;

  --bg:            #000000;
  --surface:       #000000;
  --surface-2:     #0A0A0A;
  --text:          #FFFFFF;
  --text-muted:    #FFFFFF;
  --link:          #FFFF00;
  --link-visited:  #00FFFF;
  --primary:       #FFFF00;
  --primary-ink:   #000000;
  --primary-hover: #FFFFFF;
  --accent:        #FFFF00;
  --accent-ink:    #000000;
  --accent-hover:  #FFFFFF;
  --gold:          #FFFF00;
  --gold-text:     #FFFF00;
  --danger:        #FF6E6E;
  --border:        #FFFFFF;
  --border-soft:   #FFFFFF;

  --hero-bg:       #000000;
  --hero-ink:      #FFFFFF;
  --hero-text:     #FFFFFF;
  --hero-muted:    #FFFFFF;
  --hero-line:     #FFFFFF;

  --foot-bg:       #000000;
  --foot-ink:      #FFFFFF;
  --foot-muted:    #FFFFFF;
  --foot-line:     #FFFFFF;

  --focus-a:       #FFFF00;
  --focus-b:       #000000;
  --focus-on-dark: #FFFF00;

  --svg-bg:        #000000;
  --svg-line:      #FFFF00;
  --svg-dot:       #FFFFFF;
}

/* 文字大小 */
html                        { font-size: 112.5%; }
html[data-font="small"]     { font-size: 100%;   }
html[data-font="normal"]    { font-size: 112.5%; }
html[data-font="large"]     { font-size: 137.5%; }

/* 基礎 */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.02em;
  word-break: break-word;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}

p, li, dd { max-width: var(--measure); }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* 連結 */
a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 0.16em; }

/* 焦點 */
:focus-visible {
  outline: 3px solid var(--focus-a);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-b);
  border-radius: 4px;
}

.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
  box-shadow: 0 0 0 6px var(--foot-bg);
}
:focus:not(:focus-visible) { outline: none; }

/* 跳離連結 */
.anchor-mark {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-links { position: relative; z-index: 100; }
.skip-link {
  position: absolute;
  top: -100rem;
  left: 0.5rem;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:visited { color: var(--primary-ink); }
.skip-link:focus { top: 0.5rem; }

/* 工具列 */
.a11y-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}
.a11y-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 2rem;
  padding-block: 0.35rem;
}
.a11y-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.a11y-group__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.a11y-btn {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0.2rem 0.7rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.a11y-btn:hover { background: var(--surface); }
.a11y-btn[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
  font-weight: 700;
}

.a11y-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }

/* 頁首 */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 1rem;
}

.brand { margin: 0; order: 1; flex: 1 1 20rem; max-width: none; }
.header-cta { order: 2; }
.nav-toggle { order: 2; }
.main-nav { order: 3; }
.brand__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--tap);
  color: var(--text);
  text-decoration: none;
}
.brand__link:visited { color: var(--text); }
.brand__link:hover .brand__line1 { text-decoration: underline; }

.brand__logo {
  flex: none;
  width: 4rem;
  height: 4rem;
  padding: 0.15rem;
  background: #FFFFFF;
  border-radius: 50%;
}
:root[data-theme="dark"] .brand__logo,
:root[data-theme="contrast"] .brand__logo {
  outline: 2px solid var(--border);
}
.brand__name { display: block; }
.brand__line1 { display: block; font-weight: 900; font-size: 1.05rem; line-height: 1.4; }
.brand__line2 {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.header-cta { margin: 0; max-width: none; }

/* 主選單 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.5rem 1rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}
.nav-toggle__icon {
  width: 1.25rem; height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.main-nav { flex: 1 1 100%; }
.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.35rem;
}
.main-nav__list li { max-width: none; }
.main-nav a,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.4rem 0.9rem;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.main-nav a:visited { color: var(--text); }
.main-nav a:hover,
.sub-toggle:hover {
  background: var(--surface);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
}

.main-nav a[aria-current="page"] {
  font-weight: 900;
  border-bottom-color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}
.has-sub { position: relative; }
.sub-toggle__arrow {
  width: 0; height: 0;
  border-inline: 0.32rem solid transparent;
  border-top: 0.38rem solid currentColor;
}
.sub-toggle[aria-expanded="true"] .sub-toggle__arrow {
  border-top: 0;
  border-bottom: 0.38rem solid currentColor;
}
.sub-nav {
  position: absolute;
  z-index: 50;
  min-width: 17rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.sub-nav[hidden] { display: none; }
.sub-nav a { width: 100%; border-radius: 4px; }

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.6rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.btn--lg { padding: 0.8rem 2rem; font-size: 1.05rem; }

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.btn--primary:visited { color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--accent:visited { color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:visited { color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--primary-ink); }

.btn--ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); }

/* 麵包屑 */
.breadcrumb { background: var(--surface); }
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  font-size: 0.9rem;
}
.breadcrumb__list li { max-width: none; display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb__list li + li::before { content: "\203A"; color: var(--text-muted); }
.breadcrumb a,
.breadcrumb [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding-inline: 0.35rem;
}
.breadcrumb [aria-current="page"] { font-weight: 700; color: var(--text); }

/* 主視覺 */
.site-main { display: block; }

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  border-bottom: 1px solid var(--border-soft);
}
.hero__inner { padding-block: 4.5rem 3.5rem; }

.hero__inner--compact { padding-block: 3.5rem 3rem; }

.hero__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2.5rem 3.5rem;
  padding-bottom: 2.5rem;
}
.hero__media { margin: 0; }
.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--hero-line);
}
.hero__media figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--hero-muted);
}
.hero__tagline {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--hero-ink);
}
.hero__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0.5rem 0 0.5rem 0.9rem;
  border-left: 5px solid var(--hero-line);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hero-text);
}
.hero__place { font-weight: 500; color: var(--hero-muted); }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.hero__chips li {
  max-width: none;
  padding: 0.2rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--hero-text);
}
.hero__eyebrow {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--hero-ink);
}
.hero__lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--hero-text);
}
.hero__lead abbr[title] { color: inherit; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: none;
  margin-bottom: 3rem;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 2rem 0 3rem;
  list-style: none;
  border-top: 1px solid var(--border-soft);
}
.hero__stats li {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hero__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--hero-ink);
}

.hero__numunit {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 0.15em;
}
.hero__unit { font-size: 0.95rem; color: var(--hero-muted); }

/* 摘要 */
.summary {
  margin: 3.5rem 0 0;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border-left: 10px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.summary__title { font-size: 1.3rem; }
.summary__nav { color: var(--text-muted); margin-bottom: 0; }

/* 區塊 */
.band { padding-block: 4.5rem; }
.band--tint { background: var(--surface); }

.band__head {
  max-width: 46rem;
  margin-bottom: 3.5rem;
}
.band__no {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold-text);
}
.band__title {
  position: relative;
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}
.band__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 4.5rem; height: 5px;
  background: var(--gold);
}
.band__lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* 圖文列 */
.rows { display: grid; gap: 4.5rem; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2rem 4rem;
}

.row--reverse .row__text { order: 2; }
.row--reverse .row__media { order: 1; }

.row__tag {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.15rem 0.75rem;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}
.row__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}
.row__meta {
  margin-bottom: 1.1em;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
}
.row__media { min-width: 0; }

.figure {
  display: block;
  width: 100%;
  height: auto;
  background: var(--svg-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

/* 磚塊 */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tiles > li { max-width: none; }

.tiles--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 48rem) {
  .tiles--2x2 { grid-template-columns: 1fr; }
}
.tile {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
}
.tile__no {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-text);
}

.tile--media { padding: 0; overflow: hidden; }
.tile--media > article { display: flex; flex-direction: column; height: 100%; }
.tile--media .tile__body { padding: 1.5rem 1.75rem 1.75rem; }
.tile__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-soft);
}

.tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem 2rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-soft);
}
.tile__logo img { display: block; width: 100%; max-width: 22rem; height: auto; }
.tile__title { font-size: 1.25rem; margin-bottom: 0.35rem; }
.tile__meta {
  margin-bottom: 1em;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

/* 卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards > li { max-width: none; }
.card {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.card > article { display: flex; flex-direction: column; width: 100%; }
.card__media { border-bottom: 1px solid var(--border-soft); }
.card__media .figure { border: 0; border-radius: 0; }

.card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card__body { padding: 1.5rem; }
.card__title { font-size: 1.2rem; margin-bottom: 0.35rem; }
.card__meta {
  margin-bottom: 1em;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.link-arrow {
  display: inline-block;
  padding-block: 0.4rem;
  font-weight: 700;
}
.link-arrow::after { content: "\00a0\2192"; }

/* 名詞解釋 */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: 0 3rem;
  margin: 0;
}
.glossary__item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.glossary dt {
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
  font-weight: 900;
}
.glossary dd { margin: 0; color: var(--text); }
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 0.25em;
  cursor: help;
}

ruby rt {
  font-family: "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

.plain-list { padding-left: 1.4rem; }
.plain-list li { margin-bottom: 0.5em; }
kbd {
  display: inline-block;
  padding: 0.05em 0.45em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 700;
}
.note { color: var(--text-muted); font-size: 0.95rem; }
.note--block {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-left: 6px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note--change { margin: 2.5rem 0 0; }
.sub-title { font-size: 1.2rem; margin-top: 0; }
.sub-title--spaced { margin-top: 2.5rem; }

.status {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: middle;
}
.status--done { border: 2px solid var(--primary); color: var(--primary); }
.status--todo { border: 2px dashed var(--border); color: var(--text-muted); }

.a11y-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 2.5rem 3rem;
}

/* 表單 */
.form-shell {
  max-width: 46rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.steps__item {
  max-width: none;
  padding: 0.4rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.steps__item.is-current {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
  font-weight: 700;
}
.steps__no { font-weight: 700; }

.form { max-width: none; }
.fieldset {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.fieldset__legend {
  padding-inline: 0.5rem;
  font-weight: 900;
  font-size: 1.05rem;
}
.field { margin-bottom: 1.6rem; }
.field:last-child { margin-bottom: 0; }
.field__label { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.field__hint {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.field__input {
  width: 100%;
  min-height: var(--tap);
  padding: 0.5rem 0.8rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
.field__input--area { min-height: 6rem; resize: vertical; }
.field__input[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 3px;
}
.field__error {
  margin: 0.45rem 0 0;
  color: var(--danger);
  font-weight: 700;
}

.field__error::before { content: "\26A0\00a0"; }

.choice { margin: 0 0 0.3rem; max-width: none; }

.choice__label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--tap);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.choice__label:hover { background: var(--surface); }
.choice input { width: 1.4rem; height: 1.4rem; accent-color: var(--primary); flex: none; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: none;
  margin-bottom: 0;
}

.error-summary {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 3px solid var(--danger);
  border-radius: var(--radius);
}
.error-summary[hidden] { display: none; }
.error-summary__title { margin: 0 0 0.5em; font-size: 1.1rem; color: var(--danger); }
.error-summary__list { margin: 0; padding-left: 1.4rem; }
.error-summary__list a { color: var(--danger); font-weight: 700; }
.error-summary__list a:visited { color: var(--danger); }

.confirm, .result {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.confirm[hidden], .result[hidden] { display: none; }
.confirm__title, .result__title { font-size: 1.25rem; }
.confirm__list { margin: 0 0 1.5rem; }
.confirm__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.confirm__row dt { font-weight: 700; flex: 0 0 10rem; }
.confirm__row dd { margin: 0; flex: 1 1 12rem; }

/* 頁尾 */
.site-footer {
  background: var(--foot-bg);
  color: var(--foot-ink);
  padding-block: 3.5rem 1.5rem;
}
.site-footer h2 { color: var(--foot-ink); }
.site-footer a { color: var(--foot-ink); }
.site-footer a:visited { color: var(--foot-ink); }
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 2.5rem;
}
.footer-col__title {
  font-size: 1.05rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--foot-line);
}
.footer-address { font-style: normal; line-height: 2; max-width: var(--measure); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { max-width: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  min-width: var(--tap);
}
.footer-badge { display: flex; align-items: center; gap: 0.85rem; }
.footer-badge > span:last-child { color: var(--foot-muted); }
.footer-badge__level {
  flex: none;
  padding: 0.4rem 0.75rem;
  background: var(--foot-ink);
  color: var(--foot-bg);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}
.copyright {
  max-width: none;
  margin: 3rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--foot-line);
  text-align: center;
  color: var(--foot-muted);
}
.copyright small { font-size: 0.92rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sub-toggle.is-current-parent {
  font-weight: 900;
  border-bottom-color: var(--primary);
}

/* 數字統計 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats > li {
  max-width: none;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
}
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
}
.stats__label { display: block; font-weight: 700; }
.stats__source { display: block; font-size: 0.92rem; color: var(--text-muted); }

/* 標籤列 */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  max-width: none;
  padding: 0.25rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-weight: 500;
}

/* 課程卡 */
.course-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.course-cards > li { max-width: none; }
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
}
.course-card__code {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-text);
}
.course-card__title { font-size: 1.25rem; margin-bottom: 0.3rem; }
.course-card__en { margin: 0 0 1em; font-size: 0.92rem; color: var(--text-muted); }
.course-card > p:last-child { margin-top: auto; }

/* 重點框 */
.callout {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-left: 8px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem;
  font-weight: 700;
}
.callout--gold { border-left-color: var(--gold); }
.callout:last-child { margin-bottom: 0; }

/* 時程 */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10.5rem, 100%), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline > li {
  max-width: none;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
}
.timeline__date {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}
.timeline__day { display: block; font-size: 0.9rem; color: var(--text-muted); }
.timeline__label { display: block; margin-top: 0.3rem; font-weight: 700; }
.timeline > li.is-key { border-left-color: var(--primary); background: var(--surface); }

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: var(--bg);
}
.data-table caption {
  padding: 0.9rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: left;
}
.data-table th,
.data-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
.data-table thead th { background: var(--surface-2); font-weight: 900; }
.data-table tbody th { font-weight: 700; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.table-note { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-muted); }

/* 課表 */
.schedule-week { margin: 0 0 2.5rem; }
.schedule-week:last-child { margin-bottom: 0; }
.schedule-week__title { font-size: 1.2rem; }
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule > li { max-width: none; }
.schedule__day {
  height: 100%;
  padding: 1.2rem 1.4rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.schedule__day--weekend { background: var(--surface); }
.schedule__date {
  margin: 0 0 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--gold);
  font-size: 1.1rem;
}
.schedule__weekday { margin-left: 0.4rem; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.schedule__items { margin: 0; }
.schedule__item {
  display: grid;
  grid-template-columns: 6.8rem minmax(0, 1fr);
  gap: 0 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-soft);
}
.schedule__item:last-child { border-bottom: 0; }
.schedule__item dt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-muted); }
.schedule__item dd { margin: 0; max-width: none; }
.schedule__who { display: block; font-size: 0.92rem; color: var(--text-muted); }
.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-muted);
  vertical-align: middle;
}
.tag--highlight { border-color: var(--primary); color: var(--primary); }

/* 講師 */
.faculty-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.faculty-list > li { max-width: none; }
.faculty {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  height: 100%;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.faculty__photo {
  display: block;
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  background: var(--surface);
  border: 3px solid var(--gold);
  border-radius: 50%;
}
.faculty__role { margin: 0 0 0.15rem; font-size: 0.9rem; font-weight: 700; color: var(--gold-text); }
.faculty__name { margin: 0 0 0.5rem; font-size: 1.2rem; }
.faculty__meta { margin: 0; }
.faculty__meta > div { margin-bottom: 0.4rem; }
.faculty__meta dt { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.faculty__meta dd { margin: 0; }

/* 講座 */
.sessions { display: grid; gap: 1.5rem; }
.session {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius);
}
.session__topic { font-size: 1.25rem; margin-bottom: 0.25rem; }
.session__when { margin: 0 0 1rem; font-weight: 700; color: var(--text-muted); }
.session__body {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.session__photo {
  display: block;
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 50%;
}
.session__lecturer { margin: 0 0 0.2rem; font-weight: 900; }
.session__desc-title { margin: 1.1rem 0 0.35rem; font-size: 1rem; }

/* 回饋 */
.rating { margin: 0 0 1.5rem; font-size: 1.15rem; font-weight: 900; }
.rating__stars { color: var(--gold-text); letter-spacing: 0.1em; }
.quote-groups { display: grid; gap: 1.75rem; }
.quote-group {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
}
.quote-group__title { font-size: 1.25rem; }
.quotes { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.quotes > li { max-width: none; }
.quote { margin: 0; padding: 0 0 0 1.25rem; border-left: 4px solid var(--border-soft); }
.quote blockquote { margin: 0; }
.quote__en { margin: 0 0 0.3rem; font-style: italic; }
.quote__zh { margin: 0 0 0.3rem; color: var(--text-muted); }
.quote__who { margin: 0; font-weight: 700; }

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.value-cards > li {
  max-width: none;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.value-cards h3 { font-size: 1.15rem; }
.value-cards ul { margin: 0; padding-left: 1.25rem; }

/* 常見問答 */
.faq { margin: 0; }
.faq__item { padding: 1.4rem 0; border-bottom: 1px solid var(--border-soft); }
.faq__item:first-child { padding-top: 0; }
.faq__q {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}
.faq__mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.faq__a { padding-left: 2.6rem; }
.faq__a p { margin-bottom: 0.9em; }
.faq__a p:last-child { margin-bottom: 0; }

/* 圖庫 */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery > li { max-width: none; }
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.gallery figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--text-muted); }

/* 圖文並排 */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem 3.5rem;
  align-items: start;
}
.media-split--reverse > :first-child { order: 2; }
.media-figure { margin: 0; }
.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.media-figure figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--text-muted); }
.motto { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--primary); }

/* 連結清單 */
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list > li { max-width: none; border-bottom: 1px solid var(--border-soft); }
.link-list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.4rem 0;
  font-weight: 700;
}
.link-list--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0 2rem;
}

/* 分頁切換 */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.pager > li { max-width: none; }

.stats--spaced { margin-top: 2.5rem; }

ol.value-cards { counter-reset: vc; }
ol.value-cards > li { counter-increment: vc; }
ol.value-cards > li > :first-child::before {
  content: counter(vc) ". ";
  color: var(--gold-text);
  font-family: var(--font-display);
}
.value-cards > li > p { margin-bottom: 0.4em; }
.value-cards > li > p[lang="en"] { font-size: 0.92rem; color: var(--text-muted); }

/* 響應式 */
@media (max-width: 64rem) {
  .row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .row--reverse .row__text { order: 1; }
  .row--reverse .row__media { order: 2; }
  .rows { gap: 3.5rem; }

  .hero__inner--split { grid-template-columns: 1fr; }
  .media-split { grid-template-columns: 1fr; }
  .media-split--reverse > :first-child { order: 0; }
}
@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; }
  .main-nav a, .sub-toggle { width: 100%; border-radius: 4px; border-bottom-width: 0; }
  .main-nav a[aria-current="page"] { border-left: 4px solid var(--primary); }
  .sub-nav { position: static; min-width: 0; box-shadow: none; }
  .header-cta { flex: 1 1 100%; }
  .header-cta .btn { width: 100%; }
  .a11y-bar__inner { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .hero__inner { padding-block: 3rem 2.5rem; }
  .band { padding-block: 3rem; }
  .band__head { margin-bottom: 2.25rem; }
  .summary { padding: 1.25rem 1.25rem; border-left-width: 6px; }
  .form-shell { padding: 1.25rem; }
  .fieldset { padding: 1rem; }
  .tile { padding: 1.25rem; }
  .tile--media { padding: 0; }
  .tile--media .tile__body { padding: 1.25rem; }
  .card__body { padding: 1.25rem; }
  .brand__logo { width: 3.25rem; height: 3.25rem; }
  .hero__actions .btn { width: 100%; }
  .faculty { grid-template-columns: 1fr; }
  .session__body { grid-template-columns: 1fr; }
  .schedule__item { grid-template-columns: 1fr; }
  .faq__a { padding-left: 0; }
  .course-card, .quote-group, .session { padding: 1.25rem; }
}

/* 減少動態 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 強制色彩模式 */
@media (forced-colors: active) {
  .btn, .a11y-btn, .field__input, .card, .tile, .fieldset, .figure { border: 2px solid ButtonBorder; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* 列印 */
@media print {
  .a11y-bar, .nav-toggle, .header-cta, .skip-links, .form__actions, .hero__actions { display: none; }
  body { background: #fff; color: #000; }
  .hero, .site-footer { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
