/* ===== CSS Variables ===== */
:root {
  --gold: #d6a928;
  --gold-light: #f7dc7c;
  --gold-dark: #a8841a;
  --gold-metallic: #d4af37;
  --bronze: #8b6914;
  --cyan: #00e5ff;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.3);
  --purple-glow: rgba(124, 58, 237, 0.2);
  --bg-dark: #05070d;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-elevated: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #aeb8c8;
  --text-muted: #6b7a90;
  --accent-red: #ff4d6a;
  --border-gold: rgba(214, 169, 40, 0.3);
  --border-tech: rgba(0, 229, 255, 0.25);
  --shadow-gold: 0 4px 24px rgba(214, 169, 40, 0.15);
  --shadow-tech: 0 0 30px rgba(0, 229, 255, 0.1);
  --glass: rgba(5, 10, 20, 0.55);
  --radius: 10px;
  --radius-lg: 20px;
  --font-tech: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Noto Sans TC', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ===== AI Tech Background ===== */
.tech-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tech-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

.tech-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: techGlowFloat 12s ease-in-out infinite;
}

.tech-glow--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: var(--cyan-glow);
}

.tech-glow--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -8%;
  background: var(--purple-glow);
  animation-delay: -6s;
}

@keyframes techGlowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

main, .header, .footer {
  position: relative;
  z-index: 1;
}

main {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.nav--full {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-left: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 3vw, 40px), env(safe-area-inset-right, 0px));
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-tech);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(0, 212, 255, 0.1);
  transition: var(--transition);
  padding-top: env(safe-area-inset-top, 0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

/* 電腦版：Logo 左、導覽右，單行排列 */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-logo span {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav-logo img {
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.3);
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(10px, 2vw, 32px);
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.1vw, 0.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width var(--transition);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--bg-dark) !important;
  padding: clamp(8px, 1.2vw, 10px) clamp(12px, 2vw, 20px) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  box-shadow: var(--shadow-gold);
  font-size: clamp(0.68rem, 1.1vw, 0.8rem) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  color: var(--bg-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(214, 169, 40, 0.35);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 14px) clamp(20px, 3vw, 32px);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #05070d;
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 212, 255, 0.15) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.25), 0 0 20px var(--cyan-glow);
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--cyan-dim);
  color: var(--cyan);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-tech);
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--cyan-dim);
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-2px);
}

/* ===== Icons ===== */
.icon {
  width: 1.5em;
  height: 1.5em;
  display: block;
}

/* ===== Media Thumbs (影片縮圖) ===== */
.media-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-tech);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #0a1018;
  aspect-ratio: 16 / 9;
  transition: var(--transition);
}

.media-thumb:hover {
  border-color: var(--cyan-dim);
  box-shadow: var(--shadow-tech);
  transform: translateY(-2px);
}

.media-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb--pending .media-thumb__img {
  opacity: 0;
}

.media-thumb--pending {
  background:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #0c1420, #141c2e);
  background-size: 24px 24px, 24px 24px, 100% 100%;
}

.media-thumb--pending::before {
  content: '影片縮圖';
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.media-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background var(--transition);
}

.media-thumb:hover .media-thumb__overlay {
  background: rgba(0, 0, 0, 0.45);
}

