﻿:root {
  --blue: #0078d4;
  --blue-strong: #005a9e;
  --cyan: #50e6ff;
  --green: #107c10;
  --yellow: #ffb900;
  --red: #d13438;
  --ink: #1a1a1a;
  --muted: #5f6673;
  --line: #e7ebf1;
  --soft: #f6f8fb;
  --surface: #ffffff;
  --shadow: 0 18px 46px rgba(18, 38, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(231, 235, 241, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #242424;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  font-weight: 600;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.phone {
  color: var(--blue-strong);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #323130;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef5ff;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.87) 32%, rgba(255, 255, 255, 0.36) 65%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(246, 248, 251, 0.9) 100%);
}

.hero-content {
  position: relative;
  padding: 84px 0 70px;
}

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 16px);
  gap: 5px;
  width: max-content;
  margin-bottom: 24px;
}

.microsoft-mark span {
  width: 16px;
  height: 16px;
}

.microsoft-mark span:nth-child(1) {
  background: #f25022;
}

.microsoft-mark span:nth-child(2) {
  background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
  background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
  background: #ffb900;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 540px;
  margin: 0;
  color: #111827;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.03;
  font-weight: 700;
}

.hero-lede {
  max-width: 570px;
  margin: 24px 0 0;
  color: #3b4250;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button::after {
  content: "›";
  margin-left: 8px;
  font-size: 20px;
  line-height: 1;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 120, 212, 0.25);
}

.button.secondary {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(0, 120, 212, 0.28);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-strong);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(0, 120, 212, 0.18);
  border-radius: 2px;
  color: #344054;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.06);
}

.section {
  padding: 72px 0;
}

.category-section {
  background: linear-gradient(180deg, #f6f8fb 0%, #fff 100%);
}

.details-section {
  background:
    linear-gradient(90deg, rgba(0, 120, 212, 0.04), transparent 32%, rgba(16, 124, 16, 0.04) 100%),
    #fff;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 700;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  position: relative;
  min-height: 294px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(18, 38, 63, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 120, 212, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.course-card h3 {
  min-height: 58px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 18px 22px;
  font-size: 18px;
  line-height: 1.3;
}

.course-index {
  display: block;
  margin: 16px 18px 7px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.course-card:hover,
.course-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(0, 120, 212, 0.42);
  box-shadow: var(--shadow);
}

.course-card:hover::before,
.course-card:focus-visible::before {
  opacity: 1;
}

.track {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(18, 38, 63, 0.07);
  scroll-margin-top: 96px;
}

.track:last-child {
  margin-bottom: 0;
}

.track-media {
  min-height: 300px;
  overflow: hidden;
  border-radius: 6px;
  background: #eaf3ff;
}

.track-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-content {
  padding: 6px 4px;
}

.track-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.track h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 28px;
  line-height: 1.22;
}

.track p {
  margin: 0;
  color: #485160;
  font-size: 16px;
}

.course-title {
  margin-top: 20px !important;
  color: var(--red) !important;
  font-weight: 800;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.link-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #d9e6f5;
  border-radius: 4px;
  color: #134f8a;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.link-list a::after {
  content: "›";
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}

.link-list a:hover,
.link-list a:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.partners-section {
  overflow: hidden;
  background: #f6f8fb;
}

.partner-marquee {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 8px 0;
  animation: marquee 42s linear infinite;
}

.partner-marquee:hover {
  animation-play-state: paused;
}

.partner-track {
  display: flex;
  gap: 18px;
}

.partner-track img {
  width: 170px;
  height: 88px;
  object-fit: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 38, 63, 0.06);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.site-footer {
  padding: 42px 0;
  color: #eaf2ff;
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.16), transparent 46%),
    #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 160px minmax(260px, 1fr) minmax(280px, 1.2fr);
  gap: 34px;
  align-items: center;
}

.footer-qr img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  margin: 5px 0;
  color: #ccd6e4;
  font-size: 14px;
}

.footer-rights {
  justify-self: end;
  text-align: right;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 12;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(0, 120, 212, 0.28);
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand img {
    height: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .phone {
    padding: 10px 6px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 620px;
    align-items: flex-start;
  }

  .hero-media {
    object-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.83) 50%, rgba(255, 255, 255, 0.2) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.1));
  }

  .hero-content {
    padding-top: 72px;
  }

  .hero-lede {
    max-width: 520px;
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .track {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

  .track-media {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-rights {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 0;
  }

  .course-card img {
    aspect-ratio: 16 / 9;
  }

  .hero {
    min-height: 650px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .track h3 {
    font-size: 24px;
  }

  .link-list a {
    width: 100%;
  }

  .partner-track img {
    width: 142px;
    height: 76px;
  }

  .back-top {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
