:root {
  --navy-950: #041525;
  --navy-900: #05283E;
  --navy-700: #10497C;
  --charcoal: #1A1A1A;
  --ink: #14191F;
  --ink-muted: #5C6672;
  --paper: #FFFFFF;
  --paper-subtle: #F3F5F7;
  --line: #D5DCE4;
  --orange: #E86420;
  --orange-hover: #C95318;
  --on-dark: #FFFFFF;
  --on-orange: #FFFFFF;
  --font: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
@media (min-width: 1440px) {
  .wrap { width: 1200px; }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-900);
  color: var(--on-dark);
  min-height: 68px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 8px 0;
}
.nav-toggle {
  display: none;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: transparent;
  color: var(--on-dark);
  border-radius: 4px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  height: auto;
  width: auto;
  white-space: normal;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.site-nav a {
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { text-decoration: underline; }
.logo {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.logo img {
  height: 48px;
  width: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border: 1.5px solid transparent;
  height: auto;
  width: auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--on-orange);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  color: var(--on-dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-media, .hero-video, .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,21,37,0.25) 0%, rgba(4,21,37,0.55) 40%, rgba(4,21,37,0.82) 100%);
}
.hero-body {
  position: relative;
  z-index: 2;
  padding: 96px 0 72px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.hero-brand {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.hero-facts p {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-video-btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  background: rgba(4,21,37,0.7);
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  height: auto;
  width: auto;
  white-space: normal;
}
.section { padding: 96px 0; }
.section-alt { background: var(--paper-subtle); }
.kicker {
  color: var(--navy-700);
  font-weight: 700;
  margin-bottom: 8px;
}
h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-900);
  margin-bottom: 16px;
}
h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.lede { margin-bottom: 16px; }
.muted, .photo-note, .course-note, figcaption {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}
.photo-note { margin-top: 8px; }
.two-col, .place-grid, .people-grid, .course-grid, .gallery-grid {
  display: grid;
  gap: 24px;
}
.place-grid { grid-template-columns: 1fr 1fr; margin-top: 32px; }
.place-card, .course-card, .trust-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}
.people-grid {
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  align-items: start;
  margin-top: 32px;
}
.people-photo {
  background: var(--paper-subtle);
  border: 1px solid var(--line);
  min-height: 280px;
}
.people-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.cred-list {
  list-style: none;
  margin: 20px 0 0;
}
.cred-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy-900);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.trust-card p { font-size: 18px; line-height: 1.7; }
.course-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.course-card .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 12px 0;
}
.course-card .btn { margin-top: 8px; }
.course-note { margin-top: 24px; }
.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.gallery-grid figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.contact-list { margin: 24px 0; }
.contact-list p { margin: 6px 0; }
.site-footer {
  background: var(--navy-950);
  color: var(--on-dark);
  padding: 48px 0;
  font-size: 14px;
}
.site-footer p { margin: 6px 0; color: rgba(255,255,255,0.86); }
@media (max-width: 900px) {
  .hero h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .hero-facts p { font-size: 18px; }
  .section { padding: 48px 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 68px;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 14px;
  }
  .site-nav.is-open { display: flex; }
  .place-grid, .people-grid, .trust-grid, .course-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-body { padding: 72px 0 88px; }
  .hero-video-btn { right: 12px; bottom: 16px; }
  .logo img { height: 40px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .wrap, .hero-body { width: calc(100% - 32px); }
}

/* v3.3b：介紹區五張照片完整入框，不變形、不裁掉浮水印 */
.people-photo {
  min-height: 0;
}
.people-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  vertical-align: bottom;
}
.people-more {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}
.people-more figure {
  margin: 0;
  background: var(--paper-subtle);
  border: 1px solid var(--line);
}
.people-more img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.people-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .people-portraits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .people-portraits { grid-template-columns: 1fr; }
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}