.media-thumb--large {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.media-thumb--hero {
  width: 100%;
  max-width: 320px;
  margin-top: 20px;
  border-radius: var(--radius-lg);
}

.media-thumb--course {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
}

.media-thumb__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(5, 7, 13, 0.8);
  border: 1px solid var(--border-tech);
  color: var(--cyan);
  border-radius: 4px;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(214, 169, 40, 0.95);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-btn .icon { width: 22px; height: 22px; margin-left: 3px; }

.play-btn--large {
  width: 72px;
  height: 72px;
}

.play-btn--large .icon { width: 28px; height: 28px; }

.media-thumb:hover .play-btn {
  transform: scale(1.08);
  background: var(--gold-light);
}
.hero {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

@media (max-width: 1024px) {
  .hero-image {
    object-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5, 7, 13, 0.88) 0%,
      rgba(5, 7, 13, 0.55) 38%,
      rgba(5, 7, 13, 0.2) 62%,
      rgba(5, 7, 13, 0.35) 100%),
    linear-gradient(to top, rgba(5, 7, 13, 0.85) 0%, transparent 28%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(16px, 3vw, 32px))
    max(clamp(16px, 3vw, 48px), env(safe-area-inset-right, 0px))
    max(clamp(16px, 3vw, 32px), env(safe-area-inset-bottom, 0px))
    max(clamp(16px, 3vw, 48px), env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.hero-panel {
  background: rgba(5, 10, 20, 0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 220, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  min-width: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.hero-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: clamp(8px, 1.5vw, 12px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--border-tech);
  width: 100%;
  min-width: 0;
}

.stat-card {
  text-align: center;
  padding: clamp(12px, 2vw, 16px) clamp(6px, 1.5vw, 10px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-tech);
  border-radius: var(--radius);
  transition: var(--transition);
  min-width: 0;
  overflow-wrap: break-word;
}

.stat-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: var(--shadow-tech);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-family: var(--font-tech);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  color: var(--text-secondary);
}

.stat-sub,
.stat-detail {
  display: block;
  font-size: clamp(0.58rem, 1.2vw, 0.65rem);
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.hero-visual-logo {
  width: min(200px, 40vw);
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(214, 169, 40, 0.2);
}

.hero-visual-title {
  display: none;
}

.hero-play-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.5px;
}

/* ===== Highlight Video ===== */
.highlight-video {
  padding: clamp(56px, 10vw, 120px) 0;
  position: relative;
}

.highlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.highlight-copy h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.35;
  margin-bottom: 16px;
}

.highlight-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== Why Us ===== */
.why-us {
  padding: clamp(56px, 10vw, 120px) 0;
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.why-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.why-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech);
}

.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
  border: 1px solid var(--border-tech);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.05);
}

.why-icon .icon { width: 28px; height: 28px; }

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===== Student Works ===== */
.works {
  padding: clamp(56px, 10vw, 120px) 0;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.03), transparent);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.work-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech);
}

.work-card .media-thumb {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-tech);
}

.work-body {
  padding: 22px 24px 26px;
}

.work-skills {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 10px 0 14px;
  line-height: 1.6;
}

.work-skills strong { color: var(--cyan); font-weight: 500; }

.work-play-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-light);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}

.work-play-link:hover { color: var(--cyan); }

.work-grade {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.work-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 8px 0 10px;
  color: var(--text-primary);
}

.work-tool {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.work-learn {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.works-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== Learning Process ===== */
.process {
  padding: clamp(56px, 10vw, 120px) 0;
  background: var(--glass);
  border-top: 1px solid var(--border-tech);
  border-bottom: 1px solid var(--border-tech);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.process-step {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.process-step:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-3px);
}

.process-num {
  display: block;
  font-family: var(--font-tech);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0.9;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: clamp(56px, 10vw, 120px) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.testimonial-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  margin: 0;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: normal;
}

.testimonial-card footer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
}

/* ===== Features (legacy, unused) ===== */
.features {
  padding: 60px 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-tech);
  border-bottom: 1px solid var(--border-tech);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border-tech);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech), var(--shadow-gold);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.feature-card h3 {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--border-tech);
  background: rgba(0, 229, 255, 0.04);
  border-radius: 4px;
  opacity: 0.85;
}

.section-label::before { content: '// '; opacity: 0.45; }

.section-header h2 {
  font-family: var(--font-tech);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
}

.subsection-title {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.subsection-title {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  letter-spacing: 1px;
}

/* ===== Courses ===== */
.courses {
  padding: clamp(56px, 10vw, 120px) 0;
  position: relative;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-tech);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  padding: 0;
}

.course-body {
  padding: 28px 32px 36px;
}

.course-grade,
.course-outcome {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.course-grade strong,
.course-outcome strong,
.course-learn strong {
  color: var(--cyan);
  font-weight: 500;
}

.course-learn {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.course-learn ul {
  margin-top: 8px;
  padding-left: 1.1em;
  list-style: disc;
}

.course-learn li {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.course-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  opacity: 0.3;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-tech), var(--shadow-gold);
  border-color: rgba(0, 212, 255, 0.35);
}

.course-card:hover::before { opacity: 1; }

.course-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-tech);
}

.course-icon.minecraft { background: rgba(76, 175, 80, 0.15); }
.course-icon.python { background: rgba(55, 118, 171, 0.15); }
.course-icon.mnoai { background: rgba(156, 39, 176, 0.15); }
.course-icon.drawing { background: rgba(233, 30, 99, 0.15); }

