:root {
  /* Microsoft brand palette */
  --ms-red: #f25022;
  --ms-green: #7fba00;
  --ms-blue: #00a4ef;
  --ms-yellow: #ffb900;

  --site-bg: #ffffff;
  --site-fg: #1b2430;
  --site-accent: #00a4ef;
  --site-on-accent: #ffffff;
  --site-surface: #ffffff;
  --site-muted: #5b6b7c;
  --site-border: rgba(20, 40, 70, 0.12);
  --site-font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --site-radius: 16px;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;
  --shadow-sm: 0 2px 10px rgba(20, 40, 70, .06);
  --shadow-md: 0 12px 34px rgba(20, 40, 70, .10);
  --sp: calc(24px * var(--site-space, 1));
  --title: calc(44px * var(--site-type, 1));
  --dur: calc(180ms * var(--site-motion, 1));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(64px + var(--sp) * 0.5);
  scrollbar-color: #a9c3dc #eef4fb;
  scrollbar-width: thin;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #eef4fb; }
body::-webkit-scrollbar-thumb { background: #a9c3dc; border-radius: 8px; border: 2px solid #eef4fb; }
body::-webkit-scrollbar-thumb:hover { background: var(--ms-blue); }

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 88% -5%, rgba(0, 164, 239, .12), transparent 70%),
    radial-gradient(50% 42% at 2% 8%, rgba(127, 186, 0, .10), transparent 70%),
    radial-gradient(46% 40% at 50% 108%, rgba(255, 185, 0, .10), transparent 70%),
    radial-gradient(40% 36% at 100% 96%, rgba(242, 80, 34, .07), transparent 70%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--sp); }
.wrap-narrow { max-width: 840px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--site-border);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: var(--sp);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--site-fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .5px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
  object-fit: contain;
}

.brand-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--site-muted);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: calc(var(--sp) * 0.9);
  margin-left: auto;
}

.nav a {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--dur);
}

.nav a:hover { color: var(--site-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.6);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  flex: none;
  background: #1b2430;
  background: var(--site-fg);
  border-radius: 2px;
  transition: transform var(--dur), opacity var(--dur);
}

.topbar.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  padding: calc(var(--sp) * 0.4) var(--sp) var(--sp);
  border-top: 1px solid var(--site-border);
}

.nav-mobile a {
  display: block;
  padding: 10px 4px;
  color: var(--site-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--site-border);
}

.nav-mobile a:last-child { border-bottom: 0; color: var(--site-accent); font-weight: 700; }

.topbar.open .nav-mobile { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: calc(12px * var(--site-space, 1)) calc(24px * var(--site-space, 1));
  border: 1px solid transparent;
  border-radius: var(--site-radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur), box-shadow var(--dur), background-color var(--dur), border-color var(--dur);
}

.btn-primary {
  background: linear-gradient(135deg, #00a4ef, #0078d4);
  color: var(--site-on-accent);
  box-shadow: 0 6px 20px rgba(0, 132, 200, .30);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 132, 200, .40); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }

.btn-ghost {
  border-color: var(--site-border);
  color: var(--site-fg);
  background: #ffffff;
}

.btn-ghost:hover { border-color: var(--site-accent); color: var(--site-accent); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--sp) * 2.4) 0 calc(var(--sp) * 2); }

.hero-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: calc(var(--sp) * 1.6);
  align-items: center;
}

.eyebrow {
  margin: 0 0 calc(var(--sp) * 0.6);
  color: var(--site-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.hero h1 {
  margin: 0;
  font-size: calc(52px * var(--site-type, 1));
  line-height: 1.18;
  letter-spacing: 1px;
  color: var(--site-fg);
}

.grad {
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: calc(var(--sp) * 0.7) 0 0;
  color: var(--site-muted);
  font-size: 17px;
  max-width: 34em;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--sp) * 1.1);
  margin: calc(var(--sp) * 1) 0 0;
  padding: 0;
  list-style: none;
}

.stats li { display: grid; gap: 2px; }

.stats strong {
  font-size: calc(30px * var(--site-type, 1));
  line-height: 1.2;
}

