:root {
  color-scheme: light;
  font-family: 'Microsoft YaHei', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  color: #183339;
  background: #f6f4eb;
  font-synthesis: none;
  --ink: #173139;
  --subtle: #50645f;
  --teal: #126457;
  --line: #dedfd2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: '';
  background: radial-gradient(ellipse at 84% -6%, #e6efe1 0, transparent 46%), #f6f4eb;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #087064; outline-offset: 5px; }
.shell { width: min(1184px, calc(100% - 88px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
}
.skip-link:focus { transform: none; }

.masthead {
  min-height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: .06em; }
.brand img { object-fit: contain; }
.project-name {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  padding: 6px 11px;
  border: 1px solid #bfd1c4;
  border-radius: 9px;
  color: #16463e;
  background: #f8fcf380;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.project-name-ai {
  padding: 4px 5px 3px;
  border-radius: 4px;
  color: #fffefa;
  background: #155e52;
  font-size: .92em;
  font-weight: 800;
  letter-spacing: .06em;
}

.masthead-actions, .auth-account { display: flex; min-width: 0; align-items: center; gap: 10px; }
.auth-trigger, .auth-logout, .auth-submit {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fffefa;
  background: #155e52;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.auth-trigger:hover, .auth-submit:hover { background: #0c4a40; box-shadow: 0 3px 10px #16463e25; }
.auth-trigger svg { flex: none; }
.auth-account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; color: #16463e; }
.auth-logout { flex: none; color: #16463e; background: #f8fcf380; border-color: #bfd1c4; }
.auth-logout:hover { background: #e5efe3; }
.auth-logout:disabled, .auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-announcement:empty { display: none; }
.auth-announcement { flex-basis: 100%; color: var(--subtle); font-size: 13px; text-align: right; }
.masthead:has(.auth-announcement:not(:empty)) { flex-wrap: wrap; padding-block: 7px; }

.auth-dialog {
  width: min(440px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #b5cbbd;
  border-radius: 23px;
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 28px 80px #0d292654;
}
.auth-dialog[open] { animation: enter 220ms ease-out both; }
.auth-dialog::backdrop { background: #112b2b66; backdrop-filter: blur(3px); }
.auth-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 24px 54px 21px 24px;
  border-bottom: 1px solid #d5e1d2;
  background: radial-gradient(ellipse at 84% 6%, #f0f5e6 0, transparent 54%), #dfece0;
}
.auth-banner img { flex: none; object-fit: contain; }
.auth-banner h2 { color: #16463e; font-size: 24px; letter-spacing: -.04em; }
.auth-banner p { margin-top: 4px; color: var(--subtle); font-size: 13px; line-height: 1.4; }
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 1px solid #bfd1c4;
  border-radius: 50%;
  color: #16463e;
  background: #f8fcf380;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.auth-close:hover { background: #fffefa; }
.auth-body { padding: 20px 24px 24px; }
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 11px;
  background: #eaf1e7;
}
.auth-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #355b52;
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.auth-switch button[aria-pressed='true'] { color: #16463e; background: #fffefa; box-shadow: 0 2px 7px #16463e18; }
.auth-form { display: grid; gap: 12px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 14px; font-weight: 750; }
.auth-field input {
  width: 100%;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #cbd7cd;
  border-radius: 9px;
  color: var(--ink);
  background: #fafcf7;
  font-size: 16px;
}
.auth-field input::placeholder { color: #61756a; }
.auth-field input[aria-invalid='true'] { border-color: #b05b46; }
.auth-field input:focus-visible { outline-offset: 1px; }
.auth-password-field { position: relative; }
.auth-password-field input { padding-right: 59px; }
.auth-reveal {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  min-height: 31px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #126457;
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.auth-reveal:hover { background: #eaf1e7; }
.auth-hint { color: var(--subtle); font-size: 12px; }
.auth-feedback { color: #923d2c; font-size: 13px; line-height: 1.5; }
.auth-feedback:empty { margin-top: -12px; }
.auth-feedback[data-kind='success'] { color: #155e52; }
.auth-submit { width: 100%; min-height: 45px; }

.hero {
  min-height: clamp(410px, 35vw, 507px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  padding-block: clamp(25px, 3.5vw, 45px);
}
.hero-copy { min-width: 0; animation: enter 600ms ease-out both; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 6.9vw, 96px);
  font-weight: 900;
  line-height: 1.11;
  letter-spacing: -.065em;
}
h1 span { display: block; color: var(--teal); }
.intro { color: var(--subtle); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; }
.course-form { max-width: 475px; margin-top: 24px; }
.link-field {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 5px;
  padding-left: 15px;
  border: 1px solid #d8ddd0;
  border-radius: 13px;
  background: #fffefa;
  box-shadow: 0 6px 18px #394c3310;
}
.link-field:focus-within { border-color: #5a9b88; }
.course-link-icon { width: 19px; flex: none; color: #5c796d; font-size: 21px; line-height: 1; }
.link-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.link-field input::placeholder { color: #697970; }
.link-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #155e52;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}
.link-field button:hover { background: #0a493f; }
.link-field button span { font-size: 16px; }
.desktop-link {
  margin-top: 10px;
  padding: 5px 0;
  border: 0;
  color: #185c50;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.desktop-link:hover { text-decoration: underline; }
.desktop-link:focus-visible { outline: 2px solid #185c50; outline-offset: 3px; }
.course-error { min-height: 20px; margin-top: 7px; color: #94412b; font-size: 12px; }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-self: center;
  width: 100%;
  aspect-ratio: 1.19;
  overflow: hidden;
  border: 1px solid #bfd3c6;
  border-radius: 29px 104px 29px 29px;
  background: radial-gradient(ellipse at 52% 43%, #f8fbec 5%, #e5efdb 46%, #cfdfce 100%);
  perspective: 720px;
  animation: enter 700ms 80ms ease-out both;
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#3a756016 1px, transparent 1px), linear-gradient(90deg, #3a756016 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: radial-gradient(ellipse at center, transparent 23%, #000 100%);
}
.art-orbit { position: absolute; aspect-ratio: 1; border: 1px solid #51867042; border-radius: 50%; }
.orbit-outer { width: 81%; }
.orbit-inner { width: 68%; border-style: dashed; }
.orbit-dot { position: absolute; width: 8px; aspect-ratio: 1; border: 1px solid #3b7863; border-radius: 50%; background: #eff6e4; }
.dot-top { top: 22%; right: 19%; }
.dot-bottom { bottom: 23%; left: 17%; }
.art-cross { position: absolute; color: #54836f; font-size: 20px; line-height: 1; }
.cross-top { top: 12%; left: 11%; }
.cross-bottom { right: 9%; bottom: 12%; }
.emblem-tilt {
  z-index: 1;
  width: 76%;
  transform: translate(var(--shift-x, 0px), var(--shift-y, 0px))
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--emblem-scale, 1));
  transition: transform 260ms ease-out;
}
.emblem {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 11px #27584f37);
  animation: hover-emblem 2.2s 280ms ease-in-out 2;
}
.art-shadow {
  position: absolute;
  width: 47%;
  height: 4%;
  bottom: 8%;
  border-radius: 50%;
  background: #26574a5c;
  filter: blur(12px);
  animation: hover-shadow 2.2s 280ms ease-in-out 2;
}

.platforms { border-top: 1px solid var(--line); padding: 25px 0 47px; scroll-margin-top: 15px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 15px; }
.section-heading h2 { font-size: clamp(23px, 2.45vw, 30px); font-weight: 800; letter-spacing: -.05em; }
.section-heading p { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 13px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 0; margin: 0; list-style: none; }
.platform-grid li { --accent: #944163; --tint: #fbe8ee; min-width: 0; animation: enter 490ms ease-out both; }
.platform-grid .mooc { --accent: #247356; --tint: #e4f3e9; animation-delay: 80ms; }
.platform-grid .xuetang { --accent: #4165a5; --tint: #e8eefb; animation-delay: 160ms; }
.platform-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.4vw, 20px);
  min-height: 111px;
  height: 100%;
  padding: 16px 36px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffefa;
  transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease;
}
.platform-card:hover { transform: translateY(-4px); border-color: #83a998; box-shadow: 0 10px 22px #28524413; }
.platform-card:active { transform: translateY(-1px); }
.platform-icon {
  display: grid;
  place-items: center;
  width: clamp(39px, 5vw, 59px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 13px;
  color: var(--accent);
  background: var(--tint);
}
.platform-icon img { width: min(62%, 32px); height: auto; object-fit: contain; }
.platform-details { display: grid; min-width: 0; gap: 4px; }
.platform-details strong { font-size: clamp(15px, 1.65vw, 21px); font-weight: 800; line-height: 1.25; }
.platform-details > span { color: var(--subtle); font-size: 12px; }
.platform-arrow { position: absolute; right: 13px; top: 14px; font-size: 19px; line-height: 17px; color: var(--accent); transition: transform 180ms ease; }
.platform-card:hover .platform-arrow { transform: translate(2px, -2px); }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hover-emblem {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6%) rotate(-3deg); }
}
@keyframes hover-shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.8); opacity: .55; }
}

@media (max-width: 930px) {
  .shell { width: calc(100% - 56px); }
  .hero { min-height: 360px; gap: 24px; }
  .hero-art { border-top-right-radius: 68px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .masthead { min-height: 65px; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-block: 25px 22px; }
  h1 { font-size: clamp(37px, 8vw, 60px); letter-spacing: -.075em; margin-bottom: 12px; }
  h1 span { display: inline; }
  .course-form { margin-top: 16px; }
  .hero-art { width: min(100%, 435px); justify-self: center; aspect-ratio: 1.7; border-radius: 20px 59px 20px 20px; }
  .emblem-tilt { width: 55%; }
  .platforms { padding-top: 18px; padding-bottom: 25px; }
  .platform-grid { grid-template-columns: 1fr; gap: 9px; }
  .platform-card { min-height: 72px; padding-block: 10px; }
  .platform-arrow { top: 50%; margin-top: -8px; }
}
@media (max-width: 480px) {
  .masthead-actions { gap: 6px; }
  .masthead .brand { gap: 5px; font-size: 18px; white-space: nowrap; }
  .masthead .brand img { width: 34px; height: 34px; }
  .auth-trigger, .auth-logout { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 355px) {
  .masthead .project-name { padding-inline: 6px; }
  .auth-trigger svg { display: none; }
  .auth-banner { padding-left: 17px; }
  .auth-body { padding-inline: 17px; }
}
@media (max-width: 300px) {
  .masthead { flex-wrap: wrap; padding-block: 7px; }
  .masthead-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .emblem-tilt { transform: none; }
}