.course-card h3 {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.course-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.course-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan);
  border: 1px solid var(--border-tech);
}

.course-link {
  font-family: var(--font-mono);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color var(--transition);
  letter-spacing: 0.5px;
}

.course-link:hover { color: var(--cyan); }

/* ===== Showcase (legacy styles) ===== */
.showcase {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
  position: relative;
}

/* Theme Quick Nav */
.theme-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}

.theme-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--border-tech);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.theme-nav-btn:hover {
  transform: translateY(-2px);
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: var(--shadow-tech);
}

.theme-nav-btn.minecraft:hover { border-color: #4caf50; background: rgba(76, 175, 80, 0.12); }
.theme-nav-btn.python:hover { border-color: #3776ab; background: rgba(55, 118, 171, 0.12); }
.theme-nav-btn.mnoai:hover { border-color: #9c27b0; background: rgba(156, 39, 176, 0.12); }
.theme-nav-btn.drawing:hover { border-color: #e91e63; background: rgba(233, 30, 99, 0.12); }

.theme-nav-icon { font-size: 1.2rem; }

/* Theme Blocks */
.theme-block {
  margin-bottom: 64px;
  padding: 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tech);
  scroll-margin-top: 96px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.theme-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.theme-minecraft { border-left: 3px solid #4caf50; box-shadow: inset 3px 0 20px rgba(76, 175, 80, 0.05); }
.theme-python { border-left: 3px solid #3776ab; box-shadow: inset 3px 0 20px rgba(55, 118, 171, 0.05); }
.theme-mnoai { border-left: 3px solid #7c3aed; box-shadow: inset 3px 0 20px rgba(124, 58, 237, 0.05); }
.theme-3d { border-left: 3px solid #e91e63; box-shadow: inset 3px 0 20px rgba(233, 30, 99, 0.05); }

.theme-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-tech);
}

.theme-header-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(201, 162, 39, 0.1);
}

.theme-minecraft .theme-header-icon { background: rgba(76, 175, 80, 0.15); }
.theme-python .theme-header-icon { background: rgba(55, 118, 171, 0.15); }
.theme-mnoai .theme-header-icon { background: rgba(156, 39, 176, 0.15); }
.theme-3d .theme-header-icon { background: rgba(233, 30, 99, 0.15); }

.theme-header h3 {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.theme-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 640px;
}

.theme-videos {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.theme-secondary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Video Cards */
.video-card {
  background: rgba(8, 14, 28, 0.8);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-tech);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.video-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech);
  border-color: rgba(0, 212, 255, 0.4);
}

.video-card:hover::after { opacity: 1; }

.video-card--featured .video-thumb { aspect-ratio: 16 / 9; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.theme-secondary .video-thumb { aspect-ratio: 16 / 10; }

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.minecraft-bg { background: linear-gradient(135deg, #1b4332, #2d6a4f); }
.python-bg { background: linear-gradient(135deg, #1a365d, #2b6cb0); }
.mnoai-bg { background: linear-gradient(135deg, #3b0764, #7c3aed); }
.drawing-bg { background: linear-gradient(135deg, #831843, #db2777); }

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.video-card:hover .thumb-overlay { opacity: 1; }

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
  transition: var(--transition);
}

.play-btn--large {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
}

.video-card:hover .play-btn {
  transform: scale(1.08);
  background: var(--gold-light);
}

.video-card-info {
  padding: 16px 20px;
}

.video-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== Register Form ===== */
.register {
  padding: clamp(56px, 10vw, 120px) 0;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-tech);
  position: relative;
}

.register-info h2 {
  font-family: var(--font-tech);
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.register-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.register-benefits {
  margin-bottom: 40px;
  list-style: none;
}

.register-benefits li {
  padding: 8px 0;
  padding-left: 1.4em;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

.register-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.course-checkboxes--full {
  grid-template-columns: 1fr;
}

.checkbox-card--wide .checkbox-content {
  justify-content: center;
  font-weight: 500;
}

.register-form .form-privacy {
  margin-top: 16px;
}

.contact {
  padding: clamp(48px, 8vw, 120px) 0;
  position: relative;
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  border: 1px solid var(--border-tech);
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.05);
}

.contact-icon-wrap .icon { width: 24px; height: 24px; }

.contact-item a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--cyan); }

.contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-item {
  padding: 40px 28px;
  border-radius: 24px;
}

.register-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-tech);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-tech);
  position: relative;
}

.register-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--gold), var(--cyan), transparent);
}

.register-form h3 {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  margin-bottom: 28px;
  color: var(--gold-light);
  text-align: center;
  letter-spacing: 2px;
}

.register-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.video-card-info h4 {
  font-size: 1rem;
  margin: 6px 0 4px;
}

.video-card--featured .video-card-info h4 { font-size: 1.15rem; }

.video-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-block:last-child { margin-bottom: 0; }

fieldset {
  border: none;
  margin-bottom: 28px;
}

legend {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-tech);
  width: 100%;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-tech);
  background: rgba(5, 8, 16, 0.8);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--accent-red);
}

.course-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-card {
  cursor: pointer;
}

.checkbox-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.required { color: var(--accent-red); }

.checkbox-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-tech);
  background: rgba(5, 8, 16, 0.8);
  transition: var(--transition);
  font-size: 0.9rem;
}