/* color each stat with a Microsoft brand hue */
.stats li:nth-child(1) strong { color: var(--ms-blue); }
.stats li:nth-child(2) strong { color: var(--ms-green); }
.stats li:nth-child(3) strong { color: var(--ms-red); }
.stats li:nth-child(4) strong { color: #e0a400; }

.stats span { color: var(--site-muted); font-size: 13px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: calc(var(--sp) * 0.6); margin-top: calc(var(--sp) * 1.1); }

.hero-note { margin: calc(var(--sp) * 0.6) 0 0; color: var(--site-muted); font-size: 13px; }

.hero-media { margin: 0; }

/* ---------- carousel ---------- */
.carousel {
  position: relative;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel .slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
}

.carousel .slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--site-radius) * 0.7);
  background: #eef2f7;
}

.carousel .slide figcaption {
  padding: 10px 6px 4px;
  color: var(--site-muted);
  font-size: 13px;
  text-align: center;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--site-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--site-fg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
  z-index: 2;
}

.car-btn:hover { border-color: var(--site-accent); color: var(--site-accent); }
.car-btn.prev { left: 14px; }
.car-btn.next { right: 14px; }

.car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.car-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 40, 70, .18);
  cursor: pointer;
  transition: background-color var(--dur), transform var(--dur);
}

.car-dots button[aria-selected="true"] { background: var(--site-accent); transform: scale(1.35); }

/* ---------- sections ---------- */
.section { padding: calc(var(--sp) * 2.2) 0; }
.section-alt { background: #f4f7fb; border-block: 1px solid var(--site-border); }

.sec-title {
  margin: 0;
  font-size: var(--title);
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--site-fg);
}

.sec-sub { margin: calc(var(--sp) * 0.4) 0 0; color: var(--site-muted); }

.grid-3, .grid-2 { display: grid; gap: var(--sp); margin-top: calc(var(--sp) * 1.2); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: var(--sp);
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 calc(var(--sp) * 0.35); font-size: 19px; color: var(--site-fg); }
.card p { margin: 0; color: var(--site-muted); font-size: 15px; }

.feature h3 { color: var(--site-fg); }
.feature { position: relative; }
.feature::before {
  content: "";
  position: absolute;
  left: var(--sp);
  top: 0;
  width: 42px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--ms-blue);
}
.feature:nth-child(2)::before { background: var(--ms-green); }
.feature:nth-child(3)::before { background: var(--ms-red); }
.feature:nth-child(4)::before { background: var(--ms-yellow); }

/* ---------- curriculum path ---------- */
.path {
  display: grid;
  gap: calc(var(--sp) * 0.7);
  margin: calc(var(--sp) * 1.2) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.path li { position: relative; padding-left: calc(var(--sp) * 2.4); }

.path li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: calc(var(--sp) * 0.85);
  width: calc(var(--sp) * 1.5);
  height: calc(var(--sp) * 1.5);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ms-blue);
  color: #ffffff;
  font-weight: 800;
}

.path li:nth-child(2)::before { background: var(--ms-green); }
.path li:nth-child(3)::before { background: var(--ms-red); }
.path li:nth-child(4)::before { background: var(--ms-yellow); }
.path li:nth-child(5)::before { background: #0078d4; }

.path li::after {
  content: "";
  position: absolute;
  left: calc(var(--sp) * 0.72);
  top: calc(var(--sp) * 2.4);
  bottom: calc(var(--sp) * -0.7);
  width: 2px;
  background: var(--site-border);
}

.path li:last-child::after { display: none; }

.step {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--site-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp); margin-top: calc(var(--sp) * 1.2); }

.gallery figure { margin: 0; padding: 8px; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--site-radius) * 0.7);
  background: #eef2f7;
}

.gallery figcaption { padding: 8px 4px 2px; color: var(--site-muted); font-size: 13px; text-align: center; }

/* ---------- jobs ---------- */
.pay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp);
  margin: calc(var(--sp) * 1.2) 0 0;
  padding: 0;
  list-style: none;
}

.pay li {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(var(--sp) * 0.8);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pay strong { display: block; font-size: calc(26px * var(--site-type, 1)); }
.pay li:nth-child(1) strong { color: var(--ms-blue); }
.pay li:nth-child(2) strong { color: var(--ms-green); }
.pay li:nth-child(3) strong { color: var(--ms-red); }
.pay li:nth-child(4) strong { color: #e0a400; }
.pay span { color: var(--site-muted); font-size: 13px; }

.jobs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--sp); margin-top: var(--sp); align-items: stretch; }

.jobs-carousel { margin-top: 0; align-self: start; }