.checkbox-card input:checked + .checkbox-content {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

/* ===== Contact ===== */
.contact-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-tech);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.contact-item:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-tech);
}

.contact-item h4 {
  font-family: var(--font-tech);
  color: var(--cyan);
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.contact-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px var(--cyan-glow));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.checkbox-icon { font-size: 1.3rem; }

.form-hint {
  color: var(--accent-red);
  font-size: 0.85rem;
  margin-top: 8px;
}

.btn-submit {
  width: 100%;
  font-size: 1rem;
  padding: 16px;
  margin-top: 8px;
}

.form-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border-tech);
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(12px);
}

.footer-brand strong {
  font-family: var(--font-tech);
  display: block;
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-slogan {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Modals ===== */
.video-modal,
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden],
.success-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: min(900px, 92vw);
  z-index: 1;
}

.modal-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border-tech);
  background: var(--bg-elevated);
  color: var(--cyan);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.modal-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--cyan-dim);
  box-shadow: 0 0 40px var(--cyan-glow);
}

.success-content {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-tech);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 420px;
  width: 90vw;
  box-shadow: var(--shadow-tech);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand img { border-radius: 50%; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 700;
}

.success-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-content p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 24px);
    align-items: end;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(5, 7, 13, 0.25) 0%,
        rgba(5, 7, 13, 0.45) 45%,
        rgba(5, 7, 13, 0.92) 100%);
  }

  .hero-image {
    object-position: center center;
  }

  .hero-visual {
    display: none;
  }

  .hero-panel {
    border-radius: var(--radius-lg);
  }

  .highlight-layout { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .register-wrapper { grid-template-columns: 1fr; gap: 40px; }

  .nav-logo span {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  }
}

/* ===== 手機版（≤768px）===== */
@media (max-width: 768px) {
  :root {
    --header-h: 168px;
  }

  html { scroll-padding-top: calc(var(--header-h) + 12px); }

  .header {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .nav {
    height: auto;
    min-height: auto;
    flex-wrap: wrap;
    padding: 14px 0 14px;
    padding-top: max(14px, calc(10px + env(safe-area-inset-top, 0px) * 0.5));
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .nav-logo {
    flex: 1 1 100%;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    text-align: center;
    padding-top: 4px;
  }

  .nav-logo span {
    font-size: 0.82rem;
    letter-spacing: 1.5px;
  }

  .nav-logo img {
    width: 44px;
    height: 44px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 100%;
    width: 100%;
    gap: 8px;
    padding: 0;
  }

  .nav-links li {
    margin: 0;
  }

  .nav-links a {
    display: block;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-tech);
    border-radius: 8px;
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    grid-column: 1 / -1;
    display: flex !important;
    justify-content: center;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 12px 16px !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
  }

  /* 手機 Hero：Logo → 影片 → 文字（由上而下） */
  .hero {
    min-height: auto;
  }

  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 20px;
    padding:
      calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px)
      max(12px, env(safe-area-inset-left, 0px))
      max(24px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-right, 0px));
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 1;
    width: 100%;
    gap: 12px;
    padding: 16px 4px 0;
  }

  .hero-visual-logo {
    width: min(150px, 42vw);
    margin: 0;
  }

  .hero-visual-title {
    display: block;
    font-family: var(--font-tech);
    font-size: clamp(0.95rem, 4.5vw, 1.1rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    line-height: 1.3;
  }

  .media-thumb--hero {
    width: 100%;
    max-width: min(360px, 100%);
    margin-top: 0;
  }

  .hero-play-label {
    margin-top: 0;
    text-align: center;
  }

  .hero-panel {
    order: 2;
    border-radius: var(--radius-lg);
    border-bottom: 1px solid rgba(0, 220, 255, 0.25);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(5, 7, 13, 0.15) 0%,
        rgba(5, 7, 13, 0.4) 35%,
        rgba(5, 7, 13, 0.88) 70%,
        rgba(5, 7, 13, 0.95) 100%);
  }
}

/* ===== 平板 ===== */
@media (max-width: 768px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .nav-logo span { font-size: 0.82rem; max-width: none; line-height: 1.3; }

  .hero-image {
    object-position: center 20%;
    opacity: 1;
  }

  .hero-panel {
    padding: clamp(20px, 4vw, 28px);
    width: 100%;
    max-width: none;
    min-width: 0;
    overflow-wrap: break-word;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(16px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-brand {
    font-size: 0.65rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .hero-title {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    line-height: 1.45;
  }

  .hero-title br { display: none; }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-desc br { display: none; }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Sections */
  .highlight-video,
  .why-us,
  .works,
  .courses,
  .process,
  .testimonials,
  .register,
  .contact {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.4;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .highlight-copy h2 br { display: none; }

  .highlight-layout { gap: 28px; }

  .why-card,
  .process-step,
  .testimonial-card {
    padding: 28px 22px;
  }

  .works-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .courses-grid { gap: 24px; }

  .course-body { padding: 24px 22px 28px; }

  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-item { padding: 28px 22px; }

  /* Form */
  .register-wrapper { gap: 32px; }

  .register-info h2 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    letter-spacing: 1px;
  }

  .register-form {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .form-row { grid-template-columns: 1fr; }

  .course-checkboxes { grid-template-columns: 1fr; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .checkbox-content {
    padding: 16px;
    min-height: 48px;
  }

  .btn-submit {
    padding: 18px;
    font-size: 1rem;
  }

  /* Modal */
  .modal-content { width: 96vw; }
  .modal-close {
    top: -44px;
    width: 44px;
    height: 44px;
  }

  .success-content {
    padding: 32px 24px;
    width: 94vw;
  }

  /* Touch: show play overlay hint */
  .media-thumb__overlay {
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
  }

  .thumb-overlay { opacity: 1; background: rgba(0, 0, 0, 0.35); }
}

/* ===== 窄螢幕 ===== */
@media (max-width: 640px) {
  .hero-layout {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  .hero-panel {
    border-radius: var(--radius-lg);
    border-left: none;
    border-right: none;
    padding: 20px max(16px, env(safe-area-inset-left, 0px));
  }

  .hero-visual-logo {
    width: min(130px, 38vw);
  }

  .hero-brand {
    font-size: 0.62rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-title {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .hero-actions {
    margin-bottom: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    text-align: left;
    padding: 12px 14px;
  }

  .stat-number {
    grid-row: span 2;
    align-self: center;
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .stat-label { margin-bottom: 2px; }

  .works-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 小手機 ===== */
@media (max-width: 480px) {
  .nav-logo span {
    font-size: 0.68rem;
  }

  .nav-links a {
    font-size: 0.66rem;
    padding: 9px 4px;
  }

  .nav-cta {
    padding: 11px 12px !important;
    font-size: 0.68rem !important;
  }

  .hero-panel {
    padding: 18px max(14px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-bottom, 0px));
  }

  .btn {
    font-size: 0.75rem;
    padding: 14px 16px;
    letter-spacing: 0.5px;
  }

  .highlight-video,
  .why-us,
  .works,
  .courses,
  .process,
  .testimonials,
  .register,
  .contact {
    padding: 56px 0;
  }

  .register-form { padding: 22px 16px; }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .play-btn {
    width: 52px;
    height: 52px;
  }

  .play-btn--large {
    width: 64px;
    height: 64px;
  }
}

/* ===== 橫向手機 ===== */
@media (max-width: 896px) and (orientation: landscape) {
  .hero-layout {
    min-height: 100dvh;
    align-items: center;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .hero-panel {
    border-radius: var(--radius-lg);
    border-bottom: 1px solid rgba(0, 220, 255, 0.25);
  }

  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual-logo,
  .tech-glow { animation: none; }

}