.jobs-board { margin-top: 0; padding: calc(var(--sp) * 0.7); display: flex; flex-direction: column; height: 520px; }

.jobs-scroll {
  flex: 1;
  min-height: 0;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.7);
  -webkit-overflow-scrolling: touch;
  background: #eef2f7;
  scrollbar-color: #a9c3dc #eef2f7;
  scrollbar-width: thin;
}

.jobs-scroll::-webkit-scrollbar { width: 8px; }
.jobs-scroll::-webkit-scrollbar-track { background: #eef2f7; }
.jobs-scroll::-webkit-scrollbar-thumb { background: #a9c3dc; border-radius: 6px; }
.jobs-scroll::-webkit-scrollbar-thumb:hover { background: var(--ms-blue); }

.jobs-scroll img { width: min(100%, 460px); margin: 0 auto; }

.jobs-board figcaption { padding-top: 10px; color: var(--site-muted); font-size: 13px; text-align: center; }

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--sp) * 0.5);
  margin: calc(var(--sp) * 1) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  color: var(--site-muted);
  font-size: 14px;
  background: #ffffff;
}

.chips li img {
  height: 18px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  flex: none;
}

/* ---------- faq ---------- */
.faq { margin-top: calc(var(--sp) * 0.6); padding: 0; }
.faq + .faq { margin-top: calc(var(--sp) * 0.5); }

.faq summary {
  padding: calc(var(--sp) * 0.7) var(--sp);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: calc(var(--sp) * 2);
  color: var(--site-fg);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--sp);
  top: 50%;
  transform: translateY(-50%);
  color: var(--site-accent);
  font-size: 22px;
  line-height: 1;
  transition: transform var(--dur);
}

.faq[open] summary::after { content: "−"; }

.faq p { padding: 0 var(--sp) calc(var(--sp) * 0.8); color: var(--site-muted); font-size: 15px; margin: 0; }

/* ---------- enroll ---------- */
.enroll-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp);
  margin-top: calc(var(--sp) * 1.2);
  align-items: start;
}

.field { margin-bottom: calc(var(--sp) * 0.6); }

.field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--site-fg); }
.field label em { color: var(--ms-red); font-style: normal; }

/* 蜜罐字段：对真人不可见、不可聚焦，仅用于拦截机器人 */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.6);
  color: var(--site-fg);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--dur), box-shadow var(--dur);
}

.field input::placeholder, .field textarea::placeholder { color: #9aa7b4; }

.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--site-muted) 50%), linear-gradient(135deg, var(--site-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #1b2430; background: #fff; }

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--site-accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 164, 239, .22); }

.field input.invalid { border-color: var(--ms-red); }

.form-msg { min-height: 1.4em; margin: calc(var(--sp) * 0.5) 0 0; font-size: 14px; }
.form-msg.ok { color: #2e8b2e; }
.form-msg.err { color: var(--ms-red); }

.qr-box { text-align: center; }
.qr-box h3 { margin-top: 0; }

.qr-slot {
  width: min(100%, 260px);
  aspect-ratio: 1;
  margin: calc(var(--sp) * 0.6) auto;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 2px dashed rgba(20, 40, 70, .2);
  border-radius: var(--site-radius);
  color: var(--site-muted);
  background: #f4f7fb;
}

.qr-slot img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--site-radius) * 0.7); }

.qr-ph { width: 56px; height: 56px; margin: 0 auto; opacity: .6; }

.qr-slot p { margin: 0; font-size: 14px; }
.qr-slot p span { display: block; font-size: 12px; opacity: .8; }

.qr-tip { color: var(--site-muted); font-size: 13px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--site-border); padding: calc(var(--sp) * 1.4) 0; background: #f4f7fb; }

.footer-in { display: grid; gap: calc(var(--sp) * 0.4); text-align: center; }

.footer-brand { margin: 0; font-weight: 700; letter-spacing: 1px; color: var(--site-fg); }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp); }
.footer-nav a { color: var(--site-muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--site-accent); }

.footer-note, .footer-copy { margin: 0; color: var(--site-muted); font-size: 13px; }

/* ---------- interview videos ---------- */
.section-videos {
  background:
    radial-gradient(52% 60% at 100% 0%, rgba(0, 164, 239, .08), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 185, 0, .07), transparent 70%),
    linear-gradient(180deg, #f3f9fe, #edf4fb);
  border-block: 1px solid var(--site-border);
}

.video-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp); }

.rec-badge {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(242, 80, 34, .35);
  border-radius: 999px;
  background: #ffffff;
  color: #d13438;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  box-shadow: var(--shadow-sm);
}
.rec-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-red); animation: rec-blink 1.6s ease-in-out infinite; }
@keyframes rec-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(242, 80, 34, .35); }
  50% { opacity: .35; box-shadow: 0 0 0 5px rgba(242, 80, 34, 0); }
}

.video-zone { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp); margin-top: calc(var(--sp) * 1.2); align-items: start; }

.video-stage { padding: 0; overflow: hidden; }

.video-frame { position: relative; display: flex; align-items: center; justify-content: center; height: 520px; background: #0b1524; overflow: hidden; }
.video-ambient { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(30px) brightness(.5) saturate(1.25); transform: scale(1.2); }
.video-frame video { position: relative; z-index: 1; height: 100%; width: auto; max-width: 100%; object-fit: contain; }

.video-play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  margin: -38px 0 0 -38px;
  width: 76px; height: 76px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; background: linear-gradient(135deg, var(--ms-blue), #0078d4);
  box-shadow: 0 10px 30px rgba(0, 120, 212, .45), 0 0 0 8px rgba(255, 255, 255, .12);
  transition: transform var(--dur), opacity var(--dur);
}
.video-play:hover { transform: scale(1.07); }
.video-play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); animation: play-ring 2s ease-out infinite; }
@keyframes play-ring {
  0% { transform: scale(.8); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; transform: scale(.7); }

.video-meta { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--site-surface); border-top: 1px solid var(--site-border); }
.video-index { font-size: 24px; font-weight: 800; color: var(--ms-blue); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.video-titles { min-width: 0; flex: 1; display: grid; gap: 2px; }
.video-titles strong { font-size: 15px; color: var(--site-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-titles span { font-size: 12.5px; color: var(--site-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-dur { flex: none; padding: 3px 10px; border-radius: 999px; background: #e8f4fd; color: #0078d4; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.video-nav { display: flex; gap: 8px; }
.video-nav button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--site-border); background: #ffffff; color: var(--site-muted);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color var(--dur), border-color var(--dur), transform var(--dur);
}
.video-nav button:hover { color: var(--site-accent); border-color: var(--site-accent); transform: translateY(-1px); }

.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.video-side { display: grid; gap: 12px; align-content: start; }
.video-aside { display: grid; gap: 10px; justify-items: start; padding: calc(var(--sp) * 0.8); background: linear-gradient(135deg, #ffffff, #f0f7fd); }
.video-aside h3 { margin: 0; font-size: 16px; color: var(--site-fg); }
.video-aside p { margin: 0; color: var(--site-muted); font-size: 13.5px; }
.video-item {
  width: 100%; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; text-align: left; cursor: pointer;
  background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius);
  box-shadow: var(--shadow-sm); font-family: inherit;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.video-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.video-item.is-active { border-color: var(--site-accent); box-shadow: 0 0 0 3px rgba(0, 164, 239, .16), var(--shadow-sm); }
.vi-thumb { position: relative; width: 86px; height: 96px; border-radius: 10px; overflow: hidden; background: #0b1524; }
.vi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vi-dur { position: absolute; right: 5px; bottom: 5px; padding: 1px 6px; border-radius: 5px; background: rgba(11, 21, 36, .78); color: #ffffff; font-size: 11px; font-variant-numeric: tabular-nums; }
.vi-body { display: grid; gap: 3px; min-width: 0; }
.vi-body strong { font-size: 14px; color: var(--site-fg); line-height: 1.45; }
.vi-body span { font-size: 12.5px; color: var(--site-muted); }
.vi-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; padding-right: 6px; }
.vi-eq i { width: 3px; height: 6px; border-radius: 2px; background: #b9c9da; }
.video-item.is-active .vi-eq i { background: var(--ms-blue); }
.video-item.is-playing .vi-eq i { animation: eq-bounce 1s ease-in-out infinite; }
.video-item.is-playing .vi-eq i:nth-child(2) { animation-delay: .25s; }
.video-item.is-playing .vi-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq-bounce { 0%, 100% { height: 6px; } 50% { height: 16px; } }

.video-note { margin: calc(var(--sp) * 0.6) 0 0; color: var(--site-muted); font-size: 12.5px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) ease-out, transform var(--dur) ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav a, .faq summary::after { transition: none; }
  .rec-badge i, .video-play::after, .video-item.is-playing .vi-eq i { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .topbar-in .btn-sm { margin-left: 0; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pay { grid-template-columns: repeat(2, 1fr); }
  .enroll-grid { grid-template-columns: 1fr; }
  .qr-box { max-width: 520px; margin: 0 auto; width: 100%; }
  .video-zone { grid-template-columns: 1fr; }
  .video-list { grid-template-columns: repeat(2, 1fr); }
  .video-frame { height: 480px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .jobs-board { height: auto; max-width: 560px; width: 100%; margin: 0 auto; }
  .jobs-scroll { flex: none; max-height: 480px; }
}

@media (max-width: 640px) {
  :root { --title: calc(30px * var(--site-type, 1)); }
  .hero { padding-top: calc(var(--sp) * 1.4); }
  .hero h1 { font-size: calc(36px * var(--site-type, 1)); }
  .stats { gap: calc(var(--sp) * 0.7); }
  .stats strong { font-size: calc(24px * var(--site-type, 1)); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .path li { padding-left: calc(var(--sp) * 2.1); }
  .brand-sub { display: none; }
  .jobs-scroll { max-height: 440px; }
  .car-btn { width: 34px; height: 34px; font-size: 20px; }
  .car-btn.prev { left: 8px; }
  .car-btn.next { right: 8px; }
  .video-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .video-list { grid-template-columns: 1fr; }
  .video-frame { height: min(72vw, 460px); }
  .video-meta { flex-wrap: wrap; gap: 10px; }
  .video-titles { flex-basis: 100%; order: 5; }
  .video-titles strong, .video-titles span { white-space: normal; }
  .video-nav { margin-left: auto; }
}

/* ---------- image lightbox ---------- */
body.lb-open { overflow: hidden; }

img.zoomable { cursor: zoom-in; transition: box-shadow var(--dur), filter var(--dur); }
img.zoomable:hover, img.zoomable:focus-visible { box-shadow: 0 0 0 3px rgba(0, 164, 239, .45); filter: brightness(1.04); }
img.zoomable:focus-visible { outline: 2px solid var(--ms-blue); outline-offset: 2px; }

.has-zoom { position: relative; }
.has-zoom::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%2300a4ef' stroke-width='2.4'/%3E%3Cpath d='M15.5 15.5L21 21M10.5 7.5v6M7.5 10.5h6' fill='none' stroke='%2300a4ef' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(.8);
  transition: opacity var(--dur), transform var(--dur);
  pointer-events: none;
}
.has-zoom:hover::after, .has-zoom:focus-within::after { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(9, 18, 31, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lb-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  color: #eaf2fa;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(12, 24, 40, .55);
}
.lb-caption {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-count { flex: none; font-size: 12px; letter-spacing: .08em; color: #9fb6cc; font-variant-numeric: tabular-nums; }
.lb-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--dur), border-color var(--dur), transform var(--dur);
}
.lb-close:hover { background: var(--ms-red); border-color: var(--ms-red); }
.lb-close:active { transform: scale(.96); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid #9fd7ff; outline-offset: 2px; }
.lb-close svg { display: block; }

.lb-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  padding: 18px 64px 26px;
  scrollbar-color: rgba(169, 195, 220, .6) rgba(255, 255, 255, .08);
  scrollbar-width: thin;
  touch-action: pan-y;
}
.lb-stage::-webkit-scrollbar { width: 10px; height: 10px; }
.lb-stage::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); }
.lb-stage::-webkit-scrollbar-thumb { background: rgba(169, 195, 220, .6); border-radius: 6px; }
.lb-stage::-webkit-scrollbar-thumb:hover { background: var(--ms-blue); }

.lb-figure { margin: auto; transform: scale(.96); transition: transform .22s ease; }
.lightbox.is-open .lb-figure { transform: scale(1); }
.lb-figure img { display: block; border-radius: 10px; box-shadow: 0 18px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox[data-mode="fit"] .lb-figure img { max-width: min(92vw, 1080px); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; }
.lightbox[data-mode="tall"] .lb-figure img { width: min(92vw, 860px); max-width: none; max-height: none; height: auto; }
.lightbox[data-mode="small"] .lb-figure img { width: min(72vw, 420px); height: auto; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(18, 32, 50, .66);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color var(--dur), border-color var(--dur);
  z-index: 2;
}
.lb-nav:hover { background: var(--ms-blue); border-color: var(--ms-blue); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }

.lb-hint {
  position: absolute;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 24, 40, .72);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #cfe0ef;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur);
}
.lightbox[data-mode="tall"] .lb-hint { opacity: 1; }

@media (max-width: 640px) {
  .lb-bar { gap: 10px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .lb-caption { font-size: 13px; }
  .lb-close { padding: 7px 12px; font-size: 13px; }
  .lb-stage { padding: 12px 12px 30px; }
  .lb-nav { width: 36px; height: 36px; }
  .lb-nav.prev { left: 6px; }
  .lb-nav.next { right: 6px; }
  .lightbox[data-mode="fit"] .lb-figure img { max-width: 92vw; }
  .lightbox[data-mode="tall"] .lb-figure img { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-figure, .lb-close, .lb-nav, .lb-hint, .has-zoom::after, img.zoomable { transition: none; }
}

/* ---------- course materials download ---------- */
.section-downloads {
  position: relative;
  background:
    radial-gradient(46% 60% at 100% 0%, rgba(0, 164, 239, .09), transparent 70%),
    radial-gradient(40% 52% at 0% 100%, rgba(127, 186, 0, .08), transparent 70%),
    linear-gradient(180deg, #f3f9fe, #ecf3fa);
  border-block: 1px solid var(--site-border);
}

.dl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dl-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(127, 186, 0, .38);
  border-radius: 999px;
  background: rgba(127, 186, 0, .12);
  color: #557f00;
  font-size: 12px;
  font-weight: 600;
}

.dl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--sp);
  align-items: start;
  margin-top: calc(var(--sp) * 0.8);
}
.dl-lead { margin: 0; color: var(--site-muted); line-height: 1.9; }

.dl-list {
  list-style: none;
  margin: calc(var(--sp) * 0.7) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dl-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: calc(var(--site-radius) * 0.8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur), box-shadow var(--dur);
}
.dl-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dl-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.dl-ico.c-blue { background: linear-gradient(135deg, #00a4ef, #0078d4); }
.dl-ico.c-green { background: linear-gradient(135deg, #8fc31f, #5a8f00); }
.dl-ico.c-red { background: linear-gradient(135deg, #f25022, #d83b01); }
.dl-ico.c-yellow { background: linear-gradient(135deg, #ffb900, #e0a800); }
.dl-list li > div { min-width: 0; }
.dl-list strong { display: block; font-size: 14px; }
.dl-list li > div span { display: block; margin-top: 2px; color: var(--site-muted); font-size: 12px; }
.dl-tag {
  margin-left: auto;
  flex: none;
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--site-muted);
  background: #eef4fb;
  border: 1px solid var(--site-border);
  border-radius: 6px;
  padding: 3px 7px;
}
.dl-list li.dl-item-pdf {
  grid-column: 1 / -1;
  padding: 0;
  border-color: #ddd1f7;
  background: linear-gradient(135deg, #faf7ff, #f2ecfd);
}
.dl-list a.dl-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.dl-link > div { min-width: 0; }
.dl-link > div span { display: block; margin-top: 2px; color: var(--site-muted); font-size: 12px; }
.dl-ico.c-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.dl-tag-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6d28d9;
  background: #f0e9fd;
  border-color: #ddd1f7;
  transition: color var(--dur), background var(--dur), border-color var(--dur);
}
.dl-item-pdf:hover .dl-tag-dl {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border-color: transparent;
}
.dl-note { margin: 12px 0 0; color: var(--site-muted); font-size: 12px; }

.dl-qr {
  padding: calc(var(--sp) * 0.8);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
}
.dl-qr h3 { margin: 0; font-size: 17px; }
.dl-qr .qr-slot { margin: 0 auto; }
.dl-steps {
  list-style: none;
  counter-reset: dl;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.dl-steps li { counter-increment: dl; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.dl-steps li::before {
  content: counter(dl);
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ms-blue);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.dl-qr .qr-tip { margin: 0; }

@media (max-width: 960px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-qr { max-width: 520px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .dl-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-badge { margin-top: 0; }
  .dl-list { grid-template-columns: 1fr; }
}
